@teseor/css 1.7.0 → 1.8.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 +68 -69
- 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 +4 -4
- package/src/{04-components → components}/actions/button/button.docs.json +63 -11
- package/src/{04-components → components}/actions/button/index.scss +20 -14
- package/src/components/actions/button-group/button-group.docs.json +151 -0
- package/src/{04-components → components}/actions/button-group/index.scss +1 -1
- package/src/{04-components → components}/actions/close-button/close-button.docs.json +4 -3
- package/src/{04-components → components}/actions/close-button/index.scss +2 -2
- package/src/{04-components/layout → components/content}/divider/divider.api.json +2 -2
- package/src/components/content/divider/divider.docs.json +113 -0
- package/src/{04-components/layout → components/content}/divider/index.scss +1 -1
- package/src/{04-components/layout → components/content}/scroll-area/index.scss +1 -1
- package/src/{04-components/layout → components/content}/scroll-area/scroll-area.docs.json +1 -1
- package/src/{04-components/layout → components/content}/spacer/spacer.docs.json +2 -2
- package/src/{04-components → components}/data-display/avatar/avatar.api.json +5 -5
- package/src/{04-components → components}/data-display/avatar/avatar.docs.json +55 -10
- package/src/{04-components → components}/data-display/avatar/index.scss +1 -1
- package/src/components/data-display/badge/badge-visual.png +0 -0
- package/src/{04-components → components}/data-display/badge/badge.api.json +14 -2
- package/src/{04-components → components}/data-display/badge/badge.docs.json +32 -7
- package/src/{04-components → components}/data-display/badge/index.scss +13 -7
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/{04-components → components}/data-display/card/card.api.json +15 -0
- package/src/{04-components → components}/data-display/card/card.docs.json +26 -2
- package/src/{04-components → components}/data-display/card/index.scss +26 -6
- package/src/{04-components → components}/data-display/data-list/data-list.api.json +2 -2
- package/src/components/data-display/data-list/data-list.docs.json +259 -0
- package/src/{04-components → components}/data-display/data-list/index.scss +1 -1
- package/src/components/data-display/icon/icon-visual.png +0 -0
- package/src/{04-components → components}/data-display/icon/icon.docs.json +105 -17
- package/src/{04-components → components}/data-display/icon/index.scss +7 -1
- package/src/{04-components → components}/data-display/image/image.api.json +4 -4
- package/src/{04-components → components}/data-display/image/image.docs.json +8 -8
- package/src/{04-components → components}/data-display/image/index.scss +1 -1
- package/src/{04-components → components}/data-display/stat/index.scss +1 -1
- package/src/{04-components → components}/data-display/stat/stat.docs.json +1 -1
- package/src/{04-components → components}/data-display/status/index.scss +7 -1
- package/src/{04-components → components}/data-display/status/status.api.json +2 -2
- package/src/components/data-display/status/status.docs.json +147 -0
- package/src/{04-components → components}/data-display/table/index.scss +2 -2
- package/src/components/data-display/table/table.docs.json +184 -0
- package/src/{04-components → components}/data-display/tag/index.scss +9 -3
- package/src/components/data-display/tag/tag-visual.png +0 -0
- package/src/{04-components → components}/data-display/tag/tag.api.json +17 -5
- package/src/{04-components → components}/data-display/tag/tag.docs.json +48 -10
- package/src/components/disclosure/accordion/accordion.docs.json +206 -0
- package/src/{04-components → components}/disclosure/accordion/index.scss +1 -1
- package/src/components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/{04-components → components}/disclosure/disclosure/disclosure.api.json +2 -2
- package/src/components/disclosure/disclosure/disclosure.docs.json +154 -0
- package/src/{04-components → components}/disclosure/disclosure/index.scss +11 -1
- package/src/{04-components → components}/feedback/alert/alert-visual.png +0 -0
- package/src/{04-components → components}/feedback/alert/alert.api.json +24 -1
- package/src/components/feedback/alert/alert.docs.json +325 -0
- package/src/{04-components → components}/feedback/alert/index.scss +23 -1
- package/src/{04-components → components}/feedback/progress/index.scss +11 -1
- package/src/components/feedback/progress/progress-visual.png +0 -0
- package/src/{04-components → components}/feedback/progress/progress.api.json +1 -1
- package/src/components/feedback/progress/progress.docs.json +257 -0
- package/src/{04-components → components}/feedback/progress-circle/index.scss +11 -5
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.api.json +4 -4
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.docs.json +5 -4
- package/src/{04-components → components}/feedback/skeleton/index.scss +11 -1
- package/src/components/feedback/skeleton/skeleton.docs.json +126 -0
- package/src/{04-components → components}/feedback/spinner/index.scss +12 -6
- package/src/{04-components → components}/feedback/spinner/spinner.api.json +5 -5
- package/src/{04-components → components}/feedback/spinner/spinner.docs.json +42 -9
- package/src/{04-components → components}/feedback/toast/index.scss +8 -2
- package/src/{04-components → components}/feedback/toast/toast.api.json +4 -4
- package/src/components/feedback/toast/toast.docs.json +281 -0
- package/src/{04-components → components}/forms/checkbox/checkbox.api.json +8 -4
- package/src/{04-components → components}/forms/checkbox/checkbox.docs.json +30 -10
- package/src/{04-components → components}/forms/checkbox/index.scss +11 -4
- package/src/{04-components → components}/forms/checkbox-group/checkbox-group.docs.json +1 -0
- package/src/{04-components → components}/forms/checkbox-group/index.scss +3 -3
- package/src/components/forms/field/field.docs.json +190 -0
- package/src/{04-components → components}/forms/field/index.scss +1 -1
- package/src/{04-components → components}/forms/fieldset/index.scss +2 -2
- package/src/{04-components → components}/forms/form/index.scss +1 -1
- package/src/{04-components → components}/forms/form-error/form-error.docs.json +23 -2
- package/src/{04-components → components}/forms/form-error/index.scss +1 -1
- package/src/{04-components → components}/forms/form-helper/form-helper.docs.json +3 -1
- package/src/{04-components → components}/forms/form-helper/index.scss +1 -1
- package/src/{04-components → components}/forms/input/index.scss +9 -7
- package/src/{04-components → components}/forms/input/input-visual.png +0 -0
- package/src/{04-components → components}/forms/input/input.api.json +3 -3
- package/src/{04-components → components}/forms/input/input.docs.json +128 -11
- package/src/{04-components → components}/forms/label/index.scss +2 -2
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/{04-components → components}/forms/label/label.docs.json +43 -6
- package/src/{04-components → components}/forms/number-input/index.scss +2 -2
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/{04-components → components}/forms/number-input/number-input.docs.json +1 -1
- package/src/{04-components → components}/forms/password-input/index.scss +2 -2
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/{04-components → components}/forms/password-input/password-input.docs.json +2 -2
- package/src/{04-components → components}/forms/radio/index.scss +11 -4
- package/src/{04-components → components}/forms/radio/radio.api.json +8 -4
- package/src/{04-components → components}/forms/radio/radio.docs.json +94 -12
- package/src/{04-components → components}/forms/radio-group/index.scss +3 -3
- package/src/{04-components → components}/forms/radio-group/radio-group.docs.json +1 -0
- package/src/{04-components → components}/forms/search-input/index.scss +2 -2
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/{04-components → components}/forms/search-input/search-input.docs.json +1 -1
- package/src/{04-components → components}/forms/select/index.scss +9 -7
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/{04-components → components}/forms/select/select.api.json +3 -3
- package/src/{04-components → components}/forms/select/select.docs.json +87 -18
- package/src/{04-components → components}/forms/slider/index.scss +3 -3
- package/src/{04-components → components}/forms/slider/slider.docs.json +3 -3
- package/src/{04-components → components}/forms/textarea/index.scss +6 -6
- package/src/{04-components → components}/forms/textarea/textarea.api.json +4 -4
- package/src/{04-components → components}/forms/textarea/textarea.docs.json +15 -9
- package/src/{04-components → components}/forms/toggle/index.scss +3 -3
- package/src/components/forms/toggle/toggle-visual.png +0 -0
- package/src/{04-components → components}/forms/toggle/toggle.api.json +5 -5
- package/src/components/forms/toggle/toggle.docs.json +229 -0
- package/src/{04-components → components}/index.scss +3 -3
- package/src/{04-components → components}/navigation/breadcrumb/breadcrumb.api.json +1 -1
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +170 -0
- package/src/{04-components → components}/navigation/breadcrumb/index.scss +1 -1
- package/src/{04-components → components}/navigation/dropdown-menu/index.scss +1 -1
- package/src/{04-components → components}/navigation/menu/index.scss +3 -3
- package/src/{04-components → components}/navigation/menu/menu.api.json +4 -4
- package/src/components/navigation/menu/menu.docs.json +326 -0
- package/src/{04-components → components}/navigation/nav/index.scss +2 -2
- package/src/{04-components → components}/navigation/pagination/index.scss +2 -2
- package/src/{04-components → components}/navigation/pagination/pagination.api.json +2 -2
- package/src/components/navigation/pagination/pagination.docs.json +483 -0
- package/src/{04-components → components}/navigation/tabs/index.scss +48 -4
- package/src/components/navigation/tabs/tabs-visual.png +0 -0
- package/src/{04-components → components}/navigation/tabs/tabs.api.json +16 -1
- package/src/components/navigation/tabs/tabs.docs.json +243 -0
- package/src/{04-components → components}/overlays/dialog/dialog.api.json +3 -3
- package/src/components/overlays/dialog/dialog.docs.json +200 -0
- package/src/{04-components → components}/overlays/dialog/index.scss +1 -1
- package/src/{04-components → components}/overlays/drawer/drawer.api.json +4 -4
- package/src/components/overlays/drawer/drawer.docs.json +282 -0
- package/src/{04-components → components}/overlays/drawer/index.scss +9 -2
- package/src/{04-components → components}/overlays/modal/index.scss +2 -2
- package/src/{04-components → components}/overlays/modal/modal.api.json +6 -6
- package/src/components/overlays/modal/modal.docs.json +163 -0
- package/src/{04-components → components}/overlays/overlay/index.scss +1 -1
- package/src/components/overlays/overlay/overlay.docs.json +138 -0
- package/src/{04-components → components}/overlays/popover/index.scss +1 -1
- package/src/{04-components → components}/overlays/popover/popover.api.json +4 -4
- package/src/{04-components → components}/overlays/popover/popover.docs.json +47 -6
- package/src/{04-components → components}/overlays/tooltip/index.scss +5 -5
- package/src/{04-components → components}/overlays/tooltip/tooltip.api.json +4 -4
- package/src/{04-components → components}/overlays/tooltip/tooltip.docs.json +46 -6
- package/src/{04-components → components}/typography/blockquote/index.scss +1 -1
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/{04-components → components}/typography/code/code.docs.json +23 -3
- package/src/{04-components → components}/typography/code/index.scss +1 -1
- package/src/{04-components → components}/typography/code-block/code-block.docs.json +1 -0
- package/src/{04-components → components}/typography/code-block/index.scss +1 -1
- package/src/{04-components → components}/typography/heading/heading.docs.json +28 -6
- package/src/{04-components → components}/typography/heading/index.scss +1 -1
- package/src/{04-components → components}/typography/kbd/index.scss +1 -1
- package/src/{04-components → components}/typography/kbd/kbd.docs.json +1 -1
- package/src/{04-components → components}/typography/link/index.scss +1 -1
- package/src/{04-components → components}/typography/link/link.docs.json +51 -6
- package/src/{04-components → components}/typography/list/index.scss +1 -1
- package/src/{04-components → components}/typography/list/list.api.json +1 -1
- package/src/{04-components → components}/typography/list/list.docs.json +2 -2
- package/src/{04-components → components}/typography/mark/index.scss +1 -1
- package/src/{00-config → config}/tokens/_variables.scss +4 -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/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/{99-debug → debug}/grid-overlay.scss +3 -3
- package/src/index.scss +17 -20
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/{03-layout → layout}/app-shell/app-shell.docs.json +10 -10
- package/src/layout/app-shell/app-shell.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.docs.json +2 -2
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.docs.json +93 -0
- package/src/layout/box/box.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/box/index.scss +1 -1
- package/src/layout/center/center-visual.png +0 -0
- package/src/layout/center/center.visual.spec.ts +13 -0
- package/src/layout/column/column-visual.png +0 -0
- package/src/{03-layout/stack/stack.api.json → layout/column/column.api.json} +1 -1
- 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 +13 -0
- package/src/layout/container/index.scss +17 -0
- package/src/{03-layout → layout}/content/index.scss +1 -1
- package/src/layout/grid/grid-visual.png +0 -0
- package/src/layout/grid/grid.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/index.scss +2 -3
- package/src/{03-layout → layout}/main/index.scss +4 -4
- package/src/layout/row/index.scss +18 -0
- package/src/{03-layout/cluster/cluster.api.json → layout/row/row.api.json} +1 -1
- 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/{03-layout → layout}/sidebar/index.scss +6 -6
- package/src/{03-layout → layout}/sidebar/sidebar.docs.json +4 -4
- package/src/{03-layout → layout}/sidebar-nav/index.scss +15 -2
- package/src/layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +827 -0
- package/src/{03-layout → layout}/topbar/index.scss +1 -1
- 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/box/box.docs.json +0 -57
- package/src/03-layout/cluster/index.scss +0 -18
- package/src/03-layout/container/index.scss +0 -17
- 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/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +0 -100
- package/src/03-layout/stack/index.scss +0 -13
- 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/data-display/badge/badge-visual.png +0 -0
- package/src/04-components/data-display/card/card-visual.png +0 -0
- 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/status/status.docs.json +0 -60
- 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/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.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.docs.json +0 -62
- package/src/04-components/feedback/toast/toast.docs.json +0 -99
- package/src/04-components/forms/field/field.docs.json +0 -59
- package/src/04-components/forms/label/label-visual.png +0 -0
- package/src/04-components/forms/number-input/number-input-visual.png +0 -0
- package/src/04-components/forms/password-input/password-input-visual.png +0 -0
- package/src/04-components/forms/search-input/search-input-visual.png +0 -0
- package/src/04-components/forms/select/select-visual.png +0 -0
- package/src/04-components/forms/toggle/toggle-visual.png +0 -0
- 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/navigation/breadcrumb/breadcrumb.docs.json +0 -59
- package/src/04-components/navigation/menu/menu.docs.json +0 -81
- package/src/04-components/navigation/pagination/pagination.docs.json +0 -88
- package/src/04-components/navigation/tabs/tabs-visual.png +0 -0
- package/src/04-components/navigation/tabs/tabs.docs.json +0 -61
- package/src/04-components/overlays/dialog/dialog.docs.json +0 -58
- package/src/04-components/overlays/drawer/drawer.docs.json +0 -78
- package/src/04-components/overlays/modal/modal.docs.json +0 -86
- package/src/04-components/overlays/overlay/overlay.docs.json +0 -63
- package/src/04-components/typography/code/code-visual.png +0 -0
- 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.api.json +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.api.json +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.png +0 -0
- /package/src/{04-components/layout → components/content}/scroll-area/scroll-area.api.json +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/index.scss +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer-visual.png +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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.png +0 -0
- /package/src/{04-components → components}/navigation/dropdown-menu/dropdown-menu.api.json +0 -0
- /package/src/{04-components → components}/navigation/dropdown-menu/dropdown-menu.docs.json +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.api.json +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.png +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.api.json +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.api.json +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.api.json +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.png +0 -0
- /package/src/{04-components → components}/typography/code-block/code-block.api.json +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.api.json +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.api.json +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.api.json +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.api.json +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/{00-config → config}/tokens/motion/index.scss +0 -0
- /package/src/{00-config → config}/tokens/zindex/index.scss +0 -0
- /package/src/{99-debug → debug}/index.scss +0 -0
- /package/src/{03-layout → layout}/app-shell/app-shell.api.json +0 -0
- /package/src/{03-layout → layout}/app-shell/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.api.json +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/index.scss +0 -0
- /package/src/{03-layout → layout}/box/box.api.json +0 -0
- /package/src/{03-layout → layout}/center/center.api.json +0 -0
- /package/src/{03-layout → layout}/center/center.docs.json +0 -0
- /package/src/{03-layout → layout}/center/index.scss +0 -0
- /package/src/{03-layout → layout}/container/container.api.json +0 -0
- /package/src/{03-layout → layout}/content/content-visual.png +0 -0
- /package/src/{03-layout → layout}/content/content.api.json +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.png +0 -0
- /package/src/{03-layout → layout}/footer/footer.api.json +0 -0
- /package/src/{03-layout → layout}/footer/footer.docs.json +0 -0
- /package/src/{03-layout → layout}/footer/footer.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/footer/index.scss +0 -0
- /package/src/{03-layout → layout}/grid/grid.api.json +0 -0
- /package/src/{03-layout → layout}/grid/grid.docs.json +0 -0
- /package/src/{03-layout → layout}/grid/index.scss +0 -0
- /package/src/{03-layout → layout}/main/main.api.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/index.scss +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail-visual.png +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.api.json +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/index.scss +0 -0
- /package/src/{03-layout → layout}/page-header/page-header-visual.png +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.api.json +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.api.json +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/sidebar-nav/sidebar-nav.api.json +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.api.json +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
package/src/testing/api-types.ts
CHANGED
|
@@ -1,92 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'.ui-sidebar',
|
|
14
|
-
'.ui-main',
|
|
15
|
-
'.ui-app-shell',
|
|
1
|
+
import { readdirSync, statSync } from 'node:fs';
|
|
2
|
+
import { basename, join, resolve } from 'node:path';
|
|
3
|
+
import { test } from '@playwright/test';
|
|
4
|
+
import { generateHtmlFromDocs, loadDocsJson, setupVisualTest, validateGridRhythm } from '.';
|
|
5
|
+
|
|
6
|
+
const COMPONENTS_DIR = resolve(__dirname, '../components');
|
|
7
|
+
|
|
8
|
+
// Known grid rhythm issues tracked in separate issues
|
|
9
|
+
const SKIP_COMPONENTS = [
|
|
10
|
+
'data-list', // 1px borders cause off-grid heights (#179)
|
|
11
|
+
'spinner', // CSS var resolution issue (#154)
|
|
12
|
+
'spacer', // no intrinsic height by design
|
|
16
13
|
];
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const unit = temp.getBoundingClientRect().width || 8;
|
|
27
|
-
document.body.removeChild(temp);
|
|
28
|
-
|
|
29
|
-
const INLINE_TAGS = [
|
|
30
|
-
'STRONG',
|
|
31
|
-
'B',
|
|
32
|
-
'EM',
|
|
33
|
-
'I',
|
|
34
|
-
'SMALL',
|
|
35
|
-
'SPAN',
|
|
36
|
-
'A',
|
|
37
|
-
'CODE',
|
|
38
|
-
'ABBR',
|
|
39
|
-
'CITE',
|
|
40
|
-
'Q',
|
|
41
|
-
'SUB',
|
|
42
|
-
'SUP',
|
|
43
|
-
'MARK',
|
|
44
|
-
'BR',
|
|
45
|
-
'WBR',
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
const results: Array<{ selector: string; height: number; expected: number; offBy: number }> =
|
|
49
|
-
[];
|
|
50
|
-
|
|
51
|
-
for (const el of document.querySelectorAll('*')) {
|
|
52
|
-
const tagName = el.tagName;
|
|
53
|
-
|
|
54
|
-
// Skip script, style, link, meta, etc.
|
|
55
|
-
if (['SCRIPT', 'STYLE', 'LINK', 'META', 'TITLE', 'HEAD'].includes(tagName)) continue;
|
|
56
|
-
|
|
57
|
-
// Skip inline elements
|
|
58
|
-
if (INLINE_TAGS.includes(tagName)) continue;
|
|
59
|
-
|
|
60
|
-
// Skip elements that are fluid containers (but check their children)
|
|
61
|
-
if (skipSelf.some((sel) => el.matches(sel))) continue;
|
|
62
|
-
|
|
63
|
-
const height = el.getBoundingClientRect().height;
|
|
64
|
-
if (height === 0) continue;
|
|
65
|
-
|
|
66
|
-
const remainder = height % unit;
|
|
67
|
-
const isAligned = remainder < 0.5 || remainder > unit - 0.5;
|
|
68
|
-
|
|
69
|
-
if (!isAligned) {
|
|
70
|
-
const classes = el.className?.toString?.() || '';
|
|
71
|
-
const firstClass = classes.split(' ')[0];
|
|
72
|
-
results.push({
|
|
73
|
-
selector: `${tagName.toLowerCase()}${firstClass ? `.${firstClass}` : ''}`,
|
|
74
|
-
height: Math.round(height * 10) / 10,
|
|
75
|
-
expected: Math.round(height / unit) * unit,
|
|
76
|
-
offBy: Math.round(remainder * 10) / 10,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
15
|
+
function findDocsFiles(dir: string): Array<{ name: string; path: string }> {
|
|
16
|
+
const results: Array<{ name: string; path: string }> = [];
|
|
17
|
+
for (const entry of readdirSync(dir)) {
|
|
18
|
+
const full = join(dir, entry);
|
|
19
|
+
if (statSync(full).isDirectory()) {
|
|
20
|
+
results.push(...findDocsFiles(full));
|
|
21
|
+
} else if (entry.endsWith('.docs.json')) {
|
|
22
|
+
results.push({ name: basename(entry, '.docs.json'), path: full });
|
|
79
23
|
}
|
|
80
|
-
|
|
81
|
-
return results;
|
|
82
|
-
}, SKIP_SELF_SELECTORS);
|
|
83
|
-
|
|
84
|
-
if (violations.length > 0) {
|
|
85
|
-
console.log(`Found ${violations.length} grid violations:`);
|
|
86
|
-
console.table(violations);
|
|
87
24
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
25
|
+
return results;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const docsFiles = findDocsFiles(COMPONENTS_DIR);
|
|
29
|
+
|
|
30
|
+
for (const { name, path } of docsFiles) {
|
|
31
|
+
test(`${name} aligns to vertical grid`, async ({ page }) => {
|
|
32
|
+
test.skip(SKIP_COMPONENTS.includes(name), `${name} has known grid issues`);
|
|
33
|
+
const docs = loadDocsJson(path);
|
|
34
|
+
const html = generateHtmlFromDocs(docs);
|
|
35
|
+
await setupVisualTest(page, { html });
|
|
36
|
+
await validateGridRhythm(page, name);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -30,7 +30,7 @@ function capitalize(s: string): string {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export function generateVariationsHtml(api: ComponentAPI): string {
|
|
33
|
-
const baseClass = `${PREFIX}${api.baseClass}`;
|
|
33
|
+
const baseClass = `${PREFIX}${api.baseClass ?? api.name}`;
|
|
34
34
|
const element = api.element;
|
|
35
35
|
const title = capitalize(api.name);
|
|
36
36
|
|
|
@@ -8,7 +8,7 @@ import { generateVariationsHtml } from './html-generator';
|
|
|
8
8
|
import { scaffoldCss } from './scaffold';
|
|
9
9
|
|
|
10
10
|
interface DocsItem {
|
|
11
|
-
tag
|
|
11
|
+
tag?: string;
|
|
12
12
|
class?: string;
|
|
13
13
|
text?: string;
|
|
14
14
|
attrs?: Record<string, string>;
|
|
@@ -43,6 +43,8 @@ export function loadComponentApi(apiPath: string): ComponentAPI {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function renderItem(item: DocsItem): string {
|
|
46
|
+
if (!item.tag) return item.text ?? '';
|
|
47
|
+
|
|
46
48
|
const parts: string[] = [];
|
|
47
49
|
|
|
48
50
|
if (item.class) parts.push(`class="${item.class}"`);
|
|
@@ -83,7 +85,7 @@ export function generateHtmlFromDocs(docs: DocsJson): string {
|
|
|
83
85
|
html = example.html;
|
|
84
86
|
} else if (example.items) {
|
|
85
87
|
const items = example.items.map(renderItem).join('\n');
|
|
86
|
-
html = example.layout === '
|
|
88
|
+
html = example.layout === 'row' ? `<div class="ui-row">${items}</div>` : items;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
if (html) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@layer utilities {
|
|
2
|
+
// Border
|
|
3
|
+
.border { border: var(--ui-border-width-sm) solid var(--ui-color-border); }
|
|
4
|
+
.border-0 { border: none; }
|
|
5
|
+
|
|
6
|
+
// Radius
|
|
7
|
+
.rounded { border-radius: var(--ui-radius-md); }
|
|
8
|
+
.rounded-none { border-radius: 0; }
|
|
9
|
+
.rounded-sm { border-radius: var(--ui-radius-sm); }
|
|
10
|
+
.rounded-lg { border-radius: var(--ui-radius-lg); }
|
|
11
|
+
.rounded-full { border-radius: var(--ui-radius-full); }
|
|
12
|
+
|
|
13
|
+
// Background
|
|
14
|
+
.bg { background: var(--ui-color-bg); }
|
|
15
|
+
.bg-subtle { background: var(--ui-color-bg-subtle); }
|
|
16
|
+
.bg-muted { background: var(--ui-color-bg-muted); }
|
|
17
|
+
.bg-transparent { background: transparent; }
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// Display and visibility utilities
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Uses logical properties for international/RTL support
|
|
4
4
|
@layer utilities {
|
|
5
|
-
|
|
5
|
+
// Display
|
|
6
6
|
.block {
|
|
7
7
|
display: block;
|
|
8
8
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
display: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
// Flexbox direction
|
|
39
39
|
.flex-row {
|
|
40
40
|
flex-direction: row;
|
|
41
41
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
flex-direction: column-reverse;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
// Flexbox wrap
|
|
56
56
|
.flex-wrap {
|
|
57
57
|
flex-wrap: wrap;
|
|
58
58
|
}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
flex-wrap: wrap-reverse;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
// Flexbox grow/shrink
|
|
69
69
|
.flex-1 {
|
|
70
70
|
flex: 1 1 0%;
|
|
71
71
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
flex-shrink: 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
// Justify content
|
|
102
102
|
.justify-start {
|
|
103
103
|
justify-content: flex-start;
|
|
104
104
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
justify-content: space-evenly;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
// Align items
|
|
127
127
|
.items-start {
|
|
128
128
|
align-items: flex-start;
|
|
129
129
|
}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
align-items: stretch;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
// Align self
|
|
148
148
|
.self-auto {
|
|
149
149
|
align-self: auto;
|
|
150
150
|
}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
align-self: stretch;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
// Visibility
|
|
169
169
|
.visible {
|
|
170
170
|
visibility: visible;
|
|
171
171
|
}
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
visibility: hidden;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
// Screen reader only - visually hidden but accessible
|
|
178
178
|
.sr-only {
|
|
179
179
|
position: absolute;
|
|
180
180
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// Spacing utilities - all values align to 8px grid
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Uses logical properties for international/RTL support
|
|
4
4
|
@layer utilities {
|
|
5
|
-
|
|
5
|
+
// Margin utilities
|
|
6
6
|
.m-0 {
|
|
7
7
|
margin: 0;
|
|
8
8
|
}
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
margin-block: var(--ui-space-4);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
// Padding utilities
|
|
191
191
|
.p-0 {
|
|
192
192
|
padding: 0;
|
|
193
193
|
}
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
padding-block: var(--ui-space-4);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
|
|
371
|
+
// Gap utilities (for flex/grid)
|
|
372
372
|
.gap-0 {
|
|
373
373
|
gap: 0;
|
|
374
374
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Font size utilities with 8px grid-snapped line-heights.",
|
|
11
11
|
"examples": [
|
|
12
12
|
{
|
|
13
|
-
"layout": "
|
|
13
|
+
"layout": "column",
|
|
14
14
|
"items": [
|
|
15
15
|
{ "tag": "p", "class": "ui-text-xs", "text": "text-xs: 12px / 16px line-height" },
|
|
16
16
|
{ "tag": "p", "class": "ui-text-sm", "text": "text-sm: 14px / 24px line-height" },
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "Semantic text styles for specific use cases.",
|
|
30
30
|
"examples": [
|
|
31
31
|
{
|
|
32
|
-
"layout": "
|
|
32
|
+
"layout": "column",
|
|
33
33
|
"items": [
|
|
34
34
|
{
|
|
35
35
|
"tag": "p",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"title": "Weights",
|
|
56
56
|
"examples": [
|
|
57
57
|
{
|
|
58
|
-
"layout": "
|
|
58
|
+
"layout": "column",
|
|
59
59
|
"items": [
|
|
60
60
|
{ "tag": "p", "class": "ui-font-normal", "text": "font-normal (400)" },
|
|
61
61
|
{ "tag": "p", "class": "ui-font-medium", "text": "font-medium (500)" },
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"title": "Letter Spacing",
|
|
70
70
|
"examples": [
|
|
71
71
|
{
|
|
72
|
-
"layout": "
|
|
72
|
+
"layout": "column",
|
|
73
73
|
"items": [
|
|
74
74
|
{
|
|
75
75
|
"tag": "p",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"description": "Constrain text width for optimal readability.",
|
|
92
92
|
"examples": [
|
|
93
93
|
{
|
|
94
|
-
"layout": "
|
|
94
|
+
"layout": "column",
|
|
95
95
|
"items": [
|
|
96
96
|
{ "tag": "p", "class": "ui-prose-sm", "text": "prose-sm: 45ch max-width" },
|
|
97
97
|
{ "tag": "p", "class": "ui-prose", "text": "prose: 65ch max-width (recommended)" },
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"title": "Colors",
|
|
105
105
|
"examples": [
|
|
106
106
|
{
|
|
107
|
-
"layout": "
|
|
107
|
+
"layout": "column",
|
|
108
108
|
"items": [
|
|
109
109
|
{ "tag": "p", "class": "ui-text-primary", "text": "text-primary" },
|
|
110
110
|
{ "tag": "p", "class": "ui-text-muted", "text": "text-muted" },
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"title": "Alignment",
|
|
120
120
|
"examples": [
|
|
121
121
|
{
|
|
122
|
-
"layout": "
|
|
122
|
+
"layout": "column",
|
|
123
123
|
"items": [
|
|
124
124
|
{ "tag": "p", "class": "ui-text-start", "text": "text-start (default)" },
|
|
125
125
|
{ "tag": "p", "class": "ui-text-center", "text": "text-center" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Visually Hidden - accessible hiding utility
|
|
2
2
|
// Hides content visually but keeps it accessible to screen readers
|
|
3
3
|
|
|
4
|
-
@use '../../
|
|
4
|
+
@use '../../config/tokens/variables' as t;
|
|
5
5
|
|
|
6
6
|
@layer utilities {
|
|
7
7
|
.visually-hidden {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// Focusable variant - becomes visible on focus
|
|
24
|
-
.visually-hidden--focusable:focus,
|
|
24
|
+
.visually-hidden--focusable:focus-visible,
|
|
25
25
|
.visually-hidden--focusable:active {
|
|
26
26
|
position: static;
|
|
27
27
|
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
"description": "Content is hidden visually but announced by screen readers",
|
|
11
11
|
"examples": [
|
|
12
12
|
{
|
|
13
|
-
"
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"tag": "button",
|
|
16
|
+
"children": [
|
|
17
|
+
{ "text": "Submit" },
|
|
18
|
+
{ "tag": "span", "class": "ui-visually-hidden", "text": " form to contact support" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
14
22
|
"code": "<button>\n Submit\n <span class=\"ui-visually-hidden\"> form to contact support</span>\n</button>"
|
|
15
23
|
}
|
|
16
24
|
]
|
|
@@ -20,7 +28,14 @@
|
|
|
20
28
|
"description": "Becomes visible when focused - useful for skip links",
|
|
21
29
|
"examples": [
|
|
22
30
|
{
|
|
23
|
-
"
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"tag": "a",
|
|
34
|
+
"class": "ui-visually-hidden ui-visually-hidden--focusable",
|
|
35
|
+
"attrs": { "href": "#main", "style": "position: relative;" },
|
|
36
|
+
"text": "Skip to main content"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
24
39
|
"code": "<a href=\"#main\" class=\"ui-visually-hidden ui-visually-hidden--focusable\">\n Skip to main content\n</a>"
|
|
25
40
|
}
|
|
26
41
|
]
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Border and surface mixins - shared by components and utilities
|
|
2
|
-
|
|
3
|
-
@mixin border($width: var(--ui-border-width-sm), $color: var(--ui-color-border)) {
|
|
4
|
-
border: $width solid $color;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin rounded($size: var(--ui-radius-md)) {
|
|
8
|
-
border-radius: $size;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin surface($bg: var(--ui-color-bg)) {
|
|
12
|
-
background: $bg;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward './border';
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "colors",
|
|
3
|
-
"type": "token",
|
|
4
|
-
"title": "Colors",
|
|
5
|
-
"description": "HSL-based color system with primitive and semantic tokens. Semantic tokens adapt to light/dark themes.",
|
|
6
|
-
"skipValidation": true,
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Text Colors",
|
|
10
|
-
"description": "Use for typography and icons.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"layout": "stack",
|
|
14
|
-
"items": [
|
|
15
|
-
{
|
|
16
|
-
"tag": "p",
|
|
17
|
-
"style": { "color": "var(--ui-color-text)" },
|
|
18
|
-
"text": "--ui-color-text: Default text"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"tag": "p",
|
|
22
|
-
"style": { "color": "var(--ui-color-text-muted)" },
|
|
23
|
-
"text": "--ui-color-text-muted: Secondary text, captions"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "p",
|
|
27
|
-
"class": "ui-p-1",
|
|
28
|
-
"style": {
|
|
29
|
-
"color": "var(--ui-color-text-inverse)",
|
|
30
|
-
"background": "var(--ui-color-neutral-900)",
|
|
31
|
-
"border-radius": "var(--ui-radius-sm)"
|
|
32
|
-
},
|
|
33
|
-
"text": "--ui-color-text-inverse: Text on dark backgrounds"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Background Colors",
|
|
41
|
-
"description": "Use for surfaces, cards, and containers.",
|
|
42
|
-
"examples": [
|
|
43
|
-
{
|
|
44
|
-
"layout": "stack",
|
|
45
|
-
"items": [
|
|
46
|
-
{
|
|
47
|
-
"tag": "div",
|
|
48
|
-
"class": "ui-p-2",
|
|
49
|
-
"style": {
|
|
50
|
-
"background": "var(--ui-color-bg)",
|
|
51
|
-
"border": "1px solid var(--ui-color-border)",
|
|
52
|
-
"border-radius": "var(--ui-radius-md)"
|
|
53
|
-
},
|
|
54
|
-
"text": "--ui-color-bg: Base background"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"tag": "div",
|
|
58
|
-
"class": "ui-p-2",
|
|
59
|
-
"style": {
|
|
60
|
-
"background": "var(--ui-color-bg-subtle)",
|
|
61
|
-
"border-radius": "var(--ui-radius-md)"
|
|
62
|
-
},
|
|
63
|
-
"text": "--ui-color-bg-subtle: Subtle emphasis"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"tag": "div",
|
|
67
|
-
"class": "ui-p-2",
|
|
68
|
-
"style": {
|
|
69
|
-
"background": "var(--ui-color-bg-muted)",
|
|
70
|
-
"border-radius": "var(--ui-radius-md)"
|
|
71
|
-
},
|
|
72
|
-
"text": "--ui-color-bg-muted: Stronger emphasis, code blocks"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"title": "Border Colors",
|
|
80
|
-
"description": "Use for dividers, inputs, and card borders.",
|
|
81
|
-
"examples": [
|
|
82
|
-
{
|
|
83
|
-
"layout": "stack",
|
|
84
|
-
"items": [
|
|
85
|
-
{
|
|
86
|
-
"tag": "div",
|
|
87
|
-
"class": "ui-p-2",
|
|
88
|
-
"style": {
|
|
89
|
-
"border": "2px solid var(--ui-color-border)",
|
|
90
|
-
"border-radius": "var(--ui-radius-md)"
|
|
91
|
-
},
|
|
92
|
-
"text": "--ui-color-border: Default borders"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"tag": "div",
|
|
96
|
-
"class": "ui-p-2",
|
|
97
|
-
"style": {
|
|
98
|
-
"border": "2px solid var(--ui-color-border-strong)",
|
|
99
|
-
"border-radius": "var(--ui-radius-md)"
|
|
100
|
-
},
|
|
101
|
-
"text": "--ui-color-border-strong: Emphasized borders"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"title": "Interactive Colors",
|
|
109
|
-
"description": "Use for links, buttons, and interactive elements.",
|
|
110
|
-
"examples": [
|
|
111
|
-
{
|
|
112
|
-
"layout": "stack",
|
|
113
|
-
"items": [
|
|
114
|
-
{
|
|
115
|
-
"tag": "p",
|
|
116
|
-
"style": { "color": "var(--ui-color-interactive)" },
|
|
117
|
-
"text": "--ui-color-interactive: Links, primary actions"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"tag": "p",
|
|
121
|
-
"style": { "color": "var(--ui-color-interactive-hover)" },
|
|
122
|
-
"text": "--ui-color-interactive-hover: Hover state"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"tag": "div",
|
|
126
|
-
"class": "ui-p-1",
|
|
127
|
-
"style": {
|
|
128
|
-
"display": "inline-block",
|
|
129
|
-
"outline": "3px solid var(--ui-color-focus)",
|
|
130
|
-
"outline-offset": "2px",
|
|
131
|
-
"border-radius": "var(--ui-radius-sm)"
|
|
132
|
-
},
|
|
133
|
-
"text": "--ui-color-focus: Focus rings"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"title": "Status Colors",
|
|
141
|
-
"description": "Use for feedback, alerts, and validation.",
|
|
142
|
-
"examples": [
|
|
143
|
-
{
|
|
144
|
-
"html": "<div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-success); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-success</span></div><div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-warning); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-warning</span></div><div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-danger); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-danger</span></div>"
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"title": "Primary Scale",
|
|
150
|
-
"description": "Brand color with light and dark variants.",
|
|
151
|
-
"examples": [
|
|
152
|
-
{
|
|
153
|
-
"html": "<div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary-light); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-primary-light</span></div><div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-primary</span></div><div class=\"ui-cluster ui-cluster--sm\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary-dark); border-radius: var(--ui-radius-sm)\"></div><span>--ui-color-primary-dark</span></div>"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"title": "Neutral Scale",
|
|
159
|
-
"description": "Gray scale for text, backgrounds, and borders. Derived from primary hue for subtle warmth.",
|
|
160
|
-
"examples": [
|
|
161
|
-
{
|
|
162
|
-
"html": "<div class=\"ui-cluster ui-cluster--sm\" style=\"flex-wrap: wrap\"><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-50); border: 1px solid var(--ui-color-border); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-100); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-200); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-300); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-400); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-500); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-600); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-700); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-800); border-radius: var(--ui-radius-sm)\"></div><div style=\"width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-900); border-radius: var(--ui-radius-sm)\"></div></div>",
|
|
163
|
-
"code": "50 → 100 → 200 → 300 → 400 → 500 → 600 → 700 → 800 → 900"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
// Base colors - override these to customize the design system
|
|
3
|
-
--ui-color-primary: oklch(55% 0.22 250);
|
|
4
|
-
--ui-color-success: oklch(60% 0.18 145);
|
|
5
|
-
--ui-color-warning: oklch(75% 0.18 70);
|
|
6
|
-
--ui-color-danger: oklch(60% 0.22 25);
|
|
7
|
-
--ui-color-neutral: oklch(50% 0.02 250);
|
|
8
|
-
|
|
9
|
-
// Primary shades - auto-generated via color-mix
|
|
10
|
-
--ui-color-primary-light: color-mix(in oklch, var(--ui-color-primary) 50%, white);
|
|
11
|
-
--ui-color-primary-dark: color-mix(in oklch, var(--ui-color-primary) 75%, black);
|
|
12
|
-
--ui-color-primary-subtle: color-mix(in oklch, var(--ui-color-primary) 12%, white);
|
|
13
|
-
--ui-color-primary-hover: color-mix(in oklch, var(--ui-color-primary) 85%, black);
|
|
14
|
-
|
|
15
|
-
// Neutral scale - auto-generated via color-mix
|
|
16
|
-
--ui-color-neutral-50: color-mix(in oklch, var(--ui-color-neutral) 3%, white);
|
|
17
|
-
--ui-color-neutral-100: color-mix(in oklch, var(--ui-color-neutral) 6%, white);
|
|
18
|
-
--ui-color-neutral-200: color-mix(in oklch, var(--ui-color-neutral) 12%, white);
|
|
19
|
-
--ui-color-neutral-300: color-mix(in oklch, var(--ui-color-neutral) 25%, white);
|
|
20
|
-
--ui-color-neutral-400: color-mix(in oklch, var(--ui-color-neutral) 50%, white);
|
|
21
|
-
--ui-color-neutral-500: var(--ui-color-neutral);
|
|
22
|
-
--ui-color-neutral-600: color-mix(in oklch, var(--ui-color-neutral) 85%, black);
|
|
23
|
-
--ui-color-neutral-700: color-mix(in oklch, var(--ui-color-neutral) 70%, black);
|
|
24
|
-
--ui-color-neutral-800: color-mix(in oklch, var(--ui-color-neutral) 50%, black);
|
|
25
|
-
--ui-color-neutral-900: color-mix(in oklch, var(--ui-color-neutral) 35%, black);
|
|
26
|
-
}
|