@esportsplus/ui 0.57.0 → 0.58.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/README.md +123 -39
- package/build/components/accordion/group.d.ts +14 -0
- package/build/components/accordion/group.js +21 -0
- package/build/components/accordion/index.d.ts +9 -0
- package/build/components/accordion/index.js +20 -3
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +3 -0
- package/build/components/button/sidebar.js +40 -10
- package/build/components/capslock/index.js +1 -1
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat-minimap/scss/index.scss +1 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.d.ts +1 -0
- package/build/components/color-picker/index.js +166 -136
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +0 -1
- package/build/components/command/index.js +3 -2
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/copy/scss/index.scss +1 -1
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.js +3 -3
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/index.d.ts +0 -1
- package/build/components/editor/code/index.js +0 -1
- package/build/components/editor/code/minimap.d.ts +2 -1
- package/build/components/editor/code/minimap.js +5 -2
- package/build/components/editor/code/view.d.ts +3 -1
- package/build/components/editor/code/view.js +37 -26
- package/build/components/editor/diffs/index.d.ts +0 -1
- package/build/components/editor/diffs/index.js +0 -1
- package/build/components/editor/diffs/merge.js +7 -3
- package/build/components/editor/diffs/view.js +3 -1
- package/build/components/editor/index.d.ts +4 -1
- package/build/components/editor/index.js +2 -1
- package/build/components/editor/markdown/editing.js +22 -3
- package/build/components/editor/markdown/erase.d.ts +9 -0
- package/build/components/editor/markdown/erase.js +78 -0
- package/build/components/editor/markdown/index.d.ts +0 -1
- package/build/components/editor/markdown/index.js +0 -1
- package/build/components/editor/markdown/layout.d.ts +2 -9
- package/build/components/editor/markdown/layout.js +2 -7
- package/build/components/editor/markdown/render.d.ts +0 -1
- package/build/components/editor/markdown/render.js +287 -235
- package/build/components/editor/markdown/view.js +566 -667
- package/build/components/editor/viewer/index.d.ts +27 -0
- package/build/components/editor/viewer/index.js +250 -0
- package/build/components/editor/viewer/model.d.ts +15 -0
- package/build/components/editor/viewer/model.js +73 -0
- package/build/components/editor/workspace/index.d.ts +6 -2
- package/build/components/editor/workspace/index.js +243 -137
- package/build/components/editor/workspace/keybindings.d.ts +37 -0
- package/build/components/editor/workspace/keybindings.js +288 -0
- package/build/components/editor/workspace/model.d.ts +55 -2
- package/build/components/editor/workspace/model.js +141 -3
- package/build/components/editor/workspace/navigate.d.ts +19 -0
- package/build/components/editor/workspace/navigate.js +118 -0
- package/build/components/editor/workspace/session.d.ts +29 -0
- package/build/components/editor/workspace/session.js +373 -0
- package/build/components/editor/workspace/shortcuts.d.ts +19 -0
- package/build/components/editor/workspace/shortcuts.js +185 -0
- package/build/components/editor/workspace/status.d.ts +34 -0
- package/build/components/editor/workspace/status.js +193 -0
- package/build/components/editor/workspace/statusbar.d.ts +15 -0
- package/build/components/editor/workspace/statusbar.js +190 -0
- package/build/components/editor/workspace/strip.d.ts +27 -0
- package/build/components/editor/workspace/strip.js +239 -0
- package/build/components/editor/workspace/tabs.d.ts +15 -0
- package/build/components/editor/workspace/tabs.js +63 -0
- package/build/components/error/index.js +1 -1
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +5 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/heatmap/index.js +3 -3
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +2 -0
- package/build/components/index.js +2 -0
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/tree.d.ts +3 -1
- package/build/components/nav/tree.js +30 -60
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/arrows.d.ts +15 -0
- package/build/components/pagination/arrows.js +65 -0
- package/build/components/pagination/cards.d.ts +23 -0
- package/build/components/pagination/cards.js +66 -0
- package/build/components/pagination/index.d.ts +5 -0
- package/build/components/pagination/index.js +3 -1
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/pull-to-refresh/scss/index.scss +1 -1
- package/build/components/range/index.js +1 -1
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/section/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +1 -0
- package/build/components/select/index.js +16 -11
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/index.js +3 -3
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/{css-utilities → components}/theme/index.d.ts +1 -1
- package/build/{css-utilities → components}/theme/index.js +15 -5
- package/build/components/theme/scss/index.scss +2 -0
- package/build/components/theme-picker/index.d.ts +52 -0
- package/build/components/theme-picker/index.js +167 -0
- package/build/components/theme-picker/scss/index.scss +2 -0
- package/build/components/toast/index.js +3 -5
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.js +3 -1
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/{css-utilities → modifiers}/glass/index.d.ts +2 -2
- package/build/modifiers/glass/index.js +28 -0
- package/build/modifiers/glass/scss/index.scss +2 -0
- package/build/{css-utilities → modifiers}/index.d.ts +0 -1
- package/build/{css-utilities → modifiers}/index.js +0 -1
- package/build/modifiers/scrollbar/index.d.ts +72 -0
- package/build/{css-utilities → modifiers}/scrollbar/index.js +52 -19
- package/build/modifiers/scrollbar/scss/index.scss +2 -0
- package/build/normalize/scss/index.scss +1 -2
- package/layer.scss +1 -1
- package/package.json +11 -18
- package/scripts/code-editor-markdown.test.mjs +45 -14
- package/scripts/code-viewer.test.mjs +69 -0
- package/scripts/workspace-keybindings.test.mjs +273 -0
- package/scripts/workspace-session.test.mjs +349 -0
- package/scripts/workspace-status.test.mjs +229 -0
- package/scripts/workspace-tabs.test.mjs +142 -0
- package/src/components/accordion/group.ts +39 -0
- package/src/components/accordion/index.ts +32 -6
- package/src/components/accordion/scss/index.scss +12 -21
- package/src/components/accordion/scss/variables.scss +18 -3
- package/src/components/announcement/scss/index.scss +4 -4
- package/src/components/announcement/scss/variables.scss +6 -6
- package/src/components/banner/scss/index.scss +1 -1
- package/src/components/breadcrumb/scss/index.scss +35 -50
- package/src/components/breadcrumb/scss/variables.scss +23 -31
- package/src/components/button/scss/_fan.scss +39 -43
- package/src/components/button/scss/_morph.scss +66 -78
- package/src/components/button/scss/_sidebar.scss +41 -30
- package/src/components/button/scss/_split.scss +9 -9
- package/src/components/button/scss/index.scss +23 -19
- package/src/components/button/scss/variables.scss +94 -90
- package/src/components/button/sidebar.ts +36 -24
- package/src/components/capslock/index.ts +2 -2
- package/src/components/capslock/scss/index.scss +11 -6
- package/src/components/capslock/scss/variables.scss +3 -5
- package/src/components/card/scss/_expand.scss +58 -64
- package/src/components/card/scss/index.scss +40 -21
- package/src/components/card/scss/variables.scss +40 -31
- package/src/components/cc/scss/index.scss +68 -68
- package/src/components/cc/scss/variables.scss +13 -14
- package/src/components/chat-minimap/scss/index.scss +24 -16
- package/src/components/chat-minimap/scss/variables.scss +37 -37
- package/src/components/checkbox/scss/index.scss +54 -52
- package/src/components/checkbox/scss/variables.scss +37 -39
- package/src/components/color-picker/index.ts +157 -120
- package/src/components/color-picker/scss/index.scss +159 -96
- package/src/components/color-picker/scss/variables.scss +33 -15
- package/src/components/command/index.ts +3 -2
- package/src/components/command/scss/index.scss +10 -14
- package/src/components/command/scss/variables.scss +12 -35
- package/src/components/copy/scss/index.scss +6 -6
- package/src/components/copy/scss/variables.scss +12 -15
- package/src/components/counter/scss/index.scss +14 -14
- package/src/components/counter/scss/variables.scss +1 -1
- package/src/components/datalist/index.ts +3 -3
- package/src/components/datalist/scss/index.scss +7 -6
- package/src/components/datalist/scss/variables.scss +7 -3
- package/src/components/dock/scss/index.scss +10 -15
- package/src/components/dock/scss/variables.scss +29 -25
- package/src/components/editor/code/index.ts +0 -1
- package/src/components/editor/code/minimap.ts +13 -5
- package/src/components/editor/code/scss/_editor.scss +83 -81
- package/src/components/editor/code/scss/_features.scss +106 -97
- package/src/components/editor/code/scss/_services.scss +27 -25
- package/src/components/editor/code/scss/index.scss +0 -1
- package/src/components/editor/code/scss/variables.scss +30 -26
- package/src/components/editor/code/view.ts +14 -5
- package/src/components/editor/diffs/index.ts +0 -1
- package/src/components/editor/diffs/merge.ts +2 -1
- package/src/components/editor/diffs/scss/_diffs.scss +67 -57
- package/src/components/editor/diffs/scss/_merge.scss +17 -14
- package/src/components/editor/diffs/scss/index.scss +0 -1
- package/src/components/editor/diffs/scss/variables.scss +25 -18
- package/src/components/editor/diffs/view.ts +2 -1
- package/src/components/editor/index.ts +7 -1
- package/src/components/editor/markdown/editing.ts +38 -3
- package/src/components/editor/markdown/erase.ts +124 -0
- package/src/components/editor/markdown/index.ts +0 -1
- package/src/components/editor/markdown/layout.ts +3 -12
- package/src/components/editor/markdown/render.ts +65 -37
- package/src/components/editor/markdown/scss/index.scss +92 -124
- package/src/components/editor/markdown/scss/variables.scss +39 -19
- package/src/components/editor/markdown/view.ts +737 -786
- package/src/components/editor/tree/scss/index.scss +121 -110
- package/src/components/editor/tree/scss/variables.scss +48 -54
- package/src/components/editor/viewer/index.ts +321 -0
- package/src/components/editor/viewer/model.ts +130 -0
- package/src/components/editor/viewer/scss/_viewer.scss +302 -0
- package/src/components/editor/viewer/scss/index.scss +2 -0
- package/src/components/editor/viewer/scss/variables.scss +69 -0
- package/src/components/editor/workspace/index.ts +159 -31
- package/src/components/editor/workspace/keybindings.ts +447 -0
- package/src/components/editor/workspace/model.ts +233 -3
- package/src/components/editor/workspace/navigate.ts +194 -0
- package/src/components/editor/workspace/scss/index.scss +72 -59
- package/src/components/editor/workspace/scss/keybindings.scss +190 -0
- package/src/components/editor/workspace/scss/status.scss +122 -0
- package/src/components/editor/workspace/scss/tabs.scss +56 -0
- package/src/components/editor/workspace/session.ts +551 -0
- package/src/components/editor/workspace/shortcuts.ts +255 -0
- package/src/components/editor/workspace/status.ts +259 -0
- package/src/components/editor/workspace/statusbar.ts +255 -0
- package/src/components/editor/workspace/strip.ts +273 -0
- package/src/components/editor/workspace/tabs.ts +106 -0
- package/src/components/error/index.ts +1 -1
- package/src/components/error/scss/index.scss +19 -19
- package/src/components/error/scss/variables.scss +2 -2
- package/src/components/filter/index.ts +7 -2
- package/src/components/filter/scss/index.scss +1 -1
- package/src/components/filter/scss/variables.scss +11 -10
- package/src/components/frame/scss/index.scss +12 -12
- package/src/components/frame/scss/variables.scss +8 -8
- package/src/components/heatmap/index.ts +3 -3
- package/src/components/heatmap/scss/index.scss +28 -26
- package/src/components/heatmap/scss/variables.scss +18 -17
- package/src/components/highlight/scss/index.scss +17 -13
- package/src/components/highlight/scss/variables.scss +8 -10
- package/src/components/icon/scss/index.scss +10 -0
- package/src/components/icon/scss/variables.scss +5 -0
- package/src/components/image/scss/index.scss +9 -9
- package/src/components/image/scss/variables.scss +7 -2
- package/src/components/index.ts +2 -0
- package/src/components/inline-edit/scss/index.scss +99 -104
- package/src/components/inline-edit/scss/variables.scss +40 -39
- package/src/components/input/scss/_field.scss +6 -20
- package/src/components/input/scss/_scrub.scss +10 -8
- package/src/components/input/scss/_tag.scss +35 -37
- package/src/components/input/scss/variables.scss +100 -99
- package/src/components/link/scss/index.scss +4 -1
- package/src/components/loading/scss/index.scss +1 -1
- package/src/components/loading/scss/variables.scss +1 -1
- package/src/components/marquee/scss/index.scss +9 -5
- package/src/components/marquee/scss/variables.scss +3 -1
- package/src/components/metric/scss/_flash.scss +3 -1
- package/src/components/metric/scss/index.scss +8 -6
- package/src/components/metric/scss/variables.scss +26 -20
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +12 -40
- package/src/components/nav/scss/variables.scss +30 -11
- package/src/components/nav/tree.ts +19 -62
- package/src/components/notification/scss/index.scss +7 -7
- package/src/components/notification/scss/variables.scss +7 -9
- package/src/components/overlay/scss/index.scss +181 -170
- package/src/components/overlay/scss/variables.scss +26 -57
- package/src/components/page/scss/index.scss +12 -11
- package/src/components/page/scss/variables.scss +5 -0
- package/src/components/pagination/arrows.ts +58 -0
- package/src/components/pagination/cards.ts +57 -0
- package/src/components/pagination/index.ts +4 -1
- package/src/components/pagination/scss/_arrows.scss +69 -0
- package/src/components/pagination/scss/_cards.scss +121 -0
- package/src/components/pagination/scss/_dots.scss +2 -5
- package/src/components/pagination/scss/index.scss +8 -6
- package/src/components/pagination/scss/variables.scss +87 -37
- package/src/components/progress/scss/_text.scss +21 -18
- package/src/components/progress/scss/index.scss +1 -1
- package/src/components/progress/scss/variables.scss +12 -12
- package/src/components/pull-to-refresh/scss/index.scss +2 -1
- package/src/components/pull-to-refresh/scss/variables.scss +11 -6
- package/src/components/range/index.ts +1 -1
- package/src/components/range/scss/_filter.scss +62 -51
- package/src/components/range/scss/_slider.scss +78 -75
- package/src/components/range/scss/_vertical.scss +6 -6
- package/src/components/range/scss/index.scss +3 -2
- package/src/components/range/scss/variables.scss +26 -23
- package/src/components/relative-time/scss/index.scss +27 -27
- package/src/components/relative-time/scss/variables.scss +10 -12
- package/src/components/root/scss/index.scss +71 -43
- package/src/components/root/scss/variables.scss +35 -31
- package/src/components/section/scss/index.scss +31 -0
- package/src/components/section/scss/variables.scss +21 -0
- package/src/components/select/index.ts +11 -6
- package/src/components/select/scss/index.scss +21 -32
- package/src/components/select/scss/variables.scss +25 -18
- package/src/components/shortcut-recorder/scss/index.scss +13 -12
- package/src/components/shortcut-recorder/scss/variables.scss +12 -13
- package/src/components/sortable/scss/index.scss +47 -44
- package/src/components/sortable/scss/variables.scss +4 -5
- package/src/components/sticky-header/index.ts +4 -4
- package/src/components/sticky-header/scss/index.scss +14 -13
- package/src/components/sticky-header/scss/variables.scss +9 -9
- package/src/components/story/scss/index.scss +26 -30
- package/src/components/story/scss/variables.scss +16 -9
- package/src/components/surface-field/scss/index.scss +45 -40
- package/src/components/surface-field/scss/variables.scss +5 -6
- package/src/components/tasklist/scss/index.scss +19 -19
- package/src/components/tasklist/scss/variables.scss +26 -29
- package/src/components/text/scss/index.scss +2 -1
- package/src/components/textarea/scss/variables.scss +1 -1
- package/src/{css-utilities → components}/theme/index.ts +17 -3
- package/src/components/theme/scss/index.scss +1 -0
- package/src/components/theme/scss/variables.scss +78 -0
- package/src/components/theme-picker/index.ts +231 -0
- package/src/components/theme-picker/scss/index.scss +264 -0
- package/src/components/toast/index.ts +28 -30
- package/src/components/toast/scss/index.scss +87 -87
- package/src/components/toast/scss/variables.scss +39 -39
- package/src/components/tooltip/menu.ts +4 -1
- package/src/components/tooltip/scss/_east.scss +10 -10
- package/src/components/tooltip/scss/_menu.scss +284 -269
- package/src/components/tooltip/scss/_north.scss +10 -10
- package/src/components/tooltip/scss/_shared.scss +7 -7
- package/src/components/tooltip/scss/_south.scss +10 -10
- package/src/components/tooltip/scss/_west.scss +10 -10
- package/src/components/tooltip/scss/index.scss +21 -20
- package/src/components/tooltip/scss/variables.scss +104 -96
- package/src/components/typewriter/scss/_retype.scss +12 -11
- package/src/components/typewriter/scss/_rotate.scss +2 -1
- package/src/components/typewriter/scss/variables.scss +41 -39
- package/src/components/uptime/scss/index.scss +15 -15
- package/src/components/uptime/scss/variables.scss +8 -8
- package/src/components/usage-meter/scss/index.scss +3 -1
- package/src/components/usage-meter/scss/variables.scss +5 -5
- package/src/css-utilities/absolute.scss +64 -0
- package/src/css-utilities/background.scss +43 -0
- package/src/css-utilities/border.scss +45 -0
- package/src/css-utilities/box-shadow.scss +29 -0
- package/src/css-utilities/color.scss +41 -0
- package/src/css-utilities/flex.scss +64 -0
- package/src/css-utilities/font/geist/{scss/index.scss → index.scss} +12 -4
- package/src/css-utilities/font/montserrat/Montserrat-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/montserrat/Montserrat-Variable.woff2 +0 -0
- package/src/css-utilities/font/montserrat/OFL.txt +93 -0
- package/src/css-utilities/font/montserrat/index.scss +38 -0
- package/src/{shared/scss → css-utilities}/icon.scss +1 -1
- package/src/css-utilities/{inline/scss/index.scss → inline.scss} +1 -1
- package/src/css-utilities/{skeleton/scss/index.scss → skeleton.scss} +11 -11
- package/src/css-utilities/surface.scss +266 -0
- package/src/css-utilities/text.scss +191 -0
- package/src/modifiers/glass/index.ts +44 -0
- package/src/{css-utilities → modifiers}/glass/scss/index.scss +6 -6
- package/src/{css-utilities → modifiers}/glass/scss/variables.scss +1 -1
- package/src/{css-utilities → modifiers}/index.ts +0 -1
- package/src/{css-utilities → modifiers}/scrollbar/index.ts +92 -17
- package/src/{css-utilities → modifiers}/scrollbar/scss/index.scss +178 -177
- package/src/{css-utilities → modifiers}/scrollbar/scss/variables.scss +28 -21
- package/src/normalize/scss/index.scss +4 -2
- package/src/shared/scss/color-weights.scss +19 -0
- package/src/shared/scss/index.scss +1 -12
- package/src/tokens/scss/blur.scss +5 -0
- package/src/tokens/scss/color.scss +74 -50
- package/src/tokens/scss/index.scss +1 -2
- package/src/tokens/scss/size.scss +0 -2
- package/src/tokens/scss/state.scss +3 -2
- package/src/tokens/scss/transition.scss +19 -2
- package/storage/svg/monitor.svg +1 -0
- package/storage/svg/moon.svg +1 -0
- package/storage/svg/pin.svg +1 -0
- package/storage/svg/sun.svg +1 -0
- package/vite.config.ts +33 -8
- package/build/css-utilities/background/scss/index.scss +0 -2
- package/build/css-utilities/border/scss/index.scss +0 -2
- package/build/css-utilities/color/scss/index.scss +0 -2
- package/build/css-utilities/flex/scss/index.scss +0 -2
- package/build/css-utilities/font/geist/index.d.ts +0 -1
- package/build/css-utilities/font/geist/index.js +0 -1
- package/build/css-utilities/font/geist/scss/index.scss +0 -2
- package/build/css-utilities/font/montserrat/index.d.ts +0 -1
- package/build/css-utilities/font/montserrat/index.js +0 -1
- package/build/css-utilities/font/montserrat/scss/Montserrat-Bold.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Italic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Medium.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Regular.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/index.scss +0 -2
- package/build/css-utilities/glass/index.js +0 -26
- package/build/css-utilities/glass/scss/index.scss +0 -2
- package/build/css-utilities/index.scss +0 -2
- package/build/css-utilities/inline/scss/index.scss +0 -2
- package/build/css-utilities/scrollbar/index.d.ts +0 -42
- package/build/css-utilities/scrollbar/scss/index.scss +0 -2
- package/build/css-utilities/skeleton/scss/index.scss +0 -2
- package/build/css-utilities/text/scss/index.scss +0 -2
- package/build/themes/dark/index.d.ts +0 -3
- package/build/themes/dark/index.js +0 -3
- package/build/themes/dark/input.d.ts +0 -3
- package/build/themes/dark/input.js +0 -12
- package/build/themes/dark/select.d.ts +0 -3
- package/build/themes/dark/select.js +0 -23
- package/build/themes/dark/textarea.d.ts +0 -2186
- package/build/themes/dark/textarea.js +0 -11
- package/src/css-utilities/background/scss/index.scss +0 -1
- package/src/css-utilities/background/scss/variables.scss +0 -18
- package/src/css-utilities/border/scss/index.scss +0 -1
- package/src/css-utilities/border/scss/variables.scss +0 -23
- package/src/css-utilities/color/scss/index.scss +0 -1
- package/src/css-utilities/color/scss/variables.scss +0 -17
- package/src/css-utilities/flex/scss/index.scss +0 -57
- package/src/css-utilities/flex/scss/variables.scss +0 -16
- package/src/css-utilities/font/geist/index.ts +0 -1
- package/src/css-utilities/font/montserrat/index.ts +0 -1
- package/src/css-utilities/font/montserrat/scss/Montserrat-Bold.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Italic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Medium.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Regular.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/index.scss +0 -94
- package/src/css-utilities/glass/index.ts +0 -42
- package/src/css-utilities/index.scss +0 -13
- package/src/css-utilities/skeleton/scss/variables.scss +0 -3
- package/src/css-utilities/text/scss/index.scss +0 -152
- package/src/css-utilities/text/scss/variables.scss +0 -22
- package/src/shared/scss/absolute.scss +0 -28
- package/src/shared/scss/background.scss +0 -21
- package/src/shared/scss/border.scss +0 -21
- package/src/shared/scss/color.scss +0 -21
- package/src/shared/scss/position.scss +0 -55
- package/src/shared/scss/text.scss +0 -31
- package/src/themes/dark/index.ts +0 -3
- package/src/themes/dark/input.ts +0 -16
- package/src/themes/dark/select.ts +0 -28
- package/src/themes/dark/textarea.ts +0 -13
- package/src/tokens/scss/box-shadow.scss +0 -23
- package/src/tokens/scss/font-family.scss +0 -5
- package/storage/code.md +0 -180
- package/storage/editor-features.md +0 -227
- package/build/css-utilities/font/geist/{scss/Geist-Italic-Variable.woff2 → Geist-Italic-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/Geist-Variable.woff2 → Geist-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/GeistMono-Italic-Variable.woff2 → GeistMono-Italic-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/GeistMono-Variable.woff2 → GeistMono-Variable.woff2} +0 -0
- package/src/{shared/scss → css-utilities}/anchor.scss +6 -6
- package/src/{shared/scss → css-utilities}/drag.scss +0 -0
- package/src/css-utilities/font/geist/{scss/Geist-Italic-Variable.woff2 → Geist-Italic-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/Geist-Variable.woff2 → Geist-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/GeistMono-Italic-Variable.woff2 → GeistMono-Italic-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/GeistMono-Variable.woff2 → GeistMono-Variable.woff2} +0 -0
- package/src/{shared/scss → css-utilities}/hidden.scss +11 -11
- /package/src/{shared/scss → css-utilities}/layer.scss +0 -0
- /package/src/{shared/scss → css-utilities}/reset.scss +0 -0
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
|
-
|
|
3
1
|
.breadcrumb {
|
|
4
2
|
--color: var(--color-text-300);
|
|
5
3
|
--color-active: var(--color-text-500);
|
|
6
|
-
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
7
4
|
// Arriving segments fade in slower than leaving ones fade out, so the gap a leaving one opens is already
|
|
8
5
|
// closing by the time the eye looks for it.
|
|
9
|
-
--enter-duration:
|
|
10
|
-
--exit-duration:
|
|
11
|
-
--focus-color: var(--color-
|
|
6
|
+
--enter-duration: var(--duration-moderate);
|
|
7
|
+
--exit-duration: var(--duration-moderate-exit);
|
|
8
|
+
--focus-color: var(--color-primary-500);
|
|
12
9
|
--font-size: var(--font-size-300);
|
|
13
10
|
--font-weight-current: var(--font-weight-500);
|
|
14
|
-
--height:
|
|
15
|
-
--hover-background:
|
|
16
|
-
--
|
|
11
|
+
--height: 24px;
|
|
12
|
+
--hover-background: var(--surface-background-hover);
|
|
13
|
+
// Resolved here, since a link's color state redefines --color and --color-active on it.
|
|
14
|
+
--link-color: var(--color);
|
|
15
|
+
--link-color-hover: var(--color-active);
|
|
16
|
+
--link-padding: calc(var(--size-300) / 2);
|
|
17
17
|
--link-radius: var(--border-radius-300);
|
|
18
|
-
--menu-background: var(--color-grey-400);
|
|
19
|
-
--menu-box-shadow: 0 0 0 var(--border-width-400) var(--color-border-300), var(--box-shadow-300);
|
|
20
|
-
--menu-duration-in: 0.18s;
|
|
21
|
-
--menu-duration-out: 0.1s;
|
|
22
18
|
--menu-radius: var(--border-radius-600);
|
|
23
19
|
--menu-width: 192px;
|
|
24
20
|
// Options are '.link's, and '.text' redefines --color and --color-active on them, so these resolve here first.
|
|
25
21
|
--option-color: var(--color-active);
|
|
26
22
|
--option-icon-color: var(--color);
|
|
27
|
-
--separator-color: oklch(from var(--color-
|
|
28
|
-
--separator-size:
|
|
29
|
-
--slide-duration:
|
|
30
|
-
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
--underline-color: oklch(from var(--color-text-500) l c h / 0.4);
|
|
23
|
+
--separator-color: oklch(from var(--color-primary-300) l c h / 0.5);
|
|
24
|
+
--separator-size: var(--size-400);
|
|
25
|
+
--slide-duration: var(--duration-moderate);
|
|
26
|
+
--slide-easing: var(--easing-spring);
|
|
27
|
+
--trigger-width: var(--height);
|
|
28
|
+
--underline-color: oklch(from var(--color-primary-500) l c h / 0.4);
|
|
34
29
|
|
|
35
30
|
|
|
36
31
|
&--compact {
|
|
37
|
-
--height:
|
|
38
|
-
--link-padding:
|
|
32
|
+
--height: var(--size-400);
|
|
33
|
+
--link-padding: calc(var(--size-100) / 2);
|
|
39
34
|
--separator-size: 14px;
|
|
40
|
-
--trigger-width:
|
|
35
|
+
--trigger-width: var(--height);
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
// Zeroes every fold timing, so nothing transitions until the first fit has painted.
|
|
@@ -47,19 +42,16 @@
|
|
|
47
42
|
--slide-duration: 0s;
|
|
48
43
|
}
|
|
49
44
|
|
|
45
|
+
// A surface through the tooltip content it reuses, so its colors are read at its own level.
|
|
50
46
|
&-menu.tooltip-content {
|
|
51
|
-
--background-default: var(--
|
|
47
|
+
--background-default: var(--surface-background-default);
|
|
52
48
|
--border-radius: var(--menu-radius);
|
|
53
|
-
--box-shadow:
|
|
49
|
+
--box-shadow-default:
|
|
50
|
+
0 0 0 var(--border-width-400) var(--surface-border-default),
|
|
51
|
+
var(--surface-shadow-default);
|
|
54
52
|
--offset: 0px;
|
|
55
53
|
--scale: 0.95;
|
|
56
54
|
--spacer: 6px;
|
|
57
|
-
--transition-duration: var(--menu-duration-out);
|
|
58
|
-
--transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
59
|
-
|
|
60
|
-
@include tokens.state(active) {
|
|
61
|
-
--transition-duration: var(--menu-duration-in);
|
|
62
|
-
}
|
|
63
55
|
}
|
|
64
56
|
|
|
65
57
|
// Clips the body only while folded or unfolding, so focus rings and the menu aren't cut off at rest.
|
|
@@ -8,18 +8,6 @@
|
|
|
8
8
|
@include tokens.state(active) {
|
|
9
9
|
z-index: 9;
|
|
10
10
|
|
|
11
|
-
> .button-fan-options > .button-fan-option {
|
|
12
|
-
--delay: calc(var(--i) * var(--stagger));
|
|
13
|
-
opacity: 1;
|
|
14
|
-
pointer-events: auto;
|
|
15
|
-
scale: 1;
|
|
16
|
-
translate: 0 0;
|
|
17
|
-
|
|
18
|
-
&:active {
|
|
19
|
-
scale: var(--option-pressed-scale);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
11
|
> .button--fan .button-fan-swap {
|
|
24
12
|
> :first-child {
|
|
25
13
|
opacity: 0;
|
|
@@ -31,6 +19,39 @@
|
|
|
31
19
|
rotate: 0deg;
|
|
32
20
|
}
|
|
33
21
|
}
|
|
22
|
+
|
|
23
|
+
> .button-fan-options > .button-fan-option {
|
|
24
|
+
--delay: calc(var(--i) * var(--stagger));
|
|
25
|
+
opacity: 1;
|
|
26
|
+
pointer-events: auto;
|
|
27
|
+
scale: 1;
|
|
28
|
+
translate: 0 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
&--e > .button-fan-options {
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
inset: 0 auto 0 100%;
|
|
36
|
+
padding-left: var(--spacer);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--n > .button-fan-options {
|
|
40
|
+
flex-direction: column-reverse;
|
|
41
|
+
inset: auto 0 100% 0;
|
|
42
|
+
padding-bottom: var(--spacer);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--s > .button-fan-options {
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
inset: 100% 0 auto 0;
|
|
48
|
+
padding-top: var(--spacer);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&--w > .button-fan-options {
|
|
52
|
+
flex-direction: row-reverse;
|
|
53
|
+
inset: 0 100% 0 auto;
|
|
54
|
+
padding-right: var(--spacer);
|
|
34
55
|
}
|
|
35
56
|
|
|
36
57
|
|
|
@@ -67,7 +88,7 @@
|
|
|
67
88
|
scale: var(--option-scale);
|
|
68
89
|
transform-origin: var(--origin);
|
|
69
90
|
transition:
|
|
70
|
-
opacity var(--option-opacity-duration)
|
|
91
|
+
opacity var(--option-opacity-duration) var(--option-spring) var(--delay),
|
|
71
92
|
scale var(--option-spring-duration) var(--option-spring) var(--delay),
|
|
72
93
|
translate var(--option-spring-duration) var(--option-spring) var(--delay);
|
|
73
94
|
translate:
|
|
@@ -84,42 +105,17 @@
|
|
|
84
105
|
}
|
|
85
106
|
|
|
86
107
|
|
|
87
|
-
&--e > .button-fan-options {
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
inset: 0 auto 0 100%;
|
|
90
|
-
padding-left: var(--spacer);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&--n > .button-fan-options {
|
|
94
|
-
flex-direction: column-reverse;
|
|
95
|
-
inset: auto 0 100% 0;
|
|
96
|
-
padding-bottom: var(--spacer);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&--s > .button-fan-options {
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
inset: 100% 0 auto 0;
|
|
102
|
-
padding-top: var(--spacer);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&--w > .button-fan-options {
|
|
106
|
-
flex-direction: row-reverse;
|
|
107
|
-
inset: 0 100% 0 auto;
|
|
108
|
-
padding-right: var(--spacer);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
108
|
@media (prefers-reduced-motion: reduce) {
|
|
113
109
|
--swap-rotate: 0deg;
|
|
114
110
|
|
|
111
|
+
.button-fan-swap > * {
|
|
112
|
+
transition: opacity var(--swap-spring-duration) var(--swap-spring);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
115
|
> .button-fan-options > .button-fan-option {
|
|
116
116
|
scale: 1;
|
|
117
|
-
transition: opacity
|
|
117
|
+
transition: opacity var(--option-opacity-duration) var(--option-spring) var(--delay);
|
|
118
118
|
translate: none;
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
.button-fan-swap > * {
|
|
122
|
-
transition: opacity 0.15s ease-out;
|
|
123
|
-
}
|
|
124
120
|
}
|
|
125
121
|
}
|
|
@@ -1,5 +1,67 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/hidden';
|
|
3
|
+
@use 'css-utilities/icon';
|
|
4
|
+
|
|
5
|
+
.button {
|
|
6
|
+
&--morph {
|
|
7
|
+
// Wait for the width to mostly open before shaking the settled shape.
|
|
8
|
+
&-error {
|
|
9
|
+
animation: button-morph-shake var(--morph-shake-duration) var(--morph-shake-easing) 150ms;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Keyed off the status, since the icons are <svg>s, which take no dynamic class.
|
|
13
|
+
&-loading .button-morph-icon--loading,
|
|
14
|
+
&-success .button-morph-icon--success {
|
|
15
|
+
@extend %icon-swap-active;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-morph {
|
|
20
|
+
// Every layer shares one grid cell, so the idle width is the widest label;
|
|
21
|
+
// in the circle the cell overflows both sides equally and the button clips it.
|
|
22
|
+
&-content {
|
|
23
|
+
display: grid;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
place-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-icon {
|
|
29
|
+
@extend %icon-stroke, %icon-swap;
|
|
30
|
+
grid-area: 1 / 1;
|
|
31
|
+
height: var(--morph-icon-size);
|
|
32
|
+
width: var(--morph-icon-size);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-live {
|
|
36
|
+
@extend %hidden-visually;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Turns about the icon box: the arc alone is off-centre, so its own box would wobble. The turn is the
|
|
40
|
+
// '.button--processing' keyframes, which '.button-icon--spin' shares too.
|
|
41
|
+
&-spinner {
|
|
42
|
+
animation: button--processing 700ms linear infinite;
|
|
43
|
+
transform-box: view-box;
|
|
44
|
+
transform-origin: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Leaves before the width has closed on it; arrives as it opens.
|
|
48
|
+
&-text {
|
|
49
|
+
filter: blur(var(--blur-400));
|
|
50
|
+
grid-area: 1 / 1;
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transition:
|
|
53
|
+
filter var(--duration-fast-exit) var(--easing-spring),
|
|
54
|
+
opacity var(--duration-fast-exit) var(--easing-spring);
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
|
|
57
|
+
@include tokens.state(active) {
|
|
58
|
+
filter: blur(0px);
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transition-duration: var(--duration-fast);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
3
65
|
|
|
4
66
|
// Compound selector so these win over `.button`, whose rules follow this partial.
|
|
5
67
|
.button.button--morph {
|
|
@@ -10,92 +72,18 @@
|
|
|
10
72
|
overflow: hidden;
|
|
11
73
|
touch-action: manipulation;
|
|
12
74
|
transition:
|
|
13
|
-
background-color
|
|
14
|
-
color
|
|
15
|
-
scale 200ms ease-out;
|
|
75
|
+
background-color var(--duration-fast) var(--easing-spring),
|
|
76
|
+
color var(--duration-fast) var(--easing-spring);
|
|
16
77
|
user-select: none;
|
|
17
78
|
|
|
18
|
-
&:active:not([aria-disabled='true']) {
|
|
19
|
-
scale: var(--morph-scale-pressed);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
79
|
&:focus-visible {
|
|
23
80
|
outline: 2px solid var(--morph-focus-color);
|
|
24
|
-
outline-offset:
|
|
81
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
25
82
|
}
|
|
26
83
|
|
|
27
84
|
&[aria-disabled='true'] {
|
|
28
85
|
cursor: default;
|
|
29
86
|
}
|
|
30
|
-
|
|
31
|
-
@media (prefers-reduced-motion: reduce) {
|
|
32
|
-
transition:
|
|
33
|
-
background-color 200ms ease-out,
|
|
34
|
-
color 200ms ease-out;
|
|
35
|
-
|
|
36
|
-
&:active:not([aria-disabled='true']) {
|
|
37
|
-
scale: 1;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.button--morph {
|
|
43
|
-
// Wait for the width to mostly open before shaking the settled shape.
|
|
44
|
-
&-error {
|
|
45
|
-
animation: button-morph-shake var(--morph-shake-duration) var(--morph-shake-easing) 150ms;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Keyed off the status, since the icons are <svg>s, which take no dynamic class.
|
|
49
|
-
&-loading .button-morph-icon--loading,
|
|
50
|
-
&-success .button-morph-icon--success {
|
|
51
|
-
@extend %icon-swap-active;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.button-morph {
|
|
56
|
-
// Every layer shares one grid cell, so the idle width is the widest label;
|
|
57
|
-
// in the circle the cell overflows both sides equally and the button clips it.
|
|
58
|
-
&-content {
|
|
59
|
-
display: grid;
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
place-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-icon {
|
|
65
|
-
@extend %icon-stroke, %icon-swap;
|
|
66
|
-
grid-area: 1 / 1;
|
|
67
|
-
height: var(--morph-icon-size);
|
|
68
|
-
width: var(--morph-icon-size);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-live {
|
|
72
|
-
@extend %hidden-visually;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Turns about the icon box: the arc alone is off-centre, so its own box would wobble. The turn is the
|
|
76
|
-
// '.button--processing' keyframes, which '.button-icon--spin' shares too.
|
|
77
|
-
&-spinner {
|
|
78
|
-
animation: button--processing 700ms linear infinite;
|
|
79
|
-
transform-box: view-box;
|
|
80
|
-
transform-origin: center;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Leaves in 150ms, before the width has closed on it; arrives in 200ms as it opens.
|
|
84
|
-
&-text {
|
|
85
|
-
filter: blur(4px);
|
|
86
|
-
grid-area: 1 / 1;
|
|
87
|
-
opacity: 0;
|
|
88
|
-
transition:
|
|
89
|
-
filter 150ms ease-out,
|
|
90
|
-
opacity 150ms ease-out;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
|
|
93
|
-
@include tokens.state(active) {
|
|
94
|
-
filter: blur(0px);
|
|
95
|
-
opacity: 1;
|
|
96
|
-
transition-duration: 200ms;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
87
|
}
|
|
100
88
|
|
|
101
89
|
|
|
@@ -1,50 +1,61 @@
|
|
|
1
1
|
.button-sidebar {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
&[aria-expanded='true']:focus-visible {
|
|
5
|
-
--divider-x: var(--divider-travel);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&[aria-expanded='false']:focus-visible {
|
|
9
|
-
--divider-x: 0px;
|
|
2
|
+
&--right &-graphic {
|
|
3
|
+
scale: -1 1;
|
|
10
4
|
}
|
|
11
5
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
6
|
+
// Chained through '.icon' so it wins over the icon's own size and fill regardless of stylesheet order.
|
|
7
|
+
&-icon.icon {
|
|
8
|
+
--size: var(--icon-size);
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
// Drawn in strokes, with fills set per path, where the icon would fill the whole SVG.
|
|
11
|
+
.button-sidebar-graphic {
|
|
12
|
+
fill: none;
|
|
13
|
+
overflow: hidden;
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
// A round-capped stroke stays rounded at every width; the shift pins its outer edge against the frame as it thins
|
|
18
|
+
// from 3 units to 1, whole units that keep the closed line on the pixel grid at the default icon size. Caps add
|
|
19
|
+
// the width to the 5-unit line, so the stretch restores what thinning takes to hold it 8 units tall.
|
|
20
|
+
&-panel {
|
|
21
|
+
stroke-width: calc(1px + 2px * var(--panel-open));
|
|
22
|
+
transform:
|
|
23
|
+
translateX(calc((var(--panel-open) - 1) * 1px))
|
|
24
|
+
scaleY(calc((7 - 2 * var(--panel-open)) / 5));
|
|
25
|
+
transform-box: fill-box;
|
|
26
|
+
transform-origin: center;
|
|
27
|
+
transition:
|
|
28
|
+
stroke-width var(--panel-duration) var(--easing-spring),
|
|
29
|
+
transform var(--panel-duration) var(--easing-spring);
|
|
26
30
|
|
|
27
31
|
@media (prefers-reduced-motion: reduce) {
|
|
28
32
|
transition: none;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
&:not(&--held) {
|
|
37
|
+
&[aria-expanded='false']:focus-visible {
|
|
38
|
+
--panel-open: 1;
|
|
39
|
+
}
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
fill: none;
|
|
39
|
-
overflow: hidden;
|
|
41
|
+
&[aria-expanded='true']:focus-visible {
|
|
42
|
+
--panel-open: 0;
|
|
40
43
|
}
|
|
41
|
-
}
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
@media (hover: hover) {
|
|
46
|
+
&[aria-expanded='false']:hover {
|
|
47
|
+
--panel-open: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[aria-expanded='true']:hover {
|
|
51
|
+
--panel-open: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
45
54
|
}
|
|
46
55
|
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
// Hidden panels thin the pill to a line; hover and focus preview the opposite state unless a toggle
|
|
57
|
+
// just happened under them.
|
|
58
|
+
&[aria-expanded='false'] {
|
|
59
|
+
--panel-open: 0;
|
|
49
60
|
}
|
|
50
61
|
}
|
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
border-start-end-radius: 0;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
> .button-split-action,
|
|
27
|
+
> .button-split-menu > .button-split-trigger {
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
outline: var(--focus-width) solid var(--focus-color);
|
|
30
|
+
outline-offset: var(--focus-offset);
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
26
35
|
// Overlaps the shared edge so the two borders read as one divider.
|
|
27
36
|
> .button-split-menu > .button-split-trigger {
|
|
28
37
|
--padding-horizontal: var(--trigger-padding-horizontal);
|
|
@@ -35,15 +44,6 @@
|
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
46
|
|
|
38
|
-
> .button-split-action,
|
|
39
|
-
> .button-split-menu > .button-split-trigger {
|
|
40
|
-
&:focus-visible {
|
|
41
|
-
outline: var(--focus-width) solid var(--focus-color);
|
|
42
|
-
outline-offset: var(--focus-offset);
|
|
43
|
-
z-index: 1;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
47
|
|
|
48
48
|
@media (prefers-reduced-motion: reduce) {
|
|
49
49
|
&-chevron {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/absolute';
|
|
3
|
+
@use 'css-utilities/background';
|
|
4
|
+
@use 'css-utilities/border';
|
|
5
|
+
@use 'css-utilities/box-shadow';
|
|
6
|
+
@use 'css-utilities/color';
|
|
7
|
+
@use 'css-utilities/hidden';
|
|
8
|
+
@use 'css-utilities/icon';
|
|
9
|
+
@use 'css-utilities/layer';
|
|
10
|
+
@use 'css-utilities/text';
|
|
3
11
|
@use 'fan';
|
|
4
12
|
@use 'kbd';
|
|
5
13
|
@use 'morph';
|
|
@@ -8,7 +16,7 @@
|
|
|
8
16
|
@use 'variables';
|
|
9
17
|
|
|
10
18
|
.button {
|
|
11
|
-
@extend %background-state, %border-state, %color-state, %text;
|
|
19
|
+
@extend %background-state, %border-state, %box-shadow-state, %color-state, %text;
|
|
12
20
|
align-content: center;
|
|
13
21
|
align-items: center;
|
|
14
22
|
background: var(--background);
|
|
@@ -26,25 +34,16 @@
|
|
|
26
34
|
opacity var(--transition-duration) var(--transition-timing-function),
|
|
27
35
|
scale var(--transition-duration) var(--transition-timing-function),
|
|
28
36
|
translate var(--transition-duration) var(--transition-timing-function);
|
|
29
|
-
white-space: nowrap;
|
|
30
37
|
translate: 0;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// Pseudo Element Box Shadow
|
|
34
|
-
&::after {
|
|
35
|
-
@extend %layer-box-shadow;
|
|
36
|
-
}
|
|
38
|
+
white-space: nowrap;
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
// Stacks above the options so they reveal from behind it
|
|
40
42
|
&--fan {
|
|
41
43
|
z-index: 1;
|
|
42
|
-
|
|
43
|
-
@include tokens.state(pressed) {
|
|
44
|
-
scale: var(--trigger-pressed-scale);
|
|
45
|
-
}
|
|
46
44
|
}
|
|
47
45
|
|
|
46
|
+
|
|
48
47
|
&--feedback {
|
|
49
48
|
-webkit-touch-callout: none;
|
|
50
49
|
touch-action: manipulation;
|
|
@@ -218,6 +217,11 @@
|
|
|
218
217
|
@extend %hidden-visually;
|
|
219
218
|
}
|
|
220
219
|
|
|
220
|
+
// Pseudo Element Box Shadow
|
|
221
|
+
&::after {
|
|
222
|
+
@extend %layer-box-shadow;
|
|
223
|
+
}
|
|
224
|
+
|
|
221
225
|
// An icon resolves '--color' itself rather than inheriting the label's eased colour, so it eases alongside. Zero
|
|
222
226
|
// specificity, so an icon's own transition wins.
|
|
223
227
|
:where(&) :where(.icon) {
|
|
@@ -227,6 +231,12 @@
|
|
|
227
231
|
}
|
|
228
232
|
|
|
229
233
|
@media (prefers-reduced-motion: reduce) {
|
|
234
|
+
&--kbd {
|
|
235
|
+
@include tokens.state(active pressed) {
|
|
236
|
+
translate: none;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
230
240
|
&--skeleton,
|
|
231
241
|
&-icon--spin {
|
|
232
242
|
animation: none;
|
|
@@ -236,11 +246,5 @@
|
|
|
236
246
|
&-icon--draw {
|
|
237
247
|
transition: none;
|
|
238
248
|
}
|
|
239
|
-
|
|
240
|
-
&--kbd {
|
|
241
|
-
@include tokens.state(active pressed) {
|
|
242
|
-
translate: none;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
249
|
}
|
|
246
250
|
}
|