Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into hotfix/date-picker-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Sep 2, 2020
2 parents 04ecdaa + 02e5949 commit 0e81f6a
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 21 deletions.
8 changes: 3 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
name: Changelog
---

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]
## [2.1.1] - 2020-09-01

Just minor documentation fixes.

Expand All @@ -18,6 +14,7 @@ Just minor documentation fixes.

### Fixed
- Mobile navigation in documentation ("Components" tab dropdown now works as expected).
- Styles now load properly when navigating directly to a page in the docs (without passing through the main page first)


## [2.1.0] - 2020-08-21
Expand All @@ -27,4 +24,5 @@ Previous, undocumented, releases can be found in [the releases section](https://


[Unreleased]: https://github.com/illright/attractions/compare/v2.1.0...HEAD
[2.1.1]: https://github.com/illright/attractions/releases/tag/2.1.1
[2.1.0]: https://github.com/illright/attractions/releases/tag/2.1.0
2 changes: 1 addition & 1 deletion attractions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "attractions",
"version": "2.1.0",
"version": "2.1.1",
"description": "A UI kit for Svelte",
"license": "MIT",
"svelte": "index.js",
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ yarn-error.log
/cypress/screenshots/
/__sapper__/
.env
.svx
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.2.0",
"attractions": "^2.0.3-alpha",
"mdsvex": "^0.8.6",
"mdsvex": "^0.8.7",
"node-sass": "^4.14.1",
"postcss": "^7.0.32",
"prism-svelte": "^0.4.6",
Expand Down
5 changes: 4 additions & 1 deletion docs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ const preprocess = [
scss: { includePaths: ['./static/css'] },
}),
mdsvex({
layout: './src/mdsvex/layout.svelte',
layout: {
docs: './src/mdsvex/layout.svelte',
_: './src/mdsvex/layout-no-head.svelte',
},
smartypants: {
quotes: false,
ellipses: true,
Expand Down
29 changes: 29 additions & 0 deletions docs/src/mdsvex/layout-no-head.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script context="module">
import Heading1 from 'src/mdsvex/h1.svelte';
import Heading2 from 'src/mdsvex/h2.svelte';
import Heading3 from 'src/mdsvex/h3.svelte';
import UnorderedList from 'src/mdsvex/ul.svelte';
import ListItem from 'src/mdsvex/li.svelte';
import Table from 'src/mdsvex/table.svelte';
import TableHead from 'src/mdsvex/th.svelte';
import TableRow from 'src/mdsvex/tr.svelte';
import TableData from 'src/mdsvex/td.svelte';
import Mark from 'src/mdsvex/mark.svelte';
import Paragraph from 'src/mdsvex/p.svelte';
export {
Heading1 as h1,
Heading2 as h2,
Heading3 as h3,
UnorderedList as ul,
ListItem as li,
Table as table,
TableHead as th,
TableRow as tr,
TableData as td,
Mark as mark,
Paragraph as p,
};
</script>

<slot />
2 changes: 1 addition & 1 deletion docs/src/routes/docs/components/button.svx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Comes in three flavours: filled, outline and flat.
| **`disabled`** | `false` | `boolean` | Disables the button, styling it appropriately and disabling click events. |
| **`href`** | `null` | `string` | Turns the button into a link (prefetch-enabled for Sapper). |
| **`noPrefetch`** | `false` | `boolean` | Disables Sapper prefetching for link buttons (those with an ==`href`== prop). |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](): `[{ name, handler }]`. |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](./docs/utilities): `[{ name, handler }]`. |
| **`...`** | | `any` | Everything else will be passed to the underlying `<button>` or `<a>` element. |

### Class Properties
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/docs/components/star-rating.svx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ An input element used for rating with a number of stars.
| **`max`** | `5` | `number` | How many stars to be displayed. |
| **`value`** | `null` | `number` | Current amount of selected stars. |
| **`disabled`** | `false` | `boolean` | Disables star selection. |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](): `[{ name, handler }]`. The event listeners are registered on the `<input type="radio">` elements. |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](./docs/utilities): `[{ name, handler }]`. The event listeners are registered on the `<input type="radio">` elements. |
| **`...`** | | `any` | Everything else will be passed to the underlying `<input type="radio">` elements. |

<div class="required">* Required</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/routes/docs/components/text-field.svx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The most basic form element – taking text input.
| **`label`** | `null` | `string` | The label to show above the text field. Only works with ==`outline`== text fields. |
| **`error`** | `null` | `string` | The error message to show under the text field. |
| **`autofocus`** | `false` | `boolean` | Whether the field should be focused on mount. |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](): `[{ name, handler }]`. |
| **`events`** | `[]` | `Array` | List of handlers for the [Events action](./docs/utilities): `[{ name, handler }]`. |
| **`...`** | | `any` | Everything else will be passed to the underlying `<input>` or `<textarea>` element. |

### Class Properties
Expand Down
4 changes: 4 additions & 0 deletions docs/static/css/_attractions-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ $shadow-raised:
0 3px 5px 0 transparentize(black, .86),
0 1px 10px 0 transparentize(black, .88);
/* stylelint-enable scss/dollar-variable-colon-space-after */

:global {
@import "global.scss";
}
2 changes: 0 additions & 2 deletions docs/static/css/global.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "_attractions-theme.scss";

* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
Expand Down
4 changes: 0 additions & 4 deletions docs/static/css/routes/index.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@import "_attractions-theme.scss";

:global {
@import "global.scss";
}

$mobile-top-padding: 2.4em;

main {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3174,10 +3174,10 @@ mdast-util-compact@^2.0.0:
dependencies:
unist-util-visit "^2.0.0"

mdsvex@^0.8.6:
version "0.8.6"
resolved "https://registry.yarnpkg.com/mdsvex/-/mdsvex-0.8.6.tgz#fe33c58de1f7b6b8539032118f3c3437e7cbf195"
integrity sha512-VxXv5jLBB3+QqhPbW/shVDzFa+jfI1P+stJxj6yKLIFS+Xuu2ebwqT1Q65v31MQtGCt31hLZZo/LyWzX00Xi0Q==
mdsvex@^0.8.7:
version "0.8.7"
resolved "https://registry.yarnpkg.com/mdsvex/-/mdsvex-0.8.7.tgz#4b85de513826ec316677ee6d25eeaa1595edbe66"
integrity sha512-ugrKnITfKwvrHD2lSp/W28Fm2wCGrJbQzxyAuHwZSSA34DM1NzoEgUWqB7hLKUCmR8cAI/d88MHP/JxCMjESog==
dependencies:
"@types/unist" "^2.0.3"
prismjs "^1.17.1"
Expand Down

0 comments on commit 0e81f6a

Please sign in to comment.