@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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"title": "Default",
|
|
10
10
|
"examples": [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"items": [{ "tag": "span", "class": "ui-badge", "text": "Default" }]
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{ "tag": "span", "class": "ui-badge ui-badge--warning", "text": "Warning" },
|
|
25
25
|
{ "tag": "span", "class": "ui-badge ui-badge--danger", "text": "Danger" }
|
|
26
26
|
],
|
|
27
|
-
"layout": "
|
|
27
|
+
"layout": "row"
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
},
|
|
@@ -34,9 +34,10 @@
|
|
|
34
34
|
{
|
|
35
35
|
"items": [
|
|
36
36
|
{ "tag": "span", "class": "ui-badge ui-badge--sm", "text": "Small" },
|
|
37
|
-
{ "tag": "span", "class": "ui-badge", "text": "Default" }
|
|
37
|
+
{ "tag": "span", "class": "ui-badge", "text": "Default" },
|
|
38
|
+
{ "tag": "span", "class": "ui-badge ui-badge--lg", "text": "Large" }
|
|
38
39
|
],
|
|
39
|
-
"layout": "
|
|
40
|
+
"layout": "row"
|
|
40
41
|
}
|
|
41
42
|
]
|
|
42
43
|
},
|
|
@@ -44,10 +45,29 @@
|
|
|
44
45
|
"title": "Use Cases",
|
|
45
46
|
"examples": [
|
|
46
47
|
{
|
|
47
|
-
"
|
|
48
|
+
"items": [
|
|
49
|
+
{
|
|
50
|
+
"tag": "div",
|
|
51
|
+
"class": "ui-row",
|
|
52
|
+
"children": [
|
|
53
|
+
{ "tag": "span", "text": "Notifications" },
|
|
54
|
+
{ "tag": "span", "class": "ui-badge ui-badge--primary", "text": "5" }
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
48
58
|
},
|
|
49
59
|
{
|
|
50
|
-
"
|
|
60
|
+
"items": [
|
|
61
|
+
{
|
|
62
|
+
"tag": "div",
|
|
63
|
+
"class": "ui-row",
|
|
64
|
+
"children": [
|
|
65
|
+
{ "tag": "span", "class": "ui-badge ui-badge--success", "text": "Published" },
|
|
66
|
+
{ "tag": "span", "class": "ui-badge ui-badge--warning", "text": "Draft" },
|
|
67
|
+
{ "tag": "span", "class": "ui-badge ui-badge--danger", "text": "Archived" }
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
]
|
|
51
71
|
}
|
|
52
72
|
]
|
|
53
73
|
}
|
|
@@ -59,6 +79,11 @@
|
|
|
59
79
|
"description": "Default height"
|
|
60
80
|
},
|
|
61
81
|
{ "token": "--ui-badge-height-sm", "default": "var(--ui-row)", "description": "Small height" },
|
|
82
|
+
{
|
|
83
|
+
"token": "--ui-badge-height-lg",
|
|
84
|
+
"default": "calc(var(--ui-row) * 1.5)",
|
|
85
|
+
"description": "Large height"
|
|
86
|
+
},
|
|
62
87
|
{
|
|
63
88
|
"token": "--ui-badge-padding-x",
|
|
64
89
|
"default": "var(--ui-space-1)",
|
|
@@ -84,6 +109,6 @@
|
|
|
84
109
|
"default": "var(--ui-color-bg-muted)",
|
|
85
110
|
"description": "Background color"
|
|
86
111
|
},
|
|
87
|
-
{ "token": "--ui-badge-
|
|
112
|
+
{ "token": "--ui-badge-color", "default": "var(--ui-color-text)", "description": "Text color" }
|
|
88
113
|
]
|
|
89
114
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component badge
|
|
4
4
|
// @element span
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--_font-weight: var(--ui-badge-font-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
15
15
|
--_radius: var(--ui-badge-radius, var(--ui-radius-full, #{t.$radius-full}));
|
|
16
16
|
--_bg: var(--_accent);
|
|
17
|
-
--
|
|
17
|
+
--_color: var(--ui-badge-color, var(--ui-color-text, #{t.$color-text}));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// @modifier size
|
|
@@ -24,25 +24,31 @@
|
|
|
24
24
|
--_font-size: var(--ui-badge-font-size-sm, calc(var(--ui-font-size-xs, #{t.$font-size-xs}) * 0.85));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.badge--lg {
|
|
28
|
+
--_height: var(--ui-badge-height-lg, calc(var(--ui-row, #{t.$row}) * 1.5));
|
|
29
|
+
--_padding-x: var(--ui-badge-padding-x-lg, var(--ui-space-2, #{t.$space-2}));
|
|
30
|
+
--_font-size: var(--ui-badge-font-size-lg, var(--ui-font-size-md, #{t.$font-size-md}));
|
|
31
|
+
}
|
|
32
|
+
|
|
27
33
|
// @modifier variant
|
|
28
34
|
.badge--primary {
|
|
29
35
|
--_accent: var(--ui-color-primary, #{t.$color-primary});
|
|
30
|
-
--
|
|
36
|
+
--_color: var(--ui-color-text-inverse, #{t.$color-text-inverse});
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
.badge--success {
|
|
34
40
|
--_accent: var(--ui-color-success, #{t.$color-success});
|
|
35
|
-
--
|
|
41
|
+
--_color: var(--ui-color-text-inverse, #{t.$color-text-inverse});
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
.badge--warning {
|
|
39
45
|
--_accent: var(--ui-color-warning, #{t.$color-warning});
|
|
40
|
-
--
|
|
46
|
+
--_color: var(--ui-color-text, #{t.$color-text});
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
.badge--danger {
|
|
44
50
|
--_accent: var(--ui-color-danger, #{t.$color-danger});
|
|
45
|
-
--
|
|
51
|
+
--_color: var(--ui-color-text-inverse, #{t.$color-text-inverse});
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
54
|
|
|
@@ -59,7 +65,7 @@
|
|
|
59
65
|
font-weight: var(--_font-weight);
|
|
60
66
|
line-height: 1;
|
|
61
67
|
white-space: nowrap;
|
|
62
|
-
color: var(--
|
|
68
|
+
color: var(--_color);
|
|
63
69
|
|
|
64
70
|
background: var(--_bg);
|
|
65
71
|
border-radius: var(--_radius);
|
|
Binary file
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"flush": {
|
|
12
12
|
"type": "boolean"
|
|
13
|
+
},
|
|
14
|
+
"interactive": {
|
|
15
|
+
"type": "boolean"
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
18
|
"cssVars": [
|
|
@@ -48,6 +51,18 @@
|
|
|
48
51
|
{
|
|
49
52
|
"name": "--ui-card-padding-lg",
|
|
50
53
|
"default": "var(--ui-space-6)"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "--ui-card-bg-hover",
|
|
57
|
+
"default": "var(--ui-color-bg-subtle)"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "--ui-card-border-color-hover",
|
|
61
|
+
"default": "var(--ui-color-border-strong)"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "--ui-card-bg-active",
|
|
65
|
+
"default": "var(--ui-color-bg-muted)"
|
|
51
66
|
}
|
|
52
67
|
]
|
|
53
68
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"id": "card",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"title": "Card",
|
|
2
5
|
"api": "./card.api.json",
|
|
3
6
|
"sections": [
|
|
4
7
|
{
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
},
|
|
24
27
|
"examples": [
|
|
25
28
|
{
|
|
26
|
-
"layout": "
|
|
29
|
+
"layout": "column",
|
|
27
30
|
"items": [
|
|
28
31
|
{ "tag": "div", "class": "ui-card", "text": "Default background" },
|
|
29
32
|
{ "tag": "div", "class": "ui-card ui-card--subtle", "text": "Subtle background" },
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
},
|
|
46
49
|
"examples": [
|
|
47
50
|
{
|
|
48
|
-
"layout": "
|
|
51
|
+
"layout": "column",
|
|
49
52
|
"items": [
|
|
50
53
|
{ "tag": "div", "class": "ui-card ui-card--sm", "text": "Small padding" },
|
|
51
54
|
{ "tag": "div", "class": "ui-card", "text": "Default padding" },
|
|
@@ -55,6 +58,27 @@
|
|
|
55
58
|
"code": "{% for s in sizes %}<div class=\"ui-card{% if s.mod %} ui-card--{{ s.mod }}{% endif %}\">{{ s.label }}</div>\n{% endfor %}"
|
|
56
59
|
}
|
|
57
60
|
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"title": "Interactive",
|
|
64
|
+
"examples": [
|
|
65
|
+
{
|
|
66
|
+
"layout": "column",
|
|
67
|
+
"items": [
|
|
68
|
+
{
|
|
69
|
+
"tag": "div",
|
|
70
|
+
"class": "ui-card ui-card--interactive",
|
|
71
|
+
"text": "Hover and click this card"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"tag": "div",
|
|
75
|
+
"class": "ui-card ui-card--interactive ui-card--subtle",
|
|
76
|
+
"text": "Interactive subtle card"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"code": "<div class=\"ui-card ui-card--interactive\">Clickable card</div>"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
58
82
|
}
|
|
59
83
|
],
|
|
60
84
|
"customization": [
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use '../../../00-config/mixins/border' as *;
|
|
2
|
-
|
|
3
1
|
// @component card
|
|
4
2
|
// @element div
|
|
5
3
|
|
|
@@ -20,6 +18,11 @@
|
|
|
20
18
|
.card--sm { --_padding: var(--ui-card-padding-sm, var(--ui-space-2)); }
|
|
21
19
|
.card--lg { --_padding: var(--ui-card-padding-lg, var(--ui-space-6)); }
|
|
22
20
|
|
|
21
|
+
// @modifier boolean interactive
|
|
22
|
+
.card--interactive {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
23
26
|
// @modifier boolean flush
|
|
24
27
|
.card--flush {
|
|
25
28
|
--_padding: 0;
|
|
@@ -27,15 +30,32 @@
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
// Implementation
|
|
31
33
|
@layer components.styles {
|
|
32
34
|
.card {
|
|
33
|
-
@include border(var(--_border-width), var(--_border-color));
|
|
34
|
-
@include rounded(var(--_radius));
|
|
35
|
-
@include surface(var(--_bg));
|
|
36
35
|
// Subtract border from padding to keep total on grid
|
|
37
36
|
padding: calc(var(--_padding) - var(--_border-width));
|
|
37
|
+
|
|
38
38
|
// Grid-aligned line-height for text content
|
|
39
39
|
line-height: var(--ui-row-1);
|
|
40
|
+
|
|
41
|
+
background: var(--_bg);
|
|
42
|
+
border: var(--_border-width) solid var(--_border-color);
|
|
43
|
+
border-radius: var(--_radius);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.card--interactive {
|
|
47
|
+
transition:
|
|
48
|
+
background-color var(--ui-duration-fast) var(--ui-ease-default),
|
|
49
|
+
border-color var(--ui-duration-fast) var(--ui-ease-default),
|
|
50
|
+
box-shadow var(--ui-duration-fast) var(--ui-ease-default);
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
--_bg: var(--ui-card-bg-hover, var(--ui-color-bg-subtle));
|
|
54
|
+
--_border-color: var(--ui-card-border-color-hover, var(--ui-color-border-strong));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
--_bg: var(--ui-card-bg-active, var(--ui-color-bg-muted));
|
|
59
|
+
}
|
|
40
60
|
}
|
|
41
61
|
}
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"cssVars": [
|
|
21
21
|
{
|
|
22
22
|
"name": "--ui-data-list-gap",
|
|
23
|
-
"default": "calc(
|
|
23
|
+
"default": "calc(var(--ui-unit) * 2"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "--ui-data-list-item-gap",
|
|
27
|
-
"default": "calc(
|
|
27
|
+
"default": "calc(var(--ui-unit) * 1"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "--ui-data-list-label-color",
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "data-list",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"title": "Data List",
|
|
5
|
+
"api": "./data-list.api.json",
|
|
6
|
+
"sections": [
|
|
7
|
+
{
|
|
8
|
+
"title": "Default",
|
|
9
|
+
"examples": [
|
|
10
|
+
{
|
|
11
|
+
"items": [
|
|
12
|
+
{
|
|
13
|
+
"tag": "dl",
|
|
14
|
+
"class": "ui-data-list",
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"tag": "div",
|
|
18
|
+
"class": "ui-data-list__item",
|
|
19
|
+
"children": [
|
|
20
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Name" },
|
|
21
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "John Doe" }
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"tag": "div",
|
|
26
|
+
"class": "ui-data-list__item",
|
|
27
|
+
"children": [
|
|
28
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Email" },
|
|
29
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "john@example.com" }
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"tag": "div",
|
|
34
|
+
"class": "ui-data-list__item",
|
|
35
|
+
"children": [
|
|
36
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Role" },
|
|
37
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Administrator" }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Horizontal Layout",
|
|
48
|
+
"description": "Side-by-side label and value",
|
|
49
|
+
"examples": [
|
|
50
|
+
{
|
|
51
|
+
"items": [
|
|
52
|
+
{
|
|
53
|
+
"tag": "dl",
|
|
54
|
+
"class": "ui-data-list ui-data-list--horizontal",
|
|
55
|
+
"children": [
|
|
56
|
+
{
|
|
57
|
+
"tag": "div",
|
|
58
|
+
"class": "ui-data-list__item",
|
|
59
|
+
"children": [
|
|
60
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Status" },
|
|
61
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Active" }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"tag": "div",
|
|
66
|
+
"class": "ui-data-list__item",
|
|
67
|
+
"children": [
|
|
68
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Created" },
|
|
69
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Dec 8, 2025" }
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"tag": "div",
|
|
74
|
+
"class": "ui-data-list__item",
|
|
75
|
+
"children": [
|
|
76
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Updated" },
|
|
77
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Dec 8, 2025" }
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"title": "Divided",
|
|
88
|
+
"description": "With separator lines between items",
|
|
89
|
+
"examples": [
|
|
90
|
+
{
|
|
91
|
+
"items": [
|
|
92
|
+
{
|
|
93
|
+
"tag": "dl",
|
|
94
|
+
"class": "ui-data-list ui-data-list--divided",
|
|
95
|
+
"children": [
|
|
96
|
+
{
|
|
97
|
+
"tag": "div",
|
|
98
|
+
"class": "ui-data-list__item",
|
|
99
|
+
"children": [
|
|
100
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Order ID" },
|
|
101
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "#12345" }
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"tag": "div",
|
|
106
|
+
"class": "ui-data-list__item",
|
|
107
|
+
"children": [
|
|
108
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Total" },
|
|
109
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "$99.00" }
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"tag": "div",
|
|
114
|
+
"class": "ui-data-list__item",
|
|
115
|
+
"children": [
|
|
116
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Payment" },
|
|
117
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Credit Card" }
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"title": "Striped",
|
|
128
|
+
"description": "Alternating background for readability",
|
|
129
|
+
"examples": [
|
|
130
|
+
{
|
|
131
|
+
"items": [
|
|
132
|
+
{
|
|
133
|
+
"tag": "dl",
|
|
134
|
+
"class": "ui-data-list ui-data-list--striped",
|
|
135
|
+
"children": [
|
|
136
|
+
{
|
|
137
|
+
"tag": "div",
|
|
138
|
+
"class": "ui-data-list__item",
|
|
139
|
+
"children": [
|
|
140
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "CPU" },
|
|
141
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Intel i7" }
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"tag": "div",
|
|
146
|
+
"class": "ui-data-list__item",
|
|
147
|
+
"children": [
|
|
148
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Memory" },
|
|
149
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "16 GB" }
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"tag": "div",
|
|
154
|
+
"class": "ui-data-list__item",
|
|
155
|
+
"children": [
|
|
156
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Storage" },
|
|
157
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "512 GB SSD" }
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"tag": "div",
|
|
162
|
+
"class": "ui-data-list__item",
|
|
163
|
+
"children": [
|
|
164
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Display" },
|
|
165
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "14\" Retina" }
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"title": "Sizes",
|
|
176
|
+
"examples": [
|
|
177
|
+
{
|
|
178
|
+
"items": [
|
|
179
|
+
{
|
|
180
|
+
"tag": "dl",
|
|
181
|
+
"class": "ui-data-list ui-data-list--sm",
|
|
182
|
+
"children": [
|
|
183
|
+
{
|
|
184
|
+
"tag": "div",
|
|
185
|
+
"class": "ui-data-list__item",
|
|
186
|
+
"children": [
|
|
187
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Small" },
|
|
188
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Compact display" }
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"layout": "column"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"items": [
|
|
198
|
+
{
|
|
199
|
+
"tag": "dl",
|
|
200
|
+
"class": "ui-data-list",
|
|
201
|
+
"children": [
|
|
202
|
+
{
|
|
203
|
+
"tag": "div",
|
|
204
|
+
"class": "ui-data-list__item",
|
|
205
|
+
"children": [
|
|
206
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Default" },
|
|
207
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Standard display" }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"layout": "column"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"items": [
|
|
217
|
+
{
|
|
218
|
+
"tag": "dl",
|
|
219
|
+
"class": "ui-data-list ui-data-list--lg",
|
|
220
|
+
"children": [
|
|
221
|
+
{
|
|
222
|
+
"tag": "div",
|
|
223
|
+
"class": "ui-data-list__item",
|
|
224
|
+
"children": [
|
|
225
|
+
{ "tag": "dt", "class": "ui-data-list__label", "text": "Large" },
|
|
226
|
+
{ "tag": "dd", "class": "ui-data-list__value", "text": "Spacious display" }
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"layout": "column"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"customization": [
|
|
238
|
+
{
|
|
239
|
+
"token": "--ui-data-list-gap",
|
|
240
|
+
"default": "calc(var(--ui-unit) * 2)",
|
|
241
|
+
"description": "Gap between items"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"token": "--ui-data-list-item-gap",
|
|
245
|
+
"default": "var(--ui-unit)",
|
|
246
|
+
"description": "Gap between label and value"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"token": "--ui-data-list-label-color",
|
|
250
|
+
"default": "var(--ui-color-text-muted)",
|
|
251
|
+
"description": "Label color"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"token": "--ui-data-list-value-color",
|
|
255
|
+
"default": "var(--ui-color-text)",
|
|
256
|
+
"description": "Value color"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
Binary file
|