@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,3 +1,7 @@
|
|
|
1
|
+
@use 'css-utilities/background';
|
|
2
|
+
@use 'css-utilities/surface';
|
|
3
|
+
|
|
4
|
+
|
|
1
5
|
// Registered so a transition can spring the offset. Not inherited, or every item in the feed would restyle on every frame of
|
|
2
6
|
// the spring; the indicator, glyph, spinner, scroller and feed follow the one interpolated value by declaring
|
|
3
7
|
// '--pull-to-refresh-y: inherit', and so can any element of yours whose parent has it.
|
|
@@ -8,13 +12,14 @@
|
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
.pull-to-refresh {
|
|
11
|
-
|
|
15
|
+
@extend %background-state, %surface-raised-level;
|
|
16
|
+
--background-default: var(--surface-background-default);
|
|
12
17
|
--color: var(--color-text-500);
|
|
13
|
-
--fade-duration:
|
|
14
|
-
--fade-timing-function:
|
|
15
|
-
--fresh-blur:
|
|
16
|
-
--fresh-duration:
|
|
17
|
-
--fresh-timing-function:
|
|
18
|
+
--fade-duration: var(--duration-fast);
|
|
19
|
+
--fade-timing-function: var(--easing-out);
|
|
20
|
+
--fresh-blur: var(--blur-400);
|
|
21
|
+
--fresh-duration: var(--duration-moderate);
|
|
22
|
+
--fresh-timing-function: var(--easing-out);
|
|
18
23
|
--height: 100%;
|
|
19
24
|
// Critically damped at a 0.35s visual duration: an indicator that overshoots would bounce the feed.
|
|
20
25
|
--settle-duration: 617ms;
|
|
@@ -23,7 +23,7 @@ function plain(
|
|
|
23
23
|
return html`
|
|
24
24
|
<input
|
|
25
25
|
aria-orientation='${orientation}'
|
|
26
|
-
class='range
|
|
26
|
+
class='range ${orientation === 'vertical' && 'range--vertical'}'
|
|
27
27
|
style='${() => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`}'
|
|
28
28
|
type='range'
|
|
29
29
|
${this?.attributes}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/absolute';
|
|
3
|
+
@use 'css-utilities/background';
|
|
4
|
+
@use 'css-utilities/box-shadow';
|
|
5
|
+
@use 'css-utilities/color';
|
|
6
|
+
@use 'css-utilities/hidden';
|
|
3
7
|
@use 'variables';
|
|
4
8
|
|
|
5
9
|
.range-filter {
|
|
6
10
|
color: var(--color);
|
|
7
11
|
display: flex;
|
|
8
12
|
flex-direction: column;
|
|
9
|
-
gap:
|
|
13
|
+
gap: var(--size-500);
|
|
10
14
|
margin-inline: auto;
|
|
11
15
|
max-width: 100%;
|
|
12
16
|
width: var(--width);
|
|
@@ -14,7 +18,7 @@
|
|
|
14
18
|
&-body {
|
|
15
19
|
display: flex;
|
|
16
20
|
flex-direction: column;
|
|
17
|
-
gap:
|
|
21
|
+
gap: var(--size-100);
|
|
18
22
|
|
|
19
23
|
&--vertical {
|
|
20
24
|
align-self: center;
|
|
@@ -23,45 +27,51 @@
|
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
&-clear {
|
|
30
|
+
@extend %background-state, %color-state;
|
|
31
|
+
--background-default: var(--clear-background);
|
|
32
|
+
--background-hover: var(--clear-hover);
|
|
33
|
+
--background-pressed: var(--background-hover);
|
|
34
|
+
--color-default: var(--muted-color);
|
|
35
|
+
--color-hover: var(--clear-color-hover);
|
|
36
|
+
--color-pressed: var(--color-hover);
|
|
26
37
|
align-items: center;
|
|
27
|
-
background: var(--
|
|
38
|
+
background: var(--background);
|
|
28
39
|
border: 1px solid var(--clear-border);
|
|
29
|
-
border-radius:
|
|
30
|
-
box-shadow:
|
|
31
|
-
color: var(--
|
|
40
|
+
border-radius: var(--border-radius-300);
|
|
41
|
+
box-shadow: var(--surface-shadow-default);
|
|
42
|
+
color: var(--color);
|
|
32
43
|
cursor: pointer;
|
|
33
44
|
display: var(--clear-display);
|
|
34
45
|
flex-shrink: 0;
|
|
35
46
|
font: inherit;
|
|
36
|
-
font-size:
|
|
47
|
+
font-size: var(--font-size-300);
|
|
37
48
|
font-weight: var(--font-weight-500);
|
|
38
|
-
gap:
|
|
49
|
+
gap: calc(var(--size-100) / 2);
|
|
39
50
|
height: 24px;
|
|
40
51
|
outline: 0 solid var(--focus-color);
|
|
41
|
-
outline-offset:
|
|
42
|
-
padding: 0
|
|
52
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
53
|
+
padding: 0 var(--size-100);
|
|
43
54
|
transition:
|
|
44
|
-
background-color
|
|
45
|
-
color
|
|
46
|
-
opacity
|
|
55
|
+
background-color var(--duration-fast) var(--easing-spring),
|
|
56
|
+
color var(--duration-fast) var(--easing-spring),
|
|
57
|
+
opacity var(--duration-fast) var(--easing-spring);
|
|
58
|
+
|
|
59
|
+
&-icon {
|
|
60
|
+
height: 12px;
|
|
61
|
+
width: 12px;
|
|
62
|
+
}
|
|
47
63
|
|
|
48
64
|
&:disabled {
|
|
65
|
+
--background-hover: var(--background-default);
|
|
66
|
+
--background-pressed: var(--background-default);
|
|
67
|
+
--color-hover: var(--color-default);
|
|
68
|
+
--color-pressed: var(--color-default);
|
|
49
69
|
cursor: default;
|
|
50
70
|
opacity: 0.5;
|
|
51
71
|
}
|
|
52
72
|
|
|
53
73
|
&:focus-visible {
|
|
54
|
-
outline-width:
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:not(:disabled):hover {
|
|
58
|
-
background: var(--clear-hover);
|
|
59
|
-
color: var(--color);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&-icon {
|
|
63
|
-
height: 12px;
|
|
64
|
-
width: 12px;
|
|
74
|
+
outline-width: var(--border-width-500);
|
|
65
75
|
}
|
|
66
76
|
}
|
|
67
77
|
|
|
@@ -114,22 +124,17 @@
|
|
|
114
124
|
cursor: var(--field-cursor);
|
|
115
125
|
display: flex;
|
|
116
126
|
flex: 1 1 0;
|
|
117
|
-
gap:
|
|
127
|
+
gap: calc(var(--size-300) / 2);
|
|
118
128
|
height: var(--field-height);
|
|
119
129
|
min-width: 0;
|
|
120
130
|
outline: 0 solid var(--focus-color);
|
|
121
|
-
outline-offset:
|
|
131
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
122
132
|
padding-inline: 12px;
|
|
123
133
|
|
|
124
|
-
&:has(:focus-visible) {
|
|
125
|
-
outline-width: 2px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
134
|
&-label {
|
|
129
135
|
color: var(--muted-color);
|
|
130
|
-
font-size:
|
|
136
|
+
font-size: var(--font-size-300);
|
|
131
137
|
font-weight: var(--font-weight-500);
|
|
132
|
-
letter-spacing: 0.05em;
|
|
133
138
|
text-transform: uppercase;
|
|
134
139
|
}
|
|
135
140
|
|
|
@@ -138,6 +143,14 @@
|
|
|
138
143
|
margin-inline-start: auto;
|
|
139
144
|
}
|
|
140
145
|
|
|
146
|
+
&-prefix + .range-filter-input {
|
|
147
|
+
margin-inline-start: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:has(:focus-visible) {
|
|
151
|
+
outline-width: var(--border-width-500);
|
|
152
|
+
}
|
|
153
|
+
|
|
141
154
|
// Qualified by the field so it wins over the reused input styles regardless of stylesheet order.
|
|
142
155
|
.range-filter-input {
|
|
143
156
|
flex: 0 1 72px;
|
|
@@ -148,10 +161,6 @@
|
|
|
148
161
|
text-align: right;
|
|
149
162
|
width: 72px;
|
|
150
163
|
}
|
|
151
|
-
|
|
152
|
-
&-prefix + .range-filter-input {
|
|
153
|
-
margin-inline-start: 0;
|
|
154
|
-
}
|
|
155
164
|
}
|
|
156
165
|
|
|
157
166
|
&-fields {
|
|
@@ -170,9 +179,9 @@
|
|
|
170
179
|
position: absolute;
|
|
171
180
|
top: 50%;
|
|
172
181
|
transition:
|
|
173
|
-
left 75ms
|
|
174
|
-
opacity 100ms
|
|
175
|
-
width 75ms
|
|
182
|
+
left 75ms var(--easing-out),
|
|
183
|
+
opacity 100ms var(--easing-out),
|
|
184
|
+
width 75ms var(--easing-out);
|
|
176
185
|
translate: 0 -50%;
|
|
177
186
|
z-index: 1;
|
|
178
187
|
|
|
@@ -184,9 +193,9 @@
|
|
|
184
193
|
left: 50%;
|
|
185
194
|
top: auto;
|
|
186
195
|
transition:
|
|
187
|
-
bottom 75ms
|
|
188
|
-
opacity 100ms
|
|
189
|
-
height 75ms
|
|
196
|
+
bottom 75ms var(--easing-out),
|
|
197
|
+
opacity 100ms var(--easing-out),
|
|
198
|
+
height 75ms var(--easing-out);
|
|
190
199
|
translate: -50% 0;
|
|
191
200
|
width: var(--track-height);
|
|
192
201
|
}
|
|
@@ -207,7 +216,6 @@
|
|
|
207
216
|
color: var(--label-color);
|
|
208
217
|
font-size: var(--label-font-size);
|
|
209
218
|
font-weight: var(--font-weight-500);
|
|
210
|
-
letter-spacing: var(--label-letter-spacing);
|
|
211
219
|
margin: var(--label-margin);
|
|
212
220
|
text-transform: var(--label-text-transform);
|
|
213
221
|
}
|
|
@@ -270,15 +278,18 @@
|
|
|
270
278
|
|
|
271
279
|
// Held inside the track like Radix does it: the centre travels from half a thumb in at each end.
|
|
272
280
|
&-thumb {
|
|
281
|
+
@extend %box-shadow-state;
|
|
282
|
+
--box-shadow-active: var(--thumb-shadow-active);
|
|
283
|
+
--box-shadow-default: var(--thumb-shadow);
|
|
273
284
|
background: var(--thumb-background);
|
|
274
285
|
border: var(--thumb-border-width) solid var(--thumb-border);
|
|
275
286
|
border-radius: 50%;
|
|
276
|
-
box-shadow: var(--
|
|
287
|
+
box-shadow: var(--box-shadow);
|
|
277
288
|
cursor: var(--thumb-cursor);
|
|
278
289
|
height: var(--thumb-size);
|
|
279
290
|
left: calc(var(--thumb-size) / 2 + var(--position) * (100% - var(--thumb-size)));
|
|
280
291
|
outline: var(--thumb-outline);
|
|
281
|
-
outline-offset:
|
|
292
|
+
outline-offset: calc(var(--size-100) / 4);
|
|
282
293
|
position: absolute;
|
|
283
294
|
top: 50%;
|
|
284
295
|
transition: var(--thumb-transition);
|
|
@@ -298,9 +309,10 @@
|
|
|
298
309
|
translate: -50% 50%;
|
|
299
310
|
}
|
|
300
311
|
|
|
312
|
+
// The default, so a held thumb still takes its press shadow.
|
|
301
313
|
&:focus-visible {
|
|
302
|
-
box-shadow: var(--thumb-shadow-focus);
|
|
303
|
-
outline-width:
|
|
314
|
+
--box-shadow-default: var(--thumb-shadow-focus);
|
|
315
|
+
outline-width: var(--border-width-600);
|
|
304
316
|
}
|
|
305
317
|
|
|
306
318
|
&:hover {
|
|
@@ -309,7 +321,6 @@
|
|
|
309
321
|
|
|
310
322
|
// Last, so a held thumb keeps its press look while hovered or focused.
|
|
311
323
|
@include tokens.state(active) {
|
|
312
|
-
box-shadow: var(--thumb-shadow-active);
|
|
313
324
|
cursor: var(--thumb-cursor-active);
|
|
314
325
|
scale: var(--thumb-scale-active);
|
|
315
326
|
}
|
|
@@ -318,7 +329,7 @@
|
|
|
318
329
|
&-ticks {
|
|
319
330
|
color: var(--tick-color);
|
|
320
331
|
display: flex;
|
|
321
|
-
font-size:
|
|
332
|
+
font-size: var(--font-size-200);
|
|
322
333
|
font-weight: var(--font-weight-500);
|
|
323
334
|
justify-content: space-between;
|
|
324
335
|
user-select: none;
|
|
@@ -357,7 +368,7 @@
|
|
|
357
368
|
&-values {
|
|
358
369
|
align-items: center;
|
|
359
370
|
display: flex;
|
|
360
|
-
gap:
|
|
371
|
+
gap: calc(var(--size-300) / 2);
|
|
361
372
|
}
|
|
362
373
|
|
|
363
374
|
&.--disabled {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/surface';
|
|
2
3
|
|
|
3
4
|
@mixin thumb {
|
|
4
5
|
background: var(--thumb-background);
|
|
@@ -8,22 +9,72 @@
|
|
|
8
9
|
cursor: grab;
|
|
9
10
|
height: var(--thumb-size);
|
|
10
11
|
transition:
|
|
11
|
-
box-shadow
|
|
12
|
-
scale
|
|
12
|
+
box-shadow var(--duration-fast) var(--easing-spring),
|
|
13
|
+
scale var(--duration-fast) var(--easing-spring);
|
|
13
14
|
width: var(--thumb-size);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.range--slider {
|
|
17
|
-
--focus-color:
|
|
18
|
-
--range-color: var(--color-
|
|
18
|
+
--focus-color: var(--surface-border-pressed);
|
|
19
|
+
--range-color: var(--color-primary-500);
|
|
20
|
+
// A physical knob stays white in both modes.
|
|
19
21
|
--thumb-background: var(--color-white-300);
|
|
20
|
-
--thumb-border: var(--
|
|
21
|
-
--thumb-shadow:
|
|
22
|
-
--thumb-size:
|
|
23
|
-
|
|
22
|
+
--thumb-border: var(--surface-border-default);
|
|
23
|
+
--thumb-shadow: var(--surface-shadow-default);
|
|
24
|
+
--thumb-size: var(--size-400);
|
|
25
|
+
// A level below what holds the slider. Painted in the range's own background beside the fill, so it takes the
|
|
26
|
+
// level's color rather than the range counting as a surface, which would flatten the thumb's shadow.
|
|
27
|
+
--track-color: #{surface.surface-background('calc(var(--surface-level) - 1)')};
|
|
24
28
|
|
|
25
29
|
@media (pointer: coarse) {
|
|
26
|
-
--thumb-size:
|
|
30
|
+
--thumb-size: var(--size-500);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.range-filter.range--slider {
|
|
35
|
+
--clear-display: none;
|
|
36
|
+
--ghost-display: none;
|
|
37
|
+
// The heading's label and value join the header row.
|
|
38
|
+
--header-align: center;
|
|
39
|
+
--header-gap: var(--size-100);
|
|
40
|
+
--heading-display: contents;
|
|
41
|
+
--label-color: currentColor;
|
|
42
|
+
--label-font-size: 1em;
|
|
43
|
+
--label-margin: 0;
|
|
44
|
+
--label-text-transform: none;
|
|
45
|
+
--range-border-radius: 999px;
|
|
46
|
+
--thumb-border-width: var(--border-width-400);
|
|
47
|
+
--thumb-cursor: grab;
|
|
48
|
+
--thumb-cursor-active: grabbing;
|
|
49
|
+
--thumb-outline: none;
|
|
50
|
+
--thumb-scale-active: 1.2;
|
|
51
|
+
--thumb-scale-hover: 1;
|
|
52
|
+
--thumb-shadow-active: none;
|
|
53
|
+
--thumb-shadow-focus: 0 0 0 3px var(--focus-color);
|
|
54
|
+
--thumb-transition:
|
|
55
|
+
box-shadow var(--duration-fast) var(--easing-spring),
|
|
56
|
+
scale var(--duration-fast) var(--easing-spring);
|
|
57
|
+
--track-height: 4px;
|
|
58
|
+
// Match the fill to the existing thumb travel without changing range behavior.
|
|
59
|
+
--track-inset: calc(var(--thumb-size) / 2);
|
|
60
|
+
--track-overflow: visible;
|
|
61
|
+
--value-font-size: calc(var(--font-size-400) * 0.875);
|
|
62
|
+
// Unset, so the value takes the weight around it.
|
|
63
|
+
--value-font-weight: initial;
|
|
64
|
+
--width: 100%;
|
|
65
|
+
font-size: var(--value-font-size);
|
|
66
|
+
gap: var(--size-100);
|
|
67
|
+
|
|
68
|
+
@include tokens.state(disabled) {
|
|
69
|
+
--thumb-cursor: not-allowed;
|
|
70
|
+
--thumb-cursor-active: not-allowed;
|
|
71
|
+
--thumb-scale-active: 1;
|
|
72
|
+
opacity: 0.64;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (prefers-reduced-motion: reduce) {
|
|
76
|
+
--thumb-scale-active: 1;
|
|
77
|
+
--thumb-transition: box-shadow var(--duration-fast) var(--easing-spring);
|
|
27
78
|
}
|
|
28
79
|
}
|
|
29
80
|
|
|
@@ -31,35 +82,25 @@
|
|
|
31
82
|
--background-default: linear-gradient(to right, var(--range-color) var(--thumb-position), var(--track-color) var(--thumb-position));
|
|
32
83
|
--height: 4px;
|
|
33
84
|
|
|
34
|
-
|
|
35
|
-
&::-webkit-slider-thumb {
|
|
85
|
+
&::-moz-range-thumb {
|
|
36
86
|
@include thumb;
|
|
37
87
|
appearance: none;
|
|
38
88
|
}
|
|
39
89
|
|
|
40
|
-
|
|
90
|
+
// Keep browser pseudo-elements separate: an unknown pseudo invalidates a selector list.
|
|
91
|
+
&::-webkit-slider-thumb {
|
|
41
92
|
@include thumb;
|
|
42
93
|
appearance: none;
|
|
43
94
|
}
|
|
44
95
|
|
|
45
|
-
&:focus-visible {
|
|
46
|
-
&::-webkit-slider-thumb {
|
|
47
|
-
box-shadow: 0 0 0 3px var(--focus-color);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&::-moz-range-thumb {
|
|
51
|
-
box-shadow: 0 0 0 3px var(--focus-color);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
96
|
&:active:not(:disabled) {
|
|
56
|
-
&::-
|
|
97
|
+
&::-moz-range-thumb {
|
|
57
98
|
box-shadow: none;
|
|
58
99
|
cursor: grabbing;
|
|
59
100
|
scale: 1.2;
|
|
60
101
|
}
|
|
61
102
|
|
|
62
|
-
&::-
|
|
103
|
+
&::-webkit-slider-thumb {
|
|
63
104
|
box-shadow: none;
|
|
64
105
|
cursor: grabbing;
|
|
65
106
|
scale: 1.2;
|
|
@@ -69,72 +110,34 @@
|
|
|
69
110
|
&:disabled {
|
|
70
111
|
opacity: 0.64;
|
|
71
112
|
|
|
113
|
+
&::-moz-range-thumb {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
|
|
72
117
|
&::-webkit-slider-thumb {
|
|
73
118
|
cursor: not-allowed;
|
|
74
119
|
}
|
|
120
|
+
}
|
|
75
121
|
|
|
122
|
+
&:focus-visible {
|
|
76
123
|
&::-moz-range-thumb {
|
|
77
|
-
|
|
124
|
+
box-shadow: 0 0 0 3px var(--focus-color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::-webkit-slider-thumb {
|
|
128
|
+
box-shadow: 0 0 0 3px var(--focus-color);
|
|
78
129
|
}
|
|
79
130
|
}
|
|
80
131
|
|
|
81
132
|
@media (prefers-reduced-motion: reduce) {
|
|
82
133
|
&:active:not(:disabled) {
|
|
83
|
-
&::-
|
|
134
|
+
&::-moz-range-thumb {
|
|
84
135
|
scale: 1;
|
|
85
136
|
}
|
|
86
137
|
|
|
87
|
-
&::-
|
|
138
|
+
&::-webkit-slider-thumb {
|
|
88
139
|
scale: 1;
|
|
89
140
|
}
|
|
90
141
|
}
|
|
91
142
|
}
|
|
92
143
|
}
|
|
93
|
-
|
|
94
|
-
.range-filter.range--slider {
|
|
95
|
-
--clear-display: none;
|
|
96
|
-
--ghost-display: none;
|
|
97
|
-
// The heading's label and value join the header row.
|
|
98
|
-
--header-align: center;
|
|
99
|
-
--header-gap: 8px;
|
|
100
|
-
--heading-display: contents;
|
|
101
|
-
--label-color: currentColor;
|
|
102
|
-
--label-font-size: 1em;
|
|
103
|
-
--label-letter-spacing: normal;
|
|
104
|
-
--label-margin: 0;
|
|
105
|
-
--label-text-transform: none;
|
|
106
|
-
--range-border-radius: 999px;
|
|
107
|
-
--thumb-border-width: 1px;
|
|
108
|
-
--thumb-cursor: grab;
|
|
109
|
-
--thumb-cursor-active: grabbing;
|
|
110
|
-
--thumb-outline: none;
|
|
111
|
-
--thumb-scale-active: 1.2;
|
|
112
|
-
--thumb-scale-hover: 1;
|
|
113
|
-
--thumb-shadow-active: none;
|
|
114
|
-
--thumb-shadow-focus: 0 0 0 3px var(--focus-color);
|
|
115
|
-
--thumb-transition:
|
|
116
|
-
box-shadow 150ms ease-out,
|
|
117
|
-
scale 150ms ease-out;
|
|
118
|
-
--track-height: 4px;
|
|
119
|
-
// Match the fill to the existing thumb travel without changing range behavior.
|
|
120
|
-
--track-inset: calc(var(--thumb-size) / 2);
|
|
121
|
-
--track-overflow: visible;
|
|
122
|
-
--value-font-size: calc(var(--font-size-400) * 0.875);
|
|
123
|
-
// Unset, so the value takes the weight around it.
|
|
124
|
-
--value-font-weight: initial;
|
|
125
|
-
--width: 100%;
|
|
126
|
-
font-size: var(--value-font-size);
|
|
127
|
-
gap: 8px;
|
|
128
|
-
|
|
129
|
-
@include tokens.state(disabled) {
|
|
130
|
-
--thumb-cursor: not-allowed;
|
|
131
|
-
--thumb-cursor-active: not-allowed;
|
|
132
|
-
--thumb-scale-active: 1;
|
|
133
|
-
opacity: 0.64;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@media (prefers-reduced-motion: reduce) {
|
|
137
|
-
--thumb-scale-active: 1;
|
|
138
|
-
--thumb-transition: box-shadow 150ms ease-out;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
--vertical-size: 176px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
// The filter's parts take their vertical layout from their own '--vertical' modifiers.
|
|
6
|
+
.range-filter.range--vertical {
|
|
7
|
+
--width: max-content;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
.range.range--vertical {
|
|
6
|
-
--background-default: linear-gradient(to top, var(--thumb-background) var(--thumb-position), var(--color-
|
|
11
|
+
--background-default: linear-gradient(to top, var(--thumb-background) var(--thumb-position), var(--color-primary-300) var(--thumb-position));
|
|
7
12
|
direction: rtl;
|
|
8
13
|
height: var(--vertical-size);
|
|
9
14
|
margin-block: var(--margin-vertical);
|
|
@@ -15,8 +20,3 @@
|
|
|
15
20
|
--background-default: linear-gradient(to top, var(--range-color) var(--thumb-position), var(--track-color) var(--thumb-position));
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
|
-
|
|
19
|
-
// The filter's parts take their vertical layout from their own '--vertical' modifiers.
|
|
20
|
-
.range-filter.range--vertical {
|
|
21
|
-
--width: max-content;
|
|
22
|
-
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
|
-
@use '/
|
|
2
|
+
@use 'css-utilities/background';
|
|
3
|
+
@use 'css-utilities/border';
|
|
3
4
|
@use 'filter';
|
|
4
5
|
@use 'variables';
|
|
5
6
|
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
.range {
|
|
18
|
-
@extend %background-state, %border-state;
|
|
19
|
+
@extend %background-state, %border-primary, %border-state;
|
|
19
20
|
appearance: none;
|
|
20
21
|
background: var(--background);
|
|
21
22
|
border: 0px;
|
|
@@ -1,59 +1,62 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/surface';
|
|
2
3
|
|
|
3
4
|
.range {
|
|
4
|
-
--background-default: linear-gradient(to right, var(--thumb-background) var(--thumb-position), var(--color-
|
|
5
|
+
--background-default: linear-gradient(to right, var(--thumb-background) var(--thumb-position), var(--color-primary-300) var(--thumb-position));
|
|
5
6
|
--border-width: var(--border-width-700);
|
|
6
7
|
--height: var(--size-200);
|
|
7
8
|
--margin-horizontal: 0px;
|
|
8
9
|
--margin-vertical: 0px;
|
|
9
|
-
--thumb-background: var(--
|
|
10
|
+
--thumb-background: var(--surface-background-default);
|
|
10
11
|
--thumb-size: var(--size-400);
|
|
11
12
|
--width: 100%;
|
|
12
13
|
|
|
13
14
|
&-filter {
|
|
14
|
-
|
|
15
|
-
--clear-
|
|
15
|
+
@extend %surface-raised-level;
|
|
16
|
+
--clear-background: var(--surface-background-default);
|
|
17
|
+
--clear-border: var(--surface-border-default);
|
|
18
|
+
// Resolved here, since the clear button's color state redefines --color on it.
|
|
19
|
+
--clear-color-hover: var(--color);
|
|
16
20
|
--clear-display: inline-flex;
|
|
17
|
-
--clear-hover: var(--
|
|
21
|
+
--clear-hover: var(--surface-background-hover);
|
|
18
22
|
--color: var(--color-text-500);
|
|
19
|
-
--field-background: var(--
|
|
23
|
+
--field-background: var(--surface-background-default);
|
|
20
24
|
--field-border-radius: var(--border-radius-400);
|
|
21
25
|
--field-cursor: text;
|
|
22
26
|
--field-height: 40px;
|
|
23
|
-
--focus-color:
|
|
24
|
-
--ghost-color: oklch(from var(--color-
|
|
27
|
+
--focus-color: var(--surface-border-pressed);
|
|
28
|
+
--ghost-color: oklch(from var(--color-primary-500) l c h / 0.3);
|
|
25
29
|
--ghost-display: block;
|
|
26
30
|
--header-align: flex-start;
|
|
27
|
-
--header-gap:
|
|
31
|
+
--header-gap: var(--size-400);
|
|
28
32
|
--heading-display: block;
|
|
29
33
|
--label-color: var(--muted-color);
|
|
30
|
-
--label-font-size:
|
|
31
|
-
--label-
|
|
32
|
-
--label-margin: 0 0 4px;
|
|
34
|
+
--label-font-size: var(--font-size-300);
|
|
35
|
+
--label-margin: 0 0 calc(var(--size-100) / 2);
|
|
33
36
|
--label-text-transform: uppercase;
|
|
34
37
|
--muted-color: var(--color-text-300);
|
|
35
38
|
--range-border-radius: 0px;
|
|
36
|
-
--range-color: var(--color-
|
|
39
|
+
--range-color: var(--color-primary-500);
|
|
37
40
|
--roll-duration: 500ms;
|
|
38
|
-
--roll-ease:
|
|
41
|
+
--roll-ease: var(--easing-out);
|
|
39
42
|
--root-cursor: pointer;
|
|
40
|
-
--thumb-background: var(--
|
|
41
|
-
--thumb-border: var(--color-
|
|
42
|
-
--thumb-border-width:
|
|
43
|
+
--thumb-background: var(--surface-background-default);
|
|
44
|
+
--thumb-border: var(--color-primary-500);
|
|
45
|
+
--thumb-border-width: var(--border-width-500);
|
|
43
46
|
// Unset, so the thumb takes the cursor around it.
|
|
44
47
|
--thumb-cursor: initial;
|
|
45
48
|
--thumb-cursor-active: initial;
|
|
46
49
|
--thumb-outline: 0 solid var(--focus-color);
|
|
47
50
|
--thumb-scale-active: 1.25;
|
|
48
51
|
--thumb-scale-hover: 1.25;
|
|
49
|
-
--thumb-shadow:
|
|
52
|
+
--thumb-shadow: var(--surface-shadow-default);
|
|
50
53
|
--thumb-shadow-active: var(--thumb-shadow);
|
|
51
54
|
--thumb-shadow-focus: var(--thumb-shadow);
|
|
52
|
-
--thumb-size:
|
|
53
|
-
--thumb-transition: scale
|
|
54
|
-
--tick-color: oklch(from var(--color-
|
|
55
|
-
--track-color: var(--
|
|
56
|
-
--track-height:
|
|
55
|
+
--thumb-size: var(--size-500);
|
|
56
|
+
--thumb-transition: scale var(--duration-fast) var(--easing-spring);
|
|
57
|
+
--tick-color: oklch(from var(--color-primary-300) l c h / 0.6);
|
|
58
|
+
--track-color: var(--surface-border-default);
|
|
59
|
+
--track-height: var(--size-100);
|
|
57
60
|
--track-inset: 0px;
|
|
58
61
|
--track-overflow: hidden;
|
|
59
62
|
--value-font-size: var(--font-size-500);
|