@buffercreations/levelsui 0.1.0 → 0.1.3
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/01. Elements/actions/controls/button/button.definition.json +38 -4
- package/01. Elements/actions/controls/button/docs/README.md +67 -0
- package/01. Elements/actions/controls/button/{api.json → docs/api.json } +14 -5
- package/01. Elements/actions/controls/button/examples/contexts/code.html +1 -3
- package/01. Elements/actions/controls/button/examples/contexts/preview.html +8 -2
- package/01. Elements/actions/controls/button/examples/icon-only/code.html +3 -0
- package/01. Elements/actions/controls/button/examples/icon-only/preview.html +17 -0
- package/01. Elements/actions/controls/button/examples/icons/code.html +2 -4
- package/01. Elements/actions/controls/button/examples/icons/preview.html +12 -3
- package/01. Elements/actions/controls/button/examples/index.json +9 -2
- package/01. Elements/actions/controls/button/examples/native-default/code.html +0 -8
- package/01. Elements/actions/controls/button/examples/native-default/preview.html +0 -4
- package/01. Elements/actions/controls/button/examples/states/code.html +1 -1
- package/01. Elements/actions/controls/button/examples/states/preview.html +2 -2
- package/01. Elements/actions/controls/button/src/button.scss +215 -0
- package/01. Elements/actions/controls/button-lumen-shift/button-lumen-shift.definition.json +95 -0
- package/01. Elements/actions/controls/button-lumen-shift/docs/README.md +85 -0
- package/01. Elements/actions/controls/button-lumen-shift/docs/api.json +134 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/basic/code.html +3 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/basic/preview.html +3 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/contexts/code.html +1 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/contexts/preview.html +9 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/icon-only/code.html +3 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/icon-only/preview.html +14 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/icons/code.html +4 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/icons/preview.html +14 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/index.json +66 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/links/code.html +3 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/links/preview.html +3 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/sizes/code.html +1 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/sizes/preview.html +6 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/states/code.html +1 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/states/preview.html +4 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/treatments/code.html +1 -0
- package/01. Elements/actions/controls/button-lumen-shift/examples/treatments/preview.html +5 -0
- package/01. Elements/actions/controls/button-lumen-shift/src/button-lumen-shift.scss +543 -0
- package/01. Elements/feedback/tooltip/docs/README.md +49 -0
- package/01. Elements/feedback/tooltip/docs/api.json +78 -0
- package/01. Elements/feedback/tooltip/examples/arrow/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/arrow/preview.html +4 -0
- package/01. Elements/feedback/tooltip/examples/comfortable/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/comfortable/preview.html +4 -0
- package/01. Elements/feedback/tooltip/examples/default/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/default/preview.html +4 -0
- package/01. Elements/feedback/tooltip/examples/delays/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/delays/preview.html +4 -0
- package/01. Elements/feedback/tooltip/examples/disabled/code.html +6 -0
- package/01. Elements/feedback/tooltip/examples/disabled/preview.html +6 -0
- package/01. Elements/feedback/tooltip/examples/index.json +66 -0
- package/01. Elements/feedback/tooltip/examples/multiple/code.html +8 -0
- package/01. Elements/feedback/tooltip/examples/multiple/preview.html +8 -0
- package/01. Elements/feedback/tooltip/examples/shortcut/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/shortcut/preview.html +4 -0
- package/01. Elements/feedback/tooltip/examples/sides/code.html +4 -0
- package/01. Elements/feedback/tooltip/examples/sides/preview.html +16 -0
- package/01. Elements/feedback/tooltip/src/tooltip.js +233 -0
- package/01. Elements/feedback/tooltip/src/tooltip.scss +117 -0
- package/01. Elements/feedback/tooltip/tooltip.definition.json +42 -0
- package/01. Elements/forms/selection/checkbox/checkbox.definition.json +65 -0
- package/01. Elements/forms/selection/checkbox/docs/README.md +46 -0
- package/01. Elements/forms/selection/checkbox/docs/api.json +102 -0
- package/01. Elements/forms/selection/checkbox/examples/basic/code.html +7 -0
- package/01. Elements/forms/selection/checkbox/examples/basic/preview.html +4 -0
- package/01. Elements/forms/selection/checkbox/examples/description/code.html +7 -0
- package/01. Elements/forms/selection/checkbox/examples/description/preview.html +7 -0
- package/01. Elements/forms/selection/checkbox/examples/group/code.html +9 -0
- package/01. Elements/forms/selection/checkbox/examples/group/preview.html +6 -0
- package/01. Elements/forms/selection/checkbox/examples/index.json +44 -0
- package/01. Elements/forms/selection/checkbox/examples/sizes/code.html +6 -0
- package/01. Elements/forms/selection/checkbox/examples/sizes/preview.html +5 -0
- package/01. Elements/forms/selection/checkbox/examples/states/code.html +6 -0
- package/01. Elements/forms/selection/checkbox/examples/states/preview.html +7 -0
- package/01. Elements/forms/selection/checkbox/examples/table/code.html +1 -0
- package/01. Elements/forms/selection/checkbox/examples/table/preview.html +8 -0
- package/01. Elements/forms/selection/checkbox/src/checkbox.scss +157 -0
- package/01. Elements/forms/selection/select/docs/README.md +37 -0
- package/01. Elements/forms/selection/select/docs/api.json +105 -0
- package/01. Elements/forms/selection/select/examples/default/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/default/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/disabled/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/disabled/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/index.json +74 -0
- package/01. Elements/forms/selection/select/examples/invalid/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/invalid/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/leading-avatar/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/leading-avatar/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/leading-icon/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/leading-icon/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/native/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/native/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/search/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/search/preview.html +12 -0
- package/01. Elements/forms/selection/select/examples/sizes/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/sizes/preview.html +36 -0
- package/01. Elements/forms/selection/select/examples/status-dot/code.html +12 -0
- package/01. Elements/forms/selection/select/examples/status-dot/preview.html +12 -0
- package/01. Elements/forms/selection/select/select.definition.json +69 -0
- package/01. Elements/forms/selection/select/src/select.js +477 -0
- package/01. Elements/forms/selection/select/src/select.scss +312 -0
- package/01. Elements/media/identity/avatar/avatar.definition.json +48 -5
- package/01. Elements/media/identity/avatar/docs/README.md +61 -0
- package/01. Elements/media/identity/avatar/docs/api.json +96 -0
- package/01. Elements/media/identity/avatar/examples/badge/code.html +7 -0
- package/01. Elements/media/identity/avatar/examples/badge/preview.html +7 -0
- package/01. Elements/media/identity/avatar/examples/badge-icon/code.html +7 -0
- package/01. Elements/media/identity/avatar/examples/badge-icon/preview.html +7 -0
- package/01. Elements/media/identity/avatar/examples/basic/code.html +6 -0
- package/01. Elements/media/identity/avatar/examples/basic/preview.html +6 -0
- package/01. Elements/media/identity/avatar/examples/dropdown/code.html +8 -0
- package/01. Elements/media/identity/avatar/examples/dropdown/preview.html +6 -0
- package/01. Elements/media/identity/avatar/examples/fallback/code.html +5 -0
- package/01. Elements/media/identity/avatar/examples/fallback/preview.html +5 -0
- package/01. Elements/media/identity/avatar/examples/index.json +68 -23
- package/01. Elements/media/identity/avatar/examples/notification-count/code.html +6 -0
- package/01. Elements/media/identity/avatar/examples/notification-count/preview.html +7 -0
- package/01. Elements/media/identity/avatar/examples/notification-dot/code.html +6 -0
- package/01. Elements/media/identity/avatar/examples/notification-dot/preview.html +7 -0
- package/01. Elements/media/identity/avatar/examples/sizes/code.html +2 -2
- package/01. Elements/media/identity/avatar/examples/sizes/preview.html +19 -26
- package/01. Elements/media/identity/avatar/examples/square/code.html +5 -0
- package/01. Elements/media/identity/avatar/examples/square/preview.html +5 -0
- package/01. Elements/media/identity/avatar/examples/status-contexts/code.html +6 -0
- package/01. Elements/media/identity/avatar/examples/status-contexts/preview.html +13 -0
- package/01. Elements/media/identity/avatar/src/avatar.js +42 -0
- package/01. Elements/media/identity/avatar/src/avatar.scss +172 -0
- package/01. Elements/navigation/items/navigation-item/docs/README.md +52 -0
- package/01. Elements/navigation/items/navigation-item/docs/api.json +84 -0
- package/01. Elements/navigation/items/navigation-item/examples/animated-collapse/code.html +9 -0
- package/01. Elements/navigation/items/navigation-item/examples/animated-collapse/preview.html +18 -0
- package/01. Elements/navigation/items/navigation-item/examples/collapsible/code.html +9 -0
- package/01. Elements/navigation/items/navigation-item/examples/collapsible/preview.html +18 -0
- package/01. Elements/navigation/items/navigation-item/examples/icon-label/code.html +6 -0
- package/01. Elements/navigation/items/navigation-item/examples/icon-label/preview.html +1 -0
- package/01. Elements/navigation/items/navigation-item/examples/icon-only/code.html +7 -0
- package/01. Elements/navigation/items/navigation-item/examples/icon-only/preview.html +1 -0
- package/01. Elements/navigation/items/navigation-item/examples/index.json +45 -0
- package/01. Elements/navigation/items/navigation-item/examples/label-only/code.html +3 -0
- package/01. Elements/navigation/items/navigation-item/examples/label-only/preview.html +1 -0
- package/01. Elements/navigation/items/navigation-item/examples/states/code.html +9 -0
- package/01. Elements/navigation/items/navigation-item/examples/states/preview.html +17 -0
- package/01. Elements/navigation/items/navigation-item/navigation-item.definition.json +40 -0
- package/01. Elements/navigation/items/navigation-item/src/navigation-item.scss +185 -0
- package/01. Elements/status/indicators/badge/badge.definition.json +55 -0
- package/01. Elements/status/indicators/badge/docs/README.md +40 -0
- package/01. Elements/status/indicators/badge/docs/api.json +112 -0
- package/01. Elements/status/indicators/badge/examples/content/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/content/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/contexts/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/contexts/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/icons/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/icons/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/index.json +58 -0
- package/01. Elements/status/indicators/badge/examples/links/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/links/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/loading/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/loading/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/sizes/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/sizes/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/status/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/status/preview.html +3 -0
- package/01. Elements/status/indicators/badge/examples/treatments/code.html +1 -0
- package/01. Elements/status/indicators/badge/examples/treatments/preview.html +3 -0
- package/01. Elements/status/indicators/badge/src/badge.scss +109 -0
- package/02. Layouts/REFINEMENT-REVIEW.md +82 -0
- package/02. Layouts/UTILITY-RECIPES.md +97 -9
- package/02. Layouts/application/app-shell/app-shell.definition.json +7 -6
- package/02. Layouts/application/app-shell/docs/README.md +64 -0
- package/02. Layouts/application/app-shell/docs/api.json +125 -0
- package/02. Layouts/application/app-shell/examples/complete/code.html +19 -0
- package/02. Layouts/application/app-shell/examples/complete/preview.html +28 -0
- package/02. Layouts/application/app-shell/examples/dual/code.html +13 -0
- package/02. Layouts/application/app-shell/examples/dual/preview.html +26 -0
- package/02. Layouts/application/app-shell/examples/header-main/code.html +10 -0
- package/02. Layouts/application/app-shell/examples/header-main/preview.html +19 -0
- package/02. Layouts/application/app-shell/examples/index.json +51 -15
- package/02. Layouts/application/app-shell/examples/main-only/code.html +7 -0
- package/02. Layouts/application/app-shell/examples/main-only/preview.html +18 -0
- package/02. Layouts/application/app-shell/examples/right/code.html +16 -0
- package/02. Layouts/application/app-shell/examples/right/preview.html +25 -0
- package/02. Layouts/application/app-shell/examples/sizes/code.html +16 -0
- package/02. Layouts/application/app-shell/examples/sizes/preview.html +27 -0
- package/02. Layouts/application/app-shell/examples/standard/code.html +13 -0
- package/02. Layouts/application/app-shell/examples/standard/preview.html +22 -0
- package/02. Layouts/application/app-shell/examples/sticky/code.html +16 -0
- package/02. Layouts/application/app-shell/examples/sticky/preview.html +23 -0
- package/02. Layouts/application/app-shell/src/app-shell.scss +119 -0
- package/02. Layouts/application/page-frame/docs/README.md +13 -0
- package/02. Layouts/application/page-frame/docs/api.json +33 -0
- package/02. Layouts/application/page-frame/examples/footer/code.html +8 -0
- package/02. Layouts/application/page-frame/examples/footer/preview.html +11 -0
- package/02. Layouts/application/page-frame/examples/header/code.html +8 -0
- package/02. Layouts/application/page-frame/examples/header/preview.html +11 -0
- package/02. Layouts/application/page-frame/examples/index.json +30 -0
- package/02. Layouts/application/page-frame/examples/main/code.html +5 -0
- package/02. Layouts/application/page-frame/examples/main/preview.html +10 -0
- package/02. Layouts/application/page-frame/examples/standard/code.html +11 -0
- package/02. Layouts/application/page-frame/examples/standard/preview.html +12 -0
- package/02. Layouts/application/page-frame/page-frame.definition.json +24 -0
- package/02. Layouts/application/page-frame/src/page-frame.html +11 -0
- package/02. Layouts/composition/cluster/cluster.definition.json +24 -0
- package/02. Layouts/composition/cluster/docs/README.md +45 -0
- package/02. Layouts/composition/cluster/docs/api.json +29 -0
- package/02. Layouts/composition/cluster/examples/basic/code.html +3 -0
- package/02. Layouts/composition/cluster/examples/basic/preview.html +6 -0
- package/02. Layouts/composition/cluster/examples/index.json +9 -0
- package/02. Layouts/composition/cluster/src/cluster.html +3 -0
- package/02. Layouts/composition/inline/docs/README.md +45 -0
- package/02. Layouts/composition/inline/docs/api.json +28 -0
- package/02. Layouts/composition/inline/examples/basic/code.html +3 -0
- package/02. Layouts/composition/inline/examples/basic/preview.html +4 -0
- package/02. Layouts/composition/inline/examples/index.json +16 -0
- package/02. Layouts/composition/inline/examples/scrolling/code.html +3 -0
- package/02. Layouts/composition/inline/examples/scrolling/preview.html +14 -0
- package/02. Layouts/composition/inline/inline.definition.json +24 -0
- package/02. Layouts/composition/inline/src/inline.html +3 -0
- package/02. Layouts/composition/overlap/docs/README.md +47 -0
- package/02. Layouts/composition/overlap/docs/api.json +59 -0
- package/02. Layouts/composition/overlap/examples/basic/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/basic/preview.html +9 -0
- package/02. Layouts/composition/overlap/examples/index.json +44 -0
- package/02. Layouts/composition/overlap/examples/size-2xs/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/size-2xs/preview.html +9 -0
- package/02. Layouts/composition/overlap/examples/size-lg/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/size-lg/preview.html +9 -0
- package/02. Layouts/composition/overlap/examples/size-sm/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/size-sm/preview.html +9 -0
- package/02. Layouts/composition/overlap/examples/size-xl/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/size-xl/preview.html +9 -0
- package/02. Layouts/composition/overlap/examples/size-xs/code.html +8 -0
- package/02. Layouts/composition/overlap/examples/size-xs/preview.html +9 -0
- package/02. Layouts/composition/overlap/overlap.definition.json +26 -0
- package/02. Layouts/composition/overlap/src/overlap.scss +51 -0
- package/02. Layouts/composition/sidebar/docs/README.md +84 -0
- package/02. Layouts/composition/sidebar/docs/api.json +70 -0
- package/02. Layouts/composition/sidebar/examples/basic/code.html +8 -0
- package/02. Layouts/composition/sidebar/examples/basic/preview.html +14 -0
- package/02. Layouts/composition/sidebar/examples/index.json +37 -0
- package/02. Layouts/composition/sidebar/examples/large/code.html +8 -0
- package/02. Layouts/composition/sidebar/examples/large/preview.html +14 -0
- package/02. Layouts/composition/sidebar/examples/size-2xs/code.html +8 -0
- package/02. Layouts/composition/sidebar/examples/size-2xs/preview.html +14 -0
- package/02. Layouts/composition/sidebar/examples/size-xs/code.html +8 -0
- package/02. Layouts/composition/sidebar/examples/size-xs/preview.html +14 -0
- package/02. Layouts/composition/sidebar/examples/small/code.html +8 -0
- package/02. Layouts/composition/sidebar/examples/small/preview.html +14 -0
- package/02. Layouts/{sections → composition}/sidebar/sidebar.definition.json +6 -5
- package/02. Layouts/composition/sidebar/src/sidebar.scss +38 -0
- package/02. Layouts/composition/split/docs/README.md +56 -0
- package/02. Layouts/composition/split/docs/api.json +51 -0
- package/02. Layouts/composition/split/examples/basic/code.html +8 -0
- package/02. Layouts/composition/split/examples/basic/preview.html +10 -0
- package/02. Layouts/composition/split/examples/index.json +23 -0
- package/02. Layouts/composition/split/examples/wide-end/code.html +8 -0
- package/02. Layouts/composition/split/examples/wide-end/preview.html +10 -0
- package/02. Layouts/composition/split/examples/wide-start/code.html +8 -0
- package/02. Layouts/composition/split/examples/wide-start/preview.html +10 -0
- package/02. Layouts/{content → composition}/split/split.definition.json +6 -5
- package/02. Layouts/composition/split/src/split.scss +29 -0
- package/02. Layouts/composition/stack/docs/README.md +48 -0
- package/02. Layouts/composition/stack/docs/api.json +61 -0
- package/02. Layouts/composition/stack/examples/basic/code.html +1 -2
- package/02. Layouts/composition/stack/examples/basic/preview.html +12 -2
- package/02. Layouts/composition/stack/examples/compact/code.html +3 -0
- package/02. Layouts/composition/stack/examples/compact/preview.html +14 -0
- package/02. Layouts/composition/stack/examples/index.json +44 -1
- package/02. Layouts/composition/stack/examples/size-2xs/code.html +3 -0
- package/02. Layouts/composition/stack/examples/size-2xs/preview.html +14 -0
- package/02. Layouts/composition/stack/examples/size-lg/code.html +3 -0
- package/02. Layouts/composition/stack/examples/size-lg/preview.html +14 -0
- package/02. Layouts/composition/stack/examples/size-xl/code.html +3 -0
- package/02. Layouts/composition/stack/examples/size-xl/preview.html +14 -0
- package/02. Layouts/composition/stack/examples/size-xs/code.html +3 -0
- package/02. Layouts/composition/stack/examples/size-xs/preview.html +14 -0
- package/02. Layouts/composition/stack/{stack.html → src/stack.html } +1 -2
- package/02. Layouts/composition/stack/stack.definition.json +22 -5
- package/02. Layouts/composition/switcher/docs/README.md +51 -0
- package/02. Layouts/composition/switcher/docs/api.json +37 -0
- package/02. Layouts/composition/switcher/examples/basic/code.html +3 -0
- package/02. Layouts/composition/switcher/examples/basic/preview.html +14 -0
- package/02. Layouts/composition/switcher/examples/index.json +9 -0
- package/02. Layouts/composition/switcher/src/switcher.scss +24 -0
- package/02. Layouts/composition/switcher/switcher.definition.json +26 -0
- package/02. Layouts/content/grid/docs/README.md +77 -0
- package/02. Layouts/content/grid/docs/api.json +67 -0
- package/02. Layouts/content/grid/examples/basic/code.html +2 -4
- package/02. Layouts/content/grid/examples/basic/preview.html +13 -4
- package/02. Layouts/content/grid/examples/dense/code.html +3 -0
- package/02. Layouts/content/grid/examples/dense/preview.html +18 -0
- package/02. Layouts/content/grid/examples/index.json +30 -2
- package/02. Layouts/content/grid/examples/large/code.html +3 -0
- package/02. Layouts/content/grid/examples/large/preview.html +14 -0
- package/02. Layouts/content/grid/examples/size-2xs/code.html +3 -0
- package/02. Layouts/content/grid/examples/size-2xs/preview.html +14 -0
- package/02. Layouts/content/grid/examples/size-xs/code.html +3 -0
- package/02. Layouts/content/grid/examples/size-xs/preview.html +14 -0
- package/02. Layouts/content/grid/grid.definition.json +5 -4
- package/02. Layouts/content/grid/src/grid.scss +32 -0
- package/02. Layouts/content/reel/docs/README.md +81 -0
- package/02. Layouts/content/reel/docs/api.json +67 -0
- package/02. Layouts/content/reel/examples/basic/code.html +3 -0
- package/02. Layouts/content/reel/examples/basic/preview.html +14 -0
- package/02. Layouts/content/reel/examples/index.json +30 -0
- package/02. Layouts/content/reel/examples/size-2xs/code.html +3 -0
- package/02. Layouts/content/reel/examples/size-2xs/preview.html +14 -0
- package/02. Layouts/content/reel/examples/size-xs/code.html +3 -0
- package/02. Layouts/content/reel/examples/size-xs/preview.html +14 -0
- package/02. Layouts/content/reel/examples/small/code.html +3 -0
- package/02. Layouts/content/reel/examples/small/preview.html +14 -0
- package/02. Layouts/content/reel/reel.definition.json +26 -0
- package/02. Layouts/content/reel/src/reel.scss +40 -0
- package/02. Layouts/primitives/center/center.definition.json +24 -0
- package/02. Layouts/primitives/center/docs/README.md +44 -0
- package/02. Layouts/primitives/center/docs/api.json +28 -0
- package/02. Layouts/primitives/center/examples/basic/code.html +3 -0
- package/02. Layouts/primitives/center/examples/basic/preview.html +4 -0
- package/02. Layouts/primitives/center/examples/index.json +16 -0
- package/02. Layouts/primitives/center/examples/minimum-height/code.html +3 -0
- package/02. Layouts/primitives/center/examples/minimum-height/preview.html +4 -0
- package/02. Layouts/primitives/center/src/center.html +3 -0
- package/02. Layouts/primitives/container/container.definition.json +24 -0
- package/02. Layouts/primitives/container/docs/README.md +44 -0
- package/02. Layouts/primitives/container/docs/api.json +28 -0
- package/02. Layouts/primitives/container/examples/basic/code.html +3 -0
- package/02. Layouts/primitives/container/examples/basic/preview.html +6 -0
- package/02. Layouts/primitives/container/examples/index.json +16 -0
- package/02. Layouts/primitives/container/examples/reading/code.html +3 -0
- package/02. Layouts/primitives/container/examples/reading/preview.html +4 -0
- package/02. Layouts/primitives/container/src/container.html +3 -0
- package/02. Layouts/primitives/frame/docs/README.md +45 -0
- package/02. Layouts/primitives/frame/docs/api.json +29 -0
- package/02. Layouts/primitives/frame/examples/basic/code.html +3 -0
- package/02. Layouts/primitives/frame/examples/basic/preview.html +6 -0
- package/02. Layouts/primitives/frame/examples/index.json +16 -0
- package/02. Layouts/primitives/frame/examples/square/code.html +3 -0
- package/02. Layouts/primitives/frame/examples/square/preview.html +6 -0
- package/02. Layouts/primitives/frame/frame.definition.json +24 -0
- package/02. Layouts/primitives/frame/src/frame.html +3 -0
- package/02. Layouts/sections/bleed/bleed.definition.json +24 -0
- package/02. Layouts/sections/bleed/docs/README.md +45 -0
- package/02. Layouts/sections/bleed/docs/api.json +33 -0
- package/02. Layouts/sections/bleed/examples/basic/code.html +11 -0
- package/02. Layouts/sections/bleed/examples/basic/preview.html +14 -0
- package/02. Layouts/sections/bleed/examples/index.json +16 -0
- package/02. Layouts/sections/bleed/examples/reading/code.html +11 -0
- package/02. Layouts/sections/bleed/examples/reading/preview.html +14 -0
- package/02. Layouts/sections/bleed/src/bleed.html +11 -0
- package/02. Layouts/sections/content-grid/content-grid.definition.json +26 -0
- package/02. Layouts/sections/content-grid/docs/README.md +59 -0
- package/02. Layouts/sections/content-grid/docs/api.json +38 -0
- package/02. Layouts/sections/content-grid/examples/basic/code.html +11 -0
- package/02. Layouts/sections/content-grid/examples/basic/preview.html +10 -0
- package/02. Layouts/sections/content-grid/examples/index.json +9 -0
- package/02. Layouts/sections/content-grid/src/content-grid.scss +16 -0
- package/02. Layouts/sections/cover/cover.definition.json +26 -0
- package/02. Layouts/sections/cover/docs/README.md +60 -0
- package/02. Layouts/sections/cover/docs/api.json +50 -0
- package/02. Layouts/sections/cover/examples/basic/code.html +11 -0
- package/02. Layouts/sections/cover/examples/basic/preview.html +8 -0
- package/02. Layouts/sections/cover/examples/compact/code.html +11 -0
- package/02. Layouts/sections/cover/examples/compact/preview.html +8 -0
- package/02. Layouts/sections/cover/examples/index.json +16 -0
- package/02. Layouts/sections/cover/src/cover.scss +41 -0
- package/02. Layouts/sections/section/docs/README.md +52 -0
- package/02. Layouts/sections/section/docs/api.json +63 -0
- package/02. Layouts/sections/section/examples/basic/code.html +2 -2
- package/02. Layouts/sections/section/examples/basic/preview.html +5 -2
- package/02. Layouts/sections/section/examples/index.json +37 -2
- package/02. Layouts/sections/section/examples/size-2xs/code.html +5 -0
- package/02. Layouts/sections/section/examples/size-2xs/preview.html +8 -0
- package/02. Layouts/sections/section/examples/size-md/code.html +5 -0
- package/02. Layouts/sections/section/examples/size-md/preview.html +8 -0
- package/02. Layouts/sections/section/examples/size-sm/code.html +5 -0
- package/02. Layouts/sections/section/examples/size-sm/preview.html +8 -0
- package/02. Layouts/sections/section/examples/size-xl/code.html +5 -0
- package/02. Layouts/sections/section/examples/size-xl/preview.html +8 -0
- package/02. Layouts/sections/section/examples/size-xs/code.html +5 -0
- package/02. Layouts/sections/section/examples/size-xs/preview.html +8 -0
- package/02. Layouts/sections/section/section.definition.json +8 -6
- package/02. Layouts/sections/section/src/section.html +5 -0
- package/03. Components/cards/card/card.definition.json +36 -0
- package/03. Components/cards/card/docs/README.md +27 -0
- package/03. Components/cards/card/docs/api.json +64 -0
- package/03. Components/cards/card/examples/badge-status/code.html +9 -0
- package/03. Components/cards/card/examples/badge-status/preview.html +9 -0
- package/03. Components/cards/card/examples/basic/code.html +6 -0
- package/03. Components/cards/card/examples/basic/preview.html +6 -0
- package/03. Components/cards/card/examples/button-action/code.html +11 -0
- package/03. Components/cards/card/examples/button-action/preview.html +11 -0
- package/03. Components/cards/card/examples/header-footer/code.html +13 -0
- package/03. Components/cards/card/examples/header-footer/preview.html +13 -0
- package/03. Components/cards/card/examples/index.json +48 -0
- package/03. Components/cards/card/examples/media/code.html +9 -0
- package/03. Components/cards/card/examples/media/preview.html +9 -0
- package/03. Components/cards/card/src/card.scss +56 -0
- package/03. Components/cards/card-disclosure/card-disclosure.definition.json +27 -0
- package/03. Components/cards/card-disclosure/docs/README.md +24 -0
- package/03. Components/cards/card-disclosure/docs/api.json +58 -0
- package/03. Components/cards/card-disclosure/examples/basic/code.html +16 -0
- package/03. Components/cards/card-disclosure/examples/basic/preview.html +16 -0
- package/03. Components/cards/card-disclosure/examples/expanded/code.html +16 -0
- package/03. Components/cards/card-disclosure/examples/expanded/preview.html +16 -0
- package/03. Components/cards/card-disclosure/examples/index.json +17 -0
- package/03. Components/cards/card-disclosure/src/card-disclosure.html +16 -0
- package/03. Components/cards/card-utility-summary/card-utility-summary.definition.json +24 -0
- package/03. Components/cards/card-utility-summary/docs/README.md +23 -0
- package/03. Components/cards/card-utility-summary/docs/api.json +33 -0
- package/03. Components/cards/card-utility-summary/examples/basic/code.html +13 -0
- package/03. Components/cards/card-utility-summary/examples/basic/preview.html +13 -0
- package/03. Components/cards/card-utility-summary/examples/compact/code.html +8 -0
- package/03. Components/cards/card-utility-summary/examples/compact/preview.html +8 -0
- package/03. Components/cards/card-utility-summary/examples/index.json +17 -0
- package/03. Components/cards/card-utility-summary/src/card-utility-summary.html +13 -0
- package/03. Components/data-display/statistics/stat-card/docs/README.md +104 -0
- package/03. Components/data-display/statistics/stat-card/docs/api.json +153 -0
- package/03. Components/data-display/statistics/stat-card/examples/action/code.html +8 -0
- package/03. Components/data-display/statistics/stat-card/examples/action/preview.html +21 -0
- package/03. Components/data-display/statistics/stat-card/examples/coloured-values/code.html +4 -0
- package/03. Components/data-display/statistics/stat-card/examples/coloured-values/preview.html +14 -0
- package/03. Components/data-display/statistics/stat-card/examples/icon-led/code.html +13 -0
- package/03. Components/data-display/statistics/stat-card/examples/icon-led/preview.html +27 -0
- package/03. Components/data-display/statistics/stat-card/examples/icons/code.html +8 -0
- package/03. Components/data-display/statistics/stat-card/examples/icons/preview.html +27 -0
- package/03. Components/data-display/statistics/stat-card/examples/index.json +117 -0
- package/03. Components/data-display/statistics/stat-card/examples/inline-comparison/code.html +8 -0
- package/03. Components/data-display/statistics/stat-card/examples/inline-comparison/preview.html +18 -0
- package/03. Components/data-display/statistics/stat-card/examples/long-value/code.html +5 -0
- package/03. Components/data-display/statistics/stat-card/examples/long-value/preview.html +7 -0
- package/03. Components/data-display/statistics/stat-card/examples/minimal/code.html +4 -0
- package/03. Components/data-display/statistics/stat-card/examples/minimal/preview.html +14 -0
- package/03. Components/data-display/statistics/stat-card/examples/sentiments/code.html +11 -0
- package/03. Components/data-display/statistics/stat-card/examples/sentiments/preview.html +26 -0
- package/03. Components/data-display/statistics/stat-card/examples/sizes/code.html +4 -0
- package/03. Components/data-display/statistics/stat-card/examples/sizes/preview.html +14 -0
- package/03. Components/data-display/statistics/stat-card/examples/standard/code.html +8 -0
- package/03. Components/data-display/statistics/stat-card/examples/standard/preview.html +23 -0
- package/03. Components/data-display/statistics/stat-card/examples/states/code.html +5 -0
- package/03. Components/data-display/statistics/stat-card/examples/states/preview.html +17 -0
- package/03. Components/data-display/statistics/stat-card/examples/trailing-trend/code.html +8 -0
- package/03. Components/data-display/statistics/stat-card/examples/trailing-trend/preview.html +18 -0
- package/03. Components/data-display/statistics/stat-card/src/stat-card.scss +253 -0
- package/03. Components/data-display/statistics/stat-card/stat-card.definition.json +49 -0
- package/03. Components/media/identity/avatar-group/avatar-group.definition.json +39 -0
- package/03. Components/media/identity/avatar-group/docs/README.md +37 -0
- package/03. Components/media/identity/avatar-group/docs/api.json +99 -0
- package/03. Components/media/identity/avatar-group/examples/count/code.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/count/preview.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/count-icon/code.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/count-icon/preview.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/group/code.html +18 -0
- package/03. Components/media/identity/avatar-group/examples/group/preview.html +18 -0
- package/03. Components/media/identity/avatar-group/examples/index.json +38 -0
- package/03. Components/media/identity/avatar-group/examples/rtl/code.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/rtl/preview.html +19 -0
- package/03. Components/media/identity/avatar-group/examples/sizes/code.html +14 -0
- package/03. Components/media/identity/avatar-group/examples/sizes/preview.html +27 -0
- package/03. Components/media/identity/avatar-group/src/avatar-group.scss +72 -0
- package/03. Components/navigation/menus/navigation-menu/docs/README.md +34 -0
- package/03. Components/navigation/menus/navigation-menu/docs/api.json +70 -0
- package/03. Components/navigation/menus/navigation-menu/examples/groups/code.html +27 -0
- package/03. Components/navigation/menus/navigation-menu/examples/groups/preview.html +27 -0
- package/03. Components/navigation/menus/navigation-menu/examples/horizontal/code.html +19 -0
- package/03. Components/navigation/menus/navigation-menu/examples/horizontal/preview.html +19 -0
- package/03. Components/navigation/menus/navigation-menu/examples/icon-links/code.html +36 -0
- package/03. Components/navigation/menus/navigation-menu/examples/icon-links/preview.html +36 -0
- package/03. Components/navigation/menus/navigation-menu/examples/index.json +45 -0
- package/03. Components/navigation/menus/navigation-menu/examples/nested/code.html +21 -0
- package/03. Components/navigation/menus/navigation-menu/examples/nested/preview.html +21 -0
- package/03. Components/navigation/menus/navigation-menu/examples/separators/code.html +22 -0
- package/03. Components/navigation/menus/navigation-menu/examples/separators/preview.html +22 -0
- package/03. Components/navigation/menus/navigation-menu/examples/vertical/code.html +19 -0
- package/03. Components/navigation/menus/navigation-menu/examples/vertical/preview.html +19 -0
- package/03. Components/navigation/menus/navigation-menu/navigation-menu.definition.json +38 -0
- package/03. Components/navigation/menus/navigation-menu/src/navigation-menu.scss +78 -0
- package/03. Components/navigation/sidebars/floating-sidebar/docs/README.md +34 -0
- package/03. Components/navigation/sidebars/floating-sidebar/docs/api.json +58 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/code.html +42 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/animated/preview.html +42 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/code.html +43 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/branded/preview.html +43 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/code.html +50 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/grouped/preview.html +50 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/index.json +50 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/long/code.html +66 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/long/preview.html +66 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/code.html +51 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/profile/preview.html +51 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/code.html +42 -0
- package/03. Components/navigation/sidebars/floating-sidebar/examples/standard/preview.html +42 -0
- package/03. Components/navigation/sidebars/floating-sidebar/floating-sidebar.definition.json +52 -0
- package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.js +73 -0
- package/03. Components/navigation/sidebars/floating-sidebar/src/floating-sidebar.scss +138 -0
- package/README.md +133 -18
- package/dist/catalogue.json +442 -0
- package/dist/components/app-shell.css +76 -64
- package/dist/components/avatar-group.css +69 -0
- package/dist/components/avatar.css +98 -176
- package/dist/components/badge.css +118 -0
- package/dist/components/button-lumen-shift.css +388 -0
- package/dist/components/button.css +58 -28
- package/dist/components/card.css +47 -0
- package/dist/components/checkbox.css +129 -0
- package/dist/components/content-grid.css +16 -0
- package/dist/components/cover.css +41 -0
- package/dist/components/floating-sidebar.css +136 -0
- package/dist/components/grid.css +23 -13
- package/dist/components/navigation-item.css +169 -0
- package/dist/components/navigation-menu.css +74 -0
- package/dist/components/overlap.css +51 -0
- package/dist/components/reel.css +40 -0
- package/dist/components/select.css +288 -0
- package/dist/components/sidebar.css +33 -17
- package/dist/components/split.css +23 -16
- package/dist/components/stat-card.css +219 -0
- package/dist/components/switcher.css +24 -0
- package/dist/components/tooltip.css +101 -0
- package/package.json +7 -4
- package/schemas/reusable-ui.schema.json +145 -2
- package/tooling/cli/asset-organisation.mjs +126 -0
- package/tooling/cli/build.mjs +14 -7
- package/tooling/cli/cli.mjs +46 -19
- package/tooling/cli/commands.mjs +10 -0
- package/tooling/cli/configuration.mjs +60 -0
- package/tooling/cli/migrate.mjs +7 -4
- package/tooling/cli/project.mjs +188 -20
- package/tooling/registry/catalogue-index.mjs +54 -0
- package/tooling/registry/categories.mjs +3 -0
- package/tooling/registry/definitions.mjs +86 -9
- package/tooling/registry/native.mjs +32 -0
- package/tools/build-css.mjs +84 -30
- package/01. Elements/actions/controls/button/button.scss +0 -80
- package/01. Elements/actions/controls/button/docs.md +0 -41
- package/01. Elements/media/identity/avatar/api.json +0 -126
- package/01. Elements/media/identity/avatar/avatar.scss +0 -80
- package/01. Elements/media/identity/avatar/docs.md +0 -64
- package/01. Elements/media/identity/avatar/examples/badges/code.html +0 -10
- package/01. Elements/media/identity/avatar/examples/badges/preview.html +0 -29
- package/01. Elements/media/identity/avatar/examples/fallbacks/code.html +0 -5
- package/01. Elements/media/identity/avatar/examples/fallbacks/preview.html +0 -23
- package/01. Elements/media/identity/avatar/examples/presence/code.html +0 -6
- package/01. Elements/media/identity/avatar/examples/presence/preview.html +0 -26
- package/01. Elements/media/identity/avatar/examples/shapes/code.html +0 -5
- package/01. Elements/media/identity/avatar/examples/shapes/preview.html +0 -17
- package/02. Layouts/application/app-shell/api.json +0 -46
- package/02. Layouts/application/app-shell/app-shell.scss +0 -68
- package/02. Layouts/application/app-shell/docs.md +0 -31
- package/02. Layouts/application/app-shell/examples/basic/code.html +0 -17
- package/02. Layouts/application/app-shell/examples/basic/preview.html +0 -17
- package/02. Layouts/application/app-shell/examples/collapsed/code.html +0 -17
- package/02. Layouts/application/app-shell/examples/collapsed/preview.html +0 -17
- package/02. Layouts/application/app-shell/examples/hidden/code.html +0 -17
- package/02. Layouts/application/app-shell/examples/hidden/preview.html +0 -17
- package/02. Layouts/composition/stack/api.json +0 -1
- package/02. Layouts/composition/stack/docs.md +0 -5
- package/02. Layouts/content/grid/api.json +0 -23
- package/02. Layouts/content/grid/docs.md +0 -19
- package/02. Layouts/content/grid/grid.scss +0 -5
- package/02. Layouts/content/split/api.json +0 -23
- package/02. Layouts/content/split/docs.md +0 -18
- package/02. Layouts/content/split/examples/basic/code.html +0 -4
- package/02. Layouts/content/split/examples/basic/preview.html +0 -4
- package/02. Layouts/content/split/examples/index.json +0 -9
- package/02. Layouts/content/split/split.scss +0 -7
- package/02. Layouts/primitives/overlay/api.json +0 -23
- package/02. Layouts/primitives/overlay/docs.md +0 -19
- package/02. Layouts/primitives/overlay/examples/basic/code.html +0 -5
- package/02. Layouts/primitives/overlay/examples/basic/preview.html +0 -5
- package/02. Layouts/primitives/overlay/examples/index.json +0 -9
- package/02. Layouts/primitives/overlay/overlay.definition.json +0 -25
- package/02. Layouts/primitives/overlay/overlay.scss +0 -4
- package/02. Layouts/sections/section/api.json +0 -23
- package/02. Layouts/sections/section/docs.md +0 -19
- package/02. Layouts/sections/section/section.scss +0 -4
- package/02. Layouts/sections/sidebar/api.json +0 -23
- package/02. Layouts/sections/sidebar/docs.md +0 -18
- package/02. Layouts/sections/sidebar/examples/basic/code.html +0 -4
- package/02. Layouts/sections/sidebar/examples/basic/preview.html +0 -4
- package/02. Layouts/sections/sidebar/examples/index.json +0 -9
- package/02. Layouts/sections/sidebar/sidebar.scss +0 -7
- package/dist/components/overlay.css +0 -17
- package/dist/components/section.css +0 -14
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
"level": "elements",
|
|
7
7
|
"category": [
|
|
8
8
|
"actions",
|
|
9
|
-
"controls"
|
|
9
|
+
"controls",
|
|
10
|
+
"button"
|
|
10
11
|
],
|
|
11
12
|
"className": "bce-button",
|
|
12
13
|
"source": {
|
|
13
|
-
"scss": "01. Elements/actions/controls/button/button.scss",
|
|
14
|
+
"scss": "01. Elements/actions/controls/button/src/button.scss",
|
|
14
15
|
"css": "dist/components/button.css"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
@@ -19,8 +20,8 @@
|
|
|
19
20
|
]
|
|
20
21
|
},
|
|
21
22
|
"documentation": {
|
|
22
|
-
"guide": "docs.md",
|
|
23
|
-
"api": "api.json",
|
|
23
|
+
"guide": "docs/README.md",
|
|
24
|
+
"api": "docs/api.json",
|
|
24
25
|
"examples": "examples/index.json"
|
|
25
26
|
},
|
|
26
27
|
"previewControls": {
|
|
@@ -34,5 +35,38 @@
|
|
|
34
35
|
"error",
|
|
35
36
|
"info"
|
|
36
37
|
]
|
|
38
|
+
},
|
|
39
|
+
"native": {
|
|
40
|
+
"family": "button",
|
|
41
|
+
"selectors": [
|
|
42
|
+
"button"
|
|
43
|
+
],
|
|
44
|
+
"eligible": true,
|
|
45
|
+
"restrictions": [
|
|
46
|
+
"Native button anatomy; loading behaviour is application-owned."
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"customisation": {
|
|
50
|
+
"variables": [
|
|
51
|
+
"--bce-button-height",
|
|
52
|
+
"--bce-button-pad-y",
|
|
53
|
+
"--bce-button-pad-x",
|
|
54
|
+
"--bce-button-colour",
|
|
55
|
+
"--bce-button-background",
|
|
56
|
+
"--bce-button-outline",
|
|
57
|
+
"--bce-button-hover-background",
|
|
58
|
+
"--bce-button-active-background",
|
|
59
|
+
"--bce-button-hover-outline",
|
|
60
|
+
"--bce-button-active-outline",
|
|
61
|
+
"--bce-button-icon-size",
|
|
62
|
+
"--bce-button-font-family",
|
|
63
|
+
"--bce-button-font-size",
|
|
64
|
+
"--bce-button-font-weight",
|
|
65
|
+
"--bce-button-line-height",
|
|
66
|
+
"--bce-button-letter-spacing"
|
|
67
|
+
],
|
|
68
|
+
"notes": [
|
|
69
|
+
"Colour hooks accept existing Core Semantics and inherit private Flavour context mappings."
|
|
70
|
+
]
|
|
37
71
|
}
|
|
38
72
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
Level 01 — Elements. Use a Button for an action; use an `<a href>` with the same `bce-button` class for navigation. A Button Group or Segmented Control is a **separate category 03 Component**, not a Button modifier.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install compatible `@buffercreations/buffercore` and `@buffercreations/levelsui` packages plus Sass in the consumer. Run `npx --no-install levelsui init`, `npx --no-install levelsui add button`, `npx --no-install levelsui activate button`, `npx --no-install levelsui default button button` and `npx --no-install levelsui build`. Load the generated `dist/buffercore-levels.css` once; it includes Core. Button is not included in Core alone.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<!-- Automatically styled by the Button asset; no class required -->
|
|
13
|
+
<button type="button">Label</button>
|
|
14
|
+
|
|
15
|
+
<!-- Explicit class is still supported -->
|
|
16
|
+
<button class="bce-button" type="button">Label</button>
|
|
17
|
+
|
|
18
|
+
<!-- Modifiers may be used without the base class on native buttons -->
|
|
19
|
+
<button class="bce-button--outline" type="button">Outline</button>
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
When selected as the project native default, Button styles ordinary native `<button>` elements (including form submit/reset buttons), excluding explicit peer designs and `data-levelsui-native="off"`. The explicit `.bce-button` class still works for links and other supported markup. Use `type="button"` for actions that should not submit a form.
|
|
24
|
+
|
|
25
|
+
New CLI projects select native ownership explicitly with `levelsui default button button`; `levelsui default button none` retains explicit `.bce-button` styling only. Direct catalogue CSS and legacy projects preserve the historical native default. `levelsui overrides button` optionally creates a project-owned Sass mixin using existing `--bce-button-*` hooks. Its selector follows native ownership automatically; switching defaults never rewrites the file. Updates preserve customisations; run `doctor` to review hook changes. The `--bce-button-pad-y` and `--bce-button-pad-x` hooks control block/inline padding directly, while the height hook supplies the minimum button height.
|
|
26
|
+
|
|
27
|
+
Solid is the default. Add `bce-button--outline` or `bce-button--ghost` for alternate treatments. Size modifiers are `--56`, `--48`, `--40`, `--32`, and `--24`; `--40` is the default height. Avoid setting two size modifiers simultaneously.
|
|
28
|
+
|
|
29
|
+
Buttons inherit their semantic colour context (`bc-is-*`), so they should work inside themed sections without changing their own implementation.
|
|
30
|
+
|
|
31
|
+
## Other Button designs
|
|
32
|
+
|
|
33
|
+
**Lumen Shift** is a separate Element (`button-lumen-shift`), grouped alongside Button in Studio. Install both independently. Choose one native default with `levelsui default button button` or `levelsui default button button-lumen-shift`, or use `levelsui default button none` to keep only explicit designs. Each has its own overrides and source; switching defaults does not merge them.
|
|
34
|
+
|
|
35
|
+
## Core-first implementation
|
|
36
|
+
|
|
37
|
+
Button is an authored native Element because its complete, selectable default (including keyboard focus, treatments, size presets and CSS states) must work on an unclassed `<button>` or a single explicit `.bce-button`, without requiring consumers to add a bundle of utilities. Its structural flex alignment stays scoped to the Element. Sizing, typography, radii, borders, colours and motion use the verified BufferCore Semantic contract. The `--bce-button-*` hooks carry the design-specific values that must remain independently customisable when another Button design owns the native default. No new Foundation utility or Behaviour is required for this implementation.
|
|
38
|
+
|
|
39
|
+
## States
|
|
40
|
+
|
|
41
|
+
Normal, hover, pressed and keyboard focus are handled in CSS. Use the actual `disabled` attribute when an action is unavailable. Loading is application-owned: this CSS-only Element supplies no loading modifier, spinner or request handling. The application communicates busy state with `aria-busy` where appropriate and prevents repeated activation. `aria-disabled="true"` supplies disabled presentation but does not suppress clicks or keyboard activation.
|
|
42
|
+
|
|
43
|
+
## Size typography and icons
|
|
44
|
+
|
|
45
|
+
The five numeric height modifiers map to the Figma roles: `--24` (XXS) uses Core **Label 4**; `--32` and `--40` (XS/SM) use **Label 3**; `--48` and `--56` (MD/LG) use **Label 2**. Size modifiers set the full type role (family, size, weight, line height and letter spacing), not just the font size. Icons scale independently through `--bce-button-icon-size`: 12, 16, 18, 20 and 24px respectively. The 18px design value is Asset-local because Core does not expose a matching UI-size semantic. Explicit project overrides may adjust it.
|
|
46
|
+
|
|
47
|
+
## Icons
|
|
48
|
+
|
|
49
|
+
Use Iconify (`<iconify-icon icon="hugeicons:add-01" aria-hidden="true"></iconify-icon>`) within `.bce-button__icon` for interface artwork. The slot sizes the icon to the appropriate size. SVGs with neither a root `fill` nor a root `stroke` receive the default outlined-icon strokes; SVGs declaring either attribute retain their own paint configuration. Check icon-library output rather than assuming all SVGs share the same drawing convention. For icon-only buttons add `bce-button--icon-only` and an accessible name (`aria-label` or visible text). BufferCore never requires Iconify.
|
|
50
|
+
|
|
51
|
+
## Icon-only size examples
|
|
52
|
+
|
|
53
|
+
The `Icon-only sizes` example demonstrates each numeric size with an Iconify/Hugeicons icon and an accessible name. The `Icons with labels` example demonstrates leading and trailing icons. Consumers using these examples must load Iconify and the desired icon collection in their application; Button itself does not bundle an icon loader.
|
|
54
|
+
|
|
55
|
+
## No JavaScript
|
|
56
|
+
|
|
57
|
+
This Element does not load any JavaScript. Event handlers are supplied by the application.
|
|
58
|
+
|
|
59
|
+
## Default colour pairing and contrast limits
|
|
60
|
+
|
|
61
|
+
Solid uses `--bc-color-text-inverse` over the context's Strong fill, with Bold interaction fills. Outline and Ghost use the Strong context text role and Subtle interaction fills. These are existing Core Semantics; numeric sizes, native selector configuration and all `--bce-button-*` project hooks remain unchanged. The corrected Solid defaults meet 4.5:1 in the measured light/dark built-in contexts and normal/hover/active states on the documented primary surface. This does not certify arbitrary private overrides or focus-indicator contrast.
|
|
62
|
+
|
|
63
|
+
The diagnostic distinguishes an unqualified default Button from the eight shipped contexts; those shipped mappings are not arbitrary consumer choices. Protected Core's dark `--bc-color-surface-general-primary` currently resolves to the same light surface as light mode. Transparent Outline/Ghost normal-state text can therefore fail on that shipped surface, including the unqualified default. This requires a reviewed Core surface/text mapping decision; the Asset does not silently replace page backgrounds or bypass Semantics. The native regression report records those remaining failures separately.
|
|
64
|
+
|
|
65
|
+
## Narrow parents and long labels
|
|
66
|
+
|
|
67
|
+
The base constrains its inline size to the parent and allows long unbroken labels to wrap. Height is a minimum, so enlarged text and multiline labels can grow naturally. Icon-only controls still require an accessible name. Existing size modifiers and project customisation hooks remain supported.
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
{
|
|
46
46
|
"name": "Native button default",
|
|
47
47
|
"type": "HTML element selector",
|
|
48
|
-
"default": "
|
|
49
|
-
"description": "
|
|
48
|
+
"default": "project-selected",
|
|
49
|
+
"description": "Select with levelsui default button button; none retains explicit classes only. Direct catalogue CSS retains its native default. Opt out using data-levelsui-native=\"off\"."
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "Treatment",
|
|
@@ -95,12 +95,21 @@
|
|
|
95
95
|
"actions",
|
|
96
96
|
"forms",
|
|
97
97
|
"application-ui",
|
|
98
|
-
"marketing"
|
|
98
|
+
"marketing",
|
|
99
|
+
"standard",
|
|
100
|
+
"versatile",
|
|
101
|
+
"minimal",
|
|
102
|
+
"form-controls"
|
|
99
103
|
],
|
|
100
104
|
"notes": [
|
|
101
105
|
"CSS-only Element: no mount script or Behaviour dependency.",
|
|
102
|
-
"Button Groups and Segmented Controls are separate Level
|
|
106
|
+
"Button Groups and Segmented Controls are separate Level 03 Components.",
|
|
103
107
|
"Icon markup is consumer-provided; no icon pack is required.",
|
|
104
|
-
"Hover, active and focus-visible states are native CSS pseudo-classes; disabled is native HTML."
|
|
108
|
+
"Hover, active and focus-visible states are native CSS pseudo-classes; disabled is native HTML.",
|
|
109
|
+
"Solid pairs inverse text with Strong/Bold context fills. Outline and Ghost pair Strong context text with Subtle interaction fills. Existing CSS customisation hooks remain supported.",
|
|
110
|
+
"The measured Solid defaults pass normal-text contrast across built-in contexts. Protected Core dark primary-surface mappings still cause transparent normal-state failures; see the guide for shipped-default limits distinct from private overrides.",
|
|
111
|
+
"The --bce-button-pad-y and --bce-button-pad-x hooks control vertical and horizontal padding directly; --bce-button-height controls minimum height.",
|
|
112
|
+
"Inline SVG defaults are stroke-based only when the root SVG declares neither fill nor stroke; explicit root paint attributes are retained.",
|
|
113
|
+
"Size roles follow Figma: 24=Label 4; 32/40=Label 3; 48/56=Label 2. Icon slot scales independently at 12/16/18/20/24px via --bce-button-icon-size."
|
|
105
114
|
]
|
|
106
115
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
<div class="bc-flex bc-flex-wrap bc-items-
|
|
2
|
-
<div class="bc-is-
|
|
1
|
+
<div class="bc-flex bc-flex-wrap bc-items-start bc-gap-md">
|
|
2
|
+
<div class="bc-is-primary"><button class="bce-button" type="button">Primary</button></div>
|
|
3
|
+
<div class="bc-is-secondary"><button class="bce-button" type="button">Secondary</button></div>
|
|
4
|
+
<div class="bc-is-accent"><button class="bce-button" type="button">Accent</button></div>
|
|
5
|
+
<div class="bc-is-success"><button class="bce-button" type="button">Success</button></div>
|
|
6
|
+
<div class="bc-is-warning"><button class="bce-button" type="button">Warning</button></div>
|
|
7
|
+
<div class="bc-is-error"><button class="bce-button" type="button">Error</button></div>
|
|
8
|
+
<div class="bc-is-info"><button class="bce-button" type="button">Info</button></div>
|
|
3
9
|
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="bc-flex bc-flex-wrap bc-items-center bc-gap-md">
|
|
2
|
+
<button aria-label="Add item" class="bce-button bce-button--56 bce-button--icon-only" type="button">
|
|
3
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:add-01"></iconify-icon></span>
|
|
4
|
+
</button>
|
|
5
|
+
<button aria-label="Search" class="bce-button bce-button--48 bce-button--icon-only" type="button">
|
|
6
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:search-01"></iconify-icon></span>
|
|
7
|
+
</button>
|
|
8
|
+
<button aria-label="Notifications" class="bce-button bce-button--40 bce-button--icon-only" type="button">
|
|
9
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:notification-03"></iconify-icon></span>
|
|
10
|
+
</button>
|
|
11
|
+
<button aria-label="Favourite" class="bce-button bce-button--32 bce-button--icon-only" type="button">
|
|
12
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:arrow-right-02"></iconify-icon></span>
|
|
13
|
+
</button>
|
|
14
|
+
<button aria-label="Settings" class="bce-button bce-button--24 bce-button--icon-only" type="button">
|
|
15
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:search-01"></iconify-icon></span>
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<button class="bce-button" type="button">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
</span>
|
|
5
|
-
<span class="bce-button__label">Add item</span>
|
|
2
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:add-01"></iconify-icon></span>
|
|
3
|
+
<span class="bce-button__label">Add item</span>
|
|
6
4
|
</button>
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<div class="bc-flex bc-flex-wrap bc-items-center bc-gap-md">
|
|
2
|
-
<button class="bce-button" type="button"
|
|
3
|
-
<
|
|
4
|
-
<
|
|
2
|
+
<button class="bce-button" type="button">
|
|
3
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:add-01"></iconify-icon></span>
|
|
4
|
+
<span class="bce-button__label">Add item</span>
|
|
5
|
+
</button>
|
|
6
|
+
<button class="bce-button bce-button--outline" type="button">
|
|
7
|
+
<span class="bce-button__label">Continue</span>
|
|
8
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:arrow-right-02"></iconify-icon></span>
|
|
9
|
+
</button>
|
|
10
|
+
<button class="bce-button bce-button--ghost" type="button">
|
|
11
|
+
<span aria-hidden="true" class="bce-button__icon"><iconify-icon aria-hidden="true" icon="hugeicons:tick-02"></iconify-icon></span>
|
|
12
|
+
<span class="bce-button__label">Confirm</span>
|
|
13
|
+
</button>
|
|
5
14
|
</div>
|
|
@@ -29,11 +29,18 @@
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "icons",
|
|
32
|
-
"title": "Icons",
|
|
33
|
-
"description": "
|
|
32
|
+
"title": "Icons with labels",
|
|
33
|
+
"description": "Leading and trailing icons with a visible label across all three treatments.",
|
|
34
34
|
"preview": "examples/icons/preview.html",
|
|
35
35
|
"code": "examples/icons/code.html"
|
|
36
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"id": "icon-only",
|
|
39
|
+
"title": "Icon-only sizes",
|
|
40
|
+
"description": "Every supported numeric size with a different icon and accessible label.",
|
|
41
|
+
"preview": "examples/icon-only/preview.html",
|
|
42
|
+
"code": "examples/icon-only/code.html"
|
|
43
|
+
},
|
|
37
44
|
{
|
|
38
45
|
"id": "contexts",
|
|
39
46
|
"title": "Colour contexts",
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
<!-- A plain HTML button automatically uses the BufferCore Button design. -->
|
|
2
1
|
<button type="button">Default button — no class</button>
|
|
3
|
-
|
|
4
|
-
<!-- Modifiers also work on native buttons without the base class. -->
|
|
5
|
-
<button class="bce-button--outline" type="button">Outline modifier</button>
|
|
6
|
-
|
|
7
|
-
<!-- Explicit class remains useful for links styled as buttons. -->
|
|
8
|
-
<a class="bce-button" href="#example">Button link</a>
|
|
9
|
-
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
<!-- A plain HTML button automatically uses the BufferCore Button design. -->
|
|
2
1
|
<button type="button">Default button — no class</button>
|
|
3
|
-
|
|
4
2
|
<!-- Modifiers also work on native buttons without the base class. -->
|
|
5
3
|
<button class="bce-button--outline" type="button">Outline modifier</button>
|
|
6
|
-
|
|
7
4
|
<!-- Explicit class remains useful for links styled as buttons. -->
|
|
8
5
|
<a class="bce-button" href="#example">Button link</a>
|
|
9
|
-
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<button class="bce-button" type="button" disabled>Label</button>
|
|
1
|
+
<button class="bce-button" type="button" disabled="">Label</button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="bc-flex bc-flex-wrap bc-items-center bc-gap-md">
|
|
2
2
|
<button class="bce-button" type="button">Label</button>
|
|
3
|
-
<button class="bce-button" type="button" disabled>Label</button>
|
|
4
|
-
<button class="bce-button bce-button--outline" type="button" disabled>Label</button>
|
|
3
|
+
<button class="bce-button" type="button" disabled="">Label</button>
|
|
4
|
+
<button class="bce-button bce-button--outline" type="button" disabled="">Label</button>
|
|
5
5
|
</div>
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
$levelsui-selector: ":where(button, .bce-button)" !default;
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Button — Level 01 / Elements
|
|
5
|
+
//
|
|
6
|
+
// Requires Foundation semantics and context utilities; no Primitive tokens.
|
|
7
|
+
// Native buttons use this design when selected, or with standalone catalogue CSS.
|
|
8
|
+
// Primary is the demo/app root context, not a local Button override.
|
|
9
|
+
//
|
|
10
|
+
#{$levelsui-selector} {
|
|
11
|
+
--bce-button-height: var(--bc-size-ui-40);
|
|
12
|
+
--bce-button-pad-y: 0;
|
|
13
|
+
--bce-button-pad-x: var(--bc-size-ui-12);
|
|
14
|
+
--bce-button-icon-size: 18px;
|
|
15
|
+
--bce-button-font-family: var(--bc-type-label-3-font-family);
|
|
16
|
+
--bce-button-font-size: var(--bc-type-label-3-font-size);
|
|
17
|
+
--bce-button-font-weight: var(--bc-type-label-3-font-weight);
|
|
18
|
+
--bce-button-line-height: var(--bc-type-label-3-line-height);
|
|
19
|
+
--bce-button-letter-spacing: var(--bc-type-label-3-letter-spacing);
|
|
20
|
+
--bce-button-colour: var(--bc-color-text-inverse);
|
|
21
|
+
// The strong fill keeps the default Neutral label above normal-text contrast.
|
|
22
|
+
--bce-button-background: var(--bc-color-fill-context-strong);
|
|
23
|
+
--bce-button-outline: var(--bc-color-fill-context-strong);
|
|
24
|
+
--bce-button-hover-background: var(--bc-color-fill-context-bold);
|
|
25
|
+
--bce-button-active-background: var(--bc-color-fill-context-bold);
|
|
26
|
+
--bce-button-hover-outline: var(--bc-color-fill-context-bold);
|
|
27
|
+
--bce-button-active-outline: var(--bc-color-fill-context-bold);
|
|
28
|
+
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
min-height: var(--bce-button-height);
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
min-inline-size: 0;
|
|
34
|
+
white-space: normal;
|
|
35
|
+
overflow-wrap: anywhere;
|
|
36
|
+
padding: var(--bce-button-pad-y) var(--bce-button-pad-x);
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--bc-size-ui-6);
|
|
40
|
+
border-radius: var(--bc-radius-sm);
|
|
41
|
+
border: var(--bc-border-width-sm) solid var(--bce-button-outline);
|
|
42
|
+
background: var(--bce-button-background);
|
|
43
|
+
color: var(--bce-button-colour);
|
|
44
|
+
|
|
45
|
+
// The size and project override hook must control vertical padding.
|
|
46
|
+
// min-height centres the content when padding is smaller than the target height.
|
|
47
|
+
padding-block: var(--bce-button-pad-y);
|
|
48
|
+
|
|
49
|
+
text-align: center;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
vertical-align: middle;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
user-select: none;
|
|
54
|
+
touch-action: manipulation;
|
|
55
|
+
transition: background-color var(--bc-motion-interaction), border-color var(--bc-motion-interaction), color var(--bc-motion-interaction);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Core's button reset uses `font: inherit`; this scoped rule restores the
|
|
59
|
+
// selected Label role for native and explicit Button styles.
|
|
60
|
+
#{$levelsui-selector}:is(button, .bce-button) {
|
|
61
|
+
font-family: var(--bce-button-font-family);
|
|
62
|
+
font-size: var(--bce-button-font-size);
|
|
63
|
+
font-weight: var(--bce-button-font-weight);
|
|
64
|
+
line-height: var(--bce-button-line-height);
|
|
65
|
+
letter-spacing: var(--bce-button-letter-spacing);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//
|
|
69
|
+
// Anatomy
|
|
70
|
+
//
|
|
71
|
+
.bce-button__icon {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
width: var(--bce-button-icon-size);
|
|
74
|
+
height: var(--bce-button-icon-size);
|
|
75
|
+
font-size: var(--bce-button-icon-size);
|
|
76
|
+
flex: none;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bce-button__icon :is(svg, iconify-icon) {
|
|
82
|
+
display: block;
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Provide outline-icon defaults without overriding an SVG's declared fill/stroke.
|
|
88
|
+
.bce-button__icon svg:not([fill]):not([stroke]) {
|
|
89
|
+
fill: none;
|
|
90
|
+
stroke: currentColor;
|
|
91
|
+
stroke-width: 2;
|
|
92
|
+
stroke-linecap: round;
|
|
93
|
+
stroke-linejoin: round;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.bce-button__label {
|
|
97
|
+
min-width: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
//
|
|
101
|
+
// Button variants
|
|
102
|
+
//
|
|
103
|
+
.bce-button--outline,
|
|
104
|
+
.bce-button--ghost {
|
|
105
|
+
--bce-button-colour: var(--bc-color-text-context-strong);
|
|
106
|
+
--bce-button-background: transparent;
|
|
107
|
+
--bce-button-hover-background: var(--bc-color-fill-context-subtle);
|
|
108
|
+
--bce-button-active-background: var(--bc-color-fill-context-subtle);
|
|
109
|
+
--bce-button-hover-outline: var(--bc-color-border-context-strong);
|
|
110
|
+
--bce-button-active-outline: var(--bc-color-border-context-bold);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.bce-button--outline {
|
|
114
|
+
--bce-button-outline: var(--bc-color-border-context);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.bce-button--ghost {
|
|
118
|
+
--bce-button-outline: transparent;
|
|
119
|
+
--bce-button-hover-outline: transparent;
|
|
120
|
+
--bce-button-active-outline: transparent;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
//
|
|
124
|
+
// Sizes — established numeric compatibility API
|
|
125
|
+
//
|
|
126
|
+
.bce-button--56 {
|
|
127
|
+
--bce-button-icon-size: var(--bc-size-ui-24);
|
|
128
|
+
--bce-button-height: var(--bc-size-ui-56);
|
|
129
|
+
--bce-button-pad-y: var(--bc-size-ui-8);
|
|
130
|
+
--bce-button-pad-x: var(--bc-size-ui-12);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.bce-button--48 {
|
|
134
|
+
--bce-button-icon-size: var(--bc-size-ui-20);
|
|
135
|
+
--bce-button-height: var(--bc-size-ui-48);
|
|
136
|
+
--bce-button-pad-y: var(--bc-size-ui-6);
|
|
137
|
+
--bce-button-pad-x: var(--bc-size-ui-12);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.bce-button--40 {
|
|
141
|
+
--bce-button-icon-size: 18px;
|
|
142
|
+
--bce-button-height: var(--bc-size-ui-40);
|
|
143
|
+
--bce-button-pad-y: var(--bc-size-ui-6);
|
|
144
|
+
--bce-button-pad-x: var(--bc-size-ui-12);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.bce-button--32 {
|
|
148
|
+
--bce-button-icon-size: var(--bc-size-ui-16);
|
|
149
|
+
--bce-button-height: var(--bc-size-ui-32);
|
|
150
|
+
--bce-button-pad-y: var(--bc-size-ui-4);
|
|
151
|
+
--bce-button-pad-x: var(--bc-size-ui-8);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.bce-button--24 {
|
|
155
|
+
--bce-button-font-family: var(--bc-type-label-4-font-family);
|
|
156
|
+
--bce-button-font-size: var(--bc-type-label-4-font-size);
|
|
157
|
+
--bce-button-font-weight: var(--bc-type-label-4-font-weight);
|
|
158
|
+
--bce-button-line-height: var(--bc-type-label-4-line-height);
|
|
159
|
+
--bce-button-letter-spacing: var(--bc-type-label-4-letter-spacing);
|
|
160
|
+
--bce-button-icon-size: var(--bc-size-ui-12);
|
|
161
|
+
--bce-button-height: var(--bc-size-ui-24);
|
|
162
|
+
--bce-button-pad-y: var(--bc-size-ui-2);
|
|
163
|
+
--bce-button-pad-x: var(--bc-size-ui-6);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Figma label-role mapping: XXS = Label 4; XS/SM = Label 3; MD/LG = Label 2.
|
|
167
|
+
.bce-button--48,
|
|
168
|
+
.bce-button--56 {
|
|
169
|
+
--bce-button-font-family: var(--bc-type-label-2-font-family);
|
|
170
|
+
--bce-button-font-size: var(--bc-type-label-2-font-size);
|
|
171
|
+
--bce-button-font-weight: var(--bc-type-label-2-font-weight);
|
|
172
|
+
--bce-button-line-height: var(--bc-type-label-2-line-height);
|
|
173
|
+
--bce-button-letter-spacing: var(--bc-type-label-2-letter-spacing);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Icon-only buttons
|
|
177
|
+
.bce-button--icon-only {
|
|
178
|
+
aspect-ratio: 1;
|
|
179
|
+
min-inline-size: var(--bce-button-height);
|
|
180
|
+
padding-inline: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
//
|
|
184
|
+
// Interaction states
|
|
185
|
+
//
|
|
186
|
+
@media (hover: hover) {
|
|
187
|
+
#{$levelsui-selector}:not(:disabled):not([aria-disabled="true"]):hover {
|
|
188
|
+
background: var(--bce-button-hover-background);
|
|
189
|
+
border-color: var(--bce-button-hover-outline);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
#{$levelsui-selector}:not(:disabled):not([aria-disabled="true"]):active {
|
|
194
|
+
background: var(--bce-button-active-background);
|
|
195
|
+
border-color: var(--bce-button-active-outline);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#{$levelsui-selector}:focus-visible {
|
|
199
|
+
outline: var(--bc-border-width-sm) solid var(--bc-color-border-context-strong);
|
|
200
|
+
outline-offset: var(--bc-size-ui-2);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
#{$levelsui-selector}:disabled,
|
|
204
|
+
#{$levelsui-selector}[aria-disabled="true"] {
|
|
205
|
+
opacity: var(--bc-interaction-disabled-opacity);
|
|
206
|
+
cursor: not-allowed;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@media (prefers-reduced-motion: reduce) {
|
|
210
|
+
#{$levelsui-selector} {
|
|
211
|
+
transition: none;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// CSS-only: consumers own their interaction logic.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "button-lumen-shift",
|
|
4
|
+
"displayName": "Lumen Shift",
|
|
5
|
+
"description": "Independent faithful port of the original Lumen Shift Button treatment: 131° five-stop gradient, luminous pseudo-element, original outline/ghost rendering and original interaction timings.",
|
|
6
|
+
"level": "elements",
|
|
7
|
+
"category": [
|
|
8
|
+
"actions",
|
|
9
|
+
"controls",
|
|
10
|
+
"button"
|
|
11
|
+
],
|
|
12
|
+
"className": "bce-button-lumen-shift",
|
|
13
|
+
"source": {
|
|
14
|
+
"scss": "01. Elements/actions/controls/button-lumen-shift/src/button-lumen-shift.scss",
|
|
15
|
+
"css": "dist/components/button-lumen-shift.css"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"css": [
|
|
19
|
+
"foundations"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"documentation": {
|
|
23
|
+
"guide": "docs/README.md",
|
|
24
|
+
"api": "docs/api.json",
|
|
25
|
+
"examples": "examples/index.json"
|
|
26
|
+
},
|
|
27
|
+
"native": {
|
|
28
|
+
"family": "button",
|
|
29
|
+
"selectors": [
|
|
30
|
+
"button"
|
|
31
|
+
],
|
|
32
|
+
"eligible": true,
|
|
33
|
+
"restrictions": [
|
|
34
|
+
"CSS-only native button anatomy; interactions use native pseudo-classes; application owns loading and navigation."
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"previewControls": {
|
|
38
|
+
"colourContexts": [
|
|
39
|
+
"primary",
|
|
40
|
+
"secondary",
|
|
41
|
+
"accent",
|
|
42
|
+
"neutral",
|
|
43
|
+
"success",
|
|
44
|
+
"warning",
|
|
45
|
+
"error",
|
|
46
|
+
"info"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"customisation": {
|
|
50
|
+
"variables": [
|
|
51
|
+
"--bce-button-lumen-shift-height",
|
|
52
|
+
"--bce-button-lumen-shift-pad-y",
|
|
53
|
+
"--bce-button-lumen-shift-pad-x",
|
|
54
|
+
"--bce-button-lumen-shift-gap",
|
|
55
|
+
"--bce-button-lumen-shift-radius",
|
|
56
|
+
"--bce-button-lumen-shift-border-width",
|
|
57
|
+
"--bce-button-lumen-shift-font-size",
|
|
58
|
+
"--bce-button-lumen-shift-font-weight",
|
|
59
|
+
"--bce-button-lumen-shift-line-height",
|
|
60
|
+
"--bce-button-lumen-shift-letter-spacing",
|
|
61
|
+
"--bce-button-lumen-shift-focus-outline-width",
|
|
62
|
+
"--bce-button-lumen-shift-fill",
|
|
63
|
+
"--bce-button-lumen-shift-fill-strong",
|
|
64
|
+
"--bce-button-lumen-shift-fill-bold",
|
|
65
|
+
"--bce-button-lumen-shift-fill-subtle",
|
|
66
|
+
"--bce-button-lumen-shift-source-text",
|
|
67
|
+
"--bce-button-lumen-shift-source-outline-focus",
|
|
68
|
+
"--bce-button-lumen-shift-foreground",
|
|
69
|
+
"--bce-button-lumen-shift-border",
|
|
70
|
+
"--bce-button-lumen-shift-focus",
|
|
71
|
+
"--bce-button-lumen-shift-sheen-colour",
|
|
72
|
+
"--bce-button-lumen-shift-sheen-opacity",
|
|
73
|
+
"--bce-button-lumen-shift-glow-colour",
|
|
74
|
+
"--bce-button-lumen-shift-glow-opacity",
|
|
75
|
+
"--bce-button-lumen-shift-shadow-rest",
|
|
76
|
+
"--bce-button-lumen-shift-shadow-hover",
|
|
77
|
+
"--bce-button-lumen-shift-icon-size",
|
|
78
|
+
"--bce-button-lumen-shift-font-family",
|
|
79
|
+
"--bce-button-lumen-shift-stripe-colour",
|
|
80
|
+
"--bce-button-lumen-shift-press-colour-start",
|
|
81
|
+
"--bce-button-lumen-shift-press-colour-end"
|
|
82
|
+
],
|
|
83
|
+
"notes": [
|
|
84
|
+
"The original Button base and Lumen Shift treatment are combined in one standalone Asset; no dependency on Standard Button.",
|
|
85
|
+
"Original 131deg gradient stops, shift positions, 520ms motion, 180ms hover/press timing, outline and ghost pseudo-element passes are retained.",
|
|
86
|
+
"Retired colour/typography APIs are mapped to current BufferCore context and typography semantics; design-specific effect timing remains local.",
|
|
87
|
+
"Sizing and the old inset outline box model are preserved; project overrides may adapt variables independently of native-default ownership.",
|
|
88
|
+
"Existing pad-x/pad-y, foreground, border and focus project override hooks remain usable through aliases to the faithful implementation.",
|
|
89
|
+
"The repeated white inset sheen uses an Asset-owned colour hook; it stays white by default for visual fidelity and is not a Core semantic shadow or foreground role.",
|
|
90
|
+
"Original context-coloured 0 8px 24px hover glow (22%/12%/10% for solid/outline/ghost) starts from a shadow-free resting state and transitions in/out with box-shadow 180ms ease. Core elevation shadows are deliberately not used because their geometry is different.",
|
|
91
|
+
"Solid foreground defaults to --bc-color-text-inverse; transparent Outline/Ghost default to --bc-color-text. The --bce-button-lumen-shift-foreground project hook overrides all treatments and states.",
|
|
92
|
+
"Secondary and Warning use local highlight-colour adjustments for visible, clean gradient movement; Core context fills, effect geometry and timings are unchanged."
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|