@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,102 +2,150 @@
|
|
|
2
2
|
@use 'css-utilities/background';
|
|
3
3
|
@use 'css-utilities/border';
|
|
4
4
|
@use 'css-utilities/box-shadow';
|
|
5
|
-
@use 'css-utilities/color';
|
|
6
5
|
@use 'css-utilities/surface';
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
// The native thumb is the range's own pseudo element, so its '--thumb-*' values sit beside the track's and its states
|
|
9
|
+
// resolve on the range itself.
|
|
9
10
|
.range {
|
|
10
11
|
@extend %background-state, %border-primary, %border-state;
|
|
11
|
-
--background-default: linear-gradient(
|
|
12
|
+
--background-default: linear-gradient(var(--fill-direction), var(--fill-color) var(--thumb-position), var(--track-color) var(--thumb-position));
|
|
12
13
|
--border-radius: 240px;
|
|
13
|
-
--
|
|
14
|
+
--fill-color: var(--thumb-background);
|
|
15
|
+
--fill-direction: to right;
|
|
14
16
|
--height: var(--size-200);
|
|
15
17
|
--margin-horizontal: 0px;
|
|
16
18
|
--margin-vertical: 0px;
|
|
17
19
|
--thumb-background: var(--surface-background-default);
|
|
20
|
+
--thumb-border-color: var(--border-color);
|
|
21
|
+
--thumb-border-width: var(--border-width-700);
|
|
22
|
+
--thumb-cursor: var(--thumb-cursor-default);
|
|
23
|
+
--thumb-cursor-active: var(--thumb-cursor-default);
|
|
24
|
+
--thumb-cursor-default: pointer;
|
|
25
|
+
--thumb-cursor-disabled: not-allowed;
|
|
26
|
+
--thumb-scale: var(--thumb-scale-default);
|
|
27
|
+
--thumb-scale-active: var(--thumb-scale-default);
|
|
28
|
+
--thumb-scale-default: 1;
|
|
29
|
+
--thumb-shadow: var(--thumb-shadow-default);
|
|
30
|
+
--thumb-shadow-active: var(--thumb-shadow-default);
|
|
31
|
+
--thumb-shadow-default: none;
|
|
32
|
+
--thumb-shadow-focus: var(--thumb-shadow-default);
|
|
18
33
|
--thumb-size: var(--size-400);
|
|
34
|
+
--thumb-transition-duration: 150ms;
|
|
35
|
+
--thumb-transition-timing-function: ease-out;
|
|
36
|
+
--track-color: var(--color-primary-300);
|
|
37
|
+
--transition-duration: 150ms;
|
|
38
|
+
--transition-timing-function: ease-out;
|
|
19
39
|
--width: 100%;
|
|
20
40
|
|
|
21
41
|
|
|
22
|
-
// A physical knob that stays white in both modes, over a track
|
|
23
|
-
// in the range's own background beside the fill, so
|
|
24
|
-
// surface, which would flatten the thumb's shadow. The thumb grows while held and rings while focused.
|
|
42
|
+
// A physical knob that stays white in both modes, over a track in the level's pressed border color; a level-below
|
|
43
|
+
// track is too faint at 4px. The track is painted in the range's own background beside the fill, so the range never
|
|
44
|
+
// counts as a surface, which would flatten the thumb's shadow. The thumb grows while held and rings while focused.
|
|
25
45
|
&--slider {
|
|
26
|
-
--background-default: linear-gradient(to right, var(--fill-color) var(--thumb-position), var(--track-color) var(--thumb-position));
|
|
27
46
|
--fill-color: var(--color-primary-500);
|
|
28
47
|
--height: 4px;
|
|
29
48
|
--thumb-background: var(--color-white-300);
|
|
30
|
-
--thumb-border-color: var(--
|
|
31
|
-
--thumb-border-width:
|
|
49
|
+
--thumb-border-color: oklch(from var(--color-primary-500) l c h / 0.24);
|
|
50
|
+
--thumb-border-width: var(--border-width-400);
|
|
51
|
+
--thumb-cursor-active: grabbing;
|
|
52
|
+
--thumb-cursor-default: grab;
|
|
32
53
|
--thumb-scale-active: 1.2;
|
|
33
|
-
--thumb-shadow: var(--surface-shadow-default);
|
|
34
54
|
--thumb-shadow-active: none;
|
|
55
|
+
--thumb-shadow-default: var(--surface-shadow-default);
|
|
35
56
|
--thumb-shadow-focus: 0 0 0 3px var(--focus-color);
|
|
36
|
-
--
|
|
37
|
-
--thumb-transition-duration: 150ms;
|
|
38
|
-
--thumb-transition-timing-function: ease-out;
|
|
39
|
-
--track-color: #{surface.background('calc(var(--surface-level) - 1)')};
|
|
57
|
+
--track-color: var(--surface-border-pressed);
|
|
40
58
|
|
|
41
59
|
@media (pointer: coarse) {
|
|
42
60
|
--thumb-size: var(--size-500);
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
@media (prefers-reduced-motion: reduce) {
|
|
46
|
-
--thumb-scale-active:
|
|
64
|
+
--thumb-scale-active: var(--thumb-scale-default);
|
|
47
65
|
}
|
|
48
66
|
}
|
|
49
67
|
|
|
50
68
|
&--vertical {
|
|
51
|
-
--
|
|
69
|
+
--fill-direction: to top;
|
|
52
70
|
--vertical-size: 176px;
|
|
71
|
+
}
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
|
|
74
|
+
// Chained through '.inline-edit' so these win over the inline edit's own regardless of stylesheet order.
|
|
75
|
+
&-edit.inline-edit > .inline-edit-display,
|
|
76
|
+
&-edit.inline-edit > .inline-edit-field {
|
|
77
|
+
--border-radius: var(--border-radius-300);
|
|
78
|
+
--padding-end: var(--padding-start);
|
|
57
79
|
}
|
|
58
80
|
|
|
81
|
+
// Filling its box from the start edge by default.
|
|
82
|
+
&-fill {
|
|
83
|
+
--background: var(--color-primary-500);
|
|
84
|
+
--border-radius: var(--border-radius-400);
|
|
85
|
+
--bottom: 0px;
|
|
86
|
+
--left: 0px;
|
|
87
|
+
--right: auto;
|
|
88
|
+
--top: 0px;
|
|
89
|
+
--width: auto;
|
|
90
|
+
}
|
|
59
91
|
|
|
60
|
-
//
|
|
61
|
-
// draws the selection as a pill between grabbable knobs
|
|
92
|
+
// The label and reset share the top row above the track, each thumb's value riding under it in the ticks' row.
|
|
93
|
+
// '--slider' draws the selection as a pill between grabbable knobs; '--vertical' centers the label and reset above an
|
|
94
|
+
// upright track.
|
|
62
95
|
&-filter {
|
|
63
96
|
@extend %surface-raise;
|
|
97
|
+
--areas: "label reset" "body body";
|
|
64
98
|
--color: var(--color-text-500);
|
|
99
|
+
--columns: 1fr auto;
|
|
65
100
|
--font-size: inherit;
|
|
66
|
-
--gap-horizontal: 0px;
|
|
67
|
-
--gap-vertical: var(--size-500);
|
|
68
|
-
--muted-color: var(--color-text-300);
|
|
69
101
|
--width: 384px;
|
|
70
102
|
|
|
71
103
|
|
|
104
|
+
// Chained through '.group', as is each variant's gap, so they win over the group's own regardless of
|
|
105
|
+
// stylesheet order.
|
|
106
|
+
&.group {
|
|
107
|
+
--gap-horizontal: var(--size-400);
|
|
108
|
+
--gap-vertical: var(--size-200);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Between the thumbs, clipped square by the track's own rounding.
|
|
112
|
+
.range-fill {
|
|
113
|
+
--border-radius: 0px;
|
|
114
|
+
--left: calc(var(--low) * 100%);
|
|
115
|
+
--right: calc((1 - var(--high)) * 100%);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// A bar across the track from the selection's nearer edge to the pointer, on whichever side it hovers.
|
|
119
|
+
.range-ghost {
|
|
120
|
+
--border-radius: 999px;
|
|
121
|
+
--end: max(var(--preview), var(--low));
|
|
122
|
+
--height: var(--thickness);
|
|
123
|
+
--left: calc(var(--start) * 100%);
|
|
124
|
+
--start: min(var(--preview), var(--high));
|
|
125
|
+
--thickness: var(--size-100);
|
|
126
|
+
--top: 50%;
|
|
127
|
+
--translate: 0 -50%;
|
|
128
|
+
--width: calc((var(--end) - var(--start)) * 100%);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
72
132
|
&--slider {
|
|
73
|
-
--font-size:
|
|
74
|
-
--gap-vertical: var(--size-100);
|
|
133
|
+
--font-size: var(--font-size-400);
|
|
75
134
|
--width: 100%;
|
|
76
135
|
|
|
77
|
-
.range-filter-clear,
|
|
78
|
-
.range-filter-ghost {
|
|
79
|
-
--display: none;
|
|
80
|
-
}
|
|
81
136
|
|
|
82
|
-
|
|
83
|
-
--align: center;
|
|
137
|
+
&.group {
|
|
84
138
|
--gap-horizontal: var(--size-100);
|
|
85
139
|
--gap-vertical: var(--size-100);
|
|
86
140
|
}
|
|
87
141
|
|
|
88
|
-
.range-filter-heading {
|
|
89
|
-
--display: contents;
|
|
90
|
-
}
|
|
91
142
|
|
|
92
|
-
.range-
|
|
93
|
-
--
|
|
94
|
-
--font-size: 1em;
|
|
95
|
-
--margin-vertical: 0px;
|
|
96
|
-
--text-transform: none;
|
|
143
|
+
.range-fill {
|
|
144
|
+
--border-radius: 999px;
|
|
97
145
|
}
|
|
98
146
|
|
|
99
|
-
.range-
|
|
100
|
-
--
|
|
147
|
+
.range-ghost {
|
|
148
|
+
--display: none;
|
|
101
149
|
}
|
|
102
150
|
|
|
103
151
|
.range-filter-root {
|
|
@@ -110,196 +158,140 @@
|
|
|
110
158
|
|
|
111
159
|
.range-filter-thumb {
|
|
112
160
|
--background: var(--color-white-300);
|
|
113
|
-
--border-color: var(--
|
|
161
|
+
--border-color: oklch(from var(--color-primary-500) l c h / 0.24);
|
|
114
162
|
--border-width: var(--border-width-400);
|
|
115
163
|
--box-shadow-active: none;
|
|
116
164
|
--cursor: grab;
|
|
117
165
|
--cursor-active: grabbing;
|
|
118
166
|
--focus-shadow: 0 0 0 3px var(--focus-color);
|
|
119
167
|
--outline: none;
|
|
120
|
-
--scale-active: 1.2;
|
|
121
|
-
--scale-hover: 1;
|
|
122
168
|
--shadow-duration: 150ms;
|
|
123
|
-
|
|
124
|
-
@media (prefers-reduced-motion: reduce) {
|
|
125
|
-
--scale-active: 1;
|
|
126
|
-
}
|
|
127
169
|
}
|
|
128
170
|
|
|
129
171
|
// Matches the fill to the thumb's travel without changing how the range behaves.
|
|
130
172
|
.range-filter-track {
|
|
131
|
-
--background:
|
|
173
|
+
--background: var(--surface-border-pressed);
|
|
132
174
|
--margin-horizontal: calc(var(--thumb-size) / 2);
|
|
133
175
|
--margin-vertical: calc(var(--thumb-size) / 2);
|
|
134
176
|
--overflow: visible;
|
|
135
177
|
--thickness: 4px;
|
|
136
178
|
}
|
|
137
179
|
|
|
138
|
-
// Unset, so the value takes the weight around it.
|
|
139
|
-
.range-filter-value {
|
|
140
|
-
--font-size: calc(var(--font-size-400) * 0.875);
|
|
141
|
-
--font-weight: initial;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
180
|
@include tokens.state(disabled) {
|
|
145
181
|
.range-filter-thumb {
|
|
146
182
|
--cursor: not-allowed;
|
|
147
183
|
--cursor-active: not-allowed;
|
|
148
|
-
--scale-active: 1;
|
|
149
184
|
}
|
|
150
185
|
}
|
|
151
186
|
}
|
|
152
187
|
|
|
153
|
-
// The
|
|
188
|
+
// The empty outer columns center the label and reset between them; the parts measure along the height instead.
|
|
154
189
|
&--vertical {
|
|
190
|
+
--areas: ". label reset ." "body body body body";
|
|
191
|
+
--columns: 1fr auto auto 1fr;
|
|
155
192
|
--width: max-content;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&-body {
|
|
159
|
-
--gap-horizontal: 0px;
|
|
160
|
-
--gap-vertical: var(--size-100);
|
|
161
|
-
}
|
|
162
193
|
|
|
163
|
-
&-clear {
|
|
164
|
-
@extend %background-state, %color-state, %color-text;
|
|
165
|
-
--background-default: var(--surface-background-default);
|
|
166
|
-
--background-hover: var(--surface-background-hover);
|
|
167
|
-
--background-pressed: var(--background-hover);
|
|
168
|
-
--border-color: var(--surface-border-default);
|
|
169
|
-
--border-radius: var(--border-radius-300);
|
|
170
|
-
--border-width: 1px;
|
|
171
|
-
--display: inline-flex;
|
|
172
|
-
--font-size: var(--font-size-300);
|
|
173
|
-
--gap-horizontal: calc(var(--size-100) / 2);
|
|
174
|
-
--gap-vertical: 0px;
|
|
175
|
-
--height: 24px;
|
|
176
|
-
--padding-horizontal: var(--size-100);
|
|
177
|
-
--padding-vertical: 0px;
|
|
178
|
-
--transition-duration: 150ms;
|
|
179
|
-
--transition-timing-function: ease-out;
|
|
180
194
|
|
|
181
|
-
|
|
182
|
-
--
|
|
183
|
-
--
|
|
184
|
-
--color-hover: var(--color-default);
|
|
185
|
-
--color-pressed: var(--color-default);
|
|
195
|
+
&.group {
|
|
196
|
+
--gap-horizontal: var(--size-200);
|
|
197
|
+
--gap-vertical: var(--size-400);
|
|
186
198
|
}
|
|
187
199
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
--
|
|
191
|
-
--
|
|
200
|
+
.range-fill {
|
|
201
|
+
--bottom: calc(var(--low) * 100%);
|
|
202
|
+
--left: 0px;
|
|
203
|
+
--right: 0px;
|
|
204
|
+
--top: calc((1 - var(--high)) * 100%);
|
|
192
205
|
}
|
|
193
|
-
}
|
|
194
206
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
@media (prefers-reduced-motion: reduce) {
|
|
203
|
-
--transition-duration: 0s;
|
|
207
|
+
.range-ghost {
|
|
208
|
+
--bottom: calc(var(--start) * 100%);
|
|
209
|
+
--height: calc((var(--end) - var(--start)) * 100%);
|
|
210
|
+
--left: 50%;
|
|
211
|
+
--top: auto;
|
|
212
|
+
--translate: -50% 0;
|
|
213
|
+
--width: var(--thickness);
|
|
204
214
|
}
|
|
205
|
-
}
|
|
206
215
|
|
|
207
|
-
|
|
208
|
-
.range-filter-
|
|
209
|
-
--
|
|
216
|
+
// Clears the ticks of a thumb grown on hover.
|
|
217
|
+
.range-filter-body {
|
|
218
|
+
--gap-horizontal: var(--size-200);
|
|
219
|
+
--justify-self: center;
|
|
210
220
|
}
|
|
211
221
|
|
|
212
|
-
.range-filter-
|
|
213
|
-
--
|
|
222
|
+
.range-filter-root {
|
|
223
|
+
--height: 176px;
|
|
214
224
|
}
|
|
215
|
-
}
|
|
216
225
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
226
|
+
// The body's gap beside the track, less the box's own padding, so the text starts where the ticks' does.
|
|
227
|
+
.range-filter-tip {
|
|
228
|
+
--offset: calc(var(--ticks-gap-horizontal) - var(--box-padding-start));
|
|
229
|
+
}
|
|
220
230
|
|
|
221
|
-
&-field {
|
|
222
|
-
--background: var(--surface-background-default);
|
|
223
|
-
--border-color: var(--surface-border-default);
|
|
224
|
-
--border-radius: var(--border-radius-400);
|
|
225
|
-
--border-width: 1px;
|
|
226
|
-
--cursor: text;
|
|
227
|
-
--gap-horizontal: calc(var(--size-300) / 2);
|
|
228
|
-
--gap-vertical: 0px;
|
|
229
|
-
--height: 40px;
|
|
230
|
-
--padding-horizontal: 12px;
|
|
231
231
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
--
|
|
232
|
+
// Without a reset, the label alone is centred, clear of the gap an empty column would leave beside it.
|
|
233
|
+
&:not(:has(> .range-filter-reset)) {
|
|
234
|
+
--areas: ". label ." "body body body";
|
|
235
|
+
--columns: 1fr auto 1fr;
|
|
235
236
|
}
|
|
237
|
+
}
|
|
236
238
|
|
|
237
|
-
&-prefix {
|
|
238
|
-
--color: var(--muted-color);
|
|
239
|
-
}
|
|
240
239
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
--font-size: inherit;
|
|
246
|
-
--padding-horizontal: 0px;
|
|
247
|
-
--padding-vertical: 0px;
|
|
248
|
-
--width: 72px;
|
|
249
|
-
}
|
|
240
|
+
&-body {
|
|
241
|
+
--gap-horizontal: 0px;
|
|
242
|
+
--gap-vertical: calc(var(--size-100) / 2);
|
|
243
|
+
--justify-self: stretch;
|
|
250
244
|
}
|
|
251
245
|
|
|
252
246
|
&-fields {
|
|
253
247
|
--gap-horizontal: 12px;
|
|
254
248
|
--gap-vertical: 0px;
|
|
249
|
+
--margin-vertical: var(--size-200);
|
|
250
|
+
--pointer-events: auto;
|
|
255
251
|
}
|
|
256
252
|
|
|
257
|
-
//
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
--
|
|
261
|
-
--
|
|
262
|
-
--
|
|
263
|
-
--
|
|
264
|
-
--
|
|
253
|
+
// A compact surface button showing only its icon until pointed at or focused, still while disabled. Chained
|
|
254
|
+
// through '.button' so it wins over the button's own values regardless of stylesheet order.
|
|
255
|
+
&-reset.button {
|
|
256
|
+
--box-shadow-default: var(--surface-shadow-default);
|
|
257
|
+
--font-size: var(--font-size-300);
|
|
258
|
+
--font-weight: var(--font-weight-500);
|
|
259
|
+
--gap-vertical: 0px;
|
|
260
|
+
--padding-horizontal: var(--size-200);
|
|
261
|
+
--padding-vertical: var(--size-100);
|
|
262
|
+
--transition-duration: 150ms;
|
|
265
263
|
--transition-timing-function: ease-out;
|
|
266
264
|
|
|
267
|
-
|
|
268
|
-
--
|
|
269
|
-
--
|
|
265
|
+
&:disabled {
|
|
266
|
+
--background-hover: var(--background-default);
|
|
267
|
+
--background-pressed: var(--background-default);
|
|
268
|
+
--border-color-hover: var(--border-color-default);
|
|
269
|
+
--border-color-pressed: var(--border-color-default);
|
|
270
|
+
--box-shadow-hover: var(--box-shadow-default);
|
|
271
|
+
--box-shadow-pressed: var(--box-shadow-default);
|
|
272
|
+
--color-hover: var(--color-default);
|
|
273
|
+
--color-pressed: var(--color-default);
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
--gap-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
&-heading {
|
|
280
|
-
--display: block;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
&-label {
|
|
284
|
-
--color: var(--muted-color);
|
|
285
|
-
--font-size: var(--font-size-300);
|
|
286
|
-
--margin-vertical: calc(var(--size-100) / 2);
|
|
287
|
-
--text-transform: uppercase;
|
|
277
|
+
// The space the label opens beside the icon. Qualified by the button so it wins over the reveal's own values
|
|
278
|
+
// regardless of stylesheet order.
|
|
279
|
+
&-reset > .button-reveal {
|
|
280
|
+
--gap-horizontal: calc(var(--size-100) / 2);
|
|
288
281
|
}
|
|
289
282
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
--
|
|
283
|
+
// Chained through '.icon' so it wins over the icon's own size and color regardless of stylesheet order.
|
|
284
|
+
&-reset-icon.icon {
|
|
285
|
+
--size: 12px;
|
|
293
286
|
}
|
|
294
287
|
|
|
295
|
-
// Sized by its thumbs, which travel from half a thumb in at each end.
|
|
288
|
+
// Sized by its thumbs, which travel from half a thumb in at each end. Keeps the body's gaps to the ticks, read
|
|
289
|
+
// here before the inline edit's own gaps shadow them, so its thumbs' values can sit in the ticks' row.
|
|
296
290
|
&-root {
|
|
297
291
|
--cursor: pointer;
|
|
292
|
+
--ticks-gap-horizontal: var(--gap-horizontal);
|
|
293
|
+
--ticks-gap-vertical: var(--gap-vertical);
|
|
298
294
|
--thumb-size: var(--size-500);
|
|
299
|
-
|
|
300
|
-
&--vertical {
|
|
301
|
-
--height: 176px;
|
|
302
|
-
}
|
|
303
295
|
}
|
|
304
296
|
|
|
305
297
|
&-separator {
|
|
@@ -308,15 +300,8 @@
|
|
|
308
300
|
--width: 12px;
|
|
309
301
|
}
|
|
310
302
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
&-symbol {
|
|
316
|
-
--display: none;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// Grows on hover and while held, and its shadow eases only where a variant asks; still under reduced motion.
|
|
303
|
+
// Rests a touch small and grows on hover and while held, matching the switch's knob; its shadow eases only where
|
|
304
|
+
// a variant asks. Still under reduced motion.
|
|
320
305
|
&-thumb {
|
|
321
306
|
@extend %box-shadow-state;
|
|
322
307
|
--background: var(--surface-background-default);
|
|
@@ -329,27 +314,68 @@
|
|
|
329
314
|
--cursor-active: initial;
|
|
330
315
|
--focus-shadow: var(--box-shadow-default);
|
|
331
316
|
--outline: 0 solid var(--focus-color);
|
|
332
|
-
--scale-active: 1
|
|
333
|
-
--scale-
|
|
317
|
+
--scale-active: 1;
|
|
318
|
+
--scale-default: 0.92;
|
|
319
|
+
--scale-hover: 0.96;
|
|
334
320
|
--shadow-duration: 0s;
|
|
321
|
+
--shadow-timing-function: ease-out;
|
|
335
322
|
--transition-duration: 150ms;
|
|
336
323
|
--transition-timing-function: ease-out;
|
|
337
324
|
|
|
338
325
|
@media (prefers-reduced-motion: reduce) {
|
|
339
|
-
--scale-active:
|
|
340
|
-
--scale-hover:
|
|
326
|
+
--scale-active: var(--scale-default);
|
|
327
|
+
--scale-hover: var(--scale-default);
|
|
341
328
|
--transition-duration: 0s;
|
|
342
329
|
}
|
|
343
330
|
|
|
331
|
+
|
|
344
332
|
// The default, so a held thumb still takes its press shadow.
|
|
345
333
|
&:focus-visible {
|
|
346
334
|
--box-shadow-default: var(--focus-shadow);
|
|
347
335
|
}
|
|
348
336
|
}
|
|
349
337
|
|
|
338
|
+
&-tick {
|
|
339
|
+
--opacity: 1;
|
|
340
|
+
--transition-duration: 150ms;
|
|
341
|
+
--transition-timing-function: ease-out;
|
|
342
|
+
|
|
343
|
+
@media (prefers-reduced-motion: reduce) {
|
|
344
|
+
--transition-duration: 0s;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
&--covered {
|
|
349
|
+
--opacity: 0;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
350
353
|
&-ticks {
|
|
351
|
-
--color: oklch(from var(--color-primary-300) l c h / 0.
|
|
352
|
-
--font-size: var(--font-size-
|
|
354
|
+
--color: oklch(from var(--color-primary-300) l c h / 0.5);
|
|
355
|
+
--font-size: var(--font-size-300);
|
|
356
|
+
--font-weight: var(--font-weight-500);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// Its text the body's gap below the track as the ticks' is, so a thumb's value sits in their row. Its text is
|
|
360
|
+
// centred in a row a line plus '--size-100' tall, so it starts half of that below the box's top. A slim box
|
|
361
|
+
// either side, room enough for the hover tint, with no space kept for a pencil.
|
|
362
|
+
&-tip {
|
|
363
|
+
// Its thumb's centre, as the thumb's own travel places it, in the track's width.
|
|
364
|
+
--center: calc(var(--thumb-size) / 2 + var(--position) * (100cqi - var(--thumb-size)));
|
|
365
|
+
--font-size: var(--font-size-300);
|
|
366
|
+
--font-weight: var(--font-weight-500);
|
|
367
|
+
--offset: calc(var(--ticks-gap-vertical) - var(--size-100));
|
|
368
|
+
|
|
369
|
+
// Chained through '.inline-edit' so these win over the inline edit's own regardless of stylesheet order.
|
|
370
|
+
&.inline-edit {
|
|
371
|
+
--color: var(--color-primary-300);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// The ticks' own line height rather than the inline edit's 'normal', so its text sits on their line.
|
|
375
|
+
&.inline-edit > .inline-edit-display,
|
|
376
|
+
&.inline-edit > .inline-edit-field {
|
|
377
|
+
--line-height: 1lh;
|
|
378
|
+
}
|
|
353
379
|
}
|
|
354
380
|
|
|
355
381
|
&-track {
|
|
@@ -361,19 +387,11 @@
|
|
|
361
387
|
--thickness: var(--size-100);
|
|
362
388
|
}
|
|
363
389
|
|
|
364
|
-
&-value {
|
|
365
|
-
--font-size: var(--font-size-500);
|
|
366
|
-
--font-weight: var(--font-weight-700, 700);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
&-values {
|
|
370
|
-
--gap-horizontal: calc(var(--size-300) / 2);
|
|
371
|
-
--gap-vertical: 0px;
|
|
372
|
-
}
|
|
373
390
|
|
|
374
391
|
@include tokens.state(disabled) {
|
|
375
|
-
.
|
|
376
|
-
|
|
392
|
+
// The scrub has no disabled state of its own, so its label and tape stop taking the pointer here.
|
|
393
|
+
.range-filter-fields {
|
|
394
|
+
--pointer-events: none;
|
|
377
395
|
}
|
|
378
396
|
|
|
379
397
|
.range-filter-root {
|
|
@@ -381,9 +399,195 @@
|
|
|
381
399
|
}
|
|
382
400
|
|
|
383
401
|
.range-filter-thumb {
|
|
384
|
-
--scale-active:
|
|
385
|
-
--scale-hover:
|
|
402
|
+
--scale-active: var(--scale-default);
|
|
403
|
+
--scale-hover: var(--scale-default);
|
|
386
404
|
}
|
|
387
405
|
}
|
|
388
406
|
}
|
|
407
|
+
|
|
408
|
+
// Filling its box from the start edge by default.
|
|
409
|
+
&-ghost {
|
|
410
|
+
--background: var(--border-color);
|
|
411
|
+
--bottom: auto;
|
|
412
|
+
--display: block;
|
|
413
|
+
--fade-duration: 100ms;
|
|
414
|
+
--fade-timing-function: ease-out;
|
|
415
|
+
--height: 100%;
|
|
416
|
+
--left: 0px;
|
|
417
|
+
--top: 0px;
|
|
418
|
+
--transition-duration: 75ms;
|
|
419
|
+
--transition-timing-function: ease-out;
|
|
420
|
+
--translate: none;
|
|
421
|
+
--width: 0px;
|
|
422
|
+
|
|
423
|
+
@media (prefers-reduced-motion: reduce) {
|
|
424
|
+
--fade-duration: 0s;
|
|
425
|
+
--transition-duration: 0s;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// The fill's width and the thumb's travel are shared by the track's parts and the text beside it, so they sit on
|
|
430
|
+
// the root. Percentages resolve where they're read: against the track for its parts, and against the gradient the
|
|
431
|
+
// text paints through, as wide as the track. 'inline' floats the text over a taller track and inks it in two colors
|
|
432
|
+
// split at the fill.
|
|
433
|
+
&-surface {
|
|
434
|
+
--fill-width: calc(var(--thumb-size) + var(--travel) * var(--fraction));
|
|
435
|
+
--thumb-size: var(--size-400);
|
|
436
|
+
--travel: calc(100% - var(--thumb-size));
|
|
437
|
+
--width: 384px;
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
.range-fill {
|
|
441
|
+
--width: var(--fill-width);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// As far as the fill would reach to the hovered value, under the fill so only the stretch past it shows.
|
|
445
|
+
.range-ghost {
|
|
446
|
+
--border-radius: var(--border-radius-400);
|
|
447
|
+
--width: calc(var(--thumb-size) + var(--travel) * var(--preview));
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
&--inline {
|
|
452
|
+
// 1 while its centre, a handle's width either side, falls in the label's or the value's box as the group
|
|
453
|
+
// measures them, else 0.
|
|
454
|
+
.range-surface-handle {
|
|
455
|
+
--behind: max(
|
|
456
|
+
max(0, sign(var(--center) - var(--start-inset) + var(--width))) * max(0, sign(var(--start-inset) + var(--start-width) + var(--width) - var(--center))),
|
|
457
|
+
max(0, sign(var(--center) - 100cqi + var(--end-inset) + var(--end-width) + var(--width))) * max(0, sign(100cqi - var(--end-inset) + var(--width) - var(--center)))
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// Chained like the text's own values, so these outrank them.
|
|
462
|
+
.range-surface-label.group-label,
|
|
463
|
+
.range-surface-value.inline-edit {
|
|
464
|
+
--ink-fill: var(--color-surface);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// One box for both, so the overlay insets them alike: the same height, and the value's padding either side.
|
|
468
|
+
.range-surface-label.group-label {
|
|
469
|
+
--height: var(--size-600);
|
|
470
|
+
--padding-horizontal: var(--size-100);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.range-surface-unit {
|
|
474
|
+
--font-weight: var(--font-weight-400);
|
|
475
|
+
--margin-horizontal: calc(var(--size-100) / 2);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.range-surface-value {
|
|
479
|
+
--font-size: var(--font-size-400);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Its row sized by the box rather than the inline edit's own line height.
|
|
483
|
+
.range-surface-value.inline-edit {
|
|
484
|
+
--height: var(--size-600);
|
|
485
|
+
--margin-end: 0px;
|
|
486
|
+
--margin-start: 0px;
|
|
487
|
+
--margin-vertical: 0px;
|
|
488
|
+
--row-height: 0px;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
&-control {
|
|
494
|
+
@extend %surface-lower;
|
|
495
|
+
--background: var(--surface-background-default);
|
|
496
|
+
--border-color: var(--surface-border-default);
|
|
497
|
+
--border-radius: var(--border-radius-400);
|
|
498
|
+
--border-width: var(--border-width-400);
|
|
499
|
+
--height: 40px;
|
|
500
|
+
--tick-major-color: color-mix(in srgb, var(--color-text-400) 40%, transparent);
|
|
501
|
+
--tick-major-height: 10px;
|
|
502
|
+
--tick-minor-color: color-mix(in srgb, var(--color-text-400) 20%, transparent);
|
|
503
|
+
--tick-minor-height: 5px;
|
|
504
|
+
--tick-width: 1px;
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
&:has(> .range-surface-input:hover) > .range-surface-handle {
|
|
508
|
+
--opacity-behind: 0.6;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// Last, so held outranks pointed at.
|
|
512
|
+
&:has(> .range-surface-input:active) > .range-surface-handle {
|
|
513
|
+
--opacity-behind: 1;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// Surface-colored, so it reads against the primary fill it rides on. Clear of any text above the track, so whole;
|
|
518
|
+
// behind it, faint at rest, stronger while the track is pointed at, whole again while held. Its centre is in the
|
|
519
|
+
// container's width, the track's, so 'sign()' can read it as a length.
|
|
520
|
+
&-handle {
|
|
521
|
+
--background: var(--color-surface);
|
|
522
|
+
--behind: 0;
|
|
523
|
+
--border-radius: var(--border-radius-200);
|
|
524
|
+
--center: calc(var(--thumb-size) / 2 + (100cqi - var(--thumb-size)) * var(--fraction));
|
|
525
|
+
--display: block;
|
|
526
|
+
--height: 40%;
|
|
527
|
+
--opacity-behind: 0.25;
|
|
528
|
+
--transition-duration: 150ms;
|
|
529
|
+
--transition-timing-function: ease-out;
|
|
530
|
+
--width: 3px;
|
|
531
|
+
|
|
532
|
+
@media (prefers-reduced-motion: reduce) {
|
|
533
|
+
--transition-duration: 0s;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
&-input {
|
|
538
|
+
--cursor: ew-resize;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// The inks its gradient paints; the label keeps the group label's own size and weight. Chained through
|
|
542
|
+
// '.group-label' and '.inline-edit' so they win over those components' own values regardless of stylesheet
|
|
543
|
+
// order.
|
|
544
|
+
&-label.group-label,
|
|
545
|
+
&-value.inline-edit {
|
|
546
|
+
--ink: var(--color-text-400);
|
|
547
|
+
--ink-fill: var(--ink);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// Transparent, so the text shows only its ink. The value's own color stays, for the field that edits it.
|
|
551
|
+
&-label.group-label {
|
|
552
|
+
--color: transparent;
|
|
553
|
+
--height: auto;
|
|
554
|
+
--padding-horizontal: 0px;
|
|
555
|
+
--padding-vertical: 0px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// Takes the value's weight unless a variant sets its own.
|
|
559
|
+
&-unit {
|
|
560
|
+
--font-weight: inherit;
|
|
561
|
+
--margin-horizontal: 0px;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
&-value {
|
|
565
|
+
--font-weight: var(--font-weight-500);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// Pushed to the line's end, its end pulled out by the box's own padding so the text sits flush with the track.
|
|
569
|
+
// Pulled in above and below to a single line, so its taller box overhangs the label's row instead of growing it.
|
|
570
|
+
&-value.inline-edit {
|
|
571
|
+
--height: auto;
|
|
572
|
+
--margin-end: calc(var(--box-padding-start) * -1);
|
|
573
|
+
--margin-start: auto;
|
|
574
|
+
--margin-vertical: calc((1em - var(--row-height)) / 2);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
// Held outranks focused, so a dragged thumb keeps its press shadow.
|
|
580
|
+
&:active:not(:disabled) {
|
|
581
|
+
--thumb-cursor: var(--thumb-cursor-active);
|
|
582
|
+
--thumb-scale: var(--thumb-scale-active);
|
|
583
|
+
--thumb-shadow: var(--thumb-shadow-active);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
&:disabled {
|
|
587
|
+
--thumb-cursor: var(--thumb-cursor-disabled);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
&:focus-visible {
|
|
591
|
+
--thumb-shadow: var(--thumb-shadow-focus);
|
|
592
|
+
}
|
|
389
593
|
}
|