@esportsplus/ui 0.59.1 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.audit/audit.json +2810 -0
- package/.audit/check-scss.mjs +20 -0
- package/.audit/rules-audit.md +542 -0
- package/README.md +42 -31
- package/RULES.md +115 -0
- package/build/components/accordion/index.d.ts +12 -2175
- package/build/components/accordion/index.js +3 -4
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.js +47 -64
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +6 -4
- package/build/components/button/copy.js +24 -20
- package/build/components/button/faces.d.ts +0 -1
- package/build/components/button/faces.js +5 -6
- package/build/components/button/index.d.ts +3 -7
- package/build/components/button/index.js +3 -5
- package/build/components/button/kbd.d.ts +12 -8
- package/build/components/button/kbd.js +59 -74
- package/build/components/button/morph/index.d.ts +2169 -0
- package/build/components/button/morph/index.js +4 -0
- package/build/components/button/morph/save.d.ts +19 -0
- package/build/components/button/morph/save.js +57 -0
- package/build/components/button/morph/template.d.ts +22 -0
- package/build/components/button/morph/template.js +90 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.js +2 -2
- package/build/components/button/split.d.ts +1 -1
- package/build/components/button/split.js +11 -15
- package/build/components/capslock/index.js +6 -5
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.js +103 -111
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/index.d.ts +6 -0
- package/build/components/chat/index.js +3 -0
- package/build/components/chat/minimap/index.d.ts +52 -0
- package/build/components/chat/minimap/index.js +248 -0
- package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/checkbox/index.js +1 -0
- package/build/components/checkbox/options.d.ts +0 -1
- package/build/components/checkbox/options.js +0 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/index.d.ts +3 -2181
- package/build/components/clipboard/index.js +2 -3
- package/build/components/color-picker/index.d.ts +21 -0
- package/build/components/color-picker/index.js +153 -138
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +6 -93
- package/build/components/command/index.js +4 -601
- package/build/components/command/palette.d.ts +103 -0
- package/build/components/command/palette.js +595 -0
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +37 -0
- package/build/components/command/search.js +67 -0
- package/build/components/counter/index.d.ts +15 -4
- package/build/components/counter/index.js +3 -2
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +24 -5
- package/build/components/dock/index.js +389 -51
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/markdown/index.d.ts +3 -22
- package/build/components/editor/markdown/index.js +3 -30
- package/build/components/editor/markdown/render.js +3 -5
- package/build/components/editor/markdown/template.d.ts +22 -0
- package/build/components/editor/markdown/template.js +30 -0
- package/build/components/editor/tree/find.js +3 -3
- package/build/components/editor/tree/index.d.ts +3 -116
- package/build/components/editor/tree/index.js +3 -2225
- package/build/components/editor/tree/template.d.ts +116 -0
- package/build/components/editor/tree/template.js +2225 -0
- package/build/components/editor/viewer/index.d.ts +3 -26
- package/build/components/editor/viewer/index.js +3 -249
- package/build/components/editor/viewer/template.d.ts +26 -0
- package/build/components/editor/viewer/template.js +249 -0
- package/build/components/editor/workspace/index.d.ts +4 -65
- package/build/components/editor/workspace/index.js +4 -1228
- package/build/components/editor/workspace/model.d.ts +29 -37
- package/build/components/editor/workspace/model.js +186 -155
- package/build/components/editor/workspace/session.d.ts +3 -0
- package/build/components/editor/workspace/session.js +61 -34
- package/build/components/editor/workspace/shortcuts.d.ts +0 -2
- package/build/components/editor/workspace/shortcuts.js +0 -2
- package/build/components/editor/workspace/status.d.ts +4 -5
- package/build/components/editor/workspace/status.js +79 -61
- package/build/components/editor/workspace/statusbar.d.ts +5 -3
- package/build/components/editor/workspace/statusbar.js +66 -80
- package/build/components/editor/workspace/strip.d.ts +1 -2
- package/build/components/editor/workspace/strip.js +4 -3
- package/build/components/editor/workspace/tabs.d.ts +35 -3
- package/build/components/editor/workspace/tabs.js +75 -13
- package/build/components/editor/workspace/template.d.ts +65 -0
- package/build/components/editor/workspace/template.js +1145 -0
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +0 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/index.d.ts +6 -32
- package/build/components/form/index.js +2 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +12 -0
- package/build/components/group/index.js +15 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/heatmap/index.js +10 -32
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +2 -3
- package/build/components/highlight/index.js +79 -78
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +4 -3
- package/build/components/icon/index.js +2 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +3 -16
- package/build/components/image/index.js +2 -2
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +6 -4
- package/build/components/index.js +6 -4
- package/build/components/inline-edit/index.js +5 -4
- package/build/components/inline-edit/rich.js +79 -82
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +4 -3
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.js +84 -67
- package/build/components/json/index.d.ts +4 -3
- package/build/components/json/index.js +2 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.js +74 -71
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/flash.js +12 -11
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/toc.d.ts +8 -13
- package/build/components/nav/toc.js +9 -21
- package/build/components/nav/tree.d.ts +13 -14
- package/build/components/nav/tree.js +32 -19
- package/build/components/notification/index.d.ts +14 -3
- package/build/components/notification/index.js +4 -3
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/cards.d.ts +1 -0
- package/build/components/pagination/cards.js +4 -6
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.d.ts +47 -0
- package/build/components/panels/dnd.js +106 -0
- package/build/components/panels/group.d.ts +35 -0
- package/build/components/panels/group.js +319 -0
- package/build/components/panels/index.d.ts +25 -0
- package/build/components/panels/index.js +520 -0
- package/build/components/panels/model.d.ts +64 -0
- package/build/components/panels/model.js +446 -0
- package/build/components/panels/resize.d.ts +9 -0
- package/build/components/panels/resize.js +87 -0
- package/build/components/panels/scss/index.scss +2 -0
- package/build/components/panels/subtree.d.ts +3 -0
- package/build/components/panels/subtree.js +43 -0
- package/build/components/preview/buttons.d.ts +20 -0
- package/build/components/preview/buttons.js +26 -0
- package/build/components/{copy/index.d.ts → preview/code.d.ts} +3 -9
- package/build/components/preview/code.js +18 -0
- package/build/components/preview/header.d.ts +16 -0
- package/build/components/preview/header.js +18 -0
- package/build/components/preview/index.d.ts +8704 -0
- package/build/components/preview/index.js +123 -0
- package/build/components/preview/scss/index.scss +2 -0
- package/build/components/preview/source.d.ts +21 -0
- package/build/components/preview/source.js +76 -0
- package/build/components/preview/stage.d.ts +16 -0
- package/build/components/preview/stage.js +24 -0
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +9 -11
- package/build/components/radio/index.d.ts +3 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.js +8 -9
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.js +4 -7
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +72 -59
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +22 -0
- package/build/components/shell/index.js +272 -0
- package/build/components/shell/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +2 -3
- package/build/components/shortcut-recorder/index.js +3 -1
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +10 -6
- package/build/components/story/index.js +27 -47
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/index.js +13 -16
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +3 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.js +3 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/index.d.ts +6 -2
- package/build/components/theme/index.js +4 -3
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme-picker/cards.d.ts +13 -0
- package/build/components/theme-picker/cards.js +17 -0
- package/build/components/theme-picker/index.d.ts +9 -49
- package/build/components/theme-picker/index.js +5 -165
- package/build/components/theme-picker/scss/index.scss +1 -1
- package/build/components/theme-picker/shared.d.ts +26 -0
- package/build/components/theme-picker/shared.js +24 -0
- package/build/components/theme-picker/swatches.d.ts +13 -0
- package/build/components/theme-picker/swatches.js +17 -0
- package/build/components/theme-picker/toggle.d.ts +19 -0
- package/build/components/theme-picker/toggle.js +109 -0
- package/build/components/toast/index.js +10 -10
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +2 -0
- package/build/components/tooltip/menu.js +88 -45
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.js +2 -2
- package/build/components/typewriter/rotate.js +7 -16
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.js +26 -33
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/background/scss/index.scss +2 -0
- package/build/modifiers/border/scss/index.scss +2 -0
- package/build/modifiers/box-shadow/scss/index.scss +2 -0
- package/build/modifiers/color/scss/index.scss +2 -0
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.js +1 -1
- package/build/shared/drag.d.ts +2 -1
- package/build/shared/drag.js +4 -3
- package/package.json +5 -5
- package/scripts/code-editor-services.test.mjs +1 -1
- package/scripts/code-editor-workspace.test.mjs +28 -18
- package/scripts/panels.test.mjs +262 -0
- package/scripts/workspace-keybindings.test.mjs +1 -1
- package/scripts/workspace-session.test.mjs +8 -6
- package/scripts/workspace-status.test.mjs +9 -1
- package/scripts/workspace-tabs.test.mjs +5 -5
- package/src/components/accordion/index.ts +11 -8
- package/src/components/accordion/scss/index.scss +15 -15
- package/src/components/accordion/scss/variables.scss +11 -7
- package/src/components/announcement/scss/index.scss +21 -24
- package/src/components/announcement/scss/variables.scss +13 -7
- package/src/components/breadcrumb/index.ts +8 -10
- package/src/components/breadcrumb/scss/index.scss +48 -122
- package/src/components/breadcrumb/scss/variables.scss +73 -55
- package/src/components/button/copy.ts +34 -27
- package/src/components/button/faces.ts +2 -4
- package/src/components/button/index.ts +3 -7
- package/src/components/button/kbd.ts +37 -95
- package/src/components/button/morph/index.ts +6 -0
- package/src/components/button/morph/save.ts +55 -0
- package/src/components/button/morph/template.ts +135 -0
- package/src/components/button/scss/index.scss +218 -99
- package/src/components/button/scss/variables.scss +160 -115
- package/src/components/button/sidebar.ts +6 -6
- package/src/components/button/split.ts +5 -6
- package/src/components/capslock/index.ts +9 -8
- package/src/components/capslock/scss/index.scss +21 -25
- package/src/components/capslock/scss/variables.scss +31 -12
- package/src/components/card/scss/index.scss +9 -24
- package/src/components/card/scss/variables.scss +29 -76
- package/src/components/cc/index.ts +15 -10
- package/src/components/cc/scss/index.scss +110 -153
- package/src/components/cc/scss/variables.scss +231 -44
- package/src/components/chat/index.ts +10 -0
- package/src/components/{chat-minimap → chat/minimap}/index.ts +66 -21
- package/src/components/{chat-minimap → chat/minimap}/scss/index.scss +26 -54
- package/src/components/chat/minimap/scss/variables.scss +178 -0
- package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/options.ts +0 -1
- package/src/components/checkbox/scss/index.scss +25 -31
- package/src/components/checkbox/scss/variables.scss +50 -19
- package/src/components/clipboard/index.ts +4 -3
- package/src/components/color-picker/index.ts +131 -67
- package/src/components/color-picker/scss/index.scss +138 -221
- package/src/components/color-picker/scss/variables.scss +228 -81
- package/src/components/command/index.ts +5 -860
- package/src/components/command/palette.ts +879 -0
- package/src/components/command/scss/index.scss +82 -99
- package/src/components/command/scss/variables.scss +129 -50
- package/src/components/command/search.ts +67 -0
- package/src/components/counter/index.ts +90 -85
- package/src/components/counter/scss/index.scss +32 -41
- package/src/components/counter/scss/variables.scss +44 -16
- package/src/components/datalist/scss/index.scss +25 -25
- package/src/components/datalist/scss/variables.scss +21 -11
- package/src/components/dock/index.ts +505 -42
- package/src/components/dock/scss/index.scss +318 -73
- package/src/components/dock/scss/variables.scss +310 -39
- package/src/components/editor/code/features.ts +0 -1
- package/src/components/editor/code/find.ts +0 -1
- package/src/components/editor/code/keymap.ts +0 -1
- package/src/components/editor/code/scss/_editor.scss +12 -31
- package/src/components/editor/code/scss/_features.scss +12 -45
- package/src/components/editor/code/scss/_services.scss +15 -23
- package/src/components/editor/code/scss/index.scss +1 -1
- package/src/components/editor/code/scss/variables.scss +195 -42
- package/src/components/editor/code/view.ts +0 -1
- package/src/components/editor/diffs/scss/_diffs.scss +24 -77
- package/src/components/editor/diffs/scss/_merge.scss +5 -16
- package/src/components/editor/diffs/scss/index.scss +1 -1
- package/src/components/editor/diffs/scss/variables.scss +148 -11
- package/src/components/editor/markdown/index.ts +3 -67
- package/src/components/editor/markdown/render.ts +3 -6
- package/src/components/editor/markdown/scss/index.scss +30 -48
- package/src/components/editor/markdown/scss/variables.scss +117 -32
- package/src/components/editor/markdown/template.ts +69 -0
- package/src/components/editor/tree/drag.ts +5 -2
- package/src/components/editor/tree/find.ts +5 -4
- package/src/components/editor/tree/index.ts +3 -3434
- package/src/components/editor/tree/scss/index.scss +204 -262
- package/src/components/editor/tree/scss/variables.scss +198 -31
- package/src/components/editor/tree/template.ts +3436 -0
- package/src/components/editor/viewer/index.ts +3 -318
- package/src/components/editor/viewer/scss/_viewer.scss +15 -31
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +56 -14
- package/src/components/editor/viewer/template.ts +321 -0
- package/src/components/editor/workspace/index.ts +4 -1480
- package/src/components/editor/workspace/model.ts +225 -185
- package/src/components/editor/workspace/scss/_keybindings.scss +163 -0
- package/src/components/editor/workspace/scss/{status.scss → _status.scss} +11 -44
- package/src/components/editor/workspace/scss/_tabs.scss +57 -0
- package/src/components/editor/workspace/scss/index.scss +82 -312
- package/src/components/editor/workspace/scss/variables.scss +427 -0
- package/src/components/editor/workspace/session.ts +80 -44
- package/src/components/editor/workspace/shortcuts.ts +0 -2
- package/src/components/editor/workspace/status.ts +110 -80
- package/src/components/editor/workspace/statusbar.ts +38 -35
- package/src/components/editor/workspace/strip.ts +6 -5
- package/src/components/editor/workspace/tabs.ts +115 -15
- package/src/components/editor/workspace/template.ts +1486 -0
- package/src/components/error/index.ts +3 -0
- package/src/components/error/scss/index.scss +34 -65
- package/src/components/error/scss/variables.scss +28 -9
- package/src/components/filter/index.ts +2 -6
- package/src/components/filter/scss/index.scss +9 -2
- package/src/components/filter/scss/variables.scss +6 -6
- package/src/components/form/index.ts +4 -1
- package/src/components/frame/scss/index.scss +31 -42
- package/src/components/frame/scss/variables.scss +25 -18
- package/src/components/grid/scss/index.scss +2 -1
- package/src/components/group/index.ts +24 -0
- package/src/components/group/scss/index.scss +6 -0
- package/src/components/group/scss/variables.scss +4 -0
- package/src/components/heatmap/index.ts +14 -44
- package/src/components/heatmap/scss/index.scss +38 -44
- package/src/components/heatmap/scss/variables.scss +100 -59
- package/src/components/highlight/index.ts +133 -119
- package/src/components/highlight/scss/index.scss +49 -43
- package/src/components/highlight/scss/variables.scss +71 -30
- package/src/components/icon/index.ts +7 -5
- package/src/components/icon/scss/index.scss +7 -2
- package/src/components/icon/scss/variables.scss +2 -0
- package/src/components/image/index.ts +4 -2
- package/src/components/image/scss/index.scss +14 -22
- package/src/components/image/scss/variables.scss +30 -15
- package/src/components/index.ts +6 -4
- package/src/components/inline-edit/index.ts +3 -2
- package/src/components/inline-edit/rich.ts +17 -15
- package/src/components/inline-edit/scss/index.scss +165 -254
- package/src/components/inline-edit/scss/variables.scss +311 -83
- package/src/components/inline-edit/status.ts +2 -1
- package/src/components/input/scrub.ts +1 -1
- package/src/components/input/scss/_field.scss +1 -1
- package/src/components/input/scss/_scrub.scss +14 -25
- package/src/components/input/scss/_tag.scss +26 -46
- package/src/components/input/scss/variables.scss +167 -77
- package/src/components/input/tag.ts +59 -49
- package/src/components/json/index.ts +4 -1
- package/src/components/link/scss/index.scss +1 -4
- package/src/components/link/scss/variables.scss +5 -1
- package/src/components/loading/scss/index.scss +3 -23
- package/src/components/loading/scss/variables.scss +3 -6
- package/src/components/marquee/index.ts +33 -28
- package/src/components/marquee/scss/index.scss +32 -26
- package/src/components/marquee/scss/variables.scss +35 -23
- package/src/components/metric/flash.ts +2 -1
- package/src/components/metric/scss/_flash.scss +125 -145
- package/src/components/metric/scss/index.scss +31 -43
- package/src/components/metric/scss/variables.scss +192 -98
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +46 -49
- package/src/components/nav/scss/variables.scss +61 -64
- package/src/components/nav/spy.ts +2 -0
- package/src/components/nav/toc.ts +11 -31
- package/src/components/nav/tree.ts +56 -24
- package/src/components/notification/index.ts +94 -89
- package/src/components/notification/scss/index.scss +77 -76
- package/src/components/notification/scss/variables.scss +55 -38
- package/src/components/overlay/index.ts +3 -1
- package/src/components/overlay/scss/index.scss +94 -114
- package/src/components/overlay/scss/variables.scss +46 -18
- package/src/components/page/scss/variables.scss +1 -1
- package/src/components/pagination/cards.ts +2 -1
- package/src/components/pagination/scss/index.scss +191 -7
- package/src/components/pagination/scss/variables.scss +112 -36
- package/src/components/panels/dnd.ts +184 -0
- package/src/components/panels/group.ts +437 -0
- package/src/components/panels/index.ts +678 -0
- package/src/components/panels/model.ts +675 -0
- package/src/components/panels/resize.ts +131 -0
- package/src/components/panels/scss/index.scss +394 -0
- package/src/components/panels/scss/variables.scss +197 -0
- package/src/components/panels/subtree.ts +65 -0
- package/src/components/preview/buttons.ts +48 -0
- package/src/components/preview/code.ts +28 -0
- package/src/components/preview/header.ts +23 -0
- package/src/components/preview/index.ts +144 -0
- package/src/components/preview/scss/index.scss +143 -0
- package/src/components/preview/scss/variables.scss +127 -0
- package/src/components/preview/source.ts +73 -0
- package/src/components/preview/stage.ts +33 -0
- package/src/components/progress/scss/index.scss +117 -15
- package/src/components/progress/scss/variables.scss +140 -40
- package/src/components/progress/text.ts +5 -4
- package/src/components/radio/index.ts +2 -4
- package/src/components/range/filter.ts +7 -11
- package/src/components/range/scss/_filter.scss +301 -327
- package/src/components/range/scss/_slider.scss +31 -110
- package/src/components/range/scss/_vertical.scss +8 -20
- package/src/components/range/scss/index.scss +1 -4
- package/src/components/range/scss/variables.scss +374 -70
- package/src/components/relative-time/index.ts +9 -14
- package/src/components/relative-time/scss/index.scss +13 -21
- package/src/components/relative-time/scss/variables.scss +46 -29
- package/src/components/root/scss/index.scss +11 -20
- package/src/components/root/scss/variables.scss +17 -15
- package/src/components/select/index.ts +37 -15
- package/src/components/select/scss/index.scss +24 -51
- package/src/components/select/scss/variables.scss +77 -19
- package/src/components/shell/index.ts +321 -0
- package/src/components/shell/scss/index.scss +214 -0
- package/src/components/shell/scss/variables.scss +89 -0
- package/src/components/shortcut-recorder/index.ts +6 -3
- package/src/components/shortcut-recorder/scss/index.scss +71 -56
- package/src/components/shortcut-recorder/scss/variables.scss +47 -21
- package/src/components/sortable/index.ts +1 -0
- package/src/components/sortable/scss/index.scss +37 -42
- package/src/components/sortable/scss/variables.scss +76 -52
- package/src/components/sticky-header/scss/index.scss +11 -10
- package/src/components/sticky-header/scss/variables.scss +36 -4
- package/src/components/story/index.ts +1 -36
- package/src/components/story/scss/index.scss +22 -98
- package/src/components/story/scss/variables.scss +57 -15
- package/src/components/surface-field/index.ts +18 -20
- package/src/components/surface-field/scss/index.scss +32 -46
- package/src/components/surface-field/scss/variables.scss +92 -23
- package/src/components/switch/index.ts +2 -4
- package/src/components/tasklist/index.ts +8 -2
- package/src/components/tasklist/scss/index.scss +7 -7
- package/src/components/tasklist/scss/variables.scss +18 -13
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/scss/index.scss +9 -7
- package/src/components/textarea/scss/variables.scss +2 -2
- package/src/components/theme/index.ts +12 -4
- package/src/components/theme/scss/index.scss +13 -0
- package/src/components/theme/scss/variables.scss +5 -16
- package/src/components/theme-picker/cards.ts +19 -0
- package/src/components/theme-picker/index.ts +6 -225
- package/src/components/theme-picker/scss/index.scss +77 -167
- package/src/components/theme-picker/scss/variables.scss +220 -0
- package/src/components/theme-picker/shared.ts +54 -0
- package/src/components/theme-picker/swatches.ts +15 -0
- package/src/components/theme-picker/toggle.ts +150 -0
- package/src/components/toast/index.ts +14 -14
- package/src/components/toast/scss/index.scss +130 -155
- package/src/components/toast/scss/variables.scss +89 -52
- package/src/components/tooltip/menu.ts +77 -10
- package/src/components/tooltip/scss/_menu.scss +96 -138
- package/src/components/tooltip/scss/_shared.scss +93 -90
- package/src/components/tooltip/scss/index.scss +52 -54
- package/src/components/tooltip/scss/variables.scss +187 -67
- package/src/components/tooltip/shared.ts +8 -6
- package/src/components/typewriter/rotate.ts +15 -24
- package/src/components/typewriter/scss/index.scss +131 -3
- package/src/components/typewriter/scss/variables.scss +56 -44
- package/src/components/uptime/index.ts +1 -13
- package/src/components/uptime/scss/index.scss +28 -66
- package/src/components/uptime/scss/variables.scss +63 -48
- package/src/components/usage-meter/scss/index.scss +19 -19
- package/src/components/usage-meter/scss/variables.scss +80 -35
- package/src/css-utilities/absolute.scss +54 -52
- package/src/css-utilities/background.scss +22 -24
- package/src/css-utilities/border.scss +21 -21
- package/src/css-utilities/box-shadow.scss +32 -21
- package/src/css-utilities/color.scss +23 -21
- package/src/css-utilities/flex.scss +55 -53
- package/src/css-utilities/group.scss +7 -0
- package/src/css-utilities/hidden.scss +22 -20
- package/src/css-utilities/icon.scss +32 -30
- package/src/css-utilities/layer.scss +10 -10
- package/src/css-utilities/reset.scss +27 -16
- package/src/css-utilities/surface.scss +206 -128
- package/src/css-utilities/text.scss +114 -114
- package/src/modifiers/background/scss/index.scss +1 -0
- package/src/modifiers/background/scss/variables.scss +24 -0
- package/src/modifiers/border/scss/index.scss +1 -0
- package/src/modifiers/border/scss/variables.scss +21 -0
- package/src/modifiers/box-shadow/scss/index.scss +1 -0
- package/src/modifiers/box-shadow/scss/variables.scss +12 -0
- package/src/modifiers/color/scss/index.scss +1 -0
- package/src/modifiers/color/scss/variables.scss +10 -0
- package/src/modifiers/scrollbar/scss/index.scss +3 -2
- package/src/modifiers/scrollbar/scss/variables.scss +4 -3
- package/src/shared/animation.ts +3 -3
- package/src/shared/drag.ts +8 -3
- package/src/tokens/scss/color.scss +53 -37
- package/src/tokens/scss/index.scss +0 -1
- package/src/tokens/scss/state.scss +16 -1
- package/storage/svg/code.svg +1 -1
- package/storage/svg/collapse.svg +1 -0
- package/storage/svg/grid.svg +1 -0
- package/storage/svg/stack.svg +1 -0
- package/build/components/banner/scss/index.scss +0 -2
- package/build/components/button/fan.d.ts +0 -24
- package/build/components/button/fan.js +0 -118
- package/build/components/button/hold.d.ts +0 -31
- package/build/components/button/hold.js +0 -115
- package/build/components/button/icons.d.ts +0 -6
- package/build/components/button/icons.js +0 -35
- package/build/components/button/loading.d.ts +0 -22
- package/build/components/button/loading.js +0 -60
- package/build/components/button/morph.d.ts +0 -22
- package/build/components/button/morph.js +0 -115
- package/build/components/card/expand.d.ts +0 -22
- package/build/components/card/expand.js +0 -118
- package/build/components/card/index.d.ts +0 -6
- package/build/components/card/index.js +0 -4
- package/build/components/chat-minimap/index.d.ts +0 -28
- package/build/components/chat-minimap/index.js +0 -223
- package/build/components/chat-minimap/scss/index.scss +0 -2
- package/build/components/clipboard/copy.d.ts +0 -27
- package/build/components/clipboard/copy.js +0 -48
- package/build/components/copy/index.js +0 -61
- package/build/components/copy/scss/index.scss +0 -2
- package/build/components/highlight/easing.d.ts +0 -2
- package/build/components/highlight/easing.js +0 -19
- package/build/components/pull-to-refresh/index.d.ts +0 -18
- package/build/components/pull-to-refresh/index.js +0 -222
- package/build/components/pull-to-refresh/scss/index.scss +0 -2
- package/src/components/banner/scss/index.scss +0 -37
- package/src/components/banner/scss/variables.scss +0 -16
- package/src/components/button/fan.ts +0 -170
- package/src/components/button/hold.ts +0 -154
- package/src/components/button/icons.ts +0 -21
- package/src/components/button/loading.ts +0 -77
- package/src/components/button/morph.ts +0 -153
- package/src/components/button/scss/_fan.scss +0 -121
- package/src/components/button/scss/_kbd.scss +0 -11
- package/src/components/button/scss/_morph.scss +0 -107
- package/src/components/button/scss/_sidebar.scss +0 -61
- package/src/components/button/scss/_split.scss +0 -53
- package/src/components/card/expand.ts +0 -141
- package/src/components/card/index.ts +0 -8
- package/src/components/card/scss/_expand.scss +0 -234
- package/src/components/chat-minimap/scss/variables.scss +0 -97
- package/src/components/clipboard/copy.ts +0 -49
- package/src/components/copy/index.ts +0 -69
- package/src/components/copy/scss/index.scss +0 -52
- package/src/components/copy/scss/variables.scss +0 -19
- package/src/components/editor/workspace/scss/keybindings.scss +0 -190
- package/src/components/editor/workspace/scss/tabs.scss +0 -56
- package/src/components/highlight/easing.ts +0 -33
- package/src/components/pagination/scss/_arrows.scss +0 -69
- package/src/components/pagination/scss/_cards.scss +0 -121
- package/src/components/pagination/scss/_dots.scss +0 -64
- package/src/components/progress/scss/_text.scss +0 -135
- package/src/components/pull-to-refresh/index.ts +0 -316
- package/src/components/pull-to-refresh/scss/index.scss +0 -128
- package/src/components/pull-to-refresh/scss/variables.scss +0 -38
- package/src/components/typewriter/scss/_caret.scss +0 -34
- package/src/components/typewriter/scss/_retype.scss +0 -68
- package/src/components/typewriter/scss/_rotate.scss +0 -29
- package/src/tokens/scss/transition.scss +0 -21
- /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
- /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
.typewriter {
|
|
2
|
+
&,
|
|
3
|
+
&-retype {
|
|
4
|
+
--caret: '';
|
|
5
|
+
--caret-align: -0.18em;
|
|
6
|
+
--caret-background: var(--caret-color);
|
|
7
|
+
--caret-color: currentColor;
|
|
8
|
+
--caret-duration: 1.06s;
|
|
9
|
+
--caret-height: 1.1em;
|
|
10
|
+
--caret-offset: calc(var(--size-100) / 4);
|
|
11
|
+
--caret-radius: 999px;
|
|
12
|
+
--caret-timing-function: linear;
|
|
13
|
+
--caret-width: 2px;
|
|
14
|
+
|
|
15
|
+
&--block {
|
|
16
|
+
--caret-align: bottom;
|
|
17
|
+
--caret-height: 1lh;
|
|
18
|
+
--caret-offset: 0.08em;
|
|
19
|
+
--caret-radius: 0;
|
|
20
|
+
--caret-width: 0.56em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--hard {
|
|
24
|
+
--caret-duration: 1s;
|
|
25
|
+
--caret-timing-function: steps(1, end);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--underscore {
|
|
29
|
+
--caret: '_';
|
|
30
|
+
--caret-align: baseline;
|
|
31
|
+
--caret-background: transparent;
|
|
32
|
+
--caret-height: auto;
|
|
33
|
+
--caret-offset: 0.04em;
|
|
34
|
+
--caret-radius: 0;
|
|
35
|
+
--caret-width: auto;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
2
39
|
&-retype {
|
|
3
|
-
--ease-out: var(--easing-out);
|
|
4
40
|
--ink-blur: var(--blur-300);
|
|
5
|
-
--ink-duration:
|
|
41
|
+
--ink-duration: 140ms;
|
|
42
|
+
--ink-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
6
43
|
// Read by JS: each key's delay, a base plus up to the jitter, which lands around 8 to 14 keys a second, the pace
|
|
7
44
|
// of someone who knows the word.
|
|
8
45
|
--key-duration: 62ms;
|
|
9
46
|
--key-jitter-duration: 64ms;
|
|
10
47
|
--select-duration: 220ms;
|
|
48
|
+
--select-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
11
49
|
--selection-color: oklch(from var(--color-primary-500) l c h / 0.15);
|
|
12
50
|
--selection-radius: 3px;
|
|
13
51
|
|
|
@@ -19,13 +57,24 @@
|
|
|
19
57
|
}
|
|
20
58
|
}
|
|
21
59
|
|
|
60
|
+
// Read by JS, which animates the letters. Entering letters wait a beat for the leaving ones to clear the space, then
|
|
61
|
+
// cascade in left to right; leaving letters are gone before the glide lands, so the eye follows the letters that stay
|
|
62
|
+
// rather than the ones that go. The glide is how the letters a swap keeps travel to their new places, and the width
|
|
63
|
+
// with them. Shared letters can travel most of a word across, so they get longer than a typical UI tween; any
|
|
64
|
+
// shorter and it reads as a jump.
|
|
22
65
|
&-rotate {
|
|
66
|
+
--blur: 4px;
|
|
23
67
|
--color: inherit;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
68
|
+
--enter-delay: 90ms;
|
|
69
|
+
--enter-duration: 320ms;
|
|
70
|
+
--enter-offset: 0.4em;
|
|
71
|
+
--enter-stagger: 28ms;
|
|
72
|
+
--enter-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
73
|
+
--exit-duration: 200ms;
|
|
74
|
+
--exit-offset: -0.35em;
|
|
75
|
+
--exit-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
27
76
|
--glide-duration: 440ms;
|
|
28
|
-
--glide-
|
|
77
|
+
--glide-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
29
78
|
|
|
30
79
|
// A swap is a plain crossfade.
|
|
31
80
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -36,41 +85,4 @@
|
|
|
36
85
|
--color: var(--color-blue-400);
|
|
37
86
|
}
|
|
38
87
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.typewriter,
|
|
42
|
-
.typewriter-retype {
|
|
43
|
-
--caret: '';
|
|
44
|
-
--caret-align: -0.18em;
|
|
45
|
-
--caret-background: var(--caret-color);
|
|
46
|
-
--caret-color: currentColor;
|
|
47
|
-
--caret-duration: 1.06s;
|
|
48
|
-
--caret-height: 1.1em;
|
|
49
|
-
--caret-offset: calc(var(--size-100) / 4);
|
|
50
|
-
--caret-radius: 999px;
|
|
51
|
-
--caret-timing-function: linear;
|
|
52
|
-
--caret-width: 2px;
|
|
53
|
-
|
|
54
|
-
&--block {
|
|
55
|
-
--caret-align: bottom;
|
|
56
|
-
--caret-height: 1lh;
|
|
57
|
-
--caret-offset: 0.08em;
|
|
58
|
-
--caret-radius: 0;
|
|
59
|
-
--caret-width: 0.56em;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&--hard {
|
|
63
|
-
--caret-duration: 1s;
|
|
64
|
-
--caret-timing-function: steps(1, end);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&--underscore {
|
|
68
|
-
--caret: '_';
|
|
69
|
-
--caret-align: baseline;
|
|
70
|
-
--caret-background: transparent;
|
|
71
|
-
--caret-height: auto;
|
|
72
|
-
--caret-offset: 0.04em;
|
|
73
|
-
--caret-radius: 0;
|
|
74
|
-
--caret-width: auto;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
88
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { batch, computed, effect, reactive, read, signal, write } from '@esportsplus/reactivity';
|
|
2
2
|
import { html, type Attributes } from '@esportsplus/template';
|
|
3
3
|
import { observeSize } from '~/shared/resize';
|
|
4
|
-
import tooltip from '~/components/tooltip';
|
|
5
4
|
import './scss/index.scss';
|
|
6
5
|
|
|
7
6
|
|
|
@@ -146,18 +145,7 @@ const uptime = ({ services, state: api = reactive({ day: -1, row: -1 }), ...attr
|
|
|
146
145
|
return html`
|
|
147
146
|
<div class='uptime-service'>
|
|
148
147
|
<div class='uptime-service-header'>
|
|
149
|
-
<span class='uptime-service-name'>
|
|
150
|
-
<span class='uptime-service-label'>${service.name}</span>
|
|
151
|
-
|
|
152
|
-
${tooltip.onhover(
|
|
153
|
-
{ class: `uptime-service-status uptime-service-status--${status}` },
|
|
154
|
-
html`
|
|
155
|
-
<span aria-hidden='true' class='uptime-service-tooltip tooltip-message tooltip-message--e tooltip-message--morph'>
|
|
156
|
-
${STATUS[status]}
|
|
157
|
-
</span>
|
|
158
|
-
`
|
|
159
|
-
)}
|
|
160
|
-
</span>
|
|
148
|
+
<span class='uptime-service-name'>${service.name}</span>
|
|
161
149
|
|
|
162
150
|
<span class='uptime-service-caption'>
|
|
163
151
|
${() => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use '/tokens';
|
|
2
1
|
@use 'css-utilities/hidden';
|
|
3
2
|
@use 'variables';
|
|
4
3
|
|
|
@@ -7,41 +6,36 @@
|
|
|
7
6
|
display: flex;
|
|
8
7
|
flex-direction: column;
|
|
9
8
|
font-size: var(--font-size);
|
|
10
|
-
gap: var(--
|
|
9
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
11
10
|
position: relative;
|
|
12
11
|
width: var(--width);
|
|
13
12
|
|
|
14
13
|
// Whole-pixel ticks: flex-sharing fractional widths lets pixel snapping round some bars a pixel wider than
|
|
15
14
|
// the rest. The leftover width spreads through the gaps instead.
|
|
16
15
|
&-bar {
|
|
17
|
-
background: var(--
|
|
18
|
-
border-radius: var(--
|
|
16
|
+
background: var(--background);
|
|
17
|
+
border-radius: var(--border-radius);
|
|
19
18
|
flex-shrink: 0;
|
|
20
|
-
opacity: var(--
|
|
19
|
+
opacity: var(--opacity);
|
|
20
|
+
scale: 1 var(--scale);
|
|
21
21
|
transition:
|
|
22
|
-
opacity var(--transition-duration) var(--timing-function),
|
|
23
|
-
scale var(--transition-duration) var(--timing-function);
|
|
24
|
-
width: round(down, (100% - (var(--days) - 1) * var(--
|
|
22
|
+
opacity var(--transition-duration) var(--transition-timing-function),
|
|
23
|
+
scale var(--transition-duration) var(--transition-timing-function);
|
|
24
|
+
width: round(down, (100% - (var(--days) - 1) * var(--gap-horizontal)) / var(--days), 1px);
|
|
25
25
|
|
|
26
|
-
@
|
|
27
|
-
|
|
28
|
-
scale: 1 var(--bar-active-scale);
|
|
26
|
+
@media (prefers-reduced-motion: reduce) {
|
|
27
|
+
transition: none;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
&-bars {
|
|
33
|
-
border-radius: var(--border-radius
|
|
32
|
+
border-radius: var(--border-radius);
|
|
34
33
|
cursor: default;
|
|
35
34
|
display: flex;
|
|
36
|
-
height: var(--
|
|
35
|
+
height: var(--height);
|
|
37
36
|
justify-content: space-between;
|
|
38
37
|
outline: none;
|
|
39
38
|
|
|
40
|
-
// A highlighted row dims every bar but the selected one.
|
|
41
|
-
@include tokens.state(active) {
|
|
42
|
-
--bar-opacity: var(--bar-dim);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
39
|
&:focus-visible {
|
|
46
40
|
outline: 2px solid var(--color);
|
|
47
41
|
outline-offset: calc(var(--size-100) / 2);
|
|
@@ -56,8 +50,8 @@
|
|
|
56
50
|
align-items: center;
|
|
57
51
|
color: var(--color-muted);
|
|
58
52
|
display: flex;
|
|
59
|
-
gap: var(--
|
|
60
|
-
margin-top: var(--
|
|
53
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
54
|
+
margin-top: var(--margin-top);
|
|
61
55
|
white-space: nowrap;
|
|
62
56
|
}
|
|
63
57
|
|
|
@@ -65,7 +59,7 @@
|
|
|
65
59
|
align-items: center;
|
|
66
60
|
color: var(--color-muted);
|
|
67
61
|
display: flex;
|
|
68
|
-
gap: var(--
|
|
62
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
69
63
|
justify-content: flex-end;
|
|
70
64
|
min-width: 0;
|
|
71
65
|
}
|
|
@@ -83,29 +77,25 @@
|
|
|
83
77
|
&-service-header {
|
|
84
78
|
align-items: center;
|
|
85
79
|
display: flex;
|
|
86
|
-
gap: var(--
|
|
87
|
-
height: var(--
|
|
80
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
81
|
+
height: var(--height);
|
|
88
82
|
justify-content: space-between;
|
|
89
|
-
margin-bottom: var(--
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Same cut-out as 'image--status', anchored top right: the mask punches a ring out of the text, and
|
|
93
|
-
// the status dot, a sibling so the mask can't clip its tooltip, sits in the hole.
|
|
94
|
-
&-service-label {
|
|
95
|
-
display: block;
|
|
96
|
-
mask-clip: no-clip;
|
|
97
|
-
mask-image: var(--status-mask);
|
|
83
|
+
margin-bottom: var(--margin-bottom);
|
|
98
84
|
}
|
|
99
85
|
|
|
100
86
|
// Each caption change mounts a fresh node, so the entry animation replays per swap.
|
|
101
87
|
&-service-message {
|
|
102
|
-
animation: uptime-
|
|
88
|
+
animation: uptime-service-message var(--enter-duration) var(--enter-timing-function);
|
|
103
89
|
font-variant-numeric: tabular-nums;
|
|
104
90
|
min-width: 0;
|
|
105
91
|
overflow: hidden;
|
|
106
92
|
text-overflow: ellipsis;
|
|
107
93
|
white-space: nowrap;
|
|
108
94
|
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
animation: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
109
99
|
&--active {
|
|
110
100
|
color: var(--color);
|
|
111
101
|
}
|
|
@@ -129,55 +119,27 @@
|
|
|
129
119
|
&-service-name {
|
|
130
120
|
flex-shrink: 0;
|
|
131
121
|
font-weight: var(--font-weight-500);
|
|
132
|
-
position: relative;
|
|
133
122
|
}
|
|
134
123
|
|
|
135
124
|
&-service-percentage {
|
|
136
125
|
align-items: center;
|
|
137
126
|
display: flex;
|
|
138
127
|
flex: 1;
|
|
139
|
-
gap: var(--
|
|
128
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
140
129
|
|
|
141
130
|
&::after,
|
|
142
131
|
&::before {
|
|
143
|
-
border-top:
|
|
132
|
+
border-top: var(--line-width) dotted var(--line-color);
|
|
144
133
|
content: '';
|
|
145
134
|
flex: 1;
|
|
146
135
|
}
|
|
147
136
|
}
|
|
148
|
-
|
|
149
|
-
// Qualified twice so it beats the reused tooltip's own cursor and position. The morph grows out of the dot's
|
|
150
|
-
// box and seeds its corners from the radius, so the radius is in pixels: a percentage would squash the start.
|
|
151
|
-
&-service-status.tooltip {
|
|
152
|
-
background: var(--status-color);
|
|
153
|
-
border-radius: calc(var(--status-size) / 2);
|
|
154
|
-
cursor: default;
|
|
155
|
-
height: var(--status-size);
|
|
156
|
-
position: absolute;
|
|
157
|
-
right: var(--status-right);
|
|
158
|
-
top: var(--status-top);
|
|
159
|
-
width: var(--status-size);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@media (prefers-reduced-motion: reduce) {
|
|
163
|
-
&-bar {
|
|
164
|
-
transition: none;
|
|
165
|
-
|
|
166
|
-
@include tokens.state(active) {
|
|
167
|
-
scale: none;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&-service-message {
|
|
172
|
-
animation: none;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
137
|
}
|
|
176
138
|
|
|
177
|
-
@keyframes uptime-
|
|
139
|
+
@keyframes uptime-service-message {
|
|
178
140
|
from {
|
|
179
|
-
filter: blur(var(--
|
|
141
|
+
filter: blur(var(--blur));
|
|
180
142
|
opacity: 0;
|
|
181
|
-
translate: 0 var(--
|
|
143
|
+
translate: 0 var(--offset);
|
|
182
144
|
}
|
|
183
145
|
}
|
|
@@ -1,84 +1,99 @@
|
|
|
1
|
+
@use '/tokens';
|
|
2
|
+
|
|
1
3
|
.uptime {
|
|
2
|
-
--axis-gap: var(--size-300);
|
|
3
|
-
--axis-line-color: color-mix(in oklch, var(--color-muted) 40%, transparent);
|
|
4
|
-
--bar-active-scale: 1.15;
|
|
5
|
-
--bar-border-radius: var(--border-radius-100);
|
|
6
|
-
--bar-dim: 0.35;
|
|
7
|
-
--bar-gap: calc(var(--size-300) / 4);
|
|
8
|
-
--bar-height: var(--size-600);
|
|
9
|
-
--bar-opacity: 1;
|
|
10
|
-
--caption-blur: var(--blur-400);
|
|
11
|
-
--caption-offset: calc(var(--size-100) / 2);
|
|
12
4
|
--color: var(--color-text-400);
|
|
13
5
|
--color-degraded: oklch(0.8 0.15 78);
|
|
14
6
|
--color-muted: var(--color-text-300);
|
|
15
7
|
// Healthy days stay low-chroma so months of calm don't shout; incidents keep their strength.
|
|
16
8
|
--color-ok: oklch(0.8 0.09 160);
|
|
17
9
|
--color-outage: oklch(0.64 0.2 25);
|
|
18
|
-
--dot-size: 6px;
|
|
19
10
|
--font-size: var(--font-size-300);
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--transition-duration: var(--duration-fast);
|
|
11
|
+
--gap-horizontal: var(--size-600);
|
|
12
|
+
--gap-vertical: var(--size-600);
|
|
23
13
|
--width: min(440px, 100%);
|
|
24
14
|
|
|
25
15
|
&-bar {
|
|
26
|
-
--
|
|
16
|
+
--background: var(--color-ok);
|
|
17
|
+
--border-radius: var(--border-radius-100);
|
|
18
|
+
// The space between bars, which each bar's width leaves room for.
|
|
19
|
+
--gap-horizontal: calc(var(--size-300) / 4);
|
|
20
|
+
--opacity: 1;
|
|
21
|
+
--scale: 1;
|
|
22
|
+
--transition-duration: 0.2s;
|
|
23
|
+
--transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
27
24
|
|
|
28
25
|
&--degraded {
|
|
29
|
-
--
|
|
26
|
+
--background: var(--color-degraded);
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
&--outage {
|
|
33
|
-
--
|
|
30
|
+
--background: var(--color-outage);
|
|
34
31
|
}
|
|
35
|
-
}
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
--dot: var(--color-degraded);
|
|
40
|
-
}
|
|
33
|
+
@include tokens.state(active) {
|
|
34
|
+
--scale: 1.15;
|
|
41
35
|
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
@media (prefers-reduced-motion: reduce) {
|
|
37
|
+
--scale: 1;
|
|
38
|
+
}
|
|
44
39
|
}
|
|
40
|
+
}
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
&-bars {
|
|
43
|
+
--border-radius: var(--border-radius-200);
|
|
44
|
+
--height: var(--size-600);
|
|
45
|
+
|
|
46
|
+
// A highlighted row dims every bar but the selected one.
|
|
47
|
+
@include tokens.state(active) {
|
|
48
|
+
> .uptime-bar:not(.--active) {
|
|
49
|
+
--opacity: 0.35;
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
circle at calc(100% - var(--status-right) - var(--status-size) / 2) calc(var(--status-top) + var(--status-size) / 2),
|
|
56
|
-
#000 calc(var(--status-size) / 2 - 0.5px),
|
|
57
|
-
transparent calc(var(--status-size) / 2 + 0.5px) calc(var(--status-size) / 2 + var(--status-gap) - 0.5px),
|
|
58
|
-
#000 calc(var(--status-size) / 2 + var(--status-gap) + 0.5px)
|
|
59
|
-
);
|
|
60
|
-
--status-right: calc((var(--status-size) + 2px) * -1);
|
|
61
|
-
--status-size: 6px;
|
|
62
|
-
--status-top: 0px;
|
|
54
|
+
&-service-axis {
|
|
55
|
+
--gap-horizontal: var(--size-300);
|
|
56
|
+
--gap-vertical: var(--size-300);
|
|
57
|
+
--margin-top: var(--size-300);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
&-service-
|
|
66
|
-
--
|
|
60
|
+
&-service-caption {
|
|
61
|
+
--gap-horizontal: var(--size-200);
|
|
62
|
+
--gap-vertical: 0px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-service-header {
|
|
66
|
+
--gap-horizontal: var(--size-400);
|
|
67
|
+
--gap-vertical: 0px;
|
|
68
|
+
--height: var(--size-500);
|
|
69
|
+
--margin-bottom: var(--size-300);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// The entrance each caption swap replays.
|
|
73
|
+
&-service-message {
|
|
74
|
+
--blur: var(--blur-400);
|
|
75
|
+
--dot-size: 6px;
|
|
76
|
+
--enter-duration: 0.2s;
|
|
77
|
+
--enter-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
78
|
+
--offset: calc(var(--size-100) / 2);
|
|
67
79
|
|
|
68
80
|
&--degraded {
|
|
69
|
-
--
|
|
81
|
+
--dot: var(--color-degraded);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--ok {
|
|
85
|
+
--dot: var(--color-ok);
|
|
70
86
|
}
|
|
71
87
|
|
|
72
88
|
&--outage {
|
|
73
|
-
--
|
|
89
|
+
--dot: var(--color-outage);
|
|
74
90
|
}
|
|
75
91
|
}
|
|
76
92
|
|
|
77
|
-
&-service-
|
|
78
|
-
--
|
|
79
|
-
--
|
|
80
|
-
--color: var(--
|
|
81
|
-
--
|
|
82
|
-
--padding-vertical: calc(var(--size-100) / 2);
|
|
93
|
+
&-service-percentage {
|
|
94
|
+
--gap-horizontal: var(--size-300);
|
|
95
|
+
--gap-vertical: var(--size-300);
|
|
96
|
+
--line-color: var(--surface-border-default);
|
|
97
|
+
--line-width: 1px;
|
|
83
98
|
}
|
|
84
99
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.usage-meter {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
gap: var(--gap);
|
|
8
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
9
9
|
max-width: var(--max-width);
|
|
10
10
|
width: 100%;
|
|
11
11
|
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
&-breakdown,
|
|
28
28
|
&-label,
|
|
29
29
|
&-percent {
|
|
30
|
-
display: var(--
|
|
30
|
+
display: var(--display);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&-cost::before {
|
|
34
|
-
content: var(--
|
|
34
|
+
content: var(--prefix);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&-count {
|
|
38
|
-
color: var(--
|
|
39
|
-
font-size: var(--
|
|
38
|
+
color: var(--color);
|
|
39
|
+
font-size: var(--font-size);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// Full width and slid in from the left, so it moves on the compositor instead of re-laying out
|
|
43
43
|
&-fill {
|
|
44
|
-
background: var(--
|
|
44
|
+
background: var(--background);
|
|
45
45
|
border-radius: inherit;
|
|
46
46
|
display: block;
|
|
47
47
|
height: 100%;
|
|
@@ -53,32 +53,32 @@
|
|
|
53
53
|
|
|
54
54
|
&-footer {
|
|
55
55
|
align-items: center;
|
|
56
|
-
color: var(--
|
|
57
|
-
display: var(--
|
|
58
|
-
font-size: var(--
|
|
56
|
+
color: var(--color);
|
|
57
|
+
display: var(--display);
|
|
58
|
+
font-size: var(--font-size);
|
|
59
59
|
justify-content: space-between;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&-header {
|
|
63
63
|
align-items: baseline;
|
|
64
|
-
display: var(--
|
|
65
|
-
gap: var(--
|
|
64
|
+
display: var(--display);
|
|
65
|
+
gap: var(--gap-vertical) var(--gap-horizontal);
|
|
66
66
|
justify-content: space-between;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&-label {
|
|
70
|
-
color: var(--
|
|
71
|
-
font-size: var(--
|
|
72
|
-
font-weight: var(--
|
|
70
|
+
color: var(--color);
|
|
71
|
+
font-size: var(--font-size);
|
|
72
|
+
font-weight: var(--font-weight);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&-track {
|
|
76
|
-
background: var(--
|
|
77
|
-
border-radius:
|
|
76
|
+
background: var(--background);
|
|
77
|
+
border-radius: var(--border-radius);
|
|
78
78
|
flex: 0 0 auto;
|
|
79
|
-
height: var(--
|
|
80
|
-
order: var(--
|
|
79
|
+
height: var(--height);
|
|
80
|
+
order: var(--order);
|
|
81
81
|
overflow: hidden;
|
|
82
|
-
width: var(--
|
|
82
|
+
width: var(--width);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -1,51 +1,96 @@
|
|
|
1
1
|
@use '/tokens';
|
|
2
2
|
|
|
3
3
|
.usage-meter {
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--fill: var(--fill-normal);
|
|
7
|
-
--fill-critical: color-mix(in oklch, var(--color-red-400) 80%, transparent);
|
|
8
|
-
--fill-normal: var(--color-primary-500);
|
|
9
|
-
--fill-warning: color-mix(in oklch, var(--color-yellow-500) 80%, transparent);
|
|
10
|
-
--gap: var(--size-200);
|
|
11
|
-
--label-color: var(--color-text-500);
|
|
12
|
-
--label-font-size: var(--font-size-200);
|
|
13
|
-
--label-font-weight: var(--font-weight-500);
|
|
4
|
+
--gap-horizontal: var(--size-200);
|
|
5
|
+
--gap-vertical: var(--size-200);
|
|
14
6
|
--max-width: 380px;
|
|
15
|
-
--meta-color: var(--color-text-300);
|
|
16
|
-
--meta-color-muted: color-mix(in oklch, var(--color-primary-300) 70%, transparent);
|
|
17
|
-
--meta-font-size: var(--font-size-100);
|
|
18
|
-
--row-display: flex;
|
|
19
|
-
--track-background: var(--surface-border-default);
|
|
20
|
-
--track-height: 6px;
|
|
21
|
-
--track-order: 0;
|
|
22
|
-
--track-width: 100%;
|
|
23
|
-
--transition-duration: 500ms;
|
|
24
|
-
--transition-timing-function: var(--easing-out);
|
|
25
7
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
--fill: var(--fill-critical);
|
|
8
|
+
&--critical &-fill {
|
|
9
|
+
--background: color-mix(in oklch, var(--color-red-400) 80%, transparent);
|
|
29
10
|
}
|
|
30
11
|
|
|
31
12
|
// One row: track, count, cost; the footer and header wrappers dissolve so their children join it
|
|
32
13
|
&--inline {
|
|
33
|
-
--
|
|
34
|
-
--
|
|
35
|
-
--gap: var(--size-300);
|
|
14
|
+
--gap-horizontal: var(--size-300);
|
|
15
|
+
--gap-vertical: var(--size-300);
|
|
36
16
|
--max-width: none;
|
|
37
|
-
--row-display: contents;
|
|
38
|
-
--track-background: var(--surface-border-hover);
|
|
39
|
-
--track-height: 4px;
|
|
40
|
-
--track-order: -1;
|
|
41
|
-
--track-width: 64px;
|
|
42
17
|
}
|
|
43
18
|
|
|
44
|
-
&--
|
|
45
|
-
|
|
19
|
+
&--inline &-breakdown,
|
|
20
|
+
&--inline &-label,
|
|
21
|
+
&--inline &-percent {
|
|
22
|
+
--display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--inline &-cost {
|
|
26
|
+
--prefix: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--inline &-footer,
|
|
30
|
+
&--inline &-header {
|
|
31
|
+
--display: contents;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--inline &-track {
|
|
35
|
+
--background: var(--surface-border-hover);
|
|
36
|
+
--height: 4px;
|
|
37
|
+
--order: -1;
|
|
38
|
+
--width: 64px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--warning &-fill {
|
|
42
|
+
--background: color-mix(in oklch, var(--color-yellow-500) 80%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
&-breakdown,
|
|
47
|
+
&-percent {
|
|
48
|
+
--display: inline;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-cost {
|
|
52
|
+
--prefix: '≈ ';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-count {
|
|
56
|
+
--color: var(--color-text-300);
|
|
57
|
+
--font-size: var(--font-size-200);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-fill {
|
|
61
|
+
--background: var(--color-primary-500);
|
|
62
|
+
--transition-duration: 500ms;
|
|
63
|
+
--transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
--transition-duration: 0ms;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-footer {
|
|
71
|
+
--color: color-mix(in oklch, var(--color-primary-300) 70%, transparent);
|
|
72
|
+
--display: flex;
|
|
73
|
+
--font-size: var(--font-size-200);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-header {
|
|
77
|
+
--display: flex;
|
|
78
|
+
--gap-horizontal: var(--size-300);
|
|
79
|
+
--gap-vertical: 0px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-label {
|
|
83
|
+
--color: var(--color-text-500);
|
|
84
|
+
--display: inline;
|
|
85
|
+
--font-size: var(--font-size-200);
|
|
86
|
+
--font-weight: var(--font-weight-500);
|
|
46
87
|
}
|
|
47
88
|
|
|
48
|
-
|
|
49
|
-
--
|
|
89
|
+
&-track {
|
|
90
|
+
--background: var(--surface-border-default);
|
|
91
|
+
--border-radius: 999px;
|
|
92
|
+
--height: 6px;
|
|
93
|
+
--order: 0;
|
|
94
|
+
--width: 100%;
|
|
50
95
|
}
|
|
51
96
|
}
|