@motion-proto/live-tokens 0.97.0 → 0.98.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/live-tokens-check-compliance/SKILL.md +5 -0
- package/.claude/skills/live-tokens-create-component/SKILL.md +4 -3
- package/.claude/skills/live-tokens-create-component/references/contract-tests.md +71 -11
- package/CHANGELOG.md +272 -0
- package/README.md +2 -2
- package/bin/check-component.mjs +8 -0
- package/bin/check-page.mjs +6 -0
- package/bin/cli.mjs +36 -6
- package/bin/contractRunner.mjs +142 -17
- package/bin/lib/findings.mjs +20 -4
- package/bin/rules/a11y.mjs +53 -0
- package/dist-plugin/{chunk-A4TBP4MM.js → chunk-SLICH4IH.js} +2 -2
- package/dist-plugin/index.cjs +148 -3
- package/dist-plugin/index.js +250 -105
- package/dist-plugin/setColors/index.js +1 -1
- package/package.json +47 -2
- package/src/demo/LabeledSelect.svelte +1 -1
- package/src/editor/bootstrap.ts +3 -1
- package/src/editor/component-editor/BadgeEditor.svelte +13 -0
- package/src/editor/component-editor/ButtonEditor.svelte +33 -2
- package/src/editor/component-editor/CalloutEditor.svelte +13 -0
- package/src/editor/component-editor/CardEditor.svelte +12 -2
- package/src/editor/component-editor/CodeSnippetEditor.svelte +11 -1
- package/src/editor/component-editor/CollapsibleSectionEditor.svelte +18 -1
- package/src/editor/component-editor/CornerBadgeEditor.svelte +13 -0
- package/src/editor/component-editor/DialogEditor.svelte +15 -0
- package/src/editor/component-editor/IconButtonEditor.svelte +29 -1
- package/src/editor/component-editor/ImageEditor.svelte +20 -9
- package/src/editor/component-editor/ImageLightboxEditor.svelte +44 -0
- package/src/editor/component-editor/InlineEditActionsEditor.svelte +13 -1
- package/src/editor/component-editor/InputEditor.svelte +23 -0
- package/src/editor/component-editor/MenuSelectEditor.svelte +27 -1
- package/src/editor/component-editor/NotificationEditor.svelte +15 -0
- package/src/editor/component-editor/PanelEditor.svelte +1 -1
- package/src/editor/component-editor/ProgressBarEditor.svelte +13 -0
- package/src/editor/component-editor/RadioButtonEditor.svelte +20 -1
- package/src/editor/component-editor/SectionDividerEditor.svelte +41 -13
- package/src/editor/component-editor/SegmentedControlEditor.svelte +29 -1
- package/src/editor/component-editor/SideNavigationEditor.svelte +40 -1
- package/src/editor/component-editor/SlidePagerEditor.svelte +20 -0
- package/src/editor/component-editor/SliderEditor.svelte +33 -0
- package/src/editor/component-editor/TabBarEditor.svelte +23 -2
- package/src/editor/component-editor/TableEditor.svelte +14 -0
- package/src/editor/component-editor/ToggleEditor.svelte +17 -0
- package/src/editor/component-editor/TooltipEditor.svelte +11 -2
- package/src/editor/component-editor/VideoFrameEditor.svelte +8 -0
- package/src/editor/component-editor/VideoLightboxEditor.svelte +10 -0
- package/src/editor/component-editor/registration.ts +2 -1
- package/src/editor/component-editor/registry.ts +69 -27
- package/src/editor/component-editor/scaffolding/DemoHeader.svelte +2 -0
- package/src/editor/component-editor/scaffolding/StateBlock.svelte +19 -8
- package/src/editor/component-editor/scaffolding/TokenLayout.svelte +3 -0
- package/src/editor/component-editor/scaffolding/VariantGroup.svelte +70 -3
- package/src/editor/component-editor/scaffolding/editorContext.ts +7 -0
- package/src/editor/core/a11y/a11yReport.ts +101 -0
- package/src/editor/core/a11y/a11yReportTypes.ts +69 -0
- package/src/editor/core/a11y/contrastFailures.ts +22 -0
- package/src/editor/core/components/contrastPairRegistry.ts +18 -0
- package/src/editor/core/palettes/contrast.ts +44 -0
- package/src/editor/core/palettes/contrastPairs.ts +79 -0
- package/src/editor/core/palettes/resolveColor.ts +77 -0
- package/src/editor/core/store/editorStore.ts +4 -0
- package/src/editor/core/store/editorViewStore.ts +2 -2
- package/src/editor/core/store/unsavedEdits.ts +10 -0
- package/src/editor/core/themes/liveStateStream.ts +7 -1
- package/src/editor/core/themes/parsers/gradient.ts +5 -2
- package/src/editor/docs/chapters.ts +1 -0
- package/src/editor/docs/content/accessibility.md +362 -0
- package/src/editor/docs/content/editing-tokens.md +28 -1
- package/src/editor/docs/content.generated.ts +2 -1
- package/src/editor/pages/ComponentEditorPage.svelte +10 -1
- package/src/editor/pages/EditorShell.svelte +96 -10
- package/src/editor/skill-atlas/skillSources.generated.ts +3 -3
- package/src/editor/skill-atlas/trees/check-compliance.ts +3 -3
- package/src/editor/skill-atlas/trees/create-component.ts +12 -12
- package/src/editor/ui/EditorViewSwitcher.svelte +15 -2
- package/src/editor/ui/GradientEditor.svelte +9 -1
- package/src/editor/ui/ThemePanel.svelte +4 -4
- package/src/editor/ui/UIContrastReadout.svelte +186 -0
- package/src/editor/ui/UIInfoPopover.svelte +16 -2
- package/src/editor/ui/UIPaletteSelector.svelte +9 -0
- package/src/editor/ui/UITokenSelector.svelte +26 -2
- package/src/editor/ui/a11y/A11yComponentIssues.svelte +103 -0
- package/src/editor/ui/a11y/A11yFindingRow.svelte +57 -0
- package/src/editor/ui/a11y/A11yIssueRow.svelte +121 -0
- package/src/editor/ui/a11y/A11yOverview.svelte +242 -0
- package/src/editor/ui/a11y/A11yPanel.svelte +128 -0
- package/src/editor/ui/a11y/A11yPropertyMark.svelte +84 -0
- package/src/editor/ui/a11y/A11yRailMark.svelte +34 -0
- package/src/editor/ui/a11y/AccessibilityTab.svelte +334 -0
- package/src/editor/ui/a11y/a11yView.ts +218 -0
- package/src/editor/ui/contrastReadout.ts +45 -0
- package/src/live-tokens/data/themes/autumn.json +20 -20
- package/src/live-tokens/data/themes/halloween.json +20 -20
- package/src/live-tokens/data/themes/midnight-study.json +20 -20
- package/src/live-tokens/data/themes/ocean.json +20 -20
- package/src/live-tokens/data/themes/royal-velvet.json +20 -20
- package/src/live-tokens/data/themes/sketchy.json +20 -20
- package/src/live-tokens/data/themes/spring-meadow.json +20 -20
- package/src/live-tokens/data/themes/sunset.json +20 -20
- package/src/system/components/Badge.svelte +3 -3
- package/src/system/components/Button.svelte +9 -3
- package/src/system/components/CodeSnippet.svelte +8 -1
- package/src/system/components/CornerBadge.svelte +3 -3
- package/src/system/components/Dialog.svelte +43 -14
- package/src/system/components/IconButton.svelte +1 -1
- package/src/system/components/Image.svelte +7 -0
- package/src/system/components/ImageLightbox.svelte +18 -25
- package/src/system/components/Input.svelte +8 -1
- package/src/system/components/MenuSelect.svelte +30 -2
- package/src/system/components/Notification.svelte +1 -1
- package/src/system/components/ProgressBar.svelte +6 -0
- package/src/system/components/RadioButton.svelte +36 -3
- package/src/system/components/SegmentedControl.svelte +36 -2
- package/src/system/components/SlidePager.svelte +2 -2
- package/src/system/components/Slider.svelte +13 -9
- package/src/system/components/TabBar.svelte +33 -3
- package/src/system/components/Toggle.svelte +2 -2
- package/src/system/components/VideoFrame.svelte +1 -1
- package/src/system/components/VideoLightbox.svelte +2 -2
- package/src/system/internal/focusTrap.ts +35 -0
- package/src/testing-js/__aria__/badge.yml +40 -0
- package/src/testing-js/__aria__/button.yml +88 -0
- package/src/testing-js/__aria__/callout.yml +12 -0
- package/src/testing-js/__aria__/card.yml +8 -0
- package/src/testing-js/__aria__/codesnippet.yml +21 -0
- package/src/testing-js/__aria__/collapsiblesection.yml +23 -0
- package/src/testing-js/__aria__/cornerbadge.yml +24 -0
- package/src/testing-js/__aria__/dialog.yml +42 -0
- package/src/testing-js/__aria__/iconbutton.yml +57 -0
- package/src/testing-js/__aria__/image.yml +10 -0
- package/src/testing-js/__aria__/imagelightbox.yml +50 -0
- package/src/testing-js/__aria__/inlineeditactions.yml +16 -0
- package/src/testing-js/__aria__/input.yml +61 -0
- package/src/testing-js/__aria__/menuselect.yml +30 -0
- package/src/testing-js/__aria__/notification.yml +30 -0
- package/src/testing-js/__aria__/panel.yml +2 -0
- package/src/testing-js/__aria__/progressbar.yml +2 -0
- package/src/testing-js/__aria__/radiobutton.yml +20 -0
- package/src/testing-js/__aria__/sectiondivider.yml +9 -0
- package/src/testing-js/__aria__/segmentedcontrol.yml +35 -0
- package/src/testing-js/__aria__/sidenavigation.yml +304 -0
- package/src/testing-js/__aria__/slidepager.yml +72 -0
- package/src/testing-js/__aria__/slider.yml +28 -0
- package/src/testing-js/__aria__/tabbar.yml +35 -0
- package/src/testing-js/__aria__/table.yml +144 -0
- package/src/testing-js/__aria__/toggle.yml +12 -0
- package/src/testing-js/__aria__/tooltip.yml +2 -0
- package/src/testing-js/__aria__/videoframe.yml +6 -0
- package/src/testing-js/__aria__/videolightbox.yml +12 -0
- package/src/testing-js/{chunk-WIZ6W7UT.js → chunk-3WCLMOM7.js} +2 -2
- package/src/testing-js/{chunk-SHBYZUPD.js → chunk-5HNZHIHG.js} +211 -14
- package/src/testing-js/chunk-5HNZHIHG.js.map +1 -0
- package/src/testing-js/{chunk-NB3NZRBM.js → chunk-7CM5D7PF.js} +5 -1
- package/src/testing-js/chunk-7CM5D7PF.js.map +1 -0
- package/src/testing-js/chunk-EWSGE27V.js +168 -0
- package/src/testing-js/chunk-EWSGE27V.js.map +1 -0
- package/src/testing-js/{chunk-GKO27NGN.js → chunk-R54I7YL6.js} +2 -2
- package/src/testing-js/{chunk-X6KHEVIG.js → chunk-RWH46IU5.js} +97 -29
- package/src/testing-js/chunk-RWH46IU5.js.map +1 -0
- package/src/testing-js/chunk-SHLPDNAQ.js +658 -0
- package/src/testing-js/chunk-SHLPDNAQ.js.map +1 -0
- package/src/testing-js/{chunk-3UKGXCDL.js → chunk-YVVR3GJZ.js} +1 -1
- package/src/testing-js/chunk-YVVR3GJZ.js.map +1 -0
- package/src/testing-js/component-a11y.contract.js +283 -0
- package/src/testing-js/component-a11y.contract.js.map +1 -0
- package/src/testing-js/component-alias.contract.js +2 -2
- package/src/testing-js/component-behavior.contract.js +2 -2
- package/src/testing-js/component-editor.contract.js +6 -5
- package/src/testing-js/component-editor.contract.js.map +1 -1
- package/src/testing-js/component-render.contract.js +10 -6
- package/src/testing-js/component-render.contract.js.map +1 -1
- package/src/testing-js/index.d.ts +44 -16
- package/src/testing-js/index.js +9 -9
- package/src/testing-js/page-compliance.contract.js +132 -13
- package/src/testing-js/page-compliance.contract.js.map +1 -1
- package/src/testing-js/vitest.js +3 -3
- package/template/package.json +9 -0
- package/src/testing-js/chunk-3UKGXCDL.js.map +0 -1
- package/src/testing-js/chunk-NB3NZRBM.js.map +0 -1
- package/src/testing-js/chunk-SHBYZUPD.js.map +0 -1
- package/src/testing-js/chunk-X6KHEVIG.js.map +0 -1
- /package/src/testing-js/{chunk-WIZ6W7UT.js.map → chunk-3WCLMOM7.js.map} +0 -0
- /package/src/testing-js/{chunk-GKO27NGN.js.map → chunk-R54I7YL6.js.map} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"Primary / base": |
|
|
2
|
+
- button "Primary"
|
|
3
|
+
- button "With Icon"
|
|
4
|
+
"Secondary / base": |
|
|
5
|
+
- button "Secondary"
|
|
6
|
+
- button "With Icon"
|
|
7
|
+
"Secondary / default": |
|
|
8
|
+
- button "Secondary"
|
|
9
|
+
- button "With Icon"
|
|
10
|
+
"Secondary / hover": |
|
|
11
|
+
- button "Secondary"
|
|
12
|
+
- button "With Icon"
|
|
13
|
+
"Secondary / disabled": |
|
|
14
|
+
- button "Secondary" [disabled]
|
|
15
|
+
- button "With Icon" [disabled]
|
|
16
|
+
"Outline / base": |
|
|
17
|
+
- button "Outline"
|
|
18
|
+
- button "With Icon"
|
|
19
|
+
"Outline / default": |
|
|
20
|
+
- button "Outline"
|
|
21
|
+
- button "With Icon"
|
|
22
|
+
"Outline / hover": |
|
|
23
|
+
- button "Outline"
|
|
24
|
+
- button "With Icon"
|
|
25
|
+
"Outline / disabled": |
|
|
26
|
+
- button "Outline" [disabled]
|
|
27
|
+
- button "With Icon" [disabled]
|
|
28
|
+
"Success / base": |
|
|
29
|
+
- button "Success"
|
|
30
|
+
- button "With Icon"
|
|
31
|
+
"Success / default": |
|
|
32
|
+
- button "Success"
|
|
33
|
+
- button "With Icon"
|
|
34
|
+
"Success / hover": |
|
|
35
|
+
- button "Success"
|
|
36
|
+
- button "With Icon"
|
|
37
|
+
"Success / disabled": |
|
|
38
|
+
- button "Success" [disabled]
|
|
39
|
+
- button "With Icon" [disabled]
|
|
40
|
+
"Danger / base": |
|
|
41
|
+
- button "Danger"
|
|
42
|
+
- button "With Icon"
|
|
43
|
+
"Danger / default": |
|
|
44
|
+
- button "Danger"
|
|
45
|
+
- button "With Icon"
|
|
46
|
+
"Danger / hover": |
|
|
47
|
+
- button "Danger"
|
|
48
|
+
- button "With Icon"
|
|
49
|
+
"Danger / disabled": |
|
|
50
|
+
- button "Danger" [disabled]
|
|
51
|
+
- button "With Icon" [disabled]
|
|
52
|
+
"Warning / base": |
|
|
53
|
+
- button "Warning"
|
|
54
|
+
- button "With Icon"
|
|
55
|
+
"Warning / default": |
|
|
56
|
+
- button "Warning"
|
|
57
|
+
- button "With Icon"
|
|
58
|
+
"Warning / hover": |
|
|
59
|
+
- button "Warning"
|
|
60
|
+
- button "With Icon"
|
|
61
|
+
"Warning / disabled": |
|
|
62
|
+
- button "Warning" [disabled]
|
|
63
|
+
- button "With Icon" [disabled]
|
|
64
|
+
"Outline / active": |
|
|
65
|
+
- button "Outline"
|
|
66
|
+
- button "With Icon"
|
|
67
|
+
"Primary / default": |
|
|
68
|
+
- button "Primary"
|
|
69
|
+
- button "With Icon"
|
|
70
|
+
"Primary / hover": |
|
|
71
|
+
- button "Primary"
|
|
72
|
+
- button "With Icon"
|
|
73
|
+
"Primary / disabled": |
|
|
74
|
+
- button "Primary" [disabled]
|
|
75
|
+
- button "With Icon" [disabled]
|
|
76
|
+
"Primary (small)": |
|
|
77
|
+
- button "Primary"
|
|
78
|
+
- button "Secondary"
|
|
79
|
+
- button "Outline"
|
|
80
|
+
- button "Success"
|
|
81
|
+
- button "Danger"
|
|
82
|
+
- button "Warning"
|
|
83
|
+
- button "Primary"
|
|
84
|
+
- button "Secondary"
|
|
85
|
+
- button "Outline"
|
|
86
|
+
- button "Success"
|
|
87
|
+
- button "Danger"
|
|
88
|
+
- button "Warning"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"Info": |
|
|
2
|
+
- strong: Note.
|
|
3
|
+
- text: This is contextual information you should know about.
|
|
4
|
+
"Success": |
|
|
5
|
+
- strong: Tip.
|
|
6
|
+
- text: Bookmark this page so you can return when you need it.
|
|
7
|
+
"Warning": |
|
|
8
|
+
- strong: Warning.
|
|
9
|
+
- text: This is a warning callout for important caveats or potential issues.
|
|
10
|
+
"Danger": |
|
|
11
|
+
- strong: Danger.
|
|
12
|
+
- text: This action is destructive and cannot be undone.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- text: Card title Content Placeholder Bare variant
|
|
3
|
+
"default": |
|
|
4
|
+
- text: Card title Content Placeholder Bare variant
|
|
5
|
+
"hover": |
|
|
6
|
+
- text: Card title Content Placeholder Bare variant
|
|
7
|
+
"preview (click root)": |
|
|
8
|
+
- text: Card title Content Placeholder Bare variant
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- text: Preview text
|
|
3
|
+
- textbox "Preview text":
|
|
4
|
+
- /placeholder: Paste a long command or block to preview scrolling
|
|
5
|
+
- text: npx @motion-proto/live-tokens setup-claude
|
|
6
|
+
- code: npx @motion-proto/live-tokens setup-claude
|
|
7
|
+
- button "Copy to clipboard"
|
|
8
|
+
"default": |
|
|
9
|
+
- text: Preview text
|
|
10
|
+
- textbox "Preview text":
|
|
11
|
+
- /placeholder: Paste a long command or block to preview scrolling
|
|
12
|
+
- text: npx @motion-proto/live-tokens setup-claude
|
|
13
|
+
- code: npx @motion-proto/live-tokens setup-claude
|
|
14
|
+
- button "Copy to clipboard"
|
|
15
|
+
"hover": |
|
|
16
|
+
- text: Preview text
|
|
17
|
+
- textbox "Preview text":
|
|
18
|
+
- /placeholder: Paste a long command or block to preview scrolling
|
|
19
|
+
- text: npx @motion-proto/live-tokens setup-claude
|
|
20
|
+
- code: npx @motion-proto/live-tokens setup-claude
|
|
21
|
+
- button "Copy to clipboard"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"Container / Container": |
|
|
2
|
+
- button "Click to expand"
|
|
3
|
+
"Container / Header": |
|
|
4
|
+
- button "Click to expand"
|
|
5
|
+
"Container / Body": |
|
|
6
|
+
- button "Click to expand" [expanded]
|
|
7
|
+
- paragraph: This content is revealed when the section is open. Any content can go here.
|
|
8
|
+
"Chromeless / Header": |
|
|
9
|
+
- button "Click to expand"
|
|
10
|
+
"Chromeless / Body": |
|
|
11
|
+
- button "Click to expand" [expanded]
|
|
12
|
+
- paragraph: This content is revealed when the section is open. Any content can go here.
|
|
13
|
+
"With Hairline / Header": |
|
|
14
|
+
- button "Click to expand"
|
|
15
|
+
"With Hairline / Body": |
|
|
16
|
+
- button "Click to expand" [expanded]
|
|
17
|
+
- paragraph: This content is revealed when the section is open. Any content can go here.
|
|
18
|
+
"Container / Header (Hover)": |
|
|
19
|
+
- button "Click to expand"
|
|
20
|
+
"Chromeless / Header (Hover)": |
|
|
21
|
+
- button "Click to expand"
|
|
22
|
+
"With Hairline / Header (Hover)": |
|
|
23
|
+
- button "Click to expand"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"Brand": |
|
|
2
|
+
- text: Brand
|
|
3
|
+
"Accent": |
|
|
4
|
+
- text: Accent
|
|
5
|
+
"Neutral": |
|
|
6
|
+
- text: Neutral
|
|
7
|
+
"Alternate": |
|
|
8
|
+
- text: Alternate
|
|
9
|
+
"Canvas": |
|
|
10
|
+
- text: Canvas
|
|
11
|
+
"Special": |
|
|
12
|
+
- text: Special
|
|
13
|
+
"Success": |
|
|
14
|
+
- text: Success
|
|
15
|
+
"Warning": |
|
|
16
|
+
- text: Warning
|
|
17
|
+
"Danger": |
|
|
18
|
+
- text: Danger
|
|
19
|
+
"Info": |
|
|
20
|
+
- text: Info
|
|
21
|
+
"Brand / base": |
|
|
22
|
+
- text: Brand
|
|
23
|
+
"Brand / colors": |
|
|
24
|
+
- text: Brand
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- dialog "Sample Dialog":
|
|
3
|
+
- heading "Sample Dialog" [level=3]
|
|
4
|
+
- button "Close"
|
|
5
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
6
|
+
- button "Cancel"
|
|
7
|
+
- button "Save"
|
|
8
|
+
"scrim": |
|
|
9
|
+
- dialog "Sample Dialog":
|
|
10
|
+
- heading "Sample Dialog" [level=3]
|
|
11
|
+
- button "Close"
|
|
12
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
13
|
+
- button "Cancel"
|
|
14
|
+
- button "Save"
|
|
15
|
+
"dialog": |
|
|
16
|
+
- dialog "Sample Dialog":
|
|
17
|
+
- heading "Sample Dialog" [level=3]
|
|
18
|
+
- button "Close"
|
|
19
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
20
|
+
- button "Cancel"
|
|
21
|
+
- button "Save"
|
|
22
|
+
"header": |
|
|
23
|
+
- dialog "Sample Dialog":
|
|
24
|
+
- heading "Sample Dialog" [level=3]
|
|
25
|
+
- button "Close"
|
|
26
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
27
|
+
- button "Cancel"
|
|
28
|
+
- button "Save"
|
|
29
|
+
"body": |
|
|
30
|
+
- dialog "Sample Dialog":
|
|
31
|
+
- heading "Sample Dialog" [level=3]
|
|
32
|
+
- button "Close"
|
|
33
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
34
|
+
- button "Cancel"
|
|
35
|
+
- button "Save"
|
|
36
|
+
"footer": |
|
|
37
|
+
- dialog "Sample Dialog":
|
|
38
|
+
- heading "Sample Dialog" [level=3]
|
|
39
|
+
- button "Close"
|
|
40
|
+
- paragraph: This is the dialog body content. It supports any slotted content including forms, lists, or other components.
|
|
41
|
+
- button "Cancel"
|
|
42
|
+
- button "Save"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"Primary / base": |
|
|
2
|
+
- button "primary action"
|
|
3
|
+
"Secondary / base": |
|
|
4
|
+
- button "secondary action"
|
|
5
|
+
"Secondary / default": |
|
|
6
|
+
- button "secondary action"
|
|
7
|
+
"Secondary / hover": |
|
|
8
|
+
- button "secondary action"
|
|
9
|
+
"Secondary / disabled": |
|
|
10
|
+
- button "secondary action" [disabled]
|
|
11
|
+
"Outline / base": |
|
|
12
|
+
- button "outline action"
|
|
13
|
+
"Outline / default": |
|
|
14
|
+
- button "outline action"
|
|
15
|
+
"Outline / hover": |
|
|
16
|
+
- button "outline action"
|
|
17
|
+
"Outline / disabled": |
|
|
18
|
+
- button "outline action" [disabled]
|
|
19
|
+
"Success / base": |
|
|
20
|
+
- button "success action"
|
|
21
|
+
"Success / default": |
|
|
22
|
+
- button "success action"
|
|
23
|
+
"Success / hover": |
|
|
24
|
+
- button "success action"
|
|
25
|
+
"Success / disabled": |
|
|
26
|
+
- button "success action" [disabled]
|
|
27
|
+
"Danger / base": |
|
|
28
|
+
- button "danger action"
|
|
29
|
+
"Danger / default": |
|
|
30
|
+
- button "danger action"
|
|
31
|
+
"Danger / hover": |
|
|
32
|
+
- button "danger action"
|
|
33
|
+
"Danger / disabled": |
|
|
34
|
+
- button "danger action" [disabled]
|
|
35
|
+
"Warning / base": |
|
|
36
|
+
- button "warning action"
|
|
37
|
+
"Warning / default": |
|
|
38
|
+
- button "warning action"
|
|
39
|
+
"Warning / hover": |
|
|
40
|
+
- button "warning action"
|
|
41
|
+
"Warning / disabled": |
|
|
42
|
+
- button "warning action" [disabled]
|
|
43
|
+
"Outline / active": |
|
|
44
|
+
- button "outline action"
|
|
45
|
+
"Primary / default": |
|
|
46
|
+
- button "primary action"
|
|
47
|
+
"Primary / hover": |
|
|
48
|
+
- button "primary action"
|
|
49
|
+
"Primary / disabled": |
|
|
50
|
+
- button "primary action" [disabled]
|
|
51
|
+
"Primary (small)": |
|
|
52
|
+
- button "primary action"
|
|
53
|
+
- button "secondary action"
|
|
54
|
+
- button "outline action"
|
|
55
|
+
- button "success action"
|
|
56
|
+
- button "danger action"
|
|
57
|
+
- button "warning action"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"Default": |
|
|
2
|
+
- img "Demo"
|
|
3
|
+
- paragraph:
|
|
4
|
+
- text: "Use zoom on hover: every image scales on hover (a page can still force it per image with the"
|
|
5
|
+
- code: zoom
|
|
6
|
+
- text: "prop). Overflow scaling on (default): the content zooms inside the fixed frame, masked by overflow. Off: the whole framed image grows past its box. Override per image with"
|
|
7
|
+
- code: overflowScaling
|
|
8
|
+
- text: .
|
|
9
|
+
"Bare": |
|
|
10
|
+
- img "Demo"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- 'button "Expand image: Newspaper" [expanded]':
|
|
3
|
+
- img "Newspaper"
|
|
4
|
+
- img "Newspaper"
|
|
5
|
+
- button "Close"
|
|
6
|
+
- button "Previous image"
|
|
7
|
+
- button "Next image"
|
|
8
|
+
- button "Zoom out" [disabled]
|
|
9
|
+
- text: 59%
|
|
10
|
+
- button "Zoom in"
|
|
11
|
+
"tile": |
|
|
12
|
+
- 'button "Expand image: Newspaper" [expanded]':
|
|
13
|
+
- img "Newspaper"
|
|
14
|
+
- img "Newspaper"
|
|
15
|
+
- button "Close"
|
|
16
|
+
- button "Previous image"
|
|
17
|
+
- button "Next image"
|
|
18
|
+
- button "Zoom out" [disabled]
|
|
19
|
+
- text: 59%
|
|
20
|
+
- button "Zoom in"
|
|
21
|
+
"overlay": |
|
|
22
|
+
- 'button "Expand image: Newspaper" [expanded]':
|
|
23
|
+
- img "Newspaper"
|
|
24
|
+
- img "Newspaper"
|
|
25
|
+
- button "Close"
|
|
26
|
+
- button "Previous image"
|
|
27
|
+
- button "Next image"
|
|
28
|
+
- button "Zoom out" [disabled]
|
|
29
|
+
- text: 59%
|
|
30
|
+
- button "Zoom in"
|
|
31
|
+
"chrome": |
|
|
32
|
+
- 'button "Expand image: Newspaper" [expanded]':
|
|
33
|
+
- img "Newspaper"
|
|
34
|
+
- img "Newspaper"
|
|
35
|
+
- button "Close"
|
|
36
|
+
- button "Previous image"
|
|
37
|
+
- button "Next image"
|
|
38
|
+
- button "Zoom out" [disabled]
|
|
39
|
+
- text: 59%
|
|
40
|
+
- button "Zoom in"
|
|
41
|
+
"preview (click nextButton)": |
|
|
42
|
+
- 'button "Expand image: Newspaper" [expanded]':
|
|
43
|
+
- img "Newspaper"
|
|
44
|
+
- img "Newspaper"
|
|
45
|
+
- button "Close"
|
|
46
|
+
- button "Previous image"
|
|
47
|
+
- button "Next image"
|
|
48
|
+
- button "Zoom out" [disabled]
|
|
49
|
+
- text: 59%
|
|
50
|
+
- button "Zoom in"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"Save button / default": |
|
|
2
|
+
- text: Editing value...
|
|
3
|
+
- button "Save"
|
|
4
|
+
- button "Cancel"
|
|
5
|
+
"Save button / hover": |
|
|
6
|
+
- text: Editing value...
|
|
7
|
+
- button "Save"
|
|
8
|
+
- button "Cancel"
|
|
9
|
+
"Cancel button / default": |
|
|
10
|
+
- text: Editing value...
|
|
11
|
+
- button "Save"
|
|
12
|
+
- button "Cancel"
|
|
13
|
+
"Cancel button / hover": |
|
|
14
|
+
- text: Editing value...
|
|
15
|
+
- button "Save"
|
|
16
|
+
- button "Cancel"
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- text: Field label
|
|
3
|
+
- textbox "Field label" [invalid]:
|
|
4
|
+
- /placeholder: Enter password
|
|
5
|
+
- button "Show password"
|
|
6
|
+
- paragraph: Helper text describing the field.
|
|
7
|
+
- alert: Please enter a valid value.
|
|
8
|
+
"error": |
|
|
9
|
+
- text: Field label
|
|
10
|
+
- textbox "Field label" [invalid]:
|
|
11
|
+
- /placeholder: Enter password
|
|
12
|
+
- button "Show password"
|
|
13
|
+
- paragraph: Helper text describing the field.
|
|
14
|
+
- alert: Please enter a valid value.
|
|
15
|
+
"field": |
|
|
16
|
+
- text: Field label
|
|
17
|
+
- textbox "Field label" [invalid]:
|
|
18
|
+
- /placeholder: Enter password
|
|
19
|
+
- button "Show password"
|
|
20
|
+
- paragraph: Helper text describing the field.
|
|
21
|
+
- alert: Please enter a valid value.
|
|
22
|
+
"default": |
|
|
23
|
+
- text: Field label
|
|
24
|
+
- textbox "Field label" [invalid]:
|
|
25
|
+
- /placeholder: Enter password
|
|
26
|
+
- button "Show password"
|
|
27
|
+
- paragraph: Helper text describing the field.
|
|
28
|
+
- alert: Please enter a valid value.
|
|
29
|
+
"disabled": |
|
|
30
|
+
- text: Field label
|
|
31
|
+
- textbox "Field label" [disabled] [invalid]:
|
|
32
|
+
- /placeholder: Enter password
|
|
33
|
+
- button "Show password" [disabled]
|
|
34
|
+
- paragraph: Helper text describing the field.
|
|
35
|
+
- alert: Please enter a valid value.
|
|
36
|
+
"label": |
|
|
37
|
+
- text: Field label
|
|
38
|
+
- textbox "Field label" [invalid]:
|
|
39
|
+
- /placeholder: Enter password
|
|
40
|
+
- button "Show password"
|
|
41
|
+
- paragraph: Helper text describing the field.
|
|
42
|
+
- alert: Please enter a valid value.
|
|
43
|
+
"hint": |
|
|
44
|
+
- text: Field label
|
|
45
|
+
- textbox "Field label" [invalid]:
|
|
46
|
+
- /placeholder: Enter password
|
|
47
|
+
- button "Show password"
|
|
48
|
+
- paragraph: Helper text describing the field.
|
|
49
|
+
- alert: Please enter a valid value.
|
|
50
|
+
"focused (password, Error off)": |
|
|
51
|
+
- text: Field label
|
|
52
|
+
- textbox "Field label":
|
|
53
|
+
- /placeholder: Enter password
|
|
54
|
+
- button "Show password"
|
|
55
|
+
- paragraph: Helper text describing the field.
|
|
56
|
+
"disabled (password, Error off)": |
|
|
57
|
+
- text: Field label
|
|
58
|
+
- textbox "Field label" [disabled]:
|
|
59
|
+
- /placeholder: Enter password
|
|
60
|
+
- button "Show password" [disabled]
|
|
61
|
+
- paragraph: Helper text describing the field.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"menu": |
|
|
2
|
+
- listbox "Options":
|
|
3
|
+
- option "Option one"
|
|
4
|
+
- option "Option two"
|
|
5
|
+
- option "Option three"
|
|
6
|
+
- option "Option four" [disabled]
|
|
7
|
+
"default item": |
|
|
8
|
+
- listbox "Options":
|
|
9
|
+
- option "Option one"
|
|
10
|
+
- option "Option two"
|
|
11
|
+
- option "Option three"
|
|
12
|
+
- option "Option four" [disabled]
|
|
13
|
+
"hover item": |
|
|
14
|
+
- listbox "Options":
|
|
15
|
+
- option "Option one"
|
|
16
|
+
- option "Option two"
|
|
17
|
+
- option "Option three"
|
|
18
|
+
- option "Option four" [disabled]
|
|
19
|
+
"selected item": |
|
|
20
|
+
- listbox "Options":
|
|
21
|
+
- option "Option one"
|
|
22
|
+
- option "Option two" [selected]
|
|
23
|
+
- option "Option three"
|
|
24
|
+
- option "Option four" [disabled]
|
|
25
|
+
"disabled item": |
|
|
26
|
+
- listbox "Options":
|
|
27
|
+
- option "Option one"
|
|
28
|
+
- option "Option two"
|
|
29
|
+
- option "Option three"
|
|
30
|
+
- option "Option four" [disabled]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"Info": |
|
|
2
|
+
- text: Information
|
|
3
|
+
- button "Action"
|
|
4
|
+
- button "Dismiss"
|
|
5
|
+
- text: This is an informational message to keep you updated.
|
|
6
|
+
"Success": |
|
|
7
|
+
- text: Success
|
|
8
|
+
- button "Action"
|
|
9
|
+
- button "Dismiss"
|
|
10
|
+
- text: Your action was completed successfully.
|
|
11
|
+
"Warning": |
|
|
12
|
+
- text: Warning
|
|
13
|
+
- button "Action"
|
|
14
|
+
- button "Dismiss"
|
|
15
|
+
- text: "Caution: This action may have unintended consequences."
|
|
16
|
+
"Danger": |
|
|
17
|
+
- text: Danger
|
|
18
|
+
- button "Action"
|
|
19
|
+
- button "Dismiss"
|
|
20
|
+
- text: "Critical error: Please address this issue immediately."
|
|
21
|
+
"Info / base": |
|
|
22
|
+
- text: Information
|
|
23
|
+
- button "Action"
|
|
24
|
+
- button "Dismiss"
|
|
25
|
+
- text: This is an informational message to keep you updated.
|
|
26
|
+
"Info / colors": |
|
|
27
|
+
- text: Information
|
|
28
|
+
- button "Action"
|
|
29
|
+
- button "Dismiss"
|
|
30
|
+
- text: This is an informational message to keep you updated.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"preview": |
|
|
2
|
+
- radiogroup "Priority":
|
|
3
|
+
- radio "Defense"
|
|
4
|
+
- radio "Economy" [checked]
|
|
5
|
+
- radio "Loyalty"
|
|
6
|
+
"hover": |
|
|
7
|
+
- radiogroup "Priority":
|
|
8
|
+
- radio "Defense"
|
|
9
|
+
- radio "Economy" [checked]
|
|
10
|
+
- radio "Loyalty"
|
|
11
|
+
"selected": |
|
|
12
|
+
- radiogroup "Priority":
|
|
13
|
+
- radio "Defense" [checked]
|
|
14
|
+
- radio "Economy" [checked]
|
|
15
|
+
- radio "Loyalty" [checked]
|
|
16
|
+
"default": |
|
|
17
|
+
- radiogroup "Priority":
|
|
18
|
+
- radio "Defense"
|
|
19
|
+
- radio "Economy" [checked]
|
|
20
|
+
- radio "Loyalty"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"Large (Show description on, Show eyebrow on)": |
|
|
2
|
+
- text: Section Eyebrow Large Section
|
|
3
|
+
- paragraph: This text is meant to provide additional context or meaning.
|
|
4
|
+
"Medium (Show description on, Show eyebrow on)": |
|
|
5
|
+
- text: Section Eyebrow Medium Section
|
|
6
|
+
- paragraph: This text is meant to provide additional context or meaning.
|
|
7
|
+
"Small (Show description on, Show eyebrow on)": |
|
|
8
|
+
- text: Section Eyebrow Small Section
|
|
9
|
+
- paragraph: This text is meant to provide additional context or meaning.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"control bar": |
|
|
2
|
+
- radiogroup:
|
|
3
|
+
- radio "Option 1"
|
|
4
|
+
- radio "Option 2"
|
|
5
|
+
- radio "Option 3"
|
|
6
|
+
"option base": |
|
|
7
|
+
- radiogroup:
|
|
8
|
+
- radio "Option 1"
|
|
9
|
+
- radio "Option 2"
|
|
10
|
+
- radio "Option 3"
|
|
11
|
+
"default option": |
|
|
12
|
+
- radiogroup:
|
|
13
|
+
- radio "Option 1"
|
|
14
|
+
- radio "Option 2"
|
|
15
|
+
- radio "Option 3"
|
|
16
|
+
"selected option": |
|
|
17
|
+
- radiogroup:
|
|
18
|
+
- radio "Option 1"
|
|
19
|
+
- radio "Option 2" [checked]
|
|
20
|
+
- radio "Option 3"
|
|
21
|
+
"disabled option": |
|
|
22
|
+
- radiogroup:
|
|
23
|
+
- radio "Option 1" [disabled]
|
|
24
|
+
- radio "Option 2" [disabled]
|
|
25
|
+
- radio "Option 3" [disabled]
|
|
26
|
+
"hover option": |
|
|
27
|
+
- radiogroup:
|
|
28
|
+
- radio "Option 1"
|
|
29
|
+
- radio "Option 2"
|
|
30
|
+
- radio "Option 3"
|
|
31
|
+
"selected option (small)": |
|
|
32
|
+
- radiogroup:
|
|
33
|
+
- radio "Option 1"
|
|
34
|
+
- radio "Option 2" [checked]
|
|
35
|
+
- radio "Option 3"
|