@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,27 +1,27 @@
|
|
|
1
1
|
.color-picker {
|
|
2
|
-
--checker: repeating-conic-gradient(var(--
|
|
2
|
+
--checker: repeating-conic-gradient(var(--surface-border-default) 0 25%, var(--color-white-300) 0 50%) 0 0 / 8px 8px;
|
|
3
3
|
--color: var(--color-text-500);
|
|
4
4
|
--color-invalid: var(--color-red-400);
|
|
5
5
|
--color-muted: var(--color-text-300);
|
|
6
|
-
--control-border-color: var(--
|
|
6
|
+
--control-border-color: var(--surface-border-default);
|
|
7
7
|
--control-border-radius: var(--border-radius-400);
|
|
8
8
|
--control-height: 36px;
|
|
9
|
-
--copy-inset:
|
|
9
|
+
--copy-inset: calc(var(--size-100) / 2);
|
|
10
10
|
--focus-width: var(--border-width-500);
|
|
11
11
|
--font-size: calc(var(--font-size-400) * 0.875);
|
|
12
12
|
--hairline: inset 0 0 0 1px color-mix(in oklch, var(--color) 10%, transparent);
|
|
13
13
|
--pad-height: 176px;
|
|
14
14
|
--preview-size: 44px;
|
|
15
15
|
// Gap between a selected swatch and its ring; match it to the surface the picker sits on.
|
|
16
|
-
--ring-offset-color: var(--
|
|
16
|
+
--ring-offset-color: var(--surface-background-default);
|
|
17
17
|
--spacing: 12px;
|
|
18
18
|
// How a recent swatch grows in, leaves and slides along when the history changes; JS reads the enter and shift
|
|
19
19
|
// timings and the blur and scale it grows from.
|
|
20
|
-
--swatch-blur:
|
|
21
|
-
--swatch-duration:
|
|
20
|
+
--swatch-blur: var(--blur-400);
|
|
21
|
+
--swatch-duration: var(--duration-moderate);
|
|
22
22
|
--swatch-easing: linear(0, 0.058, 0.18, 0.321, 0.455, 0.573, 0.671, 0.75, 0.812, 0.86, 0.897, 0.924, 0.944, 0.96, 0.971, 0.979, 0.985, 0.989, 0.992, 0.994, 0.996, 0.997, 0.998, 0.999, 1);
|
|
23
|
-
--swatch-exit-duration:
|
|
24
|
-
--swatch-exit-easing:
|
|
23
|
+
--swatch-exit-duration: var(--duration-fast);
|
|
24
|
+
--swatch-exit-easing: var(--easing-out);
|
|
25
25
|
--swatch-scale: 0.6;
|
|
26
26
|
--swatch-shift-duration: var(--swatch-duration);
|
|
27
27
|
--swatch-shift-easing: var(--swatch-easing);
|
|
@@ -31,12 +31,10 @@
|
|
|
31
31
|
// Grows a touch while held so you can tell you've got hold of it.
|
|
32
32
|
--thumb-scale-pressed: 1.1;
|
|
33
33
|
--thumb-shadow:
|
|
34
|
-
0 0 0 1px
|
|
35
|
-
0 1px 3px oklch(from var(--
|
|
36
|
-
--thumb-size:
|
|
34
|
+
0 0 0 1px var(--surface-border-default),
|
|
35
|
+
0 1px 3px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 3));
|
|
36
|
+
--thumb-size: var(--size-500);
|
|
37
37
|
--track-height: 12px;
|
|
38
|
-
--transition-duration: 150ms;
|
|
39
|
-
--transition-timing-function: ease-out;
|
|
40
38
|
|
|
41
39
|
// Swatches fade in and out where they stand, and held thumbs keep their size.
|
|
42
40
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -46,6 +44,15 @@
|
|
|
46
44
|
--thumb-scale-pressed: 1;
|
|
47
45
|
}
|
|
48
46
|
|
|
47
|
+
&--compact {
|
|
48
|
+
--pad-height: 184px;
|
|
49
|
+
--rail-radius: var(--border-radius-100);
|
|
50
|
+
--rail-thumb-height: 6px;
|
|
51
|
+
--rail-width: 28px;
|
|
52
|
+
--spacing: var(--size-100);
|
|
53
|
+
--thumb-size: 12px;
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
&-channel {
|
|
50
57
|
&--alpha {
|
|
51
58
|
--thumb: linear-gradient(rgb(var(--rgb) / var(--alpha)), rgb(var(--rgb) / var(--alpha))), var(--checker);
|
|
@@ -59,6 +66,17 @@
|
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
68
|
|
|
69
|
+
// Upright rails run top to bottom: hue from 0, opacity from full.
|
|
70
|
+
&--compact #{&}-channel {
|
|
71
|
+
&--alpha {
|
|
72
|
+
--track: linear-gradient(rgb(var(--rgb)), rgb(var(--rgb) / 0)), var(--checker);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--hue {
|
|
76
|
+
--track: linear-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
// Qualified by the row so it wins over the reused input styles regardless of stylesheet order.
|
|
63
81
|
.color-picker-copy {
|
|
64
82
|
--border-radius: calc(var(--control-border-radius) - var(--copy-inset));
|
|
@@ -73,10 +91,10 @@
|
|
|
73
91
|
--border-color-hover: var(--control-border-color);
|
|
74
92
|
--border-color-pressed: var(--control-border-color);
|
|
75
93
|
--border-radius: var(--control-border-radius);
|
|
76
|
-
--border-width:
|
|
94
|
+
--border-width: var(--border-width-400);
|
|
77
95
|
--color-default: currentColor;
|
|
78
96
|
--font-size: inherit;
|
|
79
|
-
--padding-horizontal:
|
|
97
|
+
--padding-horizontal: var(--size-200);
|
|
80
98
|
--padding-vertical: 0px;
|
|
81
99
|
--size: var(--control-height);
|
|
82
100
|
|
|
@@ -4,13 +4,13 @@ import highlight from '~/components/highlight';
|
|
|
4
4
|
import icon from '~/components/icon';
|
|
5
5
|
import input from '~/components/input';
|
|
6
6
|
import overlay from '~/components/overlay';
|
|
7
|
+
import scrollbar from '~/modifiers/scrollbar';
|
|
7
8
|
import { mac } from '~/shared/platform';
|
|
8
9
|
import down from '@esportsplus/ui/svg/arrow-down.svg';
|
|
9
10
|
import up from '@esportsplus/ui/svg/arrow-up.svg';
|
|
10
11
|
import enter from '@esportsplus/ui/svg/enter.svg';
|
|
11
12
|
import magnifier from '@esportsplus/ui/svg/search.svg';
|
|
12
13
|
import '~/components/frame/scss/index.scss';
|
|
13
|
-
import '~/css-utilities/scrollbar/scss/index.scss';
|
|
14
14
|
import './scss/index.scss';
|
|
15
15
|
|
|
16
16
|
|
|
@@ -822,9 +822,10 @@ export default component(
|
|
|
822
822
|
>
|
|
823
823
|
<div
|
|
824
824
|
aria-label='${view.label}'
|
|
825
|
-
class='command-list
|
|
825
|
+
class='command-list'
|
|
826
826
|
id='${view.key}-listbox'
|
|
827
827
|
role='listbox'
|
|
828
|
+
${scrollbar()}
|
|
828
829
|
${{
|
|
829
830
|
class: () => !read(view.results).flat.length && 'command-list--empty',
|
|
830
831
|
onmouseleave: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/text';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.command {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&-dialog.overlay {
|
|
18
|
-
background: var(--
|
|
18
|
+
background: var(--surface-background-default);
|
|
19
19
|
border-radius: var(--dialog-border-radius);
|
|
20
|
-
box-shadow: var(--
|
|
20
|
+
box-shadow: var(--surface-shadow-default);
|
|
21
21
|
color: var(--color);
|
|
22
22
|
// Pinned from the top rather than centered, so the input stays put while filtering resizes the list.
|
|
23
23
|
margin-block: var(--dialog-offset) auto;
|
|
@@ -171,12 +171,18 @@
|
|
|
171
171
|
scrollbar-width: none;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
&-trigger-label {
|
|
175
|
+
@extend %text-truncate;
|
|
176
|
+
flex: 1 1 auto;
|
|
177
|
+
text-align: left;
|
|
178
|
+
}
|
|
179
|
+
|
|
174
180
|
&-trigger.button {
|
|
175
181
|
touch-action: manipulation;
|
|
176
182
|
user-select: none;
|
|
177
183
|
|
|
178
184
|
&:focus-visible {
|
|
179
|
-
outline: var(--border-width-500) solid var(--color-
|
|
185
|
+
outline: var(--border-width-500) solid var(--color-primary-500);
|
|
180
186
|
outline-offset: var(--border-width-500);
|
|
181
187
|
}
|
|
182
188
|
|
|
@@ -186,12 +192,6 @@
|
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
|
|
189
|
-
&-trigger-label {
|
|
190
|
-
@extend %text-truncate;
|
|
191
|
-
flex: 1 1 auto;
|
|
192
|
-
text-align: left;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
195
|
&-view {
|
|
196
196
|
display: flex;
|
|
197
197
|
flex-direction: column;
|
|
@@ -215,9 +215,5 @@
|
|
|
215
215
|
transition: opacity var(--transition-duration) var(--transition-timing-function);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
&-trigger.button:active {
|
|
220
|
-
scale: 1;
|
|
221
|
-
}
|
|
222
218
|
}
|
|
223
219
|
}
|
|
@@ -1,39 +1,28 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/color';
|
|
2
2
|
|
|
3
|
-
// The trigger also dresses page-level search buttons outside a palette, so it carries the shared shadow itself.
|
|
4
|
-
.command,
|
|
5
|
-
.command-trigger {
|
|
6
|
-
--raised:
|
|
7
|
-
0 0 0 1px oklch(from var(--color-black-300) l c h / 0.06),
|
|
8
|
-
0 1px 2px oklch(from var(--color-black-300) l c h / 0.06),
|
|
9
|
-
0 6px 16px -6px oklch(from var(--color-black-300) l c h / 0.12);
|
|
10
|
-
}
|
|
11
3
|
|
|
12
4
|
.command {
|
|
13
|
-
--close-duration: 0.1s;
|
|
14
5
|
--color: var(--color-text-500);
|
|
15
6
|
--color-muted: var(--color-text-300);
|
|
16
7
|
--count-fade: 48px;
|
|
17
|
-
|
|
18
|
-
--dialog-
|
|
8
|
+
// Black at the theme's shadow strength, so the scrim still dims under a colored or glowing shadow.
|
|
9
|
+
--dialog-backdrop: oklch(from var(--surface-shadow-color) 0 0 0 / calc(alpha + 0.01));
|
|
19
10
|
--dialog-border-radius: var(--border-radius-600);
|
|
20
11
|
--dialog-offset: 20vh;
|
|
21
12
|
--dialog-scale: 0.98;
|
|
22
13
|
--dialog-width: 600px;
|
|
23
|
-
--divider-color: var(--
|
|
14
|
+
--divider-color: var(--surface-border-default);
|
|
24
15
|
--font-size: calc(var(--font-size-400) * 0.875);
|
|
25
16
|
--footer-height: 44px;
|
|
26
17
|
--input-mask: none;
|
|
27
18
|
--kbd-icon-size: 12px;
|
|
28
19
|
--label-font-size: var(--font-size-200);
|
|
29
20
|
--list-max-height: min(320px, 50vh);
|
|
30
|
-
--
|
|
31
|
-
--option-background: var(--color-grey-400);
|
|
21
|
+
--option-background: var(--surface-background-hover);
|
|
32
22
|
--option-border-radius: var(--border-radius-400);
|
|
33
23
|
--option-height: 36px;
|
|
34
24
|
--search-height: 48px;
|
|
35
25
|
--tab-height: 32px;
|
|
36
|
-
--timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
37
26
|
|
|
38
27
|
&--centered {
|
|
39
28
|
--dialog-offset: auto;
|
|
@@ -44,18 +33,11 @@
|
|
|
44
33
|
--margin-horizontal: var(--size-400);
|
|
45
34
|
--max-width: var(--dialog-width);
|
|
46
35
|
--scale: var(--dialog-scale);
|
|
47
|
-
--transition-duration: var(--open-duration);
|
|
48
|
-
--transition-timing-function: var(--timing-function);
|
|
49
|
-
|
|
50
|
-
@include tokens.state(inactive) {
|
|
51
|
-
--transition-duration: var(--close-duration);
|
|
52
|
-
}
|
|
53
36
|
}
|
|
54
37
|
|
|
55
38
|
// Rests on the active option; the palette moves `--active` for both pointer and keys.
|
|
56
39
|
&-highlight.highlight {
|
|
57
40
|
--background-active: var(--option-background);
|
|
58
|
-
--glide-duration: 0.3s;
|
|
59
41
|
}
|
|
60
42
|
|
|
61
43
|
// 'inherit' passes the palette's '--font-size' through the input's own; 'var(--font-size)' here would refer to
|
|
@@ -74,11 +56,9 @@
|
|
|
74
56
|
|
|
75
57
|
// Takes '--active' alongside its option.
|
|
76
58
|
&-option-icon.icon {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
--color: inherit;
|
|
81
|
-
}
|
|
59
|
+
@extend %color-state;
|
|
60
|
+
--color-active: currentColor;
|
|
61
|
+
--color-default: var(--color-muted);
|
|
82
62
|
}
|
|
83
63
|
|
|
84
64
|
// Long queries fade out before they reach the result count instead of running into it.
|
|
@@ -100,23 +80,20 @@
|
|
|
100
80
|
|
|
101
81
|
&-tabs-highlight.highlight {
|
|
102
82
|
--background-active: var(--option-background);
|
|
103
|
-
--glide-duration: 0.4s;
|
|
104
83
|
}
|
|
105
84
|
|
|
106
85
|
// One 24px keycap line plus 6px either side makes the 36px trigger.
|
|
107
86
|
&-trigger.button {
|
|
108
|
-
--background-default: var(--
|
|
87
|
+
--background-default: var(--surface-background-default);
|
|
109
88
|
--border-radius: var(--border-radius-400);
|
|
110
|
-
--box-shadow-default: var(--
|
|
89
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
111
90
|
--color-default: var(--color-text-300);
|
|
112
91
|
--color-hover: var(--color-text-500);
|
|
113
92
|
--font-size: calc(var(--font-size-400) * 0.875);
|
|
114
93
|
--gap-horizontal: var(--size-100);
|
|
115
94
|
--line-height: 24px;
|
|
116
|
-
--padding-horizontal:
|
|
117
|
-
--padding-vertical:
|
|
118
|
-
--transition-duration: 0.15s;
|
|
119
|
-
--transition-timing-function: ease-out;
|
|
95
|
+
--padding-horizontal: calc(var(--size-300) / 2);
|
|
96
|
+
--padding-vertical: calc(var(--size-300) / 2);
|
|
120
97
|
--width: 240px;
|
|
121
98
|
}
|
|
122
99
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/icon';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.copy {
|
|
@@ -20,11 +20,6 @@
|
|
|
20
20
|
color var(--transition-duration) var(--transition-timing-function);
|
|
21
21
|
width: var(--size);
|
|
22
22
|
|
|
23
|
-
&:focus-visible {
|
|
24
|
-
outline: var(--outline-width) solid var(--outline-color);
|
|
25
|
-
outline-offset: calc(var(--outline-width) * -1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
&-icon {
|
|
29
24
|
flex-shrink: 0;
|
|
30
25
|
height: var(--icon-size);
|
|
@@ -42,6 +37,11 @@
|
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
}
|
|
40
|
+
|
|
41
|
+
&:focus-visible {
|
|
42
|
+
outline: var(--outline-width) solid var(--outline-color);
|
|
43
|
+
outline-offset: calc(var(--outline-width) * -1);
|
|
44
|
+
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
+
@use 'css-utilities/background';
|
|
2
|
+
@use 'css-utilities/color';
|
|
3
|
+
|
|
4
|
+
|
|
1
5
|
.copy {
|
|
2
|
-
|
|
3
|
-
--background-
|
|
4
|
-
--background-
|
|
5
|
-
--border-radius:
|
|
6
|
-
--color: var(--color-default);
|
|
6
|
+
@extend %background-state, %color-state;
|
|
7
|
+
--background-hover: var(--surface-background-hover);
|
|
8
|
+
--background-pressed: var(--surface-background-pressed);
|
|
9
|
+
--border-radius: var(--border-radius-300);
|
|
7
10
|
--color-default: var(--color-text-300);
|
|
8
11
|
--color-hover: var(--color-text-500);
|
|
9
|
-
--
|
|
12
|
+
--color-pressed: var(--color-hover);
|
|
13
|
+
--draw-duration: var(--duration-moderate);
|
|
10
14
|
--draw-timing-function: ease;
|
|
11
|
-
--icon-size:
|
|
15
|
+
--icon-size: var(--size-400);
|
|
12
16
|
--outline-color: var(--color-blue-400);
|
|
13
|
-
--outline-width:
|
|
17
|
+
--outline-width: var(--border-width-500);
|
|
14
18
|
--size: 28px;
|
|
15
|
-
--transition-duration: 150ms;
|
|
16
|
-
--transition-timing-function: ease-out;
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
--background: var(--background-hover);
|
|
20
|
-
--color: var(--color-hover);
|
|
21
|
-
}
|
|
22
19
|
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/hidden';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.counter {
|
|
5
5
|
color: var(--color);
|
|
6
6
|
display: flex;
|
|
7
|
-
gap:
|
|
7
|
+
gap: calc(var(--size-100) / 4);
|
|
8
8
|
place-items: center;
|
|
9
9
|
transition: transform calc(var(--transition-duration) / 4) var(--transition-duration);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
&-character--symbol,
|
|
14
|
-
&-digit {
|
|
15
|
-
background: var(--fill, linear-gradient(currentColor, currentColor));
|
|
16
|
-
background-clip: text;
|
|
17
|
-
-webkit-text-fill-color: transparent;
|
|
11
|
+
&--ticker {
|
|
12
|
+
gap: 0;
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
&-character {
|
|
@@ -34,8 +29,8 @@
|
|
|
34
29
|
// --index counts digits from the right, so the rightmost digit settles first.
|
|
35
30
|
&-track {
|
|
36
31
|
display: grid;
|
|
37
|
-
translate: 0 calc((var(--value) + 1) * (1lh * -1));
|
|
38
32
|
transition: translate var(--transition-duration) var(--timing-function) calc(var(--index) * var(--stagger));
|
|
33
|
+
translate: 0 calc((var(--value) + 1) * (1lh * -1));
|
|
39
34
|
|
|
40
35
|
// Each roll names its own animation, which only '--blur' sets.
|
|
41
36
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -48,6 +43,15 @@
|
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
45
|
|
|
46
|
+
// Only the elements holding glyphs are painted, so a translucent '--fill' never stacks over itself.
|
|
47
|
+
// The text fill goes transparent rather than 'color', which keeps 'currentColor' usable in '--fill'.
|
|
48
|
+
&-character--symbol,
|
|
49
|
+
&-digit {
|
|
50
|
+
-webkit-text-fill-color: transparent;
|
|
51
|
+
background: var(--fill, linear-gradient(currentColor, currentColor));
|
|
52
|
+
background-clip: text;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
&-digit {
|
|
52
56
|
height: 1lh;
|
|
53
57
|
}
|
|
@@ -56,10 +60,6 @@
|
|
|
56
60
|
@extend %hidden-visually;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
&--ticker {
|
|
60
|
-
gap: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
63
|
@media (prefers-reduced-motion: reduce) {
|
|
64
64
|
&,
|
|
65
65
|
&-character-track {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.counter {
|
|
2
2
|
--blur: 0.05em;
|
|
3
|
-
--color: var(--color-
|
|
3
|
+
--color: var(--color-text-400);
|
|
4
4
|
// A gradient here paints the digits in place of '--color'; 'initial' also stops an ancestor's from leaking in.
|
|
5
5
|
--fill: initial;
|
|
6
6
|
// Sized by the surrounding text; set 'font-size' on the counter or a parent to scale it.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { component, html, on, type Attributes, type Element, type Renderable } from '@esportsplus/template';
|
|
2
2
|
import { effect, onCleanup, reactive, untrack } from '@esportsplus/reactivity';
|
|
3
3
|
import form from '~/components/form';
|
|
4
|
-
import scrollbar from '~/
|
|
4
|
+
import scrollbar from '~/modifiers/scrollbar';
|
|
5
5
|
import { observeSize } from '~/shared/resize';
|
|
6
6
|
import './scss/index.scss';
|
|
7
7
|
|
|
@@ -177,12 +177,12 @@ export default component(
|
|
|
177
177
|
<div class='datalist-lens' aria-hidden='true' ${this?.attributes?.[DATALIST_LENS]} ${attributes[DATALIST_LENS]}></div>
|
|
178
178
|
|
|
179
179
|
<div
|
|
180
|
-
class='datalist-scroller
|
|
180
|
+
class='datalist-scroller'
|
|
181
181
|
role='listbox'
|
|
182
182
|
tabindex='0'
|
|
183
183
|
${this?.attributes?.[DATALIST_SCROLLER]}
|
|
184
184
|
${attributes[DATALIST_SCROLLER]}
|
|
185
|
-
${scrollbar
|
|
185
|
+
${scrollbar({ drag: 'vertical', hidden: true })}
|
|
186
186
|
${observeSize(measure)}
|
|
187
187
|
${{
|
|
188
188
|
'aria-activedescendant': () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/hidden';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.datalist {
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
width: min(100%, var(--width));
|
|
13
13
|
|
|
14
14
|
&-lens {
|
|
15
|
-
@include shared.position(absolute, 50% var(--padding) null var(--padding));
|
|
16
15
|
background: var(--background);
|
|
17
16
|
border-radius: var(--border-radius);
|
|
18
17
|
height: var(--item-height);
|
|
18
|
+
inset: 50% var(--padding) auto;
|
|
19
19
|
pointer-events: none;
|
|
20
|
+
position: absolute;
|
|
20
21
|
translate: 0 -50%;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -71,14 +72,14 @@
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
75
|
+
&-tag {
|
|
76
|
+
@extend %hidden-field;
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
// Padding lives on the track, not the scroller, since some engines drop a scroller's block-end padding from its scroll range
|
|
75
80
|
&-track {
|
|
76
81
|
padding-block: calc((var(--height) - var(--item-height)) / 2);
|
|
77
82
|
}
|
|
78
|
-
|
|
79
|
-
&-tag {
|
|
80
|
-
@extend %hidden-field;
|
|
81
|
-
}
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
@keyframes datalist-drum {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use 'css-utilities/surface';
|
|
2
|
+
|
|
1
3
|
.datalist {
|
|
2
4
|
--background: transparent;
|
|
3
5
|
--border-radius: var(--border-radius-700);
|
|
4
6
|
--color: var(--color-text-500);
|
|
5
|
-
--focus-color: var(--
|
|
6
|
-
--focus-width:
|
|
7
|
+
--focus-color: var(--surface-border-pressed);
|
|
8
|
+
--focus-width: var(--border-width-500);
|
|
7
9
|
--font-size: var(--font-size-400);
|
|
8
10
|
--font-weight: var(--font-weight-500);
|
|
9
11
|
--height: calc(var(--item-height) * 5);
|
|
@@ -16,8 +18,10 @@
|
|
|
16
18
|
--scale-falloff: 0.34;
|
|
17
19
|
--width: 224px;
|
|
18
20
|
|
|
21
|
+
// A well a level below the list it frames.
|
|
19
22
|
&-lens {
|
|
20
|
-
|
|
23
|
+
@extend %surface-sunken-level;
|
|
24
|
+
--background: var(--surface-background-default);
|
|
21
25
|
--border-radius: var(--border-radius-600);
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -23,23 +23,18 @@
|
|
|
23
23
|
transform-origin: 50% 100%;
|
|
24
24
|
transition:
|
|
25
25
|
height var(--magnify-duration) var(--magnify-timing-function),
|
|
26
|
-
scale 0.15s ease-out,
|
|
27
26
|
width var(--magnify-duration) var(--magnify-timing-function);
|
|
28
27
|
width: var(--size);
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
&--launching {
|
|
30
|
+
animation:
|
|
31
|
+
dock-hop var(--hop-duration),
|
|
32
|
+
dock-squash var(--hop-duration) var(--easing-in-out);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
&:focus-visible {
|
|
35
36
|
outline: 2px solid var(--color);
|
|
36
|
-
outline-offset:
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&--launching {
|
|
40
|
-
animation:
|
|
41
|
-
dock-hop var(--hop-duration),
|
|
42
|
-
dock-squash var(--hop-duration) ease-in-out;
|
|
37
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
// Relative to the button, so the icon follows the transition too.
|
|
@@ -76,15 +71,15 @@
|
|
|
76
71
|
// 4px under the resting button.
|
|
77
72
|
top: calc(100% - var(--inset) + 4px);
|
|
78
73
|
transition:
|
|
79
|
-
opacity
|
|
80
|
-
scale
|
|
74
|
+
opacity var(--duration-fast-exit) var(--easing-spring),
|
|
75
|
+
scale var(--duration-fast-exit) var(--easing-spring);
|
|
81
76
|
width: var(--light-size);
|
|
82
77
|
|
|
83
78
|
@include tokens.state(active) {
|
|
84
79
|
opacity: 1;
|
|
85
80
|
scale: 1;
|
|
86
81
|
transition-delay: var(--light-delay);
|
|
87
|
-
transition-duration:
|
|
82
|
+
transition-duration: var(--duration-fast);
|
|
88
83
|
}
|
|
89
84
|
}
|
|
90
85
|
}
|
|
@@ -93,7 +88,7 @@
|
|
|
93
88
|
// Up fast and down with gravity; each landing is the quickest part.
|
|
94
89
|
@keyframes dock-hop {
|
|
95
90
|
0% {
|
|
96
|
-
animation-timing-function:
|
|
91
|
+
animation-timing-function: var(--easing-out);
|
|
97
92
|
translate: 0 0;
|
|
98
93
|
}
|
|
99
94
|
30% {
|
|
@@ -101,7 +96,7 @@
|
|
|
101
96
|
translate: 0 -22px;
|
|
102
97
|
}
|
|
103
98
|
55% {
|
|
104
|
-
animation-timing-function:
|
|
99
|
+
animation-timing-function: var(--easing-out);
|
|
105
100
|
translate: 0 0;
|
|
106
101
|
}
|
|
107
102
|
78% {
|