@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
|
@@ -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
|
|
@@ -11,7 +11,14 @@
|
|
|
11
11
|
"api": "./icon.api.json",
|
|
12
12
|
"examples": [
|
|
13
13
|
{
|
|
14
|
-
"
|
|
14
|
+
"items": [
|
|
15
|
+
{
|
|
16
|
+
"tag": "svg",
|
|
17
|
+
"class": "ui-icon",
|
|
18
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
19
|
+
"innerHTML": "<path d=\"M12 5v14M5 12h14\"/>"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
15
22
|
}
|
|
16
23
|
]
|
|
17
24
|
},
|
|
@@ -21,7 +28,38 @@
|
|
|
21
28
|
"api": "./icon.api.json",
|
|
22
29
|
"examples": [
|
|
23
30
|
{
|
|
24
|
-
"
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"tag": "div",
|
|
34
|
+
"class": "ui-row ui-row--gap-2",
|
|
35
|
+
"children": [
|
|
36
|
+
{
|
|
37
|
+
"tag": "svg",
|
|
38
|
+
"class": "ui-icon",
|
|
39
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
40
|
+
"innerHTML": "<path d=\"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><polyline points=\"9 22 9 12 15 12 15 22\"/>"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"tag": "svg",
|
|
44
|
+
"class": "ui-icon",
|
|
45
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
46
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"tag": "svg",
|
|
50
|
+
"class": "ui-icon",
|
|
51
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
52
|
+
"innerHTML": "<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/>"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"tag": "svg",
|
|
56
|
+
"class": "ui-icon",
|
|
57
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
58
|
+
"innerHTML": "<path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/>"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
25
63
|
}
|
|
26
64
|
]
|
|
27
65
|
},
|
|
@@ -30,74 +68,74 @@
|
|
|
30
68
|
"description": "Scale icons from extra small to extra large.",
|
|
31
69
|
"examples": [
|
|
32
70
|
{
|
|
33
|
-
"layout": "
|
|
71
|
+
"layout": "row",
|
|
34
72
|
"items": [
|
|
35
73
|
{
|
|
36
74
|
"tag": "div",
|
|
37
|
-
"class": "ui-
|
|
75
|
+
"class": "ui-column",
|
|
38
76
|
"style": { "align-items": "center", "gap": "var(--ui-space-1)" },
|
|
39
77
|
"children": [
|
|
40
78
|
{
|
|
41
79
|
"tag": "svg",
|
|
42
80
|
"class": "ui-icon ui-icon--xs",
|
|
43
81
|
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
44
|
-
"
|
|
82
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
45
83
|
},
|
|
46
84
|
{ "tag": "small", "text": "xs" }
|
|
47
85
|
]
|
|
48
86
|
},
|
|
49
87
|
{
|
|
50
88
|
"tag": "div",
|
|
51
|
-
"class": "ui-
|
|
89
|
+
"class": "ui-column",
|
|
52
90
|
"style": { "align-items": "center", "gap": "var(--ui-space-1)" },
|
|
53
91
|
"children": [
|
|
54
92
|
{
|
|
55
93
|
"tag": "svg",
|
|
56
94
|
"class": "ui-icon ui-icon--sm",
|
|
57
95
|
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
58
|
-
"
|
|
96
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
59
97
|
},
|
|
60
98
|
{ "tag": "small", "text": "sm" }
|
|
61
99
|
]
|
|
62
100
|
},
|
|
63
101
|
{
|
|
64
102
|
"tag": "div",
|
|
65
|
-
"class": "ui-
|
|
103
|
+
"class": "ui-column",
|
|
66
104
|
"style": { "align-items": "center", "gap": "var(--ui-space-1)" },
|
|
67
105
|
"children": [
|
|
68
106
|
{
|
|
69
107
|
"tag": "svg",
|
|
70
108
|
"class": "ui-icon ui-icon--md",
|
|
71
109
|
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
72
|
-
"
|
|
110
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
73
111
|
},
|
|
74
112
|
{ "tag": "small", "text": "md" }
|
|
75
113
|
]
|
|
76
114
|
},
|
|
77
115
|
{
|
|
78
116
|
"tag": "div",
|
|
79
|
-
"class": "ui-
|
|
117
|
+
"class": "ui-column",
|
|
80
118
|
"style": { "align-items": "center", "gap": "var(--ui-space-1)" },
|
|
81
119
|
"children": [
|
|
82
120
|
{
|
|
83
121
|
"tag": "svg",
|
|
84
122
|
"class": "ui-icon ui-icon--lg",
|
|
85
123
|
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
86
|
-
"
|
|
124
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
87
125
|
},
|
|
88
126
|
{ "tag": "small", "text": "lg" }
|
|
89
127
|
]
|
|
90
128
|
},
|
|
91
129
|
{
|
|
92
130
|
"tag": "div",
|
|
93
|
-
"class": "ui-
|
|
131
|
+
"class": "ui-column",
|
|
94
132
|
"style": { "align-items": "center", "gap": "var(--ui-space-1)" },
|
|
95
133
|
"children": [
|
|
96
134
|
{
|
|
97
135
|
"tag": "svg",
|
|
98
136
|
"class": "ui-icon ui-icon--xl",
|
|
99
137
|
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
100
|
-
"
|
|
138
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
101
139
|
},
|
|
102
140
|
{ "tag": "small", "text": "xl" }
|
|
103
141
|
]
|
|
@@ -132,7 +170,7 @@
|
|
|
132
170
|
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
133
171
|
}
|
|
134
172
|
],
|
|
135
|
-
"layout": "
|
|
173
|
+
"layout": "row"
|
|
136
174
|
}
|
|
137
175
|
]
|
|
138
176
|
},
|
|
@@ -156,7 +194,7 @@
|
|
|
156
194
|
"innerHTML": "<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\"/>"
|
|
157
195
|
}
|
|
158
196
|
],
|
|
159
|
-
"layout": "
|
|
197
|
+
"layout": "row"
|
|
160
198
|
}
|
|
161
199
|
]
|
|
162
200
|
},
|
|
@@ -166,7 +204,14 @@
|
|
|
166
204
|
"api": "./icon.api.json",
|
|
167
205
|
"examples": [
|
|
168
206
|
{
|
|
169
|
-
"
|
|
207
|
+
"items": [
|
|
208
|
+
{
|
|
209
|
+
"tag": "svg",
|
|
210
|
+
"class": "ui-icon ui-icon--lg ui-icon--spin",
|
|
211
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
212
|
+
"innerHTML": "<path d=\"M21 12a9 9 0 1 1-6.219-8.56\"/>"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
170
215
|
}
|
|
171
216
|
]
|
|
172
217
|
},
|
|
@@ -176,7 +221,50 @@
|
|
|
176
221
|
"api": "./icon.api.json",
|
|
177
222
|
"examples": [
|
|
178
223
|
{
|
|
179
|
-
"
|
|
224
|
+
"items": [
|
|
225
|
+
{
|
|
226
|
+
"tag": "div",
|
|
227
|
+
"class": "ui-row ui-row--gap-2",
|
|
228
|
+
"children": [
|
|
229
|
+
{
|
|
230
|
+
"tag": "span",
|
|
231
|
+
"attrs": { "style": "color: var(--ui-color-primary)" },
|
|
232
|
+
"children": [
|
|
233
|
+
{
|
|
234
|
+
"tag": "svg",
|
|
235
|
+
"class": "ui-icon ui-icon--lg",
|
|
236
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
237
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"tag": "span",
|
|
243
|
+
"attrs": { "style": "color: var(--ui-color-success)" },
|
|
244
|
+
"children": [
|
|
245
|
+
{
|
|
246
|
+
"tag": "svg",
|
|
247
|
+
"class": "ui-icon ui-icon--lg",
|
|
248
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
249
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"tag": "span",
|
|
255
|
+
"attrs": { "style": "color: var(--ui-color-danger)" },
|
|
256
|
+
"children": [
|
|
257
|
+
{
|
|
258
|
+
"tag": "svg",
|
|
259
|
+
"class": "ui-icon ui-icon--lg",
|
|
260
|
+
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
261
|
+
"innerHTML": "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
]
|
|
180
268
|
}
|
|
181
269
|
]
|
|
182
270
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component icon
|
|
4
4
|
// @element svg
|
|
@@ -63,4 +63,10 @@
|
|
|
63
63
|
transform: rotate(360deg);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
@media (prefers-reduced-motion: reduce) {
|
|
68
|
+
.icon--spin {
|
|
69
|
+
animation: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
66
72
|
}
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "--ui-image-size-sm",
|
|
29
|
-
"default": "calc(var(--unit) * 12)"
|
|
29
|
+
"default": "calc(var(--ui-unit) * 12)"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "--ui-image-size-md",
|
|
33
|
-
"default": "calc(var(--unit) * 24)"
|
|
33
|
+
"default": "calc(var(--ui-unit) * 24)"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "--ui-image-size-lg",
|
|
37
|
-
"default": "calc(var(--unit) * 40)"
|
|
37
|
+
"default": "calc(var(--ui-unit) * 40)"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "--ui-image-size-xl",
|
|
41
|
-
"default": "calc(var(--unit) * 60)"
|
|
41
|
+
"default": "calc(var(--ui-unit) * 60)"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "--ui-image-bg",
|