@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
|
@@ -1,15 +1,98 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import { ReactiveArray, effect, onCleanup, signal, write } from '@esportsplus/reactivity';
|
|
1
3
|
import * as template_u1 from '@esportsplus/template';
|
|
2
4
|
import { component } from '@esportsplus/template';
|
|
3
|
-
import
|
|
5
|
+
import icon from '../icon/index.js';
|
|
6
|
+
import input from '../input/index.js';
|
|
7
|
+
import overlay from '../overlay/index.js';
|
|
8
|
+
import sortable from '../sortable/index.js';
|
|
4
9
|
import tooltip from '../tooltip/index.js';
|
|
10
|
+
import { content as surface } from '../tooltip/utilities.js';
|
|
11
|
+
import scrollbar from '../../modifiers/scrollbar/index.js';
|
|
12
|
+
import { observer } from '../../shared/resize.js';
|
|
13
|
+
import down from '@esportsplus/ui/svg/arrow-down.svg';
|
|
14
|
+
import left from '@esportsplus/ui/svg/arrow-left.svg';
|
|
15
|
+
import right from '@esportsplus/ui/svg/arrow-right.svg';
|
|
16
|
+
import up from '@esportsplus/ui/svg/arrow-up.svg';
|
|
17
|
+
import chevronDown from '@esportsplus/ui/svg/chevron-down.svg';
|
|
18
|
+
import chevronLeft from '@esportsplus/ui/svg/chevron-left.svg';
|
|
19
|
+
import chevronRight from '@esportsplus/ui/svg/chevron-right.svg';
|
|
20
|
+
import chevronUp from '@esportsplus/ui/svg/chevron-up.svg';
|
|
21
|
+
import enter from '@esportsplus/ui/svg/enter.svg';
|
|
22
|
+
import grid from '@esportsplus/ui/svg/grid.svg';
|
|
23
|
+
import magnifier from '@esportsplus/ui/svg/search.svg';
|
|
24
|
+
import '../button/scss/index.scss';
|
|
5
25
|
import '../card/scss/index.scss';
|
|
6
26
|
import './scss/index.scss';
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
27
|
+
const template_11yw5fm6 = template_u1.template(`<div class='dock-app'><!--$--><span class='dock-app-label'>`);
|
|
28
|
+
const template_11yw5fmb = template_u1.template(`<div class='dock-item'><button aria-haspopup='dialog' aria-label='All apps' class='button dock-button' type='button'>`);
|
|
29
|
+
const template_11yw5fmf = template_u1.template(`<button class='dock-arrow' type='button'>`);
|
|
30
|
+
const template_11yw5fmi = template_u1.template(`<button class='card dock-button' type='button'>`);
|
|
31
|
+
const template_11yw5fml = template_u1.template(`<div aria-label='All apps' class='tooltip-content dock-launcher' role='dialog'><div class='dock-launcher-search'><!--$--></div><div class='dock-launcher-view'><div class='dock-launcher-apps'></div></div><div aria-hidden='true' class='dock-launcher-footer'><!--$--><!--$-->`);
|
|
32
|
+
const template_11yw5fmv = template_u1.template(`<p class='dock-launcher-empty' role='status'>`);
|
|
33
|
+
const template_11yw5fmy = template_u1.template(`<div class='dock-item'><!--$--><span aria-hidden='true' class='dock-light '>`);
|
|
34
|
+
const template_11yw5fm13 = template_u1.template(`<div class='dock-item'><span class='card dock-button'>`);
|
|
35
|
+
const template_11yw5fm16 = template_u1.template(`<span class='dock-launcher-hint'><span aria-hidden='true' class='dock-launcher-keys'>`);
|
|
36
|
+
const template_11yw5fm1a = template_u1.template(`<kbd class='button button--kbd'>`);
|
|
37
|
+
const template_11yw5fm1d = template_u1.template(`<nav class='dock '><!--$--><div class='dock-viewport'><div class='dock-items'></div></div><!--$--><!--$--><!--$-->`);
|
|
12
38
|
class ReactiveObject_11yw5fm0 extends reactivity_u0.ReactiveObject {
|
|
39
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
40
|
+
constructor() {
|
|
41
|
+
super(null);
|
|
42
|
+
}
|
|
43
|
+
get active() {
|
|
44
|
+
return reactivity_u0.read(this.#active);
|
|
45
|
+
}
|
|
46
|
+
set active(_v0) {
|
|
47
|
+
reactivity_u0.write(this.#active, _v0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class ReactiveObject_11yw5fm1 extends reactivity_u0.ReactiveObject {
|
|
51
|
+
#index = this[reactivity_u0.SIGNAL](-1);
|
|
52
|
+
#query = this[reactivity_u0.SIGNAL]('');
|
|
53
|
+
constructor() {
|
|
54
|
+
super(null);
|
|
55
|
+
}
|
|
56
|
+
get index() {
|
|
57
|
+
return reactivity_u0.read(this.#index);
|
|
58
|
+
}
|
|
59
|
+
set index(_v0) {
|
|
60
|
+
reactivity_u0.write(this.#index, _v0);
|
|
61
|
+
}
|
|
62
|
+
get query() {
|
|
63
|
+
return reactivity_u0.read(this.#query);
|
|
64
|
+
}
|
|
65
|
+
set query(_v1) {
|
|
66
|
+
reactivity_u0.write(this.#query, _v1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
class ReactiveObject_11yw5fm2 extends reactivity_u0.ReactiveObject {
|
|
70
|
+
#count = this[reactivity_u0.SIGNAL](0);
|
|
71
|
+
#first = this[reactivity_u0.SIGNAL](0);
|
|
72
|
+
#order = this[reactivity_u0.SIGNAL](0);
|
|
73
|
+
constructor() {
|
|
74
|
+
super(null);
|
|
75
|
+
}
|
|
76
|
+
get count() {
|
|
77
|
+
return reactivity_u0.read(this.#count);
|
|
78
|
+
}
|
|
79
|
+
set count(_v0) {
|
|
80
|
+
reactivity_u0.write(this.#count, _v0);
|
|
81
|
+
}
|
|
82
|
+
get first() {
|
|
83
|
+
return reactivity_u0.read(this.#first);
|
|
84
|
+
}
|
|
85
|
+
set first(_v1) {
|
|
86
|
+
reactivity_u0.write(this.#first, _v1);
|
|
87
|
+
}
|
|
88
|
+
get order() {
|
|
89
|
+
return reactivity_u0.read(this.#order);
|
|
90
|
+
}
|
|
91
|
+
set order(_v2) {
|
|
92
|
+
reactivity_u0.write(this.#order, _v2);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
class ReactiveObject_11yw5fm3 extends reactivity_u0.ReactiveObject {
|
|
13
96
|
#launching = this[reactivity_u0.SIGNAL](false);
|
|
14
97
|
constructor() {
|
|
15
98
|
super(null);
|
|
@@ -21,7 +104,7 @@ class ReactiveObject_11yw5fm0 extends reactivity_u0.ReactiveObject {
|
|
|
21
104
|
reactivity_u0.write(this.#launching, _v0);
|
|
22
105
|
}
|
|
23
106
|
}
|
|
24
|
-
class
|
|
107
|
+
class ReactiveObject_11yw5fm4 extends reactivity_u0.ReactiveObject {
|
|
25
108
|
#running;
|
|
26
109
|
constructor(_p0) {
|
|
27
110
|
super(null);
|
|
@@ -34,58 +117,313 @@ class ReactiveObject_11yw5fm1 extends reactivity_u0.ReactiveObject {
|
|
|
34
117
|
reactivity_u0.write(this.#running, _v0);
|
|
35
118
|
}
|
|
36
119
|
}
|
|
120
|
+
const ARROWS = {
|
|
121
|
+
horizontal: [chevronLeft, chevronRight],
|
|
122
|
+
vertical: [chevronUp, chevronDown]
|
|
123
|
+
};
|
|
37
124
|
const DOCK_BUTTON = Symbol.for('@esportsplus/ui/dock.button');
|
|
125
|
+
const DOCK_LAUNCHER = Symbol.for('@esportsplus/ui/dock.launcher');
|
|
38
126
|
const LABEL = Symbol();
|
|
39
127
|
const TOOLTIP_DELAY = 300;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
128
|
+
let uid = 0;
|
|
129
|
+
function copy(item) {
|
|
130
|
+
return (() => {
|
|
131
|
+
let root_11yw5fm12 = template_11yw5fm13(), element_11yw5fm14 = root_11yw5fm12.firstChild.firstElementChild;
|
|
132
|
+
template_u1.slot(element_11yw5fm14, glyph(item), 1);
|
|
133
|
+
template_u1.setProperties(element_11yw5fm14, face(item));
|
|
134
|
+
return root_11yw5fm12;
|
|
135
|
+
})();
|
|
136
|
+
}
|
|
137
|
+
function face(item) {
|
|
138
|
+
return {
|
|
139
|
+
class: [item.modifier && `dock-button--${item.modifier}`, item.thumbnail !== undefined && 'dock-button--thumbnail'],
|
|
140
|
+
style: item.thumbnail !== undefined ? `--thumbnail: url(${JSON.stringify(thumbnail(item.thumbnail))})` : ''
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function glyph(item) {
|
|
144
|
+
if (item.icon === undefined) {
|
|
145
|
+
return '';
|
|
146
|
+
}
|
|
147
|
+
return typeof item.icon === 'string' ? sprite(item.icon) : item.icon();
|
|
148
|
+
}
|
|
149
|
+
function hint(keys, label) {
|
|
150
|
+
return (() => {
|
|
151
|
+
let root_11yw5fm15 = template_11yw5fm16(), element_11yw5fm17 = root_11yw5fm15.firstChild.firstElementChild, element_11yw5fm18 = root_11yw5fm15.firstChild;
|
|
152
|
+
template_u1.slot(element_11yw5fm17, keys.map((key) => {
|
|
153
|
+
let root_11yw5fm19 = template_11yw5fm1a(), element_11yw5fm1b = root_11yw5fm19.firstChild;
|
|
154
|
+
template_u1.slot(element_11yw5fm1b, key, 1);
|
|
155
|
+
return root_11yw5fm19;
|
|
156
|
+
}), 1);
|
|
157
|
+
template_u1.slot(element_11yw5fm18, label, 2);
|
|
158
|
+
return root_11yw5fm15;
|
|
159
|
+
})();
|
|
160
|
+
}
|
|
161
|
+
function keep(e) {
|
|
162
|
+
if (!(e.target instanceof HTMLInputElement)) {
|
|
163
|
+
e.preventDefault();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function name(trigger) {
|
|
167
|
+
return trigger[LABEL];
|
|
168
|
+
}
|
|
169
|
+
function sprite(href, name = '') {
|
|
170
|
+
return icon({ 'aria-hidden': 'true', class: name }, href);
|
|
171
|
+
}
|
|
172
|
+
function thumbnail(src) {
|
|
173
|
+
return new URL(src, document.baseURI).href;
|
|
174
|
+
}
|
|
175
|
+
const dock = ({ apps, arrows = false, direction = 'n', items, label = 'Dock', onlaunch, onsort, state = new ReactiveObject_11yw5fm0(), ...attributes }) => {
|
|
176
|
+
let cells, docked = items instanceof ReactiveArray ? items : new ReactiveArray(items), drawer = apps && (apps instanceof ReactiveArray ? apps : new ReactiveArray(apps)), field, group = `dock-${++uid}`, launch = new ReactiveObject_11yw5fm1(), launching = new WeakMap(), popup = drawer && overlay.popup({ state, target: surface }), running = new WeakMap(), scroll = new ReactiveObject_11yw5fm2(), shelf, track, vertical = direction === 'e' || direction === 'w', viewport;
|
|
177
|
+
function all() {
|
|
178
|
+
return (() => {
|
|
179
|
+
let root_11yw5fma = template_11yw5fmb(), element_11yw5fmc = root_11yw5fma.firstChild, element_11yw5fmd = element_11yw5fmc.firstElementChild;
|
|
180
|
+
template_u1.slot(element_11yw5fmd, sprite(grid), 1);
|
|
181
|
+
template_u1.setProperty(element_11yw5fmd, 'aria-controls', template_u1.interpolate([(group), "-launcher"]));
|
|
182
|
+
template_u1.setProperty(element_11yw5fmd, 'aria-expanded', () => state.active ? 'true' : 'false');
|
|
183
|
+
template_u1.delegate(element_11yw5fmd, 'click', () => {
|
|
184
|
+
state.active = !state.active;
|
|
185
|
+
});
|
|
186
|
+
template_u1.onconnect(element_11yw5fmc, (element) => { element[LABEL] = 'All apps'; });
|
|
187
|
+
return root_11yw5fma;
|
|
188
|
+
})();
|
|
189
|
+
}
|
|
190
|
+
function arrow(step) {
|
|
43
191
|
return (() => {
|
|
44
|
-
let
|
|
45
|
-
template_u1.slot(
|
|
46
|
-
template_u1.
|
|
47
|
-
template_u1.
|
|
48
|
-
template_u1.
|
|
49
|
-
|
|
50
|
-
|
|
192
|
+
let root_11yw5fme = template_11yw5fmf(), element_11yw5fmg = root_11yw5fme.firstChild;
|
|
193
|
+
template_u1.slot(element_11yw5fmg, sprite(ARROWS[vertical ? 'vertical' : 'horizontal'][step < 0 ? 0 : 1]), 1);
|
|
194
|
+
template_u1.setProperty(element_11yw5fmg, 'aria-label', step < 0 ? 'Previous apps' : 'Next apps');
|
|
195
|
+
template_u1.setProperty(element_11yw5fmg, 'disabled', () => step < 0 ? scroll.first <= 0 : scroll.first + scroll.count >= docked.$length);
|
|
196
|
+
template_u1.delegate(element_11yw5fmg, 'click', () => page(step));
|
|
197
|
+
return root_11yw5fme;
|
|
198
|
+
})();
|
|
199
|
+
}
|
|
200
|
+
function button(item) {
|
|
201
|
+
let app = status(item), local = motion(item);
|
|
202
|
+
return (() => {
|
|
203
|
+
let root_11yw5fmh = template_11yw5fmi(), element_11yw5fmj = root_11yw5fmh.firstChild;
|
|
204
|
+
template_u1.slot(element_11yw5fmj, glyph(item), 1);
|
|
205
|
+
template_u1.setProperties(element_11yw5fmj, face(item));
|
|
206
|
+
template_u1.setProperties(element_11yw5fmj, attributes[DOCK_BUTTON]);
|
|
207
|
+
template_u1.setProperty(element_11yw5fmj, 'aria-label', () => app.running ? `${item.label}, running` : item.label);
|
|
208
|
+
template_u1.setList(element_11yw5fmj, 'class', () => local.launching && 'dock-button--launching');
|
|
209
|
+
template_u1.delegate(element_11yw5fmj, 'animationend', () => {
|
|
51
210
|
local.launching = false;
|
|
52
211
|
});
|
|
53
|
-
template_u1.delegate(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
212
|
+
template_u1.delegate(element_11yw5fmj, 'click', () => open(item));
|
|
213
|
+
return root_11yw5fmh;
|
|
214
|
+
})();
|
|
215
|
+
}
|
|
216
|
+
function hidden(item) {
|
|
217
|
+
if (!scroll.count) {
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
docked.$length;
|
|
221
|
+
scroll.order;
|
|
222
|
+
let index = docked.indexOf(item);
|
|
223
|
+
return index < scroll.first || index >= scroll.first + scroll.count;
|
|
224
|
+
}
|
|
225
|
+
function launcher(apps) {
|
|
226
|
+
let current = signal(undefined), library = sortable(apps, (item, attributes) => {
|
|
227
|
+
let root_11yw5fm5 = template_11yw5fm6(), element_11yw5fm7 = root_11yw5fm5.firstChild, element_11yw5fm8 = element_11yw5fm7.firstChild, element_11yw5fm9 = element_11yw5fm7.firstElementChild;
|
|
228
|
+
template_u1.slot(element_11yw5fm8, button(item));
|
|
229
|
+
template_u1.slot(element_11yw5fm9, item.label, 1);
|
|
230
|
+
template_u1.setProperties(element_11yw5fm7, attributes);
|
|
231
|
+
template_u1.setList(element_11yw5fm7, 'class', [() => !matches(item) && 'dock-app--hidden', () => signal.selector(current, item) && '--active']);
|
|
232
|
+
return root_11yw5fm5;
|
|
233
|
+
}, { group, onsort: sorted });
|
|
234
|
+
effect(() => {
|
|
235
|
+
write(current, shown()[selected()]);
|
|
236
|
+
});
|
|
237
|
+
effect(() => state.active, (open) => {
|
|
238
|
+
if (!open) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
launch.index = -1;
|
|
242
|
+
launch.query = '';
|
|
243
|
+
requestAnimationFrame(() => {
|
|
244
|
+
field?.focus({ preventScroll: true });
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
return (() => {
|
|
248
|
+
let root_11yw5fmk = template_11yw5fml(), element_11yw5fmm = root_11yw5fmk.firstChild, element_11yw5fmn = element_11yw5fmm.firstElementChild.firstChild, element_11yw5fmo = element_11yw5fmm.firstElementChild, element_11yw5fmp = element_11yw5fmo.nextElementSibling, element_11yw5fmq = element_11yw5fmp.firstElementChild, element_11yw5fmr = element_11yw5fmp.nextElementSibling.firstChild, element_11yw5fms = element_11yw5fmr.nextSibling, element_11yw5fmt = element_11yw5fmp.nextElementSibling;
|
|
249
|
+
template_u1.slot(element_11yw5fmn, sprite(magnifier));
|
|
250
|
+
template_u1.slot(element_11yw5fmo, input({
|
|
251
|
+
'aria-label': 'Search apps',
|
|
252
|
+
autocomplete: 'off',
|
|
253
|
+
class: 'dock-launcher-input',
|
|
254
|
+
oninput: (e) => {
|
|
255
|
+
launch.index = -1;
|
|
256
|
+
launch.query = e.target.value;
|
|
257
|
+
},
|
|
258
|
+
onconnect: (element) => {
|
|
259
|
+
field = element;
|
|
260
|
+
},
|
|
261
|
+
onkeydown: navigate,
|
|
262
|
+
placeholder: 'Search apps',
|
|
263
|
+
spellcheck: false,
|
|
264
|
+
value: () => launch.query
|
|
265
|
+
}), 2);
|
|
266
|
+
template_u1.slot(element_11yw5fmq, library.render(), 1);
|
|
267
|
+
new template_u1.EffectSlot(element_11yw5fmp, () => !shown().length && (() => {
|
|
268
|
+
let root_11yw5fmu = template_11yw5fmv(), element_11yw5fmw = root_11yw5fmu.firstChild;
|
|
269
|
+
element_11yw5fmw.appendChild(template_u1.text(launch.query.trim() ? 'No results' : 'No apps'));
|
|
270
|
+
return root_11yw5fmu;
|
|
271
|
+
})(), 2);
|
|
272
|
+
template_u1.slot(element_11yw5fmr, hint(['esc'], 'Close'));
|
|
273
|
+
template_u1.slot(element_11yw5fms, hint([left, right, up, down].map((href) => sprite(href, 'dock-launcher-key-icon')), 'Navigate'));
|
|
274
|
+
template_u1.slot(element_11yw5fmt, hint([sprite(enter, 'dock-launcher-key-icon')], 'Open'), 2);
|
|
275
|
+
template_u1.setProperties(element_11yw5fmq, library.attributes);
|
|
276
|
+
template_u1.onconnect(element_11yw5fmq, (element) => {
|
|
277
|
+
cells = element;
|
|
278
|
+
});
|
|
279
|
+
template_u1.setProperties(element_11yw5fmp, scrollbar({ fade: true }));
|
|
280
|
+
template_u1.setList(element_11yw5fmm, 'class', template_u1.interpolate(["tooltip-content--", (direction)]));
|
|
281
|
+
template_u1.setProperty(element_11yw5fmm, 'id', template_u1.interpolate([(group), "-launcher"]));
|
|
282
|
+
template_u1.setProperties(element_11yw5fmm, attributes[DOCK_LAUNCHER]);
|
|
283
|
+
template_u1.delegate(element_11yw5fmm, 'mousedown', keep);
|
|
284
|
+
return root_11yw5fmk;
|
|
285
|
+
})();
|
|
286
|
+
}
|
|
287
|
+
function matches(item) {
|
|
288
|
+
let query = launch.query.trim().toLowerCase();
|
|
289
|
+
return !query || item.label.toLowerCase().includes(query);
|
|
290
|
+
}
|
|
291
|
+
function measure() {
|
|
292
|
+
if (!arrows || !shelf || !track || !viewport) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
shelf.classList.add('dock--measuring');
|
|
296
|
+
let length = vertical ? 'offsetHeight' : 'offsetWidth', pitch = rest(length), room = vertical ? viewport.clientHeight : viewport.clientWidth, span = track[length], style = getComputedStyle(shelf), swell = 3 * ((parseFloat(style.getPropertyValue('--size-peak')) - parseFloat(style.getPropertyValue('--size-rest'))) || 0);
|
|
297
|
+
shelf.classList.remove('dock--measuring');
|
|
298
|
+
if (span <= room) {
|
|
299
|
+
scroll.count = 0;
|
|
300
|
+
scroll.first = 0;
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
scroll.count = Math.max(1, Math.floor((room - swell) / pitch));
|
|
304
|
+
scroll.first = Math.max(0, Math.min(scroll.first, docked.$length - scroll.count));
|
|
305
|
+
}
|
|
306
|
+
function motion(item) {
|
|
307
|
+
let current = launching.get(item);
|
|
308
|
+
if (!current) {
|
|
309
|
+
current = new ReactiveObject_11yw5fm3();
|
|
310
|
+
launching.set(item, current);
|
|
311
|
+
}
|
|
312
|
+
return current;
|
|
313
|
+
}
|
|
314
|
+
function navigate(e) {
|
|
315
|
+
if (e.isComposing) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
let list = shown(), columns = cells ? getComputedStyle(cells).gridTemplateColumns.split(' ').length : 1, step = { ArrowDown: columns, ArrowLeft: -1, ArrowRight: 1, ArrowUp: -columns }[e.key];
|
|
319
|
+
if (step) {
|
|
320
|
+
e.preventDefault();
|
|
321
|
+
if (list.length) {
|
|
322
|
+
launch.index = launch.index < 0 ? 0 : Math.min(Math.max(selected() + step, 0), list.length - 1);
|
|
323
|
+
requestAnimationFrame(() => {
|
|
324
|
+
cells?.querySelector('.dock-app.--active')?.scrollIntoView({ block: 'nearest' });
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
else if (e.key === 'Enter') {
|
|
329
|
+
let item = list[selected()] ?? list[0];
|
|
330
|
+
e.preventDefault();
|
|
331
|
+
if (item) {
|
|
332
|
+
open(item);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function open(item) {
|
|
337
|
+
let app = status(item);
|
|
338
|
+
state.active = false;
|
|
339
|
+
if (app.running) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
app.running = true;
|
|
343
|
+
motion(item).launching = true;
|
|
344
|
+
onlaunch?.(item.label);
|
|
345
|
+
}
|
|
346
|
+
function page(step) {
|
|
347
|
+
scroll.first = Math.max(0, Math.min(scroll.first + step * scroll.count, docked.$length - scroll.count));
|
|
348
|
+
}
|
|
349
|
+
function rest(length) {
|
|
350
|
+
let children = track?.children ?? [], min = Infinity;
|
|
351
|
+
for (let i = 0, n = children.length; i < n; i++) {
|
|
352
|
+
min = Math.min(min, children[i][length] || Infinity);
|
|
353
|
+
}
|
|
354
|
+
return min === Infinity ? 1 : min;
|
|
355
|
+
}
|
|
356
|
+
function selected() {
|
|
357
|
+
return launch.index < 0 ? -1 : Math.min(launch.index, shown().length - 1);
|
|
358
|
+
}
|
|
359
|
+
function shown() {
|
|
360
|
+
if (!drawer) {
|
|
361
|
+
return [];
|
|
362
|
+
}
|
|
363
|
+
drawer.$length;
|
|
364
|
+
return drawer.filter(matches);
|
|
365
|
+
}
|
|
366
|
+
function slot(item, attributes) {
|
|
367
|
+
return (() => {
|
|
368
|
+
let root_11yw5fmx = template_11yw5fmy(), element_11yw5fmz = root_11yw5fmx.firstChild, element_11yw5fm10 = element_11yw5fmz.firstChild, element_11yw5fm11 = element_11yw5fmz.firstElementChild;
|
|
369
|
+
template_u1.slot(element_11yw5fm10, button(item));
|
|
370
|
+
template_u1.setList(element_11yw5fm11, 'class', () => status(item).running && '--active');
|
|
371
|
+
template_u1.setProperties(element_11yw5fmz, attributes);
|
|
372
|
+
template_u1.setList(element_11yw5fmz, 'class', () => hidden(item) && 'dock-item--hidden');
|
|
373
|
+
template_u1.onconnect(element_11yw5fmz, (element) => {
|
|
374
|
+
element[LABEL] = item.label;
|
|
60
375
|
});
|
|
61
|
-
return
|
|
376
|
+
return root_11yw5fmx;
|
|
62
377
|
})();
|
|
63
|
-
}
|
|
64
|
-
|
|
378
|
+
}
|
|
379
|
+
function sorted(item, from, to, source, target) {
|
|
380
|
+
scroll.order++;
|
|
381
|
+
onsort?.(item, from, to, source, target);
|
|
382
|
+
}
|
|
383
|
+
function status(item) {
|
|
384
|
+
let current = running.get(item);
|
|
385
|
+
if (!current) {
|
|
386
|
+
current = item.state ?? new ReactiveObject_11yw5fm4(item.running ?? false);
|
|
387
|
+
running.set(item, current);
|
|
388
|
+
}
|
|
389
|
+
return current;
|
|
390
|
+
}
|
|
391
|
+
let list = sortable(docked, slot, { drag: copy, group, onsort: sorted }), tip = tooltip.shared({ delay: { open: TOOLTIP_DELAY }, direction });
|
|
65
392
|
return (() => {
|
|
66
|
-
let
|
|
67
|
-
template_u1.slot(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
template_u1.
|
|
87
|
-
|
|
88
|
-
|
|
393
|
+
let root_11yw5fm1c = template_11yw5fm1d(), element_11yw5fm1e = root_11yw5fm1c.firstChild, element_11yw5fm1f = element_11yw5fm1e.firstChild, element_11yw5fm1g = element_11yw5fm1e.firstElementChild, element_11yw5fm1h = element_11yw5fm1g.firstElementChild, element_11yw5fm1i = element_11yw5fm1f.nextSibling.nextSibling, element_11yw5fm1j = element_11yw5fm1i.nextSibling, element_11yw5fm1k = element_11yw5fm1j.nextSibling;
|
|
394
|
+
template_u1.slot(element_11yw5fm1f, arrows && arrow(-1));
|
|
395
|
+
template_u1.slot(element_11yw5fm1h, list.render(), 1);
|
|
396
|
+
template_u1.slot(element_11yw5fm1i, arrows && arrow(1));
|
|
397
|
+
template_u1.slot(element_11yw5fm1j, drawer && all());
|
|
398
|
+
template_u1.slot(element_11yw5fm1k, tip.render({ 'aria-hidden': 'true', class: 'dock-label' }));
|
|
399
|
+
template_u1.slot(element_11yw5fm1e, drawer && launcher(drawer), 2);
|
|
400
|
+
template_u1.setProperties(element_11yw5fm1h, list.attributes);
|
|
401
|
+
template_u1.onconnect(element_11yw5fm1g, (element) => {
|
|
402
|
+
track = element.firstElementChild;
|
|
403
|
+
viewport = element;
|
|
404
|
+
});
|
|
405
|
+
template_u1.setList(element_11yw5fm1e, 'class', template_u1.interpolate(["dock--", (direction)]));
|
|
406
|
+
template_u1.setList(element_11yw5fm1e, 'class', drawer && 'tooltip');
|
|
407
|
+
template_u1.setProperties(element_11yw5fm1e, attributes);
|
|
408
|
+
template_u1.setProperties(element_11yw5fm1e, tip.delegate({ content: name, edge: true, selector: '.dock-item' }));
|
|
409
|
+
template_u1.setProperties(element_11yw5fm1e, popup);
|
|
410
|
+
template_u1.setProperty(element_11yw5fm1e, 'aria-label', label);
|
|
411
|
+
template_u1.setProperty(element_11yw5fm1e, 'aria-orientation', vertical ? 'vertical' : 'horizontal');
|
|
412
|
+
template_u1.setList(element_11yw5fm1e, 'class', [() => state.active && 'dock--open', () => scroll.count > 0 && 'dock--overflowing']);
|
|
413
|
+
template_u1.onconnect(element_11yw5fm1e, (element) => {
|
|
414
|
+
if (!arrows) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
let resize = observer(measure);
|
|
418
|
+
shelf = element;
|
|
419
|
+
for (let node of [element, element.parentElement, track, viewport]) {
|
|
420
|
+
if (node) {
|
|
421
|
+
resize.observe(node);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
onCleanup(resize.disconnect);
|
|
425
|
+
});
|
|
426
|
+
return root_11yw5fm1c;
|
|
89
427
|
})();
|
|
90
428
|
};
|
|
91
|
-
export default component(dock, { button: DOCK_BUTTON });
|
|
429
|
+
export default component(dock, { button: DOCK_BUTTON, launcher: DOCK_LAUNCHER });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.dock,.dock-button{--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){.dock,.dock-button{--surface-level:-2;--surface-shadow-weight:0}}@container style(--surface-level:-2){.dock,.dock-button{--surface-level:-1;--surface-shadow-weight:0}}@container style(--surface-level:-1){.dock,.dock-button{--surface-level:0;--surface-shadow-weight:0}}@container style(--surface-level:0){.dock,.dock-button{--surface-level:1;--surface-shadow-weight:1}}@container style(--surface-level:1){.dock,.dock-button{--surface-level:2;--surface-shadow-weight:2}}@container style(--surface-level:2){.dock,.dock-button{--surface-level:3;--surface-shadow-weight:3}}@container style(--surface-level:3){.dock,.dock-button{--surface-level:4;--surface-shadow-weight:4}}@container style(--surface-level:4){.dock,.dock-button{--surface-level:5;--surface-shadow-weight:5}}@container style(--surface-level:5){.dock,.dock-button{--surface-level:6;--surface-shadow-weight:6}}.dock{--background-default:var(--surface-background-default);--border-radius:999px;--border-width:0px;--box-shadow-default:0 0 0 var(--border-width-400) var(--surface-border-default), var(--surface-shadow-default);--hop-duration:.7s;--icon-ratio:.45;--inset:12px;--item-radius:999px;--light-color:var(--color-primary-500);--light-delay:calc(var(--hop-duration) * .55);--light-size:4px;--magnify-duration:var(--duration-fast);--magnify-timing-function:var(--easing-spring);--padding-horizontal:calc(var(--inset) - var(--spacing) / 2);--padding-vertical:0px;--size-far:calc(var(--size-rest) + (var(--size-peak) - var(--size-rest)) / 3);--size-near:calc(var(--size-rest) + (var(--size-peak) - var(--size-rest)) * 2 / 3);--size-peak:54px;--size-rest:40px;--spacing:var(--size-100)}.dock--square{--border-radius:var(--border-radius-700);--item-radius:var(--border-radius-600)}.dock-button{--background-default:var(--surface-background-default);--border-radius:var(--item-radius);--box-shadow-default:0 0 0 var(--border-width-400) var(--surface-border-default), var(--surface-shadow-default);--color:var(--color-text-500)}.dock-item{--size:var(--size-rest)}@media (hover:hover) and (prefers-reduced-motion:no-preference){.dock-item:hover+.dock-item+.dock-item{--size:var(--size-far)}.dock-item:has(+.dock-item+.dock-item:hover){--size:var(--size-far)}.dock-item:hover+.dock-item{--size:var(--size-near)}.dock-item:has(+.dock-item:hover){--size:var(--size-near)}.dock-item:hover{--size:var(--size-peak)}}.dock-label.tooltip-message{--border-radius:var(--border-radius-300);--offset:calc(var(--size-100) / 2);--padding-horizontal:var(--size-100);--padding-vertical:calc(var(--size-100) / 2)}.dock-label.tooltip-message,.dock-label.tooltip-shared{--box-shadow-default:none;--font-weight:var(--font-weight-500);--spacer:calc(var(--size-peak) - var(--size-rest) - var(--inset) + 12px)}.dock-label.tooltip-shared{--padding:calc(var(--size-100) / 2) var(--size-100);--radius:var(--border-radius-300)}@media (prefers-reduced-motion:reduce){.dock{--hop-duration:0s}}.dock{height:calc(var(--size-rest) + var(--inset) * 2);display:flex}.dock-button{color:var(--color);cursor:pointer;height:var(--size);transform-origin:50% 100%;transition:height var(--magnify-duration) var(--magnify-timing-function), width var(--magnify-duration) var(--magnify-timing-function);width:var(--size);border:0;outline:none;flex-shrink:0;justify-content:center;align-items:center;display:flex}.dock-button--launching{animation:dock-hop var(--hop-duration), dock-squash var(--hop-duration) var(--easing-in-out)}.dock-button:focus-visible{outline:2px solid var(--color);outline-offset:calc(var(--size-100) / 4)}.dock-button svg{height:calc(var(--icon-ratio) * 100%);width:calc(var(--icon-ratio) * 100%)}.dock-group{display:flex}.dock-item{cursor:default;padding:0 calc(var(--spacing) / 2) var(--inset);flex-shrink:0;align-items:flex-end;display:flex;position:relative}.dock-light{background:var(--light-color);height:var(--light-size);opacity:0;pointer-events:none;left:50%;top:calc(100% - var(--inset) + 4px);transition:opacity var(--duration-fast-exit) var(--easing-spring), scale var(--duration-fast-exit) var(--easing-spring);width:var(--light-size);border-radius:50%;margin-inline-start:calc(var(--light-size) / -2);position:absolute;scale:.5}.dock-light.--active{opacity:1;transition-delay:var(--light-delay);transition-duration:var(--duration-fast);scale:1}@keyframes dock-hop{0%{animation-timing-function:var(--easing-out);translate:0}30%{animation-timing-function:ease-in;translate:0 -22px}55%{animation-timing-function:var(--easing-out);translate:0}78%{animation-timing-function:ease-in;translate:0 -9px}to{translate:0}}@keyframes dock-squash{0%{scale:1}30%{scale:.97 1.04}55%{scale:1.08 .9}70%{scale:.99 1.02}80%{scale:1.03 .96}to{scale:1}}}
|
|
1
|
+
@layer components{.dock-app{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.dock-app{--background:var(--background-active)}.dock-app:not(.--active):hover{--background:var(--background-hover)}.dock-app:not(.--active):active{--background:var(--background-pressed)}.dock-app{--background-active:var(--surface-background-active);--background-default:var(--surface-background-default);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:transparent;--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default)}.--active.dock-app{--border-color:var(--border-color-active)}.dock-app:not(.--active):hover{--border-color:var(--border-color-hover)}.dock-app:not(.--active):active{--border-color:var(--border-color-pressed)}.dock-app{--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.dock-app{--box-shadow:var(--box-shadow-active)}.dock-app:not(.--active):hover{--box-shadow:var(--box-shadow-hover)}.dock-app:not(.--active):active{--box-shadow:var(--box-shadow-pressed)}@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}}.dock-app{--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default)}.--active.dock-app{--color:var(--color-active)}.dock-app:not(.--active):hover{--color:var(--color-hover)}.dock-app:not(.--active):active{--color:var(--color-pressed)}.dock-app{--color-active:var(--color-text-300);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}[data-theme=dark] .dock-app{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-500);--color-pressed:var(--color-text-300)}[data-theme=light] .dock-app{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 1.2px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 2.6px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .8))), 0 .6px 1.2px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .6)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 .6px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .3))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--background-active:var(--surface-primary-active);--background-default:var(--surface-primary-default);--background-hover:var(--surface-primary-hover);--background-pressed:var(--surface-primary-pressed);--border-color-active:light-dark(oklch(from var(--surface-primary-active) max(0, l - .046) c h),oklch(from var(--surface-primary-active) min(1, l + .024) c h));--border-color-default:light-dark(oklch(from var(--surface-primary-default) max(0, l - .046) c h),oklch(from var(--surface-primary-default) min(1, l + .024) c h));--border-color-hover:light-dark(oklch(from var(--surface-primary-hover) max(0, l - .046) c h),oklch(from var(--surface-primary-hover) min(1, l + .024) c h));--border-color-pressed:light-dark(oklch(from var(--surface-primary-pressed) max(0, l - .046) c h),oklch(from var(--surface-primary-pressed) min(1, l + .024) c h));--box-shadow-active:var(--box-shadow-hover)}.dock-button{--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){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0));--box-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0));--box-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0))}}@container style(--surface-level:-2){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0));--box-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0));--box-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0))}}@container style(--surface-level:-1){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 .6px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .3))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 1.2px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0))}}@container style(--surface-level:0){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 1.2px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 2.6px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .8))), 0 .6px 1.2px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .6)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 .6px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .3))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)))}}@container style(--surface-level:1){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 2.6px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .8))), 0 .6px 1.2px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .6)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 2.8px 4.8px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 1.6px 3.2px -1.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 1.2px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)))}}@container style(--surface-level:2){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 2.8px 4.8px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 1.6px 3.2px -1.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 7.6px 11.4px -2.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 3.2px 5.2px -3.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 1px 2.6px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .8))), 0 .6px 1.2px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .6)))}}@container style(--surface-level:3){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 7.6px 11.4px -2.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 3.2px 5.2px -3.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 16px 21px -4.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 6.4px 8.4px -5.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 2.8px 4.8px -.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 1.6px 3.2px -1.6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)))}}@container style(--surface-level:4){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 16px 21px -4.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 6.4px 8.4px -5.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 23px 40px -9.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1.9))), 0 3.2px 4px -2.4px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * .4)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 7.6px 11.4px -2.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 3.2px 5.2px -3.2px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)))}}@container style(--surface-level:5){.dock-button{--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))}.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 20px 25px -5px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 8px 10px -6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 25px 50px -12px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 2.5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 10px 15px -3px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 4px 6px -4px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)))}}@container style(--surface-level:6){.dock-app{--box-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 20px 25px -5px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 8px 10px -6px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)));--box-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * .5)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 25px 50px -12px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 2.5))), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)));--box-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-shadow-color) l c h / calc(alpha * 0)),transparent), 0 10px 15px -3px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1))), 0 4px 6px -4px light-dark(transparent,oklch(from var(--surface-shadow-color) l c h / calc(alpha * 1)))}}.dock{--border-radius:999px;--corner-shape:round;--inset-horizontal:12px;--inset-vertical:12px;--padding-horizontal:calc(var(--inset-horizontal) - var(--spacing-horizontal) / 2);--padding-vertical:0px;--size-far:calc(var(--size-rest) + (var(--size-peak) - var(--size-rest)) / 3);--size-near:calc(var(--size-rest) + (var(--size-peak) - var(--size-rest)) * 2 / 3);--size-peak:54px;--size-rest:40px;--spacing-horizontal:var(--size-100);--spacing-vertical:var(--size-100)}.dock--e{--padding-horizontal:0px;--padding-vertical:calc(var(--inset-vertical) - var(--spacing-vertical) / 2)}.dock--e .dock-button{--hop-x:1;--hop-y:0;--origin:0 50%;--squash:dock-button-squash-upright}.dock--e .dock-item{--align:center;--justify:flex-start}.dock--plain .dock-button{--box-shadow-default:none}.dock--plain .dock-button:not(.dock-button--thumbnail){--background-default:transparent}.dock--s .dock-button{--hop-y:1;--origin:50% 0}.dock--s .dock-item{--align:flex-start}.dock--square{--border-radius:var(--border-radius-700)}.dock--square .dock-button{--border-radius:var(--border-radius-600)}.dock--squircle{--border-radius:var(--border-radius-700);--corner-shape:squircle}.dock--squircle .dock-button{--border-radius:50%;--corner-shape:squircle}@supports not (corner-shape:squircle){.dock--squircle .dock-button{--border-radius:24%}}.dock--w{--padding-horizontal:0px;--padding-vertical:calc(var(--inset-vertical) - var(--spacing-vertical) / 2)}.dock--w .dock-button{--hop-x:-1;--hop-y:0;--origin:100% 50%;--squash:dock-button-squash-upright}.dock--w .dock-item{--align:center;--justify:flex-end}.dock--e .dock-item,.dock--w .dock-item{--padding-horizontal:0px;--padding-vertical:calc(var(--spacing-vertical) / 2)}.dock--e .dock-label.tooltip-shared,.dock--w .dock-label.tooltip-shared{--spacer:calc(var(--size-peak) - var(--size-rest) - var(--inset-horizontal) + 12px)}.dock-app{--background-default:transparent;--border-radius:var(--border-radius-400);--gap-horizontal:0px;--gap-vertical:var(--size-200);--padding-horizontal:var(--size-100);--padding-vertical:var(--size-200);--size:48px}.dock-app-label{--color:var(--color-text-500);--font-size:var(--font-size-200);--font-weight:var(--font-weight-400)}.dock-arrow{--color:var(--color-text-500);--focus-color:var(--color);--focus-width:2px;--opacity:1;--transition-duration:.3s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1);--width:24px}.dock-arrow:disabled{--opacity:.3}.dock-arrow>.icon{--size:16px}.dock-button{--background-default:var(--surface-background-default);--border-radius:999px;--box-shadow-default:0 0 0 var(--border-width-400) var(--surface-border-default), var(--surface-shadow-default);--color:var(--color-text-500);--corner-shape:round;--focus-color:var(--color);--focus-offset:calc(var(--size-100) / 4);--focus-width:2px;--hop-distance:22px;--hop-duration:.7s;--hop-rebound:9px;--hop-timing-function:ease;--hop-x:0;--hop-y:-1;--magnify-duration:.3s;--magnify-timing-function:cubic-bezier(.23, 1, .32, 1);--origin:50% 100%;--padding-horizontal:0px;--padding-vertical:0px;--squash:dock-button-squash;--squash-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.dock-button{--hop-duration:0s}}.dock-button--plain{--box-shadow-default:none}.dock-button--plain:not(.dock-button--thumbnail){--background-default:transparent}.dock-button.dock-button--square{--border-radius:var(--border-radius-600);--corner-shape:round}.dock-button.dock-button--squircle{--border-radius:50%;--corner-shape:squircle}@supports not (corner-shape:squircle){.dock-button.dock-button--squircle{--border-radius:24%}}.dock-button--thumbnail{--background-default:var(--thumbnail) center / cover no-repeat, var(--surface-background-default);--box-shadow-default:var(--surface-shadow-default)}.dock-button>.icon,.dock-button>svg{--size:45%}.dock-item{--align:flex-end;--justify:center;--padding-horizontal:calc(var(--spacing-horizontal) / 2);--padding-vertical:0px;--size:var(--size-rest)}@media (hover:hover) and (prefers-reduced-motion:no-preference){.dock-item:hover+.dock-item+.dock-item{--size:var(--size-far)}.dock-item:has(+.dock-item+.dock-item:hover){--size:var(--size-far)}.dock-item:hover+.dock-item{--size:var(--size-near)}.dock-item:has(+.dock-item:hover){--size:var(--size-near)}.dock-item:hover{--size:var(--size-peak)}}.dock-label.tooltip-shared{--box-shadow-default:none;--font-weight:var(--font-weight-500);--radius:var(--border-radius-300);--spacer:calc(var(--size-peak) - var(--size-rest) - var(--inset-vertical) + 12px)}.dock-label.tooltip-shared .frame{--transition-duration:.16s}.dock-label.tooltip-shared .tooltip-shared-layer{--padding-horizontal:var(--size-200);--padding-vertical:calc(var(--padding-horizontal) / 2)}.dock-launcher-apps{--column-width:80px;--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.dock-launcher-empty{--color:var(--color-text-300);--padding-bottom:var(--size-500)}.dock-launcher-footer{--border-color:var(--surface-border-default);--border-width:var(--border-width-400);--color:var(--color-text-300);--font-size:var(--font-size-200);--gap-horizontal:var(--size-400);--gap-vertical:0px;--height:44px;--padding-horizontal:var(--size-400)}.dock-launcher-hint{--gap-horizontal:var(--size-200);--gap-vertical:0px}.dock-launcher-input.input{--color-default:var(--color-text-500);--font-size:inherit;--padding-horizontal:0px;--padding-vertical:0px;--size:0px}.dock-launcher-input.input::placeholder{--color:var(--color-text-300)}.dock-launcher-key-icon.icon{--size:12px}.dock-launcher-keys{--gap-horizontal:calc(var(--size-100) / 2);--gap-vertical:0px}.dock-launcher-search{--color:var(--color-text-300);--gap-horizontal:var(--size-200);--gap-vertical:0px;--height:48px;--padding-horizontal:var(--size-400)}.dock-launcher-view{--border-color:var(--surface-border-default);--border-width:var(--border-width-400);--max-height:min(320px, 50vh)}.dock-launcher.tooltip-content{--background-default:var(--surface-background-default);--border-radius:var(--border-radius-600);--color:var(--color-text-500);--font-size:calc(var(--font-size-400) * .875);--spacer:var(--size-400);--width:480px}.dock-light{--background:var(--color-primary-500);--delay:calc(.7s * .55);--offset:4px;--scale:.5;--size:4px;--transition-duration:.15s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.dock-light.--active{--scale:1;--transition-duration:.2s}@media (prefers-reduced-motion:reduce){.dock-light{--delay:0s}}.dock{border-radius:var(--border-radius);corner-shape:var(--corner-shape);height:calc(var(--size-rest) + var(--inset-vertical) * 2);max-width:100%;padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);display:flex;position:relative}.dock--e .dock-item{padding:var(--padding-vertical) var(--padding-horizontal) var(--padding-vertical) var(--inset-horizontal)}.dock--e .dock-light{right:calc(100% - var(--inset-horizontal) + var(--offset))}.dock--e .dock-light,.dock--w .dock-light{margin:calc(var(--size) / -2) 0 0;top:50%;left:auto}.dock--e,.dock--w{height:auto;max-height:100%;width:calc(var(--size-rest) + var(--inset-horizontal) * 2);flex-direction:column}.dock--e>.dock-arrow,.dock--w>.dock-arrow{height:var(--width);width:var(--size-rest)}.dock--e>.dock-viewport,.dock--e>.dock-viewport>.dock-items,.dock--w>.dock-viewport,.dock--w>.dock-viewport>.dock-items{flex-direction:column}.dock--measuring .dock-item--hidden{display:flex}.dock--open>.dock-label{visibility:hidden}.dock--overflowing>.dock-arrow{display:flex}.dock--s .dock-item{padding:var(--inset-vertical) var(--padding-horizontal) var(--padding-vertical)}.dock--s .dock-light{bottom:calc(100% - var(--inset-vertical) + var(--offset));top:auto}.dock--w .dock-item{padding:var(--padding-vertical) var(--inset-horizontal) var(--padding-vertical) var(--padding-horizontal)}.dock--w .dock-light{left:calc(100% - var(--inset-horizontal) + var(--offset))}.dock-app{background:var(--background);border-radius:var(--border-radius);cursor:pointer;align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);min-width:0;padding:var(--padding-vertical) var(--padding-horizontal);flex-direction:column;display:flex}.dock-app--hidden{display:none}.dock-app-label{color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap;max-width:100%;overflow:hidden}.dock-arrow{color:var(--color);cursor:pointer;height:var(--size-rest);opacity:var(--opacity);transition:opacity var(--transition-duration) var(--transition-timing-function);width:var(--width);background:0 0;border:0;outline:none;flex-shrink:0;justify-content:center;align-self:center;align-items:center;padding:0;display:none}.dock-arrow:disabled{cursor:default}.dock-arrow:focus-visible{outline:var(--focus-width) solid var(--focus-color)}.dock-button{color:var(--color);corner-shape:var(--corner-shape);cursor:pointer;height:var(--size);transform-origin:var(--origin);transition:height var(--magnify-duration) var(--magnify-timing-function), width var(--magnify-duration) var(--magnify-timing-function);width:var(--size);border:0;outline:none;flex-shrink:0;justify-content:center;align-items:center;display:flex}.dock-button:after{corner-shape:var(--corner-shape)}.dock-button--launching{animation:dock-button-hop var(--hop-duration) var(--hop-timing-function), var(--squash) var(--hop-duration) var(--squash-timing-function)}@keyframes dock-button-hop{0%{animation-timing-function:ease-out;translate:0}30%{translate:calc(var(--hop-x) * var(--hop-distance)) calc(var(--hop-y) * var(--hop-distance));animation-timing-function:ease-in}55%{animation-timing-function:ease-out;translate:0}78%{translate:calc(var(--hop-x) * var(--hop-rebound)) calc(var(--hop-y) * var(--hop-rebound));animation-timing-function:ease-in}to{translate:0}}@keyframes dock-button-squash{0%{scale:1}30%{scale:.97 1.04}55%{scale:1.08 .9}70%{scale:.99 1.02}80%{scale:1.03 .96}to{scale:1}}@keyframes dock-button-squash-upright{0%{scale:1}30%{scale:1.04 .97}55%{scale:.9 1.08}70%{scale:1.02 .99}80%{scale:.96 1.03}to{scale:1}}.dock-button:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.dock-button>svg{height:var(--size);width:var(--size)}.dock-item{align-items:var(--align);cursor:default;justify-content:var(--justify);padding:var(--padding-vertical) var(--padding-horizontal) var(--inset-vertical);flex-shrink:0;display:flex;position:relative}.dock-item--hidden{display:none}.dock-items{display:flex}.dock-launcher{color:var(--color);font-size:var(--font-size);flex-direction:column;display:flex}.dock-launcher-apps{align-content:start;gap:var(--gap-vertical) var(--gap-horizontal);grid-template-columns:repeat(auto-fill, minmax(var(--column-width), 1fr));min-height:var(--column-width);padding:var(--padding-vertical) var(--padding-horizontal);display:grid}.dock-launcher-empty{color:var(--color);padding-bottom:var(--padding-bottom);text-align:center;margin:0}.dock-launcher-footer{border-top:var(--border-width) solid var(--border-color);color:var(--color);font-size:var(--font-size);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-inline:var(--padding-horizontal);-webkit-user-select:none;user-select:none;flex-shrink:0;display:flex}.dock-launcher-hint{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);display:flex}.dock-launcher-hint:first-child{margin-inline-end:auto}.dock-launcher-input.input{outline:none;height:100%}.dock-launcher-input.input::placeholder{color:var(--color)}.dock-launcher-keys{gap:var(--gap-vertical) var(--gap-horizontal);pointer-events:none;display:flex}.dock-launcher-search{color:var(--color);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-inline:var(--padding-horizontal);flex-shrink:0;display:flex}.dock-launcher-view{border-top:var(--border-width) solid var(--border-color);max-height:var(--max-height);overscroll-behavior:contain;overflow-y:auto}.dock-light{background:var(--background);height:var(--size);opacity:0;pointer-events:none;scale:var(--scale);left:50%;top:calc(100% - var(--inset-vertical) + var(--offset));transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function);width:var(--size);border-radius:50%;margin-inline-start:calc(var(--size) / -2);position:absolute}.dock-light.--active{opacity:1;transition-delay:var(--delay)}.dock-viewport{min-width:0;min-height:0;display:flex}.dock.tooltip{cursor:auto}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { EditorDocument } from '../code/document.js';
|
|
3
|
-
import { type MarkdownController, type MarkdownOptions } from './view.js';
|
|
4
|
-
import type { Callbacks } from '../code/view.js';
|
|
1
|
+
import template from './template.js';
|
|
5
2
|
import '../code/scss/index.scss';
|
|
6
3
|
import './scss/index.scss';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
document?: EditorDocument;
|
|
10
|
-
options?: MarkdownOptions | (() => MarkdownOptions);
|
|
11
|
-
value?: string | (() => string);
|
|
12
|
-
};
|
|
13
|
-
declare const _default: {
|
|
14
|
-
(): import("@esportsplus/template").Renderable<any>;
|
|
15
|
-
<T extends MarkdownEditorAttributes>(attributes: T): import("@esportsplus/template").Renderable<any>;
|
|
16
|
-
<T extends import("@esportsplus/template").Renderable<any>>(content: T): import("@esportsplus/template").Renderable<any>;
|
|
17
|
-
(attributes: MarkdownEditorAttributes, content?: import("@esportsplus/template").Renderable<any>): import("@esportsplus/template").Renderable<any>;
|
|
18
|
-
bind(context: {
|
|
19
|
-
attributes?: Partial<MarkdownEditorAttributes> | undefined;
|
|
20
|
-
content?: import("@esportsplus/template").Renderable<any>;
|
|
21
|
-
}): any;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
export type { MarkdownController, MarkdownEditorAttributes, MarkdownOptions };
|
|
4
|
+
export default template;
|
|
5
|
+
export * from './template.js';
|