@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,21 +1,23 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/surface';
|
|
2
3
|
|
|
4
|
+
// A surface, so its fills and whatever sits in it read from a level above its parent. Flat by default, since most
|
|
5
|
+
// buttons are transparent; a tactile one rises off its parent with the surface's shadow.
|
|
3
6
|
.button {
|
|
7
|
+
@extend %surface-raised-level;
|
|
4
8
|
--border-color-default: var(--background);
|
|
5
|
-
--box-shadow: var(--box-shadow-default);
|
|
6
|
-
--box-shadow-default: none;
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
&--feedback {
|
|
10
|
-
--draw-duration:
|
|
11
|
-
--draw-timing-function:
|
|
12
|
+
--draw-duration: var(--duration-moderate);
|
|
13
|
+
--draw-timing-function: var(--easing-out);
|
|
12
14
|
--error-color: var(--color-red-400);
|
|
13
|
-
--face-blur:
|
|
15
|
+
--face-blur: var(--blur-400);
|
|
14
16
|
// Stands in for an overdamped spring (stiffness 260, damping 34, mass 0.8), which never overshoots.
|
|
15
|
-
--face-duration:
|
|
17
|
+
--face-duration: var(--duration-slow);
|
|
16
18
|
--face-gap: 0.375em;
|
|
17
|
-
--face-offset:
|
|
18
|
-
--face-timing-function:
|
|
19
|
+
--face-offset: calc(var(--size-300) / 4);
|
|
20
|
+
--face-timing-function: var(--easing-out);
|
|
19
21
|
--icon-size: 0.875em;
|
|
20
22
|
--spin-duration: 0.85s;
|
|
21
23
|
--success-color: var(--color-green-500);
|
|
@@ -30,33 +32,34 @@
|
|
|
30
32
|
// Leaves the surface alone and sweeps colour through the label only.
|
|
31
33
|
&--hold-text {
|
|
32
34
|
--fill-background: transparent;
|
|
33
|
-
--fill-color: var(--color-
|
|
35
|
+
--fill-color: var(--color-accent-400);
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
// A hairline ring plus an inset bottom edge gives the keycap its depth; pressing drops the cap by that edge.
|
|
37
39
|
&--kbd {
|
|
38
|
-
--background-active: var(--color-
|
|
39
|
-
--background-default: var(--
|
|
40
|
+
--background-active: var(--color-primary-500);
|
|
41
|
+
--background-default: var(--surface-background-default);
|
|
42
|
+
--background-pressed: var(--background-active);
|
|
40
43
|
--border-radius: var(--border-radius-300);
|
|
44
|
+
--box-shadow-active: none;
|
|
41
45
|
--box-shadow-default:
|
|
42
46
|
0 0 0 var(--border-width-400) var(--kbd-border-color),
|
|
43
47
|
inset 0 calc(var(--border-width-400) * -1) 0 var(--kbd-border-color);
|
|
44
|
-
--
|
|
48
|
+
--box-shadow-pressed: none;
|
|
49
|
+
--color-active: var(--surface-background-default);
|
|
45
50
|
--color-default: var(--color-text-300);
|
|
51
|
+
--color-pressed: var(--color-active);
|
|
46
52
|
--font-size: calc(var(--font-size-300) * 0.95);
|
|
47
|
-
--kbd-border-color: var(--
|
|
53
|
+
--kbd-border-color: var(--surface-border-default);
|
|
48
54
|
--kbd-size: 24px;
|
|
49
55
|
--line-height: 1;
|
|
50
|
-
--padding-horizontal:
|
|
56
|
+
--padding-horizontal: calc(var(--size-300) / 2);
|
|
51
57
|
--padding-vertical: 0px;
|
|
52
|
-
--transition-duration:
|
|
53
|
-
--transition-timing-function:
|
|
58
|
+
--transition-duration: var(--duration-moderate);
|
|
59
|
+
--transition-timing-function: var(--easing-spring);
|
|
54
60
|
|
|
55
61
|
// Lights instantly and releases with the slower fade.
|
|
56
62
|
@include tokens.state(active pressed) {
|
|
57
|
-
--background: var(--background-active);
|
|
58
|
-
--box-shadow: none;
|
|
59
|
-
--color: var(--color-active);
|
|
60
63
|
--transition-duration: 0s;
|
|
61
64
|
}
|
|
62
65
|
}
|
|
@@ -67,25 +70,24 @@
|
|
|
67
70
|
--color-default: var(--morph-color);
|
|
68
71
|
--font-size: var(--morph-font-size);
|
|
69
72
|
--font-weight: var(--font-weight-500);
|
|
70
|
-
--icon-swap-duration:
|
|
73
|
+
--icon-swap-duration: var(--duration-moderate);
|
|
71
74
|
--icon-swap-timing-function: var(--morph-spring);
|
|
72
|
-
--line-height:
|
|
73
|
-
--morph-background: var(--color-
|
|
75
|
+
--line-height: var(--size-500);
|
|
76
|
+
--morph-background: var(--color-primary-500);
|
|
74
77
|
--morph-background-error: var(--color-red-500);
|
|
75
|
-
--morph-color: var(--color-
|
|
78
|
+
--morph-color: var(--color-surface);
|
|
76
79
|
--morph-color-error: var(--color-white-300);
|
|
77
|
-
--morph-focus-color:
|
|
78
|
-
--morph-font-size:
|
|
80
|
+
--morph-focus-color: var(--surface-border-pressed);
|
|
81
|
+
--morph-font-size: var(--font-size-300);
|
|
79
82
|
--morph-height: 40px;
|
|
80
|
-
--morph-icon-size:
|
|
83
|
+
--morph-icon-size: var(--size-400);
|
|
81
84
|
// JS measures the width morph; CSS owns the failed-save shake.
|
|
82
|
-
--morph-resize-duration:
|
|
85
|
+
--morph-resize-duration: var(--duration-moderate);
|
|
83
86
|
--morph-resize-easing: var(--morph-spring);
|
|
84
|
-
--morph-
|
|
85
|
-
--morph-shake-
|
|
86
|
-
--morph-
|
|
87
|
-
--
|
|
88
|
-
--padding-horizontal: 20px;
|
|
87
|
+
--morph-shake-duration: var(--duration-slow);
|
|
88
|
+
--morph-shake-easing: var(--easing-in-out);
|
|
89
|
+
--morph-spring: var(--easing-spring);
|
|
90
|
+
--padding-horizontal: var(--size-500);
|
|
89
91
|
--padding-vertical: 0px;
|
|
90
92
|
|
|
91
93
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -111,69 +113,71 @@
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
|
|
114
|
-
.button
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
116
|
+
.button {
|
|
117
|
+
&-fan {
|
|
118
|
+
--focus-color: currentColor;
|
|
119
|
+
--focus-offset: calc(var(--size-100) / 4);
|
|
120
|
+
--focus-width: var(--border-width-500);
|
|
121
|
+
--option-opacity-duration: var(--duration-fast);
|
|
122
|
+
--option-scale: 0.5;
|
|
123
|
+
--option-spring: var(--easing-spring);
|
|
124
|
+
--option-spring-duration: var(--duration-moderate);
|
|
125
|
+
--spacer: var(--size-300);
|
|
126
|
+
--stagger: 30ms;
|
|
127
|
+
--swap-rotate: 90deg;
|
|
128
|
+
--swap-spring: var(--easing-spring);
|
|
129
|
+
--swap-spring-duration: var(--duration-fast);
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
&--e {
|
|
133
|
+
--direction-x: -1;
|
|
134
|
+
--direction-y: 0;
|
|
135
|
+
--origin: left center;
|
|
136
|
+
}
|
|
136
137
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
&--n {
|
|
139
|
+
--direction-x: 0;
|
|
140
|
+
--direction-y: 1;
|
|
141
|
+
--origin: center bottom;
|
|
142
|
+
}
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
&--s {
|
|
145
|
+
--direction-x: 0;
|
|
146
|
+
--direction-y: -1;
|
|
147
|
+
--origin: center top;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&--tactile {
|
|
151
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
152
|
+
}
|
|
148
153
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
&--w {
|
|
155
|
+
--direction-x: 1;
|
|
156
|
+
--direction-y: 0;
|
|
157
|
+
--origin: right center;
|
|
158
|
+
}
|
|
153
159
|
}
|
|
154
|
-
}
|
|
155
160
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
+
&-kbd {
|
|
162
|
+
--gap: var(--size-200);
|
|
163
|
+
--plus-color: color-mix(in srgb, currentColor 60%, transparent);
|
|
164
|
+
--plus-size: var(--size-300);
|
|
165
|
+
}
|
|
161
166
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
--shadow-opacity: 0.2;
|
|
169
|
-
}
|
|
167
|
+
&-sidebar {
|
|
168
|
+
--icon-size: var(--size-400);
|
|
169
|
+
--panel-duration: var(--duration-fast);
|
|
170
|
+
// 1 while the panel shows, 0 while hidden; the pill's width and offset both derive from it.
|
|
171
|
+
--panel-open: 1;
|
|
172
|
+
}
|
|
170
173
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
&-split {
|
|
175
|
+
--chevron-duration: var(--duration-fast);
|
|
176
|
+
--chevron-timing-function: var(--easing-spring);
|
|
177
|
+
--focus-color: currentColor;
|
|
178
|
+
--focus-offset: calc(var(--size-100) / 4);
|
|
179
|
+
--focus-width: var(--border-width-500);
|
|
180
|
+
--icon-size: var(--size-400);
|
|
181
|
+
--trigger-padding-horizontal: var(--size-200);
|
|
182
|
+
}
|
|
179
183
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { component, html, type Attributes } from '@esportsplus/template';
|
|
2
|
+
import { effect, reactive } from '@esportsplus/reactivity';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
type A = Attributes & {
|
|
5
6
|
'aria-expanded'?: never;
|
|
7
|
+
onconnect?: never;
|
|
8
|
+
onfocusout?: never;
|
|
9
|
+
onpointerleave?: never;
|
|
6
10
|
// Whether the panel the button toggles is showing.
|
|
7
11
|
open: boolean | (() => boolean);
|
|
8
12
|
// The edge the panel sits on; the glyph mirrors for 'right'.
|
|
@@ -10,19 +14,16 @@ type A = Attributes & {
|
|
|
10
14
|
};
|
|
11
15
|
|
|
12
16
|
|
|
13
|
-
let uid = 0;
|
|
14
|
-
|
|
15
|
-
|
|
16
17
|
function read<T>(value: T | (() => T)) {
|
|
17
18
|
return typeof value === 'function' ? (value as () => T)() : value;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
// A
|
|
22
|
-
// and focus. Colors and sizing come from the caller's attributes.
|
|
22
|
+
// A frame with an inset panel pill that thins to a line while the panel is hidden, and previews the next state on
|
|
23
|
+
// hover and focus. Colors and sizing come from the caller's attributes.
|
|
23
24
|
export default component(
|
|
24
25
|
({ open, side = 'left', ...attributes }: A) => {
|
|
25
|
-
let
|
|
26
|
+
let state = reactive({ held: false });
|
|
26
27
|
|
|
27
28
|
return html`
|
|
28
29
|
<button
|
|
@@ -31,27 +32,38 @@ export default component(
|
|
|
31
32
|
${attributes}
|
|
32
33
|
${{
|
|
33
34
|
'aria-expanded': () => String(read(open)),
|
|
34
|
-
class: () => read(side) === 'right'
|
|
35
|
+
class: () => `${read(side) === 'right' ? 'button-sidebar--right' : ''} ${state.held ? 'button-sidebar--held' : ''}`,
|
|
36
|
+
// A toggle under the pointer or focus would otherwise flip straight to previewing the state it
|
|
37
|
+
// just left, so the glyph holds the new state until the pointer or focus leaves.
|
|
38
|
+
onconnect: (element: HTMLElement) => {
|
|
39
|
+
let current = read(open);
|
|
40
|
+
|
|
41
|
+
effect(() => {
|
|
42
|
+
let next = read(open);
|
|
43
|
+
|
|
44
|
+
if (next === current) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
current = next;
|
|
49
|
+
|
|
50
|
+
if (element.matches(':hover, :focus-visible')) {
|
|
51
|
+
state.held = true;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
onfocusout: () => {
|
|
56
|
+
state.held = false;
|
|
57
|
+
},
|
|
58
|
+
onpointerleave: () => {
|
|
59
|
+
state.held = false;
|
|
60
|
+
}
|
|
35
61
|
}}
|
|
36
62
|
>
|
|
37
63
|
<span aria-hidden='true' class='icon button-sidebar-icon'>
|
|
38
|
-
<svg class='button-sidebar-graphic' fill='none' focusable='false' stroke='currentColor' stroke-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
<rect x='2.25' y='2.75' width='11.5' height='11' rx='1.5' />
|
|
42
|
-
</clipPath>
|
|
43
|
-
</defs>
|
|
44
|
-
<g class='button-sidebar-shadow'>
|
|
45
|
-
<path fill='currentColor' stroke='none' d='M3.75 2.75h2.5v11h-2.5a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5Z' />
|
|
46
|
-
<path d='M6.25 2.75v11' />
|
|
47
|
-
</g>
|
|
48
|
-
<g ${{ 'clip-path': `url(#${clip})` }}>
|
|
49
|
-
<g class='button-sidebar-divider'>
|
|
50
|
-
<path fill='currentColor' stroke='none' d='M3.75 2.75h2.5v11h-2.5a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5Z' />
|
|
51
|
-
<path d='M6.25 2.75v11' />
|
|
52
|
-
</g>
|
|
53
|
-
</g>
|
|
54
|
-
<rect x='2.25' y='2.75' width='11.5' height='11' rx='1.5' />
|
|
64
|
+
<svg class='button-sidebar-graphic' fill='none' focusable='false' stroke='currentColor' stroke-width='1.5' viewBox='0 0 16 16'>
|
|
65
|
+
<path class='button-sidebar-panel' d='M5.5 5.5v5' stroke-linecap='round' />
|
|
66
|
+
<rect x='2.25' y='2.25' width='11.5' height='11.5' rx='2.75' />
|
|
55
67
|
</svg>
|
|
56
68
|
</span>
|
|
57
69
|
</button>
|
|
@@ -45,8 +45,8 @@ export default component(
|
|
|
45
45
|
<span class='capslock-key-light'></span>
|
|
46
46
|
<svg class='capslock-key-icon'><use href='#${capsLock}' /></svg>
|
|
47
47
|
</kbd>
|
|
48
|
-
<span aria-hidden='true' class='capslock-text
|
|
49
|
-
<span aria-live='polite' class='capslock-live
|
|
48
|
+
<span aria-hidden='true' class='capslock-text'>Caps Lock On</span>
|
|
49
|
+
<span aria-live='polite' class='capslock-live'>${() => state.active && 'Caps Lock On'}</span>
|
|
50
50
|
</div>
|
|
51
51
|
`;
|
|
52
52
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/flex';
|
|
3
|
+
@use 'css-utilities/hidden';
|
|
3
4
|
@use 'variables';
|
|
4
5
|
|
|
5
6
|
.capslock {
|
|
6
|
-
filter: blur(
|
|
7
|
+
filter: blur(var(--blur-300));
|
|
7
8
|
opacity: 0;
|
|
8
9
|
transition:
|
|
9
10
|
filter var(--transition-duration) var(--transition-timing-function),
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
@include tokens.state(active) {
|
|
14
15
|
filter: none;
|
|
15
16
|
opacity: 1;
|
|
16
|
-
transition-duration:
|
|
17
|
+
transition-duration: var(--duration-moderate);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
@include tokens.state(inactive) {
|
|
@@ -39,14 +40,18 @@
|
|
|
39
40
|
position: absolute;
|
|
40
41
|
top: var(--light-inset);
|
|
41
42
|
transition:
|
|
42
|
-
background-color
|
|
43
|
-
box-shadow
|
|
43
|
+
background-color var(--duration-moderate) var(--easing-out),
|
|
44
|
+
box-shadow var(--duration-moderate) var(--easing-out);
|
|
44
45
|
width: var(--light-size);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
&-live {
|
|
49
|
-
@extend %hidden-visually;
|
|
50
|
+
@extend %flex-vertical, %hidden-visually;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-text {
|
|
54
|
+
@extend %flex-vertical;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
.capslock {
|
|
4
4
|
--font-size: var(--font-size-300);
|
|
5
5
|
--gap-horizontal: var(--size-200);
|
|
6
|
-
--icon-height:
|
|
6
|
+
--icon-height: var(--size-200);
|
|
7
7
|
--icon-width: 12px;
|
|
8
|
-
--light-color: var(--
|
|
8
|
+
--light-color: var(--surface-border-hover);
|
|
9
9
|
--light-color-active: var(--color-green-400);
|
|
10
|
-
--light-inset:
|
|
10
|
+
--light-inset: calc(var(--size-300) / 4);
|
|
11
11
|
--light-shadow: none;
|
|
12
12
|
--light-size: 4px;
|
|
13
|
-
--transition-duration: 150ms;
|
|
14
|
-
--transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
15
13
|
|
|
16
14
|
@include tokens.state(active) {
|
|
17
15
|
--light-color: var(--light-color-active);
|
|
@@ -1,33 +1,9 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/reset';
|
|
3
|
+
@use 'css-utilities/surface';
|
|
4
|
+
@use 'css-utilities/text';
|
|
3
5
|
@use 'variables';
|
|
4
6
|
|
|
5
|
-
// Chained through '.card' so the base transition and padding, emitted after this file, can't override it.
|
|
6
|
-
.card.card--expand {
|
|
7
|
-
align-items: flex-start;
|
|
8
|
-
border: 0;
|
|
9
|
-
color: inherit;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
font: inherit;
|
|
14
|
-
gap: 6px;
|
|
15
|
-
outline: none;
|
|
16
|
-
text-align: left;
|
|
17
|
-
touch-action: manipulation;
|
|
18
|
-
transition: scale 0.15s ease-out;
|
|
19
|
-
user-select: none;
|
|
20
|
-
|
|
21
|
-
@include tokens.state(pressed) {
|
|
22
|
-
scale: var(--pressed-scale);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
outline: 2px solid var(--focus-ring-color);
|
|
27
|
-
outline-offset: 2px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
7
|
.card-expand {
|
|
32
8
|
@extend %reset-list;
|
|
33
9
|
color: var(--text-color);
|
|
@@ -40,24 +16,20 @@
|
|
|
40
16
|
&-close {
|
|
41
17
|
flex-shrink: 0;
|
|
42
18
|
height: var(--size);
|
|
43
|
-
margin: -
|
|
19
|
+
margin: calc(var(--size-100) * -1) calc(var(--size-100) * -1) 0 0;
|
|
44
20
|
width: var(--size);
|
|
45
21
|
|
|
46
|
-
@include tokens.state(pressed) {
|
|
47
|
-
scale: 0.96;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
22
|
// Grows the hit area to 44px around the 32px circle.
|
|
51
23
|
&::before {
|
|
52
24
|
border-radius: inherit;
|
|
53
25
|
content: '';
|
|
54
|
-
inset: -
|
|
26
|
+
inset: calc(var(--size-300) / -2);
|
|
55
27
|
position: absolute;
|
|
56
28
|
}
|
|
57
29
|
|
|
58
30
|
&:focus-visible {
|
|
59
31
|
outline: 2px solid var(--focus-ring-color);
|
|
60
|
-
outline-offset:
|
|
32
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
61
33
|
}
|
|
62
34
|
}
|
|
63
35
|
|
|
@@ -68,9 +40,9 @@
|
|
|
68
40
|
|
|
69
41
|
&-detail {
|
|
70
42
|
color: var(--muted-color);
|
|
71
|
-
font-size:
|
|
43
|
+
font-size: var(--font-size-400);
|
|
72
44
|
line-height: 24px;
|
|
73
|
-
margin:
|
|
45
|
+
margin: var(--size-200) 0 0;
|
|
74
46
|
text-wrap: pretty;
|
|
75
47
|
}
|
|
76
48
|
|
|
@@ -86,7 +58,7 @@
|
|
|
86
58
|
&-header {
|
|
87
59
|
align-items: flex-start;
|
|
88
60
|
display: flex;
|
|
89
|
-
gap:
|
|
61
|
+
gap: var(--size-400);
|
|
90
62
|
justify-content: space-between;
|
|
91
63
|
}
|
|
92
64
|
|
|
@@ -94,7 +66,7 @@
|
|
|
94
66
|
align-items: flex-start;
|
|
95
67
|
display: flex;
|
|
96
68
|
flex-direction: column;
|
|
97
|
-
gap:
|
|
69
|
+
gap: calc(var(--size-100) / 2);
|
|
98
70
|
}
|
|
99
71
|
|
|
100
72
|
&-icon {
|
|
@@ -102,13 +74,22 @@
|
|
|
102
74
|
width: 18px;
|
|
103
75
|
}
|
|
104
76
|
|
|
77
|
+
// The view transition is the only motion; the overlay's own fade would play inside the snapshot.
|
|
78
|
+
&-item--morphing > .card.card-expand-dialog {
|
|
79
|
+
&,
|
|
80
|
+
&::backdrop {
|
|
81
|
+
transition: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
105
85
|
// Holds the slot at the card's exact size so the list never jumps, and marks where it returns to. The item's
|
|
106
86
|
// classes are bound to the same state as its dialog's '--active' and land in the same flush, before the view
|
|
107
87
|
// transition captures the new state; ':has()' on the dialog would restyle the whole document on every DOM change.
|
|
108
88
|
// Chained through '.card' to outrank the card's own states, its pressed scale among them.
|
|
109
89
|
&-item.--active > .card.card--expand {
|
|
110
|
-
|
|
111
|
-
--
|
|
90
|
+
@extend %surface-sunken-level;
|
|
91
|
+
--background-default: var(--surface-background-default);
|
|
92
|
+
--box-shadow-default: inset 0 0 0 var(--border-width-400) var(--slot-border-color);
|
|
112
93
|
cursor: default;
|
|
113
94
|
scale: 1;
|
|
114
95
|
|
|
@@ -117,18 +98,10 @@
|
|
|
117
98
|
}
|
|
118
99
|
}
|
|
119
100
|
|
|
120
|
-
// The view transition is the only motion; the overlay's own fade would play inside the snapshot.
|
|
121
|
-
&-item--morphing > .card.card-expand-dialog {
|
|
122
|
-
&,
|
|
123
|
-
&::backdrop {
|
|
124
|
-
transition: none;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
101
|
&-meta {
|
|
129
102
|
color: var(--muted-color);
|
|
130
103
|
flex-shrink: 0;
|
|
131
|
-
font-size:
|
|
104
|
+
font-size: var(--font-size-300);
|
|
132
105
|
font-variant-numeric: tabular-nums;
|
|
133
106
|
margin: 0;
|
|
134
107
|
view-transition-name: var(--meta-transition-name, none);
|
|
@@ -144,7 +117,7 @@
|
|
|
144
117
|
&-row {
|
|
145
118
|
align-items: baseline;
|
|
146
119
|
display: flex;
|
|
147
|
-
gap:
|
|
120
|
+
gap: var(--size-400);
|
|
148
121
|
justify-content: space-between;
|
|
149
122
|
width: 100%;
|
|
150
123
|
}
|
|
@@ -152,15 +125,15 @@
|
|
|
152
125
|
&-summary {
|
|
153
126
|
@extend %text-truncate;
|
|
154
127
|
color: var(--muted-color);
|
|
155
|
-
font-size:
|
|
128
|
+
font-size: var(--font-size-300);
|
|
156
129
|
margin: 0;
|
|
157
130
|
view-transition-name: var(--summary-transition-name, none);
|
|
158
131
|
|
|
159
132
|
// In the open panel, where it shows in full.
|
|
160
133
|
&--full {
|
|
161
|
-
font-size:
|
|
134
|
+
font-size: var(--font-size-400);
|
|
162
135
|
line-height: 24px;
|
|
163
|
-
margin-top:
|
|
136
|
+
margin-top: var(--size-400);
|
|
164
137
|
white-space: normal;
|
|
165
138
|
}
|
|
166
139
|
}
|
|
@@ -168,8 +141,8 @@
|
|
|
168
141
|
&-title {
|
|
169
142
|
@extend %text-truncate;
|
|
170
143
|
color: var(--text-color);
|
|
171
|
-
font-size:
|
|
172
|
-
font-weight: 500;
|
|
144
|
+
font-size: var(--font-size-400);
|
|
145
|
+
font-weight: var(--font-weight-500);
|
|
173
146
|
margin: 0;
|
|
174
147
|
view-transition-name: var(--title-transition-name, none);
|
|
175
148
|
}
|
|
@@ -197,28 +170,49 @@
|
|
|
197
170
|
}
|
|
198
171
|
}
|
|
199
172
|
|
|
173
|
+
// Chained through '.card' so the base transition and padding, emitted after this file, can't override it.
|
|
174
|
+
.card.card--expand {
|
|
175
|
+
align-items: flex-start;
|
|
176
|
+
border: 0;
|
|
177
|
+
color: inherit;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
font: inherit;
|
|
182
|
+
gap: calc(var(--size-300) / 2);
|
|
183
|
+
outline: none;
|
|
184
|
+
text-align: left;
|
|
185
|
+
touch-action: manipulation;
|
|
186
|
+
user-select: none;
|
|
187
|
+
|
|
188
|
+
&:focus-visible {
|
|
189
|
+
outline: 2px solid var(--focus-ring-color);
|
|
190
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
200
194
|
@media (prefers-reduced-motion: reduce) {
|
|
201
195
|
.card.card--expand {
|
|
202
196
|
transition: none;
|
|
203
197
|
}
|
|
204
198
|
}
|
|
205
199
|
|
|
200
|
+
// The snapshots can't carry the shadow through a clip, so the box wears its own.
|
|
201
|
+
::view-transition-group(card-expand) {
|
|
202
|
+
border-radius: variables.$expand-border-radius;
|
|
203
|
+
box-shadow: variables.$expand-transition-box-shadow;
|
|
204
|
+
overflow: clip;
|
|
205
|
+
}
|
|
206
|
+
|
|
206
207
|
::view-transition-group(card-expand),
|
|
207
208
|
::view-transition-group(card-expand-meta),
|
|
208
209
|
::view-transition-group(card-expand-summary),
|
|
209
210
|
::view-transition-group(card-expand-title) {
|
|
210
|
-
animation-duration:
|
|
211
|
+
animation-duration: var(--duration-slow);
|
|
211
212
|
// Critically damped spring: a card overshooting its own slot reads as a glitch, not play.
|
|
212
213
|
animation-timing-function: linear(0, 0.0575, 0.1803, 0.3208, 0.4551, 0.5729, 0.6711, 0.7501, 0.8122, 0.8601, 0.8966, 0.924, 0.9445, 0.9596, 0.9708, 0.9789, 0.9848, 0.9891, 0.9922, 0.9944, 0.996, 0.9972, 0.998, 0.9986, 1);
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
// The snapshots can't carry the shadow through a clip, so the box wears its own.
|
|
216
|
-
::view-transition-group(card-expand) {
|
|
217
|
-
border-radius: variables.$expand-border-radius;
|
|
218
|
-
box-shadow: variables.$expand-box-shadow;
|
|
219
|
-
overflow: clip;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
216
|
// Kept at natural size: the growing box uncovers the dialog, and text moves without its glyphs being squashed.
|
|
223
217
|
::view-transition-new(card-expand),
|
|
224
218
|
::view-transition-new(card-expand-meta),
|
|
@@ -233,7 +227,7 @@
|
|
|
233
227
|
|
|
234
228
|
@keyframes card-expand-reveal {
|
|
235
229
|
from {
|
|
236
|
-
filter: blur(
|
|
230
|
+
filter: blur(var(--blur-400));
|
|
237
231
|
opacity: 0;
|
|
238
232
|
translate: 0 4px;
|
|
239
233
|
}
|