@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,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component button
|
|
4
4
|
// @element button
|
|
@@ -6,36 +6,60 @@
|
|
|
6
6
|
// Token definitions - what makes each variant
|
|
7
7
|
@layer components.tokens {
|
|
8
8
|
.button {
|
|
9
|
+
--_space-1: var(--ui-space-1, #{t.$space-1});
|
|
10
|
+
--_font-sans: var(--ui-font-sans, #{t.$font-sans});
|
|
11
|
+
--_duration-base: var(--ui-duration-base);
|
|
12
|
+
--_ease-default: var(--ui-ease-default);
|
|
13
|
+
--_duration-fast: var(--ui-duration-fast);
|
|
14
|
+
--_border-width-md: var(--ui-border-width-md, #{t.$border-width-md});
|
|
15
|
+
--_color-focus: var(--ui-color-focus, #{t.$color-focus});
|
|
16
|
+
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
17
|
+
--_space-quarter: var(--ui-space-quarter);
|
|
18
|
+
--_opacity-loading: var(--ui-opacity-loading, #{t.$opacity-loading});
|
|
9
19
|
// Single accent color - all shades derived via color-mix
|
|
20
|
+
// @desc Primary accent color. All shades auto-generated via color-mix.
|
|
10
21
|
--_accent: var(--ui-button-accent, var(--ui-color-primary, #{t.$color-primary}));
|
|
11
22
|
|
|
23
|
+
// @desc Overall height
|
|
12
24
|
--_height: var(--ui-button-height, var(--ui-row-2, #{t.$row-2}));
|
|
25
|
+
// @desc Horizontal padding
|
|
13
26
|
--_padding-x: var(--ui-button-padding-x, var(--ui-space-2, #{t.$space-2}));
|
|
27
|
+
// @desc Font size
|
|
14
28
|
--_font-size: var(--ui-button-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
29
|
+
// @desc Font weight
|
|
15
30
|
--_font-weight: var(--ui-button-font-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
31
|
+
// @desc Corner radius
|
|
16
32
|
--_radius: var(--ui-button-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
17
33
|
--_bg: var(--_accent);
|
|
18
34
|
--_bg-hover: color-mix(in oklch, var(--_accent) 80%, black);
|
|
19
|
-
|
|
35
|
+
// @desc Text color
|
|
36
|
+
--_color: var(--ui-button-color, var(--ui-color-text-inverse, #{t.$color-text-inverse}));
|
|
20
37
|
}
|
|
21
38
|
|
|
22
39
|
// @modifier size
|
|
23
40
|
.button--sm {
|
|
24
41
|
--ui-ctx-size: var(--ui-size-sm, #{t.size(sm)});
|
|
25
|
-
|
|
42
|
+
// @desc Overall height at small size
|
|
43
|
+
--_height: var(--ui-button-height-sm, calc(var(--ui-row, #{t.$row}) * 1.5));
|
|
44
|
+
// @desc Font size at small size
|
|
26
45
|
--_font-size: var(--ui-button-font-size-sm, var(--ui-font-size-xs, #{t.$font-size-xs}));
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
.button--md {
|
|
30
49
|
--ui-ctx-size: var(--ui-size-md, #{t.size(md)});
|
|
50
|
+
// @desc Overall height at medium size
|
|
31
51
|
--_height: var(--ui-button-height-md, var(--ui-row-2, #{t.$row-2}));
|
|
52
|
+
// @desc Font size at medium size
|
|
32
53
|
--_font-size: var(--ui-button-font-size-md, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
33
54
|
}
|
|
34
55
|
|
|
35
56
|
.button--lg {
|
|
36
57
|
--ui-ctx-size: var(--ui-size-lg, #{t.size(lg)});
|
|
37
|
-
|
|
58
|
+
// @desc Overall height at large size
|
|
59
|
+
--_height: var(--ui-button-height-lg, calc(var(--ui-row, #{t.$row}) * 2.5));
|
|
60
|
+
// @desc Horizontal padding at large size
|
|
38
61
|
--_padding-x: var(--ui-button-padding-x-lg, var(--ui-space-3, #{t.$space-3}));
|
|
62
|
+
// @desc Font size at large size
|
|
39
63
|
--_font-size: var(--ui-button-font-size-lg, var(--ui-font-size-md, #{t.$font-size-md}));
|
|
40
64
|
}
|
|
41
65
|
|
|
@@ -43,32 +67,33 @@
|
|
|
43
67
|
.button--secondary {
|
|
44
68
|
--_bg: var(--ui-color-bg-muted, #{t.$color-bg-muted});
|
|
45
69
|
--_bg-hover: var(--ui-color-border-strong, #{t.$color-border-strong});
|
|
46
|
-
--
|
|
70
|
+
--_color: var(--ui-color-text, #{t.$color-text});
|
|
47
71
|
}
|
|
48
72
|
|
|
49
73
|
.button--ghost {
|
|
50
74
|
--_bg: transparent;
|
|
51
75
|
--_bg-hover: color-mix(in oklch, var(--_accent) 10%, transparent);
|
|
52
|
-
--
|
|
76
|
+
--_color: var(--_accent);
|
|
53
77
|
}
|
|
54
78
|
|
|
55
79
|
.button--outline {
|
|
56
80
|
--_bg: transparent;
|
|
57
81
|
--_bg-hover: var(--_accent);
|
|
58
|
-
--
|
|
59
|
-
--
|
|
82
|
+
--_color: var(--_accent);
|
|
83
|
+
--_color-hover: var(--ui-color-text-inverse, #{t.$color-text-inverse});
|
|
60
84
|
--_border: var(--ui-border-width-sm, #{t.$border-width-sm}) solid currentColor;
|
|
61
85
|
}
|
|
62
86
|
|
|
63
87
|
.button--danger {
|
|
88
|
+
// @desc Used by --danger variant as accent color
|
|
64
89
|
--_accent: var(--ui-color-danger, #{t.$color-danger});
|
|
65
90
|
}
|
|
66
91
|
|
|
67
92
|
.button--link {
|
|
68
93
|
--_bg: transparent;
|
|
69
94
|
--_bg-hover: transparent;
|
|
70
|
-
--
|
|
71
|
-
--
|
|
95
|
+
--_color: var(--_accent);
|
|
96
|
+
--_color-hover: color-mix(in oklch, var(--_accent) 70%, black);
|
|
72
97
|
--_height: auto;
|
|
73
98
|
--_padding-x: 0;
|
|
74
99
|
--_radius: 0;
|
|
@@ -107,7 +132,7 @@
|
|
|
107
132
|
display: inline-flex;
|
|
108
133
|
align-items: center;
|
|
109
134
|
justify-content: center;
|
|
110
|
-
gap: var(--
|
|
135
|
+
gap: var(--_space-1);
|
|
111
136
|
|
|
112
137
|
// Size
|
|
113
138
|
block-size: var(--_height);
|
|
@@ -117,13 +142,13 @@
|
|
|
117
142
|
margin: 0;
|
|
118
143
|
|
|
119
144
|
// Typography
|
|
120
|
-
font-family: var(--
|
|
145
|
+
font-family: var(--_font-sans);
|
|
121
146
|
font-size: var(--_font-size);
|
|
122
147
|
font-weight: var(--_font-weight);
|
|
123
148
|
line-height: 1;
|
|
124
149
|
text-decoration: none;
|
|
125
150
|
white-space: nowrap;
|
|
126
|
-
color: var(--
|
|
151
|
+
color: var(--_color);
|
|
127
152
|
|
|
128
153
|
background: var(--_bg);
|
|
129
154
|
border: var(--_border, none);
|
|
@@ -132,22 +157,22 @@
|
|
|
132
157
|
|
|
133
158
|
// Transitions
|
|
134
159
|
transition:
|
|
135
|
-
background-color var(--
|
|
136
|
-
color var(--
|
|
137
|
-
transform var(--
|
|
160
|
+
background-color var(--_duration-base) var(--_ease-default),
|
|
161
|
+
color var(--_duration-base) var(--_ease-default),
|
|
162
|
+
transform var(--_duration-fast) var(--_ease-default);
|
|
138
163
|
|
|
139
164
|
// States - modifiers mirror pseudo-classes for testing/docs
|
|
140
165
|
&:hover,
|
|
141
166
|
&--hover {
|
|
142
|
-
color: var(--
|
|
167
|
+
color: var(--_color-hover, var(--_color));
|
|
143
168
|
|
|
144
169
|
background: var(--_bg-hover);
|
|
145
170
|
}
|
|
146
171
|
|
|
147
172
|
&:focus-visible,
|
|
148
173
|
&--focus {
|
|
149
|
-
outline: var(--
|
|
150
|
-
outline-offset: var(--
|
|
174
|
+
outline: var(--_border-width-md) solid var(--_color-focus);
|
|
175
|
+
outline-offset: var(--_border-width-md);
|
|
151
176
|
}
|
|
152
177
|
|
|
153
178
|
&:active,
|
|
@@ -156,7 +181,7 @@
|
|
|
156
181
|
}
|
|
157
182
|
|
|
158
183
|
&:disabled {
|
|
159
|
-
opacity:
|
|
184
|
+
opacity: var(--_opacity-disabled);
|
|
160
185
|
cursor: not-allowed;
|
|
161
186
|
|
|
162
187
|
&:hover {
|
|
@@ -178,10 +203,10 @@
|
|
|
178
203
|
// Link variant underline
|
|
179
204
|
&--link {
|
|
180
205
|
text-decoration: underline;
|
|
181
|
-
text-underline-offset: var(--
|
|
206
|
+
text-underline-offset: var(--_space-quarter);
|
|
182
207
|
|
|
183
208
|
&:hover {
|
|
184
|
-
text-decoration-thickness: var(--
|
|
209
|
+
text-decoration-thickness: var(--_space-quarter);
|
|
185
210
|
}
|
|
186
211
|
}
|
|
187
212
|
|
|
@@ -205,7 +230,7 @@
|
|
|
205
230
|
&--loading {
|
|
206
231
|
position: relative;
|
|
207
232
|
|
|
208
|
-
opacity:
|
|
233
|
+
opacity: var(--_opacity-loading);
|
|
209
234
|
pointer-events: none;
|
|
210
235
|
|
|
211
236
|
&::after {
|
|
@@ -229,4 +254,10 @@
|
|
|
229
254
|
transform: rotate(360deg);
|
|
230
255
|
}
|
|
231
256
|
}
|
|
257
|
+
|
|
258
|
+
@media (prefers-reduced-motion: reduce) {
|
|
259
|
+
.button--loading::after {
|
|
260
|
+
animation: none;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
232
263
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
2
3
|
"name": "button-group",
|
|
3
4
|
"element": "div",
|
|
4
5
|
"modifiers": {
|
|
@@ -9,7 +10,8 @@
|
|
|
9
10
|
"cssVars": [
|
|
10
11
|
{
|
|
11
12
|
"name": "--ui-button-group-radius",
|
|
12
|
-
"default": "var(--ui-radius-md)"
|
|
13
|
+
"default": "var(--ui-radius-md)",
|
|
14
|
+
"description": "Corner radius"
|
|
13
15
|
}
|
|
14
16
|
]
|
|
15
17
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "button-group",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"mergeInto": "button",
|
|
5
|
+
"title": "Button Group",
|
|
6
|
+
"description": "Container for grouped buttons that share borders and have connected appearance.",
|
|
7
|
+
"api": "./button-group.api.json",
|
|
8
|
+
"sections": [
|
|
9
|
+
{
|
|
10
|
+
"title": "Default",
|
|
11
|
+
"examples": [
|
|
12
|
+
{
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"tag": "div",
|
|
16
|
+
"class": "ui-button-group",
|
|
17
|
+
"attrs": { "role": "group" },
|
|
18
|
+
"children": [
|
|
19
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Left" },
|
|
20
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Middle" },
|
|
21
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Right" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"code": "<div class=\"ui-button-group\" role=\"group\">\n <button class=\"ui-button ui-button--outline\">Left</button>\n <button class=\"ui-button ui-button--outline\">Middle</button>\n <button class=\"ui-button ui-button--outline\">Right</button>\n</div>"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "Primary Buttons",
|
|
31
|
+
"examples": [
|
|
32
|
+
{
|
|
33
|
+
"items": [
|
|
34
|
+
{
|
|
35
|
+
"tag": "div",
|
|
36
|
+
"class": "ui-button-group",
|
|
37
|
+
"attrs": { "role": "group" },
|
|
38
|
+
"children": [
|
|
39
|
+
{ "tag": "button", "class": "ui-button", "text": "Save" },
|
|
40
|
+
{ "tag": "button", "class": "ui-button", "text": "Save & Close" }
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"code": "<div class=\"ui-button-group\" role=\"group\">\n <button class=\"ui-button\">Save</button>\n <button class=\"ui-button\">Save & Close</button>\n</div>"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"title": "Vertical",
|
|
50
|
+
"examples": [
|
|
51
|
+
{
|
|
52
|
+
"items": [
|
|
53
|
+
{
|
|
54
|
+
"tag": "div",
|
|
55
|
+
"class": "ui-button-group ui-button-group--vertical",
|
|
56
|
+
"attrs": { "role": "group" },
|
|
57
|
+
"children": [
|
|
58
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Top" },
|
|
59
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Middle" },
|
|
60
|
+
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Bottom" }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"code": "<div class=\"ui-button-group ui-button-group--vertical\" role=\"group\">\n <button class=\"ui-button ui-button--outline\">Top</button>\n <button class=\"ui-button ui-button--outline\">Middle</button>\n <button class=\"ui-button ui-button--outline\">Bottom</button>\n</div>"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"title": "With Icons",
|
|
70
|
+
"examples": [
|
|
71
|
+
{
|
|
72
|
+
"items": [
|
|
73
|
+
{
|
|
74
|
+
"tag": "div",
|
|
75
|
+
"class": "ui-button-group",
|
|
76
|
+
"attrs": { "role": "group", "aria-label": "Text formatting" },
|
|
77
|
+
"children": [
|
|
78
|
+
{
|
|
79
|
+
"tag": "button",
|
|
80
|
+
"class": "ui-button ui-button--outline ui-button--icon",
|
|
81
|
+
"attrs": { "aria-label": "Bold" },
|
|
82
|
+
"children": [
|
|
83
|
+
{
|
|
84
|
+
"tag": "svg",
|
|
85
|
+
"class": "ui-icon",
|
|
86
|
+
"attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
|
|
87
|
+
"children": [
|
|
88
|
+
{
|
|
89
|
+
"tag": "path",
|
|
90
|
+
"attrs": {
|
|
91
|
+
"d": "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"tag": "button",
|
|
100
|
+
"class": "ui-button ui-button--outline ui-button--icon",
|
|
101
|
+
"attrs": { "aria-label": "Italic" },
|
|
102
|
+
"children": [
|
|
103
|
+
{
|
|
104
|
+
"tag": "svg",
|
|
105
|
+
"class": "ui-icon",
|
|
106
|
+
"attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
|
|
107
|
+
"children": [
|
|
108
|
+
{
|
|
109
|
+
"tag": "path",
|
|
110
|
+
"attrs": { "d": "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"tag": "button",
|
|
118
|
+
"class": "ui-button ui-button--outline ui-button--icon",
|
|
119
|
+
"attrs": { "aria-label": "Underline" },
|
|
120
|
+
"children": [
|
|
121
|
+
{
|
|
122
|
+
"tag": "svg",
|
|
123
|
+
"class": "ui-icon",
|
|
124
|
+
"attrs": { "viewBox": "0 0 24 24", "fill": "currentColor" },
|
|
125
|
+
"children": [
|
|
126
|
+
{
|
|
127
|
+
"tag": "path",
|
|
128
|
+
"attrs": {
|
|
129
|
+
"d": "M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"code": "<div class=\"ui-button-group\" role=\"group\" aria-label=\"Text formatting\">\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Bold\">...</button>\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Italic\">...</button>\n <button class=\"ui-button ui-button--outline ui-button--icon\" aria-label=\"Underline\">...</button>\n</div>"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"customization": [
|
|
145
|
+
{
|
|
146
|
+
"token": "--ui-button-group-radius",
|
|
147
|
+
"default": "var(--ui-radius-md)",
|
|
148
|
+
"description": "Border radius for first and last buttons"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
|
+
// @component button-group
|
|
3
|
+
// @element div
|
|
2
4
|
|
|
3
5
|
// Button Group - container for grouped buttons
|
|
4
6
|
// Joins buttons together with shared borders
|
|
5
7
|
|
|
6
8
|
@layer components.tokens {
|
|
7
9
|
.button-group {
|
|
10
|
+
// @desc Corner radius
|
|
8
11
|
--_radius: var(--ui-button-group-radius, var(--ui-radius-md, calc(#{t.$unit} / 2)));
|
|
9
12
|
}
|
|
10
13
|
}
|
|
@@ -40,6 +43,7 @@
|
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
// Vertical orientation
|
|
46
|
+
// @modifier boolean vertical
|
|
43
47
|
.button-group--vertical {
|
|
44
48
|
flex-direction: column;
|
|
45
49
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
3
|
+
"name": "close-button",
|
|
4
|
+
"element": "button",
|
|
5
|
+
"modifiers": {
|
|
6
|
+
"size": {
|
|
7
|
+
"values": ["sm", "lg"]
|
|
8
|
+
},
|
|
9
|
+
"subtle": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
},
|
|
12
|
+
"hover": {
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"focus": {
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"elements": {
|
|
20
|
+
"icon": {}
|
|
21
|
+
},
|
|
22
|
+
"cssVars": [
|
|
23
|
+
{
|
|
24
|
+
"name": "--ui-close-button-size",
|
|
25
|
+
"default": "var(--ui-row-2)",
|
|
26
|
+
"description": "Overall button size (width and height)"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "--ui-close-button-icon-size",
|
|
30
|
+
"default": "var(--ui-size-md)",
|
|
31
|
+
"description": "Size of the X icon"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "--ui-close-button-color",
|
|
35
|
+
"default": "var(--ui-color-text-muted)",
|
|
36
|
+
"description": "Icon color"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "--ui-close-button-bg",
|
|
40
|
+
"default": "transparent",
|
|
41
|
+
"description": "Background color"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "--ui-close-button-hover-bg",
|
|
45
|
+
"default": "var(--ui-color-bg-muted)",
|
|
46
|
+
"description": "Background color on hover"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "--ui-close-button-radius",
|
|
50
|
+
"default": "var(--ui-radius-md)",
|
|
51
|
+
"description": "Border radius"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "--ui-close-button-size-sm",
|
|
55
|
+
"default": "calc(var(--ui-unit) * 3)",
|
|
56
|
+
"description": "Overall size at small size"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "--ui-close-button-icon-size-sm",
|
|
60
|
+
"default": "var(--ui-size-sm)",
|
|
61
|
+
"description": "Icon dimensions at small size"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "--ui-close-button-size-lg",
|
|
65
|
+
"default": "var(--ui-row-3)",
|
|
66
|
+
"description": "Overall size at large size"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "--ui-close-button-icon-size-lg",
|
|
70
|
+
"default": "var(--ui-size-lg)",
|
|
71
|
+
"description": "Icon dimensions at large size"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "--ui-close-button-subtle-color",
|
|
75
|
+
"default": "var(--ui-color-border-strong)",
|
|
76
|
+
"description": "Subtle color"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "--ui-close-button-subtle-hover-bg",
|
|
80
|
+
"default": "var(--ui-color-bg-subtle)",
|
|
81
|
+
"description": "Subtle hover bg"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "close-button",
|
|
3
3
|
"type": "component",
|
|
4
|
+
"mergeInto": "button",
|
|
4
5
|
"title": "Close Button",
|
|
5
6
|
"description": "Dismiss button for closing modals, alerts, drawers, and other dismissible elements.",
|
|
6
7
|
"api": "./close-button.api.json",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"title": "Sizes",
|
|
55
56
|
"examples": [
|
|
56
57
|
{
|
|
57
|
-
"layout": "
|
|
58
|
+
"layout": "row",
|
|
58
59
|
"items": [
|
|
59
60
|
{
|
|
60
61
|
"tag": "button",
|
|
@@ -114,7 +115,7 @@
|
|
|
114
115
|
"description": "Lower visual prominence for secondary dismiss actions.",
|
|
115
116
|
"examples": [
|
|
116
117
|
{
|
|
117
|
-
"layout": "
|
|
118
|
+
"layout": "row",
|
|
118
119
|
"items": [
|
|
119
120
|
{
|
|
120
121
|
"tag": "button",
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
"title": "States",
|
|
158
159
|
"examples": [
|
|
159
160
|
{
|
|
160
|
-
"layout": "
|
|
161
|
+
"layout": "row",
|
|
161
162
|
"items": [
|
|
162
163
|
{
|
|
163
164
|
"tag": "button",
|
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component close-button
|
|
4
4
|
// @element button
|
|
5
5
|
|
|
6
6
|
@layer components.tokens {
|
|
7
7
|
.close-button {
|
|
8
|
+
--_duration-base: var(--ui-duration-base, #{t.$duration-base});
|
|
9
|
+
--_ease-default: var(--ui-ease-default, ease);
|
|
10
|
+
--_color-text: var(--ui-color-text, #{t.$color-text});
|
|
11
|
+
--_border-width-md: var(--ui-border-width-md, #{t.$border-width-md});
|
|
12
|
+
--_color-focus: var(--ui-color-focus, #{t.$color-focus});
|
|
13
|
+
--_opacity-disabled: var(--ui-opacity-disabled, #{t.$opacity-disabled});
|
|
14
|
+
// @desc Overall button size (width and height)
|
|
8
15
|
--_size: var(--ui-close-button-size, var(--ui-row-2, #{t.$row-2}));
|
|
16
|
+
// @desc Size of the X icon
|
|
9
17
|
--_icon-size: var(--ui-close-button-icon-size, var(--ui-size-md, #{t.size(md)}));
|
|
18
|
+
// @desc Icon color
|
|
10
19
|
--_color: var(--ui-close-button-color, var(--ui-color-text-muted, #{t.$color-text-muted}));
|
|
20
|
+
// @desc Background color
|
|
11
21
|
--_bg: var(--ui-close-button-bg, transparent);
|
|
22
|
+
// @desc Background color on hover
|
|
12
23
|
--_hover-bg: var(--ui-close-button-hover-bg, var(--ui-color-bg-muted, #{t.$color-bg-muted}));
|
|
24
|
+
// @desc Border radius
|
|
13
25
|
--_radius: var(--ui-close-button-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
14
26
|
}
|
|
15
27
|
|
|
16
28
|
// @modifier size
|
|
17
29
|
.close-button--sm {
|
|
30
|
+
// @desc Overall size at small size
|
|
18
31
|
--_size: var(--ui-close-button-size-sm, calc(#{t.$unit} * 3));
|
|
32
|
+
// @desc Icon dimensions at small size
|
|
19
33
|
--_icon-size: var(--ui-close-button-icon-size-sm, var(--ui-size-sm, #{t.size(sm)}));
|
|
20
34
|
}
|
|
21
35
|
|
|
22
36
|
.close-button--lg {
|
|
37
|
+
// @desc Overall size at large size
|
|
23
38
|
--_size: var(--ui-close-button-size-lg, var(--ui-row-3, #{t.$row-3}));
|
|
39
|
+
// @desc Icon dimensions at large size
|
|
24
40
|
--_icon-size: var(--ui-close-button-icon-size-lg, var(--ui-size-lg, #{t.size(lg)}));
|
|
25
41
|
}
|
|
26
42
|
|
|
27
43
|
// @modifier boolean subtle
|
|
28
44
|
.close-button--subtle {
|
|
45
|
+
// @desc Subtle color
|
|
29
46
|
--_color: var(--ui-close-button-subtle-color, var(--ui-color-border-strong, #{t.$color-border-strong}));
|
|
47
|
+
// @desc Subtle hover bg
|
|
30
48
|
--_hover-bg: var(--ui-close-button-subtle-hover-bg, var(--ui-color-bg-subtle, #{t.$color-bg-subtle}));
|
|
31
49
|
}
|
|
32
50
|
}
|
|
@@ -52,20 +70,22 @@
|
|
|
52
70
|
appearance: none;
|
|
53
71
|
|
|
54
72
|
transition:
|
|
55
|
-
background-color var(--
|
|
56
|
-
color var(--
|
|
73
|
+
background-color var(--_duration-base) var(--_ease-default),
|
|
74
|
+
color var(--_duration-base) var(--_ease-default);
|
|
57
75
|
|
|
58
76
|
&:hover,
|
|
77
|
+
// @modifier boolean hover
|
|
59
78
|
&--hover {
|
|
60
|
-
color: var(--
|
|
79
|
+
color: var(--_color-text);
|
|
61
80
|
|
|
62
81
|
background: var(--_hover-bg);
|
|
63
82
|
}
|
|
64
83
|
|
|
65
84
|
&:focus-visible,
|
|
85
|
+
// @modifier boolean focus
|
|
66
86
|
&--focus {
|
|
67
|
-
outline: var(--
|
|
68
|
-
outline-offset: var(--
|
|
87
|
+
outline: var(--_border-width-md) solid var(--_color-focus);
|
|
88
|
+
outline-offset: var(--_border-width-md);
|
|
69
89
|
}
|
|
70
90
|
|
|
71
91
|
&:active,
|
|
@@ -74,7 +94,7 @@
|
|
|
74
94
|
}
|
|
75
95
|
|
|
76
96
|
&:disabled {
|
|
77
|
-
opacity:
|
|
97
|
+
opacity: var(--_opacity-disabled);
|
|
78
98
|
cursor: not-allowed;
|
|
79
99
|
|
|
80
100
|
&:hover {
|
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "Auto-generated from index.scss annotations. Do not edit manually — run: pnpm generate:api",
|
|
2
3
|
"name": "divider",
|
|
3
4
|
"element": "div",
|
|
4
5
|
"modifiers": {
|
|
5
6
|
"vertical": {
|
|
6
7
|
"type": "boolean"
|
|
7
8
|
},
|
|
8
|
-
"dashed": {
|
|
9
|
-
"type": "boolean"
|
|
10
|
-
},
|
|
11
9
|
"position": {
|
|
12
10
|
"values": ["start", "end"]
|
|
11
|
+
},
|
|
12
|
+
"dashed": {
|
|
13
|
+
"type": "boolean"
|
|
13
14
|
}
|
|
14
15
|
},
|
|
15
16
|
"cssVars": [
|
|
16
17
|
{
|
|
17
18
|
"name": "--ui-divider-color",
|
|
18
|
-
"default": "var(--ui-color-border)"
|
|
19
|
+
"default": "var(--ui-color-border)",
|
|
20
|
+
"description": "Text color"
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
"name": "--ui-divider-line-size",
|
|
22
|
-
"default": "
|
|
24
|
+
"default": "var(--ui-border-width-sm)",
|
|
25
|
+
"description": "Line size"
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
"name": "--ui-divider-height",
|
|
26
|
-
"default": "
|
|
29
|
+
"default": "var(--ui-unit)",
|
|
30
|
+
"description": "Overall height"
|
|
27
31
|
},
|
|
28
32
|
{
|
|
29
33
|
"name": "--ui-divider-gap",
|
|
30
|
-
"default": "calc(
|
|
34
|
+
"default": "calc(var(--ui-unit) * 2)",
|
|
35
|
+
"description": "Gap between children"
|
|
31
36
|
}
|
|
32
37
|
]
|
|
33
38
|
}
|