@esportsplus/ui 0.63.0 → 0.64.1
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 +2 -2
- package/.audit/rules-audit.md +2 -2
- package/README.md +15 -18
- package/RULES.md +80 -9
- package/bin/agent-cli +300 -0
- package/build/components/accordion/index.d.ts +4 -0
- package/build/components/accordion/index.js +13 -10
- package/build/components/breadcrumb/index.d.ts +1 -0
- package/build/components/breadcrumb/index.js +43 -37
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/kbd.d.ts +1 -1
- package/build/components/button/kbd.js +17 -15
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/split.js +14 -16
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/chat/minimap/index.js +4 -5
- package/build/components/checkbox/group.d.ts +1 -0
- package/build/components/checkbox/group.js +21 -20
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.js +6 -6
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +1 -1
- package/build/components/command/palette.d.ts +13 -9
- package/build/components/command/palette.js +143 -152
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +5 -7
- package/build/components/command/search.js +6 -26
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/editor/code/commands.js +1 -1
- package/build/components/editor/code/document.d.ts +1 -3
- package/build/components/editor/code/document.js +1 -1
- package/build/components/editor/code/editor.d.ts +18 -6
- package/build/components/editor/code/editor.js +9 -7
- package/build/components/editor/code/features.js +27 -18
- package/build/components/editor/code/find.d.ts +1 -1
- package/build/components/editor/code/find.js +5 -6
- package/build/components/editor/code/folding.d.ts +3 -5
- package/build/components/editor/code/folding.js +2 -15
- package/build/components/editor/code/gutter.js +2 -2
- package/build/components/editor/code/index.d.ts +1 -0
- package/build/components/editor/code/index.js +1 -0
- package/build/components/editor/code/minimap.d.ts +3 -1
- package/build/components/editor/code/minimap.js +31 -5
- package/build/components/editor/code/services/model.js +2 -1
- package/build/components/editor/code/syntax.js +2 -1
- package/build/components/editor/code/view.d.ts +8 -2
- package/build/components/editor/code/view.js +37 -56
- package/build/components/editor/diffs/index.d.ts +1 -0
- package/build/components/editor/diffs/index.js +1 -0
- package/build/components/editor/diffs/merge.js +16 -17
- package/build/components/editor/diffs/view.js +10 -11
- package/build/components/editor/markdown/editing.d.ts +2 -1
- package/build/components/editor/markdown/editing.js +14 -5
- package/build/components/editor/markdown/format.d.ts +1 -1
- package/build/components/editor/markdown/format.js +116 -26
- package/build/components/editor/markdown/layout.js +2 -1
- package/build/components/editor/markdown/model.d.ts +1 -2
- package/build/components/editor/markdown/model.js +1 -29
- package/build/components/editor/markdown/render.js +1 -1
- package/build/components/editor/markdown/template.d.ts +3 -10
- package/build/components/editor/markdown/template.js +2 -29
- package/build/components/editor/markdown/toolbar.d.ts +2 -2
- package/build/components/editor/markdown/toolbar.js +90 -126
- package/build/components/editor/markdown/view.d.ts +1 -1
- package/build/components/editor/markdown/view.js +54 -87
- package/build/components/editor/tree/drag.js +1 -1
- package/build/components/editor/tree/find.js +70 -64
- package/build/components/editor/tree/template.js +8 -7
- package/build/components/editor/viewer/model.d.ts +1 -1
- package/build/components/editor/viewer/template.js +4 -26
- package/build/components/editor/workspace/keybindings.d.ts +1 -1
- package/build/components/editor/workspace/model.d.ts +12 -2
- package/build/components/editor/workspace/model.js +87 -31
- package/build/components/editor/workspace/session.d.ts +2 -6
- package/build/components/editor/workspace/session.js +99 -16
- package/build/components/editor/workspace/status.d.ts +1 -1
- package/build/components/editor/workspace/strip.d.ts +10 -9
- package/build/components/editor/workspace/strip.js +99 -141
- package/build/components/editor/workspace/tabs.d.ts +2 -4
- package/build/components/editor/workspace/tabs.js +1 -14
- package/build/components/editor/workspace/template.d.ts +1 -1
- package/build/components/editor/workspace/template.js +305 -435
- package/build/components/error/index.d.ts +4 -13
- package/build/components/error/index.js +53 -172
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/form/action.d.ts +2 -2
- package/build/components/form/action.js +2 -2
- package/build/components/form/input.d.ts +3 -3
- package/build/components/form/input.js +32 -10
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/group/index.js +96 -9
- package/build/components/group/scss/index.scss +1 -1
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.js +55 -48
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +3 -6
- package/build/components/index.js +3 -6
- package/build/components/inline-edit/index.d.ts +2 -2
- package/build/components/inline-edit/index.js +5 -5
- package/build/components/inline-edit/rich.js +4 -4
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +1 -0
- package/build/components/input/index.d.ts +4 -0
- package/build/components/input/index.js +3 -1
- package/build/components/input/otp.d.ts +18 -0
- package/build/components/input/otp.js +112 -0
- package/build/components/input/password.d.ts +15 -0
- package/build/components/input/password.js +163 -0
- package/build/components/input/scrub.d.ts +1 -0
- package/build/components/input/scrub.js +103 -89
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +5 -0
- package/build/components/input/tag.js +116 -69
- package/build/components/json/download.js +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/marquee/index.js +1 -1
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/tree.d.ts +2 -1
- package/build/components/nav/tree.js +6 -5
- package/build/components/notification/index.js +3 -3
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/popup.d.ts +2 -2
- package/build/components/overlay/popup.js +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/pagination/arrows.js +2 -3
- package/build/components/pagination/cards.js +2 -3
- package/build/components/pagination/index.d.ts +2 -3
- package/build/components/pagination/index.js +18 -13
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/progress/index.js +1 -1
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +3 -3
- package/build/components/range/filter.d.ts +7 -1
- package/build/components/range/filter.js +188 -171
- package/build/components/range/index.d.ts +14 -9
- package/build/components/range/index.js +11 -8
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/range/surface.d.ts +21 -0
- package/build/components/range/surface.js +144 -0
- package/build/components/relative-time/index.js +2 -2
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/{preview/header.d.ts → search/button.d.ts} +3 -3
- package/build/components/search/button.js +18 -0
- package/build/components/search/index.d.ts +8 -0
- package/build/components/search/index.js +5 -0
- package/build/components/search/input.d.ts +9 -0
- package/build/components/search/input.js +23 -0
- package/build/components/search/parts.d.ts +5 -0
- package/build/components/search/parts.js +17 -0
- package/build/components/search/scss/index.scss +2 -0
- package/build/components/select/expand.js +4 -5
- package/build/components/select/index.d.ts +7 -7
- package/build/components/select/index.js +127 -117
- package/build/components/select/placement.js +8 -1
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/{panels → shell}/group.d.ts +21 -5
- package/build/components/shell/group.js +336 -0
- package/build/components/shell/index.d.ts +15 -17
- package/build/components/shell/index.js +583 -238
- package/build/components/shell/model.d.ts +94 -0
- package/build/components/{panels → shell}/model.js +199 -73
- package/build/components/shell/resize.d.ts +5 -0
- package/build/components/{panels → shell}/resize.js +54 -30
- package/build/components/shell/scss/index.scss +1 -1
- package/build/components/shell/sidebar.d.ts +34 -0
- package/build/components/shell/sidebar.js +362 -0
- package/build/components/{panels → shell}/subtree.js +7 -8
- package/build/components/shortcut-recorder/index.d.ts +5 -4
- package/build/components/shortcut-recorder/index.js +69 -44
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +16 -2
- package/build/components/sortable/index.js +237 -134
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/story/index.js +46 -34
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/engine.d.ts +2 -0
- package/build/components/surface-field/engine.js +86 -33
- package/build/components/surface-field/index.d.ts +26 -4
- package/build/components/surface-field/index.js +35 -4
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +13 -1
- package/build/components/surface-field/surface.js +149 -58
- package/build/components/tasklist/index.d.ts +1 -4
- package/build/components/tasklist/index.js +36 -43
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +14 -14
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme/shared.d.ts +1 -2
- package/build/components/theme/shared.js +2 -5
- package/build/components/toast/index.d.ts +3 -3
- package/build/components/toast/index.js +3 -3
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/toolbar/index.d.ts +91 -0
- package/build/components/toolbar/index.js +1281 -0
- package/build/components/toolbar/scss/index.scss +2 -0
- package/build/components/tooltip/menu.d.ts +9 -8
- package/build/components/tooltip/menu.js +397 -279
- package/build/components/tooltip/onclick.d.ts +2 -0
- package/build/components/tooltip/onclick.js +13 -4
- package/build/components/tooltip/onhover.d.ts +3 -1
- package/build/components/tooltip/onhover.js +10 -9
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +4 -4
- package/build/components/tooltip/shared.js +27 -46
- package/build/components/tooltip/utilities.d.ts +5 -2
- package/build/components/tooltip/utilities.js +169 -9
- package/build/components/typewriter/rotate.js +6 -6
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.js +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/css-utilities/font/montserrat/OFL.txt +93 -0
- package/build/shared/drag.d.ts +15 -9
- package/build/shared/drag.js +41 -28
- package/build/shared/placement.d.ts +39 -0
- package/build/shared/placement.js +55 -0
- package/build/shared/transition.js +1 -1
- package/build/shared/viewport.d.ts +1 -2
- package/build/shared/viewport.js +1 -4
- package/package.json +2 -5
- package/src/components/accordion/index.ts +12 -5
- package/src/components/announcement/index.ts +1 -1
- package/src/components/breadcrumb/index.ts +13 -3
- package/src/components/breadcrumb/scss/index.scss +6 -6
- package/src/components/breadcrumb/scss/variables.scss +7 -0
- package/src/components/button/kbd.ts +22 -17
- package/src/components/button/scss/index.scss +69 -76
- package/src/components/button/scss/variables.scss +51 -18
- package/src/components/button/split.ts +12 -8
- package/src/components/capslock/index.ts +2 -0
- package/src/components/capslock/scss/index.scss +21 -21
- package/src/components/card/scss/index.scss +16 -0
- package/src/components/card/scss/variables.scss +25 -2
- package/src/components/chat/minimap/index.ts +5 -6
- package/src/components/chat/minimap/scss/index.scss +12 -11
- package/src/components/chat/minimap/scss/variables.scss +23 -17
- package/src/components/checkbox/group.ts +8 -7
- package/src/components/checkbox/scss/index.scss +59 -35
- package/src/components/checkbox/scss/variables.scss +24 -17
- package/src/components/color-picker/index.ts +6 -6
- package/src/components/color-picker/scss/index.scss +35 -22
- package/src/components/color-picker/scss/variables.scss +11 -3
- package/src/components/command/index.ts +1 -1
- package/src/components/command/palette.ts +174 -166
- package/src/components/command/scss/index.scss +18 -51
- package/src/components/command/scss/variables.scss +37 -71
- package/src/components/command/search.ts +9 -31
- package/src/components/counter/index.ts +22 -22
- package/src/components/counter/scss/variables.scss +10 -7
- package/src/components/editor/code/commands.ts +1 -1
- package/src/components/editor/code/document.ts +0 -2
- package/src/components/editor/code/editor.ts +31 -13
- package/src/components/editor/code/features.ts +39 -24
- package/src/components/editor/code/find.ts +5 -6
- package/src/components/editor/code/folding.ts +3 -21
- package/src/components/editor/code/gutter.ts +2 -2
- package/src/components/editor/code/index.ts +1 -0
- package/src/components/editor/code/minimap.ts +39 -5
- package/src/components/editor/code/scss/_editor.scss +28 -21
- package/src/components/editor/code/scss/_features.scss +19 -21
- package/src/components/editor/code/scss/_services.scss +14 -11
- package/src/components/editor/code/scss/variables.scss +31 -12
- package/src/components/editor/code/services/model.ts +2 -1
- package/src/components/editor/code/syntax.ts +2 -1
- package/src/components/editor/code/view.ts +22 -45
- package/src/components/editor/diffs/index.ts +1 -0
- package/src/components/editor/diffs/merge.ts +9 -10
- package/src/components/editor/diffs/scss/_diffs.scss +39 -63
- package/src/components/editor/diffs/scss/_merge.scss +10 -2
- package/src/components/editor/diffs/scss/index.scss +0 -1
- package/src/components/editor/diffs/scss/variables.scss +36 -17
- package/src/components/editor/diffs/view.ts +8 -9
- package/src/components/editor/markdown/editing.ts +18 -6
- package/src/components/editor/markdown/format.ts +180 -32
- package/src/components/editor/markdown/layout.ts +2 -1
- package/src/components/editor/markdown/model.ts +0 -38
- package/src/components/editor/markdown/render.ts +1 -1
- package/src/components/editor/markdown/scss/index.scss +38 -52
- package/src/components/editor/markdown/scss/variables.scss +24 -50
- package/src/components/editor/markdown/template.ts +3 -63
- package/src/components/editor/markdown/toolbar.ts +76 -127
- package/src/components/editor/markdown/view.ts +9 -32
- package/src/components/editor/tree/drag.ts +1 -1
- package/src/components/editor/tree/find.ts +61 -64
- package/src/components/editor/tree/scss/index.scss +29 -30
- package/src/components/editor/tree/scss/variables.scss +34 -15
- package/src/components/editor/tree/template.ts +9 -9
- package/src/components/editor/viewer/model.ts +1 -1
- package/src/components/editor/viewer/scss/_viewer.scss +4 -5
- package/src/components/editor/viewer/scss/variables.scss +3 -3
- package/src/components/editor/viewer/template.ts +4 -31
- package/src/components/editor/workspace/keybindings.ts +1 -1
- package/src/components/editor/workspace/model.ts +136 -37
- package/src/components/editor/workspace/scss/_keybindings.scss +3 -20
- package/src/components/editor/workspace/scss/_status.scss +0 -1
- package/src/components/editor/workspace/scss/_tabs.scss +2 -41
- package/src/components/editor/workspace/scss/index.scss +49 -71
- package/src/components/editor/workspace/scss/variables.scss +1 -135
- package/src/components/editor/workspace/session.ts +138 -18
- package/src/components/editor/workspace/status.ts +1 -1
- package/src/components/editor/workspace/strip.ts +96 -115
- package/src/components/editor/workspace/tabs.ts +2 -23
- package/src/components/editor/workspace/template.ts +323 -458
- package/src/components/error/index.ts +47 -183
- package/src/components/error/scss/index.scss +34 -35
- package/src/components/error/scss/variables.scss +14 -26
- package/src/components/filter/scss/index.scss +6 -5
- package/src/components/form/action.ts +7 -7
- package/src/components/form/input.ts +25 -12
- package/src/components/frame/scss/index.scss +5 -5
- package/src/components/group/index.ts +77 -2
- package/src/components/group/scss/index.scss +164 -0
- package/src/components/group/scss/variables.scss +110 -2
- package/src/components/heatmap/scss/variables.scss +13 -10
- package/src/components/highlight/index.ts +87 -79
- package/src/components/highlight/scss/index.scss +6 -16
- package/src/components/highlight/scss/variables.scss +33 -5
- package/src/components/icon/scss/index.scss +2 -2
- package/src/components/icon/scss/variables.scss +14 -1
- package/src/components/image/scss/index.scss +9 -9
- package/src/components/image/scss/variables.scss +1 -1
- package/src/components/index.ts +3 -6
- package/src/components/inline-edit/index.ts +8 -6
- package/src/components/inline-edit/rich.ts +8 -8
- package/src/components/inline-edit/scss/index.scss +50 -36
- package/src/components/inline-edit/scss/variables.scss +28 -18
- package/src/components/inline-edit/status.ts +2 -0
- package/src/components/input/index.ts +3 -1
- package/src/components/input/otp.ts +175 -0
- package/src/components/input/password.ts +178 -0
- package/src/components/input/scrub.ts +197 -178
- package/src/components/input/scss/index.scss +344 -4
- package/src/components/input/scss/variables.scss +234 -65
- package/src/components/input/tag.ts +98 -53
- package/src/components/json/download.ts +2 -5
- package/src/components/link/scss/index.scss +3 -5
- package/src/components/loading/scss/index.scss +1 -0
- package/src/components/loading/scss/variables.scss +1 -0
- package/src/components/marquee/index.ts +1 -1
- package/src/components/marquee/scss/index.scss +11 -4
- package/src/components/nav/scss/index.scss +10 -26
- package/src/components/nav/scss/variables.scss +13 -23
- package/src/components/nav/tree.ts +10 -8
- package/src/components/notification/index.ts +3 -3
- package/src/components/notification/scss/index.scss +7 -14
- package/src/components/notification/scss/variables.scss +10 -2
- package/src/components/number/index.ts +1 -1
- package/src/components/overlay/popup.ts +2 -2
- package/src/components/overlay/scss/index.scss +60 -51
- package/src/components/page/scss/variables.scss +1 -0
- package/src/components/pagination/arrows.ts +2 -3
- package/src/components/pagination/cards.ts +2 -3
- package/src/components/pagination/index.ts +11 -9
- package/src/components/pagination/scss/index.scss +38 -101
- package/src/components/pagination/scss/variables.scss +24 -75
- package/src/components/progress/index.ts +1 -1
- package/src/components/progress/scss/index.scss +22 -11
- package/src/components/progress/scss/variables.scss +13 -5
- package/src/components/progress/text.ts +3 -3
- package/src/components/range/filter.ts +249 -246
- package/src/components/range/index.ts +22 -7
- package/src/components/range/scss/index.scss +470 -15
- package/src/components/range/scss/variables.scss +402 -198
- package/src/components/range/surface.ts +135 -0
- package/src/components/relative-time/index.ts +2 -2
- package/src/components/relative-time/scss/index.scss +4 -2
- package/src/components/relative-time/scss/variables.scss +4 -5
- package/src/components/root/scss/index.scss +11 -11
- package/src/components/root/scss/variables.scss +4 -4
- package/src/components/search/button.ts +24 -0
- package/src/components/search/index.ts +12 -0
- package/src/components/search/input.ts +35 -0
- package/src/components/search/parts.ts +24 -0
- package/src/components/search/scss/index.scss +36 -0
- package/src/components/search/scss/variables.scss +67 -0
- package/src/components/section/scss/variables.scss +1 -0
- package/src/components/select/expand.ts +3 -4
- package/src/components/select/index.ts +55 -41
- package/src/components/select/placement.ts +17 -1
- package/src/components/select/scss/index.scss +57 -29
- package/src/components/select/scss/variables.scss +91 -53
- package/src/components/{panels → shell}/group.ts +151 -98
- package/src/components/shell/index.ts +805 -284
- package/src/components/{panels → shell}/model.ts +329 -102
- package/src/components/shell/resize.ts +176 -0
- package/src/components/shell/scss/index.scss +502 -89
- package/src/components/shell/scss/variables.scss +264 -39
- package/src/components/shell/sidebar.ts +325 -0
- package/src/components/{panels → shell}/subtree.ts +1 -2
- package/src/components/shortcut-recorder/index.ts +99 -61
- package/src/components/shortcut-recorder/scss/index.scss +76 -52
- package/src/components/shortcut-recorder/scss/variables.scss +25 -30
- package/src/components/sortable/index.ts +364 -63
- package/src/components/sortable/scss/index.scss +22 -2
- package/src/components/sortable/scss/variables.scss +16 -4
- package/src/components/story/index.ts +56 -33
- package/src/components/story/scss/index.scss +67 -16
- package/src/components/story/scss/variables.scss +59 -18
- package/src/components/surface-field/engine.ts +157 -61
- package/src/components/surface-field/index.ts +64 -9
- package/src/components/surface-field/scss/index.scss +88 -77
- package/src/components/surface-field/scss/variables.scss +84 -36
- package/src/components/surface-field/surface.ts +225 -76
- package/src/components/tasklist/index.ts +10 -14
- package/src/components/tasklist/scss/index.scss +25 -45
- package/src/components/tasklist/scss/variables.scss +12 -29
- package/src/components/textarea/index.ts +39 -42
- package/src/components/theme/reveal.ts +1 -0
- package/src/components/theme/scss/index.scss +20 -16
- package/src/components/theme/scss/variables.scss +11 -5
- package/src/components/theme/shared.ts +3 -7
- package/src/components/toast/index.ts +7 -8
- package/src/components/toast/scss/index.scss +44 -36
- package/src/components/toast/scss/variables.scss +36 -33
- package/src/components/toolbar/index.ts +1675 -0
- package/src/components/toolbar/scss/index.scss +759 -0
- package/src/components/toolbar/scss/variables.scss +555 -0
- package/src/components/tooltip/menu.ts +301 -220
- package/src/components/tooltip/onclick.ts +18 -3
- package/src/components/tooltip/onhover.ts +13 -9
- package/src/components/tooltip/scss/index.scss +155 -188
- package/src/components/tooltip/scss/variables.scss +151 -135
- package/src/components/tooltip/shared.ts +47 -74
- package/src/components/tooltip/utilities.ts +151 -10
- package/src/components/truncate/index.ts +1 -1
- package/src/components/typewriter/rotate.ts +6 -6
- package/src/components/typewriter/scss/index.scss +14 -5
- package/src/components/uptime/scss/index.scss +8 -15
- package/src/components/uptime/scss/variables.scss +12 -1
- package/src/components/usage-meter/index.ts +1 -1
- package/src/components/usage-meter/scss/index.scss +6 -4
- package/src/components/usage-meter/scss/variables.scss +11 -11
- package/src/css-utilities/box-shadow.scss +0 -1
- package/src/css-utilities/icon.scss +9 -9
- package/src/css-utilities/surface.scss +27 -17
- package/src/modifiers/glass/index.ts +2 -2
- package/src/modifiers/glass/scss/index.scss +2 -2
- package/src/normalize/scss/index.scss +1 -1
- package/src/shared/drag.ts +92 -53
- package/src/shared/placement.ts +145 -0
- package/src/shared/transition.ts +1 -1
- package/src/shared/viewport.ts +1 -7
- package/src/tokens/scss/color.scss +2 -2
- package/src/tokens/scss/scale.scss +5 -1
- package/src/tokens/scss/size.scss +0 -7
- package/storage/svg/angle.svg +1 -0
- package/storage/svg/{chevron-left.svg → arrow.svg} +1 -1
- package/storage/svg/calendar.svg +1 -0
- package/storage/svg/circle-filled.svg +1 -0
- package/storage/svg/cursor-arrow-left.svg +1 -0
- package/storage/svg/cursor-arrow-right.svg +1 -0
- package/storage/svg/fit.svg +1 -0
- package/storage/svg/grip.svg +1 -0
- package/storage/svg/mail.svg +1 -0
- package/storage/svg/{chevron-down.svg → minus.svg} +1 -1
- package/storage/svg/music.svg +1 -0
- package/storage/svg/{chevron-up.svg → rotate-ccw.svg} +1 -1
- package/vite.config.ts +9 -13
- package/NOTICE +0 -232
- package/build/components/dock/index.d.ts +0 -47
- package/build/components/dock/index.js +0 -469
- package/build/components/dock/scss/index.scss +0 -2
- package/build/components/metric/flash.d.ts +0 -12
- package/build/components/metric/flash.js +0 -117
- package/build/components/metric/index.d.ts +0 -44
- package/build/components/metric/index.js +0 -275
- package/build/components/metric/scss/index.scss +0 -2
- package/build/components/pagination/dots.d.ts +0 -23
- package/build/components/pagination/dots.js +0 -115
- package/build/components/panels/dnd.d.ts +0 -47
- package/build/components/panels/dnd.js +0 -114
- package/build/components/panels/group.js +0 -322
- package/build/components/panels/index.d.ts +0 -17
- package/build/components/panels/index.js +0 -524
- package/build/components/panels/model.d.ts +0 -64
- package/build/components/panels/resize.d.ts +0 -9
- package/build/components/panels/scss/index.scss +0 -2
- package/build/components/preview/buttons.d.ts +0 -12
- package/build/components/preview/buttons.js +0 -26
- package/build/components/preview/code.d.ts +0 -8
- package/build/components/preview/code.js +0 -18
- package/build/components/preview/header.js +0 -21
- package/build/components/preview/index.d.ts +0 -37
- package/build/components/preview/index.js +0 -123
- package/build/components/preview/scss/index.scss +0 -2
- package/build/components/preview/source.d.ts +0 -12
- package/build/components/preview/source.js +0 -79
- package/build/components/preview/stage.d.ts +0 -8
- package/build/components/preview/stage.js +0 -28
- package/build/components/textarea/scss/index.scss +0 -2
- package/src/components/dock/index.ts +0 -567
- package/src/components/dock/scss/index.scss +0 -346
- package/src/components/dock/scss/variables.scss +0 -357
- package/src/components/input/scss/_field.scss +0 -39
- package/src/components/input/scss/_scrub.scss +0 -89
- package/src/components/input/scss/_tag.scss +0 -142
- package/src/components/metric/flash.ts +0 -129
- package/src/components/metric/index.ts +0 -307
- package/src/components/metric/scss/_flash.scss +0 -150
- package/src/components/metric/scss/index.scss +0 -155
- package/src/components/metric/scss/variables.scss +0 -233
- package/src/components/pagination/dots.ts +0 -132
- package/src/components/panels/dnd.ts +0 -190
- package/src/components/panels/index.ts +0 -676
- package/src/components/panels/resize.ts +0 -157
- package/src/components/panels/scss/index.scss +0 -379
- package/src/components/panels/scss/variables.scss +0 -197
- package/src/components/preview/buttons.ts +0 -48
- package/src/components/preview/code.ts +0 -28
- package/src/components/preview/header.ts +0 -23
- package/src/components/preview/index.ts +0 -149
- package/src/components/preview/scss/index.scss +0 -158
- package/src/components/preview/scss/variables.scss +0 -149
- package/src/components/preview/source.ts +0 -73
- package/src/components/preview/stage.ts +0 -33
- package/src/components/range/scss/_filter.scss +0 -360
- package/src/components/range/scss/_slider.scss +0 -65
- package/src/components/range/scss/_vertical.scss +0 -10
- package/src/components/textarea/scss/index.scss +0 -72
- package/src/components/textarea/scss/variables.scss +0 -22
- package/storage/svg/amex.svg +0 -1
- package/storage/svg/arrow-down.svg +0 -1
- package/storage/svg/arrow-left.svg +0 -1
- package/storage/svg/arrow-right.svg +0 -1
- package/storage/svg/arrow-up.svg +0 -1
- package/storage/svg/card.svg +0 -1
- package/storage/svg/chip.svg +0 -1
- package/storage/svg/discover.svg +0 -1
- package/storage/svg/mastercard.svg +0 -1
- package/storage/svg/visa.svg +0 -1
- /package/build/components/{panels → shell}/subtree.d.ts +0 -0
- /package/storage/svg/{chevron-right.svg → chevron.svg} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.select-menu-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.select-menu-check{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;filter:blur(var(--blur-400));opacity:0;transition:filter var(--icon-swap-duration) var(--icon-swap-timing-function), opacity var(--icon-swap-duration) var(--icon-swap-timing-function), scale var(--icon-swap-duration) var(--icon-swap-timing-function);scale:.25}@media (prefers-reduced-motion:reduce){.select-menu-check{transition:none}}.select-menu-option[aria-selected=true] .select-menu-check{filter:blur();opacity:1;scale:1}.select-expand-option,.select-menu-trigger{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0}.select-menu-layer{color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.select-menu-option-label,.select-menu-value{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.select,.select-menu-option,.select-menu-panel{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.select,.--active.select-menu-option,.--active.select-menu-panel{--background:var(--background-active)}.select:not(.--active):is(:hover,.--hover),.select-menu-option:not(.--active):is(:hover,.--hover),.select-menu-panel:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.select:not(.--active):is(:active,.--pressed),.select-menu-option:not(.--active):is(:active,.--pressed),.select-menu-panel:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.select,.select-menu-panel{--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.select,.--active.select-menu-panel{--box-shadow:var(--box-shadow-active)}.select:not(.--active):is(:hover,.--hover),.select-menu-panel:not(.--active):is(:hover,.--hover){--box-shadow:var(--box-shadow-hover)}.select:not(.--active):is(:active,.--pressed),.select-menu-panel:not(.--active):is(:active,.--pressed){--box-shadow:var(--box-shadow-pressed)}.select-expand-trigger{--color-active:var(--color-text-300);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}:where([data-theme=dark]) .select-expand-trigger{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-500);--color-pressed:var(--color-text-300)}:where([data-theme=light]) .select-expand-trigger{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}.select,.select-menu-panel{--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-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 + .036) 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 + .036) 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 + .036) 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 + .036) 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.6), 0) * .01 + min(calc(var(--surface-level) + -3.6), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) + -3.6), 0) * .01 + min(calc(var(--surface-level) + -3.6), 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:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}@container style(--surface-level:-3){.select,.select-menu-panel{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){.select,.select-menu-panel{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){.select,.select-menu-panel{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){.select,.select-menu-panel{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){.select,.select-menu-panel{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){.select,.select-menu-panel{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){.select,.select-menu-panel{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .035),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .03),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){.select,.select-menu-panel{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){.select,.select-menu-panel{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.select{--background-active:var(--surface-background-active);--background-default:var(--surface-background-default);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--box-shadow-active:var(--surface-shadow-active);--box-shadow-default:var(--surface-shadow-default);--box-shadow-hover:var(--surface-shadow-hover);--box-shadow-pressed:var(--surface-shadow-pressed);--color:var(--color-text-500);--font-size:calc(var(--font-size-400) * .875);--height:40px;--width:min(260px, 100%);--z-index:0}.select.--active,.select:not(.--active):is(:hover,.--hover){--z-index:9}.select-expand{--spring:linear(0, .0491, .1571, .2846, .4106, .5248, .6231, .7049, .7714, .8243, .866, .8984, .9234, .9425, .957, .9679, .9762, .9824, .987, .9904, .9929, .9948, .9962, .9972, 1);--trigger-border-radius:var(--border-radius-400);--trigger-size:36px}.select-expand-menu.tooltip-content{--background-default:var(--surface-background-default);--border-radius:var(--trigger-border-radius);--border-width:var(--border-width-400);--gap-horizontal:calc(var(--size-100) / 4);--gap-vertical:calc(var(--size-100) / 4);--landing-timing-function:var(--spring);--morph-blur:0px;--option-size:28px;--padding-horizontal:var(--padding-vertical);--padding-vertical:calc((var(--trigger-size) - var(--option-size)) / 2 - var(--border-width));--width:max-content;--z-index:10}@media (prefers-reduced-motion:reduce){.select-expand-menu.tooltip-content{--morph-close-duration:0s;--morph-open-duration:0s}}.select-expand-option{--background:transparent;--border-radius:calc(var(--trigger-border-radius) - (var(--trigger-size) - var(--option-size)) / 2);--color:var(--color-text-300);--transition-duration:.13s;--transition-timing-function:var(--spring)}.select-expand-option:not(.--active):is(:hover,.--hover){--color:var(--color-text-500)}.select-expand-option[aria-checked=true]{--background:var(--surface-background-active);--color:var(--color-text-500)}.select-expand-trigger{--background-hover:var(--surface-background-hover);--border-color-default:var(--surface-border-default);--border-radius:var(--trigger-border-radius);--border-width:var(--border-width-400);--padding-horizontal:0px;--padding-vertical:0px;--transition-duration:.13s;--transition-timing-function:var(--spring)}.select-menu-check.icon{--color:currentColor;--icon-swap-duration:.3s;--icon-swap-timing-function:linear(0, .058, .18, .321, .455, .573, .671, .75, .812, .86, .897, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1);--stroke-width:2.25}.select-menu-chevron.icon{--color:var(--color-text-300)}.select-menu-option{--background-highlighted:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--border-radius:var(--border-radius-400);--gap-horizontal:var(--size-200);--gap-vertical:0px;--height:var(--row-height);--padding-horizontal:var(--size-100);--padding-vertical:0px}.select-menu-option--highlighted,.select-menu-option:focus{--background-default:var(--background-highlighted)}.select-menu-option-detail{--color:var(--color-text-300);--font-size:var(--font-size-300)}.select-menu-panel{--background-default:var(--surface-background-default);--border-radius:var(--border-radius-600);--box-shadow-default:var(--surface-shadow-default);--max-width:calc(90vw - (var(--size-700) * 2));--rows:8;--scale:.96;--transition-duration:.15s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1);--width:auto;--z-index:50}.select-menu-panel:not(.--active){--transition-duration:.1s}@media (prefers-reduced-motion:reduce){.select-menu-panel{--scale:1}}.select-menu-scroll{--color:var(--color-text-300);--height:24px;--transition-duration:.15s;--transition-timing-function:ease-out}.select-menu-scroll-icon.icon{--color:currentColor;--size:14px}.select-menu-scroller{--fade:24px;--fade-bottom:0px;--fade-top:0px;--padding-horizontal:4px;--padding-vertical:4px;--row-height:36px}.select-menu-scroller--down{--fade-bottom:var(--fade)}.select-menu-scroller--up{--fade-top:var(--fade)}.select-menu-trigger{--border-radius:var(--border-radius-300);--gap-horizontal:var(--size-200);--gap-vertical:0px;--padding-end:var(--size-200);--padding-start:var(--size-300)}.select{color:var(--color);font-size:var(--font-size);width:var(--width);z-index:var(--z-index);position:relative}.select-expand{display:inline-flex}.select-expand-menu.tooltip-content{border:var(--border-width) solid var(--surface-border-default);gap:var(--gap-vertical) var(--gap-horizontal);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);translate:calc(50% + ((var(--count) - 1) / 2 - var(--index)) * (var(--option-size) + var(--gap-horizontal))) 50%;z-index:var(--z-index);display:flex}.select-expand--landing:not(.--active)>.select-expand-menu.tooltip-content{transition:translate var(--morph-close-duration) var(--landing-timing-function), visibility 0s linear var(--morph-close-duration)}.select-expand-option{background:var(--background);border-radius:var(--border-radius);color:var(--color);flex:0 0 var(--option-size);height:var(--option-size);transition:background-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);justify-content:center;align-items:center;display:flex}.select-expand-option:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.select-expand-trigger{border:var(--border-width) solid var(--border-color);height:var(--trigger-size);width:var(--trigger-size)}.select-expand-trigger .button-face{transition:none}.select-menu-check{stroke-width:var(--stroke-width)}@media (prefers-reduced-motion:reduce){.select-menu-check{filter:none;scale:1}}.select-menu-layer{height:anchor-size(height);left:anchor(left);top:anchor(top);width:anchor-size(width)}.select-menu-layer>.select-menu-panel{pointer-events:auto}.select-menu-option{background:var(--background);border-radius:var(--border-radius);cursor:default;align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);-webkit-user-select:none;user-select:none;display:flex}.select-menu-option-detail{color:var(--color);font-size:var(--font-size);font-variant-numeric:tabular-nums;flex:none}.select-menu-option-label{flex:1;min-width:0}.select-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);max-width:var(--max-width);opacity:0;min-width:auto;scale:var(--scale);transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function);width:var(--width);z-index:var(--z-index);position:absolute;top:0;left:0;overflow:hidden}.select-menu-panel.--active{opacity:1;scale:1}.select-menu-scroll{color:var(--color);height:var(--height);opacity:0;pointer-events:none;transition:opacity var(--transition-duration) var(--transition-timing-function);justify-content:center;align-items:center;display:flex;position:absolute;inset-inline:0}.select-menu-scroll.--active{opacity:1;pointer-events:auto}.select-menu-scroll--down{bottom:0}.select-menu-scroll--up{top:0}.select-menu-scroller{mask-image:linear-gradient(to bottom, transparent, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent);max-height:calc(var(--rows) * var(--row-height) + var(--padding-vertical) * 2);overscroll-behavior:contain;padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);overflow-y:auto}.select-menu-tag{display:none}.select-menu-trigger{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-inline:var(--padding-start) var(--padding-end);text-align:start;touch-action:manipulation;-webkit-user-select:none;user-select:none;outline:none;width:100%;margin:0;display:flex}.select-menu-trigger:focus-visible{outline:var(--focus-width) solid var(--color);outline-offset:var(--focus-offset)}.select-menu-value{flex:1;min-width:0}}
|
|
1
|
+
@layer components{.select:has(>.select-menu-trigger:disabled){--opacity:.4;cursor:default;opacity:var(--opacity)}@media (forced-colors:active){.select:has(>.select-menu-trigger:disabled){color:graytext;opacity:1}}.select-menu-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.select-menu-check{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;filter:blur(var(--blur-400));opacity:0;transition:filter var(--swap-duration) var(--swap-timing-function), opacity var(--swap-duration) var(--swap-timing-function), scale var(--swap-duration) var(--swap-timing-function);scale:.25}@media (prefers-reduced-motion:reduce){.select-menu-check{transition:none}}.select-menu-option[aria-selected=true] .select-menu-check{filter:blur();opacity:1;scale:1}.select-expand-option,.select-menu-trigger{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0}.select-menu-layer{color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.select-menu-option-label,.select-menu-value{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.select{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.select{--background:var(--background-active)}.select:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.select:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.select--surface{--background-active:var(--surface-background-active);--background-default:var(--surface-background-default);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed)}.select--surface-primary{--background-active:var(--surface-primary-active);--background-default:var(--surface-primary-default);--background-hover:var(--surface-primary-hover);--background-pressed:var(--surface-primary-pressed)}.select-menu-panel{--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-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 + .036) 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 + .036) 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 + .036) 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 + .036) 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, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (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, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / 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:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}@container style(--surface-level:-3){.select-menu-panel{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){.select-menu-panel{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){.select-menu-panel{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){.select-menu-panel{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){.select-menu-panel{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){.select-menu-panel{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){.select-menu-panel{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){.select-menu-panel{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){.select-menu-panel{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.select{--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.select{--border-color:var(--border-color-active)}.select:not(.--active):is(:hover,.--hover){--border-color:var(--border-color-hover)}.select:not(.--active):is(:active,.--pressed){--border-color:var(--border-color-pressed)}.select--surface,.select--surface-primary{--border-color-active:var(--surface-border-active);--border-color-default:var(--surface-border-default);--border-color-hover:var(--surface-border-hover);--border-color-pressed:var(--surface-border-pressed)}.select{--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.select{--box-shadow:var(--box-shadow-active)}.select:not(.--active):is(:hover,.--hover){--box-shadow:var(--box-shadow-hover)}.select:not(.--active):is(:active,.--pressed){--box-shadow:var(--box-shadow-pressed)}.select,.select--surface-primary{--box-shadow-active:var(--surface-shadow-active);--box-shadow-default:var(--surface-shadow-default);--box-shadow-hover:var(--surface-shadow-hover);--box-shadow-pressed:var(--surface-shadow-pressed)}.select{--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.select{--color:var(--color-active)}.select:not(.--active):is(:hover,.--hover){--color:var(--color-hover)}.select:not(.--active):is(:active,.--pressed){--color:var(--color-pressed)}.select-expand-trigger{--color-active:var(--color-text-300);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}:where([data-theme=dark]) .select-expand-trigger{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-500);--color-pressed:var(--color-text-300)}:where([data-theme=light]) .select-expand-trigger{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}.select{--font-size:var(--font-size-400);--height:calc((var(--size-100) * 2) + var(--size-400));--width:min(260px, 100%);--z-index:0}.select--border{--border-color-active:var(--border-color-default);--border-color-default:var(--surface-border-default);--border-color-hover:var(--surface-border-hover);--border-color-pressed:var(--surface-border-pressed);--border-style:solid;--border-width:var(--border-width-400);--border-width-active:var(--border-width-500);--outline-width:0px}.select--border.--active{--outline-width:max(0px, calc(var(--border-width-active) - var(--border-width)))}.select--compact{--font-size:var(--font-size-300);--height:calc((6px * 2) + var(--size-100))}.select--compact>.select-menu-trigger{--padding-start:var(--size-200);--padding-vertical:6px}.select-expand{--spring:linear(0, .0491, .1571, .2846, .4106, .5248, .6231, .7049, .7714, .8243, .866, .8984, .9234, .9425, .957, .9679, .9762, .9824, .987, .9904, .9929, .9948, .9962, .9972, 1);--trigger-border-radius:var(--border-radius-400);--trigger-size:36px}.select-expand-menu.tooltip-content{--background-default:var(--surface-background-default);--border-radius:var(--border-radius-300);--border-width:var(--border-width-400);--gap-horizontal:calc(var(--size-100) / 4);--gap-vertical:calc(var(--size-100) / 4);--landing-timing-function:var(--spring);--morph-blur:0px;--option-size:28px;--padding-horizontal:var(--padding-vertical);--padding-vertical:calc((var(--trigger-size) - var(--option-size)) / 2 - var(--border-width));--width:max-content;--z-index:10}@media (prefers-reduced-motion:reduce){.select-expand-menu.tooltip-content{--morph-close-duration:0s;--morph-open-duration:0s}}.select-expand-option{--background:transparent;--border-radius:calc(var(--trigger-border-radius) - (var(--trigger-size) - var(--option-size)) / 2);--color:var(--color-text-300);--transition-duration:.13s;--transition-timing-function:var(--spring)}.select-expand-option:not(.--active):is(:hover,.--hover){--color:var(--color-text-500)}.select-expand-option[aria-checked=true]{--background:var(--surface-background-active);--color:var(--color-text-500)}.select-expand-trigger{--background-hover:var(--surface-background-hover);--border-color-default:var(--surface-border-default);--border-radius:var(--trigger-border-radius);--border-width:var(--border-width-400);--padding-horizontal:0px;--padding-vertical:0px;--transition-duration:.13s;--transition-timing-function:var(--spring)}.select-menu-check.icon{--color:currentColor;--swap-duration:.3s;--swap-timing-function:linear(0, .058, .18, .321, .455, .573, .671, .75, .812, .86, .897, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1);--stroke-width:2.25}.select-menu-chevron.icon{--color:var(--color-text-300)}.select-menu-option{--border-radius:var(--border-radius-400);--gap-horizontal:var(--size-200);--gap-vertical:0px;--height:var(--row-height);--padding-horizontal:var(--size-100);--padding-vertical:0px}.select-menu-option-detail{--color:var(--color-text-300);--font-size:var(--font-size-300)}.select-menu-panel{--background:var(--surface-background-default);--border-radius:var(--border-radius-400);--box-shadow:var(--surface-shadow-default);--color:var(--color-text-500);--cover:0px;--max-width:calc(90vw - (var(--size-700) * 2));--rows:8;--scale:.96;--transition-duration:.15s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1);--width:auto;--z-index:50}@media (prefers-reduced-motion:reduce){.select-menu-panel{--scale:1}}.select-menu-panel:not(.--active){--transition-duration:.1s}.select-menu-scroll{--color:var(--color-text-300);--height:24px;--transition-duration:.15s;--transition-timing-function:ease-out}.select-menu-scroll-icon.icon{--color:currentColor}.select-menu-scroller{--padding-horizontal:4px;--padding-vertical:4px;--row-height:36px;--scrollbar-behavior:auto;--scrollbar-gutter:auto}.select-menu-trigger{--border-radius:var(--border-radius-400);--gap-horizontal:var(--size-200);--gap-vertical:0px;--padding-end:var(--size-100);--padding-start:var(--size-300);--padding-vertical:var(--size-100)}.select.--active,.select:not(.--active):is(:hover,.--hover){--z-index:9}.select:has(>.select-menu-trigger:disabled){--background:var(--background-default);--border-color:var(--border-color-default);--box-shadow:var(--box-shadow-default)}.select:has(>.select-menu-trigger:focus-visible) .select-menu-panel{--cover:calc(var(--focus-offset) + var(--focus-width))}.select{color:var(--color);font-size:var(--font-size);width:var(--width);z-index:var(--z-index);position:relative}.select--border>.select-menu-trigger{border:var(--border-width) var(--border-style) var(--border-color);outline:var(--outline-width) solid var(--border-color);outline-offset:calc((var(--border-width) + var(--outline-width)) * -1);padding-inline:calc(var(--padding-start) - var(--border-width)) calc(var(--padding-end) - var(--border-width))}.select-expand{display:inline-flex}.select-expand-menu.tooltip-content{border:var(--border-width) solid var(--surface-border-default);gap:var(--gap-vertical) var(--gap-horizontal);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);transform-origin:50%;translate:calc(50% + ((var(--count) - 1) / 2 - var(--index)) * (var(--option-size) + var(--gap-horizontal))) 50%;z-index:var(--z-index);display:flex;bottom:50%;right:50%}.select-expand--landing:not(.--active)>.select-expand-menu.tooltip-content{transition:translate var(--morph-close-duration) var(--landing-timing-function), visibility 0s linear var(--morph-close-duration)}.select-expand-option{background:var(--background);border-radius:var(--border-radius);color:var(--color);flex:0 0 var(--option-size);height:var(--option-size);transition-duration:var(--transition-duration);transition-property:background-color,color;transition-timing-function:var(--transition-timing-function);justify-content:center;align-items:center;display:flex}.select-expand-option:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.select-expand-trigger{border:var(--border-width) solid var(--border-color);height:var(--trigger-size);width:var(--trigger-size)}.select-expand-trigger .button-face{transition:none}.select-menu-check{stroke-width:var(--stroke-width)}@media (prefers-reduced-motion:reduce){.select-menu-check{filter:none;scale:1}}.select-menu-layer{height:anchor-size(height);left:anchor(left);top:anchor(top);width:anchor-size(width)}.select-menu-option{border-radius:var(--border-radius);cursor:default;align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);-webkit-user-select:none;user-select:none;display:flex}.select-menu-option-detail{color:var(--color);font-size:var(--font-size);font-variant-numeric:tabular-nums;flex:none}.select-menu-option-label{flex:1;min-width:0}.select-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);box-sizing:content-box;color:var(--color);margin:calc(var(--cover) * -1);max-width:var(--max-width);opacity:0;padding:var(--cover);pointer-events:auto;scale:var(--scale);transition-duration:var(--transition-duration);transition-property:opacity,scale,translate;transition-timing-function:var(--transition-timing-function);width:var(--width);z-index:var(--z-index);position:absolute;top:0;left:0;overflow:hidden}.select-menu-panel.--active{opacity:1;scale:1}.select-menu-scroll{color:var(--color);height:var(--height);opacity:0;pointer-events:none;transition:opacity var(--transition-duration) var(--transition-timing-function);justify-content:center;align-items:center;display:flex;position:absolute;inset-inline:0}.select-menu-scroll--down{bottom:0}.select-menu-scroll--up{top:0}.select-menu-scroll.--active{opacity:1;pointer-events:auto}.select-menu-scroller{max-height:calc(var(--rows) * var(--row-height) + var(--padding-vertical) * 2);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal)}.select-menu-trigger{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);min-height:var(--height);padding-block:max(0px, var(--padding-vertical) - var(--border-width));padding-inline:var(--padding-start) var(--padding-end);text-align:start;touch-action:manipulation;-webkit-user-select:none;user-select:none;outline:none;width:100%;margin:0;display:flex}.select-menu-trigger:disabled{cursor:not-allowed}.select-menu-trigger:focus-visible{outline:var(--focus-width) solid var(--color);outline-offset:var(--focus-offset)}.select-menu-value{flex:1;min-width:0}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,36 +1,52 @@
|
|
|
1
|
+
import { ReactiveArray } from '@esportsplus/reactivity';
|
|
1
2
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { type Renderable } from '@esportsplus/template';
|
|
3
|
-
import type
|
|
4
|
-
import type {
|
|
3
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
4
|
+
import { type SortableOptions } from '../sortable/index.js';
|
|
5
|
+
import type { Item } from '../tooltip/menu.js';
|
|
6
|
+
import { type Group, type Layout, type Surface } from './model.js';
|
|
5
7
|
import type state from './model.js';
|
|
6
8
|
type Catalog = Record<string, Kind>;
|
|
7
9
|
type Context = {
|
|
8
10
|
add: (kind: string, group?: string) => void;
|
|
11
|
+
addable: [string, Kind][];
|
|
9
12
|
catalog: Catalog;
|
|
10
13
|
choose: (e: MouseEvent, group: string) => void;
|
|
14
|
+
empty: ((group?: string) => Renderable<unknown>) | undefined;
|
|
11
15
|
held: (e: MouseEvent) => boolean;
|
|
12
16
|
icons: boolean;
|
|
13
|
-
|
|
17
|
+
inset: (group: string, edge: 'left' | 'right') => boolean;
|
|
14
18
|
menu: (e: MouseEvent, group: string, surface: string) => void;
|
|
15
19
|
pick: (group: string) => void;
|
|
16
20
|
picked: (group: string) => boolean;
|
|
17
21
|
slot: (surface: string) => Renderable<unknown>;
|
|
22
|
+
sorting: (strip: ReactiveArray<Surface>, group: string) => SortableOptions<Surface>;
|
|
18
23
|
state: ReturnType<typeof state>;
|
|
24
|
+
sweep: (e: PointerEvent, group: string) => void;
|
|
25
|
+
switcher: (e: MouseEvent) => void;
|
|
26
|
+
switches: () => boolean;
|
|
19
27
|
};
|
|
20
28
|
type Kind = {
|
|
29
|
+
addable?: boolean;
|
|
21
30
|
description?: string;
|
|
22
31
|
icon?: string;
|
|
32
|
+
menu?: (surface: () => string) => Item[];
|
|
23
33
|
multiple?: boolean;
|
|
24
34
|
render: (surface: Surface) => Renderable<unknown>;
|
|
25
35
|
shortcut?: string;
|
|
36
|
+
tab?: (surface: Surface) => {
|
|
37
|
+
attributes?: Attributes;
|
|
38
|
+
badges?: () => Renderable<unknown>;
|
|
39
|
+
icon?: () => Renderable<unknown>;
|
|
40
|
+
};
|
|
26
41
|
title: string | ((surface: Surface) => string);
|
|
42
|
+
tooltip?: (surface: Surface) => string;
|
|
27
43
|
};
|
|
28
44
|
type Live = () => {
|
|
29
45
|
group: Group;
|
|
30
46
|
layout: Layout;
|
|
31
47
|
};
|
|
32
48
|
declare function title(context: Context, surface: Surface): string;
|
|
33
|
-
declare const launcher: (context: Context, group?: string) =>
|
|
49
|
+
declare const launcher: (context: Context, group?: string) => Renderable<unknown>;
|
|
34
50
|
declare const group: (context: Context, live: Live) => template_u1.Element;
|
|
35
51
|
export { group, launcher, title };
|
|
36
52
|
export type { Catalog, Context, Kind };
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import { ReactiveArray, computed, effect, read } from '@esportsplus/reactivity';
|
|
3
|
+
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import highlight from '../highlight/index.js';
|
|
5
|
+
import icon from '../icon/index.js';
|
|
6
|
+
import sortable from '../sortable/index.js';
|
|
7
|
+
import scrollbar from '../../modifiers/scrollbar/index.js';
|
|
8
|
+
import { fixed } from './model.js';
|
|
9
|
+
import subtree from './subtree.js';
|
|
10
|
+
import close from '@esportsplus/ui/svg/close.svg';
|
|
11
|
+
import collapse from '@esportsplus/ui/svg/collapse.svg';
|
|
12
|
+
import expand from '@esportsplus/ui/svg/expand.svg';
|
|
13
|
+
import plus from '@esportsplus/ui/svg/plus.svg';
|
|
14
|
+
import stack from '@esportsplus/ui/svg/stack.svg';
|
|
15
|
+
const template_0hnf69a2 = template_u1.template(`<div><!--$-->`, true);
|
|
16
|
+
const template_0hnf69a5 = template_u1.template(`<span class='shell-tab-label'>`, true);
|
|
17
|
+
const template_0hnf69a6 = template_u1.template(`<div aria-hidden='true' class='shell-edge shell-edge--bottom' data-side='bottom'>`, true);
|
|
18
|
+
const template_0hnf69a7 = template_u1.template(`<div aria-hidden='true' class='shell-edge shell-edge--left' data-side='left'>`, true);
|
|
19
|
+
const template_0hnf69a8 = template_u1.template(`<div aria-hidden='true' class='shell-edge shell-edge--right' data-side='right'>`, true);
|
|
20
|
+
const template_0hnf69a9 = template_u1.template(`<div aria-hidden='true' class='shell-edge shell-edge--top' data-side='top'>`, true);
|
|
21
|
+
const template_0hnf69ab = template_u1.template(`<div aria-hidden='true'>`, true);
|
|
22
|
+
const template_0hnf69ad = template_u1.template(`<div role='tab'><!--$-->`, true);
|
|
23
|
+
const template_0hnf69ag = template_u1.template(`<span class='shell-tab-label'></span><!--$--><button tabindex='-1' type='button'>`);
|
|
24
|
+
const template_0hnf69an = template_u1.template(`<div aria-label='Open a panel' tabindex='0'><div class='shell-launcher-content'><div class='shell-launcher-header'><span class='shell-launcher-title'>Open a panel</span><span class='shell-launcher-description'>Choose what to show in this group.</span></div><div class='shell-launcher-cards'>`, true);
|
|
25
|
+
const template_0hnf69aq = template_u1.template(`<button type='button'><span class='shell-launcher-card-title'><!--$--></span><!--$-->`, true);
|
|
26
|
+
const template_0hnf69av = template_u1.template(`<span class='shell-launcher-card-description'>`, true);
|
|
27
|
+
const template_0hnf69ax = template_u1.template(`<kbd class='button button--kbd shell-launcher-card-key'>`, true);
|
|
28
|
+
const template_0hnf69az = template_u1.template(`<section><!--$--><div class='shell-body --scrollbar-scope'><!--$-->`, true);
|
|
29
|
+
const template_0hnf69a14 = template_u1.template(`<div><div aria-label='Tabs' role='tablist'><!--$--><!--$--></div><!--$--><!--$--><button aria-label='Close group' title='Close group' type='button'>`, true);
|
|
30
|
+
const template_0hnf69a1c = template_u1.template(`<button aria-haspopup='menu' aria-label='Add panel' title='Add panel' type='button'>`, true);
|
|
31
|
+
const template_0hnf69a1e = template_u1.template(`<button aria-haspopup='menu' aria-label='Switch group' title='Switch group' type='button'>`, true);
|
|
32
|
+
const template_0hnf69a1g = template_u1.template(`<button type='button'>`, true);
|
|
33
|
+
const template_0hnf69a1i = template_u1.template(`<button aria-label='Expand this group' class='shell-expand' type='button'>`, true);
|
|
34
|
+
class ReactiveObject_0hnf69a0 extends reactivity_u0.ReactiveObject {
|
|
35
|
+
#index = this[reactivity_u0.SIGNAL](-1);
|
|
36
|
+
constructor() {
|
|
37
|
+
super(null);
|
|
38
|
+
}
|
|
39
|
+
get index() {
|
|
40
|
+
return reactivity_u0.read(this.#index);
|
|
41
|
+
}
|
|
42
|
+
set index(_v0) {
|
|
43
|
+
reactivity_u0.write(this.#index, _v0);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const BLOCKING = 'dialog[open], [popover]:popover-open';
|
|
47
|
+
const SIDES = ['bottom', 'left', 'right', 'top'];
|
|
48
|
+
function copy(context, surface) {
|
|
49
|
+
let only = context.icons && !!context.catalog[surface.kind]?.icon;
|
|
50
|
+
{
|
|
51
|
+
let root_0hnf69a1 = template_0hnf69a2(), element_0hnf69a3 = root_0hnf69a1.firstChild;
|
|
52
|
+
template_u1.slot(element_0hnf69a3, glyph(context, surface));
|
|
53
|
+
template_u1.slot(root_0hnf69a1, !only && (() => {
|
|
54
|
+
let root_0hnf69a4 = template_0hnf69a5();
|
|
55
|
+
new template_u1.EffectSlot(root_0hnf69a4, () => title(context, surface), 1);
|
|
56
|
+
return root_0hnf69a4;
|
|
57
|
+
})(), 1);
|
|
58
|
+
template_u1.setClass(root_0hnf69a1, ["button shell-tab --active", only ? 'shell-tab--icon' : '']);
|
|
59
|
+
return root_0hnf69a1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function edge(side) {
|
|
63
|
+
return (side === "bottom" ? template_0hnf69a6() : side === "left" ? template_0hnf69a7() : side === "right" ? template_0hnf69a8() : side === "top" ? template_0hnf69a9() : (() => {
|
|
64
|
+
let root_0hnf69aa = template_0hnf69ab();
|
|
65
|
+
template_u1.setProperty(root_0hnf69aa, 'data-side', side);
|
|
66
|
+
template_u1.setClass(root_0hnf69aa, ["shell-edge", "shell-edge--" + (side)]);
|
|
67
|
+
return root_0hnf69aa;
|
|
68
|
+
})());
|
|
69
|
+
}
|
|
70
|
+
function glyph(context, surface) {
|
|
71
|
+
let kind = context.catalog[surface.kind];
|
|
72
|
+
return kind?.icon && icon({ 'aria-hidden': 'true', class: 'shell-tab-icon' }, kind.icon);
|
|
73
|
+
}
|
|
74
|
+
function tab(context, live, surface, attributes) {
|
|
75
|
+
let active = () => live().group.active === surface.id, { group } = live(), kind = context.catalog[surface.kind], label = () => title(context, surface), only = context.icons && !!kind?.icon, own = kind?.tab?.(surface);
|
|
76
|
+
{
|
|
77
|
+
let root_0hnf69ac = template_0hnf69ad(), element_0hnf69ae = root_0hnf69ac.firstChild;
|
|
78
|
+
template_u1.slot(element_0hnf69ae, own?.icon ?? glyph(context, surface));
|
|
79
|
+
template_u1.slot(root_0hnf69ac, !only && (() => {
|
|
80
|
+
let root_0hnf69af = template_0hnf69ag(), element_0hnf69ah = root_0hnf69af.firstChild, element_0hnf69ai = element_0hnf69ah.nextSibling, element_0hnf69aj = element_0hnf69ai.nextSibling;
|
|
81
|
+
new template_u1.EffectSlot(element_0hnf69ah, label, 1);
|
|
82
|
+
template_u1.slot(element_0hnf69ai, own?.badges);
|
|
83
|
+
template_u1.slot(element_0hnf69aj, icon({ 'aria-hidden': 'true' }, close), 1);
|
|
84
|
+
template_u1.setProperty(element_0hnf69aj, 'aria-label', () => `Close ${label()}`);
|
|
85
|
+
template_u1.delegate(element_0hnf69aj, 'click', (e) => {
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
void context.state.close(surface.id);
|
|
88
|
+
});
|
|
89
|
+
template_u1.delegate(element_0hnf69aj, 'pointerdown', (e) => e.stopPropagation());
|
|
90
|
+
template_u1.setClass(element_0hnf69aj, ["button button--surface-primary shell-tab-close"]);
|
|
91
|
+
return root_0hnf69af;
|
|
92
|
+
})(), 1);
|
|
93
|
+
template_u1.setProperty(root_0hnf69ac, 'aria-selected', () => String(active()));
|
|
94
|
+
template_u1.setProperty(root_0hnf69ac, 'data-surface', surface.id);
|
|
95
|
+
let attributes_0hnf69ak = attributes;
|
|
96
|
+
template_u1.setProperties(root_0hnf69ac, attributes_0hnf69ak, true);
|
|
97
|
+
template_u1.delegate(root_0hnf69ac, 'auxclick', (e) => {
|
|
98
|
+
if (e.button === 1) {
|
|
99
|
+
e.preventDefault();
|
|
100
|
+
void context.state.close(surface.id);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
template_u1.delegate(root_0hnf69ac, 'click', () => context.state.activate(surface.id));
|
|
104
|
+
template_u1.delegate(root_0hnf69ac, 'contextmenu', (e) => context.menu(e, group.id, surface.id));
|
|
105
|
+
template_u1.delegate(root_0hnf69ac, 'keydown', (e) => {
|
|
106
|
+
if (e.key === 'Delete') {
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
void context.state.close(surface.id);
|
|
109
|
+
}
|
|
110
|
+
else if (e.key === 'Enter' || e.key === ' ') {
|
|
111
|
+
e.preventDefault();
|
|
112
|
+
context.state.activate(surface.id);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
template_u1.delegate(root_0hnf69ac, 'mousedown', (e) => {
|
|
116
|
+
if (e.button === 1) {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
template_u1.setProperty(root_0hnf69ac, 'tabindex', () => active() ? 0 : -1);
|
|
121
|
+
template_u1.setProperty(root_0hnf69ac, 'title', () => kind?.tooltip?.(surface) ?? label());
|
|
122
|
+
let attributes_0hnf69al = own?.attributes;
|
|
123
|
+
template_u1.setProperties(root_0hnf69ac, attributes_0hnf69al, true);
|
|
124
|
+
template_u1.setClass(root_0hnf69ac, ["button shell-tab", attributes_0hnf69ak?.class, [
|
|
125
|
+
() => active() && '--active',
|
|
126
|
+
only && 'shell-tab--icon'
|
|
127
|
+
], attributes_0hnf69al?.class]);
|
|
128
|
+
template_u1.setStyle(root_0hnf69ac, ["", attributes_0hnf69ak?.style, attributes_0hnf69al?.style]);
|
|
129
|
+
return root_0hnf69ac;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function title(context, surface) {
|
|
133
|
+
let kind = context.catalog[surface.kind];
|
|
134
|
+
if (!kind) {
|
|
135
|
+
return surface.id;
|
|
136
|
+
}
|
|
137
|
+
return typeof kind.title === 'function' ? kind.title(surface) : kind.title;
|
|
138
|
+
}
|
|
139
|
+
const launcher = (context, group) => {
|
|
140
|
+
if (context.empty) {
|
|
141
|
+
return context.empty(group);
|
|
142
|
+
}
|
|
143
|
+
let highlighted = new ReactiveObject_0hnf69a0(), kinds = context.addable;
|
|
144
|
+
function current() {
|
|
145
|
+
return group === undefined || context.state.layout.active === group;
|
|
146
|
+
}
|
|
147
|
+
function open(index) {
|
|
148
|
+
let entry = kinds[index];
|
|
149
|
+
if (entry) {
|
|
150
|
+
context.add(entry[0], group);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
{
|
|
154
|
+
let root_0hnf69am = template_0hnf69an(), element_0hnf69ao = root_0hnf69am.firstElementChild.firstElementChild.nextElementSibling;
|
|
155
|
+
template_u1.slot(element_0hnf69ao, kinds.map(([, kind], index) => {
|
|
156
|
+
let root_0hnf69ap = template_0hnf69aq(), element_0hnf69ar = root_0hnf69ap.firstElementChild.firstChild, element_0hnf69as = root_0hnf69ap.firstElementChild, element_0hnf69at = root_0hnf69ap.firstChild.nextSibling;
|
|
157
|
+
template_u1.slot(element_0hnf69ar, kind.icon && icon({ 'aria-hidden': 'true', class: 'shell-launcher-card-icon' }, kind.icon));
|
|
158
|
+
template_u1.slot(element_0hnf69as, typeof kind.title === 'function' ? kind.title({ id: '', kind: kinds[index][0] }) : kind.title, 1);
|
|
159
|
+
template_u1.slot(element_0hnf69at, kind.description && (() => {
|
|
160
|
+
let root_0hnf69au = template_0hnf69av();
|
|
161
|
+
template_u1.slot(root_0hnf69au, kind.description, 1);
|
|
162
|
+
return root_0hnf69au;
|
|
163
|
+
})());
|
|
164
|
+
template_u1.slot(root_0hnf69ap, kind.shortcut && (() => {
|
|
165
|
+
let root_0hnf69aw = template_0hnf69ax();
|
|
166
|
+
template_u1.slot(root_0hnf69aw, kind.shortcut, 1);
|
|
167
|
+
return root_0hnf69aw;
|
|
168
|
+
})(), 1);
|
|
169
|
+
template_u1.delegate(root_0hnf69ap, 'click', () => open(index));
|
|
170
|
+
template_u1.direct(root_0hnf69ap, 'pointerenter', () => {
|
|
171
|
+
highlighted.index = index;
|
|
172
|
+
});
|
|
173
|
+
template_u1.direct(root_0hnf69ap, 'pointerleave', () => {
|
|
174
|
+
if (highlighted.index === index) {
|
|
175
|
+
highlighted.index = -1;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
template_u1.setClass(root_0hnf69ap, ["button shell-launcher-card", () => highlighted.index === index && '--active']);
|
|
179
|
+
return root_0hnf69ap;
|
|
180
|
+
}), 1);
|
|
181
|
+
template_u1.onconnect(root_0hnf69am, (element) => {
|
|
182
|
+
let active = document.activeElement;
|
|
183
|
+
if (current() && (!active || active === document.body || !active.isConnected)) {
|
|
184
|
+
element.focus({ preventScroll: true });
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
template_u1.delegate(root_0hnf69am, 'keydown', (e) => {
|
|
188
|
+
let n = kinds.length;
|
|
189
|
+
if (!n || e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {
|
|
193
|
+
e.preventDefault();
|
|
194
|
+
highlighted.index = (highlighted.index + 1) % n;
|
|
195
|
+
}
|
|
196
|
+
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
|
|
197
|
+
e.preventDefault();
|
|
198
|
+
highlighted.index = highlighted.index < 1 ? n - 1 : highlighted.index - 1;
|
|
199
|
+
}
|
|
200
|
+
else if (e.key === 'Enter' && !e.target.closest('button')) {
|
|
201
|
+
e.preventDefault();
|
|
202
|
+
open(highlighted.index);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
template_u1.onwindow(root_0hnf69am, 'keydown', (e) => {
|
|
206
|
+
if (e.defaultPrevented || e.isComposing || e.altKey || e.ctrlKey || e.metaKey || !current()) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
let target = e.target;
|
|
210
|
+
if (document.querySelector(BLOCKING) || target.closest?.('input, select, textarea, [contenteditable]')) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
let index = kinds.findIndex(([, kind]) => kind.shortcut?.toLowerCase() === e.key.toLowerCase());
|
|
214
|
+
if (index !== -1) {
|
|
215
|
+
e.preventDefault();
|
|
216
|
+
open(index);
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
template_u1.setClass(root_0hnf69am, ["shell-launcher"]);
|
|
220
|
+
return root_0hnf69am;
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const group = (context, live) => {
|
|
224
|
+
let { group } = live(), stationary = fixed(group), selected = computed(() => live().group.active), strip = new ReactiveArray(group.surfaces), tabs, list = sortable(strip, (surface, attributes) => tab(context, live, surface, attributes), {
|
|
225
|
+
...context.sorting(strip, group.id),
|
|
226
|
+
drag: (surface) => copy(context, surface)
|
|
227
|
+
});
|
|
228
|
+
function maximize(e) {
|
|
229
|
+
if (e.defaultPrevented || e.target.closest('.shell-action, .shell-add, .shell-tab-close')) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (!context.state.back()) {
|
|
233
|
+
context.state.maximize(group.id);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
effect(() => {
|
|
237
|
+
read(selected);
|
|
238
|
+
queueMicrotask(() => {
|
|
239
|
+
tabs?.querySelector('.shell-tab.--active')?.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
{
|
|
243
|
+
let root_0hnf69ay = template_0hnf69az(), element_0hnf69a10 = root_0hnf69ay.firstChild, element_0hnf69a11 = root_0hnf69ay.firstElementChild.firstChild, element_0hnf69a12 = root_0hnf69ay.firstElementChild;
|
|
244
|
+
template_u1.slot(element_0hnf69a10, !stationary && (() => {
|
|
245
|
+
let root_0hnf69a13 = template_0hnf69a14(), element_0hnf69a15 = root_0hnf69a13.firstElementChild, element_0hnf69a16 = element_0hnf69a15.firstChild, element_0hnf69a17 = element_0hnf69a16.nextSibling, element_0hnf69a18 = root_0hnf69a13.firstChild.nextSibling, element_0hnf69a19 = element_0hnf69a18.nextSibling, element_0hnf69a1a = element_0hnf69a15.nextElementSibling;
|
|
246
|
+
template_u1.slot(element_0hnf69a16, highlight({ class: 'shell-tabs-highlight', target: '.shell-tab' }));
|
|
247
|
+
template_u1.slot(element_0hnf69a17, list.render());
|
|
248
|
+
template_u1.slot(element_0hnf69a15, context.addable.length > 0 && (() => {
|
|
249
|
+
let root_0hnf69a1b = template_0hnf69a1c();
|
|
250
|
+
template_u1.slot(root_0hnf69a1b, icon({ 'aria-hidden': 'true' }, plus), 1);
|
|
251
|
+
template_u1.delegate(root_0hnf69a1b, 'click', (e) => context.choose(e, group.id));
|
|
252
|
+
template_u1.setClass(root_0hnf69a1b, ["button shell-add"]);
|
|
253
|
+
return root_0hnf69a1b;
|
|
254
|
+
})(), 1);
|
|
255
|
+
template_u1.slot(element_0hnf69a18, group.placement === undefined && (() => context.switches() && (() => {
|
|
256
|
+
let root_0hnf69a1d = template_0hnf69a1e();
|
|
257
|
+
template_u1.slot(root_0hnf69a1d, icon({ 'aria-hidden': 'true' }, stack), 1);
|
|
258
|
+
template_u1.delegate(root_0hnf69a1d, 'click', context.switcher);
|
|
259
|
+
template_u1.setClass(root_0hnf69a1d, ["button shell-action shell-switch"]);
|
|
260
|
+
return root_0hnf69a1d;
|
|
261
|
+
})()));
|
|
262
|
+
template_u1.slot(element_0hnf69a19, group.placement === 'bottom' && (() => {
|
|
263
|
+
let root_0hnf69a1f = template_0hnf69a1g();
|
|
264
|
+
new template_u1.EffectSlot(root_0hnf69a1f, () => icon({ 'aria-hidden': 'true' }, live().layout.bottom.maximized ? collapse : expand), 1);
|
|
265
|
+
template_u1.setProperty(root_0hnf69a1f, 'aria-label', () => live().layout.bottom.maximized ? 'Restore panel size' : 'Maximize panel');
|
|
266
|
+
template_u1.setProperty(root_0hnf69a1f, 'aria-pressed', () => String(live().layout.bottom.maximized));
|
|
267
|
+
template_u1.delegate(root_0hnf69a1f, 'click', () => context.state.maximize(group.id));
|
|
268
|
+
template_u1.setProperty(root_0hnf69a1f, 'title', () => live().layout.bottom.maximized ? 'Restore panel size' : 'Maximize panel');
|
|
269
|
+
template_u1.setClass(root_0hnf69a1f, ["button shell-action"]);
|
|
270
|
+
return root_0hnf69a1f;
|
|
271
|
+
})());
|
|
272
|
+
template_u1.slot(element_0hnf69a1a, icon({ 'aria-hidden': 'true' }, close), 1);
|
|
273
|
+
template_u1.delegate(element_0hnf69a1a, 'click', () => void context.state.closeGroup(group.id));
|
|
274
|
+
template_u1.setClass(element_0hnf69a1a, ["button shell-action"]);
|
|
275
|
+
let attributes_0hnf69a1h = scrollbar({ hidden: true });
|
|
276
|
+
template_u1.setProperties(element_0hnf69a15, attributes_0hnf69a1h, true);
|
|
277
|
+
template_u1.setProperties(element_0hnf69a15, list.attributes);
|
|
278
|
+
template_u1.onconnect(element_0hnf69a15, (element) => {
|
|
279
|
+
tabs = element;
|
|
280
|
+
});
|
|
281
|
+
template_u1.setClass(element_0hnf69a15, ["shell-tabs", attributes_0hnf69a1h?.class]);
|
|
282
|
+
template_u1.setStyle(element_0hnf69a15, ["", attributes_0hnf69a1h?.style]);
|
|
283
|
+
template_u1.delegate(root_0hnf69a13, 'dblclick', maximize);
|
|
284
|
+
template_u1.setClass(root_0hnf69a13, ["shell-header"]);
|
|
285
|
+
return root_0hnf69a13;
|
|
286
|
+
})());
|
|
287
|
+
template_u1.slot(element_0hnf69a11, subtree(() => live().group.active ?? '', () => {
|
|
288
|
+
let { active, surfaces } = live().group;
|
|
289
|
+
if (surfaces.length === 0) {
|
|
290
|
+
return launcher(context, group.id);
|
|
291
|
+
}
|
|
292
|
+
return active === null ? '' : context.slot(active);
|
|
293
|
+
}));
|
|
294
|
+
new template_u1.EffectSlot(element_0hnf69a12, () => {
|
|
295
|
+
let { group: current, layout } = live();
|
|
296
|
+
return current.placement !== 'bottom' && layout.maximized !== null && layout.maximized !== current.id && template_0hnf69a1i();
|
|
297
|
+
}, 1);
|
|
298
|
+
template_u1.slot(root_0hnf69ay, !(stationary && group.placement) && SIDES.map(edge), 1);
|
|
299
|
+
template_u1.setProperty(root_0hnf69ay, 'data-group', group.id);
|
|
300
|
+
template_u1.onconnect(root_0hnf69ay, (element, on) => {
|
|
301
|
+
let own = (e) => e.target?.closest?.('.shell-group') === element;
|
|
302
|
+
on(element, 'pointerdown', (e) => {
|
|
303
|
+
if (own(e) && e.target.closest('.shell-expand')) {
|
|
304
|
+
context.state.maximize(group.id);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
context.state.focus(group.id);
|
|
308
|
+
}
|
|
309
|
+
}, { direct: true });
|
|
310
|
+
on(element, 'pointerdown', (e) => {
|
|
311
|
+
if (context.held(e) && own(e)) {
|
|
312
|
+
e.preventDefault();
|
|
313
|
+
e.stopPropagation();
|
|
314
|
+
context.sweep(e, group.id);
|
|
315
|
+
}
|
|
316
|
+
}, { capture: true });
|
|
317
|
+
on(element, 'click', (e) => {
|
|
318
|
+
if (context.held(e) && own(e)) {
|
|
319
|
+
e.preventDefault();
|
|
320
|
+
e.stopPropagation();
|
|
321
|
+
context.pick(group.id);
|
|
322
|
+
}
|
|
323
|
+
}, { capture: true });
|
|
324
|
+
});
|
|
325
|
+
template_u1.setClass(root_0hnf69ay, ["shell-group", [
|
|
326
|
+
() => context.state.layout.active === group.id && '--active',
|
|
327
|
+
group.placement && `shell-group--${group.placement}`,
|
|
328
|
+
stationary && 'shell-group--static',
|
|
329
|
+
() => context.inset(group.id, 'left') && 'shell-group--inset-left',
|
|
330
|
+
() => context.inset(group.id, 'right') && 'shell-group--inset-right',
|
|
331
|
+
() => context.picked(group.id) && 'shell-group--picked'
|
|
332
|
+
]]);
|
|
333
|
+
return root_0hnf69ay;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
export { group, launcher, title };
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { type Renderable } from '@esportsplus/template';
|
|
3
|
-
import '
|
|
2
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
|
+
import { type Catalog, type Kind } from './group.js';
|
|
4
|
+
import state, { type Layout, type Node, type Placement, type Saved, type Store, type Surface } from './model.js';
|
|
5
|
+
import { type Edge, type Options } from './sidebar.js';
|
|
4
6
|
import './scss/index.scss';
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
state:
|
|
13
|
-
active: boolean;
|
|
14
|
-
};
|
|
7
|
+
type A = Attributes & {
|
|
8
|
+
catalog: Catalog;
|
|
9
|
+
empty?: (group?: string) => Renderable<unknown>;
|
|
10
|
+
icons?: boolean;
|
|
11
|
+
narrow?: number;
|
|
12
|
+
onconnect?: never;
|
|
13
|
+
sidebars?: Partial<Record<Edge, Options>>;
|
|
14
|
+
state: ReturnType<typeof state>;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
declare function close(side: Pick<Side, 'id' | 'state'>): void;
|
|
18
|
-
declare const shell: (sides: Sides, content: Renderable<unknown>) => template_u1.Element;
|
|
16
|
+
declare const shell: template_u1.Factory<A, Renderable<any>, Renderable<any>, {}>;
|
|
19
17
|
declare const layout: typeof shell & {
|
|
20
|
-
|
|
18
|
+
state: typeof state;
|
|
21
19
|
};
|
|
22
20
|
export default layout;
|
|
23
|
-
export type {
|
|
21
|
+
export type { Catalog, Kind, Layout, Node, Placement, Saved, Store, Surface };
|