@esportsplus/ui 0.59.0 → 0.61.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/.audit/audit.json +2810 -0
- package/.audit/check-scss.mjs +20 -0
- package/.audit/rules-audit.md +542 -0
- package/README.md +42 -31
- package/RULES.md +115 -0
- package/build/components/accordion/index.d.ts +12 -2175
- package/build/components/accordion/index.js +3 -4
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.js +47 -64
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +6 -4
- package/build/components/button/copy.js +24 -20
- package/build/components/button/faces.d.ts +0 -1
- package/build/components/button/faces.js +5 -6
- package/build/components/button/index.d.ts +3 -7
- package/build/components/button/index.js +3 -5
- package/build/components/button/kbd.d.ts +12 -8
- package/build/components/button/kbd.js +59 -74
- package/build/components/button/morph/index.d.ts +2169 -0
- package/build/components/button/morph/index.js +4 -0
- package/build/components/button/morph/save.d.ts +19 -0
- package/build/components/button/morph/save.js +57 -0
- package/build/components/button/morph/template.d.ts +22 -0
- package/build/components/button/morph/template.js +90 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.js +2 -2
- package/build/components/button/split.d.ts +1 -1
- package/build/components/button/split.js +11 -15
- package/build/components/capslock/index.js +6 -5
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.js +103 -111
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/index.d.ts +6 -0
- package/build/components/chat/index.js +3 -0
- package/build/components/chat/minimap/index.d.ts +52 -0
- package/build/components/chat/minimap/index.js +248 -0
- package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/checkbox/index.js +1 -0
- package/build/components/checkbox/options.d.ts +0 -1
- package/build/components/checkbox/options.js +0 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/index.d.ts +3 -2181
- package/build/components/clipboard/index.js +2 -3
- package/build/components/color-picker/index.d.ts +21 -0
- package/build/components/color-picker/index.js +153 -138
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +6 -93
- package/build/components/command/index.js +4 -601
- package/build/components/command/palette.d.ts +103 -0
- package/build/components/command/palette.js +595 -0
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +37 -0
- package/build/components/command/search.js +67 -0
- package/build/components/counter/index.d.ts +15 -4
- package/build/components/counter/index.js +3 -2
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +24 -5
- package/build/components/dock/index.js +389 -51
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/markdown/index.d.ts +3 -22
- package/build/components/editor/markdown/index.js +3 -30
- package/build/components/editor/markdown/render.js +3 -5
- package/build/components/editor/markdown/template.d.ts +22 -0
- package/build/components/editor/markdown/template.js +30 -0
- package/build/components/editor/tree/find.js +3 -3
- package/build/components/editor/tree/index.d.ts +3 -116
- package/build/components/editor/tree/index.js +3 -2225
- package/build/components/editor/tree/template.d.ts +116 -0
- package/build/components/editor/tree/template.js +2225 -0
- package/build/components/editor/viewer/index.d.ts +3 -26
- package/build/components/editor/viewer/index.js +3 -249
- package/build/components/editor/viewer/template.d.ts +26 -0
- package/build/components/editor/viewer/template.js +249 -0
- package/build/components/editor/workspace/index.d.ts +4 -65
- package/build/components/editor/workspace/index.js +4 -1228
- package/build/components/editor/workspace/model.d.ts +29 -37
- package/build/components/editor/workspace/model.js +186 -155
- package/build/components/editor/workspace/session.d.ts +3 -0
- package/build/components/editor/workspace/session.js +61 -34
- package/build/components/editor/workspace/shortcuts.d.ts +0 -2
- package/build/components/editor/workspace/shortcuts.js +0 -2
- package/build/components/editor/workspace/status.d.ts +4 -5
- package/build/components/editor/workspace/status.js +79 -61
- package/build/components/editor/workspace/statusbar.d.ts +5 -3
- package/build/components/editor/workspace/statusbar.js +66 -80
- package/build/components/editor/workspace/strip.d.ts +1 -2
- package/build/components/editor/workspace/strip.js +4 -3
- package/build/components/editor/workspace/tabs.d.ts +35 -3
- package/build/components/editor/workspace/tabs.js +75 -13
- package/build/components/editor/workspace/template.d.ts +65 -0
- package/build/components/editor/workspace/template.js +1145 -0
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +0 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/index.d.ts +6 -32
- package/build/components/form/index.js +2 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +12 -0
- package/build/components/group/index.js +15 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/heatmap/index.js +10 -32
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +2 -3
- package/build/components/highlight/index.js +79 -78
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +4 -3
- package/build/components/icon/index.js +2 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +3 -16
- package/build/components/image/index.js +2 -2
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +6 -4
- package/build/components/index.js +6 -4
- package/build/components/inline-edit/index.js +5 -4
- package/build/components/inline-edit/rich.js +79 -82
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +4 -3
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.js +84 -67
- package/build/components/json/index.d.ts +4 -3
- package/build/components/json/index.js +2 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.js +74 -71
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/flash.js +12 -11
- 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/toc.d.ts +8 -13
- package/build/components/nav/toc.js +9 -21
- package/build/components/nav/tree.d.ts +13 -14
- package/build/components/nav/tree.js +32 -19
- package/build/components/notification/index.d.ts +14 -3
- package/build/components/notification/index.js +4 -3
- 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/cards.d.ts +1 -0
- package/build/components/pagination/cards.js +4 -6
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.d.ts +47 -0
- package/build/components/panels/dnd.js +106 -0
- package/build/components/panels/group.d.ts +35 -0
- package/build/components/panels/group.js +319 -0
- package/build/components/panels/index.d.ts +25 -0
- package/build/components/panels/index.js +520 -0
- package/build/components/panels/model.d.ts +64 -0
- package/build/components/panels/model.js +446 -0
- package/build/components/panels/resize.d.ts +9 -0
- package/build/components/panels/resize.js +87 -0
- package/build/components/panels/scss/index.scss +2 -0
- package/build/components/panels/subtree.d.ts +3 -0
- package/build/components/panels/subtree.js +43 -0
- package/build/components/preview/buttons.d.ts +20 -0
- package/build/components/preview/buttons.js +26 -0
- package/build/components/{copy/index.d.ts → preview/code.d.ts} +3 -9
- package/build/components/preview/code.js +18 -0
- package/build/components/preview/header.d.ts +16 -0
- package/build/components/preview/header.js +18 -0
- package/build/components/preview/index.d.ts +8704 -0
- package/build/components/preview/index.js +123 -0
- package/build/components/preview/scss/index.scss +2 -0
- package/build/components/preview/source.d.ts +21 -0
- package/build/components/preview/source.js +76 -0
- package/build/components/preview/stage.d.ts +16 -0
- package/build/components/preview/stage.js +24 -0
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +9 -11
- package/build/components/radio/index.d.ts +3 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.js +8 -9
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.js +4 -7
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +72 -59
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +22 -0
- package/build/components/shell/index.js +272 -0
- package/build/components/shell/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +2 -3
- package/build/components/shortcut-recorder/index.js +3 -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/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +10 -6
- package/build/components/story/index.js +27 -47
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/index.js +13 -16
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +3 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.js +3 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/index.d.ts +6 -2
- package/build/components/theme/index.js +4 -3
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme-picker/cards.d.ts +13 -0
- package/build/components/theme-picker/cards.js +17 -0
- package/build/components/theme-picker/index.d.ts +9 -49
- package/build/components/theme-picker/index.js +5 -165
- package/build/components/theme-picker/scss/index.scss +1 -1
- package/build/components/theme-picker/shared.d.ts +26 -0
- package/build/components/theme-picker/shared.js +24 -0
- package/build/components/theme-picker/swatches.d.ts +13 -0
- package/build/components/theme-picker/swatches.js +17 -0
- package/build/components/theme-picker/toggle.d.ts +19 -0
- package/build/components/theme-picker/toggle.js +109 -0
- package/build/components/toast/index.js +10 -10
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +2 -0
- package/build/components/tooltip/menu.js +88 -45
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.js +2 -2
- package/build/components/typewriter/rotate.js +7 -16
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.js +26 -33
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/background/scss/index.scss +2 -0
- package/build/modifiers/border/scss/index.scss +2 -0
- package/build/modifiers/box-shadow/scss/index.scss +2 -0
- package/build/modifiers/color/scss/index.scss +2 -0
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.js +1 -1
- package/build/shared/drag.d.ts +2 -1
- package/build/shared/drag.js +4 -3
- package/package.json +8 -8
- package/scripts/code-editor-services.test.mjs +1 -1
- package/scripts/code-editor-workspace.test.mjs +28 -18
- package/scripts/panels.test.mjs +262 -0
- package/scripts/workspace-keybindings.test.mjs +1 -1
- package/scripts/workspace-session.test.mjs +8 -6
- package/scripts/workspace-status.test.mjs +9 -1
- package/scripts/workspace-tabs.test.mjs +5 -5
- package/src/components/accordion/index.ts +11 -8
- package/src/components/accordion/scss/index.scss +15 -15
- package/src/components/accordion/scss/variables.scss +11 -7
- package/src/components/announcement/scss/index.scss +21 -24
- package/src/components/announcement/scss/variables.scss +13 -7
- package/src/components/breadcrumb/index.ts +8 -10
- package/src/components/breadcrumb/scss/index.scss +48 -122
- package/src/components/breadcrumb/scss/variables.scss +73 -55
- package/src/components/button/copy.ts +34 -27
- package/src/components/button/faces.ts +2 -4
- package/src/components/button/index.ts +3 -7
- package/src/components/button/kbd.ts +37 -95
- package/src/components/button/morph/index.ts +6 -0
- package/src/components/button/morph/save.ts +55 -0
- package/src/components/button/morph/template.ts +135 -0
- package/src/components/button/scss/index.scss +218 -99
- package/src/components/button/scss/variables.scss +160 -115
- package/src/components/button/sidebar.ts +6 -6
- package/src/components/button/split.ts +5 -6
- package/src/components/capslock/index.ts +9 -8
- package/src/components/capslock/scss/index.scss +21 -25
- package/src/components/capslock/scss/variables.scss +31 -12
- package/src/components/card/scss/index.scss +9 -24
- package/src/components/card/scss/variables.scss +29 -76
- package/src/components/cc/index.ts +15 -10
- package/src/components/cc/scss/index.scss +110 -153
- package/src/components/cc/scss/variables.scss +231 -44
- package/src/components/chat/index.ts +10 -0
- package/src/components/{chat-minimap → chat/minimap}/index.ts +66 -21
- package/src/components/{chat-minimap → chat/minimap}/scss/index.scss +26 -54
- package/src/components/chat/minimap/scss/variables.scss +178 -0
- package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/options.ts +0 -1
- package/src/components/checkbox/scss/index.scss +25 -31
- package/src/components/checkbox/scss/variables.scss +50 -19
- package/src/components/clipboard/index.ts +4 -3
- package/src/components/color-picker/index.ts +131 -67
- package/src/components/color-picker/scss/index.scss +138 -221
- package/src/components/color-picker/scss/variables.scss +228 -81
- package/src/components/command/index.ts +5 -860
- package/src/components/command/palette.ts +879 -0
- package/src/components/command/scss/index.scss +82 -99
- package/src/components/command/scss/variables.scss +129 -50
- package/src/components/command/search.ts +67 -0
- package/src/components/counter/index.ts +90 -85
- package/src/components/counter/scss/index.scss +32 -41
- package/src/components/counter/scss/variables.scss +44 -16
- package/src/components/datalist/scss/index.scss +25 -25
- package/src/components/datalist/scss/variables.scss +21 -11
- package/src/components/dock/index.ts +505 -42
- package/src/components/dock/scss/index.scss +318 -73
- package/src/components/dock/scss/variables.scss +310 -39
- package/src/components/editor/code/features.ts +0 -1
- package/src/components/editor/code/find.ts +0 -1
- package/src/components/editor/code/keymap.ts +0 -1
- package/src/components/editor/code/scss/_editor.scss +12 -31
- package/src/components/editor/code/scss/_features.scss +12 -45
- package/src/components/editor/code/scss/_services.scss +15 -23
- package/src/components/editor/code/scss/index.scss +1 -1
- package/src/components/editor/code/scss/variables.scss +195 -42
- package/src/components/editor/code/view.ts +0 -1
- package/src/components/editor/diffs/scss/_diffs.scss +24 -77
- package/src/components/editor/diffs/scss/_merge.scss +5 -16
- package/src/components/editor/diffs/scss/index.scss +1 -1
- package/src/components/editor/diffs/scss/variables.scss +148 -11
- package/src/components/editor/markdown/index.ts +3 -67
- package/src/components/editor/markdown/render.ts +3 -6
- package/src/components/editor/markdown/scss/index.scss +30 -48
- package/src/components/editor/markdown/scss/variables.scss +117 -32
- package/src/components/editor/markdown/template.ts +69 -0
- package/src/components/editor/tree/drag.ts +5 -2
- package/src/components/editor/tree/find.ts +5 -4
- package/src/components/editor/tree/index.ts +3 -3434
- package/src/components/editor/tree/scss/index.scss +204 -262
- package/src/components/editor/tree/scss/variables.scss +198 -31
- package/src/components/editor/tree/template.ts +3436 -0
- package/src/components/editor/viewer/index.ts +3 -318
- package/src/components/editor/viewer/scss/_viewer.scss +15 -31
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +56 -14
- package/src/components/editor/viewer/template.ts +321 -0
- package/src/components/editor/workspace/index.ts +4 -1480
- package/src/components/editor/workspace/model.ts +225 -185
- package/src/components/editor/workspace/scss/_keybindings.scss +163 -0
- package/src/components/editor/workspace/scss/{status.scss → _status.scss} +11 -44
- package/src/components/editor/workspace/scss/_tabs.scss +57 -0
- package/src/components/editor/workspace/scss/index.scss +82 -312
- package/src/components/editor/workspace/scss/variables.scss +427 -0
- package/src/components/editor/workspace/session.ts +80 -44
- package/src/components/editor/workspace/shortcuts.ts +0 -2
- package/src/components/editor/workspace/status.ts +110 -80
- package/src/components/editor/workspace/statusbar.ts +38 -35
- package/src/components/editor/workspace/strip.ts +6 -5
- package/src/components/editor/workspace/tabs.ts +115 -15
- package/src/components/editor/workspace/template.ts +1486 -0
- package/src/components/error/index.ts +3 -0
- package/src/components/error/scss/index.scss +34 -65
- package/src/components/error/scss/variables.scss +28 -9
- package/src/components/filter/index.ts +2 -6
- package/src/components/filter/scss/index.scss +9 -2
- package/src/components/filter/scss/variables.scss +6 -6
- package/src/components/form/index.ts +4 -1
- package/src/components/frame/scss/index.scss +31 -42
- package/src/components/frame/scss/variables.scss +25 -18
- package/src/components/grid/scss/index.scss +2 -1
- package/src/components/group/index.ts +24 -0
- package/src/components/group/scss/index.scss +6 -0
- package/src/components/group/scss/variables.scss +4 -0
- package/src/components/heatmap/index.ts +14 -44
- package/src/components/heatmap/scss/index.scss +38 -44
- package/src/components/heatmap/scss/variables.scss +100 -59
- package/src/components/highlight/index.ts +133 -119
- package/src/components/highlight/scss/index.scss +49 -43
- package/src/components/highlight/scss/variables.scss +71 -30
- package/src/components/icon/index.ts +7 -5
- package/src/components/icon/scss/index.scss +7 -2
- package/src/components/icon/scss/variables.scss +2 -0
- package/src/components/image/index.ts +4 -2
- package/src/components/image/scss/index.scss +14 -22
- package/src/components/image/scss/variables.scss +30 -15
- package/src/components/index.ts +6 -4
- package/src/components/inline-edit/index.ts +3 -2
- package/src/components/inline-edit/rich.ts +17 -15
- package/src/components/inline-edit/scss/index.scss +165 -254
- package/src/components/inline-edit/scss/variables.scss +311 -83
- package/src/components/inline-edit/status.ts +2 -1
- package/src/components/input/scrub.ts +1 -1
- package/src/components/input/scss/_field.scss +1 -1
- package/src/components/input/scss/_scrub.scss +14 -25
- package/src/components/input/scss/_tag.scss +26 -46
- package/src/components/input/scss/variables.scss +167 -77
- package/src/components/input/tag.ts +59 -49
- package/src/components/json/index.ts +4 -1
- package/src/components/link/scss/index.scss +1 -4
- package/src/components/link/scss/variables.scss +5 -1
- package/src/components/loading/scss/index.scss +3 -23
- package/src/components/loading/scss/variables.scss +3 -6
- package/src/components/marquee/index.ts +33 -28
- package/src/components/marquee/scss/index.scss +32 -26
- package/src/components/marquee/scss/variables.scss +35 -23
- package/src/components/metric/flash.ts +2 -1
- package/src/components/metric/scss/_flash.scss +125 -145
- package/src/components/metric/scss/index.scss +31 -43
- package/src/components/metric/scss/variables.scss +192 -98
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +46 -49
- package/src/components/nav/scss/variables.scss +61 -64
- package/src/components/nav/spy.ts +2 -0
- package/src/components/nav/toc.ts +11 -31
- package/src/components/nav/tree.ts +56 -24
- package/src/components/notification/index.ts +94 -89
- package/src/components/notification/scss/index.scss +77 -76
- package/src/components/notification/scss/variables.scss +55 -38
- package/src/components/overlay/index.ts +3 -1
- package/src/components/overlay/scss/index.scss +94 -114
- package/src/components/overlay/scss/variables.scss +46 -18
- package/src/components/page/scss/variables.scss +1 -1
- package/src/components/pagination/cards.ts +2 -1
- package/src/components/pagination/scss/index.scss +191 -7
- package/src/components/pagination/scss/variables.scss +112 -36
- package/src/components/panels/dnd.ts +184 -0
- package/src/components/panels/group.ts +437 -0
- package/src/components/panels/index.ts +678 -0
- package/src/components/panels/model.ts +675 -0
- package/src/components/panels/resize.ts +131 -0
- package/src/components/panels/scss/index.scss +394 -0
- package/src/components/panels/scss/variables.scss +197 -0
- package/src/components/panels/subtree.ts +65 -0
- package/src/components/preview/buttons.ts +48 -0
- package/src/components/preview/code.ts +28 -0
- package/src/components/preview/header.ts +23 -0
- package/src/components/preview/index.ts +144 -0
- package/src/components/preview/scss/index.scss +143 -0
- package/src/components/preview/scss/variables.scss +127 -0
- package/src/components/preview/source.ts +73 -0
- package/src/components/preview/stage.ts +33 -0
- package/src/components/progress/scss/index.scss +117 -15
- package/src/components/progress/scss/variables.scss +140 -40
- package/src/components/progress/text.ts +5 -4
- package/src/components/radio/index.ts +2 -4
- package/src/components/range/filter.ts +7 -11
- package/src/components/range/scss/_filter.scss +301 -327
- package/src/components/range/scss/_slider.scss +31 -110
- package/src/components/range/scss/_vertical.scss +8 -20
- package/src/components/range/scss/index.scss +1 -4
- package/src/components/range/scss/variables.scss +374 -70
- package/src/components/relative-time/index.ts +9 -14
- package/src/components/relative-time/scss/index.scss +13 -21
- package/src/components/relative-time/scss/variables.scss +46 -29
- package/src/components/root/scss/index.scss +11 -20
- package/src/components/root/scss/variables.scss +17 -15
- package/src/components/select/index.ts +37 -15
- package/src/components/select/scss/index.scss +24 -51
- package/src/components/select/scss/variables.scss +77 -19
- package/src/components/shell/index.ts +321 -0
- package/src/components/shell/scss/index.scss +214 -0
- package/src/components/shell/scss/variables.scss +89 -0
- package/src/components/shortcut-recorder/index.ts +6 -3
- package/src/components/shortcut-recorder/scss/index.scss +71 -56
- package/src/components/shortcut-recorder/scss/variables.scss +47 -21
- package/src/components/sortable/index.ts +1 -0
- package/src/components/sortable/scss/index.scss +37 -42
- package/src/components/sortable/scss/variables.scss +76 -52
- package/src/components/sticky-header/scss/index.scss +11 -10
- package/src/components/sticky-header/scss/variables.scss +36 -4
- package/src/components/story/index.ts +1 -36
- package/src/components/story/scss/index.scss +22 -98
- package/src/components/story/scss/variables.scss +57 -15
- package/src/components/surface-field/index.ts +18 -20
- package/src/components/surface-field/scss/index.scss +32 -46
- package/src/components/surface-field/scss/variables.scss +92 -23
- package/src/components/switch/index.ts +2 -4
- package/src/components/tasklist/index.ts +8 -2
- package/src/components/tasklist/scss/index.scss +7 -7
- package/src/components/tasklist/scss/variables.scss +18 -13
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/scss/index.scss +9 -7
- package/src/components/textarea/scss/variables.scss +2 -2
- package/src/components/theme/index.ts +12 -4
- package/src/components/theme/scss/index.scss +13 -0
- package/src/components/theme/scss/variables.scss +5 -16
- package/src/components/theme-picker/cards.ts +19 -0
- package/src/components/theme-picker/index.ts +6 -225
- package/src/components/theme-picker/scss/index.scss +77 -167
- package/src/components/theme-picker/scss/variables.scss +220 -0
- package/src/components/theme-picker/shared.ts +54 -0
- package/src/components/theme-picker/swatches.ts +15 -0
- package/src/components/theme-picker/toggle.ts +150 -0
- package/src/components/toast/index.ts +14 -14
- package/src/components/toast/scss/index.scss +130 -155
- package/src/components/toast/scss/variables.scss +89 -52
- package/src/components/tooltip/menu.ts +77 -10
- package/src/components/tooltip/scss/_menu.scss +96 -138
- package/src/components/tooltip/scss/_shared.scss +93 -90
- package/src/components/tooltip/scss/index.scss +52 -54
- package/src/components/tooltip/scss/variables.scss +187 -67
- package/src/components/tooltip/shared.ts +8 -6
- package/src/components/typewriter/rotate.ts +15 -24
- package/src/components/typewriter/scss/index.scss +131 -3
- package/src/components/typewriter/scss/variables.scss +56 -44
- package/src/components/uptime/index.ts +1 -13
- package/src/components/uptime/scss/index.scss +28 -66
- package/src/components/uptime/scss/variables.scss +63 -48
- package/src/components/usage-meter/scss/index.scss +19 -19
- package/src/components/usage-meter/scss/variables.scss +80 -35
- package/src/css-utilities/absolute.scss +54 -52
- package/src/css-utilities/background.scss +22 -24
- package/src/css-utilities/border.scss +21 -21
- package/src/css-utilities/box-shadow.scss +32 -21
- package/src/css-utilities/color.scss +23 -21
- package/src/css-utilities/flex.scss +55 -53
- package/src/css-utilities/group.scss +7 -0
- package/src/css-utilities/hidden.scss +22 -20
- package/src/css-utilities/icon.scss +32 -30
- package/src/css-utilities/layer.scss +10 -10
- package/src/css-utilities/reset.scss +27 -16
- package/src/css-utilities/surface.scss +206 -128
- package/src/css-utilities/text.scss +114 -114
- package/src/modifiers/background/scss/index.scss +1 -0
- package/src/modifiers/background/scss/variables.scss +24 -0
- package/src/modifiers/border/scss/index.scss +1 -0
- package/src/modifiers/border/scss/variables.scss +21 -0
- package/src/modifiers/box-shadow/scss/index.scss +1 -0
- package/src/modifiers/box-shadow/scss/variables.scss +12 -0
- package/src/modifiers/color/scss/index.scss +1 -0
- package/src/modifiers/color/scss/variables.scss +10 -0
- package/src/modifiers/scrollbar/scss/index.scss +3 -2
- package/src/modifiers/scrollbar/scss/variables.scss +4 -3
- package/src/shared/animation.ts +3 -3
- package/src/shared/drag.ts +8 -3
- package/src/tokens/scss/color.scss +53 -37
- package/src/tokens/scss/index.scss +0 -1
- package/src/tokens/scss/state.scss +16 -1
- package/storage/svg/code.svg +1 -1
- package/storage/svg/collapse.svg +1 -0
- package/storage/svg/grid.svg +1 -0
- package/storage/svg/stack.svg +1 -0
- package/build/components/banner/scss/index.scss +0 -2
- package/build/components/button/fan.d.ts +0 -24
- package/build/components/button/fan.js +0 -118
- package/build/components/button/hold.d.ts +0 -31
- package/build/components/button/hold.js +0 -115
- package/build/components/button/icons.d.ts +0 -6
- package/build/components/button/icons.js +0 -35
- package/build/components/button/loading.d.ts +0 -22
- package/build/components/button/loading.js +0 -60
- package/build/components/button/morph.d.ts +0 -22
- package/build/components/button/morph.js +0 -115
- package/build/components/card/expand.d.ts +0 -22
- package/build/components/card/expand.js +0 -118
- package/build/components/card/index.d.ts +0 -6
- package/build/components/card/index.js +0 -4
- package/build/components/chat-minimap/index.d.ts +0 -28
- package/build/components/chat-minimap/index.js +0 -223
- package/build/components/chat-minimap/scss/index.scss +0 -2
- package/build/components/clipboard/copy.d.ts +0 -27
- package/build/components/clipboard/copy.js +0 -48
- package/build/components/copy/index.js +0 -61
- package/build/components/copy/scss/index.scss +0 -2
- package/build/components/highlight/easing.d.ts +0 -2
- package/build/components/highlight/easing.js +0 -19
- package/build/components/pull-to-refresh/index.d.ts +0 -18
- package/build/components/pull-to-refresh/index.js +0 -222
- package/build/components/pull-to-refresh/scss/index.scss +0 -2
- package/src/components/banner/scss/index.scss +0 -37
- package/src/components/banner/scss/variables.scss +0 -16
- package/src/components/button/fan.ts +0 -170
- package/src/components/button/hold.ts +0 -154
- package/src/components/button/icons.ts +0 -21
- package/src/components/button/loading.ts +0 -77
- package/src/components/button/morph.ts +0 -153
- package/src/components/button/scss/_fan.scss +0 -121
- package/src/components/button/scss/_kbd.scss +0 -11
- package/src/components/button/scss/_morph.scss +0 -107
- package/src/components/button/scss/_sidebar.scss +0 -61
- package/src/components/button/scss/_split.scss +0 -53
- package/src/components/card/expand.ts +0 -141
- package/src/components/card/index.ts +0 -8
- package/src/components/card/scss/_expand.scss +0 -234
- package/src/components/chat-minimap/scss/variables.scss +0 -97
- package/src/components/clipboard/copy.ts +0 -49
- package/src/components/copy/index.ts +0 -69
- package/src/components/copy/scss/index.scss +0 -52
- package/src/components/copy/scss/variables.scss +0 -19
- package/src/components/editor/workspace/scss/keybindings.scss +0 -190
- package/src/components/editor/workspace/scss/tabs.scss +0 -56
- package/src/components/highlight/easing.ts +0 -33
- package/src/components/pagination/scss/_arrows.scss +0 -69
- package/src/components/pagination/scss/_cards.scss +0 -121
- package/src/components/pagination/scss/_dots.scss +0 -64
- package/src/components/progress/scss/_text.scss +0 -135
- package/src/components/pull-to-refresh/index.ts +0 -316
- package/src/components/pull-to-refresh/scss/index.scss +0 -128
- package/src/components/pull-to-refresh/scss/variables.scss +0 -38
- package/src/components/typewriter/scss/_caret.scss +0 -34
- package/src/components/typewriter/scss/_retype.scss +0 -68
- package/src/components/typewriter/scss/_rotate.scss +0 -29
- package/src/tokens/scss/transition.scss +0 -21
- /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
- /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
|
@@ -2,21 +2,23 @@ import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
|
2
2
|
import { flush, onCleanup } from '@esportsplus/reactivity';
|
|
3
3
|
import * as template_u1 from '@esportsplus/template';
|
|
4
4
|
import { component } from '@esportsplus/template';
|
|
5
|
+
import highlight from '../highlight/index.js';
|
|
5
6
|
import overlay from '../overlay/index.js';
|
|
7
|
+
import { finished } from '../../shared/animation.js';
|
|
6
8
|
import { flip, viewport } from '../../shared/viewport.js';
|
|
7
9
|
import { morph } from './utilities.js';
|
|
8
10
|
const template_0p4v5175 = template_u1.template(`<!--$--><span class='tooltip-menu-label'></span><!--$--><!--$-->`);
|
|
9
11
|
const template_0p4v517b = template_u1.template(`<span class='tooltip-menu-icon'>`);
|
|
10
12
|
const template_0p4v517e = template_u1.template(`<span class='tooltip-menu-hint'>`);
|
|
11
13
|
const template_0p4v517g = template_u1.template(`<span class='tooltip-menu-chevron'>`);
|
|
12
|
-
const template_0p4v517i = template_u1.template(`<div class='tooltip-menu-entry'><!--$-->`);
|
|
14
|
+
const template_0p4v517i = template_u1.template(`<div class='tooltip-menu-entry '><!--$-->`);
|
|
13
15
|
const template_0p4v517m = template_u1.template(`<a class='tooltip-menu-item ' role='menuitem' tabindex='-1'>`);
|
|
14
16
|
const template_0p4v517p = template_u1.template(`<button class='tooltip-menu-item ' role='menuitem' tabindex='-1' type='button'>`);
|
|
15
|
-
const template_0p4v517s = template_u1.template(`<div class='tooltip-menu-panel ' role='menu'
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
17
|
+
const template_0p4v517s = template_u1.template(`<div class='tooltip-menu-panel ' role='menu'><!--$--><!--$-->`);
|
|
18
|
+
const template_0p4v517x = template_u1.template(`<div class='tooltip-menu-header'><!--$--><span class='tooltip-menu-title'><span class='tooltip-menu-title-regular'></span><span aria-hidden='true' class='tooltip-menu-title-bold'></span></span><span class='tooltip-menu-chevron tooltip-menu-chevron--down'>`);
|
|
19
|
+
const template_0p4v51715 = template_u1.template(`<div class='tooltip tooltip--menu '><!--$--><div class='tooltip-menu-layer' popover='manual' style=';'>`);
|
|
20
|
+
const template_0p4v5171a = template_u1.template(`<div class='tooltip-menu-trigger'>`);
|
|
21
|
+
const template_0p4v5171d = template_u1.template(`<button aria-haspopup='menu' class='tooltip-menu-trigger' type='button'>`);
|
|
20
22
|
class ReactiveObject_0p4v5170 extends reactivity_u0.ReactiveObject {
|
|
21
23
|
#open = this[reactivity_u0.SIGNAL](false);
|
|
22
24
|
#render = this[reactivity_u0.SIGNAL](false);
|
|
@@ -82,21 +84,29 @@ class ReactiveObject_0p4v5172 extends reactivity_u0.ReactiveObject {
|
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
class ReactiveObject_0p4v5173 extends reactivity_u0.ReactiveObject {
|
|
87
|
+
#shift = this[reactivity_u0.SIGNAL](0);
|
|
85
88
|
#style = this[reactivity_u0.SIGNAL]('');
|
|
86
89
|
constructor() {
|
|
87
90
|
super(null);
|
|
88
91
|
}
|
|
92
|
+
get shift() {
|
|
93
|
+
return reactivity_u0.read(this.#shift);
|
|
94
|
+
}
|
|
95
|
+
set shift(_v0) {
|
|
96
|
+
reactivity_u0.write(this.#shift, _v0);
|
|
97
|
+
}
|
|
89
98
|
get style() {
|
|
90
99
|
return reactivity_u0.read(this.#style);
|
|
91
100
|
}
|
|
92
|
-
set style(
|
|
93
|
-
reactivity_u0.write(this.#style,
|
|
101
|
+
set style(_v1) {
|
|
102
|
+
reactivity_u0.write(this.#style, _v1);
|
|
94
103
|
}
|
|
95
104
|
}
|
|
96
105
|
const MENU_TRIGGER = Symbol.for('@esportsplus/ui/tooltip.menu.trigger');
|
|
97
106
|
const MENU_ITEM = Symbol.for('@esportsplus/ui/tooltip.menu.item');
|
|
98
107
|
const MENU_PANEL = Symbol.for('@esportsplus/ui/tooltip.menu.panel');
|
|
99
108
|
const VIEWPORT_MARGIN = 8;
|
|
109
|
+
let anchors = 0;
|
|
100
110
|
function covered(node) {
|
|
101
111
|
for (let i = 0, n = node.children.length; i < n; i++) {
|
|
102
112
|
if (node.children[i].state.open) {
|
|
@@ -130,8 +140,8 @@ function tree(items, parent) {
|
|
|
130
140
|
return nodes;
|
|
131
141
|
}
|
|
132
142
|
function createMenu(context = false) {
|
|
133
|
-
return component(({ animate = true, controller, expand: expansion = false, items, onselect, openOn = 'click', state = new ReactiveObject_0p4v5171(), ...attributes }, content) => {
|
|
134
|
-
let root = { children: [], state: new ReactiveObject_0p4v5172() }, stack = [root], host, leaving, pending, placement = new ReactiveObject_0p4v5173(), trigger;
|
|
143
|
+
return component(({ animate = true, controller, expand: expansion = false, highlight: highlighted = false, items, onselect, openOn = 'click', state = new ReactiveObject_0p4v5171(), ...attributes }, content) => {
|
|
144
|
+
let root = { children: [], state: new ReactiveObject_0p4v5172() }, stack = [root], hiding = 0, host, layer, leaving, name = `--tooltip-menu-${++anchors}`, pending, placement = new ReactiveObject_0p4v5173(), trigger;
|
|
135
145
|
root.children = tree(items, root);
|
|
136
146
|
onCleanup(() => {
|
|
137
147
|
clearTimeout(leaving);
|
|
@@ -177,6 +187,7 @@ function createMenu(context = false) {
|
|
|
177
187
|
if (!animate) {
|
|
178
188
|
reset();
|
|
179
189
|
}
|
|
190
|
+
lower();
|
|
180
191
|
if (focus) {
|
|
181
192
|
trigger?.focus({ preventScroll: true });
|
|
182
193
|
}
|
|
@@ -249,6 +260,7 @@ function createMenu(context = false) {
|
|
|
249
260
|
return root_0p4v517o;
|
|
250
261
|
})(), element_0p4v517k);
|
|
251
262
|
new template_u1.EffectSlot(element_0p4v517j, () => branch && node.state.render && panel(node), 2);
|
|
263
|
+
template_u1.setList(element_0p4v517j, 'class', disabled && '--disabled');
|
|
252
264
|
template_u1.setList(element_0p4v517j, 'class', () => node.state.open && 'tooltip-menu-entry--open');
|
|
253
265
|
return root_0p4v517h;
|
|
254
266
|
})();
|
|
@@ -264,11 +276,23 @@ function createMenu(context = false) {
|
|
|
264
276
|
|| parseFloat(getComputedStyle(root.panel).getPropertyValue('--open-duration')) === 0
|
|
265
277
|
|| matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
266
278
|
}
|
|
279
|
+
function lower() {
|
|
280
|
+
let current = ++hiding;
|
|
281
|
+
if (!layer) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
void finished(layer, { subtree: true }).then(() => {
|
|
285
|
+
if (current === hiding && !state.active && !pending && layer?.matches(':popover-open')) {
|
|
286
|
+
layer.hidePopover();
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
267
290
|
function open(focus = true) {
|
|
268
291
|
stay();
|
|
269
292
|
if (state.active || pending) {
|
|
270
293
|
return;
|
|
271
294
|
}
|
|
295
|
+
raise();
|
|
272
296
|
reset();
|
|
273
297
|
root.state.settled = !expansion || instant();
|
|
274
298
|
flush();
|
|
@@ -303,20 +327,21 @@ function createMenu(context = false) {
|
|
|
303
327
|
function panel(node) {
|
|
304
328
|
let item = node.item;
|
|
305
329
|
return (() => {
|
|
306
|
-
let root_0p4v517r = template_0p4v517s(), element_0p4v517t = root_0p4v517r.firstChild, element_0p4v517u = element_0p4v517t.firstChild;
|
|
330
|
+
let root_0p4v517r = template_0p4v517s(), element_0p4v517t = root_0p4v517r.firstChild, element_0p4v517u = element_0p4v517t.firstChild, element_0p4v517v = element_0p4v517u.nextSibling;
|
|
307
331
|
template_u1.slot(element_0p4v517u, item && (() => {
|
|
308
|
-
let
|
|
309
|
-
template_u1.slot(
|
|
310
|
-
let
|
|
311
|
-
template_u1.slot(
|
|
312
|
-
return
|
|
332
|
+
let root_0p4v517w = template_0p4v517x(), element_0p4v517y = root_0p4v517w.firstChild, element_0p4v517z = element_0p4v517y.firstChild, element_0p4v51710 = element_0p4v517y.firstElementChild.firstElementChild, element_0p4v51711 = element_0p4v51710.nextElementSibling;
|
|
333
|
+
template_u1.slot(element_0p4v517z, item.icon && (() => {
|
|
334
|
+
let root_0p4v51712 = template_0p4v517b(), element_0p4v51713 = root_0p4v51712.firstChild;
|
|
335
|
+
template_u1.slot(element_0p4v51713, item.icon(), 1);
|
|
336
|
+
return root_0p4v51712;
|
|
313
337
|
})());
|
|
314
|
-
template_u1.slot(element_0p4v517z, item.label, 1);
|
|
315
338
|
template_u1.slot(element_0p4v51710, item.label, 1);
|
|
316
|
-
template_u1.
|
|
317
|
-
|
|
339
|
+
template_u1.slot(element_0p4v51711, item.label, 1);
|
|
340
|
+
template_u1.delegate(element_0p4v517y, 'click', pop);
|
|
341
|
+
return root_0p4v517w;
|
|
318
342
|
})());
|
|
319
|
-
template_u1.slot(
|
|
343
|
+
template_u1.slot(element_0p4v517v, node.children.map(entry));
|
|
344
|
+
template_u1.slot(element_0p4v517t, highlighted && highlight({ ...(highlighted === true ? {} : highlighted), target: '.tooltip-menu-entry' }), 2);
|
|
320
345
|
template_u1.setList(element_0p4v517t, 'class', node === root && expansion && `tooltip-content tooltip-menu-panel--expand tooltip-content--${expansion === true ? 'se' : expansion}`);
|
|
321
346
|
template_u1.setProperties(element_0p4v517t, node === root && attributes[MENU_PANEL]);
|
|
322
347
|
template_u1.setList(element_0p4v517t, 'class', [
|
|
@@ -325,7 +350,7 @@ function createMenu(context = false) {
|
|
|
325
350
|
() => node.state.settled && 'tooltip-menu-panel--settled'
|
|
326
351
|
]);
|
|
327
352
|
template_u1.setProperty(element_0p4v517t, 'inert', () => node === root ? !state.active : !node.state.open);
|
|
328
|
-
template_u1.setList(element_0p4v517t, 'style', node === root && [attributes[MENU_PANEL]?.style, () => placement.style].flat());
|
|
353
|
+
template_u1.setList(element_0p4v517t, 'style', node === root && [attributes[MENU_PANEL]?.style, () => `${placement.style} --shift-x: ${placement.shift}px;`].flat());
|
|
329
354
|
template_u1.delegate(element_0p4v517t, 'click', (event) => {
|
|
330
355
|
if (event.target === node.panel && node !== stack[stack.length - 1]) {
|
|
331
356
|
popTo(node);
|
|
@@ -366,8 +391,10 @@ function createMenu(context = false) {
|
|
|
366
391
|
if (!root.panel.contains(focused)) {
|
|
367
392
|
trigger = focused instanceof HTMLElement && focused !== document.body ? focused : host;
|
|
368
393
|
}
|
|
394
|
+
raise();
|
|
369
395
|
reset();
|
|
370
|
-
|
|
396
|
+
placement.shift = 0;
|
|
397
|
+
flush();
|
|
371
398
|
let bounds = host.getBoundingClientRect(), scale = bounds.width / host.offsetWidth || 1, width = root.panel.offsetWidth * scale, height = root.panel.offsetHeight * scale, view = viewport();
|
|
372
399
|
x = flip(x, width, view.width, VIEWPORT_MARGIN);
|
|
373
400
|
y = flip(y, height, view.height, VIEWPORT_MARGIN);
|
|
@@ -392,6 +419,12 @@ function createMenu(context = false) {
|
|
|
392
419
|
pop();
|
|
393
420
|
}
|
|
394
421
|
}
|
|
422
|
+
function raise() {
|
|
423
|
+
hiding++;
|
|
424
|
+
if (layer && !layer.matches(':popover-open')) {
|
|
425
|
+
layer.showPopover();
|
|
426
|
+
}
|
|
427
|
+
}
|
|
395
428
|
function reset() {
|
|
396
429
|
while (stack.length > 1) {
|
|
397
430
|
let node = stack.pop();
|
|
@@ -413,28 +446,33 @@ function createMenu(context = false) {
|
|
|
413
446
|
if (!element) {
|
|
414
447
|
return;
|
|
415
448
|
}
|
|
416
|
-
|
|
449
|
+
flush();
|
|
450
|
+
let current = placement.shift, rect = element.getBoundingClientRect(), left = rect.left - current, right = rect.right - current, width = viewport().width, x = 0;
|
|
417
451
|
if (right > width - VIEWPORT_MARGIN) {
|
|
418
452
|
x = width - VIEWPORT_MARGIN - right;
|
|
419
453
|
}
|
|
420
454
|
if (left + x < VIEWPORT_MARGIN) {
|
|
421
455
|
x = VIEWPORT_MARGIN - left;
|
|
422
456
|
}
|
|
423
|
-
|
|
457
|
+
placement.shift = x;
|
|
424
458
|
}
|
|
425
459
|
return (() => {
|
|
426
|
-
let
|
|
427
|
-
|
|
428
|
-
let
|
|
429
|
-
template_u1.slot(
|
|
430
|
-
template_u1.onconnect(
|
|
431
|
-
|
|
460
|
+
let root_0p4v51714 = template_0p4v51715(), element_0p4v51716 = root_0p4v51714.firstChild, element_0p4v51717 = element_0p4v51716.firstChild, element_0p4v51718 = element_0p4v51716.firstElementChild;
|
|
461
|
+
element_0p4v51717.parentNode.insertBefore(context ? (() => {
|
|
462
|
+
let root_0p4v51719 = template_0p4v5171a(), element_0p4v5171b = root_0p4v51719.firstChild;
|
|
463
|
+
template_u1.slot(element_0p4v5171b, content, 1);
|
|
464
|
+
template_u1.onconnect(element_0p4v5171b, (element) => {
|
|
465
|
+
host = element.parentElement ?? undefined;
|
|
466
|
+
host?.style.setProperty('anchor-name', name);
|
|
467
|
+
trigger = host;
|
|
468
|
+
});
|
|
469
|
+
return root_0p4v51719;
|
|
432
470
|
})() : (() => {
|
|
433
|
-
let
|
|
434
|
-
template_u1.slot(
|
|
435
|
-
template_u1.setProperties(
|
|
436
|
-
template_u1.setProperty(
|
|
437
|
-
template_u1.delegate(
|
|
471
|
+
let root_0p4v5171c = template_0p4v5171d(), element_0p4v5171e = root_0p4v5171c.firstChild;
|
|
472
|
+
template_u1.slot(element_0p4v5171e, content, 1);
|
|
473
|
+
template_u1.setProperties(element_0p4v5171e, attributes[MENU_TRIGGER]);
|
|
474
|
+
template_u1.setProperty(element_0p4v5171e, 'aria-expanded', () => String(state.active));
|
|
475
|
+
template_u1.delegate(element_0p4v5171e, 'click', () => {
|
|
438
476
|
if (state.active || pending) {
|
|
439
477
|
close(false);
|
|
440
478
|
}
|
|
@@ -442,22 +480,27 @@ function createMenu(context = false) {
|
|
|
442
480
|
open();
|
|
443
481
|
}
|
|
444
482
|
});
|
|
445
|
-
template_u1.onconnect(
|
|
483
|
+
template_u1.onconnect(element_0p4v5171e, (element) => {
|
|
446
484
|
trigger = element;
|
|
447
485
|
host = element.parentElement ?? undefined;
|
|
486
|
+
host?.style.setProperty('anchor-name', name);
|
|
448
487
|
});
|
|
449
|
-
return
|
|
450
|
-
})(),
|
|
451
|
-
template_u1.slot(
|
|
452
|
-
template_u1.setList(
|
|
453
|
-
template_u1.
|
|
454
|
-
|
|
455
|
-
|
|
488
|
+
return root_0p4v5171c;
|
|
489
|
+
})(), element_0p4v51717);
|
|
490
|
+
template_u1.slot(element_0p4v51718, panel(root), 1);
|
|
491
|
+
template_u1.setList(element_0p4v51718, 'style', template_u1.interpolate(["position-anchor: ", (name)]));
|
|
492
|
+
template_u1.onconnect(element_0p4v51718, (element) => {
|
|
493
|
+
layer = element;
|
|
494
|
+
});
|
|
495
|
+
template_u1.setList(element_0p4v51716, 'class', context && 'tooltip--context');
|
|
496
|
+
template_u1.setList(element_0p4v51716, 'class', !animate && 'tooltip--instant');
|
|
497
|
+
template_u1.setProperties(element_0p4v51716, attributes);
|
|
498
|
+
template_u1.setProperties(element_0p4v51716, {
|
|
456
499
|
...overlay.popup({
|
|
457
500
|
canDismiss: () => !!pending,
|
|
458
501
|
ondismiss: (reason) => close(reason === 'escape'),
|
|
459
502
|
state,
|
|
460
|
-
target: (root) => root.querySelector(':scope > .tooltip-menu-panel') ?? undefined
|
|
503
|
+
target: (root) => root.querySelector(':scope > .tooltip-menu-layer > .tooltip-menu-panel') ?? undefined
|
|
461
504
|
}),
|
|
462
505
|
oncontextmenu: context ? contextmenu : undefined,
|
|
463
506
|
onfocusout: (event) => {
|
|
@@ -531,7 +574,7 @@ function createMenu(context = false) {
|
|
|
531
574
|
e.preventDefault();
|
|
532
575
|
}
|
|
533
576
|
});
|
|
534
|
-
return
|
|
577
|
+
return root_0p4v51714;
|
|
535
578
|
})();
|
|
536
579
|
}, { item: MENU_ITEM, panel: MENU_PANEL, trigger: MENU_TRIGGER });
|
|
537
580
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.tooltip-menu-panel:after{position:absolute;inset:0}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{position:absolute;inset:0}.tooltip-menu-panel:after{border-radius:inherit;pointer-events:none}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{border-radius:inherit;pointer-events:none}.tooltip-menu-label,.tooltip-menu-title{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.tooltip--menu{display:inline-block}.tooltip--menu.tooltip--instant>.tooltip-menu-panel--expand,.tooltip--menu.tooltip--instant>.tooltip-menu-panel--expand.--active{--expand-content-delay:0s;--expand-content-duration:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-fade-duration:0s;--expand-stagger:0s}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand{--background-default:var(--surface-background-default);--border-radius:inherit;--box-shadow-default:var(--surface-shadow-default);--expand-bleed:24px;--expand-close-fade-delay:calc(var(--expand-duration) / 2);--expand-content-delay:60ms;--expand-content-duration:var(--duration-fast);--expand-content-timing-function:var(--easing-spring);--expand-duration:var(--duration-moderate-exit);--expand-fade-delay:var(--expand-close-fade-delay);--expand-fade-duration:var(--duration-fast-exit);--expand-offset:var(--size-100);--expand-shift:0;--expand-stagger:20ms;--expand-timing-function:var(--easing-spring);--offset:0px;--scale:1;--spacer:-100%;--width:inherit;box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));transform:translateX(var(--shift-x,0px));transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) linear var(--expand-fade-delay);background:0 0;overflow:visible}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{--expand-duration:var(--duration-moderate);--expand-fade-delay:0s;--expand-fade-duration:var(--duration-fast);clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)))}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active:before{border-radius:var(--border-radius);inset:0}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>:not(.highlight){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;opacity:1}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>:not(.highlight)>*{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}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand:before{background:var(--background);border-radius:var(--morph-radius);box-shadow:var(--box-shadow);content:"";inset:var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);transition:border-radius var(--expand-duration) var(--expand-timing-function), inset var(--expand-duration) var(--expand-timing-function);z-index:-1;position:absolute}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:not(.highlight){animation:tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);opacity:0}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:first-child{--index:0}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(2){--index:1}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(3){--index:2}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(4){--index:3}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(5){--index:4}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(6){--index:5}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(7){--index:6}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(8){--index:7}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(9){--index:8}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(10){--index:9}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(11){--index:10}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(12){--index:11}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--e,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--en,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--es,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--nw,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--sw{--expand-shift:calc(var(--expand-offset) * -1) 0}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--n{--expand-shift:0 var(--expand-offset)}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--s{--expand-shift:0 calc(var(--expand-offset) * -1)}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--ne,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--se,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--w,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--wn,.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--ws{--expand-shift:var(--expand-offset) 0}@media (prefers-reduced-motion:reduce){.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-offset:0px;--expand-stagger:0s}.tooltip--menu>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{--expand-duration:0s}}.tooltip--menu>.tooltip-menu-panel:not(.tooltip-menu-panel--expand){opacity:0;left:0;top:calc(100% + var(--offset));transition:opacity var(--close-duration) var(--open-timing-function), visibility 0s linear var(--close-duration);translate:var(--shift-x,0px) 0;visibility:hidden;z-index:9}.tooltip--menu>.tooltip-menu-panel:not(.tooltip-menu-panel--expand).--active{opacity:1;transition:opacity var(--close-duration) var(--open-timing-function);visibility:visible}.tooltip-menu-chevron{height:6px;margin-inline:calc(var(--size-100) / 4);opacity:.6;transition:rotate var(--open-duration) var(--open-timing-function);border:1.5px solid;border-width:0 1.5px 1.5px 0;flex-shrink:0;width:6px;rotate:-45deg}.tooltip-menu-chevron--down{rotate:45deg}.tooltip-menu-entry{position:relative}.tooltip-menu-entry>.tooltip-menu-panel{clip-path:inset(var(--padding) var(--padding) calc(100% - var(--padding) - var(--item-height)) var(--padding) round var(--item-border-radius));inset-inline:calc(var(--padding) * -1);pointer-events:none;top:calc(var(--padding) * -1);transition:clip-path var(--close-duration) var(--open-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:2;width:auto}.tooltip-menu-entry>.tooltip-menu-panel.--active{clip-path:inset(-48px round calc(var(--border-radius) + 48px));pointer-events:auto;transition:clip-path var(--open-duration) var(--open-timing-function);visibility:visible}.tooltip-menu-entry>.tooltip-menu-panel.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip-menu-entry--open{z-index:2}.tooltip-menu-header{cursor:pointer}.tooltip-menu-header,.tooltip-menu-item{border-radius:var(--item-border-radius);align-items:center;gap:var(--gap);min-height:var(--item-height);padding-inline:var(--item-padding);display:flex}.tooltip-menu-hint{color:var(--color-hint);font-size:var(--font-size-300)}.tooltip-menu-icon{flex-shrink:0;display:inline-flex}.tooltip-menu-item{appearance:none;background:var(--background);color:inherit;cursor:pointer;font:inherit;text-align:start;transition:background var(--duration-fast) var(--easing-spring);border:0;outline:none;width:100%;text-decoration:none}.tooltip-menu-item.tooltip-menu-item--danger{color:var(--color-danger)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{--background-hover:var(--background-default);--background-pressed:var(--background-default);color:var(--color-disabled);cursor:not-allowed}.tooltip-menu-item:focus{--background:var(--background-hover)}.tooltip-menu-label,.tooltip-menu-title{flex:1;min-width:0}.tooltip-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);font-size:var(--font-size);isolation:isolate;padding:var(--padding);width:var(--width);position:absolute}.tooltip-menu-panel--covered:after{cursor:pointer;opacity:1;pointer-events:auto}.tooltip-menu-panel:after{background:var(--scrim);content:"";opacity:0;transition:opacity var(--open-duration) var(--open-timing-function);z-index:1}.tooltip-menu-title{display:grid}.tooltip-menu-title-bold{font-weight:var(--font-weight-600);opacity:var(--title-bold-opacity)}.tooltip-menu-title-bold,.tooltip-menu-title-regular{text-overflow:ellipsis;transition:opacity var(--open-duration) var(--open-timing-function);grid-area:1/1;overflow:hidden}.tooltip-menu-title-regular{opacity:var(--title-regular-opacity)}.tooltip-menu-trigger{cursor:pointer}@media (prefers-reduced-motion:reduce){.tooltip-menu-chevron,.tooltip-menu-entry>.tooltip-menu-panel,.tooltip-menu-entry>.tooltip-menu-panel.--active{transition-duration:0s}}@keyframes tooltip-menu-expand-in{0%{opacity:0}}@keyframes tooltip-menu-expand-out{0%{opacity:1}to{opacity:0}}@keyframes tooltip-menu-expand-slide{0%{translate:var(--expand-shift)}}.tooltip-shared{color:var(--color);pointer-events:none;box-sizing:content-box;font-size:var(--font-size);font-weight:var(--font-weight);height:var(--shared-height);translate:var(--shared-x) var(--shared-y);width:var(--shared-width);background:0 0;border:0;margin:0;padding:0;position:fixed;inset:0 auto auto 0;overflow:visible}.tooltip-shared:not(.tooltip-shared--gliding) .tooltip-shared-layer{transition:none}.tooltip-shared.--active>.tooltip-shared-box{filter:none;opacity:1;transition:filter var(--open-duration) var(--timing-function), opacity var(--open-duration) var(--timing-function), scale var(--open-duration) var(--timing-function), translate var(--open-duration) var(--timing-function);translate:0;scale:1}.tooltip-shared--e{padding-left:var(--spacer)}.tooltip-shared--gliding{transition:height var(--glide-duration) var(--glide-timing-function), translate var(--glide-duration) var(--glide-timing-function), width var(--glide-duration) var(--glide-timing-function)}.tooltip-shared--interactive.--active{pointer-events:auto}.tooltip-shared--n{padding-bottom:var(--spacer)}.tooltip-shared--s{padding-top:var(--spacer)}.tooltip-shared--w{padding-right:var(--spacer)}.tooltip-shared-box{background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);filter:blur(var(--blur));opacity:0;height:100%;scale:var(--scale);transition:filter var(--close-duration) var(--timing-function), opacity var(--close-duration) var(--timing-function), scale var(--close-duration) var(--timing-function), translate var(--close-duration) var(--timing-function);translate:var(--box-translate);display:block;position:relative;overflow:hidden}.tooltip-shared-layer{max-width:var(--max-width);padding:var(--padding);white-space:var(--white-space);width:max-content;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tooltip-shared-layer strong{--color:inherit}.tooltip-shared.tooltip-shared--instant>.tooltip-shared-box{transition:none}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-shadow-weight:6;--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) calc(c * clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .005) c h),oklch(from var(--surface-background-default) calc(l + .01) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .04) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .04) c h),oklch(from var(--surface-background-active) min(1, l + .06) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .04) c h),oklch(from var(--surface-background-default) min(1, l + .06) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .04) c h),oklch(from var(--surface-background-hover) min(1, l + .06) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .04) c h),oklch(from var(--surface-background-pressed) min(1, l + .06) c h));--surface-shadow-active:var(--surface-shadow-hover);--surface-shadow-color:light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-cast:light-dark(oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .08),oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-default:0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 0, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 5 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 1, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 9 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 25 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -7 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, var(--surface-shadow-weight) - 0, 1) + .05 * clamp(0, var(--surface-shadow-weight) - 2, 1) + .15 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -8 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -10 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -.1 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10));--surface-shadow-hover:0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 5 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 1, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 9 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 25 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -7 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + .15 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -8 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -.1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10));--surface-shadow-pressed:0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 5 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 1, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 9 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 25 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -7 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + .15 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -8 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -.1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10))}@container style(--surface-level:-3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-2;--surface-shadow-weight:0}}@container style(--surface-level:-2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-1;--surface-shadow-weight:0}}@container style(--surface-level:-1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:0;--surface-shadow-weight:0}}@container style(--surface-level:0){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:1;--surface-shadow-weight:1}}@container style(--surface-level:1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:2;--surface-shadow-weight:2}}@container style(--surface-level:2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:3;--surface-shadow-weight:3}}@container style(--surface-level:3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:4;--surface-shadow-weight:4}}@container style(--surface-level:4){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:5;--surface-shadow-weight:5}}@container style(--surface-level:5){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:6;--surface-shadow-weight:6}}.tooltip-content,.tooltip-message,.tooltip-menu-item,.tooltip-menu-panel,.tooltip-shared{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-item,.--active.tooltip-menu-panel,.--active.tooltip-shared{--background:var(--background-active)}.tooltip-content:not(.--active):hover,.tooltip-message:not(.--active):hover,.tooltip-menu-item:not(.--active):hover,.tooltip-menu-panel:not(.--active):hover,.tooltip-shared:not(.--active):hover{--background:var(--background-hover)}.tooltip-content:not(.--active):active,.tooltip-message:not(.--active):active,.tooltip-menu-item:not(.--active):active,.tooltip-menu-panel:not(.--active):active,.tooltip-shared:not(.--active):active{--background:var(--background-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--box-shadow:var(--box-shadow-default);--box-shadow-active:var(--box-shadow-default);--box-shadow-default:none;--box-shadow-hover:var(--box-shadow-default);--box-shadow-pressed:var(--box-shadow-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-panel,.--active.tooltip-shared{--box-shadow:var(--box-shadow-active)}.tooltip-content:not(.--active):hover,.tooltip-message:not(.--active):hover,.tooltip-menu-panel:not(.--active):hover,.tooltip-shared:not(.--active):hover{--box-shadow:var(--box-shadow-hover)}.tooltip-content:not(.--active):active,.tooltip-message:not(.--active):active,.tooltip-menu-panel:not(.--active):active,.tooltip-shared:not(.--active):active{--box-shadow:var(--box-shadow-pressed)}.tooltip{--safe-color:transparent}.tooltip-arrow{--rotate:0deg}.tooltip-content,.tooltip-message{--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--max-width:calc(90vw - (var(--size-700) * 2));--min-width:auto;--offset:calc(var(--spacer) * 2);--scale:1;--spacer:var(--size-300);--transition-duration:var(--duration-moderate-exit);--transition-timing-function:var(--easing-spring);--width:auto}.tooltip-content--morph,.tooltip-message--morph{--morph-blur:var(--blur-400);--morph-close-duration:var(--duration-moderate-exit);--morph-focus-timing-function:cubic-bezier(.25, .1, .25, 1);--morph-land:2px;--morph-open-duration:var(--duration-moderate);--morph-timing-function:var(--easing-spring);--offset:0px;--scale:1}.tooltip-content--scale,.tooltip-message--scale,.tooltip-content--scale-spring,.tooltip-message--scale-spring{--offset:var(--spacer);--scale:.88}.tooltip-content--spring,.tooltip-message--spring{--offset:calc(var(--spacer) * 3);--scale:.96}.tooltip-content[role=menu]{--option-focus-background:color-mix(in srgb, currentColor 12%, transparent)}.tooltip-message{--background-default:var(--color-primary-400);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip--menu{--border-radius:var(--border-radius-600);--close-duration:var(--duration-moderate-exit);--color:var(--color-text-500);--color-danger:var(--color-red-400);--color-disabled:var(--color-text-300);--color-hint:var(--color-text-300);--font-size:var(--font-size-300);--gap:var(--size-200);--item-border-radius:var(--border-radius-400);--item-height:36px;--item-padding:var(--size-200);--offset:var(--size-200);--open-duration:var(--duration-moderate);--open-timing-function:var(--easing-spring);--padding:calc(var(--size-100) / 2);--scrim:oklch(from var(--surface-shadow-color) 0 0 0 / calc(alpha * .9));--width:17rem}.tooltip--menu.tooltip--instant{--close-duration:0s;--open-duration:0s}@media (pointer:coarse){.tooltip--menu{--item-height:44px}}.tooltip-menu-item{--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed)}.tooltip-menu-panel{--background-default:var(--surface-background-default);--box-shadow-default:var(--surface-shadow-default);--title-bold-opacity:0;--title-regular-opacity:1}.tooltip-menu-panel.--active{--title-bold-opacity:1;--title-regular-opacity:0}.tooltip-shared{--background-default:var(--color-primary-400);--blur:var(--blur-500);--box-shadow-default:var(--surface-shadow-default);--close-duration:var(--duration-moderate-exit);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--glide-duration:var(--duration-moderate);--glide-timing-function:var(--easing-spring);--max-width:calc(90vw - (var(--size-700) * 2));--open-duration:var(--duration-moderate);--padding:var(--size-300);--radius:var(--border-radius-400);--rise:4px;--scale:.94;--spacer:var(--size-300);--timing-function:var(--easing-spring);--white-space:nowrap}.tooltip-shared--e{--box-translate:calc(var(--rise) * -1) 0}.tooltip-shared--interactive{--white-space:normal}.tooltip-shared--n{--box-translate:0 var(--rise)}.tooltip-shared--s{--box-translate:0 calc(var(--rise) * -1)}.tooltip-shared--w{--box-translate:var(--rise) 0}@media (prefers-reduced-motion:reduce){.tooltip-shared{--blur:0px;--glide-duration:0s;--rise:0px;--scale:1}}.tooltip{cursor:pointer;z-index:0;position:relative}.tooltip.--active:before{background:var(--safe-color);clip-path:var(--safe-area);content:"";height:var(--safe-height);left:var(--safe-left);top:var(--safe-top);width:var(--safe-width);z-index:-3;position:absolute}.tooltip.--active :not(.tooltip) .tooltip-arrow,.tooltip.--active>.tooltip-arrow{scale:-1 1}.tooltip.--active,.tooltip:not(.--active):hover{z-index:9}.tooltip--context,.tooltip--menu{cursor:inherit}.tooltip--morphing{filter:url(#tooltip-morph-goo)}.tooltip-arrow{rotate:var(--rotate);margin-inline:-1px}.tooltip-content,.tooltip-message{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);max-width:var(--max-width);min-width:var(--min-width);opacity:0;scale:var(--scale);transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function);width:var(--width);z-index:9;overflow:hidden}.tooltip.--active>.tooltip-content,.tooltip.--active :not(.tooltip)>.tooltip-content,.tooltip.--active>.tooltip-message,.tooltip.--active :not(.tooltip)>.tooltip-message{--transition-duration:var(--duration-moderate);opacity:1;scale:1}.tooltip:not(.--active)>.tooltip-content,.tooltip:not(.--active)>.tooltip-content *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content *,.tooltip:not(.--active)>.tooltip-message,.tooltip:not(.--active)>.tooltip-message *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message *{pointer-events:none}.tooltip-content--context,.tooltip-message--context{position:absolute}.tooltip-content:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*),.tooltip-message:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*){transition:none}.tooltip-content--c,.tooltip-message--c{transform-origin:50%;position:absolute;bottom:50%;right:50%;translate:50% 50%}.tooltip-content--e,.tooltip-message--e{bottom:50%;left:calc(100% + var(--spacer) - var(--offset));transform-origin:0;position:absolute;translate:0 50%}.tooltip.--active>.tooltip-content--e,.tooltip.--active :not(.tooltip)>.tooltip-content--e,.tooltip.--active>.tooltip-message--e,.tooltip.--active :not(.tooltip)>.tooltip-message--e{translate:var(--offset) 50%}.tooltip-content--en,.tooltip-message--en{transform-origin:0 0;top:0}.tooltip-content--en,.tooltip-content--es,.tooltip-message--en,.tooltip-message--es{left:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--en,.tooltip.--active :not(.tooltip)>.tooltip-content--en,.tooltip.--active>.tooltip-content--es,.tooltip.--active :not(.tooltip)>.tooltip-content--es,.tooltip.--active>.tooltip-message--en,.tooltip.--active :not(.tooltip)>.tooltip-message--en,.tooltip.--active>.tooltip-message--es,.tooltip.--active :not(.tooltip)>.tooltip-message--es{translate:var(--offset)}.tooltip-content--es,.tooltip-message--es{transform-origin:0 100%;bottom:0}.tooltip-content--n,.tooltip-message--n{bottom:calc(100% + var(--spacer) - var(--offset));transform-origin:bottom;position:absolute;right:50%;translate:50%}.tooltip.--active>.tooltip-content--n,.tooltip.--active :not(.tooltip)>.tooltip-content--n,.tooltip.--active>.tooltip-message--n,.tooltip.--active :not(.tooltip)>.tooltip-message--n{translate:50% calc(var(--offset) * -1)}.tooltip-content--ne,.tooltip-message--ne{transform-origin:100% 100%;right:0}.tooltip-content--ne,.tooltip-content--nw,.tooltip-message--ne,.tooltip-message--nw{bottom:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--ne,.tooltip.--active :not(.tooltip)>.tooltip-content--ne,.tooltip.--active>.tooltip-content--nw,.tooltip.--active :not(.tooltip)>.tooltip-content--nw,.tooltip.--active>.tooltip-message--ne,.tooltip.--active :not(.tooltip)>.tooltip-message--ne,.tooltip.--active>.tooltip-message--nw,.tooltip.--active :not(.tooltip)>.tooltip-message--nw{translate:0 calc(var(--offset) * -1)}.tooltip-content--nw,.tooltip-message--nw{transform-origin:0 100%;left:0}.tooltip-content--s,.tooltip-message--s{right:50%;top:calc(100% + var(--spacer) - var(--offset));transform-origin:top;position:absolute;translate:50%}.tooltip.--active>.tooltip-content--s,.tooltip.--active :not(.tooltip)>.tooltip-content--s,.tooltip.--active>.tooltip-message--s,.tooltip.--active :not(.tooltip)>.tooltip-message--s{translate:50% var(--offset)}.tooltip-content--se,.tooltip-message--se{transform-origin:100% 0;right:0}.tooltip-content--se,.tooltip-content--sw,.tooltip-message--se,.tooltip-message--sw{top:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--se,.tooltip.--active :not(.tooltip)>.tooltip-content--se,.tooltip.--active>.tooltip-content--sw,.tooltip.--active :not(.tooltip)>.tooltip-content--sw,.tooltip.--active>.tooltip-message--se,.tooltip.--active :not(.tooltip)>.tooltip-message--se,.tooltip.--active>.tooltip-message--sw,.tooltip.--active :not(.tooltip)>.tooltip-message--sw{translate:0 var(--offset)}.tooltip-content--sw,.tooltip-message--sw{transform-origin:0 0;left:0}.tooltip-content--w,.tooltip-message--w{bottom:50%;right:calc(100% + var(--spacer) - var(--offset));transform-origin:100%;position:absolute;translate:0 50%}.tooltip.--active>.tooltip-content--w,.tooltip.--active :not(.tooltip)>.tooltip-content--w,.tooltip.--active>.tooltip-message--w,.tooltip.--active :not(.tooltip)>.tooltip-message--w{translate:calc(var(--offset) * -1) 50%}.tooltip-content--wn,.tooltip-message--wn{transform-origin:100% 0;top:0}.tooltip-content--wn,.tooltip-content--ws,.tooltip-message--wn,.tooltip-message--ws{right:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--wn,.tooltip.--active :not(.tooltip)>.tooltip-content--wn,.tooltip.--active>.tooltip-content--ws,.tooltip.--active :not(.tooltip)>.tooltip-content--ws,.tooltip.--active>.tooltip-message--wn,.tooltip.--active :not(.tooltip)>.tooltip-message--wn,.tooltip.--active>.tooltip-message--ws,.tooltip.--active :not(.tooltip)>.tooltip-message--ws{translate:calc(var(--offset) * -1)}.tooltip-content--ws,.tooltip-message--ws{transform-origin:100% 100%;bottom:0}.tooltip-content--morph,.tooltip-message--morph{animation:tooltip-morph-close var(--morph-close-duration) linear;box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));filter:blur(var(--morph-blur));opacity:1;transition:filter var(--morph-close-duration) cubic-bezier(.16, 1, .3, 1), visibility 0s linear var(--morph-close-duration);visibility:hidden;z-index:-2;background:0 0;overflow:visible}.tooltip-content--morph:before,.tooltip-message--morph:before{background:var(--background);content:"";inset:min(var(--morph-blur) * -3, var(--morph-top) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-right) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-bottom) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-left) - var(--morph-land));z-index:-1;position:absolute}.tooltip.--active>.tooltip-content--morph,.tooltip.--active :not(.tooltip)>.tooltip-content--morph,.tooltip.--active>.tooltip-message--morph,.tooltip.--active :not(.tooltip)>.tooltip-message--morph{clip-path:inset(0 round var(--border-radius));filter:none;transition:clip-path var(--morph-open-duration) var(--morph-timing-function), filter var(--morph-open-duration) var(--morph-focus-timing-function);visibility:visible;animation:none}.tooltip-message{color:var(--color);cursor:auto;font-size:var(--font-size);font-weight:var(--font-weight);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);pointer-events:none;white-space:nowrap}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{background:inherit;content:"";z-index:-1;display:block}@keyframes tooltip-morph-close{0%{clip-path:inset(0 round var(--border-radius));animation-timing-function:cubic-bezier(.3,0,.2,1)}55%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}80%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)));animation-timing-function:cubic-bezier(.4,0,.2,1)}to{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius))}}}
|
|
1
|
+
@layer components{.tooltip-menu-panel:after{position:absolute;inset:0}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{position:absolute;inset:0}.tooltip-menu-panel:after{border-radius:inherit;pointer-events:none}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{border-radius:inherit;pointer-events:none}.tooltip-shared,.tooltip-menu-layer{color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.tooltip-menu-label,.tooltip-menu-title{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.tooltip--menu{display:inline-block}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));transform:translateX(var(--shift-x,0px));transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay);background:0 0;overflow:visible}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand:before{background:var(--background);border-radius:var(--morph-radius);box-shadow:var(--box-shadow);content:"";inset:var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);transition:border-radius var(--expand-duration) var(--expand-timing-function), inset var(--expand-duration) var(--expand-timing-function);z-index:-1;position:absolute}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:not(.highlight){animation:tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);opacity:0}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)))}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active:before{border-radius:var(--border-radius);inset:0}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>:not(.highlight){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;opacity:1}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>:not(.highlight)>*{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}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand){opacity:0;left:0;top:calc(100% + var(--offset));transition:opacity var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);translate:var(--shift-x,0px) 0;visibility:hidden;z-index:9}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand).--active{opacity:1;transition:opacity var(--close-duration) var(--close-timing-function);visibility:visible}.tooltip-menu-chevron{border-style:solid;border-color:currentColor;border-width:0 var(--border-width) var(--border-width) 0;height:var(--size);margin-inline:calc(var(--size-100) / 4);opacity:var(--opacity);transition:rotate var(--open-duration) var(--open-timing-function);width:var(--size);flex-shrink:0;rotate:-45deg}@media (prefers-reduced-motion:reduce){.tooltip-menu-chevron{transition-duration:0s}}.tooltip-menu-chevron--down{rotate:45deg}.tooltip-menu-entry{position:relative}.tooltip-menu-entry>.tooltip-menu-panel{clip-path:inset(var(--padding-vertical) var(--padding-horizontal) calc(100% - var(--padding-vertical) - var(--item-height)) var(--padding-horizontal) round var(--item-border-radius));inset-inline:calc(var(--padding-horizontal) * -1);pointer-events:none;top:calc(var(--padding-vertical) * -1);transition:clip-path var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:2;width:auto}@media (prefers-reduced-motion:reduce){.tooltip-menu-entry>.tooltip-menu-panel{transition-duration:0s}}.tooltip-menu-entry>.tooltip-menu-panel.--active{clip-path:inset(calc(var(--bleed) * -1) round calc(var(--border-radius) + var(--bleed)));pointer-events:auto;transition:clip-path var(--open-duration) var(--open-timing-function);visibility:visible}@media (prefers-reduced-motion:reduce){.tooltip-menu-entry>.tooltip-menu-panel.--active{transition-duration:0s}}.tooltip-menu-entry>.tooltip-menu-panel.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip-menu-entry--open{z-index:2}.tooltip-menu-entry:has(>[hidden]){display:none}.tooltip-menu-header{cursor:pointer}.tooltip-menu-header,.tooltip-menu-item{border-radius:var(--border-radius);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);min-height:var(--height);padding-inline:var(--padding-horizontal);display:flex}.tooltip-menu-hint{color:var(--color);font-size:var(--font-size)}.tooltip-menu-icon{flex-shrink:0;display:inline-flex}.tooltip-menu-item{appearance:none;background:var(--background);color:inherit;cursor:pointer;font:inherit;text-align:start;transition:background var(--transition-duration) var(--transition-timing-function);border:0;outline:none;width:100%;text-decoration:none}.tooltip-menu-item.tooltip-menu-item--danger{color:var(--color-danger)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{--background-hover:var(--background-default);--background-pressed:var(--background-default);color:var(--color-disabled);cursor:not-allowed}.tooltip-menu-item:focus{--background:var(--background-hover)}.tooltip-menu-label,.tooltip-menu-title{flex:1;min-width:0}.tooltip-menu-layer{height:anchor-size(height);left:anchor(left);top:anchor(top);width:anchor-size(width)}.tooltip-menu-layer>.tooltip-menu-panel{pointer-events:auto}.tooltip-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);font-size:var(--font-size);isolation:isolate;padding:var(--padding-vertical) var(--padding-horizontal);width:var(--width);position:absolute}.tooltip-menu-panel:after{background:var(--scrim);content:"";opacity:0;transition:opacity var(--open-duration) var(--open-timing-function);z-index:1}.tooltip-menu-panel--covered:after{cursor:pointer;opacity:1;pointer-events:auto}.tooltip-menu-panel>.highlight{border-radius:var(--item-border-radius)}.tooltip-menu-title{display:grid}.tooltip-menu-title-bold{font-weight:var(--font-weight-600);opacity:var(--title-bold-opacity)}.tooltip-menu-title-bold,.tooltip-menu-title-regular{text-overflow:ellipsis;transition:opacity var(--open-duration) var(--open-timing-function);grid-area:1/1;overflow:hidden}.tooltip-menu-title-regular{opacity:var(--title-regular-opacity)}.tooltip-menu-trigger{cursor:pointer}@keyframes tooltip-menu-expand-in{0%{opacity:0}}@keyframes tooltip-menu-expand-out{0%{opacity:1}to{opacity:0}}@keyframes tooltip-menu-expand-slide{0%{translate:var(--expand-shift)}}.tooltip-shared{box-sizing:content-box;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);height:var(--shared-height);translate:var(--shared-x) var(--shared-y);width:var(--shared-width);top:0;left:0}.tooltip-shared:not(.tooltip-shared--gliding) .tooltip-shared-layer{transition:none}.tooltip-shared--e{padding-left:var(--spacer)}.tooltip-shared--gliding{transition:height var(--glide-duration) var(--glide-timing-function), translate var(--glide-duration) var(--glide-timing-function), width var(--glide-duration) var(--glide-timing-function)}.tooltip-shared--interactive.--active{pointer-events:auto}.tooltip-shared--n{padding-bottom:var(--spacer)}.tooltip-shared--s{padding-top:var(--spacer)}.tooltip-shared--w{padding-right:var(--spacer)}.tooltip-shared-box{background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);filter:blur(var(--blur));opacity:0;height:100%;scale:var(--scale);transition:filter var(--close-duration) var(--close-timing-function), opacity var(--close-duration) var(--close-timing-function), scale var(--close-duration) var(--close-timing-function), translate var(--close-duration) var(--close-timing-function);translate:var(--box-translate);display:block;position:relative;overflow:hidden}.tooltip-shared.--active>.tooltip-shared-box{filter:none;opacity:1;transition:filter var(--open-duration) var(--open-timing-function), opacity var(--open-duration) var(--open-timing-function), scale var(--open-duration) var(--open-timing-function), translate var(--open-duration) var(--open-timing-function);translate:0;scale:1}.tooltip-shared.tooltip-shared--instant>.tooltip-shared-box{transition:none}.tooltip-shared-layer{max-width:var(--max-width);padding:var(--padding-vertical) var(--padding-horizontal);white-space:var(--white-space);width:max-content;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tooltip-shared-layer strong{--color:inherit}.tooltip-content,.tooltip-message,.tooltip-menu-item,.tooltip-menu-panel,.tooltip-shared{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-item,.--active.tooltip-menu-panel,.--active.tooltip-shared{--background:var(--background-active)}.tooltip-content:not(.--active):hover,.tooltip-message:not(.--active):hover,.tooltip-menu-item:not(.--active):hover,.tooltip-menu-panel:not(.--active):hover,.tooltip-shared:not(.--active):hover{--background:var(--background-hover)}.tooltip-content:not(.--active):active,.tooltip-message:not(.--active):active,.tooltip-menu-item:not(.--active):active,.tooltip-menu-panel:not(.--active):active,.tooltip-shared:not(.--active):active{--background:var(--background-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--box-shadow:var(--box-shadow-default);--box-shadow-active:var(--box-shadow-default);--box-shadow-default:none;--box-shadow-hover:var(--box-shadow-default);--box-shadow-pressed:var(--box-shadow-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-panel,.--active.tooltip-shared{--box-shadow:var(--box-shadow-active)}.tooltip-content:not(.--active):hover,.tooltip-message:not(.--active):hover,.tooltip-menu-panel:not(.--active):hover,.tooltip-shared:not(.--active):hover{--box-shadow:var(--box-shadow-hover)}.tooltip-content:not(.--active):active,.tooltip-message:not(.--active):active,.tooltip-menu-panel:not(.--active):active,.tooltip-shared:not(.--active):active{--box-shadow:var(--box-shadow-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-below:light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + calc(var(--surface-level) - 1) * .016, l + .096) calc(c * clamp(0, l + calc(var(--surface-level) - 1) * .016, l + .096) / max(l, .01)) h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .024) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .024) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .024) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .024) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) calc(c * clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h));--surface-shadow-active:var(--surface-shadow-hover);--surface-shadow-cast:light-dark(oklch(from var(--surface-background-below) calc(l * .2) calc(c * .2) h / .08),oklch(from var(--surface-background-below) calc(l * .2) calc(c * .2) h / .16));--surface-shadow-color:light-dark(oklch(from var(--surface-background-default) calc(l * .2) calc(c * .2) h / .08),oklch(from var(--surface-background-default) calc(l * .2) calc(c * .2) h / .16));--surface-shadow-default:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 25px 50px -12px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 2.5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}@container style(--surface-level:-3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-2;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:-2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-1;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:-1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:0;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:0){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:1;--surface-shadow-default:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:2;--surface-shadow-default:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:3;--surface-shadow-default:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:4;--surface-shadow-default:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}@container style(--surface-level:4){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:5;--surface-shadow-default:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}@container style(--surface-level:5){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:6;--surface-shadow-default:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 25px 50px -12px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 2.5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}.tooltip{--safe-color:transparent}.tooltip--menu{--border-radius:var(--border-radius-600);--close-duration:.128s;--close-timing-function:cubic-bezier(.2, 0, 0, 1);--color:var(--color-text-500);--font-size:var(--font-size-300);--offset:var(--size-200);--open-duration:.16s;--open-timing-function:cubic-bezier(.2, 0, 0, 1);--scrim:oklch(from var(--surface-shadow-color) 0 0 0 / calc(alpha * .9));--width:17rem}.tooltip--menu.tooltip--instant{--close-duration:0s;--open-duration:0s}.tooltip--menu.tooltip--instant>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-content-duration:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-fade-duration:0s;--expand-stagger:0s}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--background-default:var(--surface-background-default);--border-radius:inherit;--box-shadow-default:var(--surface-shadow-default);--expand-bleed:24px;--expand-content-delay:60ms;--expand-content-duration:.15s;--expand-content-timing-function:cubic-bezier(.23, 1, .32, 1);--expand-duration:.4s;--expand-fade-delay:calc(var(--expand-duration) / 2);--expand-fade-duration:.15s;--expand-fade-timing-function:linear;--expand-offset:var(--size-100);--expand-shift:0;--expand-stagger:20ms;--expand-timing-function:linear(0, .072, .22, .382, .529, .651, .747, .82, .874, .913, .94, .96, .973, .982, .988, .992, .995, .997, .998, .999, 1);--offset:0px;--scale:1;--spacer:-100%;--width:inherit}@media (prefers-reduced-motion:reduce){.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-offset:0px;--expand-stagger:0s}}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--e,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--en,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--es,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--nw,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--sw{--expand-shift:calc(var(--expand-offset) * -1) 0}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--n{--expand-shift:0 var(--expand-offset)}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--s{--expand-shift:0 calc(var(--expand-offset) * -1)}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--ne,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--se,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--w,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--wn,.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.tooltip-content--ws{--expand-shift:var(--expand-offset) 0}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:first-child{--index:0}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(2){--index:1}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(3){--index:2}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(4){--index:3}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(5){--index:4}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(6){--index:5}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(7){--index:6}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(8){--index:7}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(9){--index:8}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(10){--index:9}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(11){--index:10}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>:nth-child(12){--index:11}.tooltip--menu>.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{--expand-fade-delay:0s}.tooltip-arrow{--rotate:0deg}.tooltip-content,.tooltip-message{--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--max-width:calc(90vw - (var(--size-700) * 2));--min-width:auto;--offset:calc(var(--spacer) * 2);--scale:1;--spacer:var(--size-300);--transition-duration:.24s;--transition-timing-function:cubic-bezier(.34, 1.56, .64, 1);--width:auto}.tooltip-content--morph,.tooltip-message--morph{--morph-blur:var(--blur-400);--morph-close-duration:.16s;--morph-close-timing-function:cubic-bezier(.16, 1, .3, 1);--morph-focus-timing-function:cubic-bezier(.25, .1, .25, 1);--morph-land:2px;--morph-open-duration:.12s;--morph-open-timing-function:cubic-bezier(.2, 0, 0, 1);--offset:0px;--scale:1}.tooltip-content--scale,.tooltip-message--scale,.tooltip-content--scale-spring,.tooltip-message--scale-spring{--offset:var(--spacer);--scale:.88}.tooltip-content--spring,.tooltip-message--spring{--offset:calc(var(--spacer) * 3);--scale:.96}.tooltip-menu-chevron{--border-width:1.5px;--opacity:.6;--size:6px}.tooltip-menu-entry>.tooltip-menu-panel{--bleed:48px}.tooltip-menu-header,.tooltip-menu-item.tooltip-menu-item{--border-radius:var(--item-border-radius);--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200);--height:var(--item-height);--padding-horizontal:var(--size-200)}.tooltip-menu-hint{--color:var(--color-text-300);--font-size:var(--font-size-300)}.tooltip-menu-item{--background-hover:var(--item-background-hover);--background-pressed:var(--item-background-pressed);--color-danger:var(--color-red-400);--color-disabled:var(--color-text-300);--transition-duration:.13s;--transition-timing-function:linear(0, .0491, .1571, .2846, .4106, .5248, .6231, .7049, .7714, .8243, .866, .8984, .9234, .9425, .957, .9679, .9762, .9824, .987, .9904, .9929, .9948, .9962, .9972, 1)}.tooltip-menu-panel{--background-default:var(--surface-background-default);--box-shadow-default:var(--surface-shadow-default);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed);--item-border-radius:var(--border-radius-400);--item-height:36px;--padding-horizontal:calc(var(--size-100) / 2);--padding-vertical:calc(var(--size-100) / 2);--title-bold-opacity:0;--title-regular-opacity:1}@media (pointer:coarse){.tooltip-menu-panel{--item-height:44px}}.tooltip-menu-panel.--active{--title-bold-opacity:1;--title-regular-opacity:0}.tooltip-menu-panel>.highlight{--background-default:var(--item-background-hover);--background-pressed:var(--item-background-pressed)}.tooltip-menu-panel:has(>.highlight)>.tooltip-menu-entry>.tooltip-menu-item{--background-hover:var(--background-default);--background-pressed:var(--background-default)}.tooltip-message{--background-default:var(--color-primary-400);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-shared{--background-default:var(--color-primary-400);--blur:var(--blur-500);--box-shadow-default:var(--surface-shadow-default);--close-duration:.128s;--close-timing-function:cubic-bezier(.23, 1, .32, 1);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--glide-duration:.4s;--glide-timing-function:cubic-bezier(.22, 1.12, .36, 1);--max-width:calc(90vw - (var(--size-700) * 2));--open-duration:.16s;--open-timing-function:cubic-bezier(.23, 1, .32, 1);--radius:var(--border-radius-400);--rise:4px;--scale:.94;--spacer:var(--size-300);--white-space:nowrap}@media (prefers-reduced-motion:reduce){.tooltip-shared{--blur:0px;--glide-duration:0s;--rise:0px;--scale:1}}.tooltip-shared--e{--box-translate:calc(var(--rise) * -1) 0}.tooltip-shared--interactive{--white-space:normal}.tooltip-shared--n{--box-translate:0 var(--rise)}.tooltip-shared--s{--box-translate:0 calc(var(--rise) * -1)}.tooltip-shared--w{--box-translate:var(--rise) 0}.tooltip-shared-layer{--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-menu--surface :is(.tooltip-menu-panel,.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand){--background-default:var(--surface-background-default);--color:var(--color-text-500);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed)}.tooltip{cursor:pointer;z-index:0;position:relative}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{background:inherit;content:"";z-index:-1;display:block}.tooltip--context,.tooltip--menu{cursor:inherit}.tooltip--morphing{filter:url(#tooltip-morph-goo)}.tooltip-arrow{rotate:var(--rotate);margin-inline:-1px}.tooltip-content,.tooltip-message{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);max-width:var(--max-width);min-width:var(--min-width);opacity:0;scale:var(--scale);transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function);width:var(--width);z-index:9;overflow:hidden}.tooltip-content:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*),.tooltip-message:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*){transition:none}.tooltip-content--context,.tooltip-message--context{position:absolute}.tooltip-content--c,.tooltip-message--c{transform-origin:50%;position:absolute;bottom:50%;right:50%;translate:50% 50%}.tooltip-content--e,.tooltip-message--e{bottom:50%;left:calc(100% + var(--spacer) - var(--offset));transform-origin:0;position:absolute;translate:0 50%}.tooltip.--active>.tooltip-content--e,.tooltip.--active :not(.tooltip)>.tooltip-content--e,.tooltip.--active>.tooltip-message--e,.tooltip.--active :not(.tooltip)>.tooltip-message--e{translate:var(--offset) 50%}.tooltip-content--en,.tooltip-message--en{transform-origin:0 0;top:0}.tooltip-content--en,.tooltip-content--es,.tooltip-message--en,.tooltip-message--es{left:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--en,.tooltip.--active :not(.tooltip)>.tooltip-content--en,.tooltip.--active>.tooltip-content--es,.tooltip.--active :not(.tooltip)>.tooltip-content--es,.tooltip.--active>.tooltip-message--en,.tooltip.--active :not(.tooltip)>.tooltip-message--en,.tooltip.--active>.tooltip-message--es,.tooltip.--active :not(.tooltip)>.tooltip-message--es{translate:var(--offset)}.tooltip-content--es,.tooltip-message--es{transform-origin:0 100%;bottom:0}.tooltip-content--n,.tooltip-message--n{bottom:calc(100% + var(--spacer) - var(--offset));transform-origin:bottom;position:absolute;right:50%;translate:50%}.tooltip.--active>.tooltip-content--n,.tooltip.--active :not(.tooltip)>.tooltip-content--n,.tooltip.--active>.tooltip-message--n,.tooltip.--active :not(.tooltip)>.tooltip-message--n{translate:50% calc(var(--offset) * -1)}.tooltip-content--ne,.tooltip-message--ne{transform-origin:100% 100%;right:0}.tooltip-content--ne,.tooltip-content--nw,.tooltip-message--ne,.tooltip-message--nw{bottom:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--ne,.tooltip.--active :not(.tooltip)>.tooltip-content--ne,.tooltip.--active>.tooltip-content--nw,.tooltip.--active :not(.tooltip)>.tooltip-content--nw,.tooltip.--active>.tooltip-message--ne,.tooltip.--active :not(.tooltip)>.tooltip-message--ne,.tooltip.--active>.tooltip-message--nw,.tooltip.--active :not(.tooltip)>.tooltip-message--nw{translate:0 calc(var(--offset) * -1)}.tooltip-content--nw,.tooltip-message--nw{transform-origin:0 100%;left:0}.tooltip-content--s,.tooltip-message--s{right:50%;top:calc(100% + var(--spacer) - var(--offset));transform-origin:top;position:absolute;translate:50%}.tooltip.--active>.tooltip-content--s,.tooltip.--active :not(.tooltip)>.tooltip-content--s,.tooltip.--active>.tooltip-message--s,.tooltip.--active :not(.tooltip)>.tooltip-message--s{translate:50% var(--offset)}.tooltip-content--se,.tooltip-message--se{transform-origin:100% 0;right:0}.tooltip-content--se,.tooltip-content--sw,.tooltip-message--se,.tooltip-message--sw{top:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--se,.tooltip.--active :not(.tooltip)>.tooltip-content--se,.tooltip.--active>.tooltip-content--sw,.tooltip.--active :not(.tooltip)>.tooltip-content--sw,.tooltip.--active>.tooltip-message--se,.tooltip.--active :not(.tooltip)>.tooltip-message--se,.tooltip.--active>.tooltip-message--sw,.tooltip.--active :not(.tooltip)>.tooltip-message--sw{translate:0 var(--offset)}.tooltip-content--sw,.tooltip-message--sw{transform-origin:0 0;left:0}.tooltip-content--w,.tooltip-message--w{bottom:50%;right:calc(100% + var(--spacer) - var(--offset));transform-origin:100%;position:absolute;translate:0 50%}.tooltip.--active>.tooltip-content--w,.tooltip.--active :not(.tooltip)>.tooltip-content--w,.tooltip.--active>.tooltip-message--w,.tooltip.--active :not(.tooltip)>.tooltip-message--w{translate:calc(var(--offset) * -1) 50%}.tooltip-content--wn,.tooltip-message--wn{transform-origin:100% 0;top:0}.tooltip-content--wn,.tooltip-content--ws,.tooltip-message--wn,.tooltip-message--ws{right:calc(100% + var(--spacer) - var(--offset));position:absolute}.tooltip.--active>.tooltip-content--wn,.tooltip.--active :not(.tooltip)>.tooltip-content--wn,.tooltip.--active>.tooltip-content--ws,.tooltip.--active :not(.tooltip)>.tooltip-content--ws,.tooltip.--active>.tooltip-message--wn,.tooltip.--active :not(.tooltip)>.tooltip-message--wn,.tooltip.--active>.tooltip-message--ws,.tooltip.--active :not(.tooltip)>.tooltip-message--ws{translate:calc(var(--offset) * -1)}.tooltip-content--ws,.tooltip-message--ws{transform-origin:100% 100%;bottom:0}.tooltip-content--morph,.tooltip-message--morph{animation:tooltip-morph-close var(--morph-close-duration) linear;box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));filter:blur(var(--morph-blur));opacity:1;transition:filter var(--morph-close-duration) var(--morph-close-timing-function), visibility 0s linear var(--morph-close-duration);visibility:hidden;z-index:-2;background:0 0;overflow:visible}.tooltip-content--morph:before,.tooltip-message--morph:before{background:var(--background);content:"";inset:min(var(--morph-blur) * -3, var(--morph-top) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-right) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-bottom) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-left) - var(--morph-land));z-index:-1;position:absolute}.tooltip.--active>.tooltip-content--morph,.tooltip.--active :not(.tooltip)>.tooltip-content--morph,.tooltip.--active>.tooltip-message--morph,.tooltip.--active :not(.tooltip)>.tooltip-message--morph{clip-path:inset(0 round var(--border-radius));filter:none;transition:clip-path var(--morph-open-duration) var(--morph-open-timing-function), filter var(--morph-open-duration) var(--morph-focus-timing-function);visibility:visible;animation:none}.tooltip.--active>.tooltip-content,.tooltip.--active :not(.tooltip)>.tooltip-content,.tooltip.--active>.tooltip-message,.tooltip.--active :not(.tooltip)>.tooltip-message{opacity:1;scale:1}.tooltip:not(.--active)>.tooltip-content,.tooltip:not(.--active)>.tooltip-content *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content *,.tooltip:not(.--active)>.tooltip-message,.tooltip:not(.--active)>.tooltip-message *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message *{pointer-events:none}.tooltip-message{color:var(--color);cursor:auto;font-size:var(--font-size);font-weight:var(--font-weight);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);pointer-events:none;white-space:nowrap}.tooltip.--active:before{background:var(--safe-color);clip-path:var(--safe-area);content:"";height:var(--safe-height);left:var(--safe-left);top:var(--safe-top);width:var(--safe-width);z-index:-3;position:absolute}.tooltip.--active :not(.tooltip) .tooltip-arrow,.tooltip.--active>.tooltip-arrow{scale:-1 1}.tooltip.--active,.tooltip:not(.--active):hover{z-index:9}@keyframes tooltip-morph-close{0%{clip-path:inset(0 round var(--border-radius));animation-timing-function:cubic-bezier(.3,0,.2,1)}55%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}80%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)));animation-timing-function:cubic-bezier(.4,0,.2,1)}to{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius))}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -75,9 +75,9 @@ const shared = ({ delay: { close: closing = 0, open: opening = 0 } = {}, directi
|
|
|
75
75
|
template_u1.slot(element_0rdj5np4, layer.content, 1);
|
|
76
76
|
template_u1.setList(element_0rdj5np4, 'class', [
|
|
77
77
|
() => layer.state.active && '--active',
|
|
78
|
-
() => layer.state.leaving && 'frame--leaving'
|
|
78
|
+
() => layer.state.leaving && 'frame--swap-leaving'
|
|
79
79
|
]);
|
|
80
|
-
template_u1.setList(element_0rdj5np4, 'style', () => layer.state.travel && `--
|
|
80
|
+
template_u1.setList(element_0rdj5np4, 'style', () => layer.state.travel && `--translate-x: ${layer.state.travel.x}; --translate-y: ${layer.state.travel.y};`);
|
|
81
81
|
return root_0rdj5np2;
|
|
82
82
|
});
|
|
83
83
|
function bind(content) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { ReactiveArray, effect } from '@esportsplus/reactivity';
|
|
4
|
-
import { timing } from '../../shared/animation.js';
|
|
4
|
+
import { ms, timing } from '../../shared/animation.js';
|
|
5
5
|
const template_1dcchwt2 = template_u1.template(`<span class='typewriter-rotate-letter typewriter-rotate-letter--exiting' style=';'>`);
|
|
6
6
|
const template_1dcchwt5 = template_u1.template(`<span class='typewriter-rotate-letter'>`);
|
|
7
7
|
const template_1dcchwt8 = template_u1.template(`<span class='typewriter-rotate'><span class='typewriter-rotate-sr'></span><span aria-hidden='true' class='typewriter-rotate-box'><!--$-->`);
|
|
@@ -24,11 +24,7 @@ class ReactiveObject_1dcchwt0 extends reactivity_u0.ReactiveObject {
|
|
|
24
24
|
reactivity_u0.write(this.#paused, _v1);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
|
|
28
|
-
const ENTER_MS = 320;
|
|
29
|
-
const EXIT_MS = 200;
|
|
30
27
|
const INTERVAL = 2600;
|
|
31
|
-
const STAGGER_MS = 28;
|
|
32
28
|
function match(prev, next) {
|
|
33
29
|
let dp = Array.from({ length: prev.length + 1 }, () => new Array(next.length + 1).fill(0)), i = 0, j = 0, pairs = new Map();
|
|
34
30
|
for (let a = prev.length - 1; a >= 0; a--) {
|
|
@@ -81,7 +77,7 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
81
77
|
if (!box) {
|
|
82
78
|
return;
|
|
83
79
|
}
|
|
84
|
-
let
|
|
80
|
+
let computed = getComputedStyle(box), blur = computed.getPropertyValue('--blur').trim(), enter = timing(computed, 'enter') ?? { duration: 0 }, exit = timing(computed, 'exit') ?? { duration: 0 }, from = box.getBoundingClientRect(), glide = timing(computed, 'glide'), nodes = box.children, s = from.width / box.offsetWidth || 1;
|
|
85
81
|
for (let i = 0, n = letters.$length; i < n; i++) {
|
|
86
82
|
letters[i].left = ((nodes[i]?.getBoundingClientRect().left ?? from.left) - from.left) / s;
|
|
87
83
|
}
|
|
@@ -107,9 +103,9 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
107
103
|
nodes[letters.$length + i]?.animate(glide
|
|
108
104
|
? [
|
|
109
105
|
{ filter: 'blur(0px)', opacity: 1, transform: 'translateY(0)' },
|
|
110
|
-
{ filter:
|
|
106
|
+
{ filter: `blur(${blur})`, opacity: 0, transform: `translateY(${computed.getPropertyValue('--exit-offset').trim()})` }
|
|
111
107
|
]
|
|
112
|
-
: [{ opacity: 1 }, { opacity: 0 }], {
|
|
108
|
+
: [{ opacity: 1 }, { opacity: 0 }], { ...exit, fill: 'forwards' }).finished.then(() => {
|
|
113
109
|
let at = exits.indexOf(l);
|
|
114
110
|
if (at !== -1) {
|
|
115
111
|
exits.splice(at, 1);
|
|
@@ -117,7 +113,7 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
117
113
|
}, () => { });
|
|
118
114
|
}
|
|
119
115
|
box.getAnimations().forEach((a) => a.cancel());
|
|
120
|
-
let
|
|
116
|
+
let delay = ms(computed.getPropertyValue('--enter-delay')), order = 0, stagger = ms(computed.getPropertyValue('--enter-stagger')), to = box.getBoundingClientRect(), scale = to.width / box.offsetWidth || 1, width = to.width / scale;
|
|
121
117
|
if (glide && Math.abs(width - from.width / s) > 0.5) {
|
|
122
118
|
box.animate([{ width: `${from.width / s}px` }, { width: `${width}px` }], glide);
|
|
123
119
|
}
|
|
@@ -130,15 +126,10 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
130
126
|
if (was === undefined) {
|
|
131
127
|
nodes[i]?.animate(glide
|
|
132
128
|
? [
|
|
133
|
-
{ filter:
|
|
129
|
+
{ filter: `blur(${blur})`, opacity: 0, transform: `translateY(${computed.getPropertyValue('--enter-offset').trim()})` },
|
|
134
130
|
{ filter: 'blur(0px)', opacity: 1, transform: 'translateY(0)' }
|
|
135
131
|
]
|
|
136
|
-
: [{ opacity: 0 }, { opacity: 1 }], {
|
|
137
|
-
delay: glide ? 90 + order++ * STAGGER_MS : 0,
|
|
138
|
-
duration: ENTER_MS,
|
|
139
|
-
easing: EASE_OUT,
|
|
140
|
-
fill: 'backwards'
|
|
141
|
-
});
|
|
132
|
+
: [{ opacity: 0 }, { opacity: 1 }], { ...enter, delay: glide ? delay + order++ * stagger : 0, fill: 'backwards' });
|
|
142
133
|
continue;
|
|
143
134
|
}
|
|
144
135
|
let now = lefts[i];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:typewriter
|
|
1
|
+
@layer components{.typewriter-retype-sr,.typewriter-rotate-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.typewriter,.typewriter-retype{--caret:"";--caret-align:-.18em;--caret-background:var(--caret-color);--caret-color:currentColor;--caret-duration:1.06s;--caret-height:1.1em;--caret-offset:calc(var(--size-100) / 4);--caret-radius:999px;--caret-timing-function:linear;--caret-width:2px}.typewriter--block,.typewriter-retype--block{--caret-align:bottom;--caret-height:1lh;--caret-offset:.08em;--caret-radius:0;--caret-width:.56em}.typewriter--hard,.typewriter-retype--hard{--caret-duration:1s;--caret-timing-function:steps(1, end)}.typewriter--underscore,.typewriter-retype--underscore{--caret:"_";--caret-align:baseline;--caret-background:transparent;--caret-height:auto;--caret-offset:.04em;--caret-radius:0;--caret-width:auto}.typewriter-retype{--ink-blur:var(--blur-300);--ink-duration:.14s;--ink-timing-function:cubic-bezier(.23, 1, .32, 1);--key-duration:62ms;--key-jitter-duration:64ms;--select-duration:.22s;--select-timing-function:cubic-bezier(.23, 1, .32, 1);--selection-color:oklch(from var(--color-primary-500) l c h / .15);--selection-radius:3px}@media (prefers-reduced-motion:reduce){.typewriter-retype{--ink-blur:0px;--key-duration:0s;--select-duration:0s}}.typewriter-rotate{--blur:4px;--color:inherit;--enter-delay:90ms;--enter-duration:.32s;--enter-offset:.4em;--enter-stagger:28ms;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--exit-duration:.2s;--exit-offset:-.35em;--exit-timing-function:cubic-bezier(.23, 1, .32, 1);--glide-duration:.44s;--glide-timing-function:cubic-bezier(.77, 0, .175, 1)}@media (prefers-reduced-motion:reduce){.typewriter-rotate{--glide-duration:0s}}.typewriter-rotate--accent{--color:var(--color-blue-400)}.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:typewriter-blink var(--caret-duration) var(--caret-timing-function) infinite;background:var(--caret-background);border-radius:var(--caret-radius);color:var(--caret-color);content:var(--caret);height:var(--caret-height);vertical-align:var(--caret-align);width:var(--caret-width);margin-inline-start:var(--caret-offset);display:inline-block}@media (prefers-reduced-motion:reduce){.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:none}}.typewriter-retype{white-space:pre;display:inline-grid}.typewriter-retype-letter{animation:typewriter-retype-letter var(--ink-duration) var(--ink-timing-function)}.typewriter-retype-line{text-align:left}.typewriter-retype-line--selecting:after{visibility:hidden}.typewriter-retype-line--typing:after{animation:none}.typewriter-retype-line,.typewriter-retype-sizer{grid-area:1/1}.typewriter-retype-sizer{visibility:hidden}.typewriter-retype-word{isolation:isolate;display:inline-block;position:relative}.typewriter-retype-word:before{background:var(--selection-color);border-radius:var(--selection-radius);content:"";transform-origin:100%;z-index:-1;position:absolute;inset:-.06em -1px;scale:0 1}.typewriter-retype-word--selecting:before{transition:scale var(--select-duration) var(--select-timing-function);scale:1}.typewriter-rotate{color:var(--color);display:inline-block;position:relative}.typewriter-rotate-box{text-align:left;white-space:pre;display:inline-block;position:relative}.typewriter-rotate-letter{display:inline-block}.typewriter-rotate-letter--exiting{pointer-events:none;position:absolute;top:0}@keyframes typewriter-blink{0%,45%{opacity:1}55%,95%{opacity:0}to{opacity:1}}@keyframes typewriter-retype-letter{0%{filter:blur(var(--ink-blur));opacity:0}}}
|
|
2
2
|
/*$vite$:1*/
|