@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,332 +1,347 @@
|
|
|
1
|
-
@use '/shared';
|
|
2
1
|
@use '/tokens';
|
|
2
|
+
@use 'css-utilities/layer';
|
|
3
|
+
@use 'css-utilities/text';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
5
|
+
.tooltip {
|
|
6
|
+
// 'tooltip.menu'; the root also carries '.tooltip', for its stacking and positioning.
|
|
7
|
+
&--menu {
|
|
8
|
+
display: inline-block;
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
visibility: hidden;
|
|
18
|
-
z-index: 9;
|
|
19
|
-
|
|
20
|
-
@include tokens.state(active) {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
transition: opacity var(--close-duration) var(--open-timing-function);
|
|
23
|
-
visibility: visible;
|
|
10
|
+
// After the expanding root's own values, open or closed, which it overrides at the same specificity.
|
|
11
|
+
&.tooltip--instant > .tooltip-menu-panel--expand,
|
|
12
|
+
&.tooltip--instant > .tooltip-menu-panel--expand.--active {
|
|
13
|
+
--expand-content-delay: 0s;
|
|
14
|
+
--expand-content-duration: 0s;
|
|
15
|
+
--expand-duration: 0s;
|
|
16
|
+
--expand-fade-delay: 0s;
|
|
17
|
+
--expand-fade-duration: 0s;
|
|
18
|
+
--expand-stagger: 0s;
|
|
24
19
|
}
|
|
25
|
-
}
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
transition:
|
|
21
|
+
// Qualified twice so it outranks the tooltip content it composes, and classes paired onto that content.
|
|
22
|
+
> .tooltip-menu-panel.tooltip-menu-panel--expand {
|
|
23
|
+
// Keep the panel's own surface when composing the generic tooltip content.
|
|
24
|
+
--background-default: var(--surface-background-default);
|
|
25
|
+
--border-radius: inherit;
|
|
26
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
27
|
+
// Keeps the resting clip outside the menu's shadow.
|
|
28
|
+
--expand-bleed: 24px;
|
|
29
|
+
// Closing swaps this delay: the shape crossfades back into the trigger once it has
|
|
30
|
+
// nearly landed. Items leave together at once.
|
|
31
|
+
--expand-close-fade-delay: calc(var(--expand-duration) / 2);
|
|
32
|
+
--expand-content-delay: 0.06s;
|
|
33
|
+
--expand-content-duration: var(--duration-fast);
|
|
34
|
+
--expand-content-timing-function: var(--easing-spring);
|
|
35
|
+
--expand-duration: var(--duration-moderate-exit);
|
|
36
|
+
--expand-fade-delay: var(--expand-close-fade-delay);
|
|
37
|
+
--expand-fade-duration: var(--duration-fast-exit);
|
|
38
|
+
--expand-offset: var(--size-100);
|
|
39
|
+
--expand-shift: 0;
|
|
40
|
+
--expand-stagger: 0.02s;
|
|
41
|
+
--expand-timing-function: var(--easing-spring);
|
|
42
|
+
--offset: 0px;
|
|
43
|
+
--scale: 1;
|
|
44
|
+
// Cancels the '100%' every direction pushes the tooltip past the trigger by, so it
|
|
45
|
+
// lines up with the trigger's own edges instead.
|
|
46
|
+
--spacer: -100%;
|
|
47
|
+
--width: inherit;
|
|
48
|
+
background: transparent;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
51
|
+
overflow: visible;
|
|
52
|
+
transform: translateX(var(--shift-x, 0px));
|
|
53
|
+
transition:
|
|
61
54
|
clip-path var(--expand-duration) var(--expand-timing-function),
|
|
62
55
|
opacity var(--expand-fade-duration) linear var(--expand-fade-delay);
|
|
63
56
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
@include tokens.state(active) {
|
|
58
|
+
--expand-duration: var(--duration-moderate);
|
|
59
|
+
--expand-fade-delay: 0s;
|
|
60
|
+
--expand-fade-duration: var(--duration-fast);
|
|
61
|
+
clip-path: inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)));
|
|
67
62
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
> :not(.highlight) {
|
|
74
|
-
animation: tooltip-menu-expand-in var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index, 0) * var(--expand-stagger)) backwards;
|
|
75
|
-
opacity: 1;
|
|
63
|
+
// The reveal is finished; child panels can now extend beyond the root.
|
|
64
|
+
&.tooltip-menu-panel--settled {
|
|
65
|
+
clip-path: none;
|
|
66
|
+
}
|
|
76
67
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
&::before {
|
|
69
|
+
border-radius: var(--border-radius);
|
|
70
|
+
inset: 0;
|
|
80
71
|
}
|
|
81
|
-
}
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
> :not(.highlight) {
|
|
74
|
+
animation: tooltip-menu-expand-in var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index, 0) * var(--expand-stagger)) backwards;
|
|
75
|
+
opacity: 1;
|
|
76
|
+
|
|
77
|
+
// Text-only items and dividers just fade.
|
|
78
|
+
> * {
|
|
79
|
+
animation: tooltip-menu-expand-slide var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index, 0) * var(--expand-stagger)) backwards;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
86
82
|
}
|
|
87
|
-
}
|
|
88
83
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
&::before {
|
|
85
|
+
background: var(--background);
|
|
86
|
+
border-radius: var(--morph-radius);
|
|
87
|
+
box-shadow: var(--box-shadow);
|
|
88
|
+
content: '';
|
|
89
|
+
inset: var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);
|
|
90
|
+
position: absolute;
|
|
91
|
+
transition:
|
|
97
92
|
border-radius var(--expand-duration) var(--expand-timing-function),
|
|
98
93
|
inset var(--expand-duration) var(--expand-timing-function);
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
z-index: -1;
|
|
95
|
+
}
|
|
101
96
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
97
|
+
// Items animate rather than transition so their own transitions (a link's colour) survive.
|
|
98
|
+
// Their boxes never move, only fade, so a 'highlight' measures them where they land even
|
|
99
|
+
// mid-cascade; it places itself with 'translate', so it arrives with the panel instead.
|
|
100
|
+
// Closing fades them out together; the shrinking shape carries the motion.
|
|
101
|
+
> :not(.highlight) {
|
|
102
|
+
animation: tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
110
105
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
// Cascade order.
|
|
107
|
+
@for $i from 1 through 12 {
|
|
108
|
+
> :nth-child(#{$i}) {
|
|
109
|
+
--index: #{$i - 1};
|
|
110
|
+
}
|
|
115
111
|
}
|
|
116
|
-
}
|
|
117
112
|
|
|
118
|
-
|
|
113
|
+
@each $directions, $shift in (
|
|
119
114
|
('e', 'en', 'es', 'nw', 'sw'): calc(var(--expand-offset) * -1) 0,
|
|
120
115
|
('n'): 0 var(--expand-offset),
|
|
121
116
|
('s'): 0 calc(var(--expand-offset) * -1),
|
|
122
117
|
('ne', 'se', 'w', 'wn', 'ws'): var(--expand-offset) 0
|
|
123
118
|
) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
@each $direction in $directions {
|
|
120
|
+
&.tooltip-content--#{$direction} {
|
|
121
|
+
--expand-shift: #{$shift};
|
|
122
|
+
}
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
|
-
}
|
|
130
125
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
126
|
+
// The shape snaps open and closed and the items arrive in place, so only the fades remain.
|
|
127
|
+
@media (prefers-reduced-motion: reduce) {
|
|
128
|
+
--expand-content-delay: 0s;
|
|
129
|
+
--expand-duration: 0s;
|
|
130
|
+
--expand-fade-delay: 0s;
|
|
131
|
+
--expand-offset: 0px;
|
|
132
|
+
--expand-stagger: 0s;
|
|
136
133
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
@include tokens.state(active) {
|
|
135
|
+
--expand-duration: 0s;
|
|
136
|
+
}
|
|
140
137
|
}
|
|
141
138
|
}
|
|
142
|
-
}
|
|
143
139
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
140
|
+
// Root panel
|
|
141
|
+
> .tooltip-menu-panel:not(.tooltip-menu-panel--expand) {
|
|
142
|
+
left: 0;
|
|
143
|
+
opacity: 0;
|
|
144
|
+
top: calc(100% + var(--offset));
|
|
145
|
+
transition:
|
|
146
|
+
opacity var(--close-duration) var(--open-timing-function),
|
|
147
|
+
visibility 0s linear var(--close-duration);
|
|
148
|
+
translate: var(--shift-x, 0px) 0;
|
|
149
|
+
visibility: hidden;
|
|
150
|
+
z-index: 9;
|
|
154
151
|
|
|
155
|
-
.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
flex-shrink: 0;
|
|
161
|
-
height: 6px;
|
|
162
|
-
margin-inline: 2px;
|
|
163
|
-
opacity: 0.6;
|
|
164
|
-
rotate: -45deg;
|
|
165
|
-
transition: rotate var(--open-duration) var(--open-timing-function);
|
|
166
|
-
width: 6px;
|
|
167
|
-
|
|
168
|
-
// A branch panel's header points down into the panel it heads.
|
|
169
|
-
&--down {
|
|
170
|
-
rotate: 45deg;
|
|
152
|
+
@include tokens.state(active) {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
transition: opacity var(--close-duration) var(--open-timing-function);
|
|
155
|
+
visibility: visible;
|
|
156
|
+
}
|
|
171
157
|
}
|
|
172
158
|
}
|
|
173
159
|
|
|
174
|
-
&-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
160
|
+
&-menu {
|
|
161
|
+
&-chevron {
|
|
162
|
+
border-color: currentColor;
|
|
163
|
+
border-style: solid;
|
|
164
|
+
border-width: 0 1.5px 1.5px 0;
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
height: 6px;
|
|
167
|
+
margin-inline: calc(var(--size-100) / 4);
|
|
168
|
+
opacity: 0.6;
|
|
169
|
+
rotate: -45deg;
|
|
170
|
+
transition: rotate var(--open-duration) var(--open-timing-function);
|
|
171
|
+
width: 6px;
|
|
172
|
+
|
|
173
|
+
// A branch panel's header points down into the panel it heads.
|
|
174
|
+
&--down {
|
|
175
|
+
rotate: 45deg;
|
|
176
|
+
}
|
|
180
177
|
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&-header,
|
|
184
|
-
&-item {
|
|
185
|
-
align-items: center;
|
|
186
|
-
border-radius: var(--item-border-radius);
|
|
187
|
-
display: flex;
|
|
188
|
-
gap: var(--gap);
|
|
189
|
-
min-height: var(--item-height);
|
|
190
|
-
padding-inline: var(--item-padding);
|
|
191
|
-
}
|
|
192
178
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
179
|
+
&-entry {
|
|
180
|
+
position: relative;
|
|
181
|
+
|
|
182
|
+
// Sub-panels start clipped to the row that opened them, so the row reads as the panel's header,
|
|
183
|
+
// then the clip grows downward. The open clip overhangs the box so the shadow isn't cut off.
|
|
184
|
+
& > .tooltip-menu-panel {
|
|
185
|
+
clip-path: inset(
|
|
186
|
+
var(--padding)
|
|
187
|
+
var(--padding)
|
|
188
|
+
calc(100% - var(--padding) - var(--item-height))
|
|
189
|
+
var(--padding)
|
|
190
|
+
round var(--item-border-radius)
|
|
191
|
+
);
|
|
192
|
+
inset-inline: calc(var(--padding) * -1);
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
top: calc(var(--padding) * -1);
|
|
195
|
+
transition:
|
|
196
|
+
clip-path var(--close-duration) var(--open-timing-function),
|
|
197
|
+
visibility 0s linear var(--close-duration);
|
|
198
|
+
visibility: hidden;
|
|
199
|
+
width: auto;
|
|
200
|
+
z-index: 2;
|
|
201
|
+
|
|
202
|
+
@include tokens.state(active) {
|
|
203
|
+
clip-path: inset(-48px round calc(var(--border-radius) + 48px));
|
|
204
|
+
pointer-events: auto;
|
|
205
|
+
transition: clip-path var(--open-duration) var(--open-timing-function);
|
|
206
|
+
visibility: visible;
|
|
207
|
+
|
|
208
|
+
&.tooltip-menu-panel--settled {
|
|
209
|
+
clip-path: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
196
213
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
214
|
+
// Above the parent's scrim, so the open child panel stays undimmed
|
|
215
|
+
&--open {
|
|
216
|
+
z-index: 2;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
201
219
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
220
|
+
&-header {
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
}
|
|
206
223
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
text-align: start;
|
|
216
|
-
text-decoration: none;
|
|
217
|
-
transition: background var(--close-duration) var(--open-timing-function);
|
|
218
|
-
width: 100%;
|
|
219
|
-
|
|
220
|
-
&:focus,
|
|
221
|
-
&:hover {
|
|
222
|
-
background: var(--background-hover);
|
|
224
|
+
&-header,
|
|
225
|
+
&-item {
|
|
226
|
+
align-items: center;
|
|
227
|
+
border-radius: var(--item-border-radius);
|
|
228
|
+
display: flex;
|
|
229
|
+
gap: var(--gap);
|
|
230
|
+
min-height: var(--item-height);
|
|
231
|
+
padding-inline: var(--item-padding);
|
|
223
232
|
}
|
|
224
233
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
234
|
+
&-hint {
|
|
235
|
+
color: var(--color-hint);
|
|
236
|
+
font-size: var(--font-size-300);
|
|
228
237
|
}
|
|
229
238
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
color: var(--color-disabled);
|
|
234
|
-
cursor: not-allowed;
|
|
239
|
+
&-icon {
|
|
240
|
+
display: inline-flex;
|
|
241
|
+
flex-shrink: 0;
|
|
235
242
|
}
|
|
236
|
-
}
|
|
237
243
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
+
&-item {
|
|
245
|
+
appearance: none;
|
|
246
|
+
background: var(--background);
|
|
247
|
+
border: 0;
|
|
248
|
+
color: inherit;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
font: inherit;
|
|
251
|
+
outline: none;
|
|
252
|
+
text-align: start;
|
|
253
|
+
text-decoration: none;
|
|
254
|
+
transition: background var(--duration-fast) var(--easing-spring);
|
|
255
|
+
width: 100%;
|
|
256
|
+
|
|
257
|
+
// Doubled so it outranks a class paired onto the item, such as '.link'.
|
|
258
|
+
&.tooltip-menu-item--danger {
|
|
259
|
+
color: var(--color-danger);
|
|
260
|
+
}
|
|
244
261
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
// Scrim over parent panels while a child is open; it also takes clicks meant to pop back here
|
|
257
|
-
&::after {
|
|
258
|
-
@extend %layer;
|
|
259
|
-
background: var(--scrim);
|
|
260
|
-
content: '';
|
|
261
|
-
opacity: 0;
|
|
262
|
-
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
263
|
-
z-index: 1;
|
|
262
|
+
&:disabled,
|
|
263
|
+
&[aria-disabled='true'] {
|
|
264
|
+
--background-hover: var(--background-default);
|
|
265
|
+
--background-pressed: var(--background-default);
|
|
266
|
+
color: var(--color-disabled);
|
|
267
|
+
cursor: not-allowed;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&:focus {
|
|
271
|
+
--background: var(--background-hover);
|
|
272
|
+
}
|
|
264
273
|
}
|
|
265
274
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
275
|
+
&-label,
|
|
276
|
+
&-title {
|
|
277
|
+
@extend %text-truncate;
|
|
278
|
+
flex: 1;
|
|
279
|
+
min-width: 0;
|
|
270
280
|
}
|
|
271
|
-
}
|
|
272
281
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
var(--
|
|
278
|
-
var(--
|
|
279
|
-
|
|
280
|
-
var(--padding)
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
visibility 0s linear var(--close-duration);
|
|
289
|
-
visibility: hidden;
|
|
290
|
-
width: auto;
|
|
291
|
-
z-index: 2;
|
|
292
|
-
|
|
293
|
-
@include tokens.state(active) {
|
|
294
|
-
clip-path: inset(-48px round calc(var(--border-radius) + 48px));
|
|
295
|
-
pointer-events: auto;
|
|
296
|
-
transition: clip-path var(--open-duration) var(--open-timing-function);
|
|
297
|
-
visibility: visible;
|
|
298
|
-
|
|
299
|
-
&.tooltip-menu-panel--settled {
|
|
300
|
-
clip-path: none;
|
|
282
|
+
&-panel {
|
|
283
|
+
background: var(--background);
|
|
284
|
+
border-radius: var(--border-radius);
|
|
285
|
+
box-shadow: var(--box-shadow);
|
|
286
|
+
color: var(--color);
|
|
287
|
+
font-size: var(--font-size);
|
|
288
|
+
isolation: isolate;
|
|
289
|
+
padding: var(--padding);
|
|
290
|
+
position: absolute;
|
|
291
|
+
width: var(--width);
|
|
292
|
+
|
|
293
|
+
&--covered::after {
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
opacity: 1;
|
|
296
|
+
pointer-events: auto;
|
|
301
297
|
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
298
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
text-overflow: ellipsis;
|
|
315
|
-
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
299
|
+
// Scrim over parent panels while a child is open; it also takes clicks meant to pop back here
|
|
300
|
+
&::after {
|
|
301
|
+
@extend %layer;
|
|
302
|
+
background: var(--scrim);
|
|
303
|
+
content: '';
|
|
304
|
+
opacity: 0;
|
|
305
|
+
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
306
|
+
z-index: 1;
|
|
307
|
+
}
|
|
316
308
|
}
|
|
317
309
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
310
|
+
// Regular and bold copies of the title are stacked; crossfading them morphs the weight
|
|
311
|
+
// without reflowing the label.
|
|
312
|
+
&-title {
|
|
313
|
+
display: grid;
|
|
314
|
+
|
|
315
|
+
&-bold {
|
|
316
|
+
font-weight: var(--font-weight-600);
|
|
317
|
+
opacity: var(--title-bold-opacity);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&-bold,
|
|
321
|
+
&-regular {
|
|
322
|
+
grid-area: 1 / 1;
|
|
323
|
+
overflow: hidden;
|
|
324
|
+
text-overflow: ellipsis;
|
|
325
|
+
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&-regular {
|
|
329
|
+
opacity: var(--title-regular-opacity);
|
|
330
|
+
}
|
|
321
331
|
}
|
|
322
332
|
|
|
323
|
-
&-
|
|
324
|
-
|
|
333
|
+
&-trigger {
|
|
334
|
+
cursor: pointer;
|
|
325
335
|
}
|
|
326
|
-
}
|
|
327
336
|
|
|
328
|
-
|
|
329
|
-
|
|
337
|
+
// Sub-panels snap open and the chevron turns at once; the fades keep their timing.
|
|
338
|
+
@media (prefers-reduced-motion: reduce) {
|
|
339
|
+
&-chevron,
|
|
340
|
+
&-entry > .tooltip-menu-panel,
|
|
341
|
+
&-entry > .tooltip-menu-panel.--active {
|
|
342
|
+
transition-duration: 0s;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
330
345
|
}
|
|
331
346
|
}
|
|
332
347
|
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
@mixin north($active) {
|
|
2
|
-
&--ne,
|
|
3
|
-
&--nw {
|
|
4
|
-
bottom: calc(100% + var(--spacer) - var(--offset));
|
|
5
|
-
position: absolute;
|
|
6
|
-
|
|
7
|
-
#{$active} {
|
|
8
|
-
translate: 0 calc(var(--offset) * -1);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
2
|
&--n {
|
|
13
3
|
bottom: calc(100% + var(--spacer) - var(--offset));
|
|
14
4
|
position: absolute;
|
|
@@ -26,6 +16,16 @@
|
|
|
26
16
|
transform-origin: bottom right;
|
|
27
17
|
}
|
|
28
18
|
|
|
19
|
+
&--ne,
|
|
20
|
+
&--nw {
|
|
21
|
+
bottom: calc(100% + var(--spacer) - var(--offset));
|
|
22
|
+
position: absolute;
|
|
23
|
+
|
|
24
|
+
#{$active} {
|
|
25
|
+
translate: 0 calc(var(--offset) * -1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
29
|
&--nw {
|
|
30
30
|
left: 0;
|
|
31
31
|
transform-origin: bottom left;
|