@esportsplus/ui 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.audit/audit.json +4 -92
- package/.audit/rules-audit.md +4 -18
- 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 -7
- package/build/components/index.js +3 -7
- 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 +9 -12
- 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 -7
- 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 -69
- 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/build/components/cc/index.d.ts +0 -33
- package/build/components/cc/index.js +0 -603
- package/build/components/cc/scss/index.scss +0 -2
- 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/cc/index.ts +0 -562
- package/src/components/cc/scss/index.scss +0 -416
- package/src/components/cc/scss/variables.scss +0 -257
- 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
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import { effect, flush } from '@esportsplus/reactivity';
|
|
3
|
+
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import button from '../button/index.js';
|
|
5
|
+
import { drag } from '../../shared/drag.js';
|
|
6
|
+
import { separator } from './resize.js';
|
|
7
|
+
const template_0cca1t32 = template_u1.template(`<div aria-hidden='true'><span class='shell-edge-handle'>`, true);
|
|
8
|
+
const template_0cca1t36 = template_u1.template(`<aside>`, true);
|
|
9
|
+
class ReactiveObject_0cca1t30 extends reactivity_u0.ReactiveObject {
|
|
10
|
+
#dragging = this[reactivity_u0.SIGNAL](false);
|
|
11
|
+
#offset = this[reactivity_u0.SIGNAL](0);
|
|
12
|
+
#peeking = this[reactivity_u0.SIGNAL](false);
|
|
13
|
+
#space;
|
|
14
|
+
#translate;
|
|
15
|
+
constructor(_p0, _p1) {
|
|
16
|
+
super(null);
|
|
17
|
+
this.#space = this[reactivity_u0.SIGNAL](_p0);
|
|
18
|
+
this.#translate = this[reactivity_u0.SIGNAL](_p1);
|
|
19
|
+
}
|
|
20
|
+
get dragging() {
|
|
21
|
+
return reactivity_u0.read(this.#dragging);
|
|
22
|
+
}
|
|
23
|
+
set dragging(_v0) {
|
|
24
|
+
reactivity_u0.write(this.#dragging, _v0);
|
|
25
|
+
}
|
|
26
|
+
get offset() {
|
|
27
|
+
return reactivity_u0.read(this.#offset);
|
|
28
|
+
}
|
|
29
|
+
set offset(_v1) {
|
|
30
|
+
reactivity_u0.write(this.#offset, _v1);
|
|
31
|
+
}
|
|
32
|
+
get peeking() {
|
|
33
|
+
return reactivity_u0.read(this.#peeking);
|
|
34
|
+
}
|
|
35
|
+
set peeking(_v2) {
|
|
36
|
+
reactivity_u0.write(this.#peeking, _v2);
|
|
37
|
+
}
|
|
38
|
+
get space() {
|
|
39
|
+
return reactivity_u0.read(this.#space);
|
|
40
|
+
}
|
|
41
|
+
set space(_v3) {
|
|
42
|
+
reactivity_u0.write(this.#space, _v3);
|
|
43
|
+
}
|
|
44
|
+
get translate() {
|
|
45
|
+
return reactivity_u0.read(this.#translate);
|
|
46
|
+
}
|
|
47
|
+
set translate(_v4) {
|
|
48
|
+
reactivity_u0.write(this.#translate, _v4);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const FIELDS = 'input, select, textarea, [contenteditable]';
|
|
52
|
+
function close(sidebars, edge) {
|
|
53
|
+
sidebars.state.toggle(edge, false);
|
|
54
|
+
}
|
|
55
|
+
function direction(edge) {
|
|
56
|
+
return edge === 'left' ? 1 : -1;
|
|
57
|
+
}
|
|
58
|
+
function hold(frame) {
|
|
59
|
+
frame.dragging = true;
|
|
60
|
+
flush();
|
|
61
|
+
}
|
|
62
|
+
function label(sidebars, edge) {
|
|
63
|
+
return sidebars.options[edge]?.label ?? (edge === 'left' ? 'Left sidebar' : 'Right sidebar');
|
|
64
|
+
}
|
|
65
|
+
function leave(sidebars, edge, e) {
|
|
66
|
+
let frame = sidebars.frames[edge], to = e.relatedTarget;
|
|
67
|
+
if (!frame.peeking || (to && [frame.sidebar, frame.edge, frame.resize, trigger(sidebars, edge)].some((element) => element?.contains(to)))) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
frame.peeking = false;
|
|
71
|
+
}
|
|
72
|
+
function open(sidebars, edge) {
|
|
73
|
+
if (sidebars.narrow()) {
|
|
74
|
+
close(sidebars, edge === 'left' ? 'right' : 'left');
|
|
75
|
+
}
|
|
76
|
+
sidebars.frames[edge].peeking = false;
|
|
77
|
+
sidebars.state.toggle(edge, true);
|
|
78
|
+
}
|
|
79
|
+
function reveal(sidebars, edge, width, shown) {
|
|
80
|
+
let clamped = Math.max(0, Math.min(width, shown)), frame = sidebars.frames[edge];
|
|
81
|
+
frame.space = sidebars.narrow() ? `${clamped}px` : undefined;
|
|
82
|
+
frame.translate = `${(clamped - width) * direction(edge)}px 0`;
|
|
83
|
+
}
|
|
84
|
+
function settle(frame) {
|
|
85
|
+
frame.dragging = false;
|
|
86
|
+
flush();
|
|
87
|
+
frame.space = undefined;
|
|
88
|
+
frame.translate = undefined;
|
|
89
|
+
}
|
|
90
|
+
function shown(sidebars, edge) {
|
|
91
|
+
return sidebars.state.layout[edge].open || sidebars.frames[edge].peeking;
|
|
92
|
+
}
|
|
93
|
+
function trigger(sidebars, edge) {
|
|
94
|
+
return document.getElementById(`${sidebars.id}-${edge}-toggle`);
|
|
95
|
+
}
|
|
96
|
+
const frame = () => new ReactiveObject_0cca1t30(undefined, undefined);
|
|
97
|
+
const grip = (sidebars, edge) => {
|
|
98
|
+
let current = sidebars.frames[edge], sign = direction(edge), gesture = drag({
|
|
99
|
+
begin: (e) => e.button === 0 && !sidebars.state.layout[edge].open ? [{ axis: 'x', sign }] : null,
|
|
100
|
+
capture: () => hold(current),
|
|
101
|
+
measure: (element) => current.sidebar ?? element,
|
|
102
|
+
move: (_, { x }) => {
|
|
103
|
+
if (current.sidebar) {
|
|
104
|
+
reveal(sidebars, edge, current.sidebar.offsetWidth, x * sign);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
release: (_, __, dismiss) => {
|
|
108
|
+
settle(current);
|
|
109
|
+
if (dismiss) {
|
|
110
|
+
open(sidebars, edge);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
return (edge === "left" ? (() => {
|
|
115
|
+
let root_0cca1t31 = template_0cca1t32();
|
|
116
|
+
template_u1.setProperties(root_0cca1t31, gesture);
|
|
117
|
+
template_u1.delegate(root_0cca1t31, 'click', () => {
|
|
118
|
+
if (!sidebars.state.layout[edge].open) {
|
|
119
|
+
open(sidebars, edge);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
template_u1.onconnect(root_0cca1t31, (element) => {
|
|
123
|
+
current.edge = element;
|
|
124
|
+
});
|
|
125
|
+
template_u1.direct(root_0cca1t31, 'pointerenter', () => {
|
|
126
|
+
if (sidebars.options[edge]?.hover && !sidebars.state.layout[edge].open) {
|
|
127
|
+
current.peeking = true;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
template_u1.direct(root_0cca1t31, 'pointerleave', (e) => leave(sidebars, edge, e));
|
|
131
|
+
template_u1.delegate(root_0cca1t31, 'pointermove', function (e) {
|
|
132
|
+
let bounds = this.getBoundingClientRect();
|
|
133
|
+
current.offset = e.clientY - bounds.top - bounds.height / 2;
|
|
134
|
+
gesture.onpointermove(e);
|
|
135
|
+
});
|
|
136
|
+
template_u1.setClass(root_0cca1t31, ["shell-edge-grip shell-edge-grip--left"]);
|
|
137
|
+
template_u1.setStyle(root_0cca1t31, ["", () => `--offset: ${current.offset}px;`]);
|
|
138
|
+
return root_0cca1t31;
|
|
139
|
+
})() : edge === "right" ? (() => {
|
|
140
|
+
let root_0cca1t33 = template_0cca1t32();
|
|
141
|
+
template_u1.setProperties(root_0cca1t33, gesture);
|
|
142
|
+
template_u1.delegate(root_0cca1t33, 'click', () => {
|
|
143
|
+
if (!sidebars.state.layout[edge].open) {
|
|
144
|
+
open(sidebars, edge);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
template_u1.onconnect(root_0cca1t33, (element) => {
|
|
148
|
+
current.edge = element;
|
|
149
|
+
});
|
|
150
|
+
template_u1.direct(root_0cca1t33, 'pointerenter', () => {
|
|
151
|
+
if (sidebars.options[edge]?.hover && !sidebars.state.layout[edge].open) {
|
|
152
|
+
current.peeking = true;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
template_u1.direct(root_0cca1t33, 'pointerleave', (e) => leave(sidebars, edge, e));
|
|
156
|
+
template_u1.delegate(root_0cca1t33, 'pointermove', function (e) {
|
|
157
|
+
let bounds = this.getBoundingClientRect();
|
|
158
|
+
current.offset = e.clientY - bounds.top - bounds.height / 2;
|
|
159
|
+
gesture.onpointermove(e);
|
|
160
|
+
});
|
|
161
|
+
template_u1.setClass(root_0cca1t33, ["shell-edge-grip shell-edge-grip--right"]);
|
|
162
|
+
template_u1.setStyle(root_0cca1t33, ["", () => `--offset: ${current.offset}px;`]);
|
|
163
|
+
return root_0cca1t33;
|
|
164
|
+
})() : (() => {
|
|
165
|
+
let root_0cca1t34 = template_0cca1t32();
|
|
166
|
+
template_u1.setProperties(root_0cca1t34, gesture);
|
|
167
|
+
template_u1.delegate(root_0cca1t34, 'click', () => {
|
|
168
|
+
if (!sidebars.state.layout[edge].open) {
|
|
169
|
+
open(sidebars, edge);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
template_u1.onconnect(root_0cca1t34, (element) => {
|
|
173
|
+
current.edge = element;
|
|
174
|
+
});
|
|
175
|
+
template_u1.direct(root_0cca1t34, 'pointerenter', () => {
|
|
176
|
+
if (sidebars.options[edge]?.hover && !sidebars.state.layout[edge].open) {
|
|
177
|
+
current.peeking = true;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
template_u1.direct(root_0cca1t34, 'pointerleave', (e) => leave(sidebars, edge, e));
|
|
181
|
+
template_u1.delegate(root_0cca1t34, 'pointermove', function (e) {
|
|
182
|
+
let bounds = this.getBoundingClientRect();
|
|
183
|
+
current.offset = e.clientY - bounds.top - bounds.height / 2;
|
|
184
|
+
gesture.onpointermove(e);
|
|
185
|
+
});
|
|
186
|
+
template_u1.setClass(root_0cca1t34, ["shell-edge-grip", "shell-edge-grip--" + (edge)]);
|
|
187
|
+
template_u1.setStyle(root_0cca1t34, ["", () => `--offset: ${current.offset}px;`]);
|
|
188
|
+
return root_0cca1t34;
|
|
189
|
+
})());
|
|
190
|
+
};
|
|
191
|
+
const resizer = (sidebars, edge) => separator('x', () => {
|
|
192
|
+
let width = sidebars.frames[edge].sidebar?.offsetWidth;
|
|
193
|
+
return width ? (delta) => sidebars.state.resizeDock(edge, width + delta * direction(edge)) : null;
|
|
194
|
+
}, {
|
|
195
|
+
class: `shell-sidebar-resize shell-sidebar-resize--${edge}`,
|
|
196
|
+
onconnect: (element) => {
|
|
197
|
+
sidebars.frames[edge].resize = element;
|
|
198
|
+
},
|
|
199
|
+
onpointerleave: (e) => leave(sidebars, edge, e)
|
|
200
|
+
});
|
|
201
|
+
const sidebar = (sidebars, edge, content) => {
|
|
202
|
+
let current = sidebars.frames[edge], gesture = drag({
|
|
203
|
+
begin: (e) => {
|
|
204
|
+
let target = e.target;
|
|
205
|
+
if (e.button !== 0 ||
|
|
206
|
+
!sidebars.stationary(edge) ||
|
|
207
|
+
!shown(sidebars, edge) ||
|
|
208
|
+
target.closest(FIELDS) ||
|
|
209
|
+
(target.clientWidth > 0 && (e.offsetX > target.clientWidth || e.offsetY > target.clientHeight))) {
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
return [{ axis: 'x', sign: direction(edge) === 1 ? -1 : 1 }];
|
|
213
|
+
},
|
|
214
|
+
capture: () => hold(current),
|
|
215
|
+
move: (element, { x }) => {
|
|
216
|
+
reveal(sidebars, edge, element.offsetWidth, element.offsetWidth + x * direction(edge));
|
|
217
|
+
},
|
|
218
|
+
release: (_, __, dismiss) => {
|
|
219
|
+
settle(current);
|
|
220
|
+
if (dismiss) {
|
|
221
|
+
hide();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
function hide() {
|
|
226
|
+
if (current.peeking) {
|
|
227
|
+
current.peeking = false;
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
close(sidebars, edge);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return (edge === "left" ? (() => {
|
|
234
|
+
let root_0cca1t35 = template_0cca1t36();
|
|
235
|
+
template_u1.slot(root_0cca1t35, content, 1);
|
|
236
|
+
template_u1.setProperty(root_0cca1t35, 'aria-label', label(sidebars, edge));
|
|
237
|
+
template_u1.setProperty(root_0cca1t35, 'id', "" + (sidebars.id) + "-left");
|
|
238
|
+
template_u1.onconnect(root_0cca1t35, (element, on) => {
|
|
239
|
+
current.sidebar = element;
|
|
240
|
+
effect(() => {
|
|
241
|
+
let visible = shown(sidebars, edge);
|
|
242
|
+
if (!visible && element.contains(document.activeElement)) {
|
|
243
|
+
trigger(sidebars, edge)?.focus({ preventScroll: true });
|
|
244
|
+
}
|
|
245
|
+
element.inert = !visible;
|
|
246
|
+
});
|
|
247
|
+
on(element, 'dragstart', (e) => {
|
|
248
|
+
if (sidebars.stationary(edge)) {
|
|
249
|
+
e.preventDefault();
|
|
250
|
+
}
|
|
251
|
+
}, { direct: true });
|
|
252
|
+
on(element, 'pointercancel', gesture.onpointercancel, { direct: true });
|
|
253
|
+
on(element, 'pointerdown', gesture.onpointerdown, { direct: true });
|
|
254
|
+
on(element, 'pointerleave', (e) => leave(sidebars, edge, e), { direct: true });
|
|
255
|
+
on(element, 'pointermove', gesture.onpointermove, { direct: true });
|
|
256
|
+
on(element, 'pointerup', gesture.onpointerup, { direct: true });
|
|
257
|
+
});
|
|
258
|
+
template_u1.delegate(root_0cca1t35, 'keydown', (e) => {
|
|
259
|
+
if (e.key === 'Escape' && !e.defaultPrevented && (current.peeking || sidebars.stationary(edge))) {
|
|
260
|
+
e.preventDefault();
|
|
261
|
+
hide();
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
template_u1.setClass(root_0cca1t35, ["shell-sidebar shell-sidebar--left", [
|
|
265
|
+
() => sidebars.state.layout[edge].open ? '--active' : current.peeking && '--peek',
|
|
266
|
+
() => current.dragging && 'shell-sidebar--dragging'
|
|
267
|
+
]]);
|
|
268
|
+
template_u1.setStyle(root_0cca1t35, ["", () => ({ '--slide-translate': current.translate })]);
|
|
269
|
+
return root_0cca1t35;
|
|
270
|
+
})() : edge === "right" ? (() => {
|
|
271
|
+
let root_0cca1t37 = template_0cca1t36();
|
|
272
|
+
template_u1.slot(root_0cca1t37, content, 1);
|
|
273
|
+
template_u1.setProperty(root_0cca1t37, 'aria-label', label(sidebars, edge));
|
|
274
|
+
template_u1.setProperty(root_0cca1t37, 'id', "" + (sidebars.id) + "-right");
|
|
275
|
+
template_u1.onconnect(root_0cca1t37, (element, on) => {
|
|
276
|
+
current.sidebar = element;
|
|
277
|
+
effect(() => {
|
|
278
|
+
let visible = shown(sidebars, edge);
|
|
279
|
+
if (!visible && element.contains(document.activeElement)) {
|
|
280
|
+
trigger(sidebars, edge)?.focus({ preventScroll: true });
|
|
281
|
+
}
|
|
282
|
+
element.inert = !visible;
|
|
283
|
+
});
|
|
284
|
+
on(element, 'dragstart', (e) => {
|
|
285
|
+
if (sidebars.stationary(edge)) {
|
|
286
|
+
e.preventDefault();
|
|
287
|
+
}
|
|
288
|
+
}, { direct: true });
|
|
289
|
+
on(element, 'pointercancel', gesture.onpointercancel, { direct: true });
|
|
290
|
+
on(element, 'pointerdown', gesture.onpointerdown, { direct: true });
|
|
291
|
+
on(element, 'pointerleave', (e) => leave(sidebars, edge, e), { direct: true });
|
|
292
|
+
on(element, 'pointermove', gesture.onpointermove, { direct: true });
|
|
293
|
+
on(element, 'pointerup', gesture.onpointerup, { direct: true });
|
|
294
|
+
});
|
|
295
|
+
template_u1.delegate(root_0cca1t37, 'keydown', (e) => {
|
|
296
|
+
if (e.key === 'Escape' && !e.defaultPrevented && (current.peeking || sidebars.stationary(edge))) {
|
|
297
|
+
e.preventDefault();
|
|
298
|
+
hide();
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
template_u1.setClass(root_0cca1t37, ["shell-sidebar shell-sidebar--right", [
|
|
302
|
+
() => sidebars.state.layout[edge].open ? '--active' : current.peeking && '--peek',
|
|
303
|
+
() => current.dragging && 'shell-sidebar--dragging'
|
|
304
|
+
]]);
|
|
305
|
+
template_u1.setStyle(root_0cca1t37, ["", () => ({ '--slide-translate': current.translate })]);
|
|
306
|
+
return root_0cca1t37;
|
|
307
|
+
})() : (() => {
|
|
308
|
+
let root_0cca1t38 = template_0cca1t36();
|
|
309
|
+
template_u1.slot(root_0cca1t38, content, 1);
|
|
310
|
+
template_u1.setProperty(root_0cca1t38, 'aria-label', label(sidebars, edge));
|
|
311
|
+
template_u1.setProperty(root_0cca1t38, 'id', "" + (sidebars.id) + "-" + (edge));
|
|
312
|
+
template_u1.onconnect(root_0cca1t38, (element, on) => {
|
|
313
|
+
current.sidebar = element;
|
|
314
|
+
effect(() => {
|
|
315
|
+
let visible = shown(sidebars, edge);
|
|
316
|
+
if (!visible && element.contains(document.activeElement)) {
|
|
317
|
+
trigger(sidebars, edge)?.focus({ preventScroll: true });
|
|
318
|
+
}
|
|
319
|
+
element.inert = !visible;
|
|
320
|
+
});
|
|
321
|
+
on(element, 'dragstart', (e) => {
|
|
322
|
+
if (sidebars.stationary(edge)) {
|
|
323
|
+
e.preventDefault();
|
|
324
|
+
}
|
|
325
|
+
}, { direct: true });
|
|
326
|
+
on(element, 'pointercancel', gesture.onpointercancel, { direct: true });
|
|
327
|
+
on(element, 'pointerdown', gesture.onpointerdown, { direct: true });
|
|
328
|
+
on(element, 'pointerleave', (e) => leave(sidebars, edge, e), { direct: true });
|
|
329
|
+
on(element, 'pointermove', gesture.onpointermove, { direct: true });
|
|
330
|
+
on(element, 'pointerup', gesture.onpointerup, { direct: true });
|
|
331
|
+
});
|
|
332
|
+
template_u1.delegate(root_0cca1t38, 'keydown', (e) => {
|
|
333
|
+
if (e.key === 'Escape' && !e.defaultPrevented && (current.peeking || sidebars.stationary(edge))) {
|
|
334
|
+
e.preventDefault();
|
|
335
|
+
hide();
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
template_u1.setClass(root_0cca1t38, ["shell-sidebar", "shell-sidebar--" + (edge), [
|
|
339
|
+
() => sidebars.state.layout[edge].open ? '--active' : current.peeking && '--peek',
|
|
340
|
+
() => current.dragging && 'shell-sidebar--dragging'
|
|
341
|
+
]]);
|
|
342
|
+
template_u1.setStyle(root_0cca1t38, ["", () => ({ '--slide-translate': current.translate })]);
|
|
343
|
+
return root_0cca1t38;
|
|
344
|
+
})());
|
|
345
|
+
};
|
|
346
|
+
const toggle = (sidebars, edge) => {
|
|
347
|
+
function text() {
|
|
348
|
+
return `${sidebars.state.layout[edge].open ? 'Close' : 'Open'} ${label(sidebars, edge).toLowerCase()}`;
|
|
349
|
+
}
|
|
350
|
+
return button.sidebar({
|
|
351
|
+
'aria-controls': `${sidebars.id}-${edge}`,
|
|
352
|
+
'aria-label': text,
|
|
353
|
+
class: `shell-toggle shell-toggle--${edge}`,
|
|
354
|
+
id: `${sidebars.id}-${edge}-toggle`,
|
|
355
|
+
onclick: () => sidebars.state.layout[edge].open ? close(sidebars, edge) : open(sidebars, edge),
|
|
356
|
+
onpointerout: (e) => leave(sidebars, edge, e),
|
|
357
|
+
open: () => sidebars.state.layout[edge].open,
|
|
358
|
+
side: edge,
|
|
359
|
+
title: text
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
export { frame, grip, resizer, sidebar, toggle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { effect, onCleanup, root, untrack } from '@esportsplus/reactivity';
|
|
2
2
|
import * as template_u1 from '@esportsplus/template';
|
|
3
3
|
import { render } from '@esportsplus/template';
|
|
4
|
-
const
|
|
4
|
+
const template_0d7knx91 = template_u1.template(`<div>`, true);
|
|
5
5
|
const UNSET = Symbol();
|
|
6
6
|
const subtree = (key, content, attributes) => {
|
|
7
7
|
let disposed = false, release, stop;
|
|
@@ -15,9 +15,9 @@ const subtree = (key, content, attributes) => {
|
|
|
15
15
|
}
|
|
16
16
|
onCleanup(dispose);
|
|
17
17
|
{
|
|
18
|
-
let
|
|
19
|
-
template_u1.setProperties(
|
|
20
|
-
template_u1.onconnect(
|
|
18
|
+
let root_0d7knx90 = template_0d7knx91();
|
|
19
|
+
template_u1.setProperties(root_0d7knx90, attributes);
|
|
20
|
+
template_u1.onconnect(root_0d7knx90, (host) => {
|
|
21
21
|
if (disposed || stop) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
@@ -30,15 +30,14 @@ const subtree = (key, content, attributes) => {
|
|
|
30
30
|
}
|
|
31
31
|
last = next;
|
|
32
32
|
release?.();
|
|
33
|
-
host.replaceChildren();
|
|
34
33
|
release = untrack(() => root(() => render(host, content)));
|
|
35
34
|
});
|
|
36
35
|
return dispose;
|
|
37
36
|
});
|
|
38
37
|
});
|
|
39
|
-
template_u1.ondisconnect(
|
|
40
|
-
template_u1.setClass(
|
|
41
|
-
return
|
|
38
|
+
template_u1.ondisconnect(root_0d7knx90, dispose);
|
|
39
|
+
template_u1.setClass(root_0d7knx90, ["shell-subtree"]);
|
|
40
|
+
return root_0d7knx90;
|
|
42
41
|
}
|
|
43
42
|
};
|
|
44
43
|
export default subtree;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
1
2
|
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
-
import
|
|
3
|
-
import '../
|
|
3
|
+
import '../frame/scss/index.scss';
|
|
4
|
+
import '../input/scss/index.scss';
|
|
4
5
|
import './scss/index.scss';
|
|
5
6
|
type A = Attributes & {
|
|
6
|
-
|
|
7
|
+
description?: Renderable<unknown>;
|
|
7
8
|
limit?: number;
|
|
8
9
|
state?: {
|
|
9
10
|
error: string;
|
|
@@ -13,4 +14,4 @@ type A = Attributes & {
|
|
|
13
14
|
value?: string;
|
|
14
15
|
};
|
|
15
16
|
export default _default;
|
|
16
|
-
declare function _default({
|
|
17
|
+
declare function _default({ description, limit, taken, value, state, ...attributes }: A): template_u1.Element;
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
-
import { effect, flush } from '@esportsplus/reactivity';
|
|
2
|
+
import { effect, flush, onCleanup } from '@esportsplus/reactivity';
|
|
3
3
|
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import button from '../button/index.js';
|
|
4
5
|
import error from '../error/index.js';
|
|
5
6
|
import icon from '../icon/index.js';
|
|
6
7
|
import { mac as apple } from '../../shared/platform.js';
|
|
8
|
+
import { observe } from '../../shared/resize.js';
|
|
7
9
|
import cmd from '@esportsplus/ui/svg/command.svg';
|
|
8
|
-
import '../
|
|
10
|
+
import '../frame/scss/index.scss';
|
|
11
|
+
import '../input/scss/index.scss';
|
|
9
12
|
import './scss/index.scss';
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const template_1mccfik8 = template_u1.template(`<span aria-hidden='true' class='shortcut-recorder-dot'></span>Press keys`);
|
|
13
|
+
const template_1mccfik3 = template_u1.template(`<div class='shortcut-recorder-field'><button type='button'><span><span></span><span>`, true);
|
|
14
|
+
const template_1mccfik9 = template_u1.template(`<!--$-->`);
|
|
15
|
+
const template_1mccfikb = template_u1.template(`<span aria-hidden='true' class='shortcut-recorder-dot'></span>Press keys...`);
|
|
14
16
|
class ReactiveObject_1mccfik0 extends reactivity_u0.ReactiveObject {
|
|
17
|
+
#width = this[reactivity_u0.SIGNAL](0);
|
|
18
|
+
constructor() {
|
|
19
|
+
super(null);
|
|
20
|
+
}
|
|
21
|
+
get width() {
|
|
22
|
+
return reactivity_u0.read(this.#width);
|
|
23
|
+
}
|
|
24
|
+
set width(_v0) {
|
|
25
|
+
reactivity_u0.write(this.#width, _v0);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class ReactiveObject_1mccfik1 extends reactivity_u0.ReactiveObject {
|
|
15
29
|
#recording = this[reactivity_u0.SIGNAL](false);
|
|
16
30
|
constructor() {
|
|
17
31
|
super(null);
|
|
@@ -78,8 +92,8 @@ function modifiers(e, mac) {
|
|
|
78
92
|
function parse(value) {
|
|
79
93
|
return (value.match(TOKEN) ?? []).filter((_, i) => i % 2 === 0);
|
|
80
94
|
}
|
|
81
|
-
export default ({
|
|
82
|
-
let chord = [], connected = false, field, keys = new reactivity_u0.ReactiveArray(), mac = apple(), pressed = [],
|
|
95
|
+
export default ({ description, limit, taken, value = '', state = reactivity_u0.reactive({ error: '', value }), ...attributes }) => {
|
|
96
|
+
let chord = [], connected = false, faces = [undefined, undefined], field, keys = new reactivity_u0.ReactiveArray(), mac = apple(), pressed = [], size = new ReactiveObject_1mccfik0(), status = new ReactiveObject_1mccfik1();
|
|
83
97
|
function commit(held) {
|
|
84
98
|
let shortcut = chord.join('+'), owner = shortcut === state.value ? null : taken?.(shortcut);
|
|
85
99
|
chord = [];
|
|
@@ -99,6 +113,12 @@ export default ({ direction = 'ne', limit, taken, value = '', state = reactivity
|
|
|
99
113
|
}
|
|
100
114
|
state.error = text;
|
|
101
115
|
}
|
|
116
|
+
function measure() {
|
|
117
|
+
let face = faces[keys.$length ? 0 : 1];
|
|
118
|
+
if (face) {
|
|
119
|
+
size.width = face.offsetWidth;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
102
122
|
function onaway(e) {
|
|
103
123
|
if (status.recording && (e.type === 'blur' || !field?.contains(e.target))) {
|
|
104
124
|
stop();
|
|
@@ -184,32 +204,40 @@ export default ({ direction = 'ne', limit, taken, value = '', state = reactivity
|
|
|
184
204
|
state.error = '';
|
|
185
205
|
}
|
|
186
206
|
effect(() => status.recording ? [] : parse(state.value), (tokens) => show(tokens, connected ? 'settle' : ''));
|
|
187
|
-
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
let
|
|
191
|
-
template_u1.slot(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
template_u1.
|
|
207
|
+
{
|
|
208
|
+
let root_1mccfik2 = template_1mccfik3(), element_1mccfik4 = root_1mccfik2.firstElementChild, element_1mccfik5 = element_1mccfik4.firstElementChild, element_1mccfik6 = element_1mccfik5.firstElementChild, element_1mccfik7 = element_1mccfik6.nextElementSibling;
|
|
209
|
+
element_1mccfik6.appendChild(new template_u1.ArraySlot(keys, (key) => {
|
|
210
|
+
let root_1mccfik8 = template_1mccfik9(), element_1mccfika = root_1mccfik8.firstChild;
|
|
211
|
+
template_u1.slot(element_1mccfika, button.kbd({
|
|
212
|
+
class: ['shortcut-recorder-key', key.animation && `shortcut-recorder-key--${key.animation}`],
|
|
213
|
+
key: key.token,
|
|
214
|
+
style: `--index: ${key.index}`
|
|
215
|
+
}, glyph(key.token, mac)));
|
|
216
|
+
return root_1mccfik8;
|
|
217
|
+
}, true).fragment);
|
|
218
|
+
new template_u1.EffectSlot(element_1mccfik7, () => status.recording
|
|
219
|
+
? template_1mccfikb()
|
|
220
|
+
: 'None', 1);
|
|
221
|
+
template_u1.slot(root_1mccfik2, error({ description, duration: ERROR_DURATION, state }), 1);
|
|
222
|
+
template_u1.onconnect(element_1mccfik7, (element) => {
|
|
223
|
+
faces[1] = element;
|
|
224
|
+
onCleanup(observe(element, measure));
|
|
225
|
+
});
|
|
226
|
+
template_u1.setClass(element_1mccfik7, ["frame frame--swap shortcut-recorder-face shortcut-recorder-placeholder", () => !keys.$length && '--active']);
|
|
227
|
+
template_u1.setStyle(element_1mccfik7, ["--n: 1"]);
|
|
228
|
+
template_u1.onconnect(element_1mccfik6, (element) => {
|
|
229
|
+
faces[0] = element;
|
|
230
|
+
onCleanup(observe(element, measure));
|
|
231
|
+
});
|
|
232
|
+
template_u1.setClass(element_1mccfik6, ["frame frame--swap shortcut-recorder-face", () => keys.$length && '--active']);
|
|
233
|
+
template_u1.setStyle(element_1mccfik6, ["--n: 0"]);
|
|
234
|
+
template_u1.setClass(element_1mccfik5, ["shortcut-recorder-faces"]);
|
|
235
|
+
template_u1.setStyle(element_1mccfik5, ["", () => `--i: ${keys.$length ? 0 : 1};${size.width ? ` --face-width: ${size.width}px;` : ''}`]);
|
|
236
|
+
template_u1.setProperty(element_1mccfik4, 'aria-pressed', () => status.recording ? 'true' : 'false');
|
|
237
|
+
let attributes_1mccfikc = attributes;
|
|
238
|
+
template_u1.setProperties(element_1mccfik4, attributes_1mccfikc, true);
|
|
239
|
+
template_u1.setProperty(element_1mccfik4, 'aria-invalid', () => state.error ? 'true' : undefined);
|
|
240
|
+
template_u1.delegate(element_1mccfik4, 'click', () => {
|
|
213
241
|
if (status.recording) {
|
|
214
242
|
stop();
|
|
215
243
|
}
|
|
@@ -217,7 +245,7 @@ export default ({ direction = 'ne', limit, taken, value = '', state = reactivity
|
|
|
217
245
|
start();
|
|
218
246
|
}
|
|
219
247
|
});
|
|
220
|
-
template_u1.onconnect(
|
|
248
|
+
template_u1.onconnect(element_1mccfik4, (element, on) => {
|
|
221
249
|
connected = true;
|
|
222
250
|
field = element;
|
|
223
251
|
on(window, 'keydown', (e) => {
|
|
@@ -231,13 +259,10 @@ export default ({ direction = 'ne', limit, taken, value = '', state = reactivity
|
|
|
231
259
|
}
|
|
232
260
|
}, { capture: true });
|
|
233
261
|
});
|
|
234
|
-
template_u1.ondocument(
|
|
235
|
-
template_u1.onwindow(
|
|
236
|
-
template_u1.setClass(
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
template_u1.setStyle(root_1mccfik1, ["", attributes_1mccfik9?.style]);
|
|
241
|
-
return root_1mccfik1;
|
|
242
|
-
})());
|
|
262
|
+
template_u1.ondocument(element_1mccfik4, 'pointerdown', onaway);
|
|
263
|
+
template_u1.onwindow(element_1mccfik4, 'blur', onaway);
|
|
264
|
+
template_u1.setClass(element_1mccfik4, ["input shortcut-recorder", attributes_1mccfikc?.class, () => status.recording && '--active']);
|
|
265
|
+
template_u1.setStyle(element_1mccfik4, ["", attributes_1mccfikc?.style]);
|
|
266
|
+
return root_1mccfik2;
|
|
267
|
+
}
|
|
243
268
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.shortcut-recorder{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.shortcut-recorder{--background:var(--background-active)}.shortcut-recorder:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.shortcut-recorder:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.shortcut-recorder{--background-active:var(--surface-primary-active);--background-default:var(--surface-primary-default);--background-hover:var(--surface-primary-hover);--background-pressed:var(--surface-primary-pressed);--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.shortcut-recorder{--box-shadow:var(--box-shadow-active)}.shortcut-recorder:not(.--active):is(:hover,.--hover){--box-shadow:var(--box-shadow-hover)}.shortcut-recorder:not(.--active):is(:active,.--pressed){--box-shadow:var(--box-shadow-pressed)}.shortcut-recorder{--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);--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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){.shortcut-recorder{--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))}}.shortcut-recorder{--border-radius:var(--border-radius-500);--border-width:0px;--color:var(--color-text-500);--font-size:var(--font-size-400);--gap-horizontal:calc(var(--size-100) / 2);--gap-vertical:calc(var(--size-100) / 2);--height:36px;--min-width:96px;--padding-horizontal:calc(var(--size-300) / 2);--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.shortcut-recorder.--active{--border-width:var(--border-width-500)}.shortcut-recorder-dot{--animation-duration:1.1s;--animation-timing-function:ease-in-out;--background:var(--color-red-400);--size:6px}.shortcut-recorder-key--enter,.shortcut-recorder-key--settle{--animation-duration:.3s;--animation-timing-function:cubic-bezier(.34, 1.56, .64, 1)}.shortcut-recorder-key--settle{--stagger:30ms}.shortcut-recorder-placeholder{--color:var(--color-text-300);--font-size:var(--font-size-300);--gap-horizontal:calc(var(--size-300) / 2);--gap-vertical:0px;--padding-horizontal:calc(var(--size-300) / 2);--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.shortcut-recorder-placeholder--fade{--animation-duration:.18s;--animation-timing-function:cubic-bezier(.23, 1, .32, 1)}.shortcut-recorder.--invalid .shortcut-recorder-placeholder{--color:var(--color-red-400)}.error:has(>.shortcut-recorder){flex-shrink:0}.shortcut-recorder{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);cursor:pointer;font:inherit;font-size:var(--font-size);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);min-width:var(--min-width);padding-block:0;padding-inline:var(--padding-horizontal);transition:background var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function);border:0;outline:none;flex-shrink:0;justify-content:flex-end;display:flex}@media (prefers-reduced-motion:reduce){.shortcut-recorder{transition:none}}.shortcut-recorder-dot{animation:shortcut-recorder-dot var(--animation-duration) var(--animation-timing-function) infinite;background:var(--background);height:var(--size);width:var(--size);border-radius:50%}@media (prefers-reduced-motion:reduce){.shortcut-recorder-dot{animation:none}}@keyframes shortcut-recorder-dot{50%{opacity:.25}}.shortcut-recorder-key{pointer-events:none}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key{transition:none}}.shortcut-recorder-key--enter{animation:shortcut-recorder-key--enter var(--animation-duration) var(--animation-timing-function) backwards}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key--enter{animation:none}}@keyframes shortcut-recorder-key--enter{0%{filter:blur(var(--blur-400));opacity:0;scale:.8}}.shortcut-recorder-key--settle{animation:shortcut-recorder-key--settle var(--animation-duration) var(--animation-timing-function) calc(var(--index) * var(--stagger)) backwards}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key--settle{animation:none}}@keyframes shortcut-recorder-key--settle{0%{opacity:.6;translate:0 -3px;scale:1.08}}.shortcut-recorder-placeholder{color:var(--color);font-size:var(--font-size);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);padding-block:0;padding-inline:var(--padding-horizontal);transition:color var(--transition-duration) var(--transition-timing-function);display:flex}@media (prefers-reduced-motion:reduce){.shortcut-recorder-placeholder{transition:none}}.shortcut-recorder-placeholder--fade{animation:shortcut-recorder-placeholder--fade var(--animation-duration) var(--animation-timing-function)}@media (prefers-reduced-motion:reduce){.shortcut-recorder-placeholder--fade{animation:none}}@keyframes shortcut-recorder-placeholder--fade{0%{opacity:0}}.shortcut-recorder:not(.--active):focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}}
|
|
1
|
+
@layer components{.shortcut-recorder.input{--color:var(--color-text-500);--gap-horizontal:calc(var(--size-100) / 2);--gap-vertical:calc(var(--size-100) / 2);--min-width:96px;--padding-horizontal:calc(var(--size-300) / 2);--padding-vertical:calc(var(--size-300) / 2);--size:28px;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.shortcut-recorder-dot{--animation-duration:1.1s;--animation-timing-function:ease-in-out;--background:var(--color-red-400);--size:6px}.shortcut-recorder-faces{--transition-duration:.32s;--transition-timing-function:cubic-bezier(.22, 1, .36, 1)}.shortcut-recorder-key{--border-width:0px}.shortcut-recorder-key--enter,.shortcut-recorder-key--settle{--animation-duration:.3s;--animation-timing-function:cubic-bezier(.34, 1.56, .64, 1)}.shortcut-recorder-key--settle{--stagger:30ms}.shortcut-recorder-placeholder{--color:var(--color-text-300);--font-size:var(--font-size-300);--gap-horizontal:calc(var(--size-300) / 2);--gap-vertical:0px;--padding-horizontal:calc(var(--size-300) / 2)}.shortcut-recorder[aria-invalid=true] .shortcut-recorder-placeholder{--color:var(--color-red-400)}.shortcut-recorder-field{display:contents}.shortcut-recorder-field>.error{text-align:end;flex-basis:100%}.group--grid>.shortcut-recorder-field>.shortcut-recorder{grid-area:1/2/span 2}.group--grid>.shortcut-recorder-field>.error{text-align:start;grid-area:2/1;align-self:start}.group--grid:has(>.shortcut-recorder-field){grid-template-rows:1fr auto;grid-template-columns:minmax(0,1fr) auto;display:grid}.group--grid:has(>.shortcut-recorder-field)>.group-label{grid-area:1/1}.group--grid:has(>.shortcut-recorder-field):has(>.shortcut-recorder-field .error-description)>.group-label{align-self:end}.group--grid:has(>.shortcut-recorder-field):not(:has(>.shortcut-recorder-field .error-description,>.shortcut-recorder-field>.error.--active))>.group-label{grid-row:1/span 2}.shortcut-recorder.input{cursor:pointer;min-width:var(--min-width);flex-wrap:nowrap;flex:none;justify-content:flex-end;width:auto;font-family:inherit}.shortcut-recorder-dot{animation:shortcut-recorder-dot var(--animation-duration) var(--animation-timing-function) infinite;background:var(--background);height:var(--size);width:var(--size);border-radius:50%}@media (prefers-reduced-motion:reduce){.shortcut-recorder-dot{animation:none}}@keyframes shortcut-recorder-dot{50%{opacity:.25}}.shortcut-recorder-face{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-self:end;width:max-content;display:flex}.shortcut-recorder-faces{transition:width var(--transition-duration) var(--transition-timing-function);width:var(--face-width,auto);display:grid}@media (prefers-reduced-motion:reduce){.shortcut-recorder-faces{transition:none}}.shortcut-recorder-key{pointer-events:none}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key{transition:none}}.shortcut-recorder-key--enter{animation:shortcut-recorder-key--enter var(--animation-duration) var(--animation-timing-function) backwards}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key--enter{animation:none}}@keyframes shortcut-recorder-key--enter{0%{filter:blur(var(--blur-400));opacity:0;scale:.8}}.shortcut-recorder-key--settle{animation:shortcut-recorder-key--settle var(--animation-duration) var(--animation-timing-function) calc(var(--index) * var(--stagger)) backwards}@media (prefers-reduced-motion:reduce){.shortcut-recorder-key--settle{animation:none}}@keyframes shortcut-recorder-key--settle{0%{opacity:.6;translate:0 -3px;scale:1.08}}.shortcut-recorder-placeholder{color:var(--color);font-size:var(--font-size);padding-inline:var(--padding-horizontal)}.shortcut-recorder:not(.--active):focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}}
|
|
2
2
|
/*$vite$:1*/
|