@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
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
@use 'css-utilities/color';
|
|
3
3
|
|
|
4
4
|
.chat-minimap {
|
|
5
|
-
&-item,
|
|
6
|
-
&-nav {
|
|
7
|
-
&:focus-visible {
|
|
8
|
-
--border-radius: var(--border-radius-200);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// The content swap as the card and labels glide between triggers. Each layer is a 'frame--swap', which declares
|
|
13
|
-
// these on itself, so they're set on the layers here, where a minimap can retime them.
|
|
14
|
-
&-label,
|
|
15
|
-
&-preview {
|
|
16
|
-
.tooltip-shared-layer {
|
|
17
|
-
--transition-duration: 0s;
|
|
18
|
-
--transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
5
|
&-card {
|
|
23
6
|
--gap-horizontal: calc(var(--size-100) / 4);
|
|
24
7
|
--gap-vertical: calc(var(--size-100) / 4);
|
|
@@ -33,6 +16,13 @@
|
|
|
33
16
|
--lines: 2;
|
|
34
17
|
}
|
|
35
18
|
|
|
19
|
+
&-item,
|
|
20
|
+
&-nav {
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
--border-radius: var(--border-radius-200);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
36
26
|
// At rest every line shares one length; the hovered one peaks and its two neighbours either side step back down.
|
|
37
27
|
// The item's states reach into its line, which holds the values.
|
|
38
28
|
&-item {
|
|
@@ -41,6 +31,7 @@
|
|
|
41
31
|
--padding-horizontal: calc(var(--size-100) / 2);
|
|
42
32
|
--width: 32px;
|
|
43
33
|
|
|
34
|
+
|
|
44
35
|
// Touch has no hover to follow, and reduced motion keeps the lengths still; keyboard focus swells too.
|
|
45
36
|
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
|
|
46
37
|
&:has(+ .chat-minimap-item + .chat-minimap-item:is(:hover, :focus-visible)),
|
|
@@ -92,10 +83,21 @@
|
|
|
92
83
|
}
|
|
93
84
|
}
|
|
94
85
|
|
|
86
|
+
// The content swap as the card and labels glide between triggers. Each layer is a 'frame--swap', which declares
|
|
87
|
+
// these on itself, so they're set on the layers here, where a minimap can retime them.
|
|
88
|
+
&-label,
|
|
89
|
+
&-preview {
|
|
90
|
+
.tooltip-shared-layer {
|
|
91
|
+
--transition-duration: 0s;
|
|
92
|
+
--transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
95
96
|
&-label.tooltip-shared {
|
|
96
97
|
--border-radius: var(--border-radius-500);
|
|
97
98
|
--spacer: 4px;
|
|
98
99
|
|
|
100
|
+
|
|
99
101
|
.tooltip-shared-layer {
|
|
100
102
|
--padding-horizontal: var(--size-200);
|
|
101
103
|
--padding-vertical: calc(var(--size-100) / 2);
|
|
@@ -118,6 +120,7 @@
|
|
|
118
120
|
--transition-duration: 0.16s;
|
|
119
121
|
--transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
120
122
|
|
|
123
|
+
|
|
121
124
|
@media (prefers-reduced-motion: reduce) {
|
|
122
125
|
--transition-duration: 0s;
|
|
123
126
|
}
|
|
@@ -132,6 +135,7 @@
|
|
|
132
135
|
--transition-timing-function: ease-out;
|
|
133
136
|
--width: 32px;
|
|
134
137
|
|
|
138
|
+
|
|
135
139
|
@media (pointer: coarse) {
|
|
136
140
|
--opacity: 1;
|
|
137
141
|
|
|
@@ -140,6 +144,7 @@
|
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
|
|
147
|
+
|
|
143
148
|
&:focus-visible {
|
|
144
149
|
--color: var(--color-hover);
|
|
145
150
|
}
|
|
@@ -168,6 +173,7 @@
|
|
|
168
173
|
--spacer: var(--size-100);
|
|
169
174
|
--white-space: normal;
|
|
170
175
|
|
|
176
|
+
|
|
171
177
|
.tooltip-shared-layer {
|
|
172
178
|
--padding-horizontal: 0px;
|
|
173
179
|
--padding-vertical: 0px;
|
|
@@ -3,6 +3,7 @@ import { component, html, type Attributes, type Renderable } from '@esportsplus/
|
|
|
3
3
|
import dash from '@esportsplus/ui/svg/dash.svg';
|
|
4
4
|
import icon from '~/components/icon';
|
|
5
5
|
import options, { type Attr } from './options';
|
|
6
|
+
import '~/components/group/scss/index.scss';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
type A = Attributes & {
|
|
@@ -67,7 +68,7 @@ function header(ctx: Context, { counter = false, ...attributes }: Header = {}):
|
|
|
67
68
|
let tally = computed(() => count(ctx));
|
|
68
69
|
|
|
69
70
|
return html`
|
|
70
|
-
<label class='
|
|
71
|
+
<label class='group group-header group--grid' ${attributes}>
|
|
71
72
|
${ctx.control(
|
|
72
73
|
{
|
|
73
74
|
style: () => `--progress: ${ctx.group.total && read(tally) / ctx.group.total}`,
|
|
@@ -93,14 +94,14 @@ function header(ctx: Context, { counter = false, ...attributes }: Header = {}):
|
|
|
93
94
|
},
|
|
94
95
|
ctx.type === 'checkbox' && icon({ 'aria-hidden': true, class: 'checkbox-group-dash' }, dash)
|
|
95
96
|
)}
|
|
96
|
-
<span class='
|
|
97
|
+
<span class='group-label'>
|
|
97
98
|
${ctx.label}
|
|
99
|
+
${counter && html`
|
|
100
|
+
<span class='group-label-counter'>
|
|
101
|
+
${() => read(tally)} of ${() => ctx.group.total}
|
|
102
|
+
</span>
|
|
103
|
+
`}
|
|
98
104
|
</span>
|
|
99
|
-
${counter && html`
|
|
100
|
-
<span class='checkbox-group-counter'>
|
|
101
|
-
${() => read(tally)} of ${() => ctx.group.total}
|
|
102
|
-
</span>
|
|
103
|
-
`}
|
|
104
105
|
</label>
|
|
105
106
|
`;
|
|
106
107
|
}
|
|
@@ -26,15 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
&--radio {
|
|
30
|
-
&::before {
|
|
31
|
-
@extend %absolute-full;
|
|
32
|
-
border-radius: calc(var(--border-radius) - (var(--height) / 2));
|
|
33
|
-
height: var(--height);
|
|
34
|
-
margin: auto;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
29
|
&--radio,
|
|
39
30
|
&--switch {
|
|
40
31
|
&::before {
|
|
@@ -43,7 +34,6 @@
|
|
|
43
34
|
content: '';
|
|
44
35
|
pointer-events: none;
|
|
45
36
|
scale: var(--scale);
|
|
46
|
-
transform-origin: center;
|
|
47
37
|
transition:
|
|
48
38
|
scale var(--transition-duration) var(--transition-timing-function),
|
|
49
39
|
translate var(--transition-duration) var(--transition-timing-function);
|
|
@@ -56,6 +46,15 @@
|
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
48
|
|
|
49
|
+
&--radio {
|
|
50
|
+
&::before {
|
|
51
|
+
@extend %absolute-full;
|
|
52
|
+
border-radius: calc(var(--border-radius) - (var(--height) / 2));
|
|
53
|
+
height: var(--height);
|
|
54
|
+
margin: auto;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
59
58
|
&--switch {
|
|
60
59
|
&::before {
|
|
61
60
|
border-radius: calc(var(--border-radius) - var(--padding-vertical) / 1.5);
|
|
@@ -74,21 +73,6 @@
|
|
|
74
73
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
75
74
|
|
|
76
75
|
|
|
77
|
-
&-counter {
|
|
78
|
-
color: var(--color);
|
|
79
|
-
flex: 0 0 auto;
|
|
80
|
-
font-size: var(--font-size-300);
|
|
81
|
-
font-variant-numeric: tabular-nums;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&-header {
|
|
85
|
-
align-items: center;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
display: flex;
|
|
88
|
-
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
89
|
-
user-select: none;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
76
|
&-hint {
|
|
93
77
|
color: var(--color);
|
|
94
78
|
font-size: var(--font-size-300);
|
|
@@ -105,12 +89,6 @@
|
|
|
105
89
|
padding-inline: var(--padding-horizontal);
|
|
106
90
|
}
|
|
107
91
|
}
|
|
108
|
-
|
|
109
|
-
&-label {
|
|
110
|
-
flex: 1;
|
|
111
|
-
font-weight: var(--font-weight-500);
|
|
112
|
-
min-width: 0;
|
|
113
|
-
}
|
|
114
92
|
}
|
|
115
93
|
|
|
116
94
|
// Keep the native input interactive while the SVG supplies its appearance.
|
|
@@ -131,10 +109,6 @@
|
|
|
131
109
|
outline-offset: var(--focus-offset);
|
|
132
110
|
}
|
|
133
111
|
|
|
134
|
-
.checkbox-check {
|
|
135
|
-
left: var(--inset-horizontal);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
112
|
// The group header's dash draws with the same variables and timing as the checkmark it replaces. Qualified by the
|
|
139
113
|
// root so both win over the reused icon styles regardless of stylesheet order.
|
|
140
114
|
.checkbox-check,
|
|
@@ -160,4 +134,54 @@
|
|
|
160
134
|
}
|
|
161
135
|
}
|
|
162
136
|
}
|
|
137
|
+
|
|
138
|
+
.checkbox-check {
|
|
139
|
+
left: var(--left);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// In a 'group--grid' the checkbox, radio or switch keeps its own size and shares the first row with the label alone, so
|
|
144
|
+
// it centers on the label however long the description runs; the description and any error sit under the label, in
|
|
145
|
+
// its column. The control takes whichever side it's written on. Chained through '.group' so these win over the row's
|
|
146
|
+
// own layout for a described control regardless of stylesheet order.
|
|
147
|
+
.group.group--grid:has(> .checkbox) {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
display: grid;
|
|
150
|
+
grid-template-columns: auto 1fr;
|
|
151
|
+
justify-content: stretch;
|
|
152
|
+
user-select: none;
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
> .checkbox {
|
|
156
|
+
grid-column: 1;
|
|
157
|
+
grid-row: 1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
> .error,
|
|
161
|
+
> .group-description {
|
|
162
|
+
align-self: auto;
|
|
163
|
+
grid-column: 2;
|
|
164
|
+
grid-row: auto;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
> .group-label {
|
|
168
|
+
align-self: auto;
|
|
169
|
+
grid-column: 2;
|
|
170
|
+
grid-row: 1;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.group.group--grid:has(> .group-label + .checkbox) {
|
|
175
|
+
grid-template-columns: 1fr auto;
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
> .checkbox {
|
|
179
|
+
grid-column: 2;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
> .error,
|
|
183
|
+
> .group-description,
|
|
184
|
+
> .group-label {
|
|
185
|
+
grid-column: 1;
|
|
186
|
+
}
|
|
163
187
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
.checkbox {
|
|
8
8
|
@extend %border-surface, %box-shadow-surface;
|
|
9
|
-
--border-color-active: var(--background-active);
|
|
10
9
|
--border-color: var(--border-color-default);
|
|
10
|
+
--border-color-active: var(--background-active);
|
|
11
11
|
--border-radius: var(--border-radius-300);
|
|
12
12
|
--border-width: var(--border-width-400);
|
|
13
13
|
--border-width-offset: var(--border-width-offset-default);
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
--height: var(--size);
|
|
18
18
|
--indicator-color: var(--indicator-color-default);
|
|
19
19
|
--indicator-color-active: var(--indicator-color-default);
|
|
20
|
-
--indicator-color-default: var(--color-surface);
|
|
21
20
|
--indicator-color-hover: var(--indicator-color-default);
|
|
22
21
|
--indicator-color-pressed: var(--indicator-color-default);
|
|
23
22
|
--scale: var(--scale-default);
|
|
@@ -29,22 +28,25 @@
|
|
|
29
28
|
--width: var(--height);
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
:where([data-theme='dark'])
|
|
33
|
-
|
|
31
|
+
:where([data-theme='dark']) &,
|
|
32
|
+
:where([data-theme='light']) & {
|
|
34
33
|
--background: var(--background-default);
|
|
35
34
|
--background-active: var(--color-primary-500);
|
|
36
35
|
--background-default: transparent;
|
|
36
|
+
--indicator-color-default: var(--color-surface);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where([data-theme='dark']) & {
|
|
40
|
+
@include surface.step(8);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
:where([data-theme='light']) & {
|
|
40
44
|
@include surface.step(-3);
|
|
41
|
-
--background: var(--background-default);
|
|
42
|
-
--background-active: var(--color-primary-500);
|
|
43
|
-
--background-default: transparent;
|
|
44
45
|
--background-hover: var(--color-white-400);
|
|
45
46
|
--background-pressed: var(--color-white-400);
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
|
|
48
50
|
&--radio,
|
|
49
51
|
&--switch {
|
|
50
52
|
&::before {
|
|
@@ -57,6 +59,8 @@
|
|
|
57
59
|
--scale-default: 0;
|
|
58
60
|
--scale-hover: 0;
|
|
59
61
|
|
|
62
|
+
|
|
63
|
+
|
|
60
64
|
&::before {
|
|
61
65
|
--height: var(--size-100);
|
|
62
66
|
--width: var(--height);
|
|
@@ -67,6 +71,7 @@
|
|
|
67
71
|
--border-width: 0px;
|
|
68
72
|
--border-width-offset-hover: 0px;
|
|
69
73
|
--box-shadow-active: var(--box-shadow-default);
|
|
74
|
+
--indicator-color-active: var(--color-white-400);
|
|
70
75
|
--padding-horizontal: 1px;
|
|
71
76
|
--padding-vertical: 1px;
|
|
72
77
|
--progress: 0;
|
|
@@ -100,15 +105,6 @@
|
|
|
100
105
|
--gap-vertical: 0px;
|
|
101
106
|
|
|
102
107
|
|
|
103
|
-
&-counter {
|
|
104
|
-
--color: var(--color-text-300);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&-header {
|
|
108
|
-
--gap-horizontal: var(--size-300);
|
|
109
|
-
--gap-vertical: 0px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
108
|
&-hint {
|
|
113
109
|
--color: var(--color-text-300);
|
|
114
110
|
|
|
@@ -175,6 +171,17 @@
|
|
|
175
171
|
}
|
|
176
172
|
|
|
177
173
|
.checkbox-check.icon {
|
|
178
|
-
--
|
|
174
|
+
--left: 1px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// The description reads as part of the option, so it sits right under the label. The row's control width is the
|
|
179
|
+
// checkbox's own. Chained through '.group' so these win over the row's own regardless of stylesheet order.
|
|
180
|
+
.group.group--grid:has(> .checkbox) {
|
|
181
|
+
--gap-horizontal: var(--size-300);
|
|
182
|
+
--gap-vertical: calc(var(--size-100) / 4);
|
|
183
|
+
|
|
184
|
+
> .checkbox {
|
|
185
|
+
--control-width: var(--width);
|
|
179
186
|
}
|
|
180
187
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { effect, reactive } from '@esportsplus/reactivity';
|
|
2
2
|
import { component, html, type Attributes } from '@esportsplus/template';
|
|
3
|
-
import
|
|
4
|
-
import { clamp } from '~/shared/clamp';
|
|
5
|
-
import { keystep } from '~/shared/keystep';
|
|
3
|
+
import contrast from '@esportsplus/ui/svg/contrast.svg';
|
|
6
4
|
import copy from '~/components/button/copy';
|
|
7
5
|
import icon from '~/components/icon';
|
|
8
6
|
import input from '~/components/input';
|
|
9
7
|
import range from '~/components/range';
|
|
10
|
-
import
|
|
8
|
+
import { measure, slides, timing } from '~/shared/animation';
|
|
9
|
+
import { clamp } from '~/shared/clamp';
|
|
10
|
+
import { keystep } from '~/shared/keystep';
|
|
11
11
|
import './scss/index.scss';
|
|
12
12
|
|
|
13
13
|
|
|
@@ -517,7 +517,7 @@ function template(
|
|
|
517
517
|
>
|
|
518
518
|
<span
|
|
519
519
|
class='color-picker-thumb'
|
|
520
|
-
style='${() =>
|
|
520
|
+
style='${() => `--pick-x: ${color.s * 100}%; --pick-y: ${(1 - color.v) * 100}%;`}'
|
|
521
521
|
></span>
|
|
522
522
|
</div>
|
|
523
523
|
`;
|
|
@@ -644,7 +644,7 @@ function template(
|
|
|
644
644
|
<span
|
|
645
645
|
aria-hidden='true'
|
|
646
646
|
class='color-picker-swatch color-picker-swatch--leaving'
|
|
647
|
-
style='--
|
|
647
|
+
style='--leave-x: ${ghost.left}px; --leave-y: ${ghost.top}px; --value: ${ghost.hex};'
|
|
648
648
|
${{
|
|
649
649
|
onanimationend: () => {
|
|
650
650
|
let at = leaving.indexOf(ghost);
|
|
@@ -20,9 +20,6 @@
|
|
|
20
20
|
border-radius: var(--border-radius);
|
|
21
21
|
flex: none;
|
|
22
22
|
|
|
23
|
-
&--hue {
|
|
24
|
-
direction: ltr;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
24
|
&::-moz-range-thumb {
|
|
28
25
|
border-radius: var(--border-radius);
|
|
@@ -33,17 +30,22 @@
|
|
|
33
30
|
border-radius: var(--border-radius);
|
|
34
31
|
height: var(--thumb-height);
|
|
35
32
|
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
&--hue {
|
|
36
|
+
direction: ltr;
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
&-body {
|
|
40
42
|
display: flex;
|
|
41
43
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
44
|
+
}
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
&-body > #{&}-pad {
|
|
47
|
+
flex: 1 1 auto;
|
|
48
|
+
min-width: 0;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
// The range draws the track and thumb; these add the thumb's shadow and press, the track's hairline and focus.
|
|
@@ -52,11 +54,13 @@
|
|
|
52
54
|
box-shadow: var(--box-shadow);
|
|
53
55
|
touch-action: none;
|
|
54
56
|
|
|
57
|
+
|
|
55
58
|
&::-moz-range-thumb {
|
|
56
59
|
box-shadow: var(--thumb-shadow);
|
|
57
60
|
box-sizing: border-box;
|
|
58
61
|
transition: scale var(--transition-duration) var(--transition-timing-function);
|
|
59
62
|
|
|
63
|
+
|
|
60
64
|
@media (prefers-reduced-motion: reduce) {
|
|
61
65
|
transition: none;
|
|
62
66
|
}
|
|
@@ -67,11 +71,13 @@
|
|
|
67
71
|
box-sizing: border-box;
|
|
68
72
|
transition: scale var(--transition-duration) var(--transition-timing-function);
|
|
69
73
|
|
|
74
|
+
|
|
70
75
|
@media (prefers-reduced-motion: reduce) {
|
|
71
76
|
transition: none;
|
|
72
77
|
}
|
|
73
78
|
}
|
|
74
79
|
|
|
80
|
+
|
|
75
81
|
&:active::-moz-range-thumb {
|
|
76
82
|
scale: var(--thumb-scale-pressed);
|
|
77
83
|
}
|
|
@@ -96,7 +102,7 @@
|
|
|
96
102
|
// root so it wins over the reused button styles regardless of stylesheet order.
|
|
97
103
|
& &-copy {
|
|
98
104
|
position: absolute;
|
|
99
|
-
right: var(--
|
|
105
|
+
right: var(--right);
|
|
100
106
|
top: 50%;
|
|
101
107
|
translate: 0 -50%;
|
|
102
108
|
}
|
|
@@ -113,20 +119,20 @@
|
|
|
113
119
|
padding-inline-end: var(--padding-end);
|
|
114
120
|
}
|
|
115
121
|
|
|
116
|
-
// Qualified by the row so it wins over the reused input styles regardless of stylesheet order.
|
|
117
122
|
&-fields {
|
|
118
123
|
display: flex;
|
|
119
124
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
125
|
+
}
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
// Qualified by the row so it wins over the reused input styles regardless of stylesheet order.
|
|
128
|
+
&-fields > #{&}-alpha {
|
|
129
|
+
@extend %font-geist-mono;
|
|
130
|
+
cursor: default;
|
|
131
|
+
flex: 0 0 var(--width);
|
|
132
|
+
font-family: var(--font-family);
|
|
133
|
+
font-variant-numeric: tabular-nums;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
user-select: none;
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
&-header {
|
|
@@ -141,6 +147,7 @@
|
|
|
141
147
|
outline: none;
|
|
142
148
|
text-transform: uppercase;
|
|
143
149
|
|
|
150
|
+
|
|
144
151
|
&:focus {
|
|
145
152
|
outline: var(--focus-width) solid var(--focus-color);
|
|
146
153
|
outline-offset: var(--focus-offset);
|
|
@@ -159,12 +166,14 @@
|
|
|
159
166
|
touch-action: none;
|
|
160
167
|
user-select: none;
|
|
161
168
|
|
|
169
|
+
|
|
162
170
|
&::after {
|
|
163
171
|
@extend %layer;
|
|
164
172
|
box-shadow: var(--box-shadow);
|
|
165
173
|
content: '';
|
|
166
174
|
}
|
|
167
175
|
|
|
176
|
+
|
|
168
177
|
&:focus-visible {
|
|
169
178
|
outline: var(--focus-width) solid var(--focus-color);
|
|
170
179
|
outline-offset: var(--focus-offset);
|
|
@@ -184,6 +193,7 @@
|
|
|
184
193
|
border-block-start: var(--border-width) solid var(--border-color);
|
|
185
194
|
padding-block-start: var(--padding-vertical);
|
|
186
195
|
|
|
196
|
+
|
|
187
197
|
&-label {
|
|
188
198
|
color: var(--color);
|
|
189
199
|
font-size: var(--font-size);
|
|
@@ -221,6 +231,7 @@
|
|
|
221
231
|
user-select: none;
|
|
222
232
|
width: var(--size);
|
|
223
233
|
|
|
234
|
+
|
|
224
235
|
// A larger hit area; with the gap, neighbours meet but never overlap.
|
|
225
236
|
&::after {
|
|
226
237
|
border-radius: 50%;
|
|
@@ -229,11 +240,14 @@
|
|
|
229
240
|
position: absolute;
|
|
230
241
|
}
|
|
231
242
|
|
|
243
|
+
|
|
232
244
|
// A stand-in for a dropped swatch, whose own node is already gone.
|
|
233
245
|
&--leaving {
|
|
234
246
|
animation: color-picker-swatch--leaving var(--leave-duration) var(--leave-timing-function) forwards;
|
|
247
|
+
left: var(--leave-x);
|
|
235
248
|
pointer-events: none;
|
|
236
249
|
position: absolute;
|
|
250
|
+
top: var(--leave-y);
|
|
237
251
|
|
|
238
252
|
@keyframes color-picker-swatch--leaving {
|
|
239
253
|
to {
|
|
@@ -244,6 +258,7 @@
|
|
|
244
258
|
}
|
|
245
259
|
}
|
|
246
260
|
|
|
261
|
+
|
|
247
262
|
&:focus-visible {
|
|
248
263
|
outline: var(--focus-width) solid var(--focus-color);
|
|
249
264
|
outline-offset: var(--focus-offset);
|
|
@@ -264,17 +279,15 @@
|
|
|
264
279
|
box-shadow: var(--box-shadow);
|
|
265
280
|
box-sizing: border-box;
|
|
266
281
|
height: var(--size);
|
|
282
|
+
left: var(--pick-x);
|
|
267
283
|
pointer-events: none;
|
|
268
284
|
position: absolute;
|
|
269
285
|
scale: var(--scale);
|
|
286
|
+
top: var(--pick-y);
|
|
270
287
|
transition: scale var(--transition-duration) var(--transition-timing-function);
|
|
271
288
|
translate: -50% -50%;
|
|
272
289
|
width: var(--size);
|
|
273
290
|
z-index: 1;
|
|
274
|
-
|
|
275
|
-
@media (prefers-reduced-motion: reduce) {
|
|
276
|
-
transition: none;
|
|
277
|
-
}
|
|
278
291
|
}
|
|
279
292
|
|
|
280
293
|
&-value {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// Shown under anything see-through: the surface the picker sits on, checked with its own border color.
|
|
11
11
|
--checker: repeating-conic-gradient(var(--surface-border-default) 0 25%, var(--surface-background-default) 0 50%) 0 0 / 8px 8px;
|
|
12
12
|
--color: var(--color-text-500);
|
|
13
|
-
--font-size:
|
|
13
|
+
--font-size: var(--font-size-300);
|
|
14
14
|
--gap-horizontal: 12px;
|
|
15
15
|
--gap-vertical: 12px;
|
|
16
16
|
--hairline: inset 0 0 0 1px var(--surface-border-default);
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
--thumb-size: var(--height);
|
|
37
37
|
--vertical-size: auto;
|
|
38
38
|
|
|
39
|
+
|
|
39
40
|
&--alpha {
|
|
40
41
|
--background-default: linear-gradient(rgb(var(--rgb)), rgb(var(--rgb) / 0)), var(--checker);
|
|
41
42
|
}
|
|
@@ -78,11 +79,13 @@
|
|
|
78
79
|
--thumb-shadow: var(--knob-shadow);
|
|
79
80
|
--thumb-size: var(--size-500);
|
|
80
81
|
|
|
82
|
+
|
|
81
83
|
// Held thumbs keep their size.
|
|
82
84
|
@media (prefers-reduced-motion: reduce) {
|
|
83
85
|
--thumb-scale-pressed: 1;
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
|
|
86
89
|
&--alpha {
|
|
87
90
|
--background-default: linear-gradient(to right, rgb(var(--rgb) / 0), rgb(var(--rgb))), var(--checker);
|
|
88
91
|
--thumb-background: linear-gradient(rgb(var(--rgb) / var(--alpha)), rgb(var(--rgb) / var(--alpha))), var(--checker);
|
|
@@ -98,9 +101,9 @@
|
|
|
98
101
|
// Qualified by the root so it wins over the reused button styles regardless of stylesheet order. Inset inside the
|
|
99
102
|
// 36px field it sits in.
|
|
100
103
|
& &-copy {
|
|
101
|
-
--border-radius: calc(var(--border-radius-400) - var(--
|
|
102
|
-
--inset-horizontal: calc(var(--size-100) / 2);
|
|
104
|
+
--border-radius: calc(var(--border-radius-400) - var(--right));
|
|
103
105
|
--inset-vertical: calc(var(--size-100) / 2);
|
|
106
|
+
--right: calc(var(--size-100) / 2);
|
|
104
107
|
--size: calc(36px - var(--inset-vertical) * 2);
|
|
105
108
|
}
|
|
106
109
|
|
|
@@ -135,6 +138,7 @@
|
|
|
135
138
|
// Clears the copy button sitting at the field's end.
|
|
136
139
|
--padding-end: calc(var(--size) - var(--size-100) / 2);
|
|
137
140
|
|
|
141
|
+
|
|
138
142
|
&[aria-invalid='true'] {
|
|
139
143
|
--border-color-default: var(--color-red-400);
|
|
140
144
|
}
|
|
@@ -172,6 +176,7 @@
|
|
|
172
176
|
--border-width: 1px;
|
|
173
177
|
--padding-vertical: 12px;
|
|
174
178
|
|
|
179
|
+
|
|
175
180
|
&-label {
|
|
176
181
|
--color: var(--color-text-300);
|
|
177
182
|
--font-size: var(--font-size-300);
|
|
@@ -197,6 +202,7 @@
|
|
|
197
202
|
0 0 0 0 var(--color);
|
|
198
203
|
--size: 28px;
|
|
199
204
|
|
|
205
|
+
|
|
200
206
|
&--leaving {
|
|
201
207
|
--leave-duration: 150ms;
|
|
202
208
|
--leave-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
@@ -216,6 +222,7 @@
|
|
|
216
222
|
--shift-timing-function: var(--enter-timing-function);
|
|
217
223
|
--size: 28px;
|
|
218
224
|
|
|
225
|
+
|
|
219
226
|
// Swatches fade in and out where they stand.
|
|
220
227
|
@media (prefers-reduced-motion: reduce) {
|
|
221
228
|
--blur: 0px;
|
|
@@ -234,6 +241,7 @@
|
|
|
234
241
|
--scale-pressed: 1.1;
|
|
235
242
|
--size: var(--size-500);
|
|
236
243
|
|
|
244
|
+
|
|
237
245
|
@media (prefers-reduced-motion: reduce) {
|
|
238
246
|
--scale-pressed: 1;
|
|
239
247
|
}
|
|
@@ -7,4 +7,4 @@ const command: typeof palette & { search: typeof search } = Object.assign(palett
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export default command;
|
|
10
|
-
export type { Command, Matcher, Result, ResultGroup, Shortcut, State, Store, Tab } from './palette';
|
|
10
|
+
export type { Command, Matcher, Result, ResultGroup, Shortcut, Sprite, State, Store, Tab } from './palette';
|