@esportsplus/ui 0.59.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.audit/audit.json +2810 -0
- package/.audit/check-scss.mjs +20 -0
- package/.audit/rules-audit.md +542 -0
- package/README.md +42 -31
- package/RULES.md +115 -0
- package/build/components/accordion/index.d.ts +12 -2175
- package/build/components/accordion/index.js +3 -4
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.js +47 -64
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +6 -4
- package/build/components/button/copy.js +24 -20
- package/build/components/button/faces.d.ts +0 -1
- package/build/components/button/faces.js +5 -6
- package/build/components/button/index.d.ts +3 -7
- package/build/components/button/index.js +3 -5
- package/build/components/button/kbd.d.ts +12 -8
- package/build/components/button/kbd.js +59 -74
- package/build/components/button/morph/index.d.ts +2169 -0
- package/build/components/button/morph/index.js +4 -0
- package/build/components/button/morph/save.d.ts +19 -0
- package/build/components/button/morph/save.js +57 -0
- package/build/components/button/morph/template.d.ts +22 -0
- package/build/components/button/morph/template.js +90 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.js +2 -2
- package/build/components/button/split.d.ts +1 -1
- package/build/components/button/split.js +11 -15
- package/build/components/capslock/index.js +6 -5
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.js +103 -111
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/index.d.ts +6 -0
- package/build/components/chat/index.js +3 -0
- package/build/components/chat/minimap/index.d.ts +52 -0
- package/build/components/chat/minimap/index.js +248 -0
- package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/checkbox/index.js +1 -0
- package/build/components/checkbox/options.d.ts +0 -1
- package/build/components/checkbox/options.js +0 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/index.d.ts +3 -2181
- package/build/components/clipboard/index.js +2 -3
- package/build/components/color-picker/index.d.ts +21 -0
- package/build/components/color-picker/index.js +153 -138
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +6 -93
- package/build/components/command/index.js +4 -601
- package/build/components/command/palette.d.ts +103 -0
- package/build/components/command/palette.js +595 -0
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +37 -0
- package/build/components/command/search.js +67 -0
- package/build/components/counter/index.d.ts +15 -4
- package/build/components/counter/index.js +3 -2
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +24 -5
- package/build/components/dock/index.js +389 -51
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/markdown/index.d.ts +3 -22
- package/build/components/editor/markdown/index.js +3 -30
- package/build/components/editor/markdown/render.js +3 -5
- package/build/components/editor/markdown/template.d.ts +22 -0
- package/build/components/editor/markdown/template.js +30 -0
- package/build/components/editor/tree/find.js +3 -3
- package/build/components/editor/tree/index.d.ts +3 -116
- package/build/components/editor/tree/index.js +3 -2225
- package/build/components/editor/tree/template.d.ts +116 -0
- package/build/components/editor/tree/template.js +2225 -0
- package/build/components/editor/viewer/index.d.ts +3 -26
- package/build/components/editor/viewer/index.js +3 -249
- package/build/components/editor/viewer/template.d.ts +26 -0
- package/build/components/editor/viewer/template.js +249 -0
- package/build/components/editor/workspace/index.d.ts +4 -65
- package/build/components/editor/workspace/index.js +4 -1228
- package/build/components/editor/workspace/model.d.ts +29 -37
- package/build/components/editor/workspace/model.js +186 -155
- package/build/components/editor/workspace/session.d.ts +3 -0
- package/build/components/editor/workspace/session.js +61 -34
- package/build/components/editor/workspace/shortcuts.d.ts +0 -2
- package/build/components/editor/workspace/shortcuts.js +0 -2
- package/build/components/editor/workspace/status.d.ts +4 -5
- package/build/components/editor/workspace/status.js +79 -61
- package/build/components/editor/workspace/statusbar.d.ts +5 -3
- package/build/components/editor/workspace/statusbar.js +66 -80
- package/build/components/editor/workspace/strip.d.ts +1 -2
- package/build/components/editor/workspace/strip.js +4 -3
- package/build/components/editor/workspace/tabs.d.ts +35 -3
- package/build/components/editor/workspace/tabs.js +75 -13
- package/build/components/editor/workspace/template.d.ts +65 -0
- package/build/components/editor/workspace/template.js +1145 -0
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +0 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/index.d.ts +6 -32
- package/build/components/form/index.js +2 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +12 -0
- package/build/components/group/index.js +15 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/heatmap/index.js +10 -32
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +2 -3
- package/build/components/highlight/index.js +79 -78
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +4 -3
- package/build/components/icon/index.js +2 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +3 -16
- package/build/components/image/index.js +2 -2
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +6 -4
- package/build/components/index.js +6 -4
- package/build/components/inline-edit/index.js +5 -4
- package/build/components/inline-edit/rich.js +79 -82
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +4 -3
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.js +84 -67
- package/build/components/json/index.d.ts +4 -3
- package/build/components/json/index.js +2 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.js +74 -71
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/flash.js +12 -11
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/toc.d.ts +8 -13
- package/build/components/nav/toc.js +9 -21
- package/build/components/nav/tree.d.ts +13 -14
- package/build/components/nav/tree.js +32 -19
- package/build/components/notification/index.d.ts +14 -3
- package/build/components/notification/index.js +4 -3
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/cards.d.ts +1 -0
- package/build/components/pagination/cards.js +4 -6
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.d.ts +47 -0
- package/build/components/panels/dnd.js +106 -0
- package/build/components/panels/group.d.ts +35 -0
- package/build/components/panels/group.js +319 -0
- package/build/components/panels/index.d.ts +25 -0
- package/build/components/panels/index.js +520 -0
- package/build/components/panels/model.d.ts +64 -0
- package/build/components/panels/model.js +446 -0
- package/build/components/panels/resize.d.ts +9 -0
- package/build/components/panels/resize.js +87 -0
- package/build/components/panels/scss/index.scss +2 -0
- package/build/components/panels/subtree.d.ts +3 -0
- package/build/components/panels/subtree.js +43 -0
- package/build/components/preview/buttons.d.ts +20 -0
- package/build/components/preview/buttons.js +26 -0
- package/build/components/{copy/index.d.ts → preview/code.d.ts} +3 -9
- package/build/components/preview/code.js +18 -0
- package/build/components/preview/header.d.ts +16 -0
- package/build/components/preview/header.js +18 -0
- package/build/components/preview/index.d.ts +8704 -0
- package/build/components/preview/index.js +123 -0
- package/build/components/preview/scss/index.scss +2 -0
- package/build/components/preview/source.d.ts +21 -0
- package/build/components/preview/source.js +76 -0
- package/build/components/preview/stage.d.ts +16 -0
- package/build/components/preview/stage.js +24 -0
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +9 -11
- package/build/components/radio/index.d.ts +3 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.js +8 -9
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.js +4 -7
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +72 -59
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +22 -0
- package/build/components/shell/index.js +272 -0
- package/build/components/shell/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +2 -3
- package/build/components/shortcut-recorder/index.js +3 -1
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +10 -6
- package/build/components/story/index.js +27 -47
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/index.js +13 -16
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +3 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.js +3 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/index.d.ts +6 -2
- package/build/components/theme/index.js +4 -3
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme-picker/cards.d.ts +13 -0
- package/build/components/theme-picker/cards.js +17 -0
- package/build/components/theme-picker/index.d.ts +9 -49
- package/build/components/theme-picker/index.js +5 -165
- package/build/components/theme-picker/scss/index.scss +1 -1
- package/build/components/theme-picker/shared.d.ts +26 -0
- package/build/components/theme-picker/shared.js +24 -0
- package/build/components/theme-picker/swatches.d.ts +13 -0
- package/build/components/theme-picker/swatches.js +17 -0
- package/build/components/theme-picker/toggle.d.ts +19 -0
- package/build/components/theme-picker/toggle.js +109 -0
- package/build/components/toast/index.js +10 -10
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +2 -0
- package/build/components/tooltip/menu.js +88 -45
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.js +2 -2
- package/build/components/typewriter/rotate.js +7 -16
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.js +26 -33
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/background/scss/index.scss +2 -0
- package/build/modifiers/border/scss/index.scss +2 -0
- package/build/modifiers/box-shadow/scss/index.scss +2 -0
- package/build/modifiers/color/scss/index.scss +2 -0
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.js +1 -1
- package/build/shared/drag.d.ts +2 -1
- package/build/shared/drag.js +4 -3
- package/package.json +8 -8
- package/scripts/code-editor-services.test.mjs +1 -1
- package/scripts/code-editor-workspace.test.mjs +28 -18
- package/scripts/panels.test.mjs +262 -0
- package/scripts/workspace-keybindings.test.mjs +1 -1
- package/scripts/workspace-session.test.mjs +8 -6
- package/scripts/workspace-status.test.mjs +9 -1
- package/scripts/workspace-tabs.test.mjs +5 -5
- package/src/components/accordion/index.ts +11 -8
- package/src/components/accordion/scss/index.scss +15 -15
- package/src/components/accordion/scss/variables.scss +11 -7
- package/src/components/announcement/scss/index.scss +21 -24
- package/src/components/announcement/scss/variables.scss +13 -7
- package/src/components/breadcrumb/index.ts +8 -10
- package/src/components/breadcrumb/scss/index.scss +48 -122
- package/src/components/breadcrumb/scss/variables.scss +73 -55
- package/src/components/button/copy.ts +34 -27
- package/src/components/button/faces.ts +2 -4
- package/src/components/button/index.ts +3 -7
- package/src/components/button/kbd.ts +37 -95
- package/src/components/button/morph/index.ts +6 -0
- package/src/components/button/morph/save.ts +55 -0
- package/src/components/button/morph/template.ts +135 -0
- package/src/components/button/scss/index.scss +218 -99
- package/src/components/button/scss/variables.scss +160 -115
- package/src/components/button/sidebar.ts +6 -6
- package/src/components/button/split.ts +5 -6
- package/src/components/capslock/index.ts +9 -8
- package/src/components/capslock/scss/index.scss +21 -25
- package/src/components/capslock/scss/variables.scss +31 -12
- package/src/components/card/scss/index.scss +9 -24
- package/src/components/card/scss/variables.scss +29 -76
- package/src/components/cc/index.ts +15 -10
- package/src/components/cc/scss/index.scss +110 -153
- package/src/components/cc/scss/variables.scss +231 -44
- package/src/components/chat/index.ts +10 -0
- package/src/components/{chat-minimap → chat/minimap}/index.ts +66 -21
- package/src/components/{chat-minimap → chat/minimap}/scss/index.scss +26 -54
- package/src/components/chat/minimap/scss/variables.scss +178 -0
- package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/options.ts +0 -1
- package/src/components/checkbox/scss/index.scss +25 -31
- package/src/components/checkbox/scss/variables.scss +50 -19
- package/src/components/clipboard/index.ts +4 -3
- package/src/components/color-picker/index.ts +131 -67
- package/src/components/color-picker/scss/index.scss +138 -221
- package/src/components/color-picker/scss/variables.scss +228 -81
- package/src/components/command/index.ts +5 -860
- package/src/components/command/palette.ts +879 -0
- package/src/components/command/scss/index.scss +82 -99
- package/src/components/command/scss/variables.scss +129 -50
- package/src/components/command/search.ts +67 -0
- package/src/components/counter/index.ts +90 -85
- package/src/components/counter/scss/index.scss +32 -41
- package/src/components/counter/scss/variables.scss +44 -16
- package/src/components/datalist/scss/index.scss +25 -25
- package/src/components/datalist/scss/variables.scss +21 -11
- package/src/components/dock/index.ts +505 -42
- package/src/components/dock/scss/index.scss +318 -73
- package/src/components/dock/scss/variables.scss +310 -39
- package/src/components/editor/code/features.ts +0 -1
- package/src/components/editor/code/find.ts +0 -1
- package/src/components/editor/code/keymap.ts +0 -1
- package/src/components/editor/code/scss/_editor.scss +12 -31
- package/src/components/editor/code/scss/_features.scss +12 -45
- package/src/components/editor/code/scss/_services.scss +15 -23
- package/src/components/editor/code/scss/index.scss +1 -1
- package/src/components/editor/code/scss/variables.scss +195 -42
- package/src/components/editor/code/view.ts +0 -1
- package/src/components/editor/diffs/scss/_diffs.scss +24 -77
- package/src/components/editor/diffs/scss/_merge.scss +5 -16
- package/src/components/editor/diffs/scss/index.scss +1 -1
- package/src/components/editor/diffs/scss/variables.scss +148 -11
- package/src/components/editor/markdown/index.ts +3 -67
- package/src/components/editor/markdown/render.ts +3 -6
- package/src/components/editor/markdown/scss/index.scss +30 -48
- package/src/components/editor/markdown/scss/variables.scss +117 -32
- package/src/components/editor/markdown/template.ts +69 -0
- package/src/components/editor/tree/drag.ts +5 -2
- package/src/components/editor/tree/find.ts +5 -4
- package/src/components/editor/tree/index.ts +3 -3434
- package/src/components/editor/tree/scss/index.scss +204 -262
- package/src/components/editor/tree/scss/variables.scss +198 -31
- package/src/components/editor/tree/template.ts +3436 -0
- package/src/components/editor/viewer/index.ts +3 -318
- package/src/components/editor/viewer/scss/_viewer.scss +15 -31
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +56 -14
- package/src/components/editor/viewer/template.ts +321 -0
- package/src/components/editor/workspace/index.ts +4 -1480
- package/src/components/editor/workspace/model.ts +225 -185
- package/src/components/editor/workspace/scss/_keybindings.scss +163 -0
- package/src/components/editor/workspace/scss/{status.scss → _status.scss} +11 -44
- package/src/components/editor/workspace/scss/_tabs.scss +57 -0
- package/src/components/editor/workspace/scss/index.scss +82 -312
- package/src/components/editor/workspace/scss/variables.scss +427 -0
- package/src/components/editor/workspace/session.ts +80 -44
- package/src/components/editor/workspace/shortcuts.ts +0 -2
- package/src/components/editor/workspace/status.ts +110 -80
- package/src/components/editor/workspace/statusbar.ts +38 -35
- package/src/components/editor/workspace/strip.ts +6 -5
- package/src/components/editor/workspace/tabs.ts +115 -15
- package/src/components/editor/workspace/template.ts +1486 -0
- package/src/components/error/index.ts +3 -0
- package/src/components/error/scss/index.scss +34 -65
- package/src/components/error/scss/variables.scss +28 -9
- package/src/components/filter/index.ts +2 -6
- package/src/components/filter/scss/index.scss +9 -2
- package/src/components/filter/scss/variables.scss +6 -6
- package/src/components/form/index.ts +4 -1
- package/src/components/frame/scss/index.scss +31 -42
- package/src/components/frame/scss/variables.scss +25 -18
- package/src/components/grid/scss/index.scss +2 -1
- package/src/components/group/index.ts +24 -0
- package/src/components/group/scss/index.scss +6 -0
- package/src/components/group/scss/variables.scss +4 -0
- package/src/components/heatmap/index.ts +14 -44
- package/src/components/heatmap/scss/index.scss +38 -44
- package/src/components/heatmap/scss/variables.scss +100 -59
- package/src/components/highlight/index.ts +133 -119
- package/src/components/highlight/scss/index.scss +49 -43
- package/src/components/highlight/scss/variables.scss +71 -30
- package/src/components/icon/index.ts +7 -5
- package/src/components/icon/scss/index.scss +7 -2
- package/src/components/icon/scss/variables.scss +2 -0
- package/src/components/image/index.ts +4 -2
- package/src/components/image/scss/index.scss +14 -22
- package/src/components/image/scss/variables.scss +30 -15
- package/src/components/index.ts +6 -4
- package/src/components/inline-edit/index.ts +3 -2
- package/src/components/inline-edit/rich.ts +17 -15
- package/src/components/inline-edit/scss/index.scss +165 -254
- package/src/components/inline-edit/scss/variables.scss +311 -83
- package/src/components/inline-edit/status.ts +2 -1
- package/src/components/input/scrub.ts +1 -1
- package/src/components/input/scss/_field.scss +1 -1
- package/src/components/input/scss/_scrub.scss +14 -25
- package/src/components/input/scss/_tag.scss +26 -46
- package/src/components/input/scss/variables.scss +167 -77
- package/src/components/input/tag.ts +59 -49
- package/src/components/json/index.ts +4 -1
- package/src/components/link/scss/index.scss +1 -4
- package/src/components/link/scss/variables.scss +5 -1
- package/src/components/loading/scss/index.scss +3 -23
- package/src/components/loading/scss/variables.scss +3 -6
- package/src/components/marquee/index.ts +33 -28
- package/src/components/marquee/scss/index.scss +32 -26
- package/src/components/marquee/scss/variables.scss +35 -23
- package/src/components/metric/flash.ts +2 -1
- package/src/components/metric/scss/_flash.scss +125 -145
- package/src/components/metric/scss/index.scss +31 -43
- package/src/components/metric/scss/variables.scss +192 -98
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +46 -49
- package/src/components/nav/scss/variables.scss +61 -64
- package/src/components/nav/spy.ts +2 -0
- package/src/components/nav/toc.ts +11 -31
- package/src/components/nav/tree.ts +56 -24
- package/src/components/notification/index.ts +94 -89
- package/src/components/notification/scss/index.scss +77 -76
- package/src/components/notification/scss/variables.scss +55 -38
- package/src/components/overlay/index.ts +3 -1
- package/src/components/overlay/scss/index.scss +94 -114
- package/src/components/overlay/scss/variables.scss +46 -18
- package/src/components/page/scss/variables.scss +1 -1
- package/src/components/pagination/cards.ts +2 -1
- package/src/components/pagination/scss/index.scss +191 -7
- package/src/components/pagination/scss/variables.scss +112 -36
- package/src/components/panels/dnd.ts +184 -0
- package/src/components/panels/group.ts +437 -0
- package/src/components/panels/index.ts +678 -0
- package/src/components/panels/model.ts +675 -0
- package/src/components/panels/resize.ts +131 -0
- package/src/components/panels/scss/index.scss +394 -0
- package/src/components/panels/scss/variables.scss +197 -0
- package/src/components/panels/subtree.ts +65 -0
- package/src/components/preview/buttons.ts +48 -0
- package/src/components/preview/code.ts +28 -0
- package/src/components/preview/header.ts +23 -0
- package/src/components/preview/index.ts +144 -0
- package/src/components/preview/scss/index.scss +143 -0
- package/src/components/preview/scss/variables.scss +127 -0
- package/src/components/preview/source.ts +73 -0
- package/src/components/preview/stage.ts +33 -0
- package/src/components/progress/scss/index.scss +117 -15
- package/src/components/progress/scss/variables.scss +140 -40
- package/src/components/progress/text.ts +5 -4
- package/src/components/radio/index.ts +2 -4
- package/src/components/range/filter.ts +7 -11
- package/src/components/range/scss/_filter.scss +301 -327
- package/src/components/range/scss/_slider.scss +31 -110
- package/src/components/range/scss/_vertical.scss +8 -20
- package/src/components/range/scss/index.scss +1 -4
- package/src/components/range/scss/variables.scss +374 -70
- package/src/components/relative-time/index.ts +9 -14
- package/src/components/relative-time/scss/index.scss +13 -21
- package/src/components/relative-time/scss/variables.scss +46 -29
- package/src/components/root/scss/index.scss +11 -20
- package/src/components/root/scss/variables.scss +17 -15
- package/src/components/select/index.ts +37 -15
- package/src/components/select/scss/index.scss +24 -51
- package/src/components/select/scss/variables.scss +77 -19
- package/src/components/shell/index.ts +321 -0
- package/src/components/shell/scss/index.scss +214 -0
- package/src/components/shell/scss/variables.scss +89 -0
- package/src/components/shortcut-recorder/index.ts +6 -3
- package/src/components/shortcut-recorder/scss/index.scss +71 -56
- package/src/components/shortcut-recorder/scss/variables.scss +47 -21
- package/src/components/sortable/index.ts +1 -0
- package/src/components/sortable/scss/index.scss +37 -42
- package/src/components/sortable/scss/variables.scss +76 -52
- package/src/components/sticky-header/scss/index.scss +11 -10
- package/src/components/sticky-header/scss/variables.scss +36 -4
- package/src/components/story/index.ts +1 -36
- package/src/components/story/scss/index.scss +22 -98
- package/src/components/story/scss/variables.scss +57 -15
- package/src/components/surface-field/index.ts +18 -20
- package/src/components/surface-field/scss/index.scss +32 -46
- package/src/components/surface-field/scss/variables.scss +92 -23
- package/src/components/switch/index.ts +2 -4
- package/src/components/tasklist/index.ts +8 -2
- package/src/components/tasklist/scss/index.scss +7 -7
- package/src/components/tasklist/scss/variables.scss +18 -13
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/scss/index.scss +9 -7
- package/src/components/textarea/scss/variables.scss +2 -2
- package/src/components/theme/index.ts +12 -4
- package/src/components/theme/scss/index.scss +13 -0
- package/src/components/theme/scss/variables.scss +5 -16
- package/src/components/theme-picker/cards.ts +19 -0
- package/src/components/theme-picker/index.ts +6 -225
- package/src/components/theme-picker/scss/index.scss +77 -167
- package/src/components/theme-picker/scss/variables.scss +220 -0
- package/src/components/theme-picker/shared.ts +54 -0
- package/src/components/theme-picker/swatches.ts +15 -0
- package/src/components/theme-picker/toggle.ts +150 -0
- package/src/components/toast/index.ts +14 -14
- package/src/components/toast/scss/index.scss +130 -155
- package/src/components/toast/scss/variables.scss +89 -52
- package/src/components/tooltip/menu.ts +77 -10
- package/src/components/tooltip/scss/_menu.scss +96 -138
- package/src/components/tooltip/scss/_shared.scss +93 -90
- package/src/components/tooltip/scss/index.scss +52 -54
- package/src/components/tooltip/scss/variables.scss +187 -67
- package/src/components/tooltip/shared.ts +8 -6
- package/src/components/typewriter/rotate.ts +15 -24
- package/src/components/typewriter/scss/index.scss +131 -3
- package/src/components/typewriter/scss/variables.scss +56 -44
- package/src/components/uptime/index.ts +1 -13
- package/src/components/uptime/scss/index.scss +28 -66
- package/src/components/uptime/scss/variables.scss +63 -48
- package/src/components/usage-meter/scss/index.scss +19 -19
- package/src/components/usage-meter/scss/variables.scss +80 -35
- package/src/css-utilities/absolute.scss +54 -52
- package/src/css-utilities/background.scss +22 -24
- package/src/css-utilities/border.scss +21 -21
- package/src/css-utilities/box-shadow.scss +32 -21
- package/src/css-utilities/color.scss +23 -21
- package/src/css-utilities/flex.scss +55 -53
- package/src/css-utilities/group.scss +7 -0
- package/src/css-utilities/hidden.scss +22 -20
- package/src/css-utilities/icon.scss +32 -30
- package/src/css-utilities/layer.scss +10 -10
- package/src/css-utilities/reset.scss +27 -16
- package/src/css-utilities/surface.scss +206 -128
- package/src/css-utilities/text.scss +114 -114
- package/src/modifiers/background/scss/index.scss +1 -0
- package/src/modifiers/background/scss/variables.scss +24 -0
- package/src/modifiers/border/scss/index.scss +1 -0
- package/src/modifiers/border/scss/variables.scss +21 -0
- package/src/modifiers/box-shadow/scss/index.scss +1 -0
- package/src/modifiers/box-shadow/scss/variables.scss +12 -0
- package/src/modifiers/color/scss/index.scss +1 -0
- package/src/modifiers/color/scss/variables.scss +10 -0
- package/src/modifiers/scrollbar/scss/index.scss +3 -2
- package/src/modifiers/scrollbar/scss/variables.scss +4 -3
- package/src/shared/animation.ts +3 -3
- package/src/shared/drag.ts +8 -3
- package/src/tokens/scss/color.scss +53 -37
- package/src/tokens/scss/index.scss +0 -1
- package/src/tokens/scss/state.scss +16 -1
- package/storage/svg/code.svg +1 -1
- package/storage/svg/collapse.svg +1 -0
- package/storage/svg/grid.svg +1 -0
- package/storage/svg/stack.svg +1 -0
- package/build/components/banner/scss/index.scss +0 -2
- package/build/components/button/fan.d.ts +0 -24
- package/build/components/button/fan.js +0 -118
- package/build/components/button/hold.d.ts +0 -31
- package/build/components/button/hold.js +0 -115
- package/build/components/button/icons.d.ts +0 -6
- package/build/components/button/icons.js +0 -35
- package/build/components/button/loading.d.ts +0 -22
- package/build/components/button/loading.js +0 -60
- package/build/components/button/morph.d.ts +0 -22
- package/build/components/button/morph.js +0 -115
- package/build/components/card/expand.d.ts +0 -22
- package/build/components/card/expand.js +0 -118
- package/build/components/card/index.d.ts +0 -6
- package/build/components/card/index.js +0 -4
- package/build/components/chat-minimap/index.d.ts +0 -28
- package/build/components/chat-minimap/index.js +0 -223
- package/build/components/chat-minimap/scss/index.scss +0 -2
- package/build/components/clipboard/copy.d.ts +0 -27
- package/build/components/clipboard/copy.js +0 -48
- package/build/components/copy/index.js +0 -61
- package/build/components/copy/scss/index.scss +0 -2
- package/build/components/highlight/easing.d.ts +0 -2
- package/build/components/highlight/easing.js +0 -19
- package/build/components/pull-to-refresh/index.d.ts +0 -18
- package/build/components/pull-to-refresh/index.js +0 -222
- package/build/components/pull-to-refresh/scss/index.scss +0 -2
- package/src/components/banner/scss/index.scss +0 -37
- package/src/components/banner/scss/variables.scss +0 -16
- package/src/components/button/fan.ts +0 -170
- package/src/components/button/hold.ts +0 -154
- package/src/components/button/icons.ts +0 -21
- package/src/components/button/loading.ts +0 -77
- package/src/components/button/morph.ts +0 -153
- package/src/components/button/scss/_fan.scss +0 -121
- package/src/components/button/scss/_kbd.scss +0 -11
- package/src/components/button/scss/_morph.scss +0 -107
- package/src/components/button/scss/_sidebar.scss +0 -61
- package/src/components/button/scss/_split.scss +0 -53
- package/src/components/card/expand.ts +0 -141
- package/src/components/card/index.ts +0 -8
- package/src/components/card/scss/_expand.scss +0 -234
- package/src/components/chat-minimap/scss/variables.scss +0 -97
- package/src/components/clipboard/copy.ts +0 -49
- package/src/components/copy/index.ts +0 -69
- package/src/components/copy/scss/index.scss +0 -52
- package/src/components/copy/scss/variables.scss +0 -19
- package/src/components/editor/workspace/scss/keybindings.scss +0 -190
- package/src/components/editor/workspace/scss/tabs.scss +0 -56
- package/src/components/highlight/easing.ts +0 -33
- package/src/components/pagination/scss/_arrows.scss +0 -69
- package/src/components/pagination/scss/_cards.scss +0 -121
- package/src/components/pagination/scss/_dots.scss +0 -64
- package/src/components/progress/scss/_text.scss +0 -135
- package/src/components/pull-to-refresh/index.ts +0 -316
- package/src/components/pull-to-refresh/scss/index.scss +0 -128
- package/src/components/pull-to-refresh/scss/variables.scss +0 -38
- package/src/components/typewriter/scss/_caret.scss +0 -34
- package/src/components/typewriter/scss/_retype.scss +0 -68
- package/src/components/typewriter/scss/_rotate.scss +0 -29
- package/src/tokens/scss/transition.scss +0 -21
- /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
- /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
2
|
@use 'css-utilities/absolute';
|
|
3
|
-
@use 'css-utilities/background';
|
|
4
3
|
@use 'css-utilities/drag';
|
|
5
4
|
@use 'css-utilities/reset';
|
|
6
|
-
@use 'css-utilities/surface';
|
|
7
5
|
@use 'css-utilities/text';
|
|
8
6
|
@use 'variables';
|
|
9
7
|
|
|
@@ -25,44 +23,29 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
25
23
|
position: relative;
|
|
26
24
|
width: 100%;
|
|
27
25
|
|
|
28
|
-
&--indicator {
|
|
29
|
-
--indicator-display: block;
|
|
30
|
-
|
|
31
|
-
// On the tree rather than the viewport, so the copies standing in for rows mid-motion, laid beside the
|
|
32
|
-
// viewport, brighten and show along with the rest.
|
|
33
|
-
&:hover {
|
|
34
|
-
--indicator-color: var(--indicator-hover);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&--indicator-hover {
|
|
39
|
-
--indicator-opacity: 0;
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
--indicator-opacity: 1;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
26
|
|
|
46
27
|
// The accordion: the folder's bottom edge travels over its rows, 0 to --motion-rows rows down. Runs under
|
|
47
28
|
// reduced motion as well, since its end is what settles the motion.
|
|
48
29
|
&--motion {
|
|
49
|
-
animation: file-tree-collapse var(--collapse-duration) var(--
|
|
30
|
+
animation: file-tree-collapse var(--collapse-duration) var(--collapse-timing-function) forwards;
|
|
50
31
|
}
|
|
51
32
|
|
|
52
33
|
&--motion-open {
|
|
53
34
|
animation-duration: var(--expand-duration);
|
|
54
35
|
animation-name: file-tree-expand;
|
|
36
|
+
animation-timing-function: var(--expand-timing-function);
|
|
55
37
|
}
|
|
56
38
|
|
|
39
|
+
|
|
57
40
|
&-badge {
|
|
58
41
|
display: flex;
|
|
59
42
|
flex-shrink: 0;
|
|
60
43
|
font-size: var(--badge-font-size);
|
|
61
44
|
font-variant-numeric: tabular-nums;
|
|
62
45
|
font-weight: var(--badge-font-weight);
|
|
63
|
-
gap: var(--
|
|
46
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
64
47
|
margin-inline-start: auto;
|
|
65
|
-
padding-inline-start: var(--item-gap);
|
|
48
|
+
padding-inline-start: var(--item-gap-horizontal);
|
|
66
49
|
|
|
67
50
|
&-part {
|
|
68
51
|
@each $tone in additions, added, conflict, deleted, deletions, error, ignored, modified, open, submodule, unsaved, warning {
|
|
@@ -75,13 +58,13 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
75
58
|
&--staged {
|
|
76
59
|
background: color-mix(in srgb, currentColor var(--staged-tint), transparent);
|
|
77
60
|
border-radius: var(--staged-radius);
|
|
78
|
-
padding-inline: var(--
|
|
61
|
+
padding-inline: var(--padding-horizontal);
|
|
79
62
|
}
|
|
80
63
|
}
|
|
81
64
|
}
|
|
82
65
|
|
|
83
66
|
&-chevron {
|
|
84
|
-
transition: rotate var(--
|
|
67
|
+
transition: rotate var(--transition-duration) var(--transition-timing-function);
|
|
85
68
|
|
|
86
69
|
// Mirrored to point left, so opening turns it the other way to still point down.
|
|
87
70
|
&:dir(rtl) {
|
|
@@ -99,23 +82,19 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
99
82
|
|
|
100
83
|
// The drag moves it to the pointer by its 'translate'.
|
|
101
84
|
&-drag {
|
|
102
|
-
@extend %reset-popover
|
|
85
|
+
@extend %reset-popover;
|
|
103
86
|
background: var(--surface-background-default);
|
|
104
87
|
border-radius: var(--drag-radius);
|
|
105
88
|
box-shadow: 0 0 0 var(--border-width-400) var(--surface-border-default), var(--surface-shadow-default);
|
|
106
89
|
color: var(--color);
|
|
107
90
|
font-size: var(--font-size);
|
|
108
|
-
gap: var(--
|
|
91
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
109
92
|
left: 0;
|
|
110
93
|
margin: var(--drag-offset) 0 0 var(--drag-offset);
|
|
111
|
-
padding: var(--
|
|
94
|
+
padding: var(--padding-vertical) var(--padding-horizontal);
|
|
112
95
|
top: 0;
|
|
113
96
|
white-space: nowrap;
|
|
114
97
|
|
|
115
|
-
&--copy {
|
|
116
|
-
--drag-copy-display: block;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
98
|
&-copy {
|
|
120
99
|
color: var(--added-color);
|
|
121
100
|
display: var(--drag-copy-display, none);
|
|
@@ -142,7 +121,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
142
121
|
color: var(--empty-color);
|
|
143
122
|
display: flex;
|
|
144
123
|
flex-direction: column;
|
|
145
|
-
gap: var(--
|
|
124
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
146
125
|
justify-content: center;
|
|
147
126
|
padding: var(--size-400);
|
|
148
127
|
text-align: center;
|
|
@@ -159,22 +138,17 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
159
138
|
z-index: 2;
|
|
160
139
|
|
|
161
140
|
&-bar {
|
|
162
|
-
@extend %surface-raised-level;
|
|
163
141
|
align-items: center;
|
|
164
142
|
background: var(--surface-background-default);
|
|
165
|
-
border:
|
|
143
|
+
border: var(--border-width) solid var(--find-border-color);
|
|
166
144
|
border-radius: var(--find-radius);
|
|
167
145
|
box-shadow: var(--surface-shadow-default);
|
|
168
146
|
display: flex;
|
|
169
|
-
gap: var(--
|
|
170
|
-
padding: var(--
|
|
147
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
148
|
+
padding: var(--padding-vertical) var(--padding-horizontal);
|
|
171
149
|
}
|
|
172
150
|
|
|
173
151
|
&-button {
|
|
174
|
-
@extend %background-state;
|
|
175
|
-
--background-active: inherit;
|
|
176
|
-
--background-hover: inherit;
|
|
177
|
-
--background-pressed: var(--background-hover);
|
|
178
152
|
align-items: center;
|
|
179
153
|
background: var(--background);
|
|
180
154
|
border: 0;
|
|
@@ -190,9 +164,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
190
164
|
width: var(--find-button-size);
|
|
191
165
|
|
|
192
166
|
&:disabled {
|
|
193
|
-
--background-hover: var(--background-default);
|
|
194
167
|
cursor: default;
|
|
195
|
-
opacity:
|
|
168
|
+
opacity: var(--disabled-opacity);
|
|
196
169
|
}
|
|
197
170
|
|
|
198
171
|
&:focus-visible {
|
|
@@ -200,9 +173,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
200
173
|
}
|
|
201
174
|
|
|
202
175
|
&[aria-pressed='true'] {
|
|
203
|
-
|
|
204
|
-
--background-hover: var(--background-active);
|
|
205
|
-
box-shadow: inset 0 0 0 1px var(--input-border-color);
|
|
176
|
+
box-shadow: inset 0 0 0 var(--border-width) var(--input-border-color);
|
|
206
177
|
}
|
|
207
178
|
}
|
|
208
179
|
|
|
@@ -211,7 +182,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
211
182
|
flex-shrink: 0;
|
|
212
183
|
font-size: var(--find-note-font-size);
|
|
213
184
|
font-variant-numeric: tabular-nums;
|
|
214
|
-
padding-inline: var(--
|
|
185
|
+
padding-inline: var(--padding-horizontal);
|
|
215
186
|
white-space: nowrap;
|
|
216
187
|
|
|
217
188
|
&:empty {
|
|
@@ -221,14 +192,14 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
221
192
|
|
|
222
193
|
&-input {
|
|
223
194
|
background: var(--surface-background-default);
|
|
224
|
-
border:
|
|
195
|
+
border: var(--border-width) solid transparent;
|
|
225
196
|
border-radius: var(--input-radius);
|
|
226
197
|
color: inherit;
|
|
227
198
|
font: inherit;
|
|
228
199
|
height: var(--find-button-size);
|
|
229
200
|
min-width: 0;
|
|
230
201
|
outline: none;
|
|
231
|
-
padding-inline: var(--
|
|
202
|
+
padding-inline: var(--padding-horizontal);
|
|
232
203
|
user-select: text;
|
|
233
204
|
width: var(--find-input-width);
|
|
234
205
|
|
|
@@ -242,32 +213,30 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
242
213
|
}
|
|
243
214
|
|
|
244
215
|
&-note {
|
|
245
|
-
@extend %surface-raised-level;
|
|
246
216
|
align-self: flex-end;
|
|
247
217
|
background: var(--surface-background-default);
|
|
248
|
-
border:
|
|
218
|
+
border: var(--border-width) solid var(--find-border-color);
|
|
249
219
|
border-block-start: 0;
|
|
250
220
|
border-end-end-radius: var(--find-radius);
|
|
251
221
|
border-end-start-radius: var(--find-radius);
|
|
252
222
|
color: var(--find-note-color);
|
|
253
223
|
font-size: var(--find-note-font-size);
|
|
254
224
|
margin: 0 var(--find-radius);
|
|
255
|
-
padding: 0 var(--
|
|
225
|
+
padding: 0 var(--padding-horizontal);
|
|
256
226
|
}
|
|
257
227
|
}
|
|
258
228
|
|
|
259
229
|
&-input {
|
|
260
|
-
@extend %surface-raised-level;
|
|
261
230
|
background: var(--surface-background-default);
|
|
262
|
-
border:
|
|
231
|
+
border: var(--border-width) solid var(--input-border-color);
|
|
263
232
|
border-radius: var(--input-radius);
|
|
264
233
|
color: inherit;
|
|
265
234
|
flex: 1;
|
|
266
235
|
font: inherit;
|
|
267
|
-
height:
|
|
236
|
+
height: var(--height);
|
|
268
237
|
min-width: 0;
|
|
269
238
|
outline: none;
|
|
270
|
-
padding-inline: var(--
|
|
239
|
+
padding-inline: var(--padding-horizontal);
|
|
271
240
|
user-select: text;
|
|
272
241
|
|
|
273
242
|
&[aria-invalid='true'] {
|
|
@@ -275,7 +244,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
275
244
|
}
|
|
276
245
|
|
|
277
246
|
&[readonly] {
|
|
278
|
-
opacity:
|
|
247
|
+
opacity: var(--readonly-opacity);
|
|
279
248
|
}
|
|
280
249
|
}
|
|
281
250
|
|
|
@@ -285,33 +254,71 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
285
254
|
border-radius: var(--match-radius);
|
|
286
255
|
color: var(--match-color);
|
|
287
256
|
font-weight: var(--match-font-weight);
|
|
257
|
+
|
|
258
|
+
// High contrast drops the wash with the other tints, so an underline marks the match along with its weight.
|
|
259
|
+
@media (forced-colors: active) {
|
|
260
|
+
text-decoration: underline;
|
|
261
|
+
}
|
|
288
262
|
}
|
|
289
263
|
|
|
290
264
|
// Hangs below the row over the ones beneath, aligned with the input, so the list doesn't shift while typing.
|
|
291
265
|
&-message {
|
|
292
266
|
background: var(--message-background);
|
|
293
|
-
border:
|
|
267
|
+
border: var(--border-width) solid var(--error-color);
|
|
294
268
|
border-radius: var(--input-radius);
|
|
295
269
|
font-size: var(--message-font-size);
|
|
296
|
-
inset-inline:
|
|
297
|
-
padding: var(--
|
|
270
|
+
inset-inline: var(--inset-start) 0;
|
|
271
|
+
padding: var(--padding-vertical) var(--padding-horizontal);
|
|
298
272
|
position: absolute;
|
|
299
273
|
top: 100%;
|
|
300
274
|
white-space: normal;
|
|
301
275
|
z-index: 1;
|
|
302
276
|
}
|
|
303
277
|
|
|
304
|
-
//
|
|
278
|
+
// The list has already swapped rows, so the rows below are drawn back where they sat and ride the edge home, and
|
|
279
|
+
// copies stand in for any no longer rendered. Opening: the folder's rows show above the edge. Closing: copies of
|
|
280
|
+
// them fade out above it. The real rows move, not their contents, so the highlight follows the selected one. Each
|
|
281
|
+
// moving element runs the tree's progress itself, started on the same frame, so a frame restyles only them; their
|
|
282
|
+
// own keyframes would put each on a compositor layer, dropping its text's subpixel antialiasing mid-motion.
|
|
283
|
+
// The layer is laid over the viewport's visible box, starting at the folder's bottom edge.
|
|
305
284
|
&-motion {
|
|
306
285
|
display: none;
|
|
307
286
|
overflow: hidden;
|
|
308
287
|
pointer-events: none;
|
|
309
288
|
position: absolute;
|
|
310
289
|
|
|
290
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
291
|
+
@include tokens.state(active) {
|
|
292
|
+
display: block;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
311
296
|
&-layer {
|
|
312
297
|
left: 0;
|
|
313
298
|
position: absolute;
|
|
314
299
|
right: 0;
|
|
300
|
+
|
|
301
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
302
|
+
&--close {
|
|
303
|
+
animation:
|
|
304
|
+
file-tree-collapse var(--collapse-duration) var(--collapse-timing-function) forwards,
|
|
305
|
+
file-tree-motion-layer--close var(--conceal-duration) var(--conceal-timing-function) forwards;
|
|
306
|
+
height: $edge;
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&--open {
|
|
311
|
+
animation: file-tree-expand var(--expand-duration) var(--expand-timing-function) forwards;
|
|
312
|
+
translate: 0 $edge;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
@keyframes file-tree-motion-layer--close {
|
|
317
|
+
to {
|
|
318
|
+
filter: blur(var(--blur-300));
|
|
319
|
+
opacity: 0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
315
322
|
}
|
|
316
323
|
}
|
|
317
324
|
|
|
@@ -333,35 +340,88 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
333
340
|
|
|
334
341
|
&-row {
|
|
335
342
|
@extend %drag-item;
|
|
336
|
-
--guide-direction: 1;
|
|
337
343
|
align-items: center;
|
|
338
344
|
border-radius: var(--row-radius);
|
|
339
345
|
cursor: var(--drag-cursor, pointer);
|
|
340
346
|
display: flex;
|
|
341
|
-
gap: var(--
|
|
347
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
342
348
|
height: var(--row-height);
|
|
343
349
|
// Nested rows start at their depth, so the one highlight resizes and shifts as it moves between them.
|
|
344
350
|
margin-inline-start: calc(var(--depth) * var(--indent));
|
|
345
351
|
outline: 0 solid var(--focus-color);
|
|
346
352
|
outline-offset: -1px;
|
|
347
|
-
padding-inline: var(--padding);
|
|
353
|
+
padding-inline: var(--row-padding-horizontal);
|
|
348
354
|
position: relative;
|
|
349
355
|
user-select: none;
|
|
350
356
|
|
|
357
|
+
// One guide per ancestor under each ancestor's chevron, outside the row's box so the highlight covers the row
|
|
358
|
+
// alone; rows carry no vertical margins, so each row's share joins into an unbroken line. The parent's guide
|
|
359
|
+
// is a 1px box and the others are its shadows ('--guides'), whole indents further out: boxes snap to whole
|
|
360
|
+
// pixels the same way on every row, where a gradient's line falls between pixels and each row rounds it its
|
|
361
|
+
// own way.
|
|
362
|
+
&::before {
|
|
363
|
+
background: currentColor;
|
|
364
|
+
box-shadow: var(--guides);
|
|
365
|
+
color: var(--indicator-color);
|
|
366
|
+
content: '';
|
|
367
|
+
display: var(--indicator-display, none);
|
|
368
|
+
inset-block: 0;
|
|
369
|
+
inset-inline-start: calc(var(--row-padding-horizontal) + var(--twistie-size) / 2 - 0.5px - var(--indent));
|
|
370
|
+
opacity: var(--indicator-opacity, 1);
|
|
371
|
+
position: absolute;
|
|
372
|
+
transition: opacity var(--indicator-duration) var(--indicator-timing-function);
|
|
373
|
+
// Top-level rows have no parent to draw.
|
|
374
|
+
width: calc(min(var(--depth), 1) * 1px);
|
|
375
|
+
|
|
376
|
+
// Opted out of high contrast, so the shadow copies drawing the further ancestors' guides survive.
|
|
377
|
+
@media (forced-colors: active) {
|
|
378
|
+
forced-color-adjust: none;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// High contrast themes swap every color for the system palette and drop tints and shadows, which would take
|
|
383
|
+
// the highlight with them. Opted out, or the backplate drawn behind text in Canvas hides the name.
|
|
384
|
+
@media (forced-colors: active) {
|
|
385
|
+
@include tokens.state(active) {
|
|
386
|
+
background: Highlight;
|
|
387
|
+
forced-color-adjust: none;
|
|
388
|
+
|
|
389
|
+
&,
|
|
390
|
+
.file-tree-badge > *,
|
|
391
|
+
.file-tree-name,
|
|
392
|
+
.icon {
|
|
393
|
+
color: HighlightText;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@include tokens.state(hover) {
|
|
398
|
+
outline: 1px dashed Highlight;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
|
|
351
403
|
// The contents alone, so the guide and a selection behind the row keep their strength.
|
|
352
404
|
&--cut > * {
|
|
353
405
|
opacity: var(--cut-opacity);
|
|
354
406
|
}
|
|
355
407
|
|
|
356
|
-
&--deleted {
|
|
357
|
-
--name-decoration: line-through;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
408
|
// Set while moving, not copying.
|
|
361
409
|
&--dragged {
|
|
362
410
|
opacity: var(--dragged-opacity);
|
|
363
411
|
}
|
|
364
412
|
|
|
413
|
+
// The drop target and its open contents read as one box, from the folder's indent down to its last row.
|
|
414
|
+
&--drop::after {
|
|
415
|
+
background: var(--drop-background);
|
|
416
|
+
border: 0 solid var(--drop-border-color);
|
|
417
|
+
border-inline-width: var(--border-width-400);
|
|
418
|
+
content: '';
|
|
419
|
+
inset-block: 0;
|
|
420
|
+
inset-inline: calc((var(--drop-depth) - var(--depth)) * var(--indent)) 0;
|
|
421
|
+
pointer-events: none;
|
|
422
|
+
position: absolute;
|
|
423
|
+
}
|
|
424
|
+
|
|
365
425
|
&--drop-end::after,
|
|
366
426
|
&--drop-only::after {
|
|
367
427
|
border-block-end-width: var(--border-width-400);
|
|
@@ -376,31 +436,32 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
376
436
|
border-start-start-radius: var(--row-radius);
|
|
377
437
|
}
|
|
378
438
|
|
|
379
|
-
// The drop target and its open contents read as one box, from the folder's indent down to its last row.
|
|
380
|
-
&--drop::after {
|
|
381
|
-
background: var(--drop-background);
|
|
382
|
-
border: 0 solid var(--drop-border-color);
|
|
383
|
-
border-inline-width: var(--border-width-400);
|
|
384
|
-
content: '';
|
|
385
|
-
inset-block: 0;
|
|
386
|
-
inset-inline: calc((var(--drop-depth) - var(--depth)) * var(--indent)) 0;
|
|
387
|
-
pointer-events: none;
|
|
388
|
-
position: absolute;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
439
|
// Every match tinted, the one the find bar is on outlined as well; a selected match shows its selection.
|
|
392
440
|
&--match {
|
|
393
441
|
background: var(--found-background);
|
|
442
|
+
|
|
443
|
+
@media (forced-colors: active) {
|
|
444
|
+
outline: 1px dotted CanvasText;
|
|
445
|
+
}
|
|
394
446
|
}
|
|
395
447
|
|
|
396
448
|
&--match-current {
|
|
397
|
-
box-shadow: inset 0 0 0
|
|
449
|
+
box-shadow: inset 0 0 0 var(--border-width) var(--found-border-color);
|
|
450
|
+
|
|
451
|
+
@media (forced-colors: active) {
|
|
452
|
+
outline-style: solid;
|
|
453
|
+
}
|
|
398
454
|
}
|
|
399
455
|
|
|
400
|
-
//
|
|
401
|
-
&--
|
|
402
|
-
|
|
456
|
+
// Marked only while closing.
|
|
457
|
+
&--motion ~ .file-tree-row {
|
|
458
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
459
|
+
animation: file-tree-collapse var(--collapse-duration) var(--collapse-timing-function) forwards;
|
|
460
|
+
translate: 0 $edge;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
403
463
|
|
|
464
|
+
&--pinned {
|
|
404
465
|
// The deepest folder, pushed up by the rows after its own, slides under the one above it.
|
|
405
466
|
&:last-child {
|
|
406
467
|
clip-path: inset(var(--sticky-push, 0px) calc(var(--depth) * var(--indent) * -1) 0);
|
|
@@ -412,9 +473,45 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
412
473
|
}
|
|
413
474
|
}
|
|
414
475
|
|
|
415
|
-
// A folder's rows fade in a beat behind the opening
|
|
476
|
+
// A folder's rows fade in a beat behind the opening, marked only while opening; under reduced motion they
|
|
477
|
+
// only fade.
|
|
416
478
|
&--reveal {
|
|
417
|
-
animation: file-tree-reveal var(--reveal-duration) var(--
|
|
479
|
+
animation: file-tree-row--reveal var(--reveal-duration) var(--reveal-timing-function) var(--reveal-delay) backwards;
|
|
480
|
+
|
|
481
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
482
|
+
animation:
|
|
483
|
+
file-tree-expand var(--expand-duration) var(--expand-timing-function) forwards,
|
|
484
|
+
file-tree-row--reveal var(--reveal-duration) var(--reveal-timing-function) var(--reveal-delay) backwards;
|
|
485
|
+
// Open at the sides, so the guides drawn outside the row still show.
|
|
486
|
+
clip-path: inset(
|
|
487
|
+
0
|
|
488
|
+
calc(var(--depth) * var(--indent) * -1)
|
|
489
|
+
clamp(0px, calc((var(--reveal-index) + 1) * var(--row-height) - $edge), var(--row-height))
|
|
490
|
+
calc(var(--depth) * var(--indent) * -1)
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
~ .file-tree-row:not(.file-tree-row--reveal) {
|
|
494
|
+
animation: file-tree-expand var(--expand-duration) var(--expand-timing-function) forwards;
|
|
495
|
+
translate: 0 calc($edge - var(--motion-rows) * var(--row-height));
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
@media (prefers-reduced-motion: reduce) {
|
|
500
|
+
animation-name: file-tree-row-fade;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
@keyframes file-tree-row--reveal {
|
|
504
|
+
from {
|
|
505
|
+
filter: blur(var(--blur-300));
|
|
506
|
+
opacity: 0;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
@keyframes file-tree-row-fade {
|
|
511
|
+
from {
|
|
512
|
+
opacity: 0;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
418
515
|
}
|
|
419
516
|
|
|
420
517
|
// A root's header, set apart from the folders under it as VS Code sets its workspace folders.
|
|
@@ -437,6 +534,10 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
437
534
|
pointer-events: none;
|
|
438
535
|
position: absolute;
|
|
439
536
|
z-index: -1;
|
|
537
|
+
|
|
538
|
+
@media (forced-colors: active) {
|
|
539
|
+
display: none;
|
|
540
|
+
}
|
|
440
541
|
}
|
|
441
542
|
}
|
|
442
543
|
|
|
@@ -445,38 +546,25 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
445
546
|
background: var(--background-selected);
|
|
446
547
|
}
|
|
447
548
|
|
|
448
|
-
|
|
549
|
+
@include tokens.state(disabled) {
|
|
449
550
|
cursor: var(--drag-cursor, not-allowed);
|
|
450
|
-
opacity:
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// One guide per ancestor under each ancestor's chevron, outside the row's box so the highlight covers the row
|
|
454
|
-
// alone; rows carry no vertical margins, so each row's share joins into an unbroken line. The parent's guide
|
|
455
|
-
// is a 1px box and the others are its shadows ('--guides'), whole indents further out: boxes snap to whole
|
|
456
|
-
// pixels the same way on every row, where a gradient's line falls between pixels and each row rounds it its
|
|
457
|
-
// own way.
|
|
458
|
-
&::before {
|
|
459
|
-
background: currentColor;
|
|
460
|
-
box-shadow: var(--guides);
|
|
461
|
-
color: var(--indicator-color);
|
|
462
|
-
content: '';
|
|
463
|
-
display: var(--indicator-display, none);
|
|
464
|
-
inset-block: 0;
|
|
465
|
-
inset-inline-start: calc(var(--padding) + var(--twistie-size) / 2 - 0.5px - var(--indent));
|
|
466
|
-
opacity: var(--indicator-opacity, 1);
|
|
467
|
-
position: absolute;
|
|
468
|
-
transition: opacity var(--indicator-duration) var(--easing-spring);
|
|
469
|
-
// Top-level rows have no parent to draw.
|
|
470
|
-
width: calc(min(var(--depth), 1) * 1px);
|
|
471
|
-
}
|
|
551
|
+
opacity: var(--disabled-opacity);
|
|
472
552
|
|
|
473
|
-
|
|
474
|
-
|
|
553
|
+
@media (forced-colors: active) {
|
|
554
|
+
color: GrayText;
|
|
555
|
+
opacity: 1;
|
|
556
|
+
}
|
|
475
557
|
}
|
|
476
558
|
|
|
477
559
|
.file-tree-viewport:focus-visible &--focused {
|
|
478
560
|
outline-width: var(--border-width-400);
|
|
479
561
|
}
|
|
562
|
+
|
|
563
|
+
@media (forced-colors: active) {
|
|
564
|
+
.file-tree-viewport:focus-visible > &--focused {
|
|
565
|
+
outline: 1px solid CanvasText;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
480
568
|
}
|
|
481
569
|
|
|
482
570
|
// A compact row's folders, underlined under the pointer and when one before the row's own is selected, as in
|
|
@@ -495,13 +583,13 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
495
583
|
}
|
|
496
584
|
|
|
497
585
|
&--match-current {
|
|
498
|
-
box-shadow: inset 0 0 0
|
|
586
|
+
box-shadow: inset 0 0 0 var(--border-width) var(--found-border-color);
|
|
499
587
|
}
|
|
500
588
|
}
|
|
501
589
|
|
|
502
590
|
&-separator {
|
|
503
591
|
color: var(--separator-color);
|
|
504
|
-
margin-inline: var(--
|
|
592
|
+
margin-inline: var(--margin-horizontal);
|
|
505
593
|
}
|
|
506
594
|
|
|
507
595
|
&-spinner {
|
|
@@ -516,7 +604,6 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
516
604
|
z-index: 1;
|
|
517
605
|
|
|
518
606
|
&-rows {
|
|
519
|
-
@extend %surface-raised-level;
|
|
520
607
|
background: var(--surface-background-default);
|
|
521
608
|
box-shadow: var(--sticky-shadow);
|
|
522
609
|
|
|
@@ -526,10 +613,10 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
526
613
|
}
|
|
527
614
|
}
|
|
528
615
|
|
|
529
|
-
&-toggle
|
|
530
|
-
bottom:
|
|
531
|
-
height:
|
|
532
|
-
inset-inline-end: var(--
|
|
616
|
+
&-toggle {
|
|
617
|
+
bottom: var(--inset-vertical);
|
|
618
|
+
height: var(--height);
|
|
619
|
+
inset-inline-end: var(--inset-horizontal);
|
|
533
620
|
outline: 0 solid var(--focus-color);
|
|
534
621
|
outline-offset: calc(var(--size-100) / 4);
|
|
535
622
|
position: absolute;
|
|
@@ -567,139 +654,14 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
567
654
|
|
|
568
655
|
// The viewport holds the pointer for the whole drag, so its cursor is the one that shows; its rows take it too.
|
|
569
656
|
&--drag {
|
|
570
|
-
--drag-cursor: grabbing;
|
|
571
657
|
cursor: var(--drag-cursor);
|
|
572
658
|
}
|
|
573
659
|
|
|
574
|
-
&--drag-copy {
|
|
575
|
-
--drag-cursor: copy;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
&--drag-none {
|
|
579
|
-
--drag-cursor: no-drop;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
660
|
&--drop {
|
|
583
661
|
background: var(--drop-background);
|
|
584
662
|
box-shadow: inset 0 0 0 var(--border-width-400) var(--drop-border-color);
|
|
585
663
|
}
|
|
586
664
|
}
|
|
587
|
-
|
|
588
|
-
// The list has already swapped rows, so the rows below are drawn back where they sat and ride the edge home, and
|
|
589
|
-
// copies stand in for any no longer rendered. Opening: the folder's rows show above the edge. Closing: copies of
|
|
590
|
-
// them fade out above it. The real rows move, not their contents, so the highlight follows the selected one. Each
|
|
591
|
-
// moving element runs the tree's progress itself, started on the same frame, so a frame restyles only them; their
|
|
592
|
-
// own keyframes would put each on a compositor layer, dropping its text's subpixel antialiasing mid-motion.
|
|
593
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
594
|
-
&-motion {
|
|
595
|
-
@include tokens.state(active) {
|
|
596
|
-
display: block;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
&-layer--close {
|
|
600
|
-
animation: file-tree-collapse var(--collapse-duration) var(--motion-easing) forwards, file-tree-conceal var(--conceal-duration) var(--easing-spring) forwards;
|
|
601
|
-
height: $edge;
|
|
602
|
-
overflow: hidden;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
&-layer--open {
|
|
606
|
-
animation: file-tree-expand var(--expand-duration) var(--motion-easing) forwards;
|
|
607
|
-
translate: 0 $edge;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
&-row {
|
|
612
|
-
// Marked only while closing.
|
|
613
|
-
&--motion ~ .file-tree-row {
|
|
614
|
-
animation: file-tree-collapse var(--collapse-duration) var(--motion-easing) forwards;
|
|
615
|
-
translate: 0 $edge;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
// Marked only while opening.
|
|
619
|
-
&--reveal {
|
|
620
|
-
animation: file-tree-expand var(--expand-duration) var(--motion-easing) forwards, file-tree-reveal var(--reveal-duration) var(--easing-spring) var(--reveal-delay) backwards;
|
|
621
|
-
// Open at the sides, so the guides drawn outside the row still show.
|
|
622
|
-
clip-path: inset(
|
|
623
|
-
0
|
|
624
|
-
calc(var(--depth) * var(--indent) * -1)
|
|
625
|
-
clamp(0px, calc((var(--reveal-index) + 1) * var(--row-height) - $edge), var(--row-height))
|
|
626
|
-
calc(var(--depth) * var(--indent) * -1)
|
|
627
|
-
);
|
|
628
|
-
|
|
629
|
-
~ .file-tree-row:not(.file-tree-row--reveal) {
|
|
630
|
-
animation: file-tree-expand var(--expand-duration) var(--motion-easing) forwards;
|
|
631
|
-
translate: 0 calc($edge - var(--motion-rows) * var(--row-height));
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
@media (prefers-reduced-motion: reduce) {
|
|
638
|
-
&-chevron {
|
|
639
|
-
transition: none;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
&-row--reveal {
|
|
643
|
-
animation-name: file-tree-fade;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
// High contrast themes swap every color for the system palette and drop tints and shadows, which would take the
|
|
648
|
-
// highlight, the scope bands and all but the parent's guide with them.
|
|
649
|
-
@media (forced-colors: active) {
|
|
650
|
-
--indicator-color: GrayText;
|
|
651
|
-
--indicator-hover: CanvasText;
|
|
652
|
-
|
|
653
|
-
// The wash is dropped with the other tints, so an underline marks the match along with its weight.
|
|
654
|
-
&-match {
|
|
655
|
-
text-decoration: underline;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
&-row {
|
|
659
|
-
// Opted out, so the shadow copies drawing the further ancestors' guides survive.
|
|
660
|
-
&::before {
|
|
661
|
-
forced-color-adjust: none;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
// Opted out, or the backplate drawn behind text in Canvas hides the name.
|
|
665
|
-
@include tokens.state(active) {
|
|
666
|
-
background: Highlight;
|
|
667
|
-
forced-color-adjust: none;
|
|
668
|
-
|
|
669
|
-
&,
|
|
670
|
-
.file-tree-badge > *,
|
|
671
|
-
.file-tree-name,
|
|
672
|
-
.icon {
|
|
673
|
-
color: HighlightText;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
&.--disabled {
|
|
678
|
-
color: GrayText;
|
|
679
|
-
opacity: 1;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
@include tokens.state(hover) {
|
|
683
|
-
outline: 1px dashed Highlight;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
&--match {
|
|
687
|
-
outline: 1px dotted CanvasText;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
&--match-current {
|
|
691
|
-
outline-style: solid;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
&--scope::after {
|
|
695
|
-
display: none;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.file-tree-viewport:focus-visible > &--focused {
|
|
699
|
-
outline: 1px solid CanvasText;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
665
|
}
|
|
704
666
|
|
|
705
667
|
@keyframes file-tree-collapse {
|
|
@@ -712,13 +674,6 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
712
674
|
}
|
|
713
675
|
}
|
|
714
676
|
|
|
715
|
-
@keyframes file-tree-conceal {
|
|
716
|
-
to {
|
|
717
|
-
filter: blur(var(--blur-300));
|
|
718
|
-
opacity: 0;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
|
|
722
677
|
@keyframes file-tree-expand {
|
|
723
678
|
from {
|
|
724
679
|
--file-tree-progress: 0;
|
|
@@ -728,16 +683,3 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
728
683
|
--file-tree-progress: 1;
|
|
729
684
|
}
|
|
730
685
|
}
|
|
731
|
-
|
|
732
|
-
@keyframes file-tree-fade {
|
|
733
|
-
from {
|
|
734
|
-
opacity: 0;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
@keyframes file-tree-reveal {
|
|
739
|
-
from {
|
|
740
|
-
filter: blur(var(--blur-300));
|
|
741
|
-
opacity: 0;
|
|
742
|
-
}
|
|
743
|
-
}
|