@teseor/css 1.6.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 +72 -65
- 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/components/content/scroll-area/index.scss +92 -0
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.api.json +63 -0
- package/src/components/content/scroll-area/scroll-area.docs.json +204 -0
- package/src/components/content/scroll-area/scroll-area.visual.spec.ts +14 -0
- 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/components/forms/number-input/index.scss +153 -0
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.api.json +74 -0
- package/src/components/forms/number-input/number-input.docs.json +262 -0
- package/src/components/forms/number-input/number-input.visual.spec.ts +14 -0
- package/src/components/forms/password-input/index.scss +138 -0
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.api.json +84 -0
- package/src/components/forms/password-input/password-input.docs.json +276 -0
- package/src/components/forms/password-input/password-input.visual.spec.ts +14 -0
- 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 +6 -2
- 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/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.api.json +37 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +272 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +14 -0
- package/src/components/navigation/dropdown-menu/index.scss +84 -0
- 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/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}/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/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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teseor/css",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "CSS library - reset, primitives, components, utilities",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "letanure",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"src"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"build": "pnpm --filter @teseor/source sync:components && sass src/index.scss dist/
|
|
32
|
+
"build": "pnpm --filter @teseor/source sync:components && mkdir -p dist && sass src/index.scss dist/compiled.css --no-source-map --style=compressed && postcss dist/compiled.css -o dist/index.css",
|
|
33
33
|
"test:grid": "playwright test --config=playwright.config.ts src/testing/grid-alignment.spec.ts",
|
|
34
34
|
"test:visual": "playwright test --config=playwright.config.ts --grep visual"
|
|
35
35
|
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "typography",
|
|
3
|
+
"type": "token",
|
|
4
|
+
"title": "Typography",
|
|
5
|
+
"description": "Modular scale (1.2 ratio) with 8px grid-snapped line-heights. Responsive breakpoints at 730px and 1080px adjust heading sizes.",
|
|
6
|
+
"skipValidation": true,
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Type Scale",
|
|
10
|
+
"description": "Font sizes follow a 1.2 (Minor Third) modular scale from 12px to 40px. All line-heights snap to 8px multiples.",
|
|
11
|
+
"examples": [
|
|
12
|
+
{
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"tag": "table",
|
|
16
|
+
"class": "ui-table",
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"tag": "thead",
|
|
20
|
+
"children": [
|
|
21
|
+
{
|
|
22
|
+
"tag": "tr",
|
|
23
|
+
"children": [
|
|
24
|
+
{ "tag": "th", "text": "Token" },
|
|
25
|
+
{ "tag": "th", "text": "Size" },
|
|
26
|
+
{ "tag": "th", "text": "Line-height" }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"tag": "tbody",
|
|
33
|
+
"children": [
|
|
34
|
+
{
|
|
35
|
+
"tag": "tr",
|
|
36
|
+
"children": [
|
|
37
|
+
{
|
|
38
|
+
"tag": "td",
|
|
39
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-xs" }]
|
|
40
|
+
},
|
|
41
|
+
{ "tag": "td", "text": "12px" },
|
|
42
|
+
{ "tag": "td", "text": "16px" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"tag": "tr",
|
|
47
|
+
"children": [
|
|
48
|
+
{
|
|
49
|
+
"tag": "td",
|
|
50
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-sm" }]
|
|
51
|
+
},
|
|
52
|
+
{ "tag": "td", "text": "14px" },
|
|
53
|
+
{ "tag": "td", "text": "24px" }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"tag": "tr",
|
|
58
|
+
"children": [
|
|
59
|
+
{
|
|
60
|
+
"tag": "td",
|
|
61
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-md" }]
|
|
62
|
+
},
|
|
63
|
+
{ "tag": "td", "text": "16px" },
|
|
64
|
+
{ "tag": "td", "text": "24px" }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"tag": "tr",
|
|
69
|
+
"children": [
|
|
70
|
+
{
|
|
71
|
+
"tag": "td",
|
|
72
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-lg" }]
|
|
73
|
+
},
|
|
74
|
+
{ "tag": "td", "text": "20px" },
|
|
75
|
+
{ "tag": "td", "text": "32px" }
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"tag": "tr",
|
|
80
|
+
"children": [
|
|
81
|
+
{
|
|
82
|
+
"tag": "td",
|
|
83
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-xl" }]
|
|
84
|
+
},
|
|
85
|
+
{ "tag": "td", "text": "24px" },
|
|
86
|
+
{ "tag": "td", "text": "32px" }
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"tag": "tr",
|
|
91
|
+
"children": [
|
|
92
|
+
{
|
|
93
|
+
"tag": "td",
|
|
94
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-2xl" }]
|
|
95
|
+
},
|
|
96
|
+
{ "tag": "td", "text": "28px" },
|
|
97
|
+
{ "tag": "td", "text": "32px" }
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"tag": "tr",
|
|
102
|
+
"children": [
|
|
103
|
+
{
|
|
104
|
+
"tag": "td",
|
|
105
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-3xl" }]
|
|
106
|
+
},
|
|
107
|
+
{ "tag": "td", "text": "32px" },
|
|
108
|
+
{ "tag": "td", "text": "40px" }
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"tag": "tr",
|
|
113
|
+
"children": [
|
|
114
|
+
{
|
|
115
|
+
"tag": "td",
|
|
116
|
+
"children": [{ "tag": "code", "text": "--ui-font-size-4xl" }]
|
|
117
|
+
},
|
|
118
|
+
{ "tag": "td", "text": "40px" },
|
|
119
|
+
{ "tag": "td", "text": "48px" }
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"title": "Headings",
|
|
132
|
+
"description": "Headings use semantic tokens and adjust size at breakpoints.",
|
|
133
|
+
"examples": [
|
|
134
|
+
{
|
|
135
|
+
"items": [
|
|
136
|
+
{ "tag": "h1", "text": "Heading 1 - 40px / 48px" },
|
|
137
|
+
{ "tag": "h2", "text": "Heading 2 - 32px / 40px" },
|
|
138
|
+
{ "tag": "h3", "text": "Heading 3 - 28px / 32px" },
|
|
139
|
+
{ "tag": "h4", "text": "Heading 4 - 24px / 32px" },
|
|
140
|
+
{ "tag": "h5", "text": "Heading 5 - 20px / 24px" }
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"title": "Body Text",
|
|
147
|
+
"description": "Default body text at 16px with 24px line-height (1.5x ratio).",
|
|
148
|
+
"examples": [
|
|
149
|
+
{
|
|
150
|
+
"items": [
|
|
151
|
+
{
|
|
152
|
+
"tag": "p",
|
|
153
|
+
"children": [
|
|
154
|
+
{ "text": "Body text at 16px with 24px line-height. The " },
|
|
155
|
+
{ "tag": "strong", "text": "bold text" },
|
|
156
|
+
{ "text": " and " },
|
|
157
|
+
{ "tag": "code", "text": "inline code" },
|
|
158
|
+
{ "text": " maintain the same rhythm." }
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"tag": "p",
|
|
163
|
+
"class": "ui-text-body-sm",
|
|
164
|
+
"text": "Body small at 14px with 24px line-height for secondary text."
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"title": "Text Roles",
|
|
172
|
+
"description": "Semantic text styles for specific use cases.",
|
|
173
|
+
"examples": [
|
|
174
|
+
{
|
|
175
|
+
"items": [
|
|
176
|
+
{
|
|
177
|
+
"tag": "p",
|
|
178
|
+
"class": "ui-text-lead",
|
|
179
|
+
"text": "Lead paragraph - 20px / 32px. Use for opening paragraphs or article intros."
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"items": [
|
|
185
|
+
{ "tag": "p", "class": "ui-text-eyebrow", "text": "Eyebrow text" },
|
|
186
|
+
{ "tag": "h2", "text": "Related Heading" }
|
|
187
|
+
],
|
|
188
|
+
"description": "Eyebrow - 12px uppercase with wide tracking. Use above headings for categorization."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"items": [
|
|
192
|
+
{
|
|
193
|
+
"tag": "p",
|
|
194
|
+
"class": "ui-text-caption",
|
|
195
|
+
"text": "Caption text - 12px / 16px. Use for labels, hints, and metadata."
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"title": "Font Weights",
|
|
203
|
+
"description": "Four weight levels for hierarchy.",
|
|
204
|
+
"examples": [
|
|
205
|
+
{
|
|
206
|
+
"items": [
|
|
207
|
+
{ "tag": "p", "class": "ui-font-normal", "text": "Normal (400) - Body text" },
|
|
208
|
+
{
|
|
209
|
+
"tag": "p",
|
|
210
|
+
"class": "ui-font-medium",
|
|
211
|
+
"text": "Medium (500) - Labels, small headings"
|
|
212
|
+
},
|
|
213
|
+
{ "tag": "p", "class": "ui-font-semibold", "text": "Semibold (600) - Subheadings" },
|
|
214
|
+
{ "tag": "p", "class": "ui-font-bold", "text": "Bold (700) - Headlines, emphasis" }
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"title": "Letter Spacing",
|
|
221
|
+
"description": "Three tracking options based on use case.",
|
|
222
|
+
"examples": [
|
|
223
|
+
{
|
|
224
|
+
"items": [
|
|
225
|
+
{
|
|
226
|
+
"tag": "p",
|
|
227
|
+
"class": "ui-text-3xl ui-tracking-display",
|
|
228
|
+
"text": "Display tracking (-0.02em)"
|
|
229
|
+
},
|
|
230
|
+
{ "tag": "p", "text": "Body tracking (0) - default" },
|
|
231
|
+
{ "tag": "p", "class": "ui-text-eyebrow", "text": "Caps tracking (+0.08em)" }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"title": "Line Length",
|
|
238
|
+
"description": "Constrain text width for optimal readability (45-75 characters).",
|
|
239
|
+
"examples": [
|
|
240
|
+
{
|
|
241
|
+
"items": [
|
|
242
|
+
{
|
|
243
|
+
"tag": "div",
|
|
244
|
+
"class": "ui-prose",
|
|
245
|
+
"children": [
|
|
246
|
+
{
|
|
247
|
+
"tag": "p",
|
|
248
|
+
"text": "This paragraph is constrained to 65ch max-width for optimal reading comfort. Long lines of text are harder to read because the eye has difficulty tracking back to the start of the next line."
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"title": "Responsive Behavior",
|
|
258
|
+
"description": "Headings scale down on mobile (<730px) and up on desktop (>1080px).",
|
|
259
|
+
"examples": [
|
|
260
|
+
{
|
|
261
|
+
"items": [
|
|
262
|
+
{
|
|
263
|
+
"tag": "table",
|
|
264
|
+
"class": "ui-table",
|
|
265
|
+
"children": [
|
|
266
|
+
{
|
|
267
|
+
"tag": "thead",
|
|
268
|
+
"children": [
|
|
269
|
+
{
|
|
270
|
+
"tag": "tr",
|
|
271
|
+
"children": [
|
|
272
|
+
{ "tag": "th", "text": "Heading" },
|
|
273
|
+
{ "tag": "th", "text": "Mobile" },
|
|
274
|
+
{ "tag": "th", "text": "Default" },
|
|
275
|
+
{ "tag": "th", "text": "Desktop" }
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"tag": "tbody",
|
|
282
|
+
"children": [
|
|
283
|
+
{
|
|
284
|
+
"tag": "tr",
|
|
285
|
+
"children": [
|
|
286
|
+
{ "tag": "td", "text": "h1" },
|
|
287
|
+
{ "tag": "td", "text": "28px" },
|
|
288
|
+
{ "tag": "td", "text": "40px" },
|
|
289
|
+
{ "tag": "td", "text": "48px" }
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"tag": "tr",
|
|
294
|
+
"children": [
|
|
295
|
+
{ "tag": "td", "text": "h2" },
|
|
296
|
+
{ "tag": "td", "text": "24px" },
|
|
297
|
+
{ "tag": "td", "text": "32px" },
|
|
298
|
+
{ "tag": "td", "text": "40px" }
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"tag": "tr",
|
|
303
|
+
"children": [
|
|
304
|
+
{ "tag": "td", "text": "h3" },
|
|
305
|
+
{ "tag": "td", "text": "20px" },
|
|
306
|
+
{ "tag": "td", "text": "28px" },
|
|
307
|
+
{ "tag": "td", "text": "28px" }
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"tag": "tr",
|
|
312
|
+
"children": [
|
|
313
|
+
{ "tag": "td", "text": "h4" },
|
|
314
|
+
{ "tag": "td", "text": "18px" },
|
|
315
|
+
{ "tag": "td", "text": "24px" },
|
|
316
|
+
{ "tag": "td", "text": "24px" }
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
// Desktop (>1080px) - larger headings
|
|
150
150
|
@media (width > 67.5rem) {
|
|
151
151
|
h1 {
|
|
152
|
-
font-size: calc(var(--unit) * 6); // 48px
|
|
153
|
-
line-height: calc(var(--unit) * 7); // 56px
|
|
152
|
+
font-size: calc(var(--ui-unit) * 6); // 48px
|
|
153
|
+
line-height: calc(var(--ui-unit) * 7); // 56px
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
h2 {
|
|
Binary file
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"default": "var(--ui-radius-md)"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"name": "--ui-button-
|
|
63
|
+
"name": "--ui-button-color",
|
|
64
64
|
"default": "var(--ui-color-text-inverse)"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "--ui-button-height-sm",
|
|
68
|
-
"default": "calc(var(--row) * 1.5)"
|
|
68
|
+
"default": "calc(var(--ui-row) * 1.5)"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "--ui-button-font-size-sm",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "--ui-button-height-lg",
|
|
84
|
-
"default": "calc(var(--row) * 2.5)"
|
|
84
|
+
"default": "calc(var(--ui-row) * 2.5)"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"name": "--ui-button-padding-x-lg",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"default": "var(--ui-color-border-strong)"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"name": "--ui-button-secondary-
|
|
103
|
+
"name": "--ui-button-secondary-color",
|
|
104
104
|
"default": "var(--ui-color-text)"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"id": "button",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"title": "Button",
|
|
2
5
|
"api": "./button.api.json",
|
|
3
6
|
"description": "Buttons trigger actions. Use primary for main CTA, secondary for less important actions.",
|
|
4
7
|
"modifiers": {
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
"description": "Button styles for different purposes and emphasis levels.",
|
|
28
31
|
"examples": [
|
|
29
32
|
{
|
|
30
|
-
"layout": "
|
|
33
|
+
"layout": "row",
|
|
31
34
|
"items": [
|
|
32
35
|
{ "tag": "button", "class": "ui-button", "text": "Primary" },
|
|
33
36
|
{ "tag": "button", "class": "ui-button ui-button--secondary", "text": "Secondary" },
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
"description": "Small for dense UIs, default for most cases, large for prominent CTAs.",
|
|
45
48
|
"examples": [
|
|
46
49
|
{
|
|
47
|
-
"layout": "
|
|
50
|
+
"layout": "row",
|
|
48
51
|
"items": [
|
|
49
52
|
{ "tag": "button", "class": "ui-button ui-button--sm", "text": "Small" },
|
|
50
53
|
{ "tag": "button", "class": "ui-button ui-button--md", "text": "Medium" },
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
"description": "Override border radius. Use radius-full for pill-shaped buttons.",
|
|
59
62
|
"examples": [
|
|
60
63
|
{
|
|
61
|
-
"layout": "
|
|
64
|
+
"layout": "row",
|
|
62
65
|
"items": [
|
|
63
66
|
{ "tag": "button", "class": "ui-button ui-button--radius-none", "text": "None" },
|
|
64
67
|
{ "tag": "button", "class": "ui-button ui-button--radius-sm", "text": "Small" },
|
|
@@ -85,7 +88,7 @@
|
|
|
85
88
|
"description": "Shows spinner animation. Button becomes non-interactive.",
|
|
86
89
|
"examples": [
|
|
87
90
|
{
|
|
88
|
-
"layout": "
|
|
91
|
+
"layout": "row",
|
|
89
92
|
"items": [
|
|
90
93
|
{ "tag": "button", "class": "ui-button ui-button--loading", "text": "Loading" },
|
|
91
94
|
{
|
|
@@ -102,22 +105,52 @@
|
|
|
102
105
|
"description": "Square icon-only buttons. Use with SVG icons from Lucide or similar sets.",
|
|
103
106
|
"examples": [
|
|
104
107
|
{
|
|
105
|
-
"layout": "
|
|
108
|
+
"layout": "row",
|
|
106
109
|
"items": [
|
|
107
110
|
{
|
|
108
111
|
"tag": "button",
|
|
109
112
|
"class": "ui-button ui-button--icon ui-button--sm",
|
|
110
|
-
"
|
|
113
|
+
"children": [
|
|
114
|
+
{
|
|
115
|
+
"tag": "svg",
|
|
116
|
+
"class": "ui-icon",
|
|
117
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
118
|
+
"children": [
|
|
119
|
+
{ "tag": "path", "attrs": { "d": "M18 6 6 18" } },
|
|
120
|
+
{ "tag": "path", "attrs": { "d": "m6 6 12 12" } }
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
111
124
|
},
|
|
112
125
|
{
|
|
113
126
|
"tag": "button",
|
|
114
127
|
"class": "ui-button ui-button--icon",
|
|
115
|
-
"
|
|
128
|
+
"children": [
|
|
129
|
+
{
|
|
130
|
+
"tag": "svg",
|
|
131
|
+
"class": "ui-icon",
|
|
132
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
133
|
+
"children": [
|
|
134
|
+
{ "tag": "path", "attrs": { "d": "M5 12h14" } },
|
|
135
|
+
{ "tag": "path", "attrs": { "d": "M12 5v14" } }
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
116
139
|
},
|
|
117
140
|
{
|
|
118
141
|
"tag": "button",
|
|
119
142
|
"class": "ui-button ui-button--icon ui-button--lg",
|
|
120
|
-
"
|
|
143
|
+
"children": [
|
|
144
|
+
{
|
|
145
|
+
"tag": "svg",
|
|
146
|
+
"class": "ui-icon",
|
|
147
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
148
|
+
"children": [
|
|
149
|
+
{ "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
|
|
150
|
+
{ "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
]
|
|
121
154
|
}
|
|
122
155
|
],
|
|
123
156
|
"code": "<button class=\"ui-button ui-button--icon ui-button--sm\">\n <svg class=\"ui-icon\"><!-- x icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon\">\n <svg class=\"ui-icon\"><!-- plus icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon ui-button--lg\">\n <svg class=\"ui-icon\"><!-- search icon --></svg>\n</button>"
|
|
@@ -129,17 +162,36 @@
|
|
|
129
162
|
"description": "Buttons with icon and text. Use ui-button__icon element with --start or --end modifier.",
|
|
130
163
|
"examples": [
|
|
131
164
|
{
|
|
132
|
-
"layout": "
|
|
165
|
+
"layout": "row",
|
|
133
166
|
"items": [
|
|
134
167
|
{
|
|
135
168
|
"tag": "button",
|
|
136
169
|
"class": "ui-button",
|
|
137
|
-
"
|
|
170
|
+
"children": [
|
|
171
|
+
{
|
|
172
|
+
"tag": "svg",
|
|
173
|
+
"class": "ui-icon ui-button__icon ui-button__icon--start",
|
|
174
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
175
|
+
"children": [
|
|
176
|
+
{ "tag": "path", "attrs": { "d": "M5 12h14" } },
|
|
177
|
+
{ "tag": "path", "attrs": { "d": "M12 5v14" } }
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{ "text": "Add Item" }
|
|
181
|
+
]
|
|
138
182
|
},
|
|
139
183
|
{
|
|
140
184
|
"tag": "button",
|
|
141
185
|
"class": "ui-button ui-button--secondary",
|
|
142
|
-
"
|
|
186
|
+
"children": [
|
|
187
|
+
{ "text": "Next" },
|
|
188
|
+
{
|
|
189
|
+
"tag": "svg",
|
|
190
|
+
"class": "ui-icon ui-button__icon ui-button__icon--end",
|
|
191
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
192
|
+
"children": [{ "tag": "path", "attrs": { "d": "m9 18 6-6-6-6" } }]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
143
195
|
}
|
|
144
196
|
],
|
|
145
197
|
"code": "<button class=\"ui-button\">\n <svg class=\"ui-icon ui-button__icon ui-button__icon--start\"><!-- plus --></svg>\n Add Item\n</button>\n<button class=\"ui-button ui-button--secondary\">\n Next\n <svg class=\"ui-icon ui-button__icon ui-button__icon--end\"><!-- chevron-right --></svg>\n</button>"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component button
|
|
4
4
|
// @element button
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
--_radius: var(--ui-button-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
17
17
|
--_bg: var(--_accent);
|
|
18
18
|
--_bg-hover: color-mix(in oklch, var(--_accent) 80%, black);
|
|
19
|
-
--
|
|
19
|
+
--_color: var(--ui-button-color, var(--ui-color-text-inverse, #{t.$color-text-inverse}));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// @modifier size
|
|
23
23
|
.button--sm {
|
|
24
24
|
--ui-ctx-size: var(--ui-size-sm, #{t.size(sm)});
|
|
25
|
-
--_height: var(--ui-button-height-sm, calc(var(--row, #{t.$row}) * 1.5));
|
|
25
|
+
--_height: var(--ui-button-height-sm, calc(var(--ui-row, #{t.$row}) * 1.5));
|
|
26
26
|
--_font-size: var(--ui-button-font-size-sm, var(--ui-font-size-xs, #{t.$font-size-xs}));
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
.button--lg {
|
|
36
36
|
--ui-ctx-size: var(--ui-size-lg, #{t.size(lg)});
|
|
37
|
-
--_height: var(--ui-button-height-lg, calc(var(--row, #{t.$row}) * 2.5));
|
|
37
|
+
--_height: var(--ui-button-height-lg, calc(var(--ui-row, #{t.$row}) * 2.5));
|
|
38
38
|
--_padding-x: var(--ui-button-padding-x-lg, var(--ui-space-3, #{t.$space-3}));
|
|
39
39
|
--_font-size: var(--ui-button-font-size-lg, var(--ui-font-size-md, #{t.$font-size-md}));
|
|
40
40
|
}
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
.button--secondary {
|
|
44
44
|
--_bg: var(--ui-color-bg-muted, #{t.$color-bg-muted});
|
|
45
45
|
--_bg-hover: var(--ui-color-border-strong, #{t.$color-border-strong});
|
|
46
|
-
--
|
|
46
|
+
--_color: var(--ui-color-text, #{t.$color-text});
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.button--ghost {
|
|
50
50
|
--_bg: transparent;
|
|
51
51
|
--_bg-hover: color-mix(in oklch, var(--_accent) 10%, transparent);
|
|
52
|
-
--
|
|
52
|
+
--_color: var(--_accent);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.button--outline {
|
|
56
56
|
--_bg: transparent;
|
|
57
57
|
--_bg-hover: var(--_accent);
|
|
58
|
-
--
|
|
59
|
-
--
|
|
58
|
+
--_color: var(--_accent);
|
|
59
|
+
--_color-hover: var(--ui-color-text-inverse, #{t.$color-text-inverse});
|
|
60
60
|
--_border: var(--ui-border-width-sm, #{t.$border-width-sm}) solid currentColor;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
.button--link {
|
|
68
68
|
--_bg: transparent;
|
|
69
69
|
--_bg-hover: transparent;
|
|
70
|
-
--
|
|
71
|
-
--
|
|
70
|
+
--_color: var(--_accent);
|
|
71
|
+
--_color-hover: color-mix(in oklch, var(--_accent) 70%, black);
|
|
72
72
|
--_height: auto;
|
|
73
73
|
--_padding-x: 0;
|
|
74
74
|
--_radius: 0;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
line-height: 1;
|
|
124
124
|
text-decoration: none;
|
|
125
125
|
white-space: nowrap;
|
|
126
|
-
color: var(--
|
|
126
|
+
color: var(--_color);
|
|
127
127
|
|
|
128
128
|
background: var(--_bg);
|
|
129
129
|
border: var(--_border, none);
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
// States - modifiers mirror pseudo-classes for testing/docs
|
|
140
140
|
&:hover,
|
|
141
141
|
&--hover {
|
|
142
|
-
color: var(--
|
|
142
|
+
color: var(--_color-hover, var(--_color));
|
|
143
143
|
|
|
144
144
|
background: var(--_bg-hover);
|
|
145
145
|
}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
&:disabled {
|
|
159
|
-
opacity: 0.5;
|
|
159
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
160
160
|
cursor: not-allowed;
|
|
161
161
|
|
|
162
162
|
&:hover {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
&--loading {
|
|
206
206
|
position: relative;
|
|
207
207
|
|
|
208
|
-
opacity: 0.7;
|
|
208
|
+
opacity: var(--ui-opacity-loading, 0.7);
|
|
209
209
|
pointer-events: none;
|
|
210
210
|
|
|
211
211
|
&::after {
|
|
@@ -229,4 +229,10 @@
|
|
|
229
229
|
transform: rotate(360deg);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
+
|
|
233
|
+
@media (prefers-reduced-motion: reduce) {
|
|
234
|
+
.button--loading::after {
|
|
235
|
+
animation: none;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
232
238
|
}
|