@teseor/css 1.14.2 → 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 +7 -3
- package/src/components/actions/button-group/button-group.docs.html +47 -0
- package/src/components/actions/button-group/button-group.visual.spec.ts +7 -3
- package/src/components/actions/close-button/close-button.docs.html +77 -0
- package/src/components/actions/close-button/close-button.visual.spec.ts +7 -3
- package/src/components/content/divider/divider.docs.html +27 -0
- package/src/components/content/divider/divider.visual.spec.ts +7 -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 +7 -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 +7 -3
- package/src/components/data-display/badge/badge.docs.html +39 -0
- package/src/components/data-display/badge/badge.visual.spec.ts +7 -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 +7 -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 +7 -3
- package/src/components/data-display/icon/icon.docs.html +72 -0
- package/src/components/data-display/icon/icon.visual.spec.ts +7 -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 +7 -3
- package/src/components/data-display/stat/stat.docs.html +35 -0
- package/src/components/data-display/stat/stat.visual.spec.ts +7 -3
- package/src/components/data-display/status/status.docs.html +67 -0
- package/src/components/data-display/status/status.visual.spec.ts +7 -3
- package/src/components/data-display/table/table.docs.html +73 -0
- package/src/components/data-display/table/table.visual.spec.ts +7 -3
- package/src/components/data-display/tag/tag.docs.html +42 -0
- package/src/components/data-display/tag/tag.visual.spec.ts +7 -3
- package/src/components/disclosure/accordion/accordion.docs.html +83 -0
- package/src/components/disclosure/accordion/accordion.visual.spec.ts +7 -3
- package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
- package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +7 -3
- package/src/components/feedback/alert/alert.docs.html +90 -0
- package/src/components/feedback/alert/alert.visual.spec.ts +7 -3
- package/src/components/feedback/progress/progress.docs.html +65 -0
- package/src/components/feedback/progress/progress.visual.spec.ts +7 -3
- package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
- package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +7 -3
- package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
- package/src/components/feedback/skeleton/skeleton.visual.spec.ts +7 -3
- package/src/components/feedback/spinner/spinner.docs.html +28 -0
- package/src/components/feedback/spinner/spinner.visual.spec.ts +7 -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 +7 -3
- package/src/components/forms/checkbox/checkbox.docs.html +33 -0
- package/src/components/forms/checkbox/checkbox.visual.spec.ts +7 -3
- package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
- package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +7 -3
- package/src/components/forms/field/field.docs.html +63 -0
- package/src/components/forms/field/field.visual.spec.ts +7 -3
- package/src/components/forms/fieldset/fieldset.docs.html +122 -0
- package/src/components/forms/fieldset/fieldset.visual.spec.ts +7 -3
- package/src/components/forms/form/form.docs.html +132 -0
- package/src/components/forms/form/form.visual.spec.ts +7 -3
- package/src/components/forms/form-error/form-error.docs.html +18 -0
- package/src/components/forms/form-error/form-error.visual.spec.ts +7 -3
- package/src/components/forms/form-helper/form-helper.docs.html +42 -0
- package/src/components/forms/form-helper/form-helper.visual.spec.ts +7 -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 +7 -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 +7 -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 +7 -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 +7 -3
- package/src/components/forms/radio/radio.docs.html +52 -0
- package/src/components/forms/radio/radio.visual.spec.ts +7 -3
- package/src/components/forms/radio-group/radio-group.docs.html +100 -0
- package/src/components/forms/radio-group/radio-group.visual.spec.ts +7 -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 +7 -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 +7 -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 +7 -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 +7 -3
- package/src/components/forms/toggle/toggle.docs.html +64 -0
- package/src/components/forms/toggle/toggle.visual.spec.ts +7 -3
- package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
- package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +7 -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 +7 -3
- package/src/components/navigation/menu/menu.docs.html +122 -0
- package/src/components/navigation/menu/menu.visual.spec.ts +7 -3
- package/src/components/navigation/nav/nav.docs.html +74 -0
- package/src/components/navigation/nav/nav.visual.spec.ts +7 -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 +7 -3
- package/src/components/navigation/tabs/tabs.docs.html +66 -0
- package/src/components/navigation/tabs/tabs.visual.spec.ts +7 -3
- package/src/components/overlays/dialog/dialog.docs.html +61 -0
- package/src/components/overlays/dialog/dialog.visual.spec.ts +7 -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 +7 -3
- package/src/components/overlays/modal/modal.docs.html +69 -0
- package/src/components/overlays/modal/modal.visual.spec.ts +7 -3
- package/src/components/overlays/overlay/overlay.docs.html +30 -0
- package/src/components/overlays/overlay/overlay.visual.spec.ts +7 -3
- package/src/components/overlays/popover/popover.docs.html +41 -0
- package/src/components/overlays/popover/popover.visual.spec.ts +7 -3
- package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
- package/src/components/overlays/tooltip/tooltip.visual.spec.ts +7 -3
- package/src/components/typography/blockquote/blockquote.docs.html +24 -0
- package/src/components/typography/blockquote/blockquote.visual.spec.ts +7 -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 +7 -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 +7 -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 +7 -3
- package/src/components/typography/kbd/kbd.docs.html +16 -0
- package/src/components/typography/kbd/kbd.visual.spec.ts +7 -3
- package/src/components/typography/link/link.docs.html +33 -0
- package/src/components/typography/link/link.visual.spec.ts +7 -3
- package/src/components/typography/list/list.docs.html +79 -0
- package/src/components/typography/list/list.visual.spec.ts +7 -3
- package/src/components/typography/mark/mark.docs.html +12 -0
- package/src/components/typography/mark/mark.visual.spec.ts +7 -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/debug/index.scss +81 -1
- 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/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/tokens/accessibility.docs.json +0 -125
- package/src/config/tokens/colors/colors.docs.json +0 -316
- package/src/config/tokens/grid/grid.docs.json +0 -54
- package/src/config/tokens/spacing/spacing.docs.json +0 -114
- package/src/config/tokens/theming.docs.json +0 -288
- package/src/debug/grid-overlay.scss +0 -81
- 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/testing/api-types.ts +0 -20
- package/src/testing/grid-alignment.spec.ts +0 -38
- package/src/testing/html-generator.ts +0 -151
- package/src/testing/index.ts +0 -15
- package/src/testing/page-setup.ts +0 -149
- package/src/testing/rhythm.ts +0 -146
- package/src/testing/scaffold.ts +0 -50
- 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,339 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "checkbox-group",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"mergeInto": "checkbox",
|
|
5
|
-
"title": "Checkbox Group",
|
|
6
|
-
"description": "Groups related checkboxes with a legend and consistent spacing. Built on native fieldset semantics.",
|
|
7
|
-
"api": "./checkbox-group.api.json",
|
|
8
|
-
"sections": [
|
|
9
|
-
{
|
|
10
|
-
"title": "Default",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"items": [
|
|
14
|
-
{
|
|
15
|
-
"tag": "fieldset",
|
|
16
|
-
"class": "ui-checkbox-group",
|
|
17
|
-
"children": [
|
|
18
|
-
{
|
|
19
|
-
"tag": "legend",
|
|
20
|
-
"class": "ui-checkbox-group__legend",
|
|
21
|
-
"text": "Notifications"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"tag": "div",
|
|
25
|
-
"class": "ui-checkbox-group__items",
|
|
26
|
-
"children": [
|
|
27
|
-
{
|
|
28
|
-
"tag": "label",
|
|
29
|
-
"class": "ui-checkbox-group__item",
|
|
30
|
-
"children": [
|
|
31
|
-
{
|
|
32
|
-
"tag": "input",
|
|
33
|
-
"class": "ui-checkbox",
|
|
34
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
35
|
-
},
|
|
36
|
-
{ "tag": "span", "text": "Email" }
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"tag": "label",
|
|
41
|
-
"class": "ui-checkbox-group__item",
|
|
42
|
-
"children": [
|
|
43
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
44
|
-
{ "tag": "span", "text": "SMS" }
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"tag": "label",
|
|
49
|
-
"class": "ui-checkbox-group__item",
|
|
50
|
-
"children": [
|
|
51
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
52
|
-
{ "tag": "span", "text": "Push" }
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"code": "<fieldset class=\"ui-checkbox-group\">\n <legend class=\"ui-checkbox-group__legend\">Notifications</legend>\n <div class=\"ui-checkbox-group__items\">\n <label class=\"ui-checkbox-group__item\">\n <input type=\"checkbox\" class=\"ui-checkbox\" checked>\n <span>Email</span>\n </label>\n ...\n </div>\n</fieldset>"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"title": "Horizontal",
|
|
66
|
-
"examples": [
|
|
67
|
-
{
|
|
68
|
-
"items": [
|
|
69
|
-
{
|
|
70
|
-
"tag": "fieldset",
|
|
71
|
-
"class": "ui-checkbox-group ui-checkbox-group--horizontal",
|
|
72
|
-
"children": [
|
|
73
|
-
{
|
|
74
|
-
"tag": "legend",
|
|
75
|
-
"class": "ui-checkbox-group__legend",
|
|
76
|
-
"text": "Interests"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"tag": "div",
|
|
80
|
-
"class": "ui-checkbox-group__items",
|
|
81
|
-
"children": [
|
|
82
|
-
{
|
|
83
|
-
"tag": "label",
|
|
84
|
-
"class": "ui-checkbox-group__item",
|
|
85
|
-
"children": [
|
|
86
|
-
{
|
|
87
|
-
"tag": "input",
|
|
88
|
-
"class": "ui-checkbox",
|
|
89
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
90
|
-
},
|
|
91
|
-
{ "tag": "span", "text": "Design" }
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"tag": "label",
|
|
96
|
-
"class": "ui-checkbox-group__item",
|
|
97
|
-
"children": [
|
|
98
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
99
|
-
{ "tag": "span", "text": "Engineering" }
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"tag": "label",
|
|
104
|
-
"class": "ui-checkbox-group__item",
|
|
105
|
-
"children": [
|
|
106
|
-
{
|
|
107
|
-
"tag": "input",
|
|
108
|
-
"class": "ui-checkbox",
|
|
109
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
110
|
-
},
|
|
111
|
-
{ "tag": "span", "text": "Product" }
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"tag": "label",
|
|
116
|
-
"class": "ui-checkbox-group__item",
|
|
117
|
-
"children": [
|
|
118
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
119
|
-
{ "tag": "span", "text": "Marketing" }
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"code": "<fieldset class=\"ui-checkbox-group ui-checkbox-group--horizontal\">\n <legend class=\"ui-checkbox-group__legend\">Interests</legend>\n ...\n</fieldset>"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "Compact",
|
|
133
|
-
"examples": [
|
|
134
|
-
{
|
|
135
|
-
"items": [
|
|
136
|
-
{
|
|
137
|
-
"tag": "fieldset",
|
|
138
|
-
"class": "ui-checkbox-group ui-checkbox-group--compact",
|
|
139
|
-
"children": [
|
|
140
|
-
{
|
|
141
|
-
"tag": "legend",
|
|
142
|
-
"class": "ui-checkbox-group__legend",
|
|
143
|
-
"text": "Features"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"tag": "div",
|
|
147
|
-
"class": "ui-checkbox-group__items",
|
|
148
|
-
"children": [
|
|
149
|
-
{
|
|
150
|
-
"tag": "label",
|
|
151
|
-
"class": "ui-checkbox-group__item",
|
|
152
|
-
"children": [
|
|
153
|
-
{
|
|
154
|
-
"tag": "input",
|
|
155
|
-
"class": "ui-checkbox",
|
|
156
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
157
|
-
},
|
|
158
|
-
{ "tag": "span", "text": "Dark mode" }
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"tag": "label",
|
|
163
|
-
"class": "ui-checkbox-group__item",
|
|
164
|
-
"children": [
|
|
165
|
-
{
|
|
166
|
-
"tag": "input",
|
|
167
|
-
"class": "ui-checkbox",
|
|
168
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
169
|
-
},
|
|
170
|
-
{ "tag": "span", "text": "Notifications" }
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"tag": "label",
|
|
175
|
-
"class": "ui-checkbox-group__item",
|
|
176
|
-
"children": [
|
|
177
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
178
|
-
{ "tag": "span", "text": "Analytics" }
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"code": "<fieldset class=\"ui-checkbox-group ui-checkbox-group--compact\">\n ...\n</fieldset>"
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"title": "Error State",
|
|
192
|
-
"examples": [
|
|
193
|
-
{
|
|
194
|
-
"items": [
|
|
195
|
-
{
|
|
196
|
-
"tag": "fieldset",
|
|
197
|
-
"class": "ui-checkbox-group ui-checkbox-group--error",
|
|
198
|
-
"children": [
|
|
199
|
-
{
|
|
200
|
-
"tag": "legend",
|
|
201
|
-
"class": "ui-checkbox-group__legend",
|
|
202
|
-
"text": "Terms"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"tag": "div",
|
|
206
|
-
"class": "ui-checkbox-group__items",
|
|
207
|
-
"children": [
|
|
208
|
-
{
|
|
209
|
-
"tag": "label",
|
|
210
|
-
"class": "ui-checkbox-group__item",
|
|
211
|
-
"children": [
|
|
212
|
-
{
|
|
213
|
-
"tag": "input",
|
|
214
|
-
"class": "ui-checkbox ui-checkbox--error",
|
|
215
|
-
"attrs": { "type": "checkbox" }
|
|
216
|
-
},
|
|
217
|
-
{ "tag": "span", "text": "I accept the terms of service" }
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"tag": "label",
|
|
222
|
-
"class": "ui-checkbox-group__item",
|
|
223
|
-
"children": [
|
|
224
|
-
{
|
|
225
|
-
"tag": "input",
|
|
226
|
-
"class": "ui-checkbox ui-checkbox--error",
|
|
227
|
-
"attrs": { "type": "checkbox" }
|
|
228
|
-
},
|
|
229
|
-
{ "tag": "span", "text": "I accept the privacy policy" }
|
|
230
|
-
]
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"tag": "span",
|
|
236
|
-
"class": "ui-form-error",
|
|
237
|
-
"text": "You must accept all terms to continue"
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
"code": "<fieldset class=\"ui-checkbox-group ui-checkbox-group--error\">\n <legend class=\"ui-checkbox-group__legend\">Terms</legend>\n <div class=\"ui-checkbox-group__items\">\n <label class=\"ui-checkbox-group__item\">\n <input type=\"checkbox\" class=\"ui-checkbox ui-checkbox--error\">\n <span>I accept the terms of service</span>\n </label>\n ...\n </div>\n <span class=\"ui-form-error\">You must accept all terms to continue</span>\n</fieldset>"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"title": "Disabled",
|
|
248
|
-
"examples": [
|
|
249
|
-
{
|
|
250
|
-
"items": [
|
|
251
|
-
{
|
|
252
|
-
"tag": "fieldset",
|
|
253
|
-
"class": "ui-checkbox-group",
|
|
254
|
-
"attrs": { "disabled": "" },
|
|
255
|
-
"children": [
|
|
256
|
-
{
|
|
257
|
-
"tag": "legend",
|
|
258
|
-
"class": "ui-checkbox-group__legend",
|
|
259
|
-
"text": "Permissions (locked)"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"tag": "div",
|
|
263
|
-
"class": "ui-checkbox-group__items",
|
|
264
|
-
"children": [
|
|
265
|
-
{
|
|
266
|
-
"tag": "label",
|
|
267
|
-
"class": "ui-checkbox-group__item",
|
|
268
|
-
"children": [
|
|
269
|
-
{
|
|
270
|
-
"tag": "input",
|
|
271
|
-
"class": "ui-checkbox",
|
|
272
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
273
|
-
},
|
|
274
|
-
{ "tag": "span", "text": "Read" }
|
|
275
|
-
]
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"tag": "label",
|
|
279
|
-
"class": "ui-checkbox-group__item",
|
|
280
|
-
"children": [
|
|
281
|
-
{
|
|
282
|
-
"tag": "input",
|
|
283
|
-
"class": "ui-checkbox",
|
|
284
|
-
"attrs": { "type": "checkbox", "checked": "" }
|
|
285
|
-
},
|
|
286
|
-
{ "tag": "span", "text": "Write" }
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"tag": "label",
|
|
291
|
-
"class": "ui-checkbox-group__item",
|
|
292
|
-
"children": [
|
|
293
|
-
{ "tag": "input", "class": "ui-checkbox", "attrs": { "type": "checkbox" } },
|
|
294
|
-
{ "tag": "span", "text": "Admin" }
|
|
295
|
-
]
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
"code": "<fieldset class=\"ui-checkbox-group\" disabled>\n ...\n</fieldset>"
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"customization": [
|
|
308
|
-
{
|
|
309
|
-
"token": "--ui-checkbox-group-spacing",
|
|
310
|
-
"default": "var(--ui-space-1)",
|
|
311
|
-
"description": "Gap between checkbox items"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"token": "--ui-checkbox-group-legend-size",
|
|
315
|
-
"default": "var(--ui-font-size-sm)",
|
|
316
|
-
"description": "Legend font size"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"token": "--ui-checkbox-group-legend-weight",
|
|
320
|
-
"default": "var(--ui-weight-medium)",
|
|
321
|
-
"description": "Legend font weight"
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"token": "--ui-checkbox-group-legend-color",
|
|
325
|
-
"default": "var(--ui-color-text)",
|
|
326
|
-
"description": "Legend text color"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"token": "--ui-checkbox-group-item-gap",
|
|
330
|
-
"default": "var(--ui-space-1)",
|
|
331
|
-
"description": "Gap between checkbox and label text"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"token": "--ui-checkbox-group-error-color",
|
|
335
|
-
"default": "var(--ui-color-danger)",
|
|
336
|
-
"description": "Legend color in error state"
|
|
337
|
-
}
|
|
338
|
-
]
|
|
339
|
-
}
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "field",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Field",
|
|
5
|
-
"description": "Form field wrapper that combines label, control, helper text, and error message.",
|
|
6
|
-
"api": "./field.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "div",
|
|
15
|
-
"class": "ui-field",
|
|
16
|
-
"children": [
|
|
17
|
-
{
|
|
18
|
-
"tag": "label",
|
|
19
|
-
"class": "ui-label",
|
|
20
|
-
"text": "Email",
|
|
21
|
-
"attrs": {
|
|
22
|
-
"for": "email"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "div",
|
|
27
|
-
"class": "ui-field__control",
|
|
28
|
-
"children": [
|
|
29
|
-
{
|
|
30
|
-
"tag": "input",
|
|
31
|
-
"class": "ui-input",
|
|
32
|
-
"attrs": {
|
|
33
|
-
"type": "email",
|
|
34
|
-
"id": "email",
|
|
35
|
-
"placeholder": "Enter email"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"code": "<div class=\"ui-field\">\n <label class=\"ui-label\" for=\"email\">Email</label>\n <div class=\"ui-field__control\">\n <input type=\"email\" id=\"email\" class=\"ui-input\">\n </div>\n</div>"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"title": "With Helper Text",
|
|
49
|
-
"examples": [
|
|
50
|
-
{
|
|
51
|
-
"items": [
|
|
52
|
-
{
|
|
53
|
-
"tag": "div",
|
|
54
|
-
"class": "ui-field",
|
|
55
|
-
"children": [
|
|
56
|
-
{
|
|
57
|
-
"tag": "label",
|
|
58
|
-
"class": "ui-label",
|
|
59
|
-
"text": "Password",
|
|
60
|
-
"attrs": {
|
|
61
|
-
"for": "password"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"tag": "div",
|
|
66
|
-
"class": "ui-field__control",
|
|
67
|
-
"children": [
|
|
68
|
-
{
|
|
69
|
-
"tag": "input",
|
|
70
|
-
"class": "ui-input",
|
|
71
|
-
"attrs": {
|
|
72
|
-
"type": "password",
|
|
73
|
-
"id": "password"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"tag": "span",
|
|
78
|
-
"class": "ui-form-helper",
|
|
79
|
-
"text": "Must be at least 8 characters"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"code": "<div class=\"ui-field\">\n <label class=\"ui-label\" for=\"password\">Password</label>\n <div class=\"ui-field__control\">\n <input type=\"password\" id=\"password\" class=\"ui-input\">\n <span class=\"ui-form-helper\">Must be at least 8 characters</span>\n </div>\n</div>"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"title": "With Error",
|
|
92
|
-
"examples": [
|
|
93
|
-
{
|
|
94
|
-
"items": [
|
|
95
|
-
{
|
|
96
|
-
"tag": "div",
|
|
97
|
-
"class": "ui-field",
|
|
98
|
-
"children": [
|
|
99
|
-
{
|
|
100
|
-
"tag": "label",
|
|
101
|
-
"class": "ui-label",
|
|
102
|
-
"text": "Username",
|
|
103
|
-
"attrs": {
|
|
104
|
-
"for": "username"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"tag": "div",
|
|
109
|
-
"class": "ui-field__control",
|
|
110
|
-
"children": [
|
|
111
|
-
{
|
|
112
|
-
"tag": "input",
|
|
113
|
-
"class": "ui-input ui-input--error",
|
|
114
|
-
"attrs": {
|
|
115
|
-
"type": "text",
|
|
116
|
-
"id": "username",
|
|
117
|
-
"value": "ab"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"tag": "span",
|
|
122
|
-
"class": "ui-form-error",
|
|
123
|
-
"text": "Username must be at least 3 characters"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"code": "<div class=\"ui-field\">\n <label class=\"ui-label\" for=\"username\">Username</label>\n <div class=\"ui-field__control\">\n <input type=\"text\" id=\"username\" class=\"ui-input ui-input--error\">\n <span class=\"ui-form-error\">Username must be at least 3 characters</span>\n </div>\n</div>"
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"title": "Horizontal Layout",
|
|
136
|
-
"description": "Label beside control for wider forms",
|
|
137
|
-
"api": "./field.api.json",
|
|
138
|
-
"examples": [
|
|
139
|
-
{
|
|
140
|
-
"items": [
|
|
141
|
-
{
|
|
142
|
-
"tag": "div",
|
|
143
|
-
"class": "ui-field ui-field--horizontal",
|
|
144
|
-
"children": [
|
|
145
|
-
{
|
|
146
|
-
"tag": "label",
|
|
147
|
-
"class": "ui-label ui-field__label",
|
|
148
|
-
"text": "Full Name",
|
|
149
|
-
"attrs": {
|
|
150
|
-
"for": "name"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"tag": "div",
|
|
155
|
-
"class": "ui-field__control",
|
|
156
|
-
"children": [
|
|
157
|
-
{
|
|
158
|
-
"tag": "input",
|
|
159
|
-
"class": "ui-input",
|
|
160
|
-
"attrs": {
|
|
161
|
-
"type": "text",
|
|
162
|
-
"id": "name"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"tag": "span",
|
|
167
|
-
"class": "ui-form-helper",
|
|
168
|
-
"text": "As it appears on your ID"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"code": "<div class=\"ui-field ui-field--horizontal\">\n <label class=\"ui-label ui-field__label\" for=\"name\">Full Name</label>\n <div class=\"ui-field__control\">\n <input type=\"text\" id=\"name\" class=\"ui-input\">\n <span class=\"ui-form-helper\">As it appears on your ID</span>\n </div>\n</div>"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"title": "Responsive Layout",
|
|
181
|
-
"description": "Auto-switches to horizontal layout when container is wide enough (>= 30rem). Requires a parent with container-type: inline-size (use ui-container-inline utility).",
|
|
182
|
-
"examples": [
|
|
183
|
-
{
|
|
184
|
-
"items": [
|
|
185
|
-
{
|
|
186
|
-
"tag": "div",
|
|
187
|
-
"class": "ui-container-inline",
|
|
188
|
-
"children": [
|
|
189
|
-
{
|
|
190
|
-
"tag": "div",
|
|
191
|
-
"class": "ui-field ui-field--responsive",
|
|
192
|
-
"children": [
|
|
193
|
-
{
|
|
194
|
-
"tag": "label",
|
|
195
|
-
"class": "ui-label ui-field__label",
|
|
196
|
-
"text": "Full Name",
|
|
197
|
-
"attrs": {
|
|
198
|
-
"for": "resp-name"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"tag": "div",
|
|
203
|
-
"class": "ui-field__control",
|
|
204
|
-
"children": [
|
|
205
|
-
{
|
|
206
|
-
"tag": "input",
|
|
207
|
-
"class": "ui-input",
|
|
208
|
-
"attrs": {
|
|
209
|
-
"type": "text",
|
|
210
|
-
"id": "resp-name"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"tag": "span",
|
|
215
|
-
"class": "ui-form-helper",
|
|
216
|
-
"text": "Stacks vertically in narrow containers, horizontal at >= 30rem"
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
]
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"code": "<div class=\"ui-container-inline\">\n <div class=\"ui-field ui-field--responsive\">\n <label class=\"ui-label ui-field__label\" for=\"name\">Full Name</label>\n <div class=\"ui-field__control\">\n <input type=\"text\" id=\"name\" class=\"ui-input\">\n </div>\n </div>\n</div>"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"title": "Required Field",
|
|
231
|
-
"examples": [
|
|
232
|
-
{
|
|
233
|
-
"items": [
|
|
234
|
-
{
|
|
235
|
-
"tag": "div",
|
|
236
|
-
"class": "ui-field",
|
|
237
|
-
"children": [
|
|
238
|
-
{
|
|
239
|
-
"tag": "label",
|
|
240
|
-
"class": "ui-label ui-label--required",
|
|
241
|
-
"text": "Required Field",
|
|
242
|
-
"attrs": {
|
|
243
|
-
"for": "req"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"tag": "div",
|
|
248
|
-
"class": "ui-field__control",
|
|
249
|
-
"children": [
|
|
250
|
-
{
|
|
251
|
-
"tag": "input",
|
|
252
|
-
"class": "ui-input",
|
|
253
|
-
"attrs": {
|
|
254
|
-
"type": "text",
|
|
255
|
-
"id": "req",
|
|
256
|
-
"required": ""
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
]
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"code": "<div class=\"ui-field\">\n <label class=\"ui-label ui-label--required\" for=\"req\">Required Field</label>\n <div class=\"ui-field__control\">\n <input type=\"text\" id=\"req\" class=\"ui-input\" required>\n </div>\n</div>"
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"customization": [
|
|
270
|
-
{
|
|
271
|
-
"token": "--ui-field-gap",
|
|
272
|
-
"default": "0",
|
|
273
|
-
"description": "Gap between field elements"
|
|
274
|
-
}
|
|
275
|
-
]
|
|
276
|
-
}
|