@teseor/css 1.14.3 → 1.15.0
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/package.json +1 -1
- package/src/base/root.docs.html +20 -0
- package/src/base/typography/typography.docs.html +161 -0
- package/src/components/actions/button/button.docs.html +76 -0
- package/src/components/actions/button/button.visual.spec.ts +3 -3
- package/src/components/actions/button-group/button-group.docs.html +47 -0
- package/src/components/actions/button-group/button-group.visual.spec.ts +3 -3
- package/src/components/actions/close-button/close-button.docs.html +77 -0
- package/src/components/actions/close-button/close-button.visual.spec.ts +3 -3
- package/src/components/content/divider/divider.docs.html +27 -0
- package/src/components/content/divider/divider.visual.spec.ts +3 -3
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
- package/src/components/content/scroll-area/scroll-area.visual.spec.ts +3 -3
- package/src/components/content/spacer/spacer.docs.html +23 -0
- package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
- package/src/components/data-display/avatar/avatar.docs.html +67 -0
- package/src/components/data-display/avatar/avatar.visual.spec.ts +3 -3
- package/src/components/data-display/badge/badge.docs.html +39 -0
- package/src/components/data-display/badge/badge.visual.spec.ts +3 -3
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/components/data-display/card/card.docs.html +36 -0
- package/src/components/data-display/card/card.visual.spec.ts +3 -3
- package/src/components/data-display/data-list/data-list-visual.png +0 -0
- package/src/components/data-display/data-list/data-list.docs.html +97 -0
- package/src/components/data-display/data-list/data-list.visual.spec.ts +3 -3
- package/src/components/data-display/icon/icon.docs.html +72 -0
- package/src/components/data-display/icon/icon.visual.spec.ts +3 -3
- package/src/components/data-display/image/image-visual.png +0 -0
- package/src/components/data-display/image/image.docs.html +67 -0
- package/src/components/data-display/image/image.visual.spec.ts +3 -3
- package/src/components/data-display/stat/stat.docs.html +35 -0
- package/src/components/data-display/stat/stat.visual.spec.ts +3 -3
- package/src/components/data-display/status/status.docs.html +67 -0
- package/src/components/data-display/status/status.visual.spec.ts +3 -3
- package/src/components/data-display/table/table.docs.html +73 -0
- package/src/components/data-display/table/table.visual.spec.ts +3 -3
- package/src/components/data-display/tag/tag.docs.html +42 -0
- package/src/components/data-display/tag/tag.visual.spec.ts +3 -3
- package/src/components/disclosure/accordion/accordion.docs.html +83 -0
- package/src/components/disclosure/accordion/accordion.visual.spec.ts +3 -3
- package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
- package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +3 -3
- package/src/components/feedback/alert/alert.docs.html +90 -0
- package/src/components/feedback/alert/alert.visual.spec.ts +3 -3
- package/src/components/feedback/progress/progress.docs.html +65 -0
- package/src/components/feedback/progress/progress.visual.spec.ts +3 -3
- package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
- package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +3 -3
- package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
- package/src/components/feedback/skeleton/skeleton.visual.spec.ts +3 -3
- package/src/components/feedback/spinner/spinner.docs.html +28 -0
- package/src/components/feedback/spinner/spinner.visual.spec.ts +3 -3
- package/src/components/feedback/toast/toast-visual.png +0 -0
- package/src/components/feedback/toast/toast.docs.html +109 -0
- package/src/components/feedback/toast/toast.visual.spec.ts +3 -3
- package/src/components/forms/checkbox/checkbox.docs.html +33 -0
- package/src/components/forms/checkbox/checkbox.visual.spec.ts +3 -3
- package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
- package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +3 -3
- package/src/components/forms/field/field.docs.html +63 -0
- package/src/components/forms/field/field.visual.spec.ts +3 -3
- package/src/components/forms/fieldset/fieldset.docs.html +122 -0
- package/src/components/forms/fieldset/fieldset.visual.spec.ts +3 -3
- package/src/components/forms/form/form.docs.html +132 -0
- package/src/components/forms/form/form.visual.spec.ts +3 -3
- package/src/components/forms/form-error/form-error.docs.html +18 -0
- package/src/components/forms/form-error/form-error.visual.spec.ts +3 -3
- package/src/components/forms/form-helper/form-helper.docs.html +42 -0
- package/src/components/forms/form-helper/form-helper.visual.spec.ts +3 -3
- package/src/components/forms/input/input-visual.png +0 -0
- package/src/components/forms/input/input.docs.html +69 -0
- package/src/components/forms/input/input.visual.spec.ts +3 -3
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/components/forms/label/label.docs.html +29 -0
- package/src/components/forms/label/label.visual.spec.ts +3 -3
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.docs.html +100 -0
- package/src/components/forms/number-input/number-input.visual.spec.ts +3 -3
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.docs.html +88 -0
- package/src/components/forms/password-input/password-input.visual.spec.ts +3 -3
- package/src/components/forms/radio/radio.docs.html +52 -0
- package/src/components/forms/radio/radio.visual.spec.ts +3 -3
- package/src/components/forms/radio-group/radio-group.docs.html +100 -0
- package/src/components/forms/radio-group/radio-group.visual.spec.ts +3 -3
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/components/forms/search-input/search-input.docs.html +87 -0
- package/src/components/forms/search-input/search-input.visual.spec.ts +3 -3
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/components/forms/select/select.docs.html +70 -0
- package/src/components/forms/select/select.visual.spec.ts +3 -3
- package/src/components/forms/slider/slider-visual.png +0 -0
- package/src/components/forms/slider/slider.docs.html +25 -0
- package/src/components/forms/slider/slider.visual.spec.ts +3 -3
- package/src/components/forms/textarea/textarea-visual.png +0 -0
- package/src/components/forms/textarea/textarea.docs.html +39 -0
- package/src/components/forms/textarea/textarea.visual.spec.ts +3 -3
- package/src/components/forms/toggle/toggle.docs.html +64 -0
- package/src/components/forms/toggle/toggle.visual.spec.ts +3 -3
- package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
- package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +3 -3
- package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +3 -3
- package/src/components/navigation/menu/menu.docs.html +122 -0
- package/src/components/navigation/menu/menu.visual.spec.ts +3 -3
- package/src/components/navigation/nav/nav.docs.html +74 -0
- package/src/components/navigation/nav/nav.visual.spec.ts +3 -3
- package/src/components/navigation/pagination/pagination-visual.png +0 -0
- package/src/components/navigation/pagination/pagination.docs.html +116 -0
- package/src/components/navigation/pagination/pagination.visual.spec.ts +3 -3
- package/src/components/navigation/tabs/tabs.docs.html +66 -0
- package/src/components/navigation/tabs/tabs.visual.spec.ts +3 -3
- package/src/components/overlays/dialog/dialog.docs.html +61 -0
- package/src/components/overlays/dialog/dialog.visual.spec.ts +3 -3
- package/src/components/overlays/drawer/drawer-visual.png +0 -0
- package/src/components/overlays/drawer/drawer.docs.html +90 -0
- package/src/components/overlays/drawer/drawer.visual.spec.ts +3 -3
- package/src/components/overlays/modal/modal.docs.html +69 -0
- package/src/components/overlays/modal/modal.visual.spec.ts +3 -3
- package/src/components/overlays/overlay/overlay.docs.html +30 -0
- package/src/components/overlays/overlay/overlay.visual.spec.ts +3 -3
- package/src/components/overlays/popover/popover.docs.html +41 -0
- package/src/components/overlays/popover/popover.visual.spec.ts +3 -3
- package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
- package/src/components/overlays/tooltip/tooltip.visual.spec.ts +3 -3
- package/src/components/typography/blockquote/blockquote.docs.html +24 -0
- package/src/components/typography/blockquote/blockquote.visual.spec.ts +3 -3
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/components/typography/code/code.docs.html +23 -0
- package/src/components/typography/code/code.visual.spec.ts +3 -3
- package/src/components/typography/code-block/code-block-visual.png +0 -0
- package/src/components/typography/code-block/code-block.docs.html +87 -0
- package/src/components/typography/code-block/code-block.visual.spec.ts +3 -3
- package/src/components/typography/heading/heading-visual.png +0 -0
- package/src/components/typography/heading/heading.docs.html +26 -0
- package/src/components/typography/heading/heading.visual.spec.ts +3 -3
- package/src/components/typography/kbd/kbd.docs.html +16 -0
- package/src/components/typography/kbd/kbd.visual.spec.ts +3 -3
- package/src/components/typography/link/link.docs.html +33 -0
- package/src/components/typography/link/link.visual.spec.ts +3 -3
- package/src/components/typography/list/list.docs.html +79 -0
- package/src/components/typography/list/list.visual.spec.ts +3 -3
- package/src/components/typography/mark/mark.docs.html +12 -0
- package/src/components/typography/mark/mark.visual.spec.ts +3 -3
- package/src/config/guides/accessibility.docs.html +108 -0
- package/src/config/guides/getting-started.docs.html +47 -0
- package/src/config/guides/theming.docs.html +71 -0
- package/src/config/tokens/colors/colors.docs.html +75 -0
- package/src/config/tokens/design-tokens.docs.html +116 -0
- package/src/config/tokens/grid/grid.docs.html +12 -0
- package/src/config/tokens/spacing/spacing.docs.html +33 -0
- package/src/debug/debug.docs.html +29 -0
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/layout/app-shell/app-shell.docs.html +102 -0
- package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
- package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
- package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.docs.html +27 -0
- package/src/layout/box/box.visual.spec.ts +3 -3
- package/src/layout/center/center.docs.html +26 -0
- package/src/layout/center/center.visual.spec.ts +3 -3
- package/src/layout/column/column.docs.html +32 -0
- package/src/layout/column/column.visual.spec.ts +3 -3
- package/src/layout/container/container.docs.html +37 -0
- package/src/layout/content/content-visual.png +0 -0
- package/src/layout/content/content.docs.html +38 -0
- package/src/layout/content/content.visual.spec.ts +7 -3
- package/src/layout/footer/footer-visual.png +0 -0
- package/src/layout/footer/footer.docs.html +73 -0
- package/src/layout/footer/footer.visual.spec.ts +7 -3
- package/src/layout/grid/grid.docs.html +87 -0
- package/src/layout/grid/grid.visual.spec.ts +3 -3
- package/src/layout/main/main.docs.html +31 -0
- package/src/layout/nav-rail/nav-rail-visual.png +0 -0
- package/src/layout/nav-rail/nav-rail.docs.html +42 -0
- package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
- package/src/layout/page-header/page-header.docs.html +52 -0
- package/src/layout/page-header/page-header.visual.spec.ts +7 -3
- package/src/layout/row/row.docs.html +47 -0
- package/src/layout/row/row.visual.spec.ts +3 -3
- package/src/layout/sidebar/sidebar-visual.png +0 -0
- package/src/layout/sidebar/sidebar.docs.html +30 -0
- package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
- package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
- package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
- package/src/layout/topbar/topbar-visual.png +0 -0
- package/src/layout/topbar/topbar.docs.html +64 -0
- package/src/layout/topbar/topbar.visual.spec.ts +7 -3
- package/src/utilities/container/container.docs.html +34 -0
- package/src/utilities/display/display.docs.html +30 -0
- package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
- package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
- package/src/utilities/spacing/spacing.docs.html +29 -0
- package/src/utilities/text/text.docs.html +66 -0
- package/src/utilities/view-transition/view-transition.docs.html +52 -0
- package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
- package/src/base/root.docs.json +0 -35
- package/src/base/typography/typography.docs.json +0 -328
- package/src/components/actions/button/button.docs.json +0 -264
- package/src/components/actions/button-group/button-group.docs.json +0 -151
- package/src/components/actions/close-button/close-button.docs.json +0 -265
- package/src/components/content/divider/divider.docs.json +0 -113
- package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
- package/src/components/content/spacer/spacer.docs.json +0 -102
- package/src/components/data-display/avatar/avatar.docs.json +0 -245
- package/src/components/data-display/badge/badge.docs.json +0 -114
- package/src/components/data-display/card/card.docs.json +0 -229
- package/src/components/data-display/data-list/data-list.docs.json +0 -259
- package/src/components/data-display/icon/icon.docs.json +0 -307
- package/src/components/data-display/image/image.docs.json +0 -337
- package/src/components/data-display/stat/stat.docs.json +0 -114
- package/src/components/data-display/status/status.docs.json +0 -147
- package/src/components/data-display/table/table.docs.json +0 -184
- package/src/components/data-display/tag/tag.docs.json +0 -146
- package/src/components/disclosure/accordion/accordion.docs.json +0 -206
- package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
- package/src/components/feedback/alert/alert.docs.json +0 -325
- package/src/components/feedback/progress/progress.docs.json +0 -315
- package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
- package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
- package/src/components/feedback/spinner/spinner.docs.json +0 -121
- package/src/components/feedback/toast/toast.docs.json +0 -418
- package/src/components/forms/checkbox/checkbox.docs.json +0 -166
- package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
- package/src/components/forms/field/field.docs.json +0 -276
- package/src/components/forms/fieldset/fieldset.docs.json +0 -520
- package/src/components/forms/form/form.docs.json +0 -482
- package/src/components/forms/form-error/form-error.docs.json +0 -61
- package/src/components/forms/form-helper/form-helper.docs.json +0 -151
- package/src/components/forms/input/input.docs.json +0 -306
- package/src/components/forms/label/label.docs.json +0 -110
- package/src/components/forms/number-input/number-input.docs.json +0 -311
- package/src/components/forms/password-input/password-input.docs.json +0 -316
- package/src/components/forms/radio/radio.docs.json +0 -236
- package/src/components/forms/radio-group/radio-group.docs.json +0 -351
- package/src/components/forms/search-input/search-input.docs.json +0 -293
- package/src/components/forms/select/select.docs.json +0 -231
- package/src/components/forms/slider/slider.docs.json +0 -144
- package/src/components/forms/textarea/textarea.docs.json +0 -229
- package/src/components/forms/toggle/toggle.docs.json +0 -229
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
- package/src/components/navigation/menu/menu.docs.json +0 -326
- package/src/components/navigation/nav/nav.docs.json +0 -304
- package/src/components/navigation/pagination/pagination.docs.json +0 -483
- package/src/components/navigation/tabs/tabs.docs.json +0 -243
- package/src/components/overlays/dialog/dialog.docs.json +0 -200
- package/src/components/overlays/drawer/drawer.docs.json +0 -307
- package/src/components/overlays/modal/modal.docs.json +0 -252
- package/src/components/overlays/overlay/overlay.docs.json +0 -138
- package/src/components/overlays/popover/popover.docs.json +0 -154
- package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
- package/src/components/typography/blockquote/blockquote.docs.json +0 -89
- package/src/components/typography/code/code.docs.json +0 -104
- package/src/components/typography/code-block/code-block.docs.json +0 -308
- package/src/components/typography/heading/heading.docs.json +0 -120
- package/src/components/typography/kbd/kbd.docs.json +0 -61
- package/src/components/typography/link/link.docs.json +0 -149
- package/src/components/typography/list/list.docs.json +0 -296
- package/src/components/typography/mark/mark.docs.json +0 -60
- package/src/config/guides/accessibility.docs.json +0 -126
- package/src/config/guides/getting-started.docs.json +0 -106
- package/src/config/guides/theming.docs.json +0 -289
- package/src/config/tokens/colors/colors.docs.json +0 -316
- package/src/config/tokens/design-tokens.docs.json +0 -239
- package/src/config/tokens/grid/grid.docs.json +0 -54
- package/src/config/tokens/spacing/spacing.docs.json +0 -114
- package/src/debug/debug.docs.json +0 -96
- package/src/layout/app-shell/app-shell.docs.json +0 -155
- package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
- package/src/layout/box/box.docs.json +0 -93
- package/src/layout/center/center.docs.json +0 -63
- package/src/layout/column/column.docs.json +0 -157
- package/src/layout/container/container.docs.json +0 -85
- package/src/layout/content/content.docs.json +0 -82
- package/src/layout/footer/footer.docs.json +0 -119
- package/src/layout/grid/grid.docs.json +0 -493
- package/src/layout/main/main.docs.json +0 -87
- package/src/layout/nav-rail/nav-rail.docs.json +0 -76
- package/src/layout/page-header/page-header.docs.json +0 -124
- package/src/layout/row/row.docs.json +0 -237
- package/src/layout/sidebar/sidebar.docs.json +0 -63
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
- package/src/layout/topbar/topbar.docs.json +0 -110
- package/src/utilities/container/container.docs.json +0 -121
- package/src/utilities/display/display.docs.json +0 -83
- package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
- package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
- package/src/utilities/spacing/spacing.docs.json +0 -133
- package/src/utilities/text/text.docs.json +0 -191
- package/src/utilities/view-transition/view-transition.docs.json +0 -63
- package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "form-helper",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Form Helper",
|
|
5
|
-
"description": "Helper text for form fields. Provides additional context or instructions.",
|
|
6
|
-
"api": "./form-helper.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{ "tag": "span", "class": "ui-form-helper", "text": "Must be at least 8 characters" }
|
|
14
|
-
],
|
|
15
|
-
"code": "<span class=\"ui-form-helper\">Must be at least 8 characters</span>"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"title": "With Input Field",
|
|
21
|
-
"description": "Helper text paired with a form input for context.",
|
|
22
|
-
"examples": [
|
|
23
|
-
{
|
|
24
|
-
"layout": "column",
|
|
25
|
-
"items": [
|
|
26
|
-
{
|
|
27
|
-
"tag": "div",
|
|
28
|
-
"class": "ui-column ui-column--xs",
|
|
29
|
-
"children": [
|
|
30
|
-
{
|
|
31
|
-
"tag": "input",
|
|
32
|
-
"class": "ui-input",
|
|
33
|
-
"attrs": { "type": "email", "placeholder": "Email address" }
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"tag": "span",
|
|
37
|
-
"class": "ui-form-helper",
|
|
38
|
-
"text": "We will never share your email"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"code": "<input class=\"ui-input\" type=\"email\" placeholder=\"Email address\">\n<span class=\"ui-form-helper\">We will never share your email</span>"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"title": "Error State",
|
|
49
|
-
"description": "Helper text styled for validation errors using the input error context.",
|
|
50
|
-
"examples": [
|
|
51
|
-
{
|
|
52
|
-
"layout": "column",
|
|
53
|
-
"items": [
|
|
54
|
-
{
|
|
55
|
-
"tag": "div",
|
|
56
|
-
"class": "ui-column ui-column--xs",
|
|
57
|
-
"children": [
|
|
58
|
-
{
|
|
59
|
-
"tag": "input",
|
|
60
|
-
"class": "ui-input ui-input--error",
|
|
61
|
-
"attrs": { "type": "text", "value": "abc" }
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"tag": "span",
|
|
65
|
-
"class": "ui-form-helper",
|
|
66
|
-
"attrs": { "style": "color: var(--ui-color-danger);" },
|
|
67
|
-
"text": "Password must be at least 8 characters"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"code": "<input class=\"ui-input ui-input--error\" value=\"abc\">\n<span class=\"ui-form-helper\" style=\"color: var(--ui-color-danger);\">Password must be at least 8 characters</span>"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"title": "Success State",
|
|
78
|
-
"description": "Helper text for successful validation.",
|
|
79
|
-
"examples": [
|
|
80
|
-
{
|
|
81
|
-
"layout": "column",
|
|
82
|
-
"items": [
|
|
83
|
-
{
|
|
84
|
-
"tag": "div",
|
|
85
|
-
"class": "ui-column ui-column--xs",
|
|
86
|
-
"children": [
|
|
87
|
-
{
|
|
88
|
-
"tag": "input",
|
|
89
|
-
"class": "ui-input ui-input--success",
|
|
90
|
-
"attrs": { "type": "text", "value": "strongpassword123" }
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"tag": "span",
|
|
94
|
-
"class": "ui-form-helper",
|
|
95
|
-
"attrs": { "style": "color: var(--ui-color-success);" },
|
|
96
|
-
"text": "Password strength: strong"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"code": "<input class=\"ui-input ui-input--success\" value=\"strongpassword123\">\n<span class=\"ui-form-helper\" style=\"color: var(--ui-color-success);\">Password strength: strong</span>"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"title": "With Select",
|
|
107
|
-
"description": "Helper text paired with a select field.",
|
|
108
|
-
"examples": [
|
|
109
|
-
{
|
|
110
|
-
"layout": "column",
|
|
111
|
-
"items": [
|
|
112
|
-
{
|
|
113
|
-
"tag": "div",
|
|
114
|
-
"class": "ui-column ui-column--xs",
|
|
115
|
-
"children": [
|
|
116
|
-
{
|
|
117
|
-
"tag": "select",
|
|
118
|
-
"class": "ui-select",
|
|
119
|
-
"children": [
|
|
120
|
-
{ "tag": "option", "text": "Choose a country" },
|
|
121
|
-
{ "tag": "option", "text": "United States" },
|
|
122
|
-
{ "tag": "option", "text": "Canada" }
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"tag": "span",
|
|
127
|
-
"class": "ui-form-helper",
|
|
128
|
-
"text": "Required for shipping calculations"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"code": "<select class=\"ui-select\">\n <option>Choose a country</option>\n</select>\n<span class=\"ui-form-helper\">Required for shipping calculations</span>"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"customization": [
|
|
139
|
-
{
|
|
140
|
-
"token": "--ui-form-helper-color",
|
|
141
|
-
"default": "var(--ui-color-text-muted)",
|
|
142
|
-
"description": "Text color"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"token": "--ui-form-helper-size",
|
|
146
|
-
"default": "var(--ui-font-size-sm)",
|
|
147
|
-
"description": "Font size"
|
|
148
|
-
},
|
|
149
|
-
{ "token": "--ui-form-helper-gap", "default": "0", "description": "Top margin spacing" }
|
|
150
|
-
]
|
|
151
|
-
}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "input",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Input",
|
|
5
|
-
"description": "Text input field for user data entry. Heights align to grid rows.",
|
|
6
|
-
"api": "./input.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "input",
|
|
15
|
-
"class": "ui-input",
|
|
16
|
-
"attrs": { "type": "text", "placeholder": "Enter text..." }
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"title": "Sizes",
|
|
24
|
-
"examples": [
|
|
25
|
-
{
|
|
26
|
-
"layout": "column",
|
|
27
|
-
"items": [
|
|
28
|
-
{
|
|
29
|
-
"tag": "input",
|
|
30
|
-
"class": "ui-input ui-input--sm",
|
|
31
|
-
"attrs": { "type": "text", "placeholder": "Small (1.5 rows)" }
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"tag": "input",
|
|
35
|
-
"class": "ui-input",
|
|
36
|
-
"attrs": { "type": "text", "placeholder": "Default (2 rows)" }
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"tag": "input",
|
|
40
|
-
"class": "ui-input ui-input--lg",
|
|
41
|
-
"attrs": { "type": "text", "placeholder": "Large (2.5 rows)" }
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"code": "<input class=\"ui-input ui-input--sm\" placeholder=\"Small\">\n<input class=\"ui-input\" placeholder=\"Default\">\n<input class=\"ui-input ui-input--lg\" placeholder=\"Large\">"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"title": "Variants",
|
|
50
|
-
"examples": [
|
|
51
|
-
{
|
|
52
|
-
"layout": "column",
|
|
53
|
-
"items": [
|
|
54
|
-
{
|
|
55
|
-
"tag": "input",
|
|
56
|
-
"class": "ui-input",
|
|
57
|
-
"attrs": { "type": "text", "placeholder": "Outline (default)" }
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"tag": "input",
|
|
61
|
-
"class": "ui-input ui-input--filled",
|
|
62
|
-
"attrs": { "type": "text", "placeholder": "Filled" }
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"tag": "input",
|
|
66
|
-
"class": "ui-input ui-input--ghost",
|
|
67
|
-
"attrs": { "type": "text", "placeholder": "Ghost" }
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"code": "<input class=\"ui-input\" placeholder=\"Outline\">\n<input class=\"ui-input ui-input--filled\" placeholder=\"Filled\">\n<input class=\"ui-input ui-input--ghost\" placeholder=\"Ghost\">"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"title": "States",
|
|
76
|
-
"examples": [
|
|
77
|
-
{
|
|
78
|
-
"layout": "column",
|
|
79
|
-
"items": [
|
|
80
|
-
{
|
|
81
|
-
"tag": "input",
|
|
82
|
-
"class": "ui-input",
|
|
83
|
-
"attrs": { "type": "text", "placeholder": "Default" }
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"tag": "input",
|
|
87
|
-
"class": "ui-input ui-input--error",
|
|
88
|
-
"attrs": { "type": "text", "value": "Invalid input" }
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"tag": "input",
|
|
92
|
-
"class": "ui-input ui-input--success",
|
|
93
|
-
"attrs": { "type": "text", "value": "Valid input" }
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"tag": "input",
|
|
97
|
-
"class": "ui-input",
|
|
98
|
-
"attrs": { "type": "text", "placeholder": "Disabled", "disabled": "" }
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"tag": "input",
|
|
102
|
-
"class": "ui-input",
|
|
103
|
-
"attrs": { "type": "text", "value": "Read only", "readonly": "" }
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"code": "<input class=\"ui-input\" placeholder=\"Default\">\n<input class=\"ui-input ui-input--error\" value=\"Invalid\">\n<input class=\"ui-input ui-input--success\" value=\"Valid\">\n<input class=\"ui-input\" disabled placeholder=\"Disabled\">\n<input class=\"ui-input\" readonly value=\"Read only\">"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"title": "Full Width",
|
|
112
|
-
"examples": [
|
|
113
|
-
{
|
|
114
|
-
"items": [
|
|
115
|
-
{
|
|
116
|
-
"tag": "input",
|
|
117
|
-
"class": "ui-input ui-input--block",
|
|
118
|
-
"attrs": { "type": "text", "placeholder": "Full width input" }
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"title": "With Prefix Icon",
|
|
126
|
-
"examples": [
|
|
127
|
-
{
|
|
128
|
-
"items": [
|
|
129
|
-
{
|
|
130
|
-
"tag": "div",
|
|
131
|
-
"class": "ui-input-group ui-input-group--has-prefix",
|
|
132
|
-
"children": [
|
|
133
|
-
{
|
|
134
|
-
"tag": "span",
|
|
135
|
-
"class": "ui-input-group__addon ui-input-group__addon--start",
|
|
136
|
-
"children": [
|
|
137
|
-
{
|
|
138
|
-
"tag": "svg",
|
|
139
|
-
"class": "ui-icon",
|
|
140
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
141
|
-
"children": [
|
|
142
|
-
{ "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
|
|
143
|
-
{ "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"tag": "input",
|
|
150
|
-
"class": "ui-input ui-input--block",
|
|
151
|
-
"attrs": { "type": "search", "placeholder": "Search..." }
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"code": "<div class=\"ui-input-group ui-input-group--has-prefix\">\n <span class=\"ui-input-group__addon ui-input-group__addon--start\">\n <svg class=\"ui-icon\"><!-- search icon --></svg>\n </span>\n <input class=\"ui-input ui-input--block\" type=\"search\" placeholder=\"Search...\">\n</div>"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"title": "With Suffix Icon",
|
|
162
|
-
"examples": [
|
|
163
|
-
{
|
|
164
|
-
"items": [
|
|
165
|
-
{
|
|
166
|
-
"tag": "div",
|
|
167
|
-
"class": "ui-input-group ui-input-group--has-suffix",
|
|
168
|
-
"children": [
|
|
169
|
-
{
|
|
170
|
-
"tag": "input",
|
|
171
|
-
"class": "ui-input ui-input--block",
|
|
172
|
-
"attrs": { "type": "email", "placeholder": "Email address" }
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"tag": "span",
|
|
176
|
-
"class": "ui-input-group__addon ui-input-group__addon--end",
|
|
177
|
-
"children": [
|
|
178
|
-
{
|
|
179
|
-
"tag": "svg",
|
|
180
|
-
"class": "ui-icon",
|
|
181
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
182
|
-
"children": [
|
|
183
|
-
{
|
|
184
|
-
"tag": "rect",
|
|
185
|
-
"attrs": { "width": "20", "height": "16", "x": "2", "y": "4", "rx": "2" }
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"tag": "path",
|
|
189
|
-
"attrs": { "d": "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" }
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"code": "<div class=\"ui-input-group ui-input-group--has-suffix\">\n <input class=\"ui-input ui-input--block\" type=\"email\" placeholder=\"Email\">\n <span class=\"ui-input-group__addon ui-input-group__addon--end\">\n <svg class=\"ui-icon\"><!-- mail icon --></svg>\n </span>\n</div>"
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"title": "With Both Addons",
|
|
204
|
-
"examples": [
|
|
205
|
-
{
|
|
206
|
-
"items": [
|
|
207
|
-
{
|
|
208
|
-
"tag": "div",
|
|
209
|
-
"class": "ui-input-group ui-input-group--has-prefix ui-input-group--has-suffix",
|
|
210
|
-
"children": [
|
|
211
|
-
{
|
|
212
|
-
"tag": "span",
|
|
213
|
-
"class": "ui-input-group__addon ui-input-group__addon--start",
|
|
214
|
-
"children": [
|
|
215
|
-
{
|
|
216
|
-
"tag": "svg",
|
|
217
|
-
"class": "ui-icon",
|
|
218
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
219
|
-
"children": [
|
|
220
|
-
{
|
|
221
|
-
"tag": "path",
|
|
222
|
-
"attrs": { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }
|
|
223
|
-
},
|
|
224
|
-
{ "tag": "circle", "attrs": { "cx": "12", "cy": "7", "r": "4" } }
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"tag": "input",
|
|
231
|
-
"class": "ui-input ui-input--block",
|
|
232
|
-
"attrs": { "type": "text", "placeholder": "Username" }
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"tag": "span",
|
|
236
|
-
"class": "ui-input-group__addon ui-input-group__addon--end ui-input-group__addon--interactive",
|
|
237
|
-
"children": [
|
|
238
|
-
{
|
|
239
|
-
"tag": "svg",
|
|
240
|
-
"class": "ui-icon",
|
|
241
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
242
|
-
"children": [
|
|
243
|
-
{ "tag": "path", "attrs": { "d": "M18 6 6 18" } },
|
|
244
|
-
{ "tag": "path", "attrs": { "d": "m6 6 12 12" } }
|
|
245
|
-
]
|
|
246
|
-
}
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"code": "<div class=\"ui-input-group ui-input-group--has-prefix ui-input-group--has-suffix\">\n <span class=\"ui-input-group__addon ui-input-group__addon--start\">...</span>\n <input class=\"ui-input ui-input--block\" placeholder=\"Username\">\n <span class=\"ui-input-group__addon ui-input-group__addon--end ui-input-group__addon--interactive\">...</span>\n</div>"
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"customization": [
|
|
258
|
-
{ "token": "--ui-input-height", "default": "var(--ui-row-2)", "description": "Default height" },
|
|
259
|
-
{
|
|
260
|
-
"token": "--ui-input-height-sm",
|
|
261
|
-
"default": "calc(var(--ui-row) * 1.5)",
|
|
262
|
-
"description": "Small height"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"token": "--ui-input-height-lg",
|
|
266
|
-
"default": "calc(var(--ui-row) * 2.5)",
|
|
267
|
-
"description": "Large height"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"token": "--ui-input-padding-x",
|
|
271
|
-
"default": "var(--ui-space-1)",
|
|
272
|
-
"description": "Horizontal padding"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"token": "--ui-input-font-size",
|
|
276
|
-
"default": "var(--ui-font-size-sm)",
|
|
277
|
-
"description": "Font size"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"token": "--ui-input-radius",
|
|
281
|
-
"default": "var(--ui-radius-md)",
|
|
282
|
-
"description": "Border radius"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"token": "--ui-input-bg",
|
|
286
|
-
"default": "var(--ui-color-bg)",
|
|
287
|
-
"description": "Background color"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"token": "--ui-input-border-color",
|
|
291
|
-
"default": "var(--ui-color-border-strong)",
|
|
292
|
-
"description": "Border color"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"token": "--ui-input-border-color-focus",
|
|
296
|
-
"default": "var(--ui-color-primary)",
|
|
297
|
-
"description": "Focus border color"
|
|
298
|
-
},
|
|
299
|
-
{ "token": "--ui-input-color", "default": "var(--ui-color-text)", "description": "Text color" },
|
|
300
|
-
{
|
|
301
|
-
"token": "--ui-input-placeholder",
|
|
302
|
-
"default": "var(--ui-color-text-muted)",
|
|
303
|
-
"description": "Placeholder color"
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "label",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Label",
|
|
5
|
-
"description": "Form control labels. Associates text with inputs via htmlFor or wrapping.",
|
|
6
|
-
"api": "./label.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "label",
|
|
15
|
-
"class": "ui-label",
|
|
16
|
-
"text": "Email address",
|
|
17
|
-
"attrs": { "for": "input1" }
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"code": "<label class=\"ui-label\" for=\"input\">Email address</label>"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"title": "Required",
|
|
26
|
-
"examples": [
|
|
27
|
-
{
|
|
28
|
-
"items": [
|
|
29
|
-
{
|
|
30
|
-
"tag": "label",
|
|
31
|
-
"class": "ui-label",
|
|
32
|
-
"attrs": { "for": "input2" },
|
|
33
|
-
"children": [
|
|
34
|
-
{ "text": "Email address" },
|
|
35
|
-
{ "tag": "span", "class": "ui-label__required", "text": "*" }
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"code": "<label class=\"ui-label\" for=\"input\">\n Email address\n <span class=\"ui-label__required\">*</span>\n</label>"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"title": "Optional",
|
|
45
|
-
"examples": [
|
|
46
|
-
{
|
|
47
|
-
"items": [
|
|
48
|
-
{
|
|
49
|
-
"tag": "label",
|
|
50
|
-
"class": "ui-label",
|
|
51
|
-
"attrs": { "for": "input3" },
|
|
52
|
-
"children": [
|
|
53
|
-
{ "text": "Phone number" },
|
|
54
|
-
{ "tag": "span", "class": "ui-label__optional", "text": "(optional)" }
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"code": "<label class=\"ui-label\" for=\"input\">\n Phone number\n <span class=\"ui-label__optional\">(optional)</span>\n</label>"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"title": "Sizes",
|
|
64
|
-
"examples": [
|
|
65
|
-
{
|
|
66
|
-
"layout": "column",
|
|
67
|
-
"items": [
|
|
68
|
-
{ "tag": "label", "class": "ui-label", "text": "Default size" },
|
|
69
|
-
{ "tag": "label", "class": "ui-label ui-label--lg", "text": "Large size" }
|
|
70
|
-
],
|
|
71
|
-
"code": "<label class=\"ui-label\">Default</label>\n<label class=\"ui-label ui-label--lg\">Large</label>"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "Disabled",
|
|
77
|
-
"examples": [
|
|
78
|
-
{
|
|
79
|
-
"items": [
|
|
80
|
-
{
|
|
81
|
-
"tag": "label",
|
|
82
|
-
"class": "ui-label",
|
|
83
|
-
"text": "Disabled label",
|
|
84
|
-
"attrs": { "aria-disabled": "true" }
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"code": "<label class=\"ui-label\" aria-disabled=\"true\">Disabled</label>"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"customization": [
|
|
93
|
-
{
|
|
94
|
-
"token": "--ui-label-font-size",
|
|
95
|
-
"default": "var(--ui-font-size-sm)",
|
|
96
|
-
"description": "Default font size"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"token": "--ui-label-font-size-lg",
|
|
100
|
-
"default": "var(--ui-font-size-md)",
|
|
101
|
-
"description": "Large font size"
|
|
102
|
-
},
|
|
103
|
-
{ "token": "--ui-label-color", "default": "var(--ui-color-text)", "description": "Text color" },
|
|
104
|
-
{
|
|
105
|
-
"token": "--ui-label-required-color",
|
|
106
|
-
"default": "var(--ui-color-danger)",
|
|
107
|
-
"description": "Required indicator color"
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
}
|