@teseor/css 1.7.0 → 1.9.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/dist/compiled.css +1 -1
- package/dist/index.css +134 -135
- package/package.json +2 -2
- package/src/{02-base → base}/root/root.scss +1 -1
- package/src/base/typography/typography.docs.json +328 -0
- package/src/{02-base → base}/typography/typography.scss +2 -2
- package/src/components/actions/button/button-visual.png +0 -0
- package/src/{04-components → components}/actions/button/button.api.json +30 -33
- package/src/{04-components → components}/actions/button/button.docs.json +63 -11
- package/src/{04-components → components}/actions/button/index.scss +54 -23
- package/src/{04-components → components}/actions/button-group/button-group.api.json +3 -1
- package/src/components/actions/button-group/button-group.docs.json +151 -0
- package/src/{04-components → components}/actions/button-group/index.scss +5 -1
- package/src/components/actions/close-button/close-button.api.json +84 -0
- package/src/{04-components → components}/actions/close-button/close-button.docs.json +4 -3
- package/src/{04-components → components}/actions/close-button/index.scss +27 -7
- package/src/{04-components/layout → components/content}/divider/divider.api.json +12 -7
- package/src/components/content/divider/divider.docs.json +113 -0
- package/src/{04-components/layout → components/content}/divider/index.scss +12 -5
- package/src/{04-components/layout → components/content}/scroll-area/index.scss +16 -2
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.api.json +74 -0
- package/src/{04-components/layout → components/content}/scroll-area/scroll-area.docs.json +71 -2
- package/src/components/content/spacer/index.scss +16 -0
- package/src/components/content/spacer/spacer.api.json +13 -0
- package/src/{04-components/layout → components/content}/spacer/spacer.docs.json +2 -2
- package/src/components/data-display/avatar/avatar.api.json +94 -0
- package/src/{04-components → components}/data-display/avatar/avatar.docs.json +55 -10
- package/src/{04-components → components}/data-display/avatar/index.scss +21 -3
- package/src/components/data-display/badge/badge-visual.png +0 -0
- package/src/components/data-display/badge/badge.api.json +80 -0
- package/src/{04-components → components}/data-display/badge/badge.docs.json +32 -7
- package/src/{04-components → components}/data-display/badge/index.scss +26 -7
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/components/data-display/card/card.api.json +66 -0
- package/src/{04-components → components}/data-display/card/card.docs.json +26 -2
- package/src/components/data-display/card/index.scss +76 -0
- package/src/{04-components → components}/data-display/data-list/data-list.api.json +9 -4
- package/src/components/data-display/data-list/data-list.docs.json +259 -0
- package/src/{04-components → components}/data-display/data-list/index.scss +29 -12
- package/src/components/data-display/icon/icon-visual.png +0 -0
- package/src/{04-components → components}/data-display/icon/icon.api.json +11 -22
- package/src/{04-components → components}/data-display/icon/icon.docs.json +105 -17
- package/src/{04-components → components}/data-display/icon/index.scss +16 -5
- package/src/components/data-display/image/image.api.json +90 -0
- package/src/{04-components → components}/data-display/image/image.docs.json +9 -9
- package/src/{04-components → components}/data-display/image/index.scss +16 -2
- package/src/{04-components → components}/data-display/stat/index.scss +14 -2
- package/src/components/data-display/stat/stat.api.json +56 -0
- package/src/{04-components → components}/data-display/stat/stat.docs.json +1 -1
- package/src/{04-components → components}/data-display/status/index.scss +15 -1
- package/src/{04-components → components}/data-display/status/status.api.json +10 -6
- package/src/components/data-display/status/status.docs.json +147 -0
- package/src/{04-components → components}/data-display/table/index.scss +21 -7
- package/src/components/data-display/table/table.api.json +40 -0
- package/src/components/data-display/table/table.docs.json +184 -0
- package/src/{04-components → components}/data-display/tag/index.scss +35 -4
- package/src/components/data-display/tag/tag-visual.png +0 -0
- package/src/components/data-display/tag/tag.api.json +128 -0
- package/src/{04-components → components}/data-display/tag/tag.docs.json +48 -10
- package/src/components/disclosure/accordion/accordion.api.json +27 -0
- package/src/components/disclosure/accordion/accordion.docs.json +206 -0
- package/src/{04-components → components}/disclosure/accordion/index.scss +9 -3
- package/src/components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/{04-components → components}/disclosure/disclosure/disclosure.api.json +15 -8
- package/src/components/disclosure/disclosure/disclosure.docs.json +154 -0
- package/src/{04-components → components}/disclosure/disclosure/index.scss +32 -7
- package/src/{04-components → components}/feedback/alert/alert-visual.png +0 -0
- package/src/components/feedback/alert/alert.api.json +95 -0
- package/src/components/feedback/alert/alert.docs.json +325 -0
- package/src/{04-components → components}/feedback/alert/index.scss +49 -8
- package/src/{04-components → components}/feedback/progress/index.scss +27 -4
- package/src/components/feedback/progress/progress-visual.png +0 -0
- package/src/{04-components → components}/feedback/progress/progress.api.json +13 -8
- package/src/components/feedback/progress/progress.docs.json +257 -0
- package/src/{04-components → components}/feedback/progress-circle/index.scss +26 -7
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.api.json +17 -8
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.docs.json +5 -4
- package/src/{04-components → components}/feedback/skeleton/index.scss +20 -3
- package/src/components/feedback/skeleton/skeleton.api.json +30 -0
- package/src/components/feedback/skeleton/skeleton.docs.json +126 -0
- package/src/{04-components → components}/feedback/spinner/index.scss +26 -7
- package/src/components/feedback/spinner/spinner.api.json +77 -0
- package/src/{04-components → components}/feedback/spinner/spinner.docs.json +42 -9
- package/src/{04-components → components}/feedback/toast/index.scss +47 -17
- package/src/components/feedback/toast/toast.api.json +90 -0
- package/src/components/feedback/toast/toast.docs.json +281 -0
- package/src/components/forms/checkbox/checkbox.api.json +65 -0
- package/src/{04-components → components}/forms/checkbox/checkbox.docs.json +30 -10
- package/src/{04-components → components}/forms/checkbox/index.scss +35 -10
- package/src/components/forms/checkbox-group/checkbox-group.api.json +73 -0
- package/src/{04-components → components}/forms/checkbox-group/checkbox-group.docs.json +1 -0
- package/src/{04-components → components}/forms/checkbox-group/index.scss +23 -6
- package/src/components/forms/field/field.api.json +21 -0
- package/src/components/forms/field/field.docs.json +190 -0
- package/src/{04-components → components}/forms/field/index.scss +5 -1
- package/src/components/forms/fieldset/fieldset.api.json +68 -0
- package/src/{04-components → components}/forms/fieldset/index.scss +22 -5
- package/src/components/forms/form/form.api.json +42 -0
- package/src/{04-components → components}/forms/form/index.scss +11 -1
- package/src/components/forms/form-error/form-error.api.json +26 -0
- package/src/{04-components → components}/forms/form-error/form-error.docs.json +23 -2
- package/src/{04-components → components}/forms/form-error/index.scss +8 -2
- package/src/components/forms/form-helper/form-helper.api.json +23 -0
- package/src/{04-components → components}/forms/form-helper/form-helper.docs.json +3 -1
- package/src/{04-components → components}/forms/form-helper/index.scss +8 -2
- package/src/{04-components → components}/forms/input/index.scss +49 -16
- package/src/{04-components → components}/forms/input/input-visual.png +0 -0
- package/src/components/forms/input/input.api.json +114 -0
- package/src/{04-components → components}/forms/input/input.docs.json +128 -11
- package/src/{04-components → components}/forms/label/index.scss +15 -6
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/components/forms/label/label.api.json +36 -0
- package/src/{04-components → components}/forms/label/label.docs.json +43 -6
- package/src/{04-components → components}/forms/number-input/index.scss +41 -16
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.api.json +103 -0
- package/src/{04-components → components}/forms/number-input/number-input.docs.json +50 -1
- package/src/{04-components → components}/forms/password-input/index.scss +45 -14
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.api.json +115 -0
- package/src/{04-components → components}/forms/password-input/password-input.docs.json +42 -2
- package/src/{04-components → components}/forms/radio/index.scss +35 -11
- package/src/components/forms/radio/radio.api.json +60 -0
- package/src/{04-components → components}/forms/radio/radio.docs.json +94 -12
- package/src/{04-components → components}/forms/radio-group/index.scss +23 -6
- package/src/components/forms/radio-group/radio-group.api.json +73 -0
- package/src/{04-components → components}/forms/radio-group/radio-group.docs.json +1 -0
- package/src/{04-components → components}/forms/search-input/index.scss +43 -12
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/components/forms/search-input/search-input.api.json +126 -0
- package/src/{04-components → components}/forms/search-input/search-input.docs.json +37 -1
- package/src/{04-components → components}/forms/select/index.scss +46 -15
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/components/forms/select/select.api.json +106 -0
- package/src/{04-components → components}/forms/select/select.docs.json +87 -18
- package/src/{04-components → components}/forms/slider/index.scss +29 -11
- package/src/components/forms/slider/slider.api.json +85 -0
- package/src/{04-components → components}/forms/slider/slider.docs.json +3 -3
- package/src/{04-components → components}/forms/textarea/index.scss +45 -14
- package/src/components/forms/textarea/textarea.api.json +116 -0
- package/src/{04-components → components}/forms/textarea/textarea.docs.json +15 -9
- package/src/{04-components → components}/forms/toggle/index.scss +20 -8
- package/src/components/forms/toggle/toggle-visual.png +0 -0
- package/src/components/forms/toggle/toggle.api.json +57 -0
- package/src/components/forms/toggle/toggle.docs.json +229 -0
- package/src/{04-components → components}/index.scss +3 -3
- package/src/components/navigation/breadcrumb/breadcrumb.api.json +50 -0
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +170 -0
- package/src/{04-components → components}/navigation/breadcrumb/index.scss +18 -5
- package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/{04-components → components}/navigation/dropdown-menu/dropdown-menu.api.json +7 -3
- package/src/{04-components → components}/navigation/dropdown-menu/dropdown-menu.docs.json +18 -0
- package/src/{04-components → components}/navigation/dropdown-menu/index.scss +16 -6
- package/src/{04-components → components}/navigation/menu/index.scss +43 -19
- package/src/{04-components → components}/navigation/menu/menu.api.json +24 -13
- package/src/components/navigation/menu/menu.docs.json +326 -0
- package/src/{04-components → components}/navigation/nav/index.scss +31 -12
- package/src/components/navigation/nav/nav.api.json +79 -0
- package/src/{04-components → components}/navigation/pagination/index.scss +22 -6
- package/src/{04-components → components}/navigation/pagination/pagination.api.json +21 -12
- package/src/components/navigation/pagination/pagination.docs.json +483 -0
- package/src/components/navigation/tabs/index.scss +149 -0
- package/src/components/navigation/tabs/tabs-visual.png +0 -0
- package/src/components/navigation/tabs/tabs.api.json +90 -0
- package/src/components/navigation/tabs/tabs.docs.json +243 -0
- package/src/components/overlays/dialog/dialog.api.json +39 -0
- package/src/components/overlays/dialog/dialog.docs.json +200 -0
- package/src/{04-components → components}/overlays/dialog/index.scss +13 -4
- package/src/components/overlays/drawer/drawer-visual.png +0 -0
- package/src/components/overlays/drawer/drawer.api.json +68 -0
- package/src/components/overlays/drawer/drawer.docs.json +282 -0
- package/src/{04-components → components}/overlays/drawer/index.scss +60 -28
- package/src/{04-components → components}/overlays/modal/index.scss +20 -5
- package/src/components/overlays/modal/modal.api.json +64 -0
- package/src/components/overlays/modal/modal.docs.json +163 -0
- package/src/components/overlays/overlay/index.scss +61 -0
- package/src/{04-components → components}/overlays/overlay/overlay.api.json +11 -6
- package/src/components/overlays/overlay/overlay.docs.json +138 -0
- package/src/{04-components → components}/overlays/popover/index.scss +27 -10
- package/src/components/overlays/popover/popover.api.json +56 -0
- package/src/{04-components → components}/overlays/popover/popover.docs.json +47 -6
- package/src/{04-components → components}/overlays/tooltip/index.scss +22 -7
- package/src/components/overlays/tooltip/tooltip.api.json +58 -0
- package/src/{04-components → components}/overlays/tooltip/tooltip.docs.json +46 -6
- package/src/components/typography/blockquote/blockquote.api.json +45 -0
- package/src/{04-components → components}/typography/blockquote/index.scss +18 -5
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/components/typography/code/code.api.json +67 -0
- package/src/{04-components → components}/typography/code/code.docs.json +23 -3
- package/src/{04-components → components}/typography/code/index.scss +24 -7
- package/src/{04-components → components}/typography/code-block/code-block-visual.png +0 -0
- package/src/components/typography/code-block/code-block.api.json +75 -0
- package/src/{04-components → components}/typography/code-block/code-block.docs.json +19 -0
- package/src/{04-components → components}/typography/code-block/index.scss +27 -8
- package/src/components/typography/heading/heading.api.json +102 -0
- package/src/{04-components → components}/typography/heading/heading.docs.json +28 -6
- package/src/{04-components → components}/typography/heading/index.scss +19 -1
- package/src/{04-components → components}/typography/kbd/index.scss +15 -3
- package/src/components/typography/kbd/kbd.api.json +48 -0
- package/src/{04-components → components}/typography/kbd/kbd.docs.json +1 -1
- package/src/{04-components → components}/typography/link/index.scss +17 -4
- package/src/components/typography/link/link.api.json +53 -0
- package/src/{04-components → components}/typography/link/link.docs.json +51 -6
- package/src/{04-components → components}/typography/list/index.scss +8 -1
- package/src/{04-components → components}/typography/list/list.api.json +12 -7
- package/src/{04-components → components}/typography/list/list.docs.json +5 -2
- package/src/{04-components → components}/typography/mark/index.scss +8 -1
- package/src/components/typography/mark/mark.api.json +33 -0
- package/src/{00-config → config}/tokens/_variables.scss +48 -0
- package/src/config/tokens/accessibility.docs.json +104 -0
- package/src/config/tokens/borders/index.scss +8 -0
- package/src/config/tokens/colors/colors.docs.json +316 -0
- package/src/config/tokens/colors/index.scss +28 -0
- package/src/{00-config → config}/tokens/grid/grid.docs.json +1 -1
- package/src/config/tokens/grid/index.scss +13 -0
- package/src/{00-config → config}/tokens/motion/index.scss +2 -0
- package/src/config/tokens/radius/index.scss +9 -0
- package/src/config/tokens/semantic/colors/index.scss +67 -0
- package/src/config/tokens/semantic/spacing/index.scss +12 -0
- package/src/config/tokens/shadows/index.scss +7 -0
- package/src/config/tokens/spacing/index.scss +17 -0
- package/src/{00-config → config}/tokens/spacing/spacing.docs.json +7 -7
- package/src/config/tokens/theming.docs.json +179 -0
- package/src/config/tokens/typography/index.scss +120 -0
- package/src/{00-config → config}/tokens/zindex/index.scss +1 -0
- package/src/{99-debug → debug}/grid-overlay.scss +7 -6
- package/src/index.scss +17 -20
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/layout/app-shell/app-shell.api.json +24 -0
- package/src/{03-layout → layout}/app-shell/app-shell.docs.json +28 -10
- package/src/layout/app-shell/app-shell.visual.spec.ts +13 -0
- package/src/layout/app-shell/index.scss +9 -0
- package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.api.json +2 -7
- package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.docs.json +2 -2
- package/src/{03-layout → layout}/aspect-ratio/index.scss +4 -0
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.api.json +32 -0
- package/src/layout/box/box.docs.json +93 -0
- package/src/layout/box/box.visual.spec.ts +13 -0
- package/src/layout/box/index.scss +52 -0
- package/src/layout/center/center-visual.png +0 -0
- package/src/layout/center/center.api.json +7 -0
- package/src/layout/center/center.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/center/index.scss +3 -0
- package/src/layout/column/column-visual.png +0 -0
- package/src/layout/column/column.api.json +11 -0
- package/src/{03-layout/stack/stack.docs.json → layout/column/column.docs.json} +7 -7
- package/src/layout/column/column.visual.spec.ts +13 -0
- package/src/layout/column/index.scss +22 -0
- package/src/{03-layout → layout}/container/container.api.json +4 -3
- package/src/layout/container/index.scss +24 -0
- package/src/layout/content/content.api.json +30 -0
- package/src/{03-layout → layout}/content/index.scss +10 -1
- package/src/layout/footer/footer-visual.png +0 -0
- package/src/{03-layout → layout}/footer/footer.api.json +11 -5
- package/src/{03-layout → layout}/footer/footer.docs.json +9 -0
- package/src/{03-layout → layout}/footer/index.scss +21 -5
- package/src/layout/grid/grid-visual.png +0 -0
- package/src/layout/grid/grid.api.json +11 -0
- package/src/layout/grid/grid.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/grid/index.scss +6 -1
- package/src/{03-layout → layout}/index.scss +2 -3
- package/src/layout/main/index.scss +24 -0
- package/src/{03-layout → layout}/main/main.api.json +1 -0
- package/src/{03-layout → layout}/nav-rail/index.scss +14 -3
- package/src/layout/nav-rail/nav-rail.api.json +41 -0
- package/src/{03-layout → layout}/page-header/index.scss +21 -6
- package/src/{03-layout → layout}/page-header/page-header.api.json +9 -4
- package/src/layout/row/index.scss +26 -0
- package/src/layout/row/row.api.json +11 -0
- package/src/{03-layout/cluster/cluster.docs.json → layout/row/row.docs.json} +6 -6
- package/src/{03-layout/cluster/cluster.visual.spec.ts → layout/row/row.visual.spec.ts} +5 -5
- package/src/layout/sidebar/index.scss +40 -0
- package/src/{03-layout → layout}/sidebar/sidebar.api.json +1 -0
- package/src/{03-layout → layout}/sidebar/sidebar.docs.json +6 -5
- package/src/{03-layout → layout}/sidebar-nav/index.scss +70 -19
- package/src/layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/layout/sidebar-nav/sidebar-nav.api.json +143 -0
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +827 -0
- package/src/{03-layout → layout}/topbar/index.scss +20 -5
- package/src/{03-layout → layout}/topbar/topbar.api.json +11 -5
- package/src/testing/api-types.ts +1 -1
- package/src/testing/grid-alignment.spec.ts +34 -88
- package/src/testing/html-generator.ts +1 -1
- package/src/testing/page-setup.ts +4 -2
- package/src/utilities/border/index.scss +18 -0
- package/src/{05-utilities → utilities}/display/display.scss +11 -11
- package/src/{05-utilities → utilities}/spacing/spacing.docs.json +1 -1
- package/src/{05-utilities → utilities}/spacing/spacing.scss +5 -5
- package/src/{05-utilities → utilities}/text/text.docs.json +7 -7
- package/src/{05-utilities → utilities}/visually-hidden/index.scss +2 -2
- package/src/{05-utilities → utilities}/visually-hidden/visually-hidden.docs.json +17 -2
- package/src/00-config/mixins/_border.scss +0 -13
- package/src/00-config/mixins/index.scss +0 -1
- package/src/00-config/tokens/borders/index.scss +0 -6
- package/src/00-config/tokens/colors/colors.docs.json +0 -168
- package/src/00-config/tokens/colors/index.scss +0 -26
- package/src/00-config/tokens/grid/index.scss +0 -11
- package/src/00-config/tokens/radius/index.scss +0 -7
- package/src/00-config/tokens/semantic/colors/index.scss +0 -30
- package/src/00-config/tokens/semantic/spacing/index.scss +0 -10
- package/src/00-config/tokens/shadows/index.scss +0 -5
- package/src/00-config/tokens/spacing/index.scss +0 -15
- package/src/00-config/tokens/theming.docs.json +0 -77
- package/src/00-config/tokens/typography/index.scss +0 -119
- package/src/02-base/typography/typography.docs.json +0 -94
- package/src/03-layout/app-shell/app-shell.api.json +0 -44
- package/src/03-layout/app-shell/index.scss +0 -5
- package/src/03-layout/box/box.api.json +0 -15
- package/src/03-layout/box/box.docs.json +0 -57
- package/src/03-layout/box/index.scss +0 -34
- package/src/03-layout/center/center.api.json +0 -6
- package/src/03-layout/cluster/cluster.api.json +0 -10
- package/src/03-layout/cluster/index.scss +0 -18
- package/src/03-layout/container/index.scss +0 -17
- package/src/03-layout/content/content.api.json +0 -26
- package/src/03-layout/flex/flex.api.json +0 -15
- package/src/03-layout/flex/flex.docs.json +0 -56
- package/src/03-layout/flex/index.scss +0 -51
- package/src/03-layout/footer/footer-visual.png +0 -0
- package/src/03-layout/grid/grid.api.json +0 -10
- package/src/03-layout/main/index.scss +0 -18
- package/src/03-layout/nav-rail/nav-rail.api.json +0 -35
- package/src/03-layout/sidebar/index.scss +0 -30
- package/src/03-layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.api.json +0 -64
- package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +0 -100
- package/src/03-layout/stack/index.scss +0 -13
- package/src/03-layout/stack/stack.api.json +0 -10
- package/src/04-components/actions/button/button-visual.png +0 -0
- package/src/04-components/actions/button-group/button-group.docs.json +0 -52
- package/src/04-components/actions/close-button/close-button.api.json +0 -71
- package/src/04-components/data-display/avatar/avatar.api.json +0 -75
- package/src/04-components/data-display/badge/badge-visual.png +0 -0
- package/src/04-components/data-display/badge/badge.api.json +0 -86
- package/src/04-components/data-display/card/card-visual.png +0 -0
- package/src/04-components/data-display/card/card.api.json +0 -53
- package/src/04-components/data-display/card/index.scss +0 -41
- package/src/04-components/data-display/data-list/data-list.docs.json +0 -79
- package/src/04-components/data-display/icon/icon-visual.png +0 -0
- package/src/04-components/data-display/image/image.api.json +0 -76
- package/src/04-components/data-display/stat/stat.api.json +0 -18
- package/src/04-components/data-display/status/status.docs.json +0 -60
- package/src/04-components/data-display/table/table.api.json +0 -34
- package/src/04-components/data-display/table/table.docs.json +0 -59
- package/src/04-components/data-display/tag/tag-visual.png +0 -0
- package/src/04-components/data-display/tag/tag.api.json +0 -90
- package/src/04-components/disclosure/accordion/accordion.api.json +0 -23
- package/src/04-components/disclosure/accordion/accordion.docs.json +0 -51
- package/src/04-components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/04-components/disclosure/disclosure/disclosure.docs.json +0 -73
- package/src/04-components/feedback/alert/alert.api.json +0 -97
- package/src/04-components/feedback/alert/alert.docs.json +0 -79
- package/src/04-components/feedback/progress/progress-visual.png +0 -0
- package/src/04-components/feedback/progress/progress.docs.json +0 -87
- package/src/04-components/feedback/skeleton/skeleton.api.json +0 -26
- package/src/04-components/feedback/skeleton/skeleton.docs.json +0 -62
- package/src/04-components/feedback/spinner/spinner.api.json +0 -63
- package/src/04-components/feedback/toast/toast.api.json +0 -64
- package/src/04-components/feedback/toast/toast.docs.json +0 -99
- package/src/04-components/forms/checkbox/checkbox.api.json +0 -50
- package/src/04-components/forms/checkbox-group/checkbox-group.api.json +0 -54
- package/src/04-components/forms/field/field.api.json +0 -19
- package/src/04-components/forms/field/field.docs.json +0 -59
- package/src/04-components/forms/fieldset/fieldset.api.json +0 -49
- package/src/04-components/forms/form/form.api.json +0 -38
- package/src/04-components/forms/form-error/form-error.api.json +0 -22
- package/src/04-components/forms/form-helper/form-helper.api.json +0 -19
- package/src/04-components/forms/input/input.api.json +0 -116
- package/src/04-components/forms/label/label-visual.png +0 -0
- package/src/04-components/forms/label/label.api.json +0 -31
- package/src/04-components/forms/number-input/number-input-visual.png +0 -0
- package/src/04-components/forms/number-input/number-input.api.json +0 -74
- package/src/04-components/forms/password-input/password-input-visual.png +0 -0
- package/src/04-components/forms/password-input/password-input.api.json +0 -84
- package/src/04-components/forms/radio/radio.api.json +0 -46
- package/src/04-components/forms/radio-group/radio-group.api.json +0 -54
- package/src/04-components/forms/search-input/search-input-visual.png +0 -0
- package/src/04-components/forms/search-input/search-input.api.json +0 -85
- package/src/04-components/forms/select/select-visual.png +0 -0
- package/src/04-components/forms/select/select.api.json +0 -88
- package/src/04-components/forms/slider/slider.api.json +0 -70
- package/src/04-components/forms/textarea/textarea.api.json +0 -96
- package/src/04-components/forms/toggle/toggle-visual.png +0 -0
- package/src/04-components/forms/toggle/toggle.api.json +0 -48
- package/src/04-components/forms/toggle/toggle.docs.json +0 -92
- package/src/04-components/layout/divider/divider.docs.json +0 -68
- package/src/04-components/layout/scroll-area/scroll-area-visual.png +0 -0
- package/src/04-components/layout/scroll-area/scroll-area.api.json +0 -63
- package/src/04-components/layout/spacer/index.scss +0 -11
- package/src/04-components/layout/spacer/spacer.api.json +0 -6
- package/src/04-components/navigation/breadcrumb/breadcrumb.api.json +0 -36
- package/src/04-components/navigation/breadcrumb/breadcrumb.docs.json +0 -59
- package/src/04-components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/04-components/navigation/menu/menu.docs.json +0 -81
- package/src/04-components/navigation/nav/nav.api.json +0 -55
- package/src/04-components/navigation/pagination/pagination.docs.json +0 -88
- package/src/04-components/navigation/tabs/index.scss +0 -77
- package/src/04-components/navigation/tabs/tabs-visual.png +0 -0
- package/src/04-components/navigation/tabs/tabs.api.json +0 -48
- package/src/04-components/navigation/tabs/tabs.docs.json +0 -61
- package/src/04-components/overlays/dialog/dialog.api.json +0 -34
- package/src/04-components/overlays/dialog/dialog.docs.json +0 -58
- package/src/04-components/overlays/drawer/drawer-visual.png +0 -0
- package/src/04-components/overlays/drawer/drawer.api.json +0 -55
- package/src/04-components/overlays/drawer/drawer.docs.json +0 -78
- package/src/04-components/overlays/modal/modal.api.json +0 -54
- package/src/04-components/overlays/modal/modal.docs.json +0 -86
- package/src/04-components/overlays/overlay/index.scss +0 -49
- package/src/04-components/overlays/overlay/overlay.docs.json +0 -63
- package/src/04-components/overlays/popover/popover.api.json +0 -47
- package/src/04-components/overlays/tooltip/tooltip.api.json +0 -49
- package/src/04-components/typography/blockquote/blockquote.api.json +0 -18
- package/src/04-components/typography/code/code-visual.png +0 -0
- package/src/04-components/typography/code/code.api.json +0 -52
- package/src/04-components/typography/code-block/code-block.api.json +0 -56
- package/src/04-components/typography/heading/heading.api.json +0 -83
- package/src/04-components/typography/kbd/kbd.api.json +0 -15
- package/src/04-components/typography/link/link.api.json +0 -45
- package/src/04-components/typography/mark/mark.api.json +0 -12
- package/src/05-utilities/border/index.scss +0 -21
- package/src/testing/sidebar-toggles.spec.ts +0 -103
- /package/src/{02-base → base}/index.scss +0 -0
- /package/src/{04-components → components}/actions/button/button.visual.spec.ts +0 -0
- /package/src/{04-components → components}/actions/button-group/button-group-visual.png +0 -0
- /package/src/{04-components → components}/actions/button-group/button-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/actions/close-button/close-button-visual.png +0 -0
- /package/src/{04-components → components}/actions/close-button/close-button.visual.spec.ts +0 -0
- /package/src/{04-components/layout → components/content}/divider/divider-visual.png +0 -0
- /package/src/{04-components/layout → components/content}/divider/divider.visual.spec.ts +0 -0
- /package/src/{04-components/layout → components/content}/scroll-area/scroll-area.visual.spec.ts +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer-visual.png +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/avatar/avatar-visual.png +0 -0
- /package/src/{04-components → components}/data-display/avatar/avatar.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/badge/badge.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/card/card.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/data-list/data-list-visual.png +0 -0
- /package/src/{04-components → components}/data-display/data-list/data-list.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/icon/icon.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/image/image-visual.png +0 -0
- /package/src/{04-components → components}/data-display/image/image.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/stat/stat-visual.png +0 -0
- /package/src/{04-components → components}/data-display/stat/stat.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/status/status-visual.png +0 -0
- /package/src/{04-components → components}/data-display/status/status.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/table/table-visual.png +0 -0
- /package/src/{04-components → components}/data-display/table/table.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/tag/tag.visual.spec.ts +0 -0
- /package/src/{04-components → components}/disclosure/accordion/accordion-visual.png +0 -0
- /package/src/{04-components → components}/disclosure/accordion/accordion.visual.spec.ts +0 -0
- /package/src/{04-components → components}/disclosure/disclosure/disclosure.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/alert/alert.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/progress/progress.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/progress-circle/progress-circle-visual.png +0 -0
- /package/src/{04-components → components}/feedback/progress-circle/progress-circle.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/skeleton/skeleton-visual.png +0 -0
- /package/src/{04-components → components}/feedback/skeleton/skeleton.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/spinner/spinner-visual.png +0 -0
- /package/src/{04-components → components}/feedback/spinner/spinner.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/toast/toast-visual.png +0 -0
- /package/src/{04-components → components}/feedback/toast/toast.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/checkbox/checkbox-visual.png +0 -0
- /package/src/{04-components → components}/forms/checkbox/checkbox.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/checkbox-group/checkbox-group-visual.png +0 -0
- /package/src/{04-components → components}/forms/checkbox-group/checkbox-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/field/field-visual.png +0 -0
- /package/src/{04-components → components}/forms/field/field.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset-visual.png +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset.docs.json +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form/form-visual.png +0 -0
- /package/src/{04-components → components}/forms/form/form.docs.json +0 -0
- /package/src/{04-components → components}/forms/form/form.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form-error/form-error-visual.png +0 -0
- /package/src/{04-components → components}/forms/form-error/form-error.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form-helper/form-helper-visual.png +0 -0
- /package/src/{04-components → components}/forms/form-helper/form-helper.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/input/input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/label/label.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/number-input/number-input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/password-input/password-input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/radio/radio-visual.png +0 -0
- /package/src/{04-components → components}/forms/radio/radio.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/radio-group/radio-group-visual.png +0 -0
- /package/src/{04-components → components}/forms/radio-group/radio-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/search-input/search-input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/select/select.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/slider/slider-visual.png +0 -0
- /package/src/{04-components → components}/forms/slider/slider.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/textarea/textarea-visual.png +0 -0
- /package/src/{04-components → components}/forms/textarea/textarea.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/toggle/toggle.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/breadcrumb/breadcrumb-visual.png +0 -0
- /package/src/{04-components → components}/navigation/breadcrumb/breadcrumb.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/menu/menu-visual.png +0 -0
- /package/src/{04-components → components}/navigation/menu/menu.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/nav/nav-visual.png +0 -0
- /package/src/{04-components → components}/navigation/nav/nav.docs.json +0 -0
- /package/src/{04-components → components}/navigation/nav/nav.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/pagination/pagination-visual.png +0 -0
- /package/src/{04-components → components}/navigation/pagination/pagination.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/tabs/tabs.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/dialog/dialog-visual.png +0 -0
- /package/src/{04-components → components}/overlays/dialog/dialog.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/drawer/drawer.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/modal/modal-visual.png +0 -0
- /package/src/{04-components → components}/overlays/modal/modal.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/overlay/overlay-visual.png +0 -0
- /package/src/{04-components → components}/overlays/overlay/overlay.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/popover/popover-visual.png +0 -0
- /package/src/{04-components → components}/overlays/popover/popover.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/tooltip/tooltip-visual.png +0 -0
- /package/src/{04-components → components}/overlays/tooltip/tooltip.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote-visual.png +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote.docs.json +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/code/code.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/code-block/code-block.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/heading/heading-visual.png +0 -0
- /package/src/{04-components → components}/typography/heading/heading.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/kbd/kbd-visual.png +0 -0
- /package/src/{04-components → components}/typography/kbd/kbd.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/link/link-visual.png +0 -0
- /package/src/{04-components → components}/typography/link/link.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/list/list-visual.png +0 -0
- /package/src/{04-components → components}/typography/list/list.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/mark/mark-visual.png +0 -0
- /package/src/{04-components → components}/typography/mark/mark.docs.json +0 -0
- /package/src/{04-components → components}/typography/mark/mark.visual.spec.ts +0 -0
- /package/src/{00-config → config}/layers/layers.scss +0 -0
- /package/src/{00-config → config}/tokens/index.scss +0 -0
- /package/src/{00-config → config}/tokens/input.scss +0 -0
- /package/src/{99-debug → debug}/index.scss +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio-visual.png +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/center/center.docs.json +0 -0
- /package/src/{03-layout → layout}/content/content-visual.png +0 -0
- /package/src/{03-layout → layout}/content/content.docs.json +0 -0
- /package/src/{03-layout → layout}/content/content.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/footer/footer.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/grid/grid.docs.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail-visual.png +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.docs.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/page-header/page-header-visual.png +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.docs.json +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.visual.spec.ts +0 -0
- /package/src/{03-layout/cluster/cluster-visual.png → layout/row/row-visual.png} +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar-visual.png +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/sidebar-nav/sidebar-nav.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/topbar/topbar-visual.png +0 -0
- /package/src/{03-layout → layout}/topbar/topbar.docs.json +0 -0
- /package/src/{03-layout → layout}/topbar/topbar.visual.spec.ts +0 -0
- /package/src/{01-reset → reset}/index.scss +0 -0
- /package/src/{01-reset → reset}/reset.scss +0 -0
- /package/src/{05-utilities → utilities}/display/display.api.json +0 -0
- /package/src/{05-utilities → utilities}/display/display.docs.json +0 -0
- /package/src/{05-utilities → utilities}/index.scss +0 -0
- /package/src/{05-utilities → utilities}/spacing/spacing.api.json +0 -0
- /package/src/{05-utilities → utilities}/text/text.api.json +0 -0
- /package/src/{05-utilities → utilities}/text/text.scss +0 -0
- /package/src/{05-utilities → utilities}/view-transition/index.scss +0 -0
- /package/src/{05-utilities → utilities}/view-transition/view-transition.api.json +0 -0
- /package/src/{05-utilities → utilities}/view-transition/view-transition.docs.json +0 -0
- /package/src/{05-utilities → utilities}/visually-hidden/visually-hidden.api.json +0 -0
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component checkbox-group
|
|
4
4
|
// @element fieldset
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.checkbox-group {
|
|
8
|
+
--_leading-tight-sm: var(--ui-leading-tight-sm, var(--ui-row-1, #{t.$leading-tight-sm}));
|
|
9
|
+
--_row-1: var(--ui-row-1, #{t.$row-1});
|
|
10
|
+
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
11
|
+
--_space-2: var(--ui-space-2, #{t.$space-2});
|
|
12
|
+
// @desc Spacing
|
|
8
13
|
--_spacing: var(--ui-checkbox-group-spacing, var(--ui-space-1, #{t.$space-1}));
|
|
14
|
+
// @desc Legend size
|
|
9
15
|
--_legend-size: var(--ui-checkbox-group-legend-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
16
|
+
// @desc Legend weight
|
|
10
17
|
--_legend-weight: var(--ui-checkbox-group-legend-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
18
|
+
// @desc Legend color
|
|
11
19
|
--_legend-color: var(--ui-checkbox-group-legend-color, var(--ui-color-text, #{t.$color-text}));
|
|
20
|
+
// @desc Legend spacing
|
|
12
21
|
--_legend-spacing: var(--ui-checkbox-group-legend-spacing, var(--ui-space-1, #{t.$space-1}));
|
|
22
|
+
// @desc Item gap between children
|
|
13
23
|
--_item-gap: var(--ui-checkbox-group-item-gap, var(--ui-space-1, #{t.$space-1}));
|
|
14
24
|
}
|
|
15
25
|
|
|
26
|
+
// @modifier boolean compact
|
|
16
27
|
.checkbox-group--compact {
|
|
28
|
+
// @desc Spacing compact
|
|
17
29
|
--_spacing: var(--ui-checkbox-group-spacing-compact, 0);
|
|
30
|
+
// @desc Legend spacing compact
|
|
18
31
|
--_legend-spacing: var(--ui-checkbox-group-legend-spacing-compact, 0);
|
|
32
|
+
// @desc Item gap compact
|
|
19
33
|
--_item-gap: var(--ui-checkbox-group-item-gap-compact, 0);
|
|
20
34
|
}
|
|
21
35
|
|
|
22
36
|
// @modifier state
|
|
37
|
+
// @modifier boolean error
|
|
23
38
|
.checkbox-group--error {
|
|
39
|
+
// @desc Error color
|
|
24
40
|
--_legend-color: var(--ui-checkbox-group-error-color, var(--ui-color-danger, #{t.$color-danger}));
|
|
25
41
|
}
|
|
26
42
|
}
|
|
@@ -43,7 +59,7 @@
|
|
|
43
59
|
|
|
44
60
|
font-size: var(--_legend-size);
|
|
45
61
|
font-weight: var(--_legend-weight);
|
|
46
|
-
line-height: var(--
|
|
62
|
+
line-height: var(--_leading-tight-sm);
|
|
47
63
|
color: var(--_legend-color);
|
|
48
64
|
}
|
|
49
65
|
|
|
@@ -58,27 +74,28 @@
|
|
|
58
74
|
align-items: center;
|
|
59
75
|
gap: var(--_item-gap);
|
|
60
76
|
|
|
61
|
-
line-height: var(--
|
|
77
|
+
line-height: var(--_row-1);
|
|
62
78
|
|
|
63
79
|
cursor: pointer;
|
|
64
80
|
}
|
|
65
81
|
|
|
66
82
|
.checkbox-group__item:has(:disabled) {
|
|
67
|
-
opacity:
|
|
83
|
+
opacity: var(--_opacity-disabled);
|
|
68
84
|
cursor: not-allowed;
|
|
69
85
|
}
|
|
70
86
|
|
|
71
87
|
// Horizontal layout
|
|
88
|
+
// @modifier boolean horizontal
|
|
72
89
|
.checkbox-group--horizontal > .checkbox-group__items {
|
|
73
90
|
flex-direction: row;
|
|
74
91
|
flex-wrap: wrap;
|
|
75
|
-
gap: var(--
|
|
92
|
+
gap: var(--_space-2);
|
|
76
93
|
}
|
|
77
94
|
|
|
78
95
|
// Disabled group
|
|
79
96
|
.checkbox-group:disabled,
|
|
80
97
|
.checkbox-group[aria-disabled='true'] {
|
|
81
|
-
opacity:
|
|
98
|
+
opacity: var(--_opacity-disabled);
|
|
82
99
|
cursor: not-allowed;
|
|
83
100
|
}
|
|
84
101
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "field",
|
|
4
|
+
"element": "div",
|
|
5
|
+
"modifiers": {
|
|
6
|
+
"horizontal": {
|
|
7
|
+
"type": "boolean"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"elements": {
|
|
11
|
+
"control": {},
|
|
12
|
+
"label": {}
|
|
13
|
+
},
|
|
14
|
+
"cssVars": [
|
|
15
|
+
{
|
|
16
|
+
"name": "--ui-field-gap",
|
|
17
|
+
"default": "0",
|
|
18
|
+
"description": "Gap between children"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
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": { "for": "email" }
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"tag": "div",
|
|
25
|
+
"class": "ui-field__control",
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"tag": "input",
|
|
29
|
+
"class": "ui-input",
|
|
30
|
+
"attrs": { "type": "email", "id": "email", "placeholder": "Enter email" }
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"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>"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "With Helper Text",
|
|
43
|
+
"examples": [
|
|
44
|
+
{
|
|
45
|
+
"items": [
|
|
46
|
+
{
|
|
47
|
+
"tag": "div",
|
|
48
|
+
"class": "ui-field",
|
|
49
|
+
"children": [
|
|
50
|
+
{
|
|
51
|
+
"tag": "label",
|
|
52
|
+
"class": "ui-label",
|
|
53
|
+
"text": "Password",
|
|
54
|
+
"attrs": { "for": "password" }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"tag": "div",
|
|
58
|
+
"class": "ui-field__control",
|
|
59
|
+
"children": [
|
|
60
|
+
{
|
|
61
|
+
"tag": "input",
|
|
62
|
+
"class": "ui-input",
|
|
63
|
+
"attrs": { "type": "password", "id": "password" }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"tag": "span",
|
|
67
|
+
"class": "ui-form-helper",
|
|
68
|
+
"text": "Must be at least 8 characters"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"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>"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"title": "With Error",
|
|
81
|
+
"examples": [
|
|
82
|
+
{
|
|
83
|
+
"items": [
|
|
84
|
+
{
|
|
85
|
+
"tag": "div",
|
|
86
|
+
"class": "ui-field",
|
|
87
|
+
"children": [
|
|
88
|
+
{
|
|
89
|
+
"tag": "label",
|
|
90
|
+
"class": "ui-label",
|
|
91
|
+
"text": "Username",
|
|
92
|
+
"attrs": { "for": "username" }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"tag": "div",
|
|
96
|
+
"class": "ui-field__control",
|
|
97
|
+
"children": [
|
|
98
|
+
{
|
|
99
|
+
"tag": "input",
|
|
100
|
+
"class": "ui-input ui-input--error",
|
|
101
|
+
"attrs": { "type": "text", "id": "username", "value": "ab" }
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tag": "span",
|
|
105
|
+
"class": "ui-form-error",
|
|
106
|
+
"text": "Username must be at least 3 characters"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"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>"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"title": "Horizontal Layout",
|
|
119
|
+
"description": "Label beside control for wider forms",
|
|
120
|
+
"api": "./field.api.json",
|
|
121
|
+
"examples": [
|
|
122
|
+
{
|
|
123
|
+
"items": [
|
|
124
|
+
{
|
|
125
|
+
"tag": "div",
|
|
126
|
+
"class": "ui-field ui-field--horizontal",
|
|
127
|
+
"children": [
|
|
128
|
+
{
|
|
129
|
+
"tag": "label",
|
|
130
|
+
"class": "ui-label ui-field__label",
|
|
131
|
+
"text": "Full Name",
|
|
132
|
+
"attrs": { "for": "name" }
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"tag": "div",
|
|
136
|
+
"class": "ui-field__control",
|
|
137
|
+
"children": [
|
|
138
|
+
{
|
|
139
|
+
"tag": "input",
|
|
140
|
+
"class": "ui-input",
|
|
141
|
+
"attrs": { "type": "text", "id": "name" }
|
|
142
|
+
},
|
|
143
|
+
{ "tag": "span", "class": "ui-form-helper", "text": "As it appears on your ID" }
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"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>"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"title": "Required Field",
|
|
155
|
+
"examples": [
|
|
156
|
+
{
|
|
157
|
+
"items": [
|
|
158
|
+
{
|
|
159
|
+
"tag": "div",
|
|
160
|
+
"class": "ui-field",
|
|
161
|
+
"children": [
|
|
162
|
+
{
|
|
163
|
+
"tag": "label",
|
|
164
|
+
"class": "ui-label ui-label--required",
|
|
165
|
+
"text": "Required Field",
|
|
166
|
+
"attrs": { "for": "req" }
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"tag": "div",
|
|
170
|
+
"class": "ui-field__control",
|
|
171
|
+
"children": [
|
|
172
|
+
{
|
|
173
|
+
"tag": "input",
|
|
174
|
+
"class": "ui-input",
|
|
175
|
+
"attrs": { "type": "text", "id": "req", "required": "" }
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"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>"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"customization": [
|
|
188
|
+
{ "token": "--ui-field-gap", "default": "0", "description": "Gap between field elements" }
|
|
189
|
+
]
|
|
190
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
|
+
// @component field
|
|
3
|
+
// @element div
|
|
2
4
|
|
|
3
5
|
// Field - form field wrapper
|
|
4
6
|
// Combines label, control, helper text, and error message
|
|
5
7
|
|
|
6
8
|
@layer components.tokens {
|
|
7
9
|
.field {
|
|
10
|
+
// @desc Gap between children
|
|
8
11
|
--_gap: var(--ui-field-gap, 0);
|
|
9
12
|
}
|
|
10
13
|
}
|
|
@@ -23,6 +26,7 @@
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
// Horizontal layout variant
|
|
29
|
+
// @modifier boolean horizontal
|
|
26
30
|
.field--horizontal {
|
|
27
31
|
flex-direction: row;
|
|
28
32
|
flex-wrap: wrap;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "fieldset",
|
|
4
|
+
"element": "fieldset",
|
|
5
|
+
"modifiers": {
|
|
6
|
+
"compact": {
|
|
7
|
+
"type": "boolean"
|
|
8
|
+
},
|
|
9
|
+
"bordered": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"elements": {
|
|
14
|
+
"legend": {}
|
|
15
|
+
},
|
|
16
|
+
"cssVars": [
|
|
17
|
+
{
|
|
18
|
+
"name": "--ui-fieldset-spacing",
|
|
19
|
+
"default": "var(--ui-space-2)",
|
|
20
|
+
"description": "Spacing"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "--ui-fieldset-border-color",
|
|
24
|
+
"default": "var(--ui-color-border)",
|
|
25
|
+
"description": "Border color"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "--ui-fieldset-border-width",
|
|
29
|
+
"default": "var(--ui-border-width-sm)",
|
|
30
|
+
"description": "Border thickness"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "--ui-fieldset-border-radius",
|
|
34
|
+
"default": "var(--ui-radius-md)",
|
|
35
|
+
"description": "Border radius"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "--ui-fieldset-padding",
|
|
39
|
+
"default": "var(--ui-space-2)",
|
|
40
|
+
"description": "Padding on all sides"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "--ui-fieldset-legend-size",
|
|
44
|
+
"default": "var(--ui-font-size-sm)",
|
|
45
|
+
"description": "Legend size"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "--ui-fieldset-legend-weight",
|
|
49
|
+
"default": "var(--ui-weight-medium)",
|
|
50
|
+
"description": "Legend weight"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "--ui-fieldset-legend-color",
|
|
54
|
+
"default": "var(--ui-color-text)",
|
|
55
|
+
"description": "Legend color"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "--ui-fieldset-spacing-compact",
|
|
59
|
+
"default": "var(--ui-space-1)",
|
|
60
|
+
"description": "Spacing compact"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "--ui-fieldset-padding-compact",
|
|
64
|
+
"default": "var(--ui-space-1)",
|
|
65
|
+
"description": "Padding compact"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
|
+
// @component fieldset
|
|
3
|
+
// @element fieldset
|
|
2
4
|
|
|
3
5
|
// Fieldset - groups related form fields
|
|
4
6
|
// Resets native fieldset chrome, provides consistent spacing and optional border
|
|
5
7
|
|
|
6
8
|
@layer components.tokens {
|
|
7
9
|
.fieldset {
|
|
10
|
+
--_leading-tight-sm: var(--ui-leading-tight-sm, var(--ui-row-1, #{t.$leading-tight-sm}));
|
|
11
|
+
--_space-half: var(--ui-space-half, #{t.$space-0});
|
|
12
|
+
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
13
|
+
// @desc Spacing
|
|
8
14
|
--_spacing: var(--ui-fieldset-spacing, var(--ui-space-2, #{t.$space-2}));
|
|
15
|
+
// @desc Border color
|
|
9
16
|
--_border-color: var(--ui-fieldset-border-color, var(--ui-color-border, #{t.$color-border}));
|
|
17
|
+
// @desc Border thickness
|
|
10
18
|
--_border-width: var(--ui-fieldset-border-width, var(--ui-border-width-sm, #{t.$border-width-sm}));
|
|
19
|
+
// @desc Border radius
|
|
11
20
|
--_border-radius: var(--ui-fieldset-border-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
21
|
+
// @desc Padding on all sides
|
|
12
22
|
--_padding: var(--ui-fieldset-padding, var(--ui-space-2, #{t.$space-2}));
|
|
23
|
+
// @desc Legend size
|
|
13
24
|
--_legend-size: var(--ui-fieldset-legend-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
25
|
+
// @desc Legend weight
|
|
14
26
|
--_legend-weight: var(--ui-fieldset-legend-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
27
|
+
// @desc Legend color
|
|
15
28
|
--_legend-color: var(--ui-fieldset-legend-color, var(--ui-color-text, #{t.$color-text}));
|
|
16
29
|
}
|
|
17
30
|
|
|
31
|
+
// @modifier boolean compact
|
|
18
32
|
.fieldset--compact {
|
|
33
|
+
// @desc Spacing compact
|
|
19
34
|
--_spacing: var(--ui-fieldset-spacing-compact, var(--ui-space-1, #{t.$space-1}));
|
|
35
|
+
// @desc Padding compact
|
|
20
36
|
--_padding: var(--ui-fieldset-padding-compact, var(--ui-space-1, #{t.$space-1}));
|
|
21
37
|
}
|
|
22
38
|
}
|
|
@@ -40,12 +56,13 @@
|
|
|
40
56
|
|
|
41
57
|
font-size: var(--_legend-size);
|
|
42
58
|
font-weight: var(--_legend-weight);
|
|
43
|
-
line-height: var(--
|
|
59
|
+
line-height: var(--_leading-tight-sm);
|
|
44
60
|
color: var(--_legend-color);
|
|
45
61
|
}
|
|
46
62
|
|
|
47
63
|
// Bordered variant - visible border wrapping the group
|
|
48
64
|
// Legend absorbs the top border; compensate bottom border to keep grid rhythm
|
|
65
|
+
// @modifier boolean bordered
|
|
49
66
|
.fieldset--bordered {
|
|
50
67
|
padding: var(--_padding);
|
|
51
68
|
padding-block-end: calc(var(--_padding) - var(--_border-width));
|
|
@@ -56,14 +73,14 @@
|
|
|
56
73
|
|
|
57
74
|
.fieldset--bordered > .fieldset__legend {
|
|
58
75
|
inline-size: auto;
|
|
59
|
-
padding-inline: var(--
|
|
60
|
-
margin-inline-start: calc(-1 * var(--
|
|
76
|
+
padding-inline: var(--_space-half);
|
|
77
|
+
margin-inline-start: calc(-1 * var(--_space-half));
|
|
61
78
|
}
|
|
62
79
|
|
|
63
80
|
// Disabled state - fieldset[disabled] natively disables children
|
|
64
81
|
.fieldset:disabled,
|
|
65
82
|
.fieldset[aria-disabled='true'] {
|
|
66
|
-
opacity:
|
|
83
|
+
opacity: var(--_opacity-disabled);
|
|
67
84
|
cursor: not-allowed;
|
|
68
85
|
}
|
|
69
86
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "form",
|
|
4
|
+
"element": "form",
|
|
5
|
+
"modifiers": {
|
|
6
|
+
"compact": {
|
|
7
|
+
"type": "boolean"
|
|
8
|
+
},
|
|
9
|
+
"inline": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"elements": {
|
|
14
|
+
"section": {},
|
|
15
|
+
"actions": {}
|
|
16
|
+
},
|
|
17
|
+
"relatedComponents": [
|
|
18
|
+
{
|
|
19
|
+
"name": "form-error"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "form-helper"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"cssVars": [
|
|
26
|
+
{
|
|
27
|
+
"name": "--ui-form-spacing",
|
|
28
|
+
"default": "var(--ui-space-3)",
|
|
29
|
+
"description": "Spacing"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "--ui-form-actions-gap",
|
|
33
|
+
"default": "var(--ui-space-2)",
|
|
34
|
+
"description": "Actions gap"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "--ui-form-section-spacing",
|
|
38
|
+
"default": "var(--ui-space-4)",
|
|
39
|
+
"description": "Section spacing"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
|
+
// @component form
|
|
3
|
+
// @element form
|
|
4
|
+
// @related form-error, form-helper
|
|
2
5
|
|
|
3
6
|
// Form - layout container for form fields
|
|
4
7
|
// Provides consistent vertical spacing between fields, sections, and actions
|
|
5
8
|
|
|
6
9
|
@layer components.tokens {
|
|
7
10
|
.form {
|
|
11
|
+
// @desc Spacing
|
|
8
12
|
--_spacing: var(--ui-form-spacing, var(--ui-space-3, calc(#{t.$unit} * 3)));
|
|
13
|
+
// @desc Actions gap
|
|
9
14
|
--_actions-gap: var(--ui-form-actions-gap, var(--ui-space-2, calc(#{t.$unit} * 2)));
|
|
15
|
+
// @desc Section spacing
|
|
10
16
|
--_section-spacing: var(--ui-form-section-spacing, var(--ui-space-4, calc(#{t.$unit} * 4)));
|
|
11
17
|
}
|
|
12
18
|
}
|
|
@@ -44,12 +50,16 @@
|
|
|
44
50
|
}
|
|
45
51
|
|
|
46
52
|
// Compact variant - tighter spacing
|
|
53
|
+
// @modifier boolean compact
|
|
47
54
|
.form--compact {
|
|
55
|
+
// @desc Spacing compact
|
|
48
56
|
--_spacing: var(--ui-form-spacing-compact, var(--ui-space-2, calc(#{t.$unit} * 2)));
|
|
57
|
+
// @desc Section spacing compact
|
|
49
58
|
--_section-spacing: var(--ui-form-section-spacing-compact, var(--ui-space-3, calc(#{t.$unit} * 3)));
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
// Inline variant - horizontal layout for short forms (search, filters)
|
|
62
|
+
// @modifier boolean inline
|
|
53
63
|
.form--inline {
|
|
54
64
|
flex-direction: row;
|
|
55
65
|
flex-wrap: wrap;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "form-error",
|
|
4
|
+
"element": "div",
|
|
5
|
+
"modifiers": {},
|
|
6
|
+
"elements": {
|
|
7
|
+
"icon": {}
|
|
8
|
+
},
|
|
9
|
+
"cssVars": [
|
|
10
|
+
{
|
|
11
|
+
"name": "--ui-form-error-color",
|
|
12
|
+
"default": "var(--ui-color-danger)",
|
|
13
|
+
"description": "Text color"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--ui-form-error-size",
|
|
17
|
+
"default": "var(--ui-font-size-sm)",
|
|
18
|
+
"description": "Overall size"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "--ui-form-error-gap",
|
|
22
|
+
"default": "0",
|
|
23
|
+
"description": "Gap between children"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"title": "Default",
|
|
10
10
|
"examples": [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"items": [{ "tag": "span", "class": "ui-form-error", "text": "This field is required" }],
|
|
13
13
|
"code": "<span class=\"ui-form-error\">This field is required</span>"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
@@ -18,7 +18,28 @@
|
|
|
18
18
|
"title": "With Icon",
|
|
19
19
|
"examples": [
|
|
20
20
|
{
|
|
21
|
-
"
|
|
21
|
+
"items": [
|
|
22
|
+
{
|
|
23
|
+
"tag": "span",
|
|
24
|
+
"class": "ui-form-error",
|
|
25
|
+
"children": [
|
|
26
|
+
{
|
|
27
|
+
"tag": "svg",
|
|
28
|
+
"class": "ui-form-error__icon ui-icon ui-icon--sm",
|
|
29
|
+
"attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"tag": "path",
|
|
33
|
+
"attrs": {
|
|
34
|
+
"d": "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{ "tag": "span", "text": "Please enter a valid email" }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
22
43
|
"code": "<span class=\"ui-form-error\">\n <svg class=\"ui-form-error__icon ui-icon ui-icon--sm\">...</svg>\n Please enter a valid email\n</span>"
|
|
23
44
|
}
|
|
24
45
|
]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
|
+
// @component form-error
|
|
3
|
+
// @element div
|
|
2
4
|
|
|
3
5
|
// Form Error - validation error message for form fields
|
|
4
6
|
// Displays error text with danger color
|
|
5
7
|
|
|
6
8
|
@layer components.tokens {
|
|
7
9
|
.form-error {
|
|
10
|
+
--_leading-tight-sm: var(--ui-leading-tight-sm, var(--ui-row-1));
|
|
11
|
+
// @desc Text color
|
|
8
12
|
--_color: var(--ui-form-error-color, var(--ui-color-danger));
|
|
13
|
+
// @desc Overall size
|
|
9
14
|
--_size: var(--ui-form-error-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
15
|
+
// @desc Gap between children
|
|
10
16
|
--_gap: var(--ui-form-error-gap, 0);
|
|
11
17
|
}
|
|
12
18
|
}
|
|
@@ -20,7 +26,7 @@
|
|
|
20
26
|
margin-block-start: var(--_gap);
|
|
21
27
|
|
|
22
28
|
font-size: var(--_size);
|
|
23
|
-
line-height: var(--
|
|
29
|
+
line-height: var(--_leading-tight-sm);
|
|
24
30
|
color: var(--_color);
|
|
25
31
|
}
|
|
26
32
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "form-helper",
|
|
4
|
+
"element": "div",
|
|
5
|
+
"modifiers": {},
|
|
6
|
+
"cssVars": [
|
|
7
|
+
{
|
|
8
|
+
"name": "--ui-form-helper-color",
|
|
9
|
+
"default": "var(--ui-color-text-muted)",
|
|
10
|
+
"description": "Text color"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "--ui-form-helper-size",
|
|
14
|
+
"default": "var(--ui-font-size-sm)",
|
|
15
|
+
"description": "Overall size"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "--ui-form-helper-gap",
|
|
19
|
+
"default": "0",
|
|
20
|
+
"description": "Gap between children"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"title": "Default",
|
|
10
10
|
"examples": [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"items": [
|
|
13
|
+
{ "tag": "span", "class": "ui-form-helper", "text": "Must be at least 8 characters" }
|
|
14
|
+
],
|
|
13
15
|
"code": "<span class=\"ui-form-helper\">Must be at least 8 characters</span>"
|
|
14
16
|
}
|
|
15
17
|
]
|