@esportsplus/ui 0.61.0 → 0.63.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 -132
- package/.audit/check-scss.mjs +2 -2
- package/.audit/rules-audit.md +3 -28
- package/README.md +18 -17
- package/RULES.md +30 -0
- package/build/components/accordion/index.d.ts +5 -1
- package/build/components/accordion/index.js +29 -27
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/index.d.ts +720 -2164
- package/build/components/announcement/index.js +12 -9
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.d.ts +4 -1
- package/build/components/breadcrumb/index.js +54 -49
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +1 -10
- package/build/components/button/copy.js +14 -11
- package/build/components/button/faces.d.ts +2 -1
- package/build/components/button/faces.js +9 -10
- package/build/components/button/kbd.d.ts +2 -10
- package/build/components/button/kbd.js +17 -15
- package/build/components/button/morph/index.d.ts +1443 -2165
- package/build/components/button/morph/save.d.ts +1 -10
- package/build/components/button/morph/save.js +5 -5
- package/build/components/button/morph/template.d.ts +2 -1
- package/build/components/button/morph/template.js +49 -29
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +1 -10
- package/build/components/button/sidebar.js +14 -12
- package/build/components/button/split.d.ts +6 -1
- package/build/components/button/split.js +16 -11
- package/build/components/capslock/index.d.ts +1 -10
- package/build/components/capslock/index.js +16 -13
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/chat/minimap/index.d.ts +12 -1
- package/build/components/chat/minimap/index.js +98 -74
- package/build/components/checkbox/group.d.ts +2 -10
- package/build/components/checkbox/group.js +39 -29
- package/build/components/checkbox/options.d.ts +5005 -6440
- package/build/components/checkbox/options.js +72 -44
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.d.ts +10 -1
- package/build/components/color-picker/index.js +99 -82
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/palette.d.ts +13 -5
- package/build/components/command/palette.js +141 -130
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +2 -20
- package/build/components/command/search.js +17 -16
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/counter/index.d.ts +1 -10
- package/build/components/counter/index.js +34 -31
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +4 -1
- package/build/components/dock/index.js +154 -114
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/editor.d.ts +1 -10
- package/build/components/editor/code/features.d.ts +3 -3
- package/build/components/editor/code/features.js +65 -52
- package/build/components/editor/code/field.d.ts +1 -1
- package/build/components/editor/code/find.d.ts +4 -4
- package/build/components/editor/code/find.js +39 -37
- package/build/components/editor/code/folding.d.ts +1 -1
- package/build/components/editor/code/goto.d.ts +2 -1
- package/build/components/editor/code/goto.js +7 -7
- package/build/components/editor/code/gutter.js +12 -12
- package/build/components/editor/code/html.d.ts +4 -0
- package/build/components/editor/code/html.js +8 -0
- package/build/components/editor/code/minimap.d.ts +4 -10
- package/build/components/editor/code/minimap.js +18 -13
- package/build/components/editor/code/rows.js +6 -12
- package/build/components/editor/code/search.d.ts +1 -2
- package/build/components/editor/code/search.js +1 -1
- package/build/components/editor/code/services/index.d.ts +1 -1
- package/build/components/editor/code/services/index.js +27 -23
- package/build/components/editor/code/services/model.d.ts +1 -5
- package/build/components/editor/code/services/model.js +1 -1
- package/build/components/editor/code/services/session.d.ts +3 -2
- package/build/components/editor/code/services/session.js +1 -4
- package/build/components/editor/code/syntax.d.ts +1 -1
- package/build/components/editor/code/view.d.ts +2 -1
- package/build/components/editor/code/view.js +50 -39
- package/build/components/editor/diffs/merge.d.ts +1 -10
- package/build/components/editor/diffs/merge.js +126 -102
- package/build/components/editor/diffs/render.d.ts +1 -2
- package/build/components/editor/diffs/render.js +2 -8
- package/build/components/editor/diffs/view.d.ts +1 -10
- package/build/components/editor/diffs/view.js +112 -105
- package/build/components/editor/markdown/editing.d.ts +1 -1
- package/build/components/editor/markdown/erase.js +1 -1
- package/build/components/editor/markdown/format.d.ts +23 -0
- package/build/components/editor/markdown/format.js +319 -0
- package/build/components/editor/markdown/html.d.ts +1 -1
- package/build/components/editor/markdown/inline.d.ts +1 -1
- package/build/components/editor/markdown/inline.js +6 -5
- package/build/components/editor/markdown/layout.d.ts +1 -3
- package/build/components/editor/markdown/layout.js +1 -1
- package/build/components/editor/markdown/model.d.ts +3 -9
- package/build/components/editor/markdown/model.js +1 -8
- package/build/components/editor/markdown/render.d.ts +2 -1
- package/build/components/editor/markdown/render.js +278 -247
- package/build/components/editor/markdown/template.d.ts +1 -10
- package/build/components/editor/markdown/toolbar.d.ts +32 -0
- package/build/components/editor/markdown/toolbar.js +556 -0
- package/build/components/editor/markdown/view.d.ts +12 -1
- package/build/components/editor/markdown/view.js +154 -60
- package/build/components/editor/tree/compact.d.ts +2 -1
- package/build/components/editor/tree/compact.js +12 -11
- package/build/components/editor/tree/drag.d.ts +3 -2
- package/build/components/editor/tree/drag.js +29 -26
- package/build/components/editor/tree/edit.d.ts +1 -1
- package/build/components/editor/tree/edit.js +10 -9
- package/build/components/editor/tree/find.d.ts +1 -1
- package/build/components/editor/tree/find.js +10 -6
- package/build/components/editor/tree/icons.d.ts +1 -1
- package/build/components/editor/tree/icons.js +1 -1
- package/build/components/editor/tree/lazy.d.ts +2 -1
- package/build/components/editor/tree/lazy.js +17 -16
- package/build/components/editor/tree/sticky.d.ts +3 -2
- package/build/components/editor/tree/sticky.js +7 -6
- package/build/components/editor/tree/template.d.ts +2 -1
- package/build/components/editor/tree/template.js +144 -157
- package/build/components/editor/viewer/model.js +1 -7
- package/build/components/editor/viewer/template.d.ts +1 -10
- package/build/components/editor/viewer/template.js +74 -65
- package/build/components/editor/workspace/navigate.d.ts +2 -1
- package/build/components/editor/workspace/navigate.js +2 -4
- package/build/components/editor/workspace/session.d.ts +2 -1
- package/build/components/editor/workspace/session.js +14 -9
- package/build/components/editor/workspace/shortcuts.js +39 -33
- package/build/components/editor/workspace/status.js +2 -2
- package/build/components/editor/workspace/statusbar.d.ts +2 -1
- package/build/components/editor/workspace/statusbar.js +49 -48
- package/build/components/editor/workspace/strip.js +6 -5
- package/build/components/editor/workspace/template.d.ts +2 -10
- package/build/components/editor/workspace/template.js +149 -144
- package/build/components/error/index.d.ts +1 -10
- package/build/components/error/index.js +64 -32
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +138 -74
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/action.d.ts +2 -2
- package/build/components/form/action.js +12 -9
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +3 -1
- package/build/components/group/index.js +10 -7
- package/build/components/group/scss/index.scss +1 -1
- package/build/components/heatmap/index.d.ts +5 -2
- package/build/components/heatmap/index.js +72 -59
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +1 -10
- package/build/components/highlight/index.js +21 -19
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +1 -10
- package/build/components/icon/index.js +11 -10
- package/build/components/image/lazyload.d.ts +2 -1
- package/build/components/image/lazyload.js +29 -26
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +0 -4
- package/build/components/index.js +0 -4
- package/build/components/inline-edit/index.d.ts +5 -1
- package/build/components/inline-edit/index.js +34 -27
- package/build/components/inline-edit/rich.d.ts +10 -15
- package/build/components/inline-edit/rich.js +81 -1193
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.d.ts +3 -2
- package/build/components/inline-edit/status.js +22 -18
- package/build/components/input/field.d.ts +2 -1
- package/build/components/input/field.js +12 -9
- package/build/components/input/scrub.d.ts +4 -1
- package/build/components/input/scrub.js +25 -20
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +4 -2
- package/build/components/input/tag.js +58 -53
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +2 -1
- package/build/components/loading/index.js +6 -3
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.d.ts +2 -1
- package/build/components/marquee/index.js +77 -72
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/marquee/velocity.js +4 -3
- package/build/components/metric/flash.d.ts +2 -1
- package/build/components/metric/flash.js +25 -25
- package/build/components/metric/index.d.ts +13 -2
- package/build/components/metric/index.js +60 -56
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/spy.js +9 -6
- package/build/components/nav/toc.d.ts +1 -10
- package/build/components/nav/tree.d.ts +3 -1
- package/build/components/nav/tree.js +60 -58
- package/build/components/notification/index.d.ts +1 -10
- package/build/components/notification/index.js +26 -36
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +4 -5
- package/build/components/overlay/index.js +399 -196
- package/build/components/overlay/popup.d.ts +5 -6
- package/build/components/overlay/popup.js +80 -39
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/pagination/arrows.d.ts +2 -1
- package/build/components/pagination/arrows.js +48 -45
- package/build/components/pagination/cards.d.ts +5 -2
- package/build/components/pagination/cards.js +70 -45
- package/build/components/pagination/dots.d.ts +3 -1
- package/build/components/pagination/dots.js +29 -24
- package/build/components/pagination/index.d.ts +2 -1
- package/build/components/pagination/index.js +27 -28
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.js +30 -22
- package/build/components/panels/group.d.ts +3 -2
- package/build/components/panels/group.js +134 -131
- package/build/components/panels/index.d.ts +2 -10
- package/build/components/panels/index.js +84 -80
- package/build/components/panels/resize.js +39 -3
- package/build/components/panels/scss/index.scss +1 -1
- package/build/components/panels/subtree.d.ts +2 -1
- package/build/components/panels/subtree.js +8 -7
- package/build/components/preview/buttons.d.ts +2 -10
- package/build/components/preview/buttons.js +6 -6
- package/build/components/preview/code.d.ts +1 -10
- package/build/components/preview/code.js +6 -6
- package/build/components/preview/header.d.ts +2 -10
- package/build/components/preview/header.js +15 -12
- package/build/components/preview/index.d.ts +13 -8680
- package/build/components/preview/index.js +22 -22
- package/build/components/preview/scss/index.scss +1 -1
- package/build/components/preview/source.d.ts +1 -10
- package/build/components/preview/source.js +18 -15
- package/build/components/preview/stage.d.ts +2 -10
- package/build/components/preview/stage.js +19 -15
- package/build/components/progress/index.d.ts +2 -1
- package/build/components/progress/index.js +30 -26
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.d.ts +2 -1
- package/build/components/progress/text.js +27 -25
- package/build/components/range/filter.d.ts +2 -1
- package/build/components/range/filter.js +126 -127
- package/build/components/range/index.d.ts +2 -1
- package/build/components/range/index.js +17 -22
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.d.ts +3 -1
- package/build/components/relative-time/index.js +56 -41
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/expand.d.ts +44 -0
- package/build/components/select/expand.js +215 -0
- package/build/components/select/index.d.ts +18 -9
- package/build/components/select/index.js +108 -81
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +2 -1
- package/build/components/shell/index.js +127 -109
- package/build/components/shell/scss/index.scss +1 -1
- package/build/components/shortcut-recorder/index.js +46 -43
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +2 -714
- package/build/components/sortable/index.js +75 -64
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +4 -10
- package/build/components/story/index.js +121 -63
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/engine.js +51 -53
- package/build/components/surface-field/index.d.ts +2180 -2921
- package/build/components/surface-field/index.js +42 -38
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +1 -10
- package/build/components/surface-field/surface.js +42 -36
- package/build/components/tasklist/index.d.ts +8 -1
- package/build/components/tasklist/index.js +63 -46
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +722 -2170
- package/build/components/textarea/index.js +67 -91
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/cards.d.ts +4 -0
- package/build/components/theme/cards.js +21 -0
- package/build/components/theme/index.d.ts +12 -3
- package/build/components/theme/index.js +38 -14
- package/build/components/theme/reveal.d.ts +6 -0
- package/build/components/theme/reveal.js +100 -0
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/{theme-picker → theme}/shared.d.ts +4 -4
- package/build/components/{theme-picker → theme}/shared.js +5 -3
- package/build/components/theme/swatches.d.ts +4 -0
- package/build/components/theme/swatches.js +21 -0
- package/build/components/theme/toggle.d.ts +15 -0
- package/build/components/theme/toggle.js +33 -0
- package/build/components/toast/index.d.ts +6 -2
- package/build/components/toast/index.js +62 -50
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +10 -2
- package/build/components/tooltip/menu.js +194 -179
- package/build/components/tooltip/onclick.d.ts +1 -10
- package/build/components/tooltip/onclick.js +25 -27
- package/build/components/tooltip/onhover.d.ts +8 -709
- package/build/components/tooltip/onhover.js +60 -60
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +5 -3
- package/build/components/tooltip/shared.js +201 -91
- package/build/components/tooltip/utilities.d.ts +10 -4
- package/build/components/tooltip/utilities.js +95 -18
- package/build/components/typewriter/index.d.ts +2855 -1413
- package/build/components/typewriter/index.js +17 -18
- package/build/components/typewriter/retype.d.ts +2 -1
- package/build/components/typewriter/retype.js +21 -18
- package/build/components/typewriter/rotate.d.ts +2 -1
- package/build/components/typewriter/rotate.js +34 -29
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.d.ts +2 -1
- package/build/components/uptime/index.js +51 -47
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.d.ts +719 -2161
- package/build/components/usage-meter/index.js +23 -20
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/border/scss/index.scss +1 -1
- package/build/modifiers/box-shadow/scss/index.scss +1 -1
- package/build/modifiers/color/scss/index.scss +1 -1
- package/build/modifiers/disabled/scss/index.scss +2 -0
- package/build/modifiers/glass/index.d.ts +3 -2
- package/build/modifiers/glass/index.js +7 -7
- package/build/modifiers/glass/scss/index.scss +1 -1
- package/build/modifiers/scrollbar/index.d.ts +13 -13
- package/build/modifiers/scrollbar/index.js +74 -90
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.d.ts +1 -1
- package/build/shared/animation.js +5 -3
- package/build/shared/dispatch.d.ts +7 -0
- package/build/shared/dispatch.js +25 -0
- package/build/shared/drag.d.ts +2 -4
- package/build/shared/press.d.ts +1 -1
- package/build/shared/press.js +5 -3
- package/build/shared/resize.js +2 -25
- package/build/shared/transition.d.ts +1 -1
- package/build/shared/transition.js +2 -2
- package/build/shared/visible.js +1 -24
- package/package.json +13 -14
- package/src/components/accordion/index.ts +2 -4
- package/src/components/accordion/scss/index.scss +17 -14
- package/src/components/accordion/scss/variables.scss +6 -7
- package/src/components/announcement/scss/index.scss +8 -13
- package/src/components/announcement/scss/variables.scss +12 -8
- package/src/components/breadcrumb/index.ts +4 -4
- package/src/components/breadcrumb/scss/index.scss +12 -12
- package/src/components/breadcrumb/scss/variables.scss +5 -12
- package/src/components/button/copy.ts +1 -1
- package/src/components/button/kbd.ts +8 -7
- package/src/components/button/morph/save.ts +2 -2
- package/src/components/button/morph/template.ts +18 -20
- package/src/components/button/scss/index.scss +84 -59
- package/src/components/button/scss/variables.scss +44 -29
- package/src/components/button/sidebar.ts +2 -2
- package/src/components/button/split.ts +7 -8
- package/src/components/capslock/index.ts +4 -4
- package/src/components/capslock/scss/index.scss +4 -2
- package/src/components/capslock/scss/variables.scss +14 -15
- package/src/components/card/scss/index.scss +10 -19
- package/src/components/card/scss/variables.scss +6 -2
- package/src/components/chat/minimap/index.ts +14 -13
- package/src/components/chat/minimap/scss/index.scss +19 -28
- package/src/components/chat/minimap/scss/variables.scss +33 -29
- package/src/components/checkbox/group.ts +5 -5
- package/src/components/checkbox/options.ts +2 -2
- package/src/components/checkbox/scss/index.scss +10 -6
- package/src/components/checkbox/scss/variables.scss +59 -44
- package/src/components/clipboard/write.ts +2 -1
- package/src/components/color-picker/index.ts +9 -11
- package/src/components/color-picker/scss/index.scss +2 -2
- package/src/components/color-picker/scss/variables.scss +26 -41
- package/src/components/command/palette.ts +15 -29
- package/src/components/command/scss/index.scss +8 -13
- package/src/components/command/scss/variables.scss +8 -8
- package/src/components/command/search.ts +3 -8
- package/src/components/container/scss/index.scss +2 -4
- package/src/components/container/scss/variables.scss +0 -2
- package/src/components/counter/index.ts +2 -1
- package/src/components/counter/scss/index.scss +2 -1
- package/src/components/counter/scss/variables.scss +3 -9
- package/src/components/dock/index.ts +17 -8
- package/src/components/dock/scss/index.scss +26 -56
- package/src/components/dock/scss/variables.scss +11 -20
- package/src/components/editor/code/features.ts +4 -5
- package/src/components/editor/code/field.ts +1 -1
- package/src/components/editor/code/find.ts +1 -1
- package/src/components/editor/code/folding.ts +1 -1
- package/src/components/editor/code/html.ts +17 -0
- package/src/components/editor/code/minimap.ts +7 -5
- package/src/components/editor/code/rows.ts +1 -14
- package/src/components/editor/code/scss/_editor.scss +10 -23
- package/src/components/editor/code/scss/_features.scss +17 -26
- package/src/components/editor/code/scss/_minimap.scss +29 -0
- package/src/components/editor/code/scss/_services.scss +4 -7
- package/src/components/editor/code/scss/index.scss +0 -1
- package/src/components/editor/code/scss/variables.scss +22 -14
- package/src/components/editor/code/search.ts +1 -1
- package/src/components/editor/code/services/completion.ts +1 -0
- package/src/components/editor/code/services/hover.ts +1 -0
- package/src/components/editor/code/services/index.ts +1 -1
- package/src/components/editor/code/services/model.ts +1 -1
- package/src/components/editor/code/services/session.ts +1 -4
- package/src/components/editor/code/syntax.ts +1 -1
- package/src/components/editor/diffs/merge.ts +3 -3
- package/src/components/editor/diffs/render.ts +2 -17
- package/src/components/editor/diffs/scss/_diffs.scss +22 -57
- package/src/components/editor/diffs/scss/_merge.scss +8 -29
- package/src/components/editor/diffs/scss/variables.scss +1 -10
- package/src/components/editor/diffs/view.ts +4 -5
- package/src/components/editor/markdown/editing.ts +1 -1
- package/src/components/editor/markdown/erase.ts +3 -3
- package/src/components/editor/markdown/format.ts +517 -0
- package/src/components/editor/markdown/html.ts +1 -1
- package/src/components/editor/markdown/inline.ts +9 -6
- package/src/components/editor/markdown/layout.ts +1 -1
- package/src/components/editor/markdown/model.ts +2 -17
- package/src/components/editor/markdown/render.ts +3 -2
- package/src/components/editor/markdown/scss/index.scss +132 -57
- package/src/components/editor/markdown/scss/variables.scss +124 -4
- package/src/components/editor/markdown/toolbar.ts +628 -0
- package/src/components/editor/markdown/view.ts +121 -10
- package/src/components/editor/tree/drag.ts +16 -15
- package/src/components/editor/tree/icons.ts +1 -1
- package/src/components/editor/tree/scss/index.scss +69 -44
- package/src/components/editor/tree/scss/variables.scss +75 -44
- package/src/components/editor/tree/sticky.ts +1 -1
- package/src/components/editor/tree/template.ts +2 -2
- package/src/components/editor/viewer/model.ts +1 -14
- package/src/components/editor/viewer/scss/_viewer.scss +22 -72
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +1 -3
- package/src/components/editor/viewer/template.ts +4 -2
- package/src/components/editor/workspace/navigate.ts +3 -6
- package/src/components/editor/workspace/scss/_keybindings.scss +9 -7
- package/src/components/editor/workspace/scss/_status.scss +14 -38
- package/src/components/editor/workspace/scss/_tabs.scss +6 -3
- package/src/components/editor/workspace/scss/index.scss +38 -33
- package/src/components/editor/workspace/scss/variables.scss +57 -53
- package/src/components/editor/workspace/session.ts +20 -13
- package/src/components/editor/workspace/status.ts +2 -2
- package/src/components/editor/workspace/template.ts +12 -21
- package/src/components/error/index.ts +36 -18
- package/src/components/error/scss/index.scss +3 -1
- package/src/components/error/scss/variables.scss +1 -0
- package/src/components/filter/index.ts +146 -99
- package/src/components/filter/scss/variables.scss +1 -1
- package/src/components/form/action.ts +1 -1
- package/src/components/frame/scss/index.scss +10 -6
- package/src/components/frame/scss/variables.scss +11 -6
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/grid/scss/variables.scss +1 -1
- package/src/components/heatmap/index.ts +2 -2
- package/src/components/heatmap/scss/index.scss +22 -17
- package/src/components/heatmap/scss/variables.scss +16 -34
- package/src/components/highlight/index.ts +0 -1
- package/src/components/highlight/scss/index.scss +13 -21
- package/src/components/highlight/scss/variables.scss +12 -14
- package/src/components/icon/index.ts +0 -4
- package/src/components/icon/scss/index.scss +2 -0
- package/src/components/image/lazyload.ts +1 -1
- package/src/components/image/scss/index.scss +14 -13
- package/src/components/image/scss/variables.scss +16 -12
- package/src/components/index.ts +0 -4
- package/src/components/inline-edit/index.ts +6 -5
- package/src/components/inline-edit/rich.ts +85 -1400
- package/src/components/inline-edit/scss/index.scss +24 -191
- package/src/components/inline-edit/scss/variables.scss +24 -191
- package/src/components/inline-edit/status.ts +6 -3
- package/src/components/input/field.ts +2 -2
- package/src/components/input/scrub.ts +1 -5
- package/src/components/input/scss/_scrub.scss +7 -0
- package/src/components/input/scss/_tag.scss +4 -2
- package/src/components/input/scss/index.scss +1 -2
- package/src/components/input/scss/variables.scss +14 -21
- package/src/components/input/tag.ts +6 -7
- package/src/components/json/download.ts +2 -1
- package/src/components/link/scss/index.scss +0 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/scss/index.scss +4 -4
- package/src/components/loading/scss/variables.scss +4 -4
- package/src/components/marquee/index.ts +5 -5
- package/src/components/marquee/scss/index.scss +6 -4
- package/src/components/marquee/scss/variables.scss +3 -4
- package/src/components/marquee/velocity.ts +7 -3
- package/src/components/metric/flash.ts +1 -1
- package/src/components/metric/index.ts +5 -13
- package/src/components/metric/scss/_flash.scss +9 -4
- package/src/components/metric/scss/index.scss +11 -9
- package/src/components/metric/scss/variables.scss +73 -73
- package/src/components/nav/scss/index.scss +2 -1
- package/src/components/nav/scss/variables.scss +9 -11
- package/src/components/nav/spy.ts +15 -8
- package/src/components/nav/tree.ts +28 -30
- package/src/components/notification/index.ts +37 -16
- package/src/components/notification/scss/index.scss +32 -17
- package/src/components/notification/scss/variables.scss +12 -12
- package/src/components/overlay/index.ts +212 -142
- package/src/components/overlay/popup.ts +89 -52
- package/src/components/overlay/scss/index.scss +68 -85
- package/src/components/overlay/scss/variables.scss +15 -12
- package/src/components/pagination/cards.ts +1 -2
- package/src/components/pagination/index.ts +3 -9
- package/src/components/pagination/scss/index.scss +12 -12
- package/src/components/pagination/scss/variables.scss +39 -21
- package/src/components/panels/dnd.ts +35 -29
- package/src/components/panels/group.ts +5 -13
- package/src/components/panels/index.ts +4 -6
- package/src/components/panels/resize.ts +30 -4
- package/src/components/panels/scss/index.scss +13 -28
- package/src/components/panels/scss/variables.scss +3 -3
- package/src/components/preview/code.ts +1 -1
- package/src/components/preview/index.ts +12 -7
- package/src/components/preview/scss/index.scss +30 -15
- package/src/components/preview/scss/variables.scss +56 -34
- package/src/components/progress/scss/index.scss +14 -11
- package/src/components/progress/scss/variables.scss +34 -31
- package/src/components/progress/text.ts +9 -8
- package/src/components/range/filter.ts +9 -11
- package/src/components/range/index.ts +2 -9
- package/src/components/range/scss/_filter.scss +4 -3
- package/src/components/range/scss/_slider.scss +2 -1
- package/src/components/range/scss/variables.scss +2 -16
- package/src/components/relative-time/index.ts +15 -16
- package/src/components/relative-time/scss/index.scss +8 -4
- package/src/components/relative-time/scss/variables.scss +7 -3
- package/src/components/root/scss/index.scss +3 -0
- package/src/components/root/scss/variables.scss +11 -11
- package/src/components/select/expand.ts +272 -0
- package/src/components/select/index.ts +142 -119
- package/src/components/select/scss/index.scss +79 -7
- package/src/components/select/scss/variables.scss +67 -3
- package/src/components/shell/index.ts +73 -50
- package/src/components/shell/scss/index.scss +34 -47
- package/src/components/shell/scss/variables.scss +16 -16
- package/src/components/shortcut-recorder/index.ts +14 -17
- package/src/components/shortcut-recorder/scss/index.scss +15 -10
- package/src/components/shortcut-recorder/scss/variables.scss +4 -7
- package/src/components/sortable/index.ts +25 -28
- package/src/components/sortable/scss/index.scss +28 -27
- package/src/components/sortable/scss/variables.scss +12 -7
- package/src/components/story/index.ts +110 -47
- package/src/components/story/scss/index.scss +13 -18
- package/src/components/story/scss/variables.scss +4 -16
- package/src/components/surface-field/engine.ts +71 -72
- package/src/components/surface-field/index.ts +17 -20
- package/src/components/surface-field/scss/index.scss +9 -11
- package/src/components/surface-field/scss/variables.scss +20 -23
- package/src/components/surface-field/surface.ts +4 -3
- package/src/components/tasklist/index.ts +1 -6
- package/src/components/tasklist/scss/index.scss +22 -26
- package/src/components/tasklist/scss/variables.scss +14 -20
- package/src/components/textarea/index.ts +49 -91
- package/src/components/textarea/scss/index.scss +20 -15
- package/src/components/textarea/scss/variables.scss +15 -0
- package/src/components/theme/cards.ts +19 -0
- package/src/components/theme/index.ts +58 -17
- package/src/components/theme/reveal.ts +190 -0
- package/src/components/theme/scss/index.scss +109 -0
- package/src/components/theme/scss/variables.scss +153 -3
- package/src/components/{theme-picker → theme}/shared.ts +9 -6
- package/src/components/theme/swatches.ts +15 -0
- package/src/components/theme/toggle.ts +47 -0
- package/src/components/toast/index.ts +2 -3
- package/src/components/toast/scss/index.scss +63 -0
- package/src/components/toast/scss/variables.scss +121 -16
- package/src/components/tooltip/menu.ts +141 -131
- package/src/components/tooltip/onclick.ts +16 -21
- package/src/components/tooltip/onhover.ts +5 -8
- package/src/components/tooltip/scss/index.scss +534 -56
- package/src/components/tooltip/scss/variables.scss +64 -13
- package/src/components/tooltip/shared.ts +129 -87
- package/src/components/tooltip/utilities.ts +75 -24
- package/src/components/typewriter/index.ts +7 -10
- package/src/components/typewriter/rotate.ts +11 -7
- package/src/components/typewriter/scss/index.scss +2 -0
- package/src/components/typewriter/scss/variables.scss +1 -1
- package/src/components/uptime/index.ts +12 -6
- package/src/components/uptime/scss/index.scss +86 -75
- package/src/components/uptime/scss/variables.scss +82 -51
- package/src/components/usage-meter/index.ts +1 -1
- package/src/components/usage-meter/scss/index.scss +0 -3
- package/src/components/usage-meter/scss/variables.scss +13 -14
- package/src/css-utilities/background.scss +9 -1
- package/src/css-utilities/border.scss +3 -0
- package/src/css-utilities/box-shadow.scss +3 -2
- package/src/css-utilities/color.scss +13 -3
- package/src/css-utilities/disabled.scss +12 -0
- package/src/css-utilities/font/geist/index.scss +2 -1
- package/src/css-utilities/font/montserrat/index.scss +1 -1
- package/src/css-utilities/group.scss +1 -2
- package/src/css-utilities/icon.scss +1 -0
- package/src/css-utilities/layer.scss +2 -1
- package/src/css-utilities/skeleton.scss +4 -1
- package/src/css-utilities/surface.scss +97 -108
- package/src/css-utilities/text.scss +13 -13
- package/src/modifiers/background/scss/variables.scss +2 -4
- package/src/modifiers/border/scss/variables.scss +6 -8
- package/src/modifiers/disabled/scss/index.scss +5 -0
- package/src/modifiers/glass/index.ts +2 -1
- package/src/modifiers/glass/scss/index.scss +8 -11
- package/src/modifiers/glass/scss/variables.scss +1 -0
- package/src/modifiers/scrollbar/index.ts +94 -113
- package/src/modifiers/scrollbar/scss/index.scss +20 -2
- package/src/modifiers/scrollbar/scss/variables.scss +2 -2
- package/src/normalize/scss/index.scss +1 -0
- package/src/shared/anchor.ts +1 -1
- package/src/shared/animation.ts +6 -4
- package/src/shared/dispatch.ts +42 -0
- package/src/shared/drag.ts +2 -1
- package/src/shared/press.ts +7 -5
- package/src/shared/resize.ts +4 -35
- package/src/shared/scss/list.scss +1 -2
- package/src/shared/transition.ts +2 -2
- package/src/shared/visible.ts +3 -35
- package/src/tokens/scss/color.scss +16 -20
- package/src/tokens/scss/focus.scss +5 -0
- package/src/tokens/scss/font-size.scss +1 -2
- package/src/tokens/scss/index.scss +1 -0
- package/src/tokens/scss/scale.scss +4 -8
- package/src/tokens/scss/size.scss +3 -3
- package/src/tokens/scss/spacer.scss +1 -1
- package/src/tokens/scss/state.scss +11 -30
- package/vite-env.d.ts +1 -1
- package/vite.config.ts +10 -8
- package/build/components/cc/index.d.ts +0 -30
- package/build/components/cc/index.js +0 -561
- package/build/components/cc/scss/index.scss +0 -2
- package/build/components/datalist/index.d.ts +0 -42
- package/build/components/datalist/index.js +0 -186
- package/build/components/datalist/scss/index.scss +0 -2
- package/build/components/inline-edit/format.d.ts +0 -29
- package/build/components/inline-edit/format.js +0 -112
- package/build/components/inline-edit/history.d.ts +0 -14
- package/build/components/inline-edit/history.js +0 -40
- package/build/components/inline-edit/markdown.d.ts +0 -7
- package/build/components/inline-edit/markdown.js +0 -314
- package/build/components/inline-edit/model.d.ts +0 -61
- package/build/components/inline-edit/model.js +0 -192
- package/build/components/inline-edit/selection.d.ts +0 -7
- package/build/components/inline-edit/selection.js +0 -114
- package/build/components/inline-edit/utilities.d.ts +0 -4
- package/build/components/inline-edit/utilities.js +0 -12
- package/build/components/sticky-header/index.d.ts +0 -2166
- package/build/components/sticky-header/index.js +0 -58
- package/build/components/sticky-header/scss/index.scss +0 -2
- package/build/components/theme-picker/cards.d.ts +0 -13
- package/build/components/theme-picker/cards.js +0 -17
- package/build/components/theme-picker/index.d.ts +0 -12
- package/build/components/theme-picker/index.js +0 -7
- package/build/components/theme-picker/scss/index.scss +0 -2
- package/build/components/theme-picker/swatches.d.ts +0 -13
- package/build/components/theme-picker/swatches.js +0 -17
- package/build/components/theme-picker/toggle.d.ts +0 -19
- package/build/components/theme-picker/toggle.js +0 -109
- package/src/components/cc/index.ts +0 -563
- package/src/components/cc/scss/index.scss +0 -386
- package/src/components/cc/scss/variables.scss +0 -254
- package/src/components/datalist/index.ts +0 -256
- package/src/components/datalist/scss/index.scss +0 -104
- package/src/components/datalist/scss/variables.scss +0 -43
- package/src/components/inline-edit/format.ts +0 -183
- package/src/components/inline-edit/history.ts +0 -71
- package/src/components/inline-edit/markdown.ts +0 -485
- package/src/components/inline-edit/model.ts +0 -366
- package/src/components/inline-edit/selection.ts +0 -188
- package/src/components/inline-edit/utilities.ts +0 -18
- package/src/components/sticky-header/index.ts +0 -78
- package/src/components/sticky-header/scss/index.scss +0 -141
- package/src/components/sticky-header/scss/variables.scss +0 -78
- package/src/components/theme-picker/cards.ts +0 -19
- package/src/components/theme-picker/index.ts +0 -12
- package/src/components/theme-picker/scss/index.scss +0 -174
- package/src/components/theme-picker/scss/variables.scss +0 -220
- package/src/components/theme-picker/swatches.ts +0 -15
- package/src/components/theme-picker/toggle.ts +0 -150
- package/src/components/tooltip/scss/_center.scss +0 -9
- package/src/components/tooltip/scss/_east.scss +0 -33
- package/src/components/tooltip/scss/_menu.scss +0 -325
- package/src/components/tooltip/scss/_north.scss +0 -33
- package/src/components/tooltip/scss/_shared.scss +0 -112
- package/src/components/tooltip/scss/_south.scss +0 -33
- package/src/components/tooltip/scss/_west.scss +0 -33
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
2
|
@use 'css-utilities/absolute';
|
|
3
|
+
@use 'css-utilities/disabled';
|
|
3
4
|
@use 'css-utilities/drag';
|
|
4
5
|
@use 'css-utilities/reset';
|
|
5
6
|
@use 'css-utilities/text';
|
|
@@ -47,6 +48,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
47
48
|
margin-inline-start: auto;
|
|
48
49
|
padding-inline-start: var(--item-gap-horizontal);
|
|
49
50
|
|
|
51
|
+
|
|
50
52
|
&-part {
|
|
51
53
|
@each $tone in additions, added, conflict, deleted, deletions, error, ignored, modified, open, submodule, unsaved, warning {
|
|
52
54
|
&--#{$tone} {
|
|
@@ -56,8 +58,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
56
58
|
|
|
57
59
|
// Changes in the index sit in a tinted chip, so a file staged and then edited again reads as two letters.
|
|
58
60
|
&--staged {
|
|
59
|
-
background: color-mix(in srgb, currentColor var(--
|
|
60
|
-
border-radius: var(--
|
|
61
|
+
background: color-mix(in srgb, currentColor var(--tint), transparent);
|
|
62
|
+
border-radius: var(--border-radius);
|
|
61
63
|
padding-inline: var(--padding-horizontal);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -66,10 +68,12 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
66
68
|
&-chevron {
|
|
67
69
|
transition: rotate var(--transition-duration) var(--transition-timing-function);
|
|
68
70
|
|
|
71
|
+
|
|
69
72
|
// Mirrored to point left, so opening turns it the other way to still point down.
|
|
70
73
|
&:dir(rtl) {
|
|
71
74
|
scale: -1 1;
|
|
72
75
|
|
|
76
|
+
|
|
73
77
|
[aria-expanded='true'] > * > & {
|
|
74
78
|
rotate: -90deg;
|
|
75
79
|
}
|
|
@@ -84,20 +88,23 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
84
88
|
&-drag {
|
|
85
89
|
@extend %reset-popover;
|
|
86
90
|
background: var(--surface-background-default);
|
|
87
|
-
border-radius: var(--
|
|
91
|
+
border-radius: var(--border-radius);
|
|
88
92
|
box-shadow: 0 0 0 var(--border-width-400) var(--surface-border-default), var(--surface-shadow-default);
|
|
89
93
|
color: var(--color);
|
|
90
94
|
font-size: var(--font-size);
|
|
91
95
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
92
96
|
left: 0;
|
|
93
|
-
margin: var(--
|
|
94
|
-
|
|
97
|
+
margin-left: var(--margin-horizontal);
|
|
98
|
+
margin-top: var(--margin-vertical);
|
|
99
|
+
padding-block: var(--padding-vertical);
|
|
100
|
+
padding-inline: var(--padding-horizontal);
|
|
95
101
|
top: 0;
|
|
96
102
|
white-space: nowrap;
|
|
97
103
|
|
|
104
|
+
|
|
98
105
|
&-copy {
|
|
99
106
|
color: var(--added-color);
|
|
100
|
-
display: var(--
|
|
107
|
+
display: var(--display);
|
|
101
108
|
font-weight: var(--badge-font-weight);
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -108,6 +115,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
108
115
|
font-weight: var(--badge-font-weight);
|
|
109
116
|
}
|
|
110
117
|
|
|
118
|
+
|
|
111
119
|
&:popover-open {
|
|
112
120
|
align-items: center;
|
|
113
121
|
display: flex;
|
|
@@ -123,7 +131,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
123
131
|
flex-direction: column;
|
|
124
132
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
125
133
|
justify-content: center;
|
|
126
|
-
padding: var(--
|
|
134
|
+
padding-block: var(--padding-vertical);
|
|
135
|
+
padding-inline: var(--padding-horizontal);
|
|
127
136
|
text-align: center;
|
|
128
137
|
}
|
|
129
138
|
|
|
@@ -132,11 +141,12 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
132
141
|
display: flex;
|
|
133
142
|
flex-direction: column;
|
|
134
143
|
inset-block-start: 0;
|
|
135
|
-
inset-inline-end: var(--
|
|
136
|
-
max-width: calc(100% - var(--
|
|
144
|
+
inset-inline-end: var(--inset-horizontal);
|
|
145
|
+
max-width: calc(100% - var(--inset-horizontal) * 2);
|
|
137
146
|
position: absolute;
|
|
138
147
|
z-index: 2;
|
|
139
148
|
|
|
149
|
+
|
|
140
150
|
&-bar {
|
|
141
151
|
align-items: center;
|
|
142
152
|
background: var(--surface-background-default);
|
|
@@ -145,27 +155,25 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
145
155
|
box-shadow: var(--surface-shadow-default);
|
|
146
156
|
display: flex;
|
|
147
157
|
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
148
|
-
padding: var(--padding-vertical)
|
|
158
|
+
padding-block: var(--padding-vertical);
|
|
159
|
+
padding-inline: var(--padding-horizontal);
|
|
149
160
|
}
|
|
150
161
|
|
|
151
162
|
&-button {
|
|
163
|
+
@extend %reset-button;
|
|
152
164
|
align-items: center;
|
|
153
165
|
background: var(--background);
|
|
154
|
-
border: 0;
|
|
155
166
|
border-radius: var(--input-radius);
|
|
156
|
-
color: inherit;
|
|
157
|
-
cursor: pointer;
|
|
158
167
|
display: flex;
|
|
159
168
|
flex-shrink: 0;
|
|
160
169
|
height: var(--find-button-size);
|
|
161
170
|
justify-content: center;
|
|
162
171
|
outline: 0 solid var(--focus-color);
|
|
163
|
-
padding: 0;
|
|
164
172
|
width: var(--find-button-size);
|
|
165
173
|
|
|
174
|
+
|
|
166
175
|
&:disabled {
|
|
167
|
-
|
|
168
|
-
opacity: var(--disabled-opacity);
|
|
176
|
+
@extend %disabled;
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
&:focus-visible {
|
|
@@ -185,6 +193,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
185
193
|
padding-inline: var(--padding-horizontal);
|
|
186
194
|
white-space: nowrap;
|
|
187
195
|
|
|
196
|
+
|
|
188
197
|
&:empty {
|
|
189
198
|
display: none;
|
|
190
199
|
}
|
|
@@ -201,7 +210,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
201
210
|
outline: none;
|
|
202
211
|
padding-inline: var(--padding-horizontal);
|
|
203
212
|
user-select: text;
|
|
204
|
-
width: var(--
|
|
213
|
+
width: var(--width);
|
|
214
|
+
|
|
205
215
|
|
|
206
216
|
&:focus {
|
|
207
217
|
border-color: var(--input-border-color);
|
|
@@ -221,8 +231,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
221
231
|
border-end-start-radius: var(--find-radius);
|
|
222
232
|
color: var(--find-note-color);
|
|
223
233
|
font-size: var(--find-note-font-size);
|
|
224
|
-
margin:
|
|
225
|
-
padding:
|
|
234
|
+
margin-inline: var(--find-radius);
|
|
235
|
+
padding-inline: var(--padding-horizontal);
|
|
226
236
|
}
|
|
227
237
|
}
|
|
228
238
|
|
|
@@ -239,6 +249,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
239
249
|
padding-inline: var(--padding-horizontal);
|
|
240
250
|
user-select: text;
|
|
241
251
|
|
|
252
|
+
|
|
242
253
|
&[aria-invalid='true'] {
|
|
243
254
|
border-color: var(--error-color);
|
|
244
255
|
}
|
|
@@ -250,10 +261,11 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
250
261
|
|
|
251
262
|
// Inline, so a long name marked still ends in an ellipsis.
|
|
252
263
|
&-match {
|
|
253
|
-
background: var(--
|
|
254
|
-
border-radius: var(--
|
|
255
|
-
color: var(--
|
|
256
|
-
font-weight: var(--
|
|
264
|
+
background: var(--background);
|
|
265
|
+
border-radius: var(--border-radius);
|
|
266
|
+
color: var(--color);
|
|
267
|
+
font-weight: var(--font-weight);
|
|
268
|
+
|
|
257
269
|
|
|
258
270
|
// High contrast drops the wash with the other tints, so an underline marks the match along with its weight.
|
|
259
271
|
@media (forced-colors: active) {
|
|
@@ -268,7 +280,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
268
280
|
border-radius: var(--input-radius);
|
|
269
281
|
font-size: var(--message-font-size);
|
|
270
282
|
inset-inline: var(--inset-start) 0;
|
|
271
|
-
padding: var(--padding-vertical)
|
|
283
|
+
padding-block: var(--padding-vertical);
|
|
284
|
+
padding-inline: var(--padding-horizontal);
|
|
272
285
|
position: absolute;
|
|
273
286
|
top: 100%;
|
|
274
287
|
white-space: normal;
|
|
@@ -287,16 +300,18 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
287
300
|
pointer-events: none;
|
|
288
301
|
position: absolute;
|
|
289
302
|
|
|
303
|
+
|
|
290
304
|
@media (prefers-reduced-motion: no-preference) {
|
|
291
305
|
@include tokens.state(active) {
|
|
292
306
|
display: block;
|
|
293
307
|
}
|
|
294
308
|
}
|
|
295
309
|
|
|
310
|
+
|
|
296
311
|
&-layer {
|
|
297
|
-
|
|
312
|
+
inset-inline: 0;
|
|
298
313
|
position: absolute;
|
|
299
|
-
|
|
314
|
+
|
|
300
315
|
|
|
301
316
|
@media (prefers-reduced-motion: no-preference) {
|
|
302
317
|
&--close {
|
|
@@ -332,6 +347,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
332
347
|
&-notice {
|
|
333
348
|
color: var(--notice-color);
|
|
334
349
|
|
|
350
|
+
|
|
335
351
|
// Nothing to act on while loading; the error row retries.
|
|
336
352
|
&:not(.file-tree-row--error) {
|
|
337
353
|
cursor: var(--drag-cursor, default);
|
|
@@ -354,6 +370,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
354
370
|
position: relative;
|
|
355
371
|
user-select: none;
|
|
356
372
|
|
|
373
|
+
|
|
357
374
|
// One guide per ancestor under each ancestor's chevron, outside the row's box so the highlight covers the row
|
|
358
375
|
// alone; rows carry no vertical margins, so each row's share joins into an unbroken line. The parent's guide
|
|
359
376
|
// is a 1px box and the others are its shadows ('--guides'), whole indents further out: boxes snap to whole
|
|
@@ -373,6 +390,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
373
390
|
// Top-level rows have no parent to draw.
|
|
374
391
|
width: calc(min(var(--depth), 1) * 1px);
|
|
375
392
|
|
|
393
|
+
|
|
376
394
|
// Opted out of high contrast, so the shadow copies drawing the further ancestors' guides survive.
|
|
377
395
|
@media (forced-colors: active) {
|
|
378
396
|
forced-color-adjust: none;
|
|
@@ -440,6 +458,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
440
458
|
&--match {
|
|
441
459
|
background: var(--found-background);
|
|
442
460
|
|
|
461
|
+
|
|
443
462
|
@media (forced-colors: active) {
|
|
444
463
|
outline: 1px dotted CanvasText;
|
|
445
464
|
}
|
|
@@ -448,6 +467,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
448
467
|
&--match-current {
|
|
449
468
|
box-shadow: inset 0 0 0 var(--border-width) var(--found-border-color);
|
|
450
469
|
|
|
470
|
+
|
|
451
471
|
@media (forced-colors: active) {
|
|
452
472
|
outline-style: solid;
|
|
453
473
|
}
|
|
@@ -478,6 +498,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
478
498
|
&--reveal {
|
|
479
499
|
animation: file-tree-row--reveal var(--reveal-duration) var(--reveal-timing-function) var(--reveal-delay) backwards;
|
|
480
500
|
|
|
501
|
+
|
|
481
502
|
@media (prefers-reduced-motion: no-preference) {
|
|
482
503
|
animation:
|
|
483
504
|
file-tree-expand var(--expand-duration) var(--expand-timing-function) forwards,
|
|
@@ -490,6 +511,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
490
511
|
calc(var(--depth) * var(--indent) * -1)
|
|
491
512
|
);
|
|
492
513
|
|
|
514
|
+
|
|
493
515
|
~ .file-tree-row:not(.file-tree-row--reveal) {
|
|
494
516
|
animation: file-tree-expand var(--expand-duration) var(--expand-timing-function) forwards;
|
|
495
517
|
translate: 0 calc($edge - var(--motion-rows) * var(--row-height));
|
|
@@ -516,8 +538,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
516
538
|
|
|
517
539
|
// A root's header, set apart from the folders under it as VS Code sets its workspace folders.
|
|
518
540
|
&--root {
|
|
519
|
-
font-size: var(--
|
|
520
|
-
font-weight: var(--
|
|
541
|
+
font-size: var(--font-size);
|
|
542
|
+
font-weight: var(--font-weight);
|
|
521
543
|
text-transform: uppercase;
|
|
522
544
|
}
|
|
523
545
|
|
|
@@ -526,8 +548,9 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
526
548
|
&--scope {
|
|
527
549
|
isolation: isolate;
|
|
528
550
|
|
|
551
|
+
|
|
529
552
|
&::after {
|
|
530
|
-
background: color-mix(in srgb, var(--scope) var(--
|
|
553
|
+
background: color-mix(in srgb, var(--scope) var(--tint), transparent);
|
|
531
554
|
content: '';
|
|
532
555
|
inset-block: 0;
|
|
533
556
|
inset-inline: calc(var(--depth) * var(--indent) * -1) 0;
|
|
@@ -535,6 +558,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
535
558
|
position: absolute;
|
|
536
559
|
z-index: -1;
|
|
537
560
|
|
|
561
|
+
|
|
538
562
|
@media (forced-colors: active) {
|
|
539
563
|
display: none;
|
|
540
564
|
}
|
|
@@ -546,14 +570,9 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
546
570
|
background: var(--background-selected);
|
|
547
571
|
}
|
|
548
572
|
|
|
549
|
-
@include tokens.state(disabled) {
|
|
550
|
-
cursor: var(--drag-cursor, not-allowed);
|
|
551
|
-
opacity: var(--disabled-opacity);
|
|
552
573
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
opacity: 1;
|
|
556
|
-
}
|
|
574
|
+
@include tokens.state(disabled) {
|
|
575
|
+
@extend %disabled;
|
|
557
576
|
}
|
|
558
577
|
|
|
559
578
|
.file-tree-viewport:focus-visible &--focused {
|
|
@@ -570,12 +589,8 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
570
589
|
// A compact row's folders, underlined under the pointer and when one before the row's own is selected, as in
|
|
571
590
|
// VS Code; the one a drag would drop into is tinted, and the find bar's current match outlined within its row.
|
|
572
591
|
&-segment {
|
|
573
|
-
border-radius: var(--border-radius
|
|
592
|
+
border-radius: var(--border-radius);
|
|
574
593
|
|
|
575
|
-
#{tokens.state(active)},
|
|
576
|
-
&:hover {
|
|
577
|
-
text-decoration: underline;
|
|
578
|
-
}
|
|
579
594
|
|
|
580
595
|
&--drop {
|
|
581
596
|
background: var(--drop-background);
|
|
@@ -585,10 +600,16 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
585
600
|
&--match-current {
|
|
586
601
|
box-shadow: inset 0 0 0 var(--border-width) var(--found-border-color);
|
|
587
602
|
}
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
#{tokens.state(active)},
|
|
606
|
+
&:hover {
|
|
607
|
+
text-decoration: underline;
|
|
608
|
+
}
|
|
588
609
|
}
|
|
589
610
|
|
|
590
611
|
&-separator {
|
|
591
|
-
color: var(--
|
|
612
|
+
color: var(--color);
|
|
592
613
|
margin-inline: var(--margin-horizontal);
|
|
593
614
|
}
|
|
594
615
|
|
|
@@ -603,10 +624,12 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
603
624
|
top: 0;
|
|
604
625
|
z-index: 1;
|
|
605
626
|
|
|
627
|
+
|
|
606
628
|
&-rows {
|
|
607
629
|
background: var(--surface-background-default);
|
|
608
630
|
box-shadow: var(--sticky-shadow);
|
|
609
631
|
|
|
632
|
+
|
|
610
633
|
&:not(:has(> .file-tree-row)) {
|
|
611
634
|
display: none;
|
|
612
635
|
}
|
|
@@ -621,6 +644,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
621
644
|
outline-offset: calc(var(--size-100) / 4);
|
|
622
645
|
position: absolute;
|
|
623
646
|
|
|
647
|
+
|
|
624
648
|
&:focus-visible {
|
|
625
649
|
outline-width: var(--border-width-500);
|
|
626
650
|
}
|
|
@@ -628,9 +652,9 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
628
652
|
|
|
629
653
|
&-tooltip {
|
|
630
654
|
&-meta {
|
|
631
|
-
color: color
|
|
655
|
+
color: var(--color);
|
|
632
656
|
display: block;
|
|
633
|
-
font-size: var(--font-size
|
|
657
|
+
font-size: var(--font-size);
|
|
634
658
|
white-space: nowrap;
|
|
635
659
|
}
|
|
636
660
|
|
|
@@ -652,6 +676,7 @@ $edge: calc(var(--file-tree-progress) * var(--motion-rows) * var(--row-height));
|
|
|
652
676
|
overflow-x: hidden;
|
|
653
677
|
overflow-y: auto;
|
|
654
678
|
|
|
679
|
+
|
|
655
680
|
// The viewport holds the pointer for the whole drag, so its cursor is the one that shows; its rows take it too.
|
|
656
681
|
&--drag {
|
|
657
682
|
cursor: var(--drag-cursor);
|
|
@@ -100,14 +100,8 @@ $icons: (
|
|
|
100
100
|
--conceal-duration: 0.12s;
|
|
101
101
|
--conceal-timing-function: ease-out;
|
|
102
102
|
--conflict-color: light-dark(oklch(from var(--color-red-300) 0.6 c h), oklch(from var(--color-red-300) 0.72 0.16 h));
|
|
103
|
-
--cut-opacity: 0.5;
|
|
104
103
|
--deleted-color: light-dark(var(--color-red-500), oklch(from var(--color-red-500) 0.7 0.17 h));
|
|
105
104
|
--deletions-color: var(--deleted-color);
|
|
106
|
-
// The label that follows the pointer while dragging, offset so it never covers the row being aimed at.
|
|
107
|
-
--drag-offset: var(--size-300);
|
|
108
|
-
--drag-radius: var(--border-radius-300);
|
|
109
|
-
// Rows being moved, not copied, dim while they travel.
|
|
110
|
-
--dragged-opacity: 0.5;
|
|
111
105
|
--drop-background: color-mix(in srgb, var(--drop-color) 10%, transparent);
|
|
112
106
|
--drop-border-color: color-mix(in srgb, var(--drop-color) 60%, transparent);
|
|
113
107
|
--drop-color: var(--color-accent-400);
|
|
@@ -115,15 +109,11 @@ $icons: (
|
|
|
115
109
|
--error-color: light-dark(var(--color-red-400), oklch(from var(--color-red-400) 0.7 0.18 h));
|
|
116
110
|
--expand-duration: 0.25s;
|
|
117
111
|
--expand-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
118
|
-
// The find bar over the tree's top corner; the offset keeps it clear of the scrollbar.
|
|
119
112
|
--find-border-color: var(--surface-border-default);
|
|
120
113
|
--find-button-size: var(--size-500);
|
|
121
|
-
--find-input-width: calc(var(--size-900) * 2);
|
|
122
114
|
--find-note-color: var(--color-text-300);
|
|
123
115
|
--find-note-font-size: var(--font-size-200);
|
|
124
|
-
--find-offset: var(--size-300);
|
|
125
116
|
--find-radius: var(--border-radius-300);
|
|
126
|
-
--focus-color: var(--surface-border-pressed);
|
|
127
117
|
--font-size: var(--font-size-300);
|
|
128
118
|
// Rows the find bar matches; the current one is outlined.
|
|
129
119
|
--found-background: color-mix(in srgb, var(--found-color) 14%, transparent);
|
|
@@ -144,40 +134,25 @@ $icons: (
|
|
|
144
134
|
--input-radius: var(--border-radius-200);
|
|
145
135
|
// Between a row's parts; the drag label and the error message line up with it.
|
|
146
136
|
--item-gap-horizontal: calc(var(--size-100) / 2);
|
|
147
|
-
// The symlink and read-only glyphs beside the name.
|
|
148
|
-
--marker-color: var(--color-primary-300);
|
|
149
|
-
--marker-size: var(--size-300);
|
|
150
|
-
// Characters a fuzzy query matched: heavier, on a faint wash, in whatever color the name's git tone gives it.
|
|
151
|
-
--match-background: color-mix(in srgb, var(--color-accent-400) 18%, transparent);
|
|
152
|
-
--match-color: inherit;
|
|
153
|
-
--match-font-weight: var(--font-weight-600);
|
|
154
|
-
--match-radius: var(--border-radius-100);
|
|
155
137
|
// Opaque, since it covers the rows below the input.
|
|
156
138
|
--message-background: color-mix(in srgb, var(--error-color) 10%, var(--surface-background-default));
|
|
157
139
|
--message-font-size: var(--font-size-200);
|
|
158
140
|
--modified-color: light-dark(oklch(from var(--color-yellow-500) 0.62 c h), oklch(from var(--color-yellow-500) 0.76 c h));
|
|
159
141
|
--notice-color: var(--color-text-300);
|
|
160
142
|
--open-color: var(--color-primary-300);
|
|
161
|
-
--root-font-size: var(--font-size-200);
|
|
162
|
-
--root-font-weight: var(--font-weight-600);
|
|
163
143
|
--row-height: 22px;
|
|
164
144
|
// Inside each row; the guides and the error message line up with it.
|
|
165
145
|
--row-padding-horizontal: var(--size-100);
|
|
166
146
|
--row-radius: var(--border-radius-300);
|
|
167
|
-
// How much of a scope's color tints its rows; faint, so git colors and the highlight still read over it.
|
|
168
|
-
--scope-tint: 12%;
|
|
169
|
-
// The slash between a compact row's folders.
|
|
170
|
-
--separator-color: var(--color-primary-300);
|
|
171
|
-
--staged-radius: var(--border-radius-100);
|
|
172
|
-
--staged-tint: 18%;
|
|
173
147
|
// Rows scroll under the pinned folders, so these hide them with the surface the tree sits on.
|
|
174
|
-
--sticky-shadow: 0 6px 16px -10px
|
|
148
|
+
--sticky-shadow: 0 6px 16px -10px #{surface.shadow-color(4.4)};
|
|
175
149
|
--submodule-color: light-dark(oklch(from var(--color-blue-400) 0.6 c h), oklch(from var(--color-blue-400) 0.74 0.14 h));
|
|
176
150
|
--toggle-color: var(--color);
|
|
177
151
|
--twistie-size: var(--size-400);
|
|
178
152
|
--unsaved-color: var(--color);
|
|
179
153
|
--warning-color: light-dark(oklch(from var(--color-yellow-500) 0.62 c calc(h - 25)), oklch(from var(--color-yellow-500) 0.76 c calc(h - 25)));
|
|
180
154
|
|
|
155
|
+
|
|
181
156
|
// High contrast themes swap every color for the system palette, so the guides take its gray, and its text on hover.
|
|
182
157
|
@media (forced-colors: active) {
|
|
183
158
|
--indicator-color: GrayText;
|
|
@@ -188,6 +163,7 @@ $icons: (
|
|
|
188
163
|
&--indicator {
|
|
189
164
|
--indicator-display: block;
|
|
190
165
|
|
|
166
|
+
|
|
191
167
|
// On the tree rather than the viewport, so the copies standing in for rows mid-motion, laid beside the
|
|
192
168
|
// viewport, brighten and show along with the rest.
|
|
193
169
|
&:hover {
|
|
@@ -198,6 +174,7 @@ $icons: (
|
|
|
198
174
|
&--indicator-hover {
|
|
199
175
|
--indicator-opacity: 0;
|
|
200
176
|
|
|
177
|
+
|
|
201
178
|
&:hover {
|
|
202
179
|
--indicator-opacity: 1;
|
|
203
180
|
}
|
|
@@ -209,7 +186,9 @@ $icons: (
|
|
|
209
186
|
--gap-vertical: calc(var(--size-300) / 2);
|
|
210
187
|
|
|
211
188
|
&-part--staged {
|
|
189
|
+
--border-radius: var(--border-radius-100);
|
|
212
190
|
--padding-horizontal: calc(var(--size-300) / 4);
|
|
191
|
+
--tint: 18%;
|
|
213
192
|
}
|
|
214
193
|
}
|
|
215
194
|
|
|
@@ -218,30 +197,46 @@ $icons: (
|
|
|
218
197
|
--transition-duration: 150ms;
|
|
219
198
|
--transition-timing-function: ease-out;
|
|
220
199
|
|
|
200
|
+
|
|
221
201
|
@media (prefers-reduced-motion: reduce) {
|
|
222
202
|
--transition-duration: 0s;
|
|
223
203
|
}
|
|
224
204
|
}
|
|
225
205
|
|
|
206
|
+
// The label that follows the pointer while dragging, offset so it never covers the row being aimed at.
|
|
226
207
|
&-drag {
|
|
227
208
|
@extend %surface-raise;
|
|
228
|
-
|
|
229
|
-
&--copy {
|
|
230
|
-
--drag-copy-display: block;
|
|
231
|
-
}
|
|
232
|
-
|
|
209
|
+
--border-radius: var(--border-radius-300);
|
|
233
210
|
--gap-horizontal: var(--item-gap-horizontal);
|
|
234
211
|
--gap-vertical: var(--item-gap-horizontal);
|
|
212
|
+
--margin-horizontal: var(--size-300);
|
|
213
|
+
--margin-vertical: var(--size-300);
|
|
235
214
|
--padding-horizontal: var(--size-100);
|
|
236
215
|
--padding-vertical: calc(var(--size-100) / 4);
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
&--copy &-copy {
|
|
219
|
+
--display: block;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
&-copy {
|
|
224
|
+
--display: none;
|
|
225
|
+
}
|
|
237
226
|
}
|
|
238
227
|
|
|
239
228
|
&-empty {
|
|
240
229
|
--gap-horizontal: 0px;
|
|
241
230
|
--gap-vertical: var(--size-200);
|
|
231
|
+
--padding-horizontal: var(--size-400);
|
|
232
|
+
--padding-vertical: var(--size-400);
|
|
242
233
|
}
|
|
243
234
|
|
|
235
|
+
// Over the tree's top corner; the inset keeps it clear of the scrollbar.
|
|
244
236
|
&-find {
|
|
237
|
+
--inset-horizontal: var(--size-300);
|
|
238
|
+
|
|
239
|
+
|
|
245
240
|
&-bar {
|
|
246
241
|
@extend %surface-raise;
|
|
247
242
|
--gap-horizontal: calc(var(--size-100) / 4);
|
|
@@ -261,7 +256,7 @@ $icons: (
|
|
|
261
256
|
--background-hover: inherit;
|
|
262
257
|
--background-pressed: var(--background-hover);
|
|
263
258
|
--border-width: 1px;
|
|
264
|
-
|
|
259
|
+
|
|
265
260
|
|
|
266
261
|
&:disabled {
|
|
267
262
|
--background-hover: var(--background-default);
|
|
@@ -277,9 +272,14 @@ $icons: (
|
|
|
277
272
|
--padding-horizontal: calc(var(--size-100) / 4);
|
|
278
273
|
}
|
|
279
274
|
|
|
275
|
+
&-icon.icon {
|
|
276
|
+
--size: var(--size-300);
|
|
277
|
+
}
|
|
278
|
+
|
|
280
279
|
&-input {
|
|
281
280
|
--border-width: 1px;
|
|
282
281
|
--padding-horizontal: calc(var(--size-300) / 4);
|
|
282
|
+
--width: calc(var(--size-900) * 2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
&-note {
|
|
@@ -288,10 +288,6 @@ $icons: (
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
&-find-icon.icon {
|
|
292
|
-
--size: var(--size-300);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
291
|
// The highlight declares its own defaults, so the tree's values are pulled through explicitly.
|
|
296
292
|
&-highlight {
|
|
297
293
|
--background-active: inherit;
|
|
@@ -306,6 +302,7 @@ $icons: (
|
|
|
306
302
|
&-icon.icon {
|
|
307
303
|
--size: var(--size-400);
|
|
308
304
|
|
|
305
|
+
|
|
309
306
|
@each $icon, $family in $icons {
|
|
310
307
|
&.file-tree-icon--#{$icon} {
|
|
311
308
|
--color: var(
|
|
@@ -324,9 +321,18 @@ $icons: (
|
|
|
324
321
|
--readonly-opacity: 0.6;
|
|
325
322
|
}
|
|
326
323
|
|
|
324
|
+
// The symlink and read-only glyphs beside the name.
|
|
327
325
|
&-marker.icon {
|
|
328
|
-
--color: var(--
|
|
329
|
-
--size: var(--
|
|
326
|
+
--color: var(--color-primary-300);
|
|
327
|
+
--size: var(--size-300);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Characters a fuzzy query matched: heavier, on a faint wash, in whatever color the name's git tone gives it.
|
|
331
|
+
&-match {
|
|
332
|
+
--background: color-mix(in srgb, var(--color-accent-400) 18%, transparent);
|
|
333
|
+
--border-radius: var(--border-radius-100);
|
|
334
|
+
--color: currentColor;
|
|
335
|
+
--font-weight: var(--font-weight-600);
|
|
330
336
|
}
|
|
331
337
|
|
|
332
338
|
// Lines up with the input, past the row's twistie and icon.
|
|
@@ -337,10 +343,12 @@ $icons: (
|
|
|
337
343
|
--padding-vertical: calc(var(--size-100) / 4);
|
|
338
344
|
}
|
|
339
345
|
|
|
340
|
-
// A folder's rows fade in a beat behind the opening, and the guides fade in and out on hover.
|
|
346
|
+
// A folder's rows fade in a beat behind the opening, and the guides fade in and out on hover. Rows being moved, not
|
|
347
|
+
// copied, dim while they travel.
|
|
341
348
|
&-row {
|
|
342
349
|
--border-width: 1px;
|
|
343
|
-
--
|
|
350
|
+
--cut-opacity: 0.5;
|
|
351
|
+
--dragged-opacity: 0.5;
|
|
344
352
|
--gap-horizontal: var(--item-gap-horizontal);
|
|
345
353
|
--gap-vertical: var(--item-gap-horizontal);
|
|
346
354
|
--guide-direction: 1;
|
|
@@ -350,6 +358,7 @@ $icons: (
|
|
|
350
358
|
--reveal-duration: 0.2s;
|
|
351
359
|
--reveal-timing-function: ease-out;
|
|
352
360
|
|
|
361
|
+
|
|
353
362
|
@each $tone in added, conflict, deleted, error, ignored, modified, warning {
|
|
354
363
|
&--#{$tone} {
|
|
355
364
|
--tone: var(--#{$tone}-color);
|
|
@@ -365,16 +374,30 @@ $icons: (
|
|
|
365
374
|
--background-selected: var(--background-active);
|
|
366
375
|
}
|
|
367
376
|
|
|
377
|
+
&--root {
|
|
378
|
+
--font-size: var(--font-size-200);
|
|
379
|
+
--font-weight: var(--font-weight-600);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// How much of the scope's color tints its rows; faint, so git colors and the highlight still read over it.
|
|
383
|
+
&--scope {
|
|
384
|
+
--tint: 12%;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
|
|
368
388
|
&:dir(rtl) {
|
|
369
389
|
--guide-direction: -1;
|
|
370
390
|
}
|
|
371
391
|
}
|
|
372
392
|
|
|
373
393
|
&-segment {
|
|
394
|
+
--border-radius: var(--border-radius-100);
|
|
374
395
|
--border-width: 1px;
|
|
375
396
|
}
|
|
376
397
|
|
|
398
|
+
// The slash between a compact row's folders.
|
|
377
399
|
&-separator {
|
|
400
|
+
--color: var(--color-primary-300);
|
|
378
401
|
--margin-horizontal: 1px;
|
|
379
402
|
}
|
|
380
403
|
|
|
@@ -399,9 +422,17 @@ $icons: (
|
|
|
399
422
|
--padding-vertical: 0px;
|
|
400
423
|
}
|
|
401
424
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
425
|
+
&-tooltip {
|
|
426
|
+
&-meta {
|
|
427
|
+
--color: color-mix(in srgb, currentColor 70%, transparent);
|
|
428
|
+
--font-size: var(--font-size-200);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
// Long paths wrap anywhere rather than run off the screen.
|
|
433
|
+
&.tooltip-shared {
|
|
434
|
+
--white-space: normal;
|
|
435
|
+
}
|
|
405
436
|
}
|
|
406
437
|
|
|
407
438
|
// The viewport holds the pointer for the whole drag, so its cursor is the one that shows; its rows take it too.
|
|
@@ -59,7 +59,7 @@ function pin<T extends Node<T>>(rows: T[], offset: number, size: number, max: nu
|
|
|
59
59
|
// Pins the folders the top rows sit in over the viewport, as VS Code's sticky scroll does; 'limit' caps how many,
|
|
60
60
|
// 'true' being five. Rendered as copies inside the viewport, so the wheel still scrolls over them. 'height' is the
|
|
61
61
|
// rows' height, and the viewport calls 'update' as it scrolls.
|
|
62
|
-
export default <T extends Node<T>>(rows: Reactive<T[]>, limit: boolean | number, template: (row: T) => DocumentFragment | Text, height: () => number) => {
|
|
62
|
+
export default <T extends Node<T>>(rows: Reactive<T[]>, limit: boolean | number, template: (row: T) => DocumentFragment | Element | Text, height: () => number) => {
|
|
63
63
|
let frame = 0,
|
|
64
64
|
max = limit === true ? MAX : limit || 0,
|
|
65
65
|
pinned: Reactive<T[]> = reactive([] as T[]),
|