@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
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "password-input",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"title": "Password Input",
|
|
5
|
+
"description": "Secure password field with toggle visibility button.",
|
|
6
|
+
"api": "./password-input.api.json",
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default",
|
|
10
|
+
"examples": [
|
|
11
|
+
{
|
|
12
|
+
"items": [
|
|
13
|
+
{
|
|
14
|
+
"tag": "div",
|
|
15
|
+
"class": "ui-password-input",
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"tag": "input",
|
|
19
|
+
"class": "ui-password-input__field",
|
|
20
|
+
"attrs": { "type": "password", "placeholder": "Enter password" }
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"tag": "button",
|
|
24
|
+
"class": "ui-password-input__toggle",
|
|
25
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
26
|
+
"children": [
|
|
27
|
+
{
|
|
28
|
+
"tag": "svg",
|
|
29
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"tag": "path",
|
|
33
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
34
|
+
},
|
|
35
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"code": "<div class=\"ui-password-input\">\n <input class=\"ui-password-input__field\" type=\"password\" placeholder=\"Enter password\">\n <button class=\"ui-password-input__toggle\" aria-label=\"Show password\"><svg>...</svg></button>\n</div>"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Sizes",
|
|
49
|
+
"examples": [
|
|
50
|
+
{
|
|
51
|
+
"layout": "column",
|
|
52
|
+
"items": [
|
|
53
|
+
{
|
|
54
|
+
"tag": "div",
|
|
55
|
+
"class": "ui-password-input ui-password-input--sm",
|
|
56
|
+
"children": [
|
|
57
|
+
{
|
|
58
|
+
"tag": "input",
|
|
59
|
+
"class": "ui-password-input__field",
|
|
60
|
+
"attrs": { "type": "password", "placeholder": "Small" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tag": "button",
|
|
64
|
+
"class": "ui-password-input__toggle",
|
|
65
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
66
|
+
"children": [
|
|
67
|
+
{
|
|
68
|
+
"tag": "svg",
|
|
69
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
70
|
+
"children": [
|
|
71
|
+
{
|
|
72
|
+
"tag": "path",
|
|
73
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
74
|
+
},
|
|
75
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"tag": "div",
|
|
84
|
+
"class": "ui-password-input",
|
|
85
|
+
"children": [
|
|
86
|
+
{
|
|
87
|
+
"tag": "input",
|
|
88
|
+
"class": "ui-password-input__field",
|
|
89
|
+
"attrs": { "type": "password", "placeholder": "Default" }
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"tag": "button",
|
|
93
|
+
"class": "ui-password-input__toggle",
|
|
94
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
95
|
+
"children": [
|
|
96
|
+
{
|
|
97
|
+
"tag": "svg",
|
|
98
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
99
|
+
"children": [
|
|
100
|
+
{
|
|
101
|
+
"tag": "path",
|
|
102
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
103
|
+
},
|
|
104
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"tag": "div",
|
|
113
|
+
"class": "ui-password-input ui-password-input--lg",
|
|
114
|
+
"children": [
|
|
115
|
+
{
|
|
116
|
+
"tag": "input",
|
|
117
|
+
"class": "ui-password-input__field",
|
|
118
|
+
"attrs": { "type": "password", "placeholder": "Large" }
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"tag": "button",
|
|
122
|
+
"class": "ui-password-input__toggle",
|
|
123
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
124
|
+
"children": [
|
|
125
|
+
{
|
|
126
|
+
"tag": "svg",
|
|
127
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
128
|
+
"children": [
|
|
129
|
+
{
|
|
130
|
+
"tag": "path",
|
|
131
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
132
|
+
},
|
|
133
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"code": "<div class=\"ui-password-input ui-password-input--sm\">...</div>\n<div class=\"ui-password-input\">...</div>\n<div class=\"ui-password-input ui-password-input--lg\">...</div>"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"title": "States",
|
|
147
|
+
"examples": [
|
|
148
|
+
{
|
|
149
|
+
"layout": "column",
|
|
150
|
+
"items": [
|
|
151
|
+
{
|
|
152
|
+
"tag": "div",
|
|
153
|
+
"class": "ui-password-input ui-password-input--error",
|
|
154
|
+
"children": [
|
|
155
|
+
{
|
|
156
|
+
"tag": "input",
|
|
157
|
+
"class": "ui-password-input__field",
|
|
158
|
+
"attrs": { "type": "password", "value": "wrongpass" }
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"tag": "button",
|
|
162
|
+
"class": "ui-password-input__toggle",
|
|
163
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
164
|
+
"children": [
|
|
165
|
+
{
|
|
166
|
+
"tag": "svg",
|
|
167
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
168
|
+
"children": [
|
|
169
|
+
{
|
|
170
|
+
"tag": "path",
|
|
171
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
172
|
+
},
|
|
173
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"tag": "div",
|
|
182
|
+
"class": "ui-password-input ui-password-input--success",
|
|
183
|
+
"children": [
|
|
184
|
+
{
|
|
185
|
+
"tag": "input",
|
|
186
|
+
"class": "ui-password-input__field",
|
|
187
|
+
"attrs": { "type": "password", "value": "correctpass" }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"tag": "button",
|
|
191
|
+
"class": "ui-password-input__toggle",
|
|
192
|
+
"attrs": { "type": "button", "aria-label": "Show password" },
|
|
193
|
+
"children": [
|
|
194
|
+
{
|
|
195
|
+
"tag": "svg",
|
|
196
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
197
|
+
"children": [
|
|
198
|
+
{
|
|
199
|
+
"tag": "path",
|
|
200
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
201
|
+
},
|
|
202
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"tag": "div",
|
|
211
|
+
"class": "ui-password-input ui-password-input--disabled",
|
|
212
|
+
"children": [
|
|
213
|
+
{
|
|
214
|
+
"tag": "input",
|
|
215
|
+
"class": "ui-password-input__field",
|
|
216
|
+
"attrs": { "type": "password", "placeholder": "Disabled", "disabled": "" }
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"tag": "button",
|
|
220
|
+
"class": "ui-password-input__toggle",
|
|
221
|
+
"attrs": { "type": "button", "aria-label": "Show password", "disabled": "" },
|
|
222
|
+
"children": [
|
|
223
|
+
{
|
|
224
|
+
"tag": "svg",
|
|
225
|
+
"attrs": { "viewBox": "0 0 24 24" },
|
|
226
|
+
"children": [
|
|
227
|
+
{
|
|
228
|
+
"tag": "path",
|
|
229
|
+
"attrs": { "d": "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }
|
|
230
|
+
},
|
|
231
|
+
{ "tag": "circle", "attrs": { "cx": "12", "cy": "12", "r": "3" } }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"code": "<div class=\"ui-password-input ui-password-input--error\">...</div>\n<div class=\"ui-password-input ui-password-input--success\">...</div>\n<div class=\"ui-password-input ui-password-input--disabled\">...</div>"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"customization": [
|
|
245
|
+
{
|
|
246
|
+
"token": "--ui-password-input-height",
|
|
247
|
+
"default": "var(--ui-row-2)",
|
|
248
|
+
"description": "Default height"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"token": "--ui-password-input-height-sm",
|
|
252
|
+
"default": "calc(var(--ui-row) * 1.5)",
|
|
253
|
+
"description": "Small height"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"token": "--ui-password-input-height-lg",
|
|
257
|
+
"default": "calc(var(--ui-row) * 2.5)",
|
|
258
|
+
"description": "Large height"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"token": "--ui-password-input-bg",
|
|
262
|
+
"default": "var(--ui-color-bg)",
|
|
263
|
+
"description": "Background color"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"token": "--ui-password-input-border-color",
|
|
267
|
+
"default": "var(--ui-color-border-strong)",
|
|
268
|
+
"description": "Border color"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"token": "--ui-password-input-toggle-color",
|
|
272
|
+
"default": "var(--ui-color-text-muted)",
|
|
273
|
+
"description": "Toggle button color"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { expect, test } from '@playwright/test';
|
|
3
|
+
import { saveForLostPixel, setupVisualTestFromDocs, validateGridRhythm } from '../../../testing';
|
|
4
|
+
|
|
5
|
+
const DOCS_PATH = resolve(__dirname, 'password-input.docs.json');
|
|
6
|
+
|
|
7
|
+
test.describe('password-input visual regression', () => {
|
|
8
|
+
test('all variations', async ({ page }) => {
|
|
9
|
+
await setupVisualTestFromDocs(page, DOCS_PATH);
|
|
10
|
+
await validateGridRhythm(page, 'password-input');
|
|
11
|
+
await saveForLostPixel(page, 'password-input');
|
|
12
|
+
await expect(page.locator('body')).toHaveScreenshot('password-input-visual.png');
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component radio
|
|
4
4
|
// @element input
|
|
@@ -18,11 +18,16 @@
|
|
|
18
18
|
--_size: var(--ui-radio-size-lg, calc(#{t.$unit} * 3));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// @modifier
|
|
21
|
+
// @modifier state
|
|
22
22
|
.radio--error {
|
|
23
23
|
--_border-color: var(--ui-radio-error-border, var(--ui-color-danger, #{t.$color-danger}));
|
|
24
24
|
--_border-color-focus: var(--ui-radio-error-border, var(--ui-color-danger, #{t.$color-danger}));
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
.radio--success {
|
|
28
|
+
--_border-color: var(--ui-radio-success-border, var(--ui-color-success, #{t.$color-success}));
|
|
29
|
+
--_border-color-focus: var(--ui-radio-success-border, var(--ui-color-success, #{t.$color-success}));
|
|
30
|
+
}
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
@layer components.styles {
|
|
@@ -74,7 +79,9 @@
|
|
|
74
79
|
|
|
75
80
|
&:focus-visible {
|
|
76
81
|
border-color: var(--_border-color-focus);
|
|
77
|
-
outline:
|
|
82
|
+
outline: var(--ui-border-width-md, #{t.$border-width-md}) solid transparent;
|
|
83
|
+
outline-offset: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
84
|
+
|
|
78
85
|
box-shadow: 0 0 0 var(--ui-border-width-md, #{t.$border-width-md}) var(--ui-color-focus, #{t.$color-focus});
|
|
79
86
|
}
|
|
80
87
|
|
|
@@ -89,7 +96,7 @@
|
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
&:disabled {
|
|
92
|
-
opacity: 0.5;
|
|
99
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
93
100
|
cursor: not-allowed;
|
|
94
101
|
}
|
|
95
102
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"size": {
|
|
6
6
|
"values": ["sm", "lg"]
|
|
7
7
|
},
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"state": {
|
|
9
|
+
"values": ["error", "success"]
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"cssVars": [
|
|
13
13
|
{
|
|
14
14
|
"name": "--ui-radio-size",
|
|
15
|
-
"default": "calc(
|
|
15
|
+
"default": "calc(var(--ui-unit) * 2"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "--ui-radio-bg",
|
|
@@ -36,11 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "--ui-radio-size-lg",
|
|
39
|
-
"default": "calc(
|
|
39
|
+
"default": "calc(var(--ui-unit) * 3"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "--ui-radio-error-border",
|
|
43
43
|
"default": "var(--ui-color-danger)"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "--ui-radio-success-border",
|
|
47
|
+
"default": "var(--ui-color-success)"
|
|
44
48
|
}
|
|
45
49
|
]
|
|
46
50
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"title": "Default",
|
|
10
10
|
"examples": [
|
|
11
11
|
{
|
|
12
|
-
"layout": "
|
|
12
|
+
"layout": "row",
|
|
13
13
|
"items": [
|
|
14
14
|
{ "tag": "input", "class": "ui-radio", "attrs": { "type": "radio", "name": "demo1" } },
|
|
15
15
|
{
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"title": "Sizes",
|
|
27
27
|
"examples": [
|
|
28
28
|
{
|
|
29
|
-
"layout": "
|
|
29
|
+
"layout": "row",
|
|
30
30
|
"items": [
|
|
31
31
|
{
|
|
32
32
|
"tag": "input",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"title": "States",
|
|
53
53
|
"examples": [
|
|
54
54
|
{
|
|
55
|
-
"layout": "
|
|
55
|
+
"layout": "row",
|
|
56
56
|
"items": [
|
|
57
57
|
{
|
|
58
58
|
"tag": "input",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"title": "
|
|
83
|
+
"title": "Validation States",
|
|
84
84
|
"examples": [
|
|
85
85
|
{
|
|
86
|
-
"layout": "
|
|
86
|
+
"layout": "row",
|
|
87
87
|
"items": [
|
|
88
88
|
{
|
|
89
89
|
"tag": "input",
|
|
@@ -94,9 +94,19 @@
|
|
|
94
94
|
"tag": "input",
|
|
95
95
|
"class": "ui-radio ui-radio--error",
|
|
96
96
|
"attrs": { "type": "radio", "name": "error2", "checked": "" }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"tag": "input",
|
|
100
|
+
"class": "ui-radio ui-radio--success",
|
|
101
|
+
"attrs": { "type": "radio", "name": "success1" }
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tag": "input",
|
|
105
|
+
"class": "ui-radio ui-radio--success",
|
|
106
|
+
"attrs": { "type": "radio", "name": "success2", "checked": "" }
|
|
97
107
|
}
|
|
98
108
|
],
|
|
99
|
-
"code": "<input type=\"radio\" class=\"ui-radio ui-radio--error\">\n<input type=\"radio\" class=\"ui-radio ui-radio--error\" checked>"
|
|
109
|
+
"code": "<input type=\"radio\" class=\"ui-radio ui-radio--error\">\n<input type=\"radio\" class=\"ui-radio ui-radio--error\" checked>\n<input type=\"radio\" class=\"ui-radio ui-radio--success\">\n<input type=\"radio\" class=\"ui-radio ui-radio--success\" checked>"
|
|
100
110
|
}
|
|
101
111
|
]
|
|
102
112
|
},
|
|
@@ -104,8 +114,22 @@
|
|
|
104
114
|
"title": "With Label",
|
|
105
115
|
"examples": [
|
|
106
116
|
{
|
|
107
|
-
"
|
|
108
|
-
|
|
117
|
+
"items": [
|
|
118
|
+
{
|
|
119
|
+
"tag": "label",
|
|
120
|
+
"class": "ui-row",
|
|
121
|
+
"attrs": { "style": "gap: var(--ui-space-1); cursor: pointer;" },
|
|
122
|
+
"children": [
|
|
123
|
+
{
|
|
124
|
+
"tag": "input",
|
|
125
|
+
"class": "ui-radio",
|
|
126
|
+
"attrs": { "type": "radio", "name": "labeled" }
|
|
127
|
+
},
|
|
128
|
+
{ "tag": "span", "text": "Option one" }
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"code": "<label class=\"ui-row\">\n <input type=\"radio\" class=\"ui-radio\" name=\"group\">\n <span>Option one</span>\n</label>"
|
|
109
133
|
}
|
|
110
134
|
]
|
|
111
135
|
},
|
|
@@ -113,8 +137,66 @@
|
|
|
113
137
|
"title": "Radio Group",
|
|
114
138
|
"examples": [
|
|
115
139
|
{
|
|
116
|
-
"
|
|
117
|
-
|
|
140
|
+
"items": [
|
|
141
|
+
{
|
|
142
|
+
"tag": "fieldset",
|
|
143
|
+
"attrs": { "style": "border: none; padding: 0; margin: 0;" },
|
|
144
|
+
"children": [
|
|
145
|
+
{
|
|
146
|
+
"tag": "legend",
|
|
147
|
+
"attrs": { "style": "font-weight: 600; margin-block-end: var(--ui-space-1);" },
|
|
148
|
+
"text": "Choose an option"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"tag": "div",
|
|
152
|
+
"class": "ui-column",
|
|
153
|
+
"attrs": { "style": "--column-gap: var(--ui-space-1);" },
|
|
154
|
+
"children": [
|
|
155
|
+
{
|
|
156
|
+
"tag": "label",
|
|
157
|
+
"class": "ui-row",
|
|
158
|
+
"attrs": { "style": "gap: var(--ui-space-1); cursor: pointer;" },
|
|
159
|
+
"children": [
|
|
160
|
+
{
|
|
161
|
+
"tag": "input",
|
|
162
|
+
"class": "ui-radio",
|
|
163
|
+
"attrs": { "type": "radio", "name": "group-demo", "checked": "" }
|
|
164
|
+
},
|
|
165
|
+
{ "tag": "span", "text": "Option A" }
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"tag": "label",
|
|
170
|
+
"class": "ui-row",
|
|
171
|
+
"attrs": { "style": "gap: var(--ui-space-1); cursor: pointer;" },
|
|
172
|
+
"children": [
|
|
173
|
+
{
|
|
174
|
+
"tag": "input",
|
|
175
|
+
"class": "ui-radio",
|
|
176
|
+
"attrs": { "type": "radio", "name": "group-demo" }
|
|
177
|
+
},
|
|
178
|
+
{ "tag": "span", "text": "Option B" }
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"tag": "label",
|
|
183
|
+
"class": "ui-row",
|
|
184
|
+
"attrs": { "style": "gap: var(--ui-space-1); cursor: pointer;" },
|
|
185
|
+
"children": [
|
|
186
|
+
{
|
|
187
|
+
"tag": "input",
|
|
188
|
+
"class": "ui-radio",
|
|
189
|
+
"attrs": { "type": "radio", "name": "group-demo" }
|
|
190
|
+
},
|
|
191
|
+
{ "tag": "span", "text": "Option C" }
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"code": "<fieldset>\n <legend>Choose an option</legend>\n <div class=\"ui-column\">\n <label class=\"ui-row\">\n <input type=\"radio\" class=\"ui-radio\" name=\"group\" checked>\n <span>Option A</span>\n </label>\n <label class=\"ui-row\">\n <input type=\"radio\" class=\"ui-radio\" name=\"group\">\n <span>Option B</span>\n </label>\n </div>\n</fieldset>"
|
|
118
200
|
}
|
|
119
201
|
]
|
|
120
202
|
}
|
|
@@ -122,12 +204,12 @@
|
|
|
122
204
|
"customization": [
|
|
123
205
|
{
|
|
124
206
|
"token": "--ui-radio-size",
|
|
125
|
-
"default": "calc(var(--unit) * 2)",
|
|
207
|
+
"default": "calc(var(--ui-unit) * 2)",
|
|
126
208
|
"description": "Default size"
|
|
127
209
|
},
|
|
128
210
|
{
|
|
129
211
|
"token": "--ui-radio-size-lg",
|
|
130
|
-
"default": "calc(var(--unit) * 3)",
|
|
212
|
+
"default": "calc(var(--ui-unit) * 3)",
|
|
131
213
|
"description": "Large size"
|
|
132
214
|
},
|
|
133
215
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component radio-group
|
|
4
4
|
// @element fieldset
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.radio-group__item:has(:disabled) {
|
|
67
|
-
opacity: 0.5;
|
|
67
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
68
68
|
cursor: not-allowed;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
// Disabled group
|
|
79
79
|
.radio-group:disabled,
|
|
80
80
|
.radio-group[aria-disabled='true'] {
|
|
81
|
-
opacity: 0.5;
|
|
81
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
82
82
|
cursor: not-allowed;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component search-input
|
|
4
4
|
// @element div
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
// Disabled
|
|
66
66
|
&--disabled,
|
|
67
67
|
&:has(.search-input__field:disabled) {
|
|
68
|
-
opacity: 0.5;
|
|
68
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
69
69
|
cursor: not-allowed;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../../
|
|
1
|
+
@use '../../../config/tokens/variables' as t;
|
|
2
2
|
|
|
3
3
|
// @component select
|
|
4
4
|
// @element select
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--_bg: var(--ui-select-bg, var(--ui-color-bg, #{t.$color-bg}));
|
|
13
13
|
--_border-color: var(--ui-select-border-color, var(--ui-color-border-strong, #{t.$color-border-strong}));
|
|
14
14
|
--_border-color-focus: var(--ui-select-border-color-focus, var(--ui-color-primary, #{t.$color-primary}));
|
|
15
|
-
--
|
|
15
|
+
--_color: var(--ui-select-color, var(--ui-color-text, #{t.$color-text}));
|
|
16
16
|
--_icon-color: var(--ui-select-icon-color, var(--ui-color-text-muted, #{t.$color-text-muted}));
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
font-family: inherit;
|
|
65
65
|
font-size: var(--_font-size);
|
|
66
66
|
line-height: 1;
|
|
67
|
-
color: var(--
|
|
67
|
+
color: var(--_color);
|
|
68
68
|
|
|
69
69
|
background-color: var(--_bg);
|
|
70
70
|
// Chevron down arrow
|
|
@@ -82,20 +82,22 @@
|
|
|
82
82
|
background-position: right var(--ui-space-half, #{t.$space-0}) center;
|
|
83
83
|
background-size: calc(var(--_height) * 0.5);
|
|
84
84
|
|
|
85
|
-
&:hover:not(:disabled, :focus) {
|
|
85
|
+
&:hover:not(:disabled, :focus-visible) {
|
|
86
86
|
border-color: var(--ui-color-border-strong, #{t.$color-border-strong});
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
&:focus,
|
|
89
|
+
&:focus-visible,
|
|
90
90
|
&--focus {
|
|
91
91
|
border-color: var(--_border-color-focus);
|
|
92
|
-
outline:
|
|
92
|
+
outline: var(--ui-border-width-md, #{t.$border-width-md}) solid transparent;
|
|
93
|
+
outline-offset: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
94
|
+
|
|
93
95
|
box-shadow: 0 0 0 var(--ui-border-width-md, #{t.$border-width-md}) var(--ui-color-focus, #{t.$color-focus});
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
&:disabled,
|
|
97
99
|
&--disabled {
|
|
98
|
-
opacity: 0.5;
|
|
100
|
+
opacity: var(--ui-opacity-disabled, 0.5);
|
|
99
101
|
cursor: not-allowed;
|
|
100
102
|
}
|
|
101
103
|
|
|
Binary file
|