@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,47 +1,152 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
2
|
@use 'css-utilities/layer';
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
5
|
-
@use '
|
|
6
|
-
@use 'north' as *;
|
|
7
|
-
@use 'shared' as tooltip-shared;
|
|
8
|
-
@use 'south' as *;
|
|
9
|
-
@use 'west' as *;
|
|
3
|
+
@use 'css-utilities/reset';
|
|
4
|
+
@use 'css-utilities/text';
|
|
5
|
+
@use 'sass:map';
|
|
10
6
|
@use 'variables';
|
|
11
7
|
|
|
8
|
+
// Each side pushes the tooltip past the trigger's edge ('edge' names the tooltip side facing the trigger), centered on
|
|
9
|
+
// it along 'center' or aligned to one of its two corners; opening travels '--offset' further out.
|
|
10
|
+
$sides: (
|
|
11
|
+
e: (
|
|
12
|
+
center: bottom,
|
|
13
|
+
corner-open: var(--offset) 0,
|
|
14
|
+
corners: (en: top, es: bottom),
|
|
15
|
+
edge: left,
|
|
16
|
+
open: var(--offset) 50%,
|
|
17
|
+
rest: 0 50%
|
|
18
|
+
),
|
|
19
|
+
n: (
|
|
20
|
+
center: right,
|
|
21
|
+
corner-open: 0 calc(var(--offset) * -1),
|
|
22
|
+
corners: (ne: right, nw: left),
|
|
23
|
+
edge: bottom,
|
|
24
|
+
open: 50% calc(var(--offset) * -1),
|
|
25
|
+
rest: 50% 0
|
|
26
|
+
),
|
|
27
|
+
s: (
|
|
28
|
+
center: right,
|
|
29
|
+
corner-open: 0 var(--offset),
|
|
30
|
+
corners: (se: right, sw: left),
|
|
31
|
+
edge: top,
|
|
32
|
+
open: 50% var(--offset),
|
|
33
|
+
rest: 50% 0
|
|
34
|
+
),
|
|
35
|
+
w: (
|
|
36
|
+
center: bottom,
|
|
37
|
+
corner-open: calc(var(--offset) * -1) 0,
|
|
38
|
+
corners: (wn: top, ws: bottom),
|
|
39
|
+
edge: right,
|
|
40
|
+
open: calc(var(--offset) * -1) 50%,
|
|
41
|
+
rest: 0 50%
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
|
|
12
46
|
.tooltip {
|
|
13
47
|
cursor: pointer;
|
|
14
48
|
position: relative;
|
|
15
49
|
z-index: 0;
|
|
16
50
|
|
|
17
|
-
// Morph tooltips (-2) sit behind the trigger. A child can't paint under its parent's own
|
|
18
|
-
// background, so repaint that background above them; the label still paints on top.
|
|
19
|
-
// Shares '.button::after' (its shadow layer) when the trigger is a button.
|
|
20
|
-
&:has(> .tooltip-content--morph, > .tooltip-message--morph, > :not(.tooltip) > .tooltip-content--morph, > :not(.tooltip) > .tooltip-message--morph)::after {
|
|
21
|
-
@extend %layer;
|
|
22
|
-
background: inherit;
|
|
23
|
-
content: '';
|
|
24
|
-
display: block;
|
|
25
|
-
z-index: -1;
|
|
26
|
-
}
|
|
27
51
|
|
|
28
52
|
&--context,
|
|
29
53
|
&--menu {
|
|
30
54
|
cursor: inherit;
|
|
31
55
|
}
|
|
32
56
|
|
|
33
|
-
//
|
|
34
|
-
//
|
|
57
|
+
// 'tooltip.menu''s layer, which also carries '.tooltip', so an expanding root panel opens as tooltip content does.
|
|
58
|
+
// Qualified by the layer as well, keeping the specificity the panels had under the old wrapper.
|
|
59
|
+
&--menu {
|
|
60
|
+
&.tooltip-menu-layer > .tooltip-menu-panel.tooltip-menu-panel--expand {
|
|
61
|
+
background: transparent;
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
64
|
+
overflow: visible;
|
|
65
|
+
// 'transform', since the placement it composes as tooltip content owns 'translate'.
|
|
66
|
+
transform: translateX(var(--shift-x));
|
|
67
|
+
transition:
|
|
68
|
+
clip-path var(--expand-duration) var(--expand-timing-function),
|
|
69
|
+
opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay);
|
|
70
|
+
|
|
71
|
+
&::before {
|
|
72
|
+
background: var(--background);
|
|
73
|
+
border-radius: var(--morph-radius);
|
|
74
|
+
box-shadow: var(--box-shadow);
|
|
75
|
+
content: '';
|
|
76
|
+
inset: var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);
|
|
77
|
+
position: absolute;
|
|
78
|
+
transition:
|
|
79
|
+
border-radius var(--expand-duration) var(--expand-timing-function),
|
|
80
|
+
inset var(--expand-duration) var(--expand-timing-function);
|
|
81
|
+
z-index: -1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Items animate rather than transition so their own transitions (a link's colour) survive. Their boxes
|
|
85
|
+
// never move, only fade, so a 'highlight' measures them where they land even mid-cascade; it places itself
|
|
86
|
+
// with 'translate', so it arrives with the panel instead. Closing fades them out together; the shrinking
|
|
87
|
+
// shape carries the motion.
|
|
88
|
+
> :not(.highlight) {
|
|
89
|
+
animation: tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);
|
|
90
|
+
opacity: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@include tokens.state(active) {
|
|
94
|
+
clip-path: inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)));
|
|
95
|
+
|
|
96
|
+
&::before {
|
|
97
|
+
border-radius: var(--border-radius);
|
|
98
|
+
inset: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// The reveal is finished; child panels can now extend beyond the root.
|
|
102
|
+
&.tooltip-menu-panel--settled {
|
|
103
|
+
clip-path: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
> :not(.highlight) {
|
|
107
|
+
animation: tooltip-menu-expand-in var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards;
|
|
108
|
+
opacity: 1;
|
|
109
|
+
|
|
110
|
+
// Text-only items and dividers just fade.
|
|
111
|
+
> * {
|
|
112
|
+
animation: tooltip-menu-expand-slide var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Root panel
|
|
119
|
+
&.tooltip-menu-layer > .tooltip-menu-panel:not(.tooltip-menu-panel--expand) {
|
|
120
|
+
left: 0;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
top: calc(100% + var(--offset));
|
|
123
|
+
transition:
|
|
124
|
+
opacity var(--close-duration) var(--close-timing-function),
|
|
125
|
+
visibility 0s linear var(--close-duration);
|
|
126
|
+
translate: var(--shift-x) 0;
|
|
127
|
+
visibility: hidden;
|
|
128
|
+
z-index: 9;
|
|
129
|
+
|
|
130
|
+
// Fades in as quickly as it fades out.
|
|
131
|
+
@include tokens.state(active) {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
transition: opacity var(--close-duration) var(--close-timing-function);
|
|
134
|
+
visibility: visible;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Gooey join between trigger and tooltip while the morph runs; 'morph()' injects the filter and toggles the class.
|
|
35
140
|
&--morphing {
|
|
36
141
|
filter: url(#tooltip-morph-goo);
|
|
37
142
|
}
|
|
38
143
|
|
|
144
|
+
|
|
39
145
|
&-arrow {
|
|
40
|
-
margin-inline: -
|
|
146
|
+
margin-inline: var(--margin-horizontal);
|
|
41
147
|
rotate: var(--rotate);
|
|
42
148
|
}
|
|
43
149
|
|
|
44
|
-
|
|
45
150
|
&-content,
|
|
46
151
|
&-message {
|
|
47
152
|
background: var(--background);
|
|
@@ -60,30 +165,60 @@
|
|
|
60
165
|
z-index: 9;
|
|
61
166
|
|
|
62
167
|
|
|
63
|
-
// Shared With Positioning CSS
|
|
64
168
|
$active: '#{tokens.state(active, ".tooltip")} > &, #{tokens.state(active, ".tooltip")} :not(.tooltip) > &';
|
|
65
169
|
$not-active: '#{tokens.state(inactive, ".tooltip")} > &, #{tokens.state(inactive, ".tooltip")} :not(.tooltip) > &';
|
|
66
170
|
|
|
67
171
|
|
|
68
|
-
// A warm handoff between delayed tooltips ('delay') swaps straight in. Single-class specificity and
|
|
69
|
-
//
|
|
172
|
+
// A warm handoff between delayed tooltips ('delay') swaps straight in. Single-class specificity and ahead of
|
|
173
|
+
// the '--morph' variant, so it keeps its own motion.
|
|
70
174
|
&:where(.tooltip.tooltip--instant > *, .tooltip.tooltip--instant :not(.tooltip) > *) {
|
|
71
175
|
transition: none;
|
|
72
176
|
}
|
|
73
177
|
|
|
178
|
+
|
|
179
|
+
&--c {
|
|
180
|
+
bottom: 50%;
|
|
181
|
+
position: absolute;
|
|
182
|
+
right: 50%;
|
|
183
|
+
transform-origin: center center;
|
|
184
|
+
translate: 50% 50%;
|
|
185
|
+
}
|
|
186
|
+
|
|
74
187
|
&--context {
|
|
75
188
|
position: absolute;
|
|
76
189
|
}
|
|
77
190
|
|
|
78
|
-
@
|
|
79
|
-
|
|
80
|
-
@include north($active);
|
|
81
|
-
@include south($active);
|
|
82
|
-
@include west($active);
|
|
191
|
+
@each $side, $placement in $sides {
|
|
192
|
+
$edge: map.get($placement, edge);
|
|
83
193
|
|
|
194
|
+
&--#{$side} {
|
|
195
|
+
#{map.get($placement, center)}: 50%;
|
|
196
|
+
#{$edge}: calc(100% + var(--spacer) - var(--offset));
|
|
197
|
+
position: absolute;
|
|
198
|
+
transform-origin: center $edge;
|
|
199
|
+
translate: map.get($placement, rest);
|
|
200
|
+
|
|
201
|
+
#{$active} {
|
|
202
|
+
translate: map.get($placement, open);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
84
205
|
|
|
85
|
-
|
|
86
|
-
|
|
206
|
+
@each $corner, $align in map.get($placement, corners) {
|
|
207
|
+
&--#{$corner} {
|
|
208
|
+
#{$align}: 0;
|
|
209
|
+
#{$edge}: calc(100% + var(--spacer) - var(--offset));
|
|
210
|
+
position: absolute;
|
|
211
|
+
transform-origin: $align $edge;
|
|
212
|
+
|
|
213
|
+
#{$active} {
|
|
214
|
+
translate: map.get($placement, corner-open);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Grows out of the trigger: 'morph()' seeds the trigger's box as clip-path insets, then the clip springs out
|
|
221
|
+
// to the tooltip's own box. Content never moves; the shape reveals it.
|
|
87
222
|
&--morph {
|
|
88
223
|
// Closing: collapse onto the trigger, overshoot it as a blob, settle to its exact box.
|
|
89
224
|
animation: tooltip-morph-close var(--morph-close-duration) linear;
|
|
@@ -91,14 +226,13 @@
|
|
|
91
226
|
// The overshooting clip would reveal the shadow around the box mid-spring.
|
|
92
227
|
box-shadow: none;
|
|
93
228
|
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
94
|
-
// Blurs the content. The background layer is one flat colour overhanging the clip by three
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
// rectangle, squaring the corners mid-morph.)
|
|
229
|
+
// Blurs the content. The background layer is one flat colour overhanging the clip by three blur radii, so
|
|
230
|
+
// within the clip only text and media visibly blur; the container stays crisp and flat. (A backdrop-filter
|
|
231
|
+
// overlay instead paints its blur as an unclipped rectangle, squaring the corners mid-morph.)
|
|
98
232
|
filter: blur(var(--morph-blur));
|
|
99
|
-
// Always fully opaque; only blur animates. Visibility hides it at rest instead (behind
|
|
100
|
-
//
|
|
101
|
-
//
|
|
233
|
+
// Always fully opaque; only blur animates. Visibility hides it at rest instead (behind a transparent
|
|
234
|
+
// trigger, or before the first open when there's no clip yet), switching off only once the close has
|
|
235
|
+
// finished.
|
|
102
236
|
opacity: 1;
|
|
103
237
|
// Lets the background layer reach back to the trigger; clip-path does the clipping.
|
|
104
238
|
overflow: visible;
|
|
@@ -109,10 +243,10 @@
|
|
|
109
243
|
// Below the trigger's repainted background, see '.tooltip:has(...)::after'.
|
|
110
244
|
z-index: -2;
|
|
111
245
|
|
|
112
|
-
// Background spanning the tooltip, the trigger and the close's landing overshoot, so the
|
|
113
|
-
//
|
|
114
|
-
//
|
|
115
|
-
//
|
|
246
|
+
// Background spanning the tooltip, the trigger and the close's landing overshoot, so the clip has
|
|
247
|
+
// something to show wherever it goes. It also overhangs every side by three blur radii: the content blur
|
|
248
|
+
// samples past the tooltip's edge, and reading transparency there would soften and lighten the edges until
|
|
249
|
+
// the blur settles. The overhang is clipped away.
|
|
116
250
|
&::before {
|
|
117
251
|
background: var(--background);
|
|
118
252
|
content: '';
|
|
@@ -129,9 +263,9 @@
|
|
|
129
263
|
animation: none;
|
|
130
264
|
clip-path: inset(0 round var(--border-radius));
|
|
131
265
|
filter: none;
|
|
132
|
-
// Visibility isn't transitioned here so the shape shows instantly; it starts hidden
|
|
133
|
-
//
|
|
134
|
-
//
|
|
266
|
+
// Visibility isn't transitioned here so the shape shows instantly; it starts hidden behind the
|
|
267
|
+
// trigger, so there's nothing to fade in. Content starts focusing as it emerges and is sharp as the
|
|
268
|
+
// menu settles.
|
|
135
269
|
transition:
|
|
136
270
|
clip-path var(--morph-open-duration) var(--morph-open-timing-function),
|
|
137
271
|
filter var(--morph-open-duration) var(--morph-focus-timing-function);
|
|
@@ -139,6 +273,7 @@
|
|
|
139
273
|
}
|
|
140
274
|
}
|
|
141
275
|
|
|
276
|
+
|
|
142
277
|
#{$active} {
|
|
143
278
|
opacity: 1;
|
|
144
279
|
scale: 1;
|
|
@@ -151,6 +286,219 @@
|
|
|
151
286
|
}
|
|
152
287
|
}
|
|
153
288
|
|
|
289
|
+
&-menu {
|
|
290
|
+
&-chevron {
|
|
291
|
+
border-color: currentColor;
|
|
292
|
+
border-style: solid;
|
|
293
|
+
border-width: 0 var(--border-width) var(--border-width) 0;
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
height: var(--size);
|
|
296
|
+
margin-inline: var(--margin-horizontal);
|
|
297
|
+
opacity: var(--opacity);
|
|
298
|
+
rotate: var(--rotate);
|
|
299
|
+
transition: rotate var(--transition-duration) var(--transition-timing-function);
|
|
300
|
+
width: var(--size);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&-entry {
|
|
304
|
+
position: relative;
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
// Sub-panels start clipped to the row that opened them, so the row reads as the panel's header, then the
|
|
308
|
+
// clip grows downward.
|
|
309
|
+
> .tooltip-menu-panel {
|
|
310
|
+
clip-path: inset(
|
|
311
|
+
var(--padding-vertical)
|
|
312
|
+
var(--padding-horizontal)
|
|
313
|
+
calc(100% - var(--padding-vertical) - var(--item-height))
|
|
314
|
+
var(--padding-horizontal)
|
|
315
|
+
round var(--item-border-radius)
|
|
316
|
+
);
|
|
317
|
+
inset-inline: calc(var(--padding-horizontal) * -1);
|
|
318
|
+
pointer-events: none;
|
|
319
|
+
top: calc(var(--padding-vertical) * -1);
|
|
320
|
+
transition:
|
|
321
|
+
clip-path var(--close-duration) var(--close-timing-function),
|
|
322
|
+
visibility 0s linear var(--close-duration);
|
|
323
|
+
visibility: hidden;
|
|
324
|
+
width: auto;
|
|
325
|
+
z-index: 2;
|
|
326
|
+
|
|
327
|
+
// Sub-panels snap open and closed; the scrim and title fades keep their timing.
|
|
328
|
+
@media (prefers-reduced-motion: reduce) {
|
|
329
|
+
transition-duration: 0s;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@include tokens.state(active) {
|
|
333
|
+
clip-path: inset(calc(var(--bleed) * -1) round calc(var(--border-radius) + var(--bleed)));
|
|
334
|
+
pointer-events: auto;
|
|
335
|
+
transition: clip-path var(--open-duration) var(--open-timing-function);
|
|
336
|
+
visibility: visible;
|
|
337
|
+
|
|
338
|
+
@media (prefers-reduced-motion: reduce) {
|
|
339
|
+
transition-duration: 0s;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&.tooltip-menu-panel--settled {
|
|
343
|
+
clip-path: none;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
// Above the parent's scrim, so the open child panel stays undimmed.
|
|
350
|
+
&--open {
|
|
351
|
+
z-index: 2;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
// An item's 'hidden' takes its whole row out; the item's own 'display' would outrank the attribute.
|
|
356
|
+
&:has(> [hidden]) {
|
|
357
|
+
display: none;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&-header {
|
|
362
|
+
cursor: pointer;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&-header,
|
|
366
|
+
&-item {
|
|
367
|
+
align-items: center;
|
|
368
|
+
border-radius: var(--border-radius);
|
|
369
|
+
display: flex;
|
|
370
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
371
|
+
min-height: var(--height);
|
|
372
|
+
padding-inline: var(--padding-horizontal);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&-hint {
|
|
376
|
+
color: var(--color);
|
|
377
|
+
font-size: var(--font-size);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
&-icon {
|
|
381
|
+
display: inline-flex;
|
|
382
|
+
flex-shrink: 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&-item {
|
|
386
|
+
appearance: none;
|
|
387
|
+
background: var(--background);
|
|
388
|
+
border: 0;
|
|
389
|
+
color: inherit;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
font: inherit;
|
|
392
|
+
outline: none;
|
|
393
|
+
text-align: start;
|
|
394
|
+
text-decoration: none;
|
|
395
|
+
transition: background var(--transition-duration) var(--transition-timing-function);
|
|
396
|
+
width: 100%;
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
// Doubled so it outranks a class paired onto the item, such as '.link'.
|
|
400
|
+
&.tooltip-menu-item--danger {
|
|
401
|
+
color: var(--color-danger);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
&:disabled,
|
|
406
|
+
&[aria-disabled='true'] {
|
|
407
|
+
color: var(--color-disabled);
|
|
408
|
+
cursor: not-allowed;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
&-label,
|
|
413
|
+
&-title {
|
|
414
|
+
@extend %text-truncate;
|
|
415
|
+
flex: 1;
|
|
416
|
+
min-width: 0;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// The root panel's popover, so an open menu stands above every stacking context around it. Anchored over the
|
|
420
|
+
// trigger's box, so its panels place against it as they would against the trigger; it takes no clicks itself.
|
|
421
|
+
// Qualified so the popover reset outranks the '.tooltip' it also carries.
|
|
422
|
+
&-layer.tooltip {
|
|
423
|
+
@extend %reset-popover;
|
|
424
|
+
height: anchor-size(height);
|
|
425
|
+
left: anchor(left);
|
|
426
|
+
top: anchor(top);
|
|
427
|
+
width: anchor-size(width);
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
> .tooltip-menu-panel {
|
|
431
|
+
pointer-events: auto;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
&-panel {
|
|
436
|
+
background: var(--background);
|
|
437
|
+
border-radius: var(--border-radius);
|
|
438
|
+
box-shadow: var(--box-shadow);
|
|
439
|
+
color: var(--color);
|
|
440
|
+
font-size: var(--font-size);
|
|
441
|
+
isolation: isolate;
|
|
442
|
+
padding-block: var(--padding-vertical);
|
|
443
|
+
padding-inline: var(--padding-horizontal);
|
|
444
|
+
position: absolute;
|
|
445
|
+
width: var(--width);
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
// Scrim over parent panels while a child is open; it also takes clicks meant to pop back here.
|
|
449
|
+
&::after {
|
|
450
|
+
@extend %layer;
|
|
451
|
+
background: var(--scrim);
|
|
452
|
+
content: '';
|
|
453
|
+
opacity: 0;
|
|
454
|
+
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
455
|
+
z-index: 1;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// The highlight writes the row's own rounding to '--border-radius'; rows are measured whole, so the layer
|
|
459
|
+
// takes the items' rounding instead.
|
|
460
|
+
> .highlight {
|
|
461
|
+
border-radius: var(--item-border-radius);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
&--covered::after {
|
|
466
|
+
cursor: pointer;
|
|
467
|
+
opacity: 1;
|
|
468
|
+
pointer-events: auto;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Regular and bold copies of the title are stacked; crossfading them morphs the weight without reflowing the
|
|
473
|
+
// label.
|
|
474
|
+
&-title {
|
|
475
|
+
display: grid;
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
&-bold {
|
|
479
|
+
font-weight: var(--font-weight);
|
|
480
|
+
opacity: var(--title-bold-opacity);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
&-bold,
|
|
484
|
+
&-regular {
|
|
485
|
+
grid-area: 1 / 1;
|
|
486
|
+
overflow: hidden;
|
|
487
|
+
text-overflow: ellipsis;
|
|
488
|
+
transition: opacity var(--open-duration) var(--open-timing-function);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
&-regular {
|
|
492
|
+
opacity: var(--title-regular-opacity);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// A context menu's trigger is the region it opens over, which keeps its own cursor.
|
|
497
|
+
&-trigger:is(button) {
|
|
498
|
+
cursor: pointer;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
154
502
|
&-message {
|
|
155
503
|
color: var(--color);
|
|
156
504
|
cursor: auto;
|
|
@@ -162,11 +510,121 @@
|
|
|
162
510
|
white-space: nowrap;
|
|
163
511
|
}
|
|
164
512
|
|
|
513
|
+
// A popover, so it sits in the top layer; the UA popover styles are undone here. The padding on the anchor side is
|
|
514
|
+
// the gap to the trigger, which also carries the pointer across to interactive content. 'tooltip.shared' sets the
|
|
515
|
+
// '--shared-*' size and position.
|
|
516
|
+
&-shared {
|
|
517
|
+
@extend %reset-popover;
|
|
518
|
+
box-sizing: content-box;
|
|
519
|
+
color: var(--color);
|
|
520
|
+
font-size: var(--font-size);
|
|
521
|
+
font-weight: var(--font-weight);
|
|
522
|
+
height: var(--shared-height);
|
|
523
|
+
left: 0;
|
|
524
|
+
top: 0;
|
|
525
|
+
translate: var(--shared-x) var(--shared-y);
|
|
526
|
+
width: var(--shared-width);
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
@each $side, $padding in (e: left, n: bottom, s: top, w: right) {
|
|
530
|
+
&--#{$side} {
|
|
531
|
+
padding-#{$padding}: var(--spacer);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// Only while moving between triggers; a fresh open appears in place.
|
|
536
|
+
&--gliding {
|
|
537
|
+
transition:
|
|
538
|
+
height var(--glide-duration) var(--glide-timing-function),
|
|
539
|
+
translate var(--glide-duration) var(--glide-timing-function),
|
|
540
|
+
width var(--glide-duration) var(--glide-timing-function);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
&--interactive {
|
|
544
|
+
@include tokens.state(active) {
|
|
545
|
+
pointer-events: auto;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
&-box {
|
|
551
|
+
background: var(--background);
|
|
552
|
+
border-radius: var(--border-radius);
|
|
553
|
+
box-shadow: var(--box-shadow);
|
|
554
|
+
display: block;
|
|
555
|
+
filter: blur(var(--blur));
|
|
556
|
+
height: 100%;
|
|
557
|
+
opacity: 0;
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
position: relative;
|
|
560
|
+
scale: var(--scale);
|
|
561
|
+
transition:
|
|
562
|
+
filter var(--close-duration) var(--close-timing-function),
|
|
563
|
+
opacity var(--close-duration) var(--close-timing-function),
|
|
564
|
+
scale var(--close-duration) var(--close-timing-function),
|
|
565
|
+
translate var(--close-duration) var(--close-timing-function);
|
|
566
|
+
translate: var(--box-translate);
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
// 'none' rather than 'blur(0)', which still keeps an open box in its own filter layer; it interpolates the
|
|
570
|
+
// same.
|
|
571
|
+
#{tokens.state(active, '.tooltip-shared')} > & {
|
|
572
|
+
filter: none;
|
|
573
|
+
opacity: 1;
|
|
574
|
+
scale: 1;
|
|
575
|
+
transition:
|
|
576
|
+
filter var(--open-duration) var(--open-timing-function),
|
|
577
|
+
opacity var(--open-duration) var(--open-timing-function),
|
|
578
|
+
scale var(--open-duration) var(--open-timing-function),
|
|
579
|
+
translate var(--open-duration) var(--open-timing-function);
|
|
580
|
+
translate: 0;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
// A warm handoff from another delayed tooltip swaps straight in. Doubled and after the open state, so it
|
|
584
|
+
// wins there too.
|
|
585
|
+
.tooltip-shared.tooltip-shared--instant > & {
|
|
586
|
+
transition: none;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// A 'frame--swap', centered in the box so the box can resize around it; centering takes 'transform', leaving
|
|
591
|
+
// 'translate' to the frame. 'tooltip.shared' sets '--translate-x' and '--translate-y' to the unit vector of the
|
|
592
|
+
// trip between triggers, so incoming content drifts in along it and outgoing content carries on out the far
|
|
593
|
+
// side.
|
|
594
|
+
&-layer {
|
|
595
|
+
left: 50%;
|
|
596
|
+
max-width: var(--max-width);
|
|
597
|
+
padding-block: var(--padding-vertical);
|
|
598
|
+
padding-inline: var(--padding-horizontal);
|
|
599
|
+
position: absolute;
|
|
600
|
+
top: 50%;
|
|
601
|
+
transform: translate(-50%, -50%);
|
|
602
|
+
white-space: var(--white-space);
|
|
603
|
+
width: max-content;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
&:not(#{&}--gliding) #{&}-layer {
|
|
608
|
+
transition: none;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
// Morph tooltips (-2) sit behind the trigger. A child can't paint under its parent's own background, so repaint
|
|
614
|
+
// that background above them; the label still paints on top. Shares '.button::after' (its shadow layer) when the
|
|
615
|
+
// trigger is a button.
|
|
616
|
+
&:has(> .tooltip-content--morph, > .tooltip-message--morph, > :not(.tooltip) > .tooltip-content--morph, > :not(.tooltip) > .tooltip-message--morph)::after {
|
|
617
|
+
@extend %layer;
|
|
618
|
+
background: inherit;
|
|
619
|
+
content: '';
|
|
620
|
+
display: block;
|
|
621
|
+
z-index: -1;
|
|
622
|
+
}
|
|
623
|
+
|
|
165
624
|
@include tokens.state(active) {
|
|
166
|
-
// Cone from the pointer to the tooltip, computed by 'tooltip.onhover'; other
|
|
167
|
-
//
|
|
168
|
-
//
|
|
169
|
-
// so it never intercepts clicks meant for the tooltip, including morph (-2).
|
|
625
|
+
// Cone from the pointer to the tooltip, computed by 'tooltip.onhover'; other tooltips never set the variables,
|
|
626
|
+
// so the pseudo-element stays empty. clip-path also clips hit-testing, so only the cone keeps it open. Lowest
|
|
627
|
+
// layer so it never intercepts clicks meant for the tooltip, including morph (-2).
|
|
170
628
|
&::before {
|
|
171
629
|
background: var(--safe-color);
|
|
172
630
|
clip-path: var(--safe-area);
|
|
@@ -179,7 +637,7 @@
|
|
|
179
637
|
z-index: -3;
|
|
180
638
|
}
|
|
181
639
|
|
|
182
|
-
//
|
|
640
|
+
// Flips the arrow only while its own tooltip is active.
|
|
183
641
|
:not(.tooltip) .tooltip-arrow,
|
|
184
642
|
> .tooltip-arrow {
|
|
185
643
|
scale: -1 1;
|
|
@@ -192,13 +650,33 @@
|
|
|
192
650
|
}
|
|
193
651
|
|
|
194
652
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
653
|
+
@keyframes tooltip-menu-expand-in {
|
|
654
|
+
from {
|
|
655
|
+
opacity: 0;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
@keyframes tooltip-menu-expand-out {
|
|
660
|
+
from {
|
|
661
|
+
opacity: 1;
|
|
662
|
+
}
|
|
663
|
+
to {
|
|
664
|
+
opacity: 0;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
@keyframes tooltip-menu-expand-slide {
|
|
669
|
+
from {
|
|
670
|
+
translate: var(--expand-shift);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// Shrinks straight onto the trigger (every edge together) until it's a blob '--morph-land' larger than the trigger on
|
|
675
|
+
// every side, holds there, then settles into the trigger's exact box. The hold matters: without it, edges still
|
|
676
|
+
// arriving (the travel differs per direction) overlap with the final shrink, so it never reads as having landed.
|
|
199
677
|
@keyframes tooltip-morph-close {
|
|
200
678
|
0% {
|
|
201
|
-
animation-timing-function:
|
|
679
|
+
animation-timing-function: var(--morph-shrink-timing-function);
|
|
202
680
|
clip-path: inset(0 round var(--border-radius));
|
|
203
681
|
}
|
|
204
682
|
55% {
|
|
@@ -211,7 +689,7 @@
|
|
|
211
689
|
);
|
|
212
690
|
}
|
|
213
691
|
80% {
|
|
214
|
-
animation-timing-function:
|
|
692
|
+
animation-timing-function: var(--morph-settle-timing-function);
|
|
215
693
|
clip-path: inset(
|
|
216
694
|
calc(var(--morph-top) - var(--morph-land))
|
|
217
695
|
calc(var(--morph-right) - var(--morph-land))
|