@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,4 +1,4 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/hidden';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.error {
|
|
@@ -6,6 +6,22 @@
|
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
vertical-align: middle;
|
|
8
8
|
|
|
9
|
+
&-live {
|
|
10
|
+
@extend %hidden-visually;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Long messages wrap instead of running off in one line.
|
|
14
|
+
&-message.tooltip-content {
|
|
15
|
+
--background-default: var(--error-background);
|
|
16
|
+
--max-width: var(--error-max-width);
|
|
17
|
+
--spacer: var(--error-spacer);
|
|
18
|
+
--width: max-content;
|
|
19
|
+
color: var(--error-text);
|
|
20
|
+
font-size: var(--error-font-size);
|
|
21
|
+
padding: var(--error-padding);
|
|
22
|
+
white-space: normal;
|
|
23
|
+
}
|
|
24
|
+
|
|
9
25
|
// The control draws its edge from '--border-color', as the form controls do. Doubled, so it outranks the control's
|
|
10
26
|
// own hover and active states whatever order the sheets load in.
|
|
11
27
|
&.error--invalid.error--invalid > :not(.error-live, .error-message) {
|
|
@@ -13,11 +29,11 @@
|
|
|
13
29
|
}
|
|
14
30
|
|
|
15
31
|
&.error--shake-1 > :not(.error-live, .error-message) {
|
|
16
|
-
animation: error-shake-1
|
|
32
|
+
animation: error-shake-1 var(--duration-slow) var(--easing-out);
|
|
17
33
|
}
|
|
18
34
|
|
|
19
35
|
&.error--shake-2 > :not(.error-live, .error-message) {
|
|
20
|
-
animation: error-shake-2
|
|
36
|
+
animation: error-shake-2 var(--duration-slow) var(--easing-out);
|
|
21
37
|
}
|
|
22
38
|
|
|
23
39
|
// The tooltip's repaint behind its trigger, which the goo bridges from while the morph runs, so the neck reads as
|
|
@@ -27,22 +43,6 @@
|
|
|
27
43
|
inset: 0 var(--error-reach);
|
|
28
44
|
}
|
|
29
45
|
|
|
30
|
-
&-live {
|
|
31
|
-
@extend %hidden-visually;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Long messages wrap instead of running off in one line.
|
|
35
|
-
&-message.tooltip-content {
|
|
36
|
-
--background: var(--error-background);
|
|
37
|
-
--max-width: var(--error-max-width);
|
|
38
|
-
--spacer: var(--error-spacer);
|
|
39
|
-
--width: max-content;
|
|
40
|
-
color: var(--error-text);
|
|
41
|
-
font-size: var(--error-font-size);
|
|
42
|
-
padding: var(--error-padding);
|
|
43
|
-
white-space: normal;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
46
|
@media (prefers-reduced-motion: reduce) {
|
|
47
47
|
&:is(.error--shake-1, .error--shake-2) > * {
|
|
48
48
|
animation: none;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Prefixed, unlike most components: the wrapper's custom properties inherit into the control it wraps, and a plain
|
|
2
2
|
// '--color' or '--background' there would restyle it.
|
|
3
3
|
.error {
|
|
4
|
-
--error-background: var(--color-
|
|
4
|
+
--error-background: var(--color-primary-400);
|
|
5
5
|
--error-color: var(--color-red-400);
|
|
6
6
|
--error-font-size: var(--font-size-300);
|
|
7
7
|
--error-max-width: 240px;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
// How far the shake swings each way; the fill behind the control is pulled in by as much.
|
|
10
10
|
--error-reach: 4px;
|
|
11
11
|
--error-spacer: 4px;
|
|
12
|
-
--error-text: var(--
|
|
12
|
+
--error-text: var(--surface-background-default);
|
|
13
13
|
}
|
|
@@ -47,10 +47,13 @@ export default <T>({ filters, height = false, items, label, state = reactive({ a
|
|
|
47
47
|
elements: (HTMLElement | undefined)[] = [],
|
|
48
48
|
// How items come, go and move, from the list's CSS; null where it has no duration.
|
|
49
49
|
enter: KeyframeAnimationOptions | null = null,
|
|
50
|
+
// What items grow from and shrink to as they come and go.
|
|
51
|
+
enterScale = '1',
|
|
50
52
|
heldFocus = false,
|
|
51
53
|
id = `filter-${++instance}`,
|
|
52
54
|
leave: KeyframeAnimationOptions | null = null,
|
|
53
55
|
leaving = new Map<HTMLElement, string>(),
|
|
56
|
+
leaveScale = '1',
|
|
54
57
|
list: HTMLElement | undefined,
|
|
55
58
|
move: KeyframeAnimationOptions | null = null,
|
|
56
59
|
resize: Animation | undefined,
|
|
@@ -248,7 +251,7 @@ export default <T>({ filters, height = false, items, label, state = reactive({ a
|
|
|
248
251
|
element.style.top = `${rect.top - origin.top}px`;
|
|
249
252
|
element.style.width = `${rect.width}px`;
|
|
250
253
|
|
|
251
|
-
play(element, [{ opacity: 1, transform: 'scale(1)' }, { opacity: 0, transform:
|
|
254
|
+
play(element, [{ opacity: 1, transform: 'scale(1)' }, { opacity: 0, transform: `scale(${leaveScale})` }], leave).onfinish = () => {
|
|
252
255
|
animations.delete(element);
|
|
253
256
|
release(element);
|
|
254
257
|
element.style.display = 'none';
|
|
@@ -311,7 +314,7 @@ export default <T>({ filters, height = false, items, label, state = reactive({ a
|
|
|
311
314
|
|
|
312
315
|
if (!rect) {
|
|
313
316
|
if (enter && near(last, view)) {
|
|
314
|
-
play(element, [{ opacity: 0, transform:
|
|
317
|
+
play(element, [{ opacity: 0, transform: `scale(${enterScale})` }, { opacity: 1, transform: 'scale(1)' }], enter);
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
continue;
|
|
@@ -341,7 +344,9 @@ export default <T>({ filters, height = false, items, label, state = reactive({ a
|
|
|
341
344
|
let computed = list && getComputedStyle(list);
|
|
342
345
|
|
|
343
346
|
enter = computed ? timing(computed, 'enter') : null;
|
|
347
|
+
enterScale = computed?.getPropertyValue('--enter-scale').trim() || '1';
|
|
344
348
|
leave = computed ? timing(computed, 'leave') : null;
|
|
349
|
+
leaveScale = computed?.getPropertyValue('--leave-scale').trim() || '1';
|
|
345
350
|
move = computed ? timing(computed, 'move') : null;
|
|
346
351
|
update(!!(enter || leave || move));
|
|
347
352
|
});
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// On the list; read by JS when a filter changes which items show.
|
|
2
2
|
.filter {
|
|
3
|
-
--enter-duration:
|
|
4
|
-
--enter-easing:
|
|
5
|
-
--
|
|
6
|
-
--leave-
|
|
7
|
-
|
|
8
|
-
--
|
|
9
|
-
--move-
|
|
3
|
+
--enter-duration: var(--duration-moderate);
|
|
4
|
+
--enter-easing: var(--easing-spring);
|
|
5
|
+
--enter-scale: 0.97;
|
|
6
|
+
--leave-duration: var(--duration-moderate-exit);
|
|
7
|
+
--leave-easing: var(--easing-spring);
|
|
8
|
+
--leave-scale: 0.98;
|
|
9
|
+
--move-duration: var(--duration-moderate);
|
|
10
|
+
--move-easing: var(--easing-spring);
|
|
10
11
|
|
|
11
|
-
// Items
|
|
12
|
+
// Items fade in and out where they land, and the rest jump to their places.
|
|
12
13
|
@media (prefers-reduced-motion: reduce) {
|
|
13
|
-
--enter-
|
|
14
|
-
--leave-
|
|
14
|
+
--enter-scale: 1;
|
|
15
|
+
--leave-scale: 1;
|
|
15
16
|
--move-duration: 0s;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
// active frame's, usually set once on the parent. Without a modifier frames switch instantly; the modifiers move them,
|
|
6
6
|
// stacked in one grid cell so the tallest sets the height, and the parent clips whatever sits outside it.
|
|
7
7
|
.frame {
|
|
8
|
-
|
|
9
|
-
&--
|
|
10
|
-
|
|
11
|
-
grid-area: 1 / 1;
|
|
12
|
-
min-width: 0;
|
|
13
|
-
|
|
14
|
-
@include tokens.state(inactive) {
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
8
|
+
// Each frame sits its distance from the active one away, so the frames move together like one track.
|
|
9
|
+
&--scroll {
|
|
10
|
+
translate: 0 calc((var(--n) - var(--i, 0)) * (100% + var(--gap-vertical)));
|
|
17
11
|
}
|
|
18
12
|
|
|
19
13
|
&--scroll,
|
|
@@ -25,9 +19,15 @@
|
|
|
25
19
|
}
|
|
26
20
|
}
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
&--
|
|
30
|
-
|
|
22
|
+
&--scroll,
|
|
23
|
+
&--slide,
|
|
24
|
+
&--swap {
|
|
25
|
+
grid-area: 1 / 1;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
|
|
28
|
+
@include tokens.state(inactive) {
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&--slide {
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
// 'frame--swap'. The drift and blur take '--swap-duration', the fade '--swap-fade-duration', shorter so two frames
|
|
8
8
|
// barely overlap and never read as doubled text; the outgoing frame takes the '--swap-exit-*' pair, so it can
|
|
9
9
|
// clear out quicker than the incoming one arrives.
|
|
10
|
-
--swap-blur:
|
|
11
|
-
--swap-duration:
|
|
12
|
-
--swap-exit-duration: var(--
|
|
13
|
-
--swap-exit-fade-duration: var(--
|
|
14
|
-
--swap-fade-duration:
|
|
10
|
+
--swap-blur: var(--blur-300);
|
|
11
|
+
--swap-duration: var(--duration-moderate);
|
|
12
|
+
--swap-exit-duration: var(--duration-moderate-exit);
|
|
13
|
+
--swap-exit-fade-duration: var(--duration-fast-exit);
|
|
14
|
+
--swap-fade-duration: var(--duration-fast);
|
|
15
15
|
--swap-fade-timing-function: linear;
|
|
16
16
|
// How far off to its side a waiting frame sits; a share of its own size, so short labels and wide views travel alike.
|
|
17
17
|
--swap-shift: 60%;
|
|
18
|
-
--swap-timing-function:
|
|
19
|
-
--transition-duration:
|
|
20
|
-
--transition-timing-function:
|
|
18
|
+
--swap-timing-function: var(--easing-spring);
|
|
19
|
+
--transition-duration: var(--duration-moderate);
|
|
20
|
+
--transition-timing-function: var(--easing-spring);
|
|
21
21
|
|
|
22
22
|
// Swaps still crossfade, without the drift or blur.
|
|
23
23
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { effect, reactive, untrack } from '@esportsplus/reactivity';
|
|
2
2
|
import { component, html, type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
3
|
import tooltip from '~/components/tooltip';
|
|
4
|
-
import scrollbar from '~/
|
|
4
|
+
import scrollbar from '~/modifiers/scrollbar';
|
|
5
5
|
import { clamp } from '~/shared/clamp';
|
|
6
6
|
import { onceVisible } from '~/shared/visible';
|
|
7
7
|
import './scss/index.scss';
|
|
@@ -137,8 +137,8 @@ function template(this: { attributes?: Partial<A> } | void, { data, describe = s
|
|
|
137
137
|
</div>
|
|
138
138
|
|
|
139
139
|
<div
|
|
140
|
-
class='heatmap-scroll
|
|
141
|
-
${scrollbar
|
|
140
|
+
class='heatmap-scroll'
|
|
141
|
+
${scrollbar({ drag: 'horizontal', horizontal: true })}
|
|
142
142
|
${{
|
|
143
143
|
// On a narrow screen, open on the most recent weeks.
|
|
144
144
|
onconnect: (element: HTMLElement) => {
|
|
@@ -28,10 +28,8 @@
|
|
|
28
28
|
scale var(--transition-duration) var(--transition-timing-function) calc(var(--column) * var(--stagger));
|
|
29
29
|
width: var(--cell-size);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
outline: 1px solid var(--hover-color);
|
|
34
|
-
outline-offset: 1px;
|
|
31
|
+
&--empty {
|
|
32
|
+
background: none;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
&:focus-visible {
|
|
@@ -39,8 +37,10 @@
|
|
|
39
37
|
outline-offset: 1px;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
// Rings the hovered day outside itself, so it shows on the darkest level too.
|
|
41
|
+
&:hover {
|
|
42
|
+
outline: 1px solid var(--hover-color);
|
|
43
|
+
outline-offset: 1px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@for $level from 1 through 4 {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
&-days {
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-direction: column;
|
|
62
|
-
margin-inline-end:
|
|
62
|
+
margin-inline-end: calc(var(--size-200) / 2);
|
|
63
63
|
margin-top: calc(var(--months-height) + var(--ring-space));
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -102,30 +102,32 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.heatmap
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
.heatmap {
|
|
106
|
+
&-legend {
|
|
107
|
+
align-items: center;
|
|
108
|
+
color: var(--color);
|
|
109
|
+
display: flex;
|
|
110
|
+
font-size: var(--font-size);
|
|
111
|
+
gap: calc(var(--size-100) / 2);
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
&-less {
|
|
114
|
+
margin-inline-end: calc(var(--size-100) / 2);
|
|
115
|
+
}
|
|
115
116
|
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
&-more {
|
|
118
|
+
margin-inline-start: calc(var(--size-100) / 2);
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
|
-
}
|
|
120
121
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
&-swatch {
|
|
123
|
+
border-radius: var(--cell-radius);
|
|
124
|
+
height: var(--cell-size);
|
|
125
|
+
width: var(--cell-size);
|
|
125
126
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
@for $level from 0 through 4 {
|
|
128
|
+
&--level-#{$level} {
|
|
129
|
+
background: var(--level-#{$level});
|
|
130
|
+
}
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
+
// Compact for a dense grid. Tabular figures, so the tooltip holds its width as the counts change cell to cell.
|
|
2
|
+
.heatmap .tooltip-shared {
|
|
3
|
+
--padding: var(--size-100) var(--size-200);
|
|
4
|
+
--radius: var(--border-radius-300);
|
|
5
|
+
--spacer: 6px;
|
|
6
|
+
font-variant-numeric: tabular-nums;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
.heatmap,
|
|
2
10
|
.heatmap-legend {
|
|
3
11
|
--cell-radius: var(--border-radius-100);
|
|
4
|
-
--cell-size:
|
|
12
|
+
--cell-size: var(--size-200);
|
|
5
13
|
--color: var(--color-text-300);
|
|
6
|
-
--focus-color: var(--color-
|
|
14
|
+
--focus-color: var(--color-primary-500);
|
|
7
15
|
--font-size: var(--font-size-300);
|
|
8
|
-
--hover-color: color-mix(in oklab, var(--color-
|
|
16
|
+
--hover-color: color-mix(in oklab, var(--color-primary-500) 50%, transparent);
|
|
9
17
|
// One hue, light to dark. Level 0 stays faintly visible so empty days still read as part of the grid.
|
|
10
18
|
--level-0: color-mix(in oklab, var(--level-color) 7%, transparent);
|
|
11
19
|
--level-1: color-mix(in oklab, var(--level-color) 25%, transparent);
|
|
12
20
|
--level-2: color-mix(in oklab, var(--level-color) 45%, transparent);
|
|
13
21
|
--level-3: color-mix(in oklab, var(--level-color) 70%, transparent);
|
|
14
22
|
--level-4: var(--level-color);
|
|
15
|
-
--level-color: var(--color-
|
|
16
|
-
--months-height:
|
|
17
|
-
--pitch:
|
|
23
|
+
--level-color: var(--color-primary-500);
|
|
24
|
+
--months-height: var(--size-500);
|
|
25
|
+
--pitch: var(--size-300);
|
|
18
26
|
--ring-space: 3px;
|
|
19
27
|
--scrollbar-spacing: var(--size-300);
|
|
20
28
|
// Per column, so the whole year sweeps in under half a second and reads as one gesture.
|
|
21
29
|
--stagger: 8ms;
|
|
22
|
-
--transition-duration:
|
|
23
|
-
--transition-timing-function:
|
|
30
|
+
--transition-duration: var(--duration-moderate);
|
|
31
|
+
--transition-timing-function: var(--easing-out);
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
.heatmap--blue,
|
|
@@ -40,19 +48,12 @@
|
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
|
|
43
|
-
// Compact for a dense grid.
|
|
44
|
-
.heatmap .tooltip-shared {
|
|
45
|
-
--padding: var(--size-100) var(--size-200);
|
|
46
|
-
--radius: var(--border-radius-300);
|
|
47
|
-
--spacer: 6px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
51
|
// A long glide lags behind a pointer sweeping across 13px cells, and the content keeps pace with it. Gated so
|
|
51
52
|
// it can't undo the tooltip's reduced-motion override.
|
|
52
53
|
@media (prefers-reduced-motion: no-preference) {
|
|
53
54
|
.heatmap .tooltip-shared {
|
|
54
|
-
--glide-duration:
|
|
55
|
-
--swap-duration:
|
|
55
|
+
--glide-duration: var(--duration-fast);
|
|
56
|
+
--swap-duration: var(--duration-fast);
|
|
56
57
|
--swap-fade-duration: 0.1s;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
@@ -22,17 +22,6 @@
|
|
|
22
22
|
width: calc(var(--width) - var(--inset-inline) * 2 + var(--slide-width));
|
|
23
23
|
z-index: -1;
|
|
24
24
|
|
|
25
|
-
&--line::after {
|
|
26
|
-
background: var(--line-color);
|
|
27
|
-
border-radius: var(--line-radius);
|
|
28
|
-
content: '';
|
|
29
|
-
position: absolute;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&--unfilled {
|
|
33
|
-
background: transparent;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
25
|
// The line runs along the item's own edge, so it reaches back out past the inset.
|
|
37
26
|
&--line-bottom::after {
|
|
38
27
|
bottom: calc(var(--line-offset) - var(--inset-block));
|
|
@@ -58,6 +47,17 @@
|
|
|
58
47
|
top: calc(var(--line-offset) - var(--inset-block));
|
|
59
48
|
}
|
|
60
49
|
|
|
50
|
+
&--line::after {
|
|
51
|
+
background: var(--line-color);
|
|
52
|
+
border-radius: var(--line-radius);
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--unfilled {
|
|
58
|
+
background: transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
61
|
&--visible {
|
|
62
62
|
display: block;
|
|
63
63
|
opacity: 1;
|
|
@@ -70,9 +70,13 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// The layer jumps to its item. Doubled to outrank the active state's own glide.
|
|
73
|
+
// The layer jumps to its item and only fades in and out. Doubled to outrank the active state's own glide.
|
|
74
74
|
@media (prefers-reduced-motion: reduce) {
|
|
75
|
-
|
|
75
|
+
--scale-hidden: 1;
|
|
76
|
+
transition:
|
|
77
|
+
background var(--transition-duration) var(--transition-timing-function),
|
|
78
|
+
display var(--fade-duration) allow-discrete,
|
|
79
|
+
opacity var(--fade-duration) var(--transition-timing-function);
|
|
76
80
|
|
|
77
81
|
&.highlight {
|
|
78
82
|
--glide: 0s;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/background';
|
|
2
3
|
|
|
3
4
|
// A glide's offset, added onto the layer's box. Registered so it can run negative, which width and height can't,
|
|
4
5
|
// and so the leading and trailing edges' animations can add together.
|
|
@@ -27,39 +28,36 @@
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.highlight {
|
|
30
|
-
|
|
31
|
+
@extend %background-state;
|
|
31
32
|
--background-active: color-mix(in srgb, currentColor 10%, transparent);
|
|
32
33
|
--background-default: color-mix(in srgb, currentColor 6%, transparent);
|
|
33
34
|
--background-hover: var(--background-default);
|
|
34
35
|
--background-pressed: color-mix(in srgb, currentColor 14%, transparent);
|
|
35
|
-
--fade-duration:
|
|
36
|
+
--fade-duration: var(--duration-fast);
|
|
36
37
|
// What each layer glides with: the active layer takes '--glide-duration-active', so a selection can jump ('0s')
|
|
37
38
|
// while hover still glides.
|
|
38
39
|
--glide: var(--glide-duration);
|
|
39
|
-
--glide-duration:
|
|
40
|
+
--glide-duration: var(--duration-moderate);
|
|
40
41
|
--glide-duration-active: var(--glide-duration);
|
|
41
42
|
// What the edge trailing a glide takes; longer than '--glide' stretches the layer toward the new item.
|
|
42
43
|
--glide-tail: var(--glide-tail-duration);
|
|
43
44
|
--glide-tail-duration: var(--glide-duration);
|
|
44
45
|
--glide-tail-duration-active: var(--glide-duration-active);
|
|
45
|
-
|
|
46
|
-
--glide-timing-function:
|
|
47
|
-
// The first and last tracked items settle without overshoot, keeping the glide inside the group's ends.
|
|
48
|
-
--glide-timing-function-edge: cubic-bezier(0.22, 1, 0.36, 1);
|
|
46
|
+
--glide-timing-function: var(--easing-spring);
|
|
47
|
+
--glide-timing-function-edge: var(--easing-spring);
|
|
49
48
|
// Pulls the layer in from its item's box, top and bottom or left and right.
|
|
50
49
|
--inset-block: 0px;
|
|
51
50
|
--inset-inline: 0px;
|
|
52
51
|
--line-color: currentColor;
|
|
53
52
|
// How far the fills keep clear of the line's side, and the one across from it.
|
|
54
|
-
--line-inset:
|
|
53
|
+
--line-inset: calc(var(--size-300) / 2);
|
|
55
54
|
// In from the item's edge; negative pushes the line out, e.g. over the container's own border.
|
|
56
55
|
--line-offset: 0px;
|
|
57
56
|
--line-radius: calc(var(--line-width) / 2);
|
|
58
|
-
--line-width:
|
|
57
|
+
--line-width: var(--border-width-500);
|
|
59
58
|
--scale-hidden: 0.92;
|
|
60
59
|
|
|
61
60
|
@include tokens.state(active) {
|
|
62
|
-
--background: var(--background-active);
|
|
63
61
|
--glide: var(--glide-duration-active);
|
|
64
62
|
--glide-tail: var(--glide-tail-duration-active);
|
|
65
63
|
}
|
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
width: var(--width);
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
// Turns by '--rotate', easing between turns, so a chevron can follow its control's state.
|
|
13
|
+
&--rotate {
|
|
14
|
+
rotate: var(--rotate);
|
|
15
|
+
transition: rotate var(--duration-fast) var(--easing-out);
|
|
16
|
+
|
|
17
|
+
@media (prefers-reduced-motion: reduce) {
|
|
18
|
+
transition: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
svg {
|
|
13
23
|
fill: currentColor;
|
|
14
24
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/absolute';
|
|
2
2
|
@use 'variables';
|
|
3
3
|
|
|
4
4
|
.image {
|
|
@@ -70,6 +70,14 @@
|
|
|
70
70
|
--placeholder-opacity: 0;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// Covers the source while it streams in, then fades out and is removed from the DOM.
|
|
74
|
+
&-placeholder {
|
|
75
|
+
opacity: var(--placeholder-opacity, 1);
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
transition: opacity var(--transition-duration) var(--timing-function);
|
|
78
|
+
z-index: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
&-placeholder,
|
|
74
82
|
&-source {
|
|
75
83
|
@extend %absolute-full;
|
|
@@ -79,14 +87,6 @@
|
|
|
79
87
|
width: 100%;
|
|
80
88
|
}
|
|
81
89
|
|
|
82
|
-
// Covers the source while it streams in, then fades out and is removed from the DOM.
|
|
83
|
-
&-placeholder {
|
|
84
|
-
opacity: var(--placeholder-opacity, 1);
|
|
85
|
-
pointer-events: none;
|
|
86
|
-
transition: opacity var(--transition-duration) var(--timing-function);
|
|
87
|
-
z-index: 1;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
90
|
// Unset until an error, so it inherits like any other element's.
|
|
91
91
|
&-source {
|
|
92
92
|
visibility: var(--source-visibility);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use 'css-utilities/background';
|
|
2
|
+
@use 'css-utilities/surface';
|
|
3
|
+
|
|
4
|
+
|
|
1
5
|
.image {
|
|
2
6
|
--background: transparent;
|
|
3
7
|
--border-radius: var(--border-radius-300);
|
|
@@ -31,10 +35,11 @@
|
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
&-lazyload {
|
|
38
|
+
@extend %background-state, %surface-sunken-level;
|
|
34
39
|
--aspect-ratio: auto;
|
|
35
|
-
--background: var(--
|
|
40
|
+
--background-default: var(--surface-background-default);
|
|
36
41
|
--border-radius: var(--border-radius-600);
|
|
37
|
-
--timing-function:
|
|
42
|
+
--timing-function: var(--easing-out);
|
|
38
43
|
--transition-duration: 0.65s;
|
|
39
44
|
}
|
|
40
45
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -59,6 +59,8 @@ export { default as surfaceField } from './surface-field';
|
|
|
59
59
|
export { default as switch } from './switch';
|
|
60
60
|
export { default as tasklist } from './tasklist';
|
|
61
61
|
export { default as textarea } from './textarea';
|
|
62
|
+
export { default as theme } from './theme';
|
|
63
|
+
export { default as themePicker } from './theme-picker';
|
|
62
64
|
export { default as toaster } from './toast';
|
|
63
65
|
export { default as tooltip } from './tooltip';
|
|
64
66
|
export { default as truncate } from './truncate';
|