@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,5 +1,5 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/reset';
|
|
3
3
|
|
|
4
4
|
// A popover, so it sits in the top layer; the UA popover styles are undone here. The padding on the anchor side is
|
|
5
5
|
// the gap to the trigger, which also carries the pointer across to interactive content. 'tooltip.shared' sets the
|
|
@@ -33,11 +33,6 @@
|
|
|
33
33
|
translate: 0;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
// A warm handoff from another delayed tooltip swaps straight in.
|
|
37
|
-
&.tooltip-shared--instant > .tooltip-shared-box {
|
|
38
|
-
transition: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
36
|
&--e {
|
|
42
37
|
padding-left: var(--spacer);
|
|
43
38
|
}
|
|
@@ -68,7 +63,6 @@
|
|
|
68
63
|
padding-right: var(--spacer);
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
|
|
72
66
|
&-box {
|
|
73
67
|
background: var(--background);
|
|
74
68
|
border-radius: var(--radius);
|
|
@@ -88,6 +82,7 @@
|
|
|
88
82
|
translate: var(--box-translate);
|
|
89
83
|
}
|
|
90
84
|
|
|
85
|
+
|
|
91
86
|
// A 'frame--swap', centered in the box so the box can resize around it; centering takes 'transform', leaving
|
|
92
87
|
// 'translate' to the frame. 'tooltip.shared' sets '--travel-x' and '--travel-y' to the unit vector of the trip
|
|
93
88
|
// between triggers, so incoming content drifts in along it and outgoing content carries on out the far side.
|
|
@@ -106,4 +101,9 @@
|
|
|
106
101
|
--color: inherit;
|
|
107
102
|
}
|
|
108
103
|
}
|
|
104
|
+
|
|
105
|
+
// A warm handoff from another delayed tooltip swaps straight in.
|
|
106
|
+
&.tooltip-shared--instant > .tooltip-shared-box {
|
|
107
|
+
transition: none;
|
|
108
|
+
}
|
|
109
109
|
}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
@mixin south($active) {
|
|
2
|
-
&--se,
|
|
3
|
-
&--sw {
|
|
4
|
-
position: absolute;
|
|
5
|
-
top: calc(100% + var(--spacer) - var(--offset));
|
|
6
|
-
|
|
7
|
-
#{$active} {
|
|
8
|
-
translate: 0 var(--offset);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
2
|
&--s {
|
|
13
3
|
position: absolute;
|
|
14
4
|
right: 50%;
|
|
@@ -26,6 +16,16 @@
|
|
|
26
16
|
transform-origin: top right;
|
|
27
17
|
}
|
|
28
18
|
|
|
19
|
+
&--se,
|
|
20
|
+
&--sw {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: calc(100% + var(--spacer) - var(--offset));
|
|
23
|
+
|
|
24
|
+
#{$active} {
|
|
25
|
+
translate: 0 var(--offset);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
29
|
&--sw {
|
|
30
30
|
left: 0;
|
|
31
31
|
transform-origin: top left;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
@mixin west($active) {
|
|
2
|
-
&--wn,
|
|
3
|
-
&--ws {
|
|
4
|
-
position: absolute;
|
|
5
|
-
right: calc(100% + var(--spacer) - var(--offset));
|
|
6
|
-
|
|
7
|
-
#{$active} {
|
|
8
|
-
translate: calc(var(--offset) * -1);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
2
|
&--w {
|
|
13
3
|
bottom: 50%;
|
|
14
4
|
position: absolute;
|
|
@@ -26,6 +16,16 @@
|
|
|
26
16
|
transform-origin: top right;
|
|
27
17
|
}
|
|
28
18
|
|
|
19
|
+
&--wn,
|
|
20
|
+
&--ws {
|
|
21
|
+
position: absolute;
|
|
22
|
+
right: calc(100% + var(--spacer) - var(--offset));
|
|
23
|
+
|
|
24
|
+
#{$active} {
|
|
25
|
+
translate: calc(var(--offset) * -1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
29
|
&--ws {
|
|
30
30
|
bottom: 0;
|
|
31
31
|
transform-origin: bottom right;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/layer';
|
|
3
3
|
@use 'center' as *;
|
|
4
4
|
@use 'east' as *;
|
|
5
5
|
@use 'menu';
|
|
@@ -53,23 +53,12 @@
|
|
|
53
53
|
filter: url(#tooltip-morph-goo);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// Morph tooltips (-2) sit behind the trigger. A child can't paint under its parent's own
|
|
57
|
-
// background, so repaint that background above them; the label still paints on top.
|
|
58
|
-
// Shares '.button::after' (its shadow layer) when the trigger is a button.
|
|
59
|
-
&:has(> .tooltip-content--morph, > .tooltip-message--morph, > :not(.tooltip) > .tooltip-content--morph, > :not(.tooltip) > .tooltip-message--morph)::after {
|
|
60
|
-
@extend %layer;
|
|
61
|
-
background: inherit;
|
|
62
|
-
content: '';
|
|
63
|
-
display: block;
|
|
64
|
-
z-index: -1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
56
|
&-arrow {
|
|
69
57
|
margin-inline: -1px;
|
|
70
58
|
rotate: var(--rotate);
|
|
71
59
|
}
|
|
72
60
|
|
|
61
|
+
|
|
73
62
|
&-content,
|
|
74
63
|
&-message {
|
|
75
64
|
background: var(--background);
|
|
@@ -93,6 +82,7 @@
|
|
|
93
82
|
$not-active: '#{tokens.state(inactive, ".tooltip")} > &, #{tokens.state(inactive, ".tooltip")} :not(.tooltip) > &';
|
|
94
83
|
|
|
95
84
|
#{$active} {
|
|
85
|
+
--transition-duration: var(--duration-moderate);
|
|
96
86
|
opacity: 1;
|
|
97
87
|
scale: 1;
|
|
98
88
|
}
|
|
@@ -103,17 +93,17 @@
|
|
|
103
93
|
}
|
|
104
94
|
}
|
|
105
95
|
|
|
96
|
+
&--context {
|
|
97
|
+
position: absolute;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
106
101
|
// A warm handoff between delayed tooltips ('delay') swaps straight in. Single-class specificity and
|
|
107
102
|
// ahead of the '--morph' variant, so it keeps its own motion.
|
|
108
103
|
&:where(.tooltip.tooltip--instant > *, .tooltip.tooltip--instant :not(.tooltip) > *) {
|
|
109
104
|
transition: none;
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
|
|
113
|
-
&--context {
|
|
114
|
-
position: absolute;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
107
|
@include center($active);
|
|
118
108
|
@include east($active);
|
|
119
109
|
@include north($active);
|
|
@@ -130,8 +120,6 @@
|
|
|
130
120
|
// The overshooting clip would reveal the shadow around the box mid-spring.
|
|
131
121
|
box-shadow: none;
|
|
132
122
|
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
133
|
-
// Lets the background layer reach back to the trigger; clip-path does the clipping.
|
|
134
|
-
overflow: visible;
|
|
135
123
|
// Blurs the content. The background layer is one flat colour overhanging the clip by three
|
|
136
124
|
// blur radii, so within the clip only text and media visibly blur; the container stays
|
|
137
125
|
// crisp and flat. (A backdrop-filter overlay instead paints its blur as an unclipped
|
|
@@ -141,6 +129,8 @@
|
|
|
141
129
|
// a transparent trigger, or before the first open when there's no clip yet), switching
|
|
142
130
|
// off only once the close has finished.
|
|
143
131
|
opacity: 1;
|
|
132
|
+
// Lets the background layer reach back to the trigger; clip-path does the clipping.
|
|
133
|
+
overflow: visible;
|
|
144
134
|
// Closing: content blurs quickly as the shape starts to shrink.
|
|
145
135
|
transition:
|
|
146
136
|
filter var(--morph-close-duration) cubic-bezier(0.16, 1, 0.3, 1),
|
|
@@ -190,6 +180,17 @@
|
|
|
190
180
|
pointer-events: none;
|
|
191
181
|
white-space: nowrap;
|
|
192
182
|
}
|
|
183
|
+
|
|
184
|
+
// Morph tooltips (-2) sit behind the trigger. A child can't paint under its parent's own
|
|
185
|
+
// background, so repaint that background above them; the label still paints on top.
|
|
186
|
+
// Shares '.button::after' (its shadow layer) when the trigger is a button.
|
|
187
|
+
&:has(> .tooltip-content--morph, > .tooltip-message--morph, > :not(.tooltip) > .tooltip-content--morph, > :not(.tooltip) > .tooltip-message--morph)::after {
|
|
188
|
+
@extend %layer;
|
|
189
|
+
background: inherit;
|
|
190
|
+
content: '';
|
|
191
|
+
display: block;
|
|
192
|
+
z-index: -1;
|
|
193
|
+
}
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/background';
|
|
3
|
+
@use 'css-utilities/box-shadow';
|
|
4
|
+
@use 'css-utilities/surface';
|
|
2
5
|
|
|
3
6
|
.tooltip {
|
|
4
7
|
// Set a translucent color to review the safe area shape.
|
|
5
8
|
--safe-color: transparent;
|
|
6
9
|
|
|
10
|
+
&-arrow {
|
|
11
|
+
--rotate: 0deg;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Floating layers, a level above whatever opened them.
|
|
7
15
|
&-content,
|
|
8
16
|
&-message {
|
|
9
|
-
|
|
10
|
-
--background-default: transparent;
|
|
17
|
+
@extend %background-state, %box-shadow-state, %surface-raised-level;
|
|
11
18
|
--border-radius: var(--border-radius-400);
|
|
12
|
-
--box-shadow: var(--
|
|
19
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
13
20
|
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
14
21
|
--min-width: auto;
|
|
15
22
|
--offset: calc(var(--spacer) * 2);
|
|
16
23
|
--scale: 1;
|
|
17
24
|
--spacer: var(--size-300);
|
|
25
|
+
// Closing; the open state swaps in the entrance duration.
|
|
26
|
+
--transition-duration: var(--duration-moderate-exit);
|
|
27
|
+
--transition-timing-function: var(--easing-spring);
|
|
18
28
|
--width: auto;
|
|
19
29
|
|
|
20
30
|
&--morph {
|
|
21
|
-
--morph-blur:
|
|
22
|
-
--morph-close-duration:
|
|
31
|
+
--morph-blur: var(--blur-400);
|
|
32
|
+
--morph-close-duration: var(--duration-moderate-exit);
|
|
23
33
|
// Starts clearing as soon as content emerges from behind the trigger, settling with the shape.
|
|
24
34
|
--morph-focus-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
25
35
|
--morph-land: 2px;
|
|
26
|
-
--morph-open-duration:
|
|
27
|
-
--morph-timing-function:
|
|
36
|
+
--morph-open-duration: var(--duration-moderate);
|
|
37
|
+
--morph-timing-function: var(--easing-spring);
|
|
28
38
|
// Motion comes from the morph, not the slide/scale.
|
|
29
39
|
--offset: 0px;
|
|
30
40
|
--scale: 1;
|
|
@@ -38,29 +48,21 @@
|
|
|
38
48
|
&--scale-spring {
|
|
39
49
|
--offset: var(--spacer);
|
|
40
50
|
--scale: 0.88;
|
|
41
|
-
--transition-duration: 0.24s;
|
|
42
|
-
--transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
&--spring {
|
|
46
54
|
--offset: calc(var(--spacer) * 3);
|
|
47
55
|
--scale: 0.96;
|
|
48
|
-
--transition-duration: 0.24s;
|
|
49
|
-
--transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
50
56
|
}
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
&-arrow {
|
|
54
|
-
--rotate: 0deg;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
59
|
&-content[role='menu'] {
|
|
58
60
|
--option-focus-background: color-mix(in srgb, currentColor 12%, transparent);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
&-message {
|
|
62
|
-
--background-default: var(--color-
|
|
63
|
-
--color: var(--
|
|
64
|
+
--background-default: var(--color-primary-400);
|
|
65
|
+
--color: var(--surface-background-default);
|
|
64
66
|
--font-size: var(--font-size-300);
|
|
65
67
|
--font-weight: var(--font-weight-400);
|
|
66
68
|
--padding-horizontal: var(--size-300);
|
|
@@ -69,97 +71,103 @@
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
|
|
72
|
-
.tooltip
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
--open-duration: 0s;
|
|
97
|
-
}
|
|
74
|
+
.tooltip {
|
|
75
|
+
&--menu {
|
|
76
|
+
--border-radius: var(--border-radius-600);
|
|
77
|
+
--close-duration: var(--duration-moderate-exit);
|
|
78
|
+
--color: var(--color-text-500);
|
|
79
|
+
--color-danger: var(--color-red-400);
|
|
80
|
+
--color-disabled: var(--color-text-300);
|
|
81
|
+
--color-hint: var(--color-text-300);
|
|
82
|
+
--font-size: var(--font-size-300);
|
|
83
|
+
--gap: var(--size-200);
|
|
84
|
+
--item-border-radius: var(--border-radius-400);
|
|
85
|
+
--item-height: 36px;
|
|
86
|
+
--item-padding: var(--size-200);
|
|
87
|
+
--offset: var(--size-200);
|
|
88
|
+
--open-duration: var(--duration-moderate);
|
|
89
|
+
--open-timing-function: var(--easing-spring);
|
|
90
|
+
--padding: calc(var(--size-100) / 2);
|
|
91
|
+
--scrim: oklch(from var(--surface-shadow-color) 0 0 0 / calc(alpha * 0.9));
|
|
92
|
+
--width: 17rem;
|
|
93
|
+
|
|
94
|
+
&.tooltip--instant {
|
|
95
|
+
--close-duration: 0s;
|
|
96
|
+
--open-duration: 0s;
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
@media (pointer: coarse) {
|
|
100
|
+
--item-height: 44px;
|
|
101
|
+
}
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
// Items take the hover and pressed steps of the panel they sit in.
|
|
105
|
+
&-menu-item {
|
|
106
|
+
@extend %background-state;
|
|
107
|
+
--background-hover: var(--surface-background-hover);
|
|
108
|
+
--background-pressed: var(--surface-background-pressed);
|
|
106
109
|
}
|
|
107
|
-
}
|
|
108
110
|
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
--title-bold-opacity:
|
|
117
|
-
--title-regular-opacity:
|
|
111
|
+
// A surface of its own, so a branch panel sits a level above the panel it opened from. The title opacities are read
|
|
112
|
+
// by a branch panel's header title, which crossfades to bold while that panel is open; every panel sets its own, so a
|
|
113
|
+
// parent panel's state never reaches its children's titles.
|
|
114
|
+
&-menu-panel {
|
|
115
|
+
@extend %background-state, %box-shadow-state, %surface-raised-level;
|
|
116
|
+
--background-default: var(--surface-background-default);
|
|
117
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
118
|
+
--title-bold-opacity: 0;
|
|
119
|
+
--title-regular-opacity: 1;
|
|
120
|
+
|
|
121
|
+
@include tokens.state(active) {
|
|
122
|
+
--title-bold-opacity: 1;
|
|
123
|
+
--title-regular-opacity: 0;
|
|
124
|
+
}
|
|
118
125
|
}
|
|
119
|
-
}
|
|
120
126
|
|
|
121
127
|
|
|
122
|
-
// '--padding' and '--radius' rather than the usual names: the root resets '--padding-*' and '--border-radius' on
|
|
123
|
-
// every element, so the box and layers inside would never see them.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
// Read by the box: where it rises from, toward the trigger.
|
|
145
|
-
&--e {
|
|
146
|
-
--box-translate: calc(var(--rise) * -1) 0;
|
|
147
|
-
}
|
|
128
|
+
// '--padding' and '--radius' rather than the usual names: the root resets '--padding-*' and '--border-radius' on
|
|
129
|
+
// every element, so the box and layers inside would never see them.
|
|
130
|
+
&-shared {
|
|
131
|
+
@extend %background-state, %box-shadow-state, %surface-raised-level;
|
|
132
|
+
--background-default: var(--color-primary-400);
|
|
133
|
+
--blur: var(--blur-500);
|
|
134
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
135
|
+
--close-duration: var(--duration-moderate-exit);
|
|
136
|
+
--color: var(--surface-background-default);
|
|
137
|
+
--font-size: var(--font-size-300);
|
|
138
|
+
--font-weight: var(--font-weight-400);
|
|
139
|
+
--glide-duration: var(--duration-moderate);
|
|
140
|
+
--glide-timing-function: var(--easing-spring);
|
|
141
|
+
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
142
|
+
--open-duration: var(--duration-moderate);
|
|
143
|
+
--padding: var(--size-300);
|
|
144
|
+
--radius: var(--border-radius-400);
|
|
145
|
+
--rise: 4px;
|
|
146
|
+
--scale: 0.94;
|
|
147
|
+
--spacer: var(--size-300);
|
|
148
|
+
--timing-function: var(--easing-spring);
|
|
149
|
+
--white-space: nowrap;
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
// Read by the box: where it rises from, toward the trigger.
|
|
152
|
+
&--e {
|
|
153
|
+
--box-translate: calc(var(--rise) * -1) 0;
|
|
154
|
+
}
|
|
152
155
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
&--interactive {
|
|
157
|
+
--white-space: normal;
|
|
158
|
+
}
|
|
156
159
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
&--n {
|
|
161
|
+
--box-translate: 0 var(--rise);
|
|
162
|
+
}
|
|
160
163
|
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
&--s {
|
|
165
|
+
--box-translate: 0 calc(var(--rise) * -1);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&--w {
|
|
169
|
+
--box-translate: var(--rise) 0;
|
|
170
|
+
}
|
|
163
171
|
}
|
|
164
172
|
}
|
|
165
173
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@use '/
|
|
1
|
+
@use 'css-utilities/hidden';
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
// The caret is solid while keys move and hidden while a selection is up, as in a real text field.
|
|
4
5
|
.typewriter-retype {
|
|
@@ -9,11 +10,6 @@
|
|
|
9
10
|
animation: typewriter-retype--ink var(--ink-duration) var(--ease-out);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
&-line,
|
|
13
|
-
&-sizer {
|
|
14
|
-
grid-area: 1 / 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
13
|
&-line {
|
|
18
14
|
text-align: left;
|
|
19
15
|
|
|
@@ -26,6 +22,11 @@
|
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
24
|
|
|
25
|
+
&-line,
|
|
26
|
+
&-sizer {
|
|
27
|
+
grid-area: 1 / 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
29
30
|
&-sizer {
|
|
30
31
|
visibility: hidden;
|
|
31
32
|
}
|
|
@@ -41,6 +42,11 @@
|
|
|
41
42
|
isolation: isolate;
|
|
42
43
|
position: relative;
|
|
43
44
|
|
|
45
|
+
&--selecting::before {
|
|
46
|
+
scale: 1 1;
|
|
47
|
+
transition: scale var(--select-duration) var(--ease-out);
|
|
48
|
+
}
|
|
49
|
+
|
|
44
50
|
&::before {
|
|
45
51
|
background: var(--selection-color);
|
|
46
52
|
border-radius: var(--selection-radius);
|
|
@@ -51,11 +57,6 @@
|
|
|
51
57
|
transform-origin: right;
|
|
52
58
|
z-index: -1;
|
|
53
59
|
}
|
|
54
|
-
|
|
55
|
-
&--selecting::before {
|
|
56
|
-
scale: 1 1;
|
|
57
|
-
transition: scale var(--select-duration) var(--ease-out);
|
|
58
|
-
}
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
.typewriter {
|
|
2
|
+
&-retype {
|
|
3
|
+
--ease-out: var(--easing-out);
|
|
4
|
+
--ink-blur: var(--blur-300);
|
|
5
|
+
--ink-duration: var(--duration-fast);
|
|
6
|
+
// Read by JS: each key's delay, a base plus up to the jitter, which lands around 8 to 14 keys a second, the pace
|
|
7
|
+
// of someone who knows the word.
|
|
8
|
+
--key-duration: 62ms;
|
|
9
|
+
--key-jitter-duration: 64ms;
|
|
10
|
+
--select-duration: 220ms;
|
|
11
|
+
--selection-color: oklch(from var(--color-primary-500) l c h / 0.15);
|
|
12
|
+
--selection-radius: 3px;
|
|
13
|
+
|
|
14
|
+
// Words land whole and still fade in and get selected, without the blur or the sweep.
|
|
15
|
+
@media (prefers-reduced-motion: reduce) {
|
|
16
|
+
--ink-blur: 0px;
|
|
17
|
+
--key-duration: 0s;
|
|
18
|
+
--select-duration: 0s;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-rotate {
|
|
23
|
+
--color: inherit;
|
|
24
|
+
// Read by JS: how the letters a swap keeps travel to their new places, and the width with them. Shared letters
|
|
25
|
+
// can travel most of a word across, so they get longer than a typical UI tween; any shorter and it reads as a
|
|
26
|
+
// jump.
|
|
27
|
+
--glide-duration: 440ms;
|
|
28
|
+
--glide-easing: cubic-bezier(0.77, 0, 0.175, 1);
|
|
29
|
+
|
|
30
|
+
// A swap is a plain crossfade.
|
|
31
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32
|
+
--glide-duration: 0s;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--accent {
|
|
36
|
+
--color: var(--color-blue-400);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
1
41
|
.typewriter,
|
|
2
42
|
.typewriter-retype {
|
|
3
43
|
--caret: '';
|
|
@@ -6,7 +46,7 @@
|
|
|
6
46
|
--caret-color: currentColor;
|
|
7
47
|
--caret-duration: 1.06s;
|
|
8
48
|
--caret-height: 1.1em;
|
|
9
|
-
--caret-offset:
|
|
49
|
+
--caret-offset: calc(var(--size-100) / 4);
|
|
10
50
|
--caret-radius: 999px;
|
|
11
51
|
--caret-timing-function: linear;
|
|
12
52
|
--caret-width: 2px;
|
|
@@ -34,41 +74,3 @@
|
|
|
34
74
|
--caret-width: auto;
|
|
35
75
|
}
|
|
36
76
|
}
|
|
37
|
-
|
|
38
|
-
.typewriter-retype {
|
|
39
|
-
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
40
|
-
--ink-blur: 2px;
|
|
41
|
-
--ink-duration: 140ms;
|
|
42
|
-
// Read by JS: each key's delay, a base plus up to the jitter, which lands around 8 to 14 keys a second, the pace
|
|
43
|
-
// of someone who knows the word.
|
|
44
|
-
--key-duration: 62ms;
|
|
45
|
-
--key-jitter-duration: 64ms;
|
|
46
|
-
--select-duration: 220ms;
|
|
47
|
-
--selection-color: oklch(from var(--color-text-500) l c h / 0.15);
|
|
48
|
-
--selection-radius: 3px;
|
|
49
|
-
|
|
50
|
-
// Words land whole and still fade in and get selected, without the blur or the sweep.
|
|
51
|
-
@media (prefers-reduced-motion: reduce) {
|
|
52
|
-
--ink-blur: 0px;
|
|
53
|
-
--key-duration: 0s;
|
|
54
|
-
--select-duration: 0s;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.typewriter-rotate {
|
|
59
|
-
--color: inherit;
|
|
60
|
-
// Read by JS: how the letters a swap keeps travel to their new places, and the width with them. Shared letters
|
|
61
|
-
// can travel most of a word across, so they get longer than a typical UI tween; any shorter and it reads as a
|
|
62
|
-
// jump.
|
|
63
|
-
--glide-duration: 440ms;
|
|
64
|
-
--glide-easing: cubic-bezier(0.77, 0, 0.175, 1);
|
|
65
|
-
|
|
66
|
-
// A swap is a plain crossfade.
|
|
67
|
-
@media (prefers-reduced-motion: reduce) {
|
|
68
|
-
--glide-duration: 0s;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&--accent {
|
|
72
|
-
--color: var(--color-blue-400);
|
|
73
|
-
}
|
|
74
|
-
}
|