@esportsplus/ui 0.63.0 → 0.64.1
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 +2 -2
- package/.audit/rules-audit.md +2 -2
- package/README.md +15 -18
- package/RULES.md +80 -9
- package/bin/agent-cli +300 -0
- package/build/components/accordion/index.d.ts +4 -0
- package/build/components/accordion/index.js +13 -10
- package/build/components/breadcrumb/index.d.ts +1 -0
- package/build/components/breadcrumb/index.js +43 -37
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/kbd.d.ts +1 -1
- package/build/components/button/kbd.js +17 -15
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/split.js +14 -16
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/chat/minimap/index.js +4 -5
- package/build/components/checkbox/group.d.ts +1 -0
- package/build/components/checkbox/group.js +21 -20
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.js +6 -6
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +1 -1
- package/build/components/command/palette.d.ts +13 -9
- package/build/components/command/palette.js +143 -152
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +5 -7
- package/build/components/command/search.js +6 -26
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/editor/code/commands.js +1 -1
- package/build/components/editor/code/document.d.ts +1 -3
- package/build/components/editor/code/document.js +1 -1
- package/build/components/editor/code/editor.d.ts +18 -6
- package/build/components/editor/code/editor.js +9 -7
- package/build/components/editor/code/features.js +27 -18
- package/build/components/editor/code/find.d.ts +1 -1
- package/build/components/editor/code/find.js +5 -6
- package/build/components/editor/code/folding.d.ts +3 -5
- package/build/components/editor/code/folding.js +2 -15
- package/build/components/editor/code/gutter.js +2 -2
- package/build/components/editor/code/index.d.ts +1 -0
- package/build/components/editor/code/index.js +1 -0
- package/build/components/editor/code/minimap.d.ts +3 -1
- package/build/components/editor/code/minimap.js +31 -5
- package/build/components/editor/code/services/model.js +2 -1
- package/build/components/editor/code/syntax.js +2 -1
- package/build/components/editor/code/view.d.ts +8 -2
- package/build/components/editor/code/view.js +37 -56
- package/build/components/editor/diffs/index.d.ts +1 -0
- package/build/components/editor/diffs/index.js +1 -0
- package/build/components/editor/diffs/merge.js +16 -17
- package/build/components/editor/diffs/view.js +10 -11
- package/build/components/editor/markdown/editing.d.ts +2 -1
- package/build/components/editor/markdown/editing.js +14 -5
- package/build/components/editor/markdown/format.d.ts +1 -1
- package/build/components/editor/markdown/format.js +116 -26
- package/build/components/editor/markdown/layout.js +2 -1
- package/build/components/editor/markdown/model.d.ts +1 -2
- package/build/components/editor/markdown/model.js +1 -29
- package/build/components/editor/markdown/render.js +1 -1
- package/build/components/editor/markdown/template.d.ts +3 -10
- package/build/components/editor/markdown/template.js +2 -29
- package/build/components/editor/markdown/toolbar.d.ts +2 -2
- package/build/components/editor/markdown/toolbar.js +90 -126
- package/build/components/editor/markdown/view.d.ts +1 -1
- package/build/components/editor/markdown/view.js +54 -87
- package/build/components/editor/tree/drag.js +1 -1
- package/build/components/editor/tree/find.js +70 -64
- package/build/components/editor/tree/template.js +8 -7
- package/build/components/editor/viewer/model.d.ts +1 -1
- package/build/components/editor/viewer/template.js +4 -26
- package/build/components/editor/workspace/keybindings.d.ts +1 -1
- package/build/components/editor/workspace/model.d.ts +12 -2
- package/build/components/editor/workspace/model.js +87 -31
- package/build/components/editor/workspace/session.d.ts +2 -6
- package/build/components/editor/workspace/session.js +99 -16
- package/build/components/editor/workspace/status.d.ts +1 -1
- package/build/components/editor/workspace/strip.d.ts +10 -9
- package/build/components/editor/workspace/strip.js +99 -141
- package/build/components/editor/workspace/tabs.d.ts +2 -4
- package/build/components/editor/workspace/tabs.js +1 -14
- package/build/components/editor/workspace/template.d.ts +1 -1
- package/build/components/editor/workspace/template.js +305 -435
- package/build/components/error/index.d.ts +4 -13
- package/build/components/error/index.js +53 -172
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/form/action.d.ts +2 -2
- package/build/components/form/action.js +2 -2
- package/build/components/form/input.d.ts +3 -3
- package/build/components/form/input.js +32 -10
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/group/index.js +96 -9
- package/build/components/group/scss/index.scss +1 -1
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.js +55 -48
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +3 -6
- package/build/components/index.js +3 -6
- package/build/components/inline-edit/index.d.ts +2 -2
- package/build/components/inline-edit/index.js +5 -5
- package/build/components/inline-edit/rich.js +4 -4
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +1 -0
- package/build/components/input/index.d.ts +4 -0
- package/build/components/input/index.js +3 -1
- package/build/components/input/otp.d.ts +18 -0
- package/build/components/input/otp.js +112 -0
- package/build/components/input/password.d.ts +15 -0
- package/build/components/input/password.js +163 -0
- package/build/components/input/scrub.d.ts +1 -0
- package/build/components/input/scrub.js +103 -89
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +5 -0
- package/build/components/input/tag.js +116 -69
- package/build/components/json/download.js +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/marquee/index.js +1 -1
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/tree.d.ts +2 -1
- package/build/components/nav/tree.js +6 -5
- package/build/components/notification/index.js +3 -3
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/popup.d.ts +2 -2
- package/build/components/overlay/popup.js +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/pagination/arrows.js +2 -3
- package/build/components/pagination/cards.js +2 -3
- package/build/components/pagination/index.d.ts +2 -3
- package/build/components/pagination/index.js +18 -13
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/progress/index.js +1 -1
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +3 -3
- package/build/components/range/filter.d.ts +7 -1
- package/build/components/range/filter.js +188 -171
- package/build/components/range/index.d.ts +14 -9
- package/build/components/range/index.js +11 -8
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/range/surface.d.ts +21 -0
- package/build/components/range/surface.js +144 -0
- package/build/components/relative-time/index.js +2 -2
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/{preview/header.d.ts → search/button.d.ts} +3 -3
- package/build/components/search/button.js +18 -0
- package/build/components/search/index.d.ts +8 -0
- package/build/components/search/index.js +5 -0
- package/build/components/search/input.d.ts +9 -0
- package/build/components/search/input.js +23 -0
- package/build/components/search/parts.d.ts +5 -0
- package/build/components/search/parts.js +17 -0
- package/build/components/search/scss/index.scss +2 -0
- package/build/components/select/expand.js +4 -5
- package/build/components/select/index.d.ts +7 -7
- package/build/components/select/index.js +127 -117
- package/build/components/select/placement.js +8 -1
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/{panels → shell}/group.d.ts +21 -5
- package/build/components/shell/group.js +336 -0
- package/build/components/shell/index.d.ts +15 -17
- package/build/components/shell/index.js +583 -238
- package/build/components/shell/model.d.ts +94 -0
- package/build/components/{panels → shell}/model.js +199 -73
- package/build/components/shell/resize.d.ts +5 -0
- package/build/components/{panels → shell}/resize.js +54 -30
- package/build/components/shell/scss/index.scss +1 -1
- package/build/components/shell/sidebar.d.ts +34 -0
- package/build/components/shell/sidebar.js +362 -0
- package/build/components/{panels → shell}/subtree.js +7 -8
- package/build/components/shortcut-recorder/index.d.ts +5 -4
- package/build/components/shortcut-recorder/index.js +69 -44
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +16 -2
- package/build/components/sortable/index.js +237 -134
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/story/index.js +46 -34
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/engine.d.ts +2 -0
- package/build/components/surface-field/engine.js +86 -33
- package/build/components/surface-field/index.d.ts +26 -4
- package/build/components/surface-field/index.js +35 -4
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +13 -1
- package/build/components/surface-field/surface.js +149 -58
- package/build/components/tasklist/index.d.ts +1 -4
- package/build/components/tasklist/index.js +36 -43
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +14 -14
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme/shared.d.ts +1 -2
- package/build/components/theme/shared.js +2 -5
- package/build/components/toast/index.d.ts +3 -3
- package/build/components/toast/index.js +3 -3
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/toolbar/index.d.ts +91 -0
- package/build/components/toolbar/index.js +1281 -0
- package/build/components/toolbar/scss/index.scss +2 -0
- package/build/components/tooltip/menu.d.ts +9 -8
- package/build/components/tooltip/menu.js +397 -279
- package/build/components/tooltip/onclick.d.ts +2 -0
- package/build/components/tooltip/onclick.js +13 -4
- package/build/components/tooltip/onhover.d.ts +3 -1
- package/build/components/tooltip/onhover.js +10 -9
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +4 -4
- package/build/components/tooltip/shared.js +27 -46
- package/build/components/tooltip/utilities.d.ts +5 -2
- package/build/components/tooltip/utilities.js +169 -9
- package/build/components/typewriter/rotate.js +6 -6
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.js +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/css-utilities/font/montserrat/OFL.txt +93 -0
- package/build/shared/drag.d.ts +15 -9
- package/build/shared/drag.js +41 -28
- package/build/shared/placement.d.ts +39 -0
- package/build/shared/placement.js +55 -0
- package/build/shared/transition.js +1 -1
- package/build/shared/viewport.d.ts +1 -2
- package/build/shared/viewport.js +1 -4
- package/package.json +2 -5
- package/src/components/accordion/index.ts +12 -5
- package/src/components/announcement/index.ts +1 -1
- package/src/components/breadcrumb/index.ts +13 -3
- package/src/components/breadcrumb/scss/index.scss +6 -6
- package/src/components/breadcrumb/scss/variables.scss +7 -0
- package/src/components/button/kbd.ts +22 -17
- package/src/components/button/scss/index.scss +69 -76
- package/src/components/button/scss/variables.scss +51 -18
- package/src/components/button/split.ts +12 -8
- package/src/components/capslock/index.ts +2 -0
- package/src/components/capslock/scss/index.scss +21 -21
- package/src/components/card/scss/index.scss +16 -0
- package/src/components/card/scss/variables.scss +25 -2
- package/src/components/chat/minimap/index.ts +5 -6
- package/src/components/chat/minimap/scss/index.scss +12 -11
- package/src/components/chat/minimap/scss/variables.scss +23 -17
- package/src/components/checkbox/group.ts +8 -7
- package/src/components/checkbox/scss/index.scss +59 -35
- package/src/components/checkbox/scss/variables.scss +24 -17
- package/src/components/color-picker/index.ts +6 -6
- package/src/components/color-picker/scss/index.scss +35 -22
- package/src/components/color-picker/scss/variables.scss +11 -3
- package/src/components/command/index.ts +1 -1
- package/src/components/command/palette.ts +174 -166
- package/src/components/command/scss/index.scss +18 -51
- package/src/components/command/scss/variables.scss +37 -71
- package/src/components/command/search.ts +9 -31
- package/src/components/counter/index.ts +22 -22
- package/src/components/counter/scss/variables.scss +10 -7
- package/src/components/editor/code/commands.ts +1 -1
- package/src/components/editor/code/document.ts +0 -2
- package/src/components/editor/code/editor.ts +31 -13
- package/src/components/editor/code/features.ts +39 -24
- package/src/components/editor/code/find.ts +5 -6
- package/src/components/editor/code/folding.ts +3 -21
- package/src/components/editor/code/gutter.ts +2 -2
- package/src/components/editor/code/index.ts +1 -0
- package/src/components/editor/code/minimap.ts +39 -5
- package/src/components/editor/code/scss/_editor.scss +28 -21
- package/src/components/editor/code/scss/_features.scss +19 -21
- package/src/components/editor/code/scss/_services.scss +14 -11
- package/src/components/editor/code/scss/variables.scss +31 -12
- package/src/components/editor/code/services/model.ts +2 -1
- package/src/components/editor/code/syntax.ts +2 -1
- package/src/components/editor/code/view.ts +22 -45
- package/src/components/editor/diffs/index.ts +1 -0
- package/src/components/editor/diffs/merge.ts +9 -10
- package/src/components/editor/diffs/scss/_diffs.scss +39 -63
- package/src/components/editor/diffs/scss/_merge.scss +10 -2
- package/src/components/editor/diffs/scss/index.scss +0 -1
- package/src/components/editor/diffs/scss/variables.scss +36 -17
- package/src/components/editor/diffs/view.ts +8 -9
- package/src/components/editor/markdown/editing.ts +18 -6
- package/src/components/editor/markdown/format.ts +180 -32
- package/src/components/editor/markdown/layout.ts +2 -1
- package/src/components/editor/markdown/model.ts +0 -38
- package/src/components/editor/markdown/render.ts +1 -1
- package/src/components/editor/markdown/scss/index.scss +38 -52
- package/src/components/editor/markdown/scss/variables.scss +24 -50
- package/src/components/editor/markdown/template.ts +3 -63
- package/src/components/editor/markdown/toolbar.ts +76 -127
- package/src/components/editor/markdown/view.ts +9 -32
- package/src/components/editor/tree/drag.ts +1 -1
- package/src/components/editor/tree/find.ts +61 -64
- package/src/components/editor/tree/scss/index.scss +29 -30
- package/src/components/editor/tree/scss/variables.scss +34 -15
- package/src/components/editor/tree/template.ts +9 -9
- package/src/components/editor/viewer/model.ts +1 -1
- package/src/components/editor/viewer/scss/_viewer.scss +4 -5
- package/src/components/editor/viewer/scss/variables.scss +3 -3
- package/src/components/editor/viewer/template.ts +4 -31
- package/src/components/editor/workspace/keybindings.ts +1 -1
- package/src/components/editor/workspace/model.ts +136 -37
- package/src/components/editor/workspace/scss/_keybindings.scss +3 -20
- package/src/components/editor/workspace/scss/_status.scss +0 -1
- package/src/components/editor/workspace/scss/_tabs.scss +2 -41
- package/src/components/editor/workspace/scss/index.scss +49 -71
- package/src/components/editor/workspace/scss/variables.scss +1 -135
- package/src/components/editor/workspace/session.ts +138 -18
- package/src/components/editor/workspace/status.ts +1 -1
- package/src/components/editor/workspace/strip.ts +96 -115
- package/src/components/editor/workspace/tabs.ts +2 -23
- package/src/components/editor/workspace/template.ts +323 -458
- package/src/components/error/index.ts +47 -183
- package/src/components/error/scss/index.scss +34 -35
- package/src/components/error/scss/variables.scss +14 -26
- package/src/components/filter/scss/index.scss +6 -5
- package/src/components/form/action.ts +7 -7
- package/src/components/form/input.ts +25 -12
- package/src/components/frame/scss/index.scss +5 -5
- package/src/components/group/index.ts +77 -2
- package/src/components/group/scss/index.scss +164 -0
- package/src/components/group/scss/variables.scss +110 -2
- package/src/components/heatmap/scss/variables.scss +13 -10
- package/src/components/highlight/index.ts +87 -79
- package/src/components/highlight/scss/index.scss +6 -16
- package/src/components/highlight/scss/variables.scss +33 -5
- package/src/components/icon/scss/index.scss +2 -2
- package/src/components/icon/scss/variables.scss +14 -1
- package/src/components/image/scss/index.scss +9 -9
- package/src/components/image/scss/variables.scss +1 -1
- package/src/components/index.ts +3 -6
- package/src/components/inline-edit/index.ts +8 -6
- package/src/components/inline-edit/rich.ts +8 -8
- package/src/components/inline-edit/scss/index.scss +50 -36
- package/src/components/inline-edit/scss/variables.scss +28 -18
- package/src/components/inline-edit/status.ts +2 -0
- package/src/components/input/index.ts +3 -1
- package/src/components/input/otp.ts +175 -0
- package/src/components/input/password.ts +178 -0
- package/src/components/input/scrub.ts +197 -178
- package/src/components/input/scss/index.scss +344 -4
- package/src/components/input/scss/variables.scss +234 -65
- package/src/components/input/tag.ts +98 -53
- package/src/components/json/download.ts +2 -5
- package/src/components/link/scss/index.scss +3 -5
- package/src/components/loading/scss/index.scss +1 -0
- package/src/components/loading/scss/variables.scss +1 -0
- package/src/components/marquee/index.ts +1 -1
- package/src/components/marquee/scss/index.scss +11 -4
- package/src/components/nav/scss/index.scss +10 -26
- package/src/components/nav/scss/variables.scss +13 -23
- package/src/components/nav/tree.ts +10 -8
- package/src/components/notification/index.ts +3 -3
- package/src/components/notification/scss/index.scss +7 -14
- package/src/components/notification/scss/variables.scss +10 -2
- package/src/components/number/index.ts +1 -1
- package/src/components/overlay/popup.ts +2 -2
- package/src/components/overlay/scss/index.scss +60 -51
- package/src/components/page/scss/variables.scss +1 -0
- package/src/components/pagination/arrows.ts +2 -3
- package/src/components/pagination/cards.ts +2 -3
- package/src/components/pagination/index.ts +11 -9
- package/src/components/pagination/scss/index.scss +38 -101
- package/src/components/pagination/scss/variables.scss +24 -75
- package/src/components/progress/index.ts +1 -1
- package/src/components/progress/scss/index.scss +22 -11
- package/src/components/progress/scss/variables.scss +13 -5
- package/src/components/progress/text.ts +3 -3
- package/src/components/range/filter.ts +249 -246
- package/src/components/range/index.ts +22 -7
- package/src/components/range/scss/index.scss +470 -15
- package/src/components/range/scss/variables.scss +402 -198
- package/src/components/range/surface.ts +135 -0
- package/src/components/relative-time/index.ts +2 -2
- package/src/components/relative-time/scss/index.scss +4 -2
- package/src/components/relative-time/scss/variables.scss +4 -5
- package/src/components/root/scss/index.scss +11 -11
- package/src/components/root/scss/variables.scss +4 -4
- package/src/components/search/button.ts +24 -0
- package/src/components/search/index.ts +12 -0
- package/src/components/search/input.ts +35 -0
- package/src/components/search/parts.ts +24 -0
- package/src/components/search/scss/index.scss +36 -0
- package/src/components/search/scss/variables.scss +67 -0
- package/src/components/section/scss/variables.scss +1 -0
- package/src/components/select/expand.ts +3 -4
- package/src/components/select/index.ts +55 -41
- package/src/components/select/placement.ts +17 -1
- package/src/components/select/scss/index.scss +57 -29
- package/src/components/select/scss/variables.scss +91 -53
- package/src/components/{panels → shell}/group.ts +151 -98
- package/src/components/shell/index.ts +805 -284
- package/src/components/{panels → shell}/model.ts +329 -102
- package/src/components/shell/resize.ts +176 -0
- package/src/components/shell/scss/index.scss +502 -89
- package/src/components/shell/scss/variables.scss +264 -39
- package/src/components/shell/sidebar.ts +325 -0
- package/src/components/{panels → shell}/subtree.ts +1 -2
- package/src/components/shortcut-recorder/index.ts +99 -61
- package/src/components/shortcut-recorder/scss/index.scss +76 -52
- package/src/components/shortcut-recorder/scss/variables.scss +25 -30
- package/src/components/sortable/index.ts +364 -63
- package/src/components/sortable/scss/index.scss +22 -2
- package/src/components/sortable/scss/variables.scss +16 -4
- package/src/components/story/index.ts +56 -33
- package/src/components/story/scss/index.scss +67 -16
- package/src/components/story/scss/variables.scss +59 -18
- package/src/components/surface-field/engine.ts +157 -61
- package/src/components/surface-field/index.ts +64 -9
- package/src/components/surface-field/scss/index.scss +88 -77
- package/src/components/surface-field/scss/variables.scss +84 -36
- package/src/components/surface-field/surface.ts +225 -76
- package/src/components/tasklist/index.ts +10 -14
- package/src/components/tasklist/scss/index.scss +25 -45
- package/src/components/tasklist/scss/variables.scss +12 -29
- package/src/components/textarea/index.ts +39 -42
- package/src/components/theme/reveal.ts +1 -0
- package/src/components/theme/scss/index.scss +20 -16
- package/src/components/theme/scss/variables.scss +11 -5
- package/src/components/theme/shared.ts +3 -7
- package/src/components/toast/index.ts +7 -8
- package/src/components/toast/scss/index.scss +44 -36
- package/src/components/toast/scss/variables.scss +36 -33
- package/src/components/toolbar/index.ts +1675 -0
- package/src/components/toolbar/scss/index.scss +759 -0
- package/src/components/toolbar/scss/variables.scss +555 -0
- package/src/components/tooltip/menu.ts +301 -220
- package/src/components/tooltip/onclick.ts +18 -3
- package/src/components/tooltip/onhover.ts +13 -9
- package/src/components/tooltip/scss/index.scss +155 -188
- package/src/components/tooltip/scss/variables.scss +151 -135
- package/src/components/tooltip/shared.ts +47 -74
- package/src/components/tooltip/utilities.ts +151 -10
- package/src/components/truncate/index.ts +1 -1
- package/src/components/typewriter/rotate.ts +6 -6
- package/src/components/typewriter/scss/index.scss +14 -5
- package/src/components/uptime/scss/index.scss +8 -15
- package/src/components/uptime/scss/variables.scss +12 -1
- package/src/components/usage-meter/index.ts +1 -1
- package/src/components/usage-meter/scss/index.scss +6 -4
- package/src/components/usage-meter/scss/variables.scss +11 -11
- package/src/css-utilities/box-shadow.scss +0 -1
- package/src/css-utilities/icon.scss +9 -9
- package/src/css-utilities/surface.scss +27 -17
- package/src/modifiers/glass/index.ts +2 -2
- package/src/modifiers/glass/scss/index.scss +2 -2
- package/src/normalize/scss/index.scss +1 -1
- package/src/shared/drag.ts +92 -53
- package/src/shared/placement.ts +145 -0
- package/src/shared/transition.ts +1 -1
- package/src/shared/viewport.ts +1 -7
- package/src/tokens/scss/color.scss +2 -2
- package/src/tokens/scss/scale.scss +5 -1
- package/src/tokens/scss/size.scss +0 -7
- package/storage/svg/angle.svg +1 -0
- package/storage/svg/{chevron-left.svg → arrow.svg} +1 -1
- package/storage/svg/calendar.svg +1 -0
- package/storage/svg/circle-filled.svg +1 -0
- package/storage/svg/cursor-arrow-left.svg +1 -0
- package/storage/svg/cursor-arrow-right.svg +1 -0
- package/storage/svg/fit.svg +1 -0
- package/storage/svg/grip.svg +1 -0
- package/storage/svg/mail.svg +1 -0
- package/storage/svg/{chevron-down.svg → minus.svg} +1 -1
- package/storage/svg/music.svg +1 -0
- package/storage/svg/{chevron-up.svg → rotate-ccw.svg} +1 -1
- package/vite.config.ts +9 -13
- package/NOTICE +0 -232
- package/build/components/dock/index.d.ts +0 -47
- package/build/components/dock/index.js +0 -469
- package/build/components/dock/scss/index.scss +0 -2
- package/build/components/metric/flash.d.ts +0 -12
- package/build/components/metric/flash.js +0 -117
- package/build/components/metric/index.d.ts +0 -44
- package/build/components/metric/index.js +0 -275
- package/build/components/metric/scss/index.scss +0 -2
- package/build/components/pagination/dots.d.ts +0 -23
- package/build/components/pagination/dots.js +0 -115
- package/build/components/panels/dnd.d.ts +0 -47
- package/build/components/panels/dnd.js +0 -114
- package/build/components/panels/group.js +0 -322
- package/build/components/panels/index.d.ts +0 -17
- package/build/components/panels/index.js +0 -524
- package/build/components/panels/model.d.ts +0 -64
- package/build/components/panels/resize.d.ts +0 -9
- package/build/components/panels/scss/index.scss +0 -2
- package/build/components/preview/buttons.d.ts +0 -12
- package/build/components/preview/buttons.js +0 -26
- package/build/components/preview/code.d.ts +0 -8
- package/build/components/preview/code.js +0 -18
- package/build/components/preview/header.js +0 -21
- package/build/components/preview/index.d.ts +0 -37
- package/build/components/preview/index.js +0 -123
- package/build/components/preview/scss/index.scss +0 -2
- package/build/components/preview/source.d.ts +0 -12
- package/build/components/preview/source.js +0 -79
- package/build/components/preview/stage.d.ts +0 -8
- package/build/components/preview/stage.js +0 -28
- package/build/components/textarea/scss/index.scss +0 -2
- package/src/components/dock/index.ts +0 -567
- package/src/components/dock/scss/index.scss +0 -346
- package/src/components/dock/scss/variables.scss +0 -357
- package/src/components/input/scss/_field.scss +0 -39
- package/src/components/input/scss/_scrub.scss +0 -89
- package/src/components/input/scss/_tag.scss +0 -142
- package/src/components/metric/flash.ts +0 -129
- package/src/components/metric/index.ts +0 -307
- package/src/components/metric/scss/_flash.scss +0 -150
- package/src/components/metric/scss/index.scss +0 -155
- package/src/components/metric/scss/variables.scss +0 -233
- package/src/components/pagination/dots.ts +0 -132
- package/src/components/panels/dnd.ts +0 -190
- package/src/components/panels/index.ts +0 -676
- package/src/components/panels/resize.ts +0 -157
- package/src/components/panels/scss/index.scss +0 -379
- package/src/components/panels/scss/variables.scss +0 -197
- package/src/components/preview/buttons.ts +0 -48
- package/src/components/preview/code.ts +0 -28
- package/src/components/preview/header.ts +0 -23
- package/src/components/preview/index.ts +0 -149
- package/src/components/preview/scss/index.scss +0 -158
- package/src/components/preview/scss/variables.scss +0 -149
- package/src/components/preview/source.ts +0 -73
- package/src/components/preview/stage.ts +0 -33
- package/src/components/range/scss/_filter.scss +0 -360
- package/src/components/range/scss/_slider.scss +0 -65
- package/src/components/range/scss/_vertical.scss +0 -10
- package/src/components/textarea/scss/index.scss +0 -72
- package/src/components/textarea/scss/variables.scss +0 -22
- package/storage/svg/amex.svg +0 -1
- package/storage/svg/arrow-down.svg +0 -1
- package/storage/svg/arrow-left.svg +0 -1
- package/storage/svg/arrow-right.svg +0 -1
- package/storage/svg/arrow-up.svg +0 -1
- package/storage/svg/card.svg +0 -1
- package/storage/svg/chip.svg +0 -1
- package/storage/svg/discover.svg +0 -1
- package/storage/svg/mastercard.svg +0 -1
- package/storage/svg/visa.svg +0 -1
- /package/build/components/{panels → shell}/subtree.d.ts +0 -0
- /package/storage/svg/{chevron-right.svg → chevron.svg} +0 -0
|
@@ -1,9 +1,92 @@
|
|
|
1
1
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
-
import { root } from '@esportsplus/reactivity';
|
|
2
|
+
import { flush, root } from '@esportsplus/reactivity';
|
|
3
3
|
import * as template_u1 from '@esportsplus/template';
|
|
4
4
|
import { render, setProperties } from '@esportsplus/template';
|
|
5
|
-
|
|
5
|
+
import { expand, margin, place } from '../../shared/placement.js';
|
|
6
|
+
import { viewport } from '../../shared/viewport.js';
|
|
7
|
+
const template_1adof9k2 = template_u1.template(`<svg aria-hidden='true' height='0' style='position: absolute;' width='0'><filter color-interpolation-filters='sRGB' filterUnits='userSpaceOnUse' height='4000' id='tooltip-morph-goo' width='4000' x='-2000' y='-2000'><feGaussianBlur in='SourceGraphic' result='blur' stdDeviation='8' /><feColorMatrix in='blur' result='goo' type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 24 -12' /><feComposite in='SourceGraphic' in2='goo' operator='over' />`, true);
|
|
6
8
|
class ReactiveObject_1adof9k0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#corner;
|
|
10
|
+
#maxHeight;
|
|
11
|
+
#maxWidth;
|
|
12
|
+
#origin;
|
|
13
|
+
#placed = this[reactivity_u0.SIGNAL](false);
|
|
14
|
+
#placing = this[reactivity_u0.SIGNAL](false);
|
|
15
|
+
#side;
|
|
16
|
+
#width;
|
|
17
|
+
#x = this[reactivity_u0.SIGNAL](0);
|
|
18
|
+
#y = this[reactivity_u0.SIGNAL](0);
|
|
19
|
+
constructor(_p0, _p1, _p2, _p3, _p4, _p5) {
|
|
20
|
+
super(null);
|
|
21
|
+
this.#corner = this[reactivity_u0.SIGNAL](_p0);
|
|
22
|
+
this.#maxHeight = this[reactivity_u0.SIGNAL](_p1);
|
|
23
|
+
this.#maxWidth = this[reactivity_u0.SIGNAL](_p2);
|
|
24
|
+
this.#origin = this[reactivity_u0.SIGNAL](_p3);
|
|
25
|
+
this.#side = this[reactivity_u0.SIGNAL](_p4);
|
|
26
|
+
this.#width = this[reactivity_u0.SIGNAL](_p5);
|
|
27
|
+
}
|
|
28
|
+
get corner() {
|
|
29
|
+
return reactivity_u0.read(this.#corner);
|
|
30
|
+
}
|
|
31
|
+
set corner(_v0) {
|
|
32
|
+
reactivity_u0.write(this.#corner, _v0);
|
|
33
|
+
}
|
|
34
|
+
get maxHeight() {
|
|
35
|
+
return reactivity_u0.read(this.#maxHeight);
|
|
36
|
+
}
|
|
37
|
+
set maxHeight(_v1) {
|
|
38
|
+
reactivity_u0.write(this.#maxHeight, _v1);
|
|
39
|
+
}
|
|
40
|
+
get maxWidth() {
|
|
41
|
+
return reactivity_u0.read(this.#maxWidth);
|
|
42
|
+
}
|
|
43
|
+
set maxWidth(_v2) {
|
|
44
|
+
reactivity_u0.write(this.#maxWidth, _v2);
|
|
45
|
+
}
|
|
46
|
+
get origin() {
|
|
47
|
+
return reactivity_u0.read(this.#origin);
|
|
48
|
+
}
|
|
49
|
+
set origin(_v3) {
|
|
50
|
+
reactivity_u0.write(this.#origin, _v3);
|
|
51
|
+
}
|
|
52
|
+
get placed() {
|
|
53
|
+
return reactivity_u0.read(this.#placed);
|
|
54
|
+
}
|
|
55
|
+
set placed(_v4) {
|
|
56
|
+
reactivity_u0.write(this.#placed, _v4);
|
|
57
|
+
}
|
|
58
|
+
get placing() {
|
|
59
|
+
return reactivity_u0.read(this.#placing);
|
|
60
|
+
}
|
|
61
|
+
set placing(_v5) {
|
|
62
|
+
reactivity_u0.write(this.#placing, _v5);
|
|
63
|
+
}
|
|
64
|
+
get side() {
|
|
65
|
+
return reactivity_u0.read(this.#side);
|
|
66
|
+
}
|
|
67
|
+
set side(_v6) {
|
|
68
|
+
reactivity_u0.write(this.#side, _v6);
|
|
69
|
+
}
|
|
70
|
+
get width() {
|
|
71
|
+
return reactivity_u0.read(this.#width);
|
|
72
|
+
}
|
|
73
|
+
set width(_v7) {
|
|
74
|
+
reactivity_u0.write(this.#width, _v7);
|
|
75
|
+
}
|
|
76
|
+
get x() {
|
|
77
|
+
return reactivity_u0.read(this.#x);
|
|
78
|
+
}
|
|
79
|
+
set x(_v8) {
|
|
80
|
+
reactivity_u0.write(this.#x, _v8);
|
|
81
|
+
}
|
|
82
|
+
get y() {
|
|
83
|
+
return reactivity_u0.read(this.#y);
|
|
84
|
+
}
|
|
85
|
+
set y(_v9) {
|
|
86
|
+
reactivity_u0.write(this.#y, _v9);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
class ReactiveObject_1adof9k1 extends reactivity_u0.ReactiveObject {
|
|
7
90
|
#bottom;
|
|
8
91
|
#instant = this[reactivity_u0.SIGNAL](false);
|
|
9
92
|
#left;
|
|
@@ -55,13 +138,13 @@ class ReactiveObject_1adof9k0 extends reactivity_u0.ReactiveObject {
|
|
|
55
138
|
reactivity_u0.write(this.#top, _v5);
|
|
56
139
|
}
|
|
57
140
|
}
|
|
141
|
+
const EXPANDING = '.tooltip-content--expand, .tooltip-menu-panel--expand, .tooltip-message--expand';
|
|
58
142
|
const GOO = 'tooltip-morph-goo';
|
|
59
143
|
const MORPH_STATE = Symbol('tooltip.morph');
|
|
144
|
+
const PLACED_STATE = Symbol('tooltip.placed');
|
|
145
|
+
const TRAVEL = { e: [1, 0], n: [0, -1], s: [0, 1], w: [-1, 0] };
|
|
60
146
|
const WARM_FOR = 500;
|
|
61
147
|
let closedAt = 0;
|
|
62
|
-
function cool() {
|
|
63
|
-
closedAt = Date.now();
|
|
64
|
-
}
|
|
65
148
|
function content(element) {
|
|
66
149
|
let candidates = element.querySelectorAll('.tooltip-content, .tooltip-message');
|
|
67
150
|
for (let i = 0, n = candidates.length; i < n; i++) {
|
|
@@ -70,14 +153,17 @@ function content(element) {
|
|
|
70
153
|
}
|
|
71
154
|
}
|
|
72
155
|
}
|
|
156
|
+
function cool() {
|
|
157
|
+
closedAt = Date.now();
|
|
158
|
+
}
|
|
73
159
|
function goo() {
|
|
74
160
|
if (document.getElementById(GOO)) {
|
|
75
161
|
return;
|
|
76
162
|
}
|
|
77
|
-
render(document.body, () =>
|
|
163
|
+
render(document.body, () => template_1adof9k2());
|
|
78
164
|
}
|
|
79
165
|
function morph(element, open, tooltip = content(element), anchor = element) {
|
|
80
|
-
if (!tooltip?.matches(
|
|
166
|
+
if (!tooltip?.matches(`${EXPANDING}, .tooltip-content--morph, .tooltip-message--morph`)) {
|
|
81
167
|
open();
|
|
82
168
|
return;
|
|
83
169
|
}
|
|
@@ -129,10 +215,84 @@ function morphs(state) {
|
|
|
129
215
|
ontransitionrun: start
|
|
130
216
|
};
|
|
131
217
|
}
|
|
218
|
+
function placed(tooltip) {
|
|
219
|
+
let store = tooltip;
|
|
220
|
+
return store[PLACED_STATE] ??= root(() => {
|
|
221
|
+
let state = new ReactiveObject_1adof9k0(undefined, undefined, undefined, undefined, undefined, undefined);
|
|
222
|
+
setProperties(tooltip, {
|
|
223
|
+
class: () => state.placed && '--placed',
|
|
224
|
+
style: () => state.placed && {
|
|
225
|
+
'--place-max-height': px(state.maxHeight),
|
|
226
|
+
'--place-max-width': px(state.maxWidth),
|
|
227
|
+
'--place-origin': state.origin,
|
|
228
|
+
'--place-travel-x': state.side ? TRAVEL[state.side][0] : 0,
|
|
229
|
+
'--place-travel-y': state.side ? TRAVEL[state.side][1] : 0,
|
|
230
|
+
'--place-width': px(state.width),
|
|
231
|
+
'--place-x': `${state.x}px`,
|
|
232
|
+
'--place-y': `${state.y}px`,
|
|
233
|
+
transition: state.placing ? 'none' : undefined
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
return state;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function position(element, axis, tooltip = content(element)) {
|
|
240
|
+
if (!tooltip) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
let state = placed(tooltip);
|
|
244
|
+
state.maxHeight = undefined;
|
|
245
|
+
state.maxWidth = undefined;
|
|
246
|
+
state.placed = true;
|
|
247
|
+
state.placing = true;
|
|
248
|
+
state.width = undefined;
|
|
249
|
+
state.x = 0;
|
|
250
|
+
state.y = 0;
|
|
251
|
+
flush();
|
|
252
|
+
let anchor = element.getBoundingClientRect(), scale = anchor.width / element.offsetWidth || 1, height = tooltip.offsetHeight * scale, space = margin(tooltip), width = tooltip.offsetWidth;
|
|
253
|
+
if (tooltip.matches(EXPANDING)) {
|
|
254
|
+
let grown = expand({ anchor, corner: state.corner, height, margin: space, width: width * scale });
|
|
255
|
+
state.corner = grown.corner;
|
|
256
|
+
state.maxHeight = grown.maxHeight / scale;
|
|
257
|
+
state.maxWidth = (viewport().width - space * 2) / scale;
|
|
258
|
+
state.origin = `${grown.corner[1] === 'e' ? 'left' : 'right'} ${grown.corner[0] === 's' ? 'top' : 'bottom'}`;
|
|
259
|
+
state.x = (grown.x - anchor.left) / scale - element.clientLeft;
|
|
260
|
+
state.y = (grown.y - anchor.top) / scale - element.clientTop;
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
let { maxHeight, maxWidth, side, x, y } = place({
|
|
264
|
+
anchor,
|
|
265
|
+
axis,
|
|
266
|
+
gap: (parseFloat(getComputedStyle(tooltip).getPropertyValue('--spacer')) || 0) * scale,
|
|
267
|
+
height,
|
|
268
|
+
margin: space,
|
|
269
|
+
side: state.side,
|
|
270
|
+
width: width * scale
|
|
271
|
+
});
|
|
272
|
+
x = (x - anchor.left) / scale - element.clientLeft;
|
|
273
|
+
y = (y - anchor.top) / scale - element.clientTop;
|
|
274
|
+
state.maxHeight = maxHeight / scale;
|
|
275
|
+
state.maxWidth = maxWidth / scale;
|
|
276
|
+
state.origin = side === 'n' || side === 's'
|
|
277
|
+
? `${(anchor.width / 2) / scale - element.clientLeft - x}px ${side === 'n' ? '100%' : '0%'}`
|
|
278
|
+
: `${side === 'e' ? '0%' : '100%'} ${(anchor.height / 2) / scale - element.clientTop - y}px`;
|
|
279
|
+
state.side = side;
|
|
280
|
+
state.x = x;
|
|
281
|
+
state.y = y;
|
|
282
|
+
}
|
|
283
|
+
state.width = width;
|
|
284
|
+
flush();
|
|
285
|
+
tooltip.getBoundingClientRect();
|
|
286
|
+
state.placing = false;
|
|
287
|
+
flush();
|
|
288
|
+
}
|
|
289
|
+
function px(value) {
|
|
290
|
+
return value === undefined ? undefined : `${value}px`;
|
|
291
|
+
}
|
|
132
292
|
function shape(tooltip) {
|
|
133
293
|
let store = tooltip;
|
|
134
294
|
return store[MORPH_STATE] ??= root(() => {
|
|
135
|
-
let state = new
|
|
295
|
+
let state = new ReactiveObject_1adof9k1(undefined, undefined, undefined, undefined, undefined);
|
|
136
296
|
setProperties(tooltip, {
|
|
137
297
|
style: () => ({
|
|
138
298
|
'--morph-bottom': state.bottom,
|
|
@@ -157,4 +317,4 @@ function wait(delay, open) {
|
|
|
157
317
|
function warm() {
|
|
158
318
|
return Date.now() - closedAt < WARM_FOR;
|
|
159
319
|
}
|
|
160
|
-
export { content, cool, morph, morphs, shape, wait, warm };
|
|
320
|
+
export { content, cool, morph, morphs, position, px, shape, wait, warm };
|
|
@@ -50,7 +50,7 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
50
50
|
let leaving = new template_u1.ArraySlot(exits, (l) => {
|
|
51
51
|
let root_1dcchwt1 = template_1dcchwt2();
|
|
52
52
|
template_u1.slot(root_1dcchwt1, l.char, 1);
|
|
53
|
-
template_u1.setStyle(root_1dcchwt1, ["", "left: " + (l.left ?? 0) + "px"]);
|
|
53
|
+
template_u1.setStyle(root_1dcchwt1, ["", "--swap-left: " + (l.left ?? 0) + "px"]);
|
|
54
54
|
return root_1dcchwt1;
|
|
55
55
|
}), word = new template_u1.ArraySlot(letters, (l) => {
|
|
56
56
|
let root_1dcchwt3 = template_1dcchwt4();
|
|
@@ -101,8 +101,8 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
101
101
|
let l = exits[i];
|
|
102
102
|
nodes[letters.$length + i]?.animate(glide
|
|
103
103
|
? [
|
|
104
|
-
{ filter: 'blur(0px)', opacity: 1,
|
|
105
|
-
{ filter: `blur(${blur})`, opacity: 0,
|
|
104
|
+
{ filter: 'blur(0px)', opacity: 1, translate: '0 0' },
|
|
105
|
+
{ filter: `blur(${blur})`, opacity: 0, translate: `0 ${computed.getPropertyValue('--exit-offset').trim()}` }
|
|
106
106
|
]
|
|
107
107
|
: [{ opacity: 1 }, { opacity: 0 }], { ...exit, fill: 'forwards' }).finished.then(() => {
|
|
108
108
|
let at = exits.indexOf(l);
|
|
@@ -125,8 +125,8 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
125
125
|
if (was === undefined) {
|
|
126
126
|
nodes[i]?.animate(glide
|
|
127
127
|
? [
|
|
128
|
-
{ filter: `blur(${blur})`, opacity: 0,
|
|
129
|
-
{ filter: 'blur(0px)', opacity: 1,
|
|
128
|
+
{ filter: `blur(${blur})`, opacity: 0, translate: `0 ${computed.getPropertyValue('--enter-offset').trim()}` },
|
|
129
|
+
{ filter: 'blur(0px)', opacity: 1, translate: '0 0' }
|
|
130
130
|
]
|
|
131
131
|
: [{ opacity: 0 }, { opacity: 1 }], { ...enter, delay: glide ? delay + order++ * stagger : 0, fill: 'backwards' });
|
|
132
132
|
continue;
|
|
@@ -135,7 +135,7 @@ export default ({ interval = INTERVAL, state = new ReactiveObject_1dcchwt0(), wo
|
|
|
135
135
|
if (!glide || Math.abs(was - now) < 0.5) {
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
|
-
nodes[i]?.animate([{
|
|
138
|
+
nodes[i]?.animate([{ translate: `${was - now}px` }, { translate: '0' }], glide);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.typewriter-retype-sr,.typewriter-rotate-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.typewriter,.typewriter-retype{--caret:"";--caret-align:-.18em;--caret-background:var(--caret-color);--caret-color:currentColor;--caret-duration:1.06s;--caret-height:1.1em;--caret-offset:calc(var(--size-100) / 4);--caret-radius:999px;--caret-timing-function:linear;--caret-width:2px}.typewriter--block,.typewriter-retype--block{--caret-align:bottom;--caret-height:1lh;--caret-offset:.08em;--caret-radius:0;--caret-width:.56em}.typewriter--hard,.typewriter-retype--hard{--caret-duration:1s;--caret-timing-function:steps(1, end)}.typewriter--underscore,.typewriter-retype--underscore{--caret:"_";--caret-align:baseline;--caret-background:transparent;--caret-height:auto;--caret-offset:.04em;--caret-radius:0;--caret-width:auto}.typewriter-retype{--ink-blur:var(--blur-300);--ink-duration:.14s;--ink-timing-function:cubic-bezier(.23, 1, .32, 1);--key-duration:62ms;--key-jitter-duration:64ms;--select-duration:.22s;--select-timing-function:cubic-bezier(.23, 1, .32, 1);--selection-color:oklch(from var(--color-primary-500) l c h / .15);--selection-radius:3px}@media (prefers-reduced-motion:reduce){.typewriter-retype{--ink-blur:0px;--key-duration:0s;--select-duration:0s}}.typewriter-rotate{--blur:var(--blur-400);--color:inherit;--enter-delay:90ms;--enter-duration:.32s;--enter-offset:.4em;--enter-stagger:28ms;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--exit-duration:.2s;--exit-offset:-.35em;--exit-timing-function:cubic-bezier(.23, 1, .32, 1);--glide-duration:.44s;--glide-timing-function:cubic-bezier(.77, 0, .175, 1)}@media (prefers-reduced-motion:reduce){.typewriter-rotate{--glide-duration:0s}}.typewriter-rotate--accent{--color:var(--color-blue-400)}.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:typewriter-blink var(--caret-duration) var(--caret-timing-function) infinite;background:var(--caret-background);border-radius:var(--caret-radius);color:var(--caret-color);content:var(--caret);height:var(--caret-height);vertical-align:var(--caret-align);width:var(--caret-width);margin-inline-start:var(--caret-offset);display:inline-block}@media (prefers-reduced-motion:reduce){.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:none}}.typewriter-retype{white-space:pre;display:inline-grid}.typewriter-retype-letter{animation:typewriter-retype-letter var(--ink-duration) var(--ink-timing-function)}.typewriter-retype-line{text-align:left}.typewriter-retype-line--selecting:after{visibility:hidden}.typewriter-retype-line--typing:after{animation:none}.typewriter-retype-
|
|
1
|
+
@layer components{.typewriter-retype-sr,.typewriter-rotate-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.typewriter,.typewriter-retype{--caret:"";--caret-align:-.18em;--caret-background:var(--caret-color);--caret-color:currentColor;--caret-duration:1.06s;--caret-height:1.1em;--caret-offset:calc(var(--size-100) / 4);--caret-radius:999px;--caret-timing-function:linear;--caret-width:2px}.typewriter--block,.typewriter-retype--block{--caret-align:bottom;--caret-height:1lh;--caret-offset:.08em;--caret-radius:0;--caret-width:.56em}.typewriter--hard,.typewriter-retype--hard{--caret-duration:1s;--caret-timing-function:steps(1, end)}.typewriter--underscore,.typewriter-retype--underscore{--caret:"_";--caret-align:baseline;--caret-background:transparent;--caret-height:auto;--caret-offset:.04em;--caret-radius:0;--caret-width:auto}.typewriter-retype{--ink-blur:var(--blur-300);--ink-duration:.14s;--ink-timing-function:cubic-bezier(.23, 1, .32, 1);--key-duration:62ms;--key-jitter-duration:64ms;--select-duration:.22s;--select-timing-function:cubic-bezier(.23, 1, .32, 1);--selection-color:oklch(from var(--color-primary-500) l c h / .15);--selection-radius:3px}@media (prefers-reduced-motion:reduce){.typewriter-retype{--ink-blur:0px;--key-duration:0s;--select-duration:0s}}.typewriter-rotate{--blur:var(--blur-400);--color:inherit;--enter-delay:90ms;--enter-duration:.32s;--enter-offset:.4em;--enter-stagger:28ms;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--exit-duration:.2s;--exit-offset:-.35em;--exit-timing-function:cubic-bezier(.23, 1, .32, 1);--glide-duration:.44s;--glide-timing-function:cubic-bezier(.77, 0, .175, 1)}@media (prefers-reduced-motion:reduce){.typewriter-rotate{--glide-duration:0s}}.typewriter-rotate--accent{--color:var(--color-blue-400)}.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:typewriter-blink var(--caret-duration) var(--caret-timing-function) infinite;background:var(--caret-background);border-radius:var(--caret-radius);color:var(--caret-color);content:var(--caret);height:var(--caret-height);vertical-align:var(--caret-align);width:var(--caret-width);margin-inline-start:var(--caret-offset);display:inline-block}@media (prefers-reduced-motion:reduce){.typewriter:after,.typewriter-retype-line:after,.typewriter-retype-sizer:after{animation:none}}.typewriter-retype{white-space:pre;display:inline-grid}.typewriter-retype-letter{animation:typewriter-retype-letter var(--ink-duration) var(--ink-timing-function)}.typewriter-retype-line,.typewriter-retype-sizer{grid-area:1/1}.typewriter-retype-line{text-align:left}.typewriter-retype-line--selecting:after{visibility:hidden}.typewriter-retype-line--typing:after{animation:none}.typewriter-retype-sizer{visibility:hidden}.typewriter-retype-word{isolation:isolate;display:inline-block;position:relative}.typewriter-retype-word:before{background:var(--selection-color);border-radius:var(--selection-radius);content:"";transform-origin:100%;z-index:-1;position:absolute;inset:-.06em -1px;scale:0 1}.typewriter-retype-word--selecting:before{transition:scale var(--select-duration) var(--select-timing-function);scale:1}.typewriter-rotate{color:var(--color);display:inline-block;position:relative}.typewriter-rotate-box{text-align:left;white-space:pre;display:inline-block;position:relative}.typewriter-rotate-letter{display:inline-block}.typewriter-rotate-letter--exiting{left:var(--swap-left);pointer-events:none;position:absolute;top:0}@keyframes typewriter-blink{0%,45%{opacity:1}55%,95%{opacity:0}to{opacity:1}}@keyframes typewriter-retype-letter{0%{filter:blur(var(--ink-blur));opacity:0}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.uptime-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:where([data-theme=dark]) .uptime-service-percentage,:where([data-theme=light]) .uptime-service-percentage{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .036) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .036) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .036) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .036) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) + -3.6), 0) * .01 + min(calc(var(--surface-level) + -3.6), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) + -3.6), 0) * .01 + min(calc(var(--surface-level) + -3.6), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) calc(c * clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}.uptime{--color:var(--color-text-400);--color-degraded:var(--color-yellow-400);--color-muted:var(--color-text-300);--color-ok:var(--color-green-400);--color-outage:var(--color-red-400);--day-gap:round(down, (100cqw - var(--days) * var(--day-width)) / (var(--days) - 1), 1px);--day-gap-min:calc(var(--size-300) / 4);--day-width:round(down, (100cqw - (var(--days) - 1) * var(--day-gap-min)) / var(--days), 1px);--font-size:var(--font-size-300);--gap-horizontal:var(--size-600);--gap-vertical:var(--size-600);--width:min(440px, 100%)}.uptime-bar{--background:var(--color-ok);--border-radius:0px;--opacity:1;--scale:1;--scale-far:1;--scale-near:1.1;--scale-peak:1.2;--transition-duration:.2s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}@media (prefers-reduced-motion:no-preference){.uptime-bar:has(+.uptime-bar+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar+.uptime-bar{--scale:var(--scale-far)}.uptime-bar:has(+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar{--scale:var(--scale-near)}.uptime-bar.--active{--scale:var(--scale-peak)}}.uptime-bar--degraded{--background:var(--color-degraded)}.uptime-bar--outage{--background:var(--color-outage)}.uptime-bars{--border-radius:0px;--height:var(--size-600)}.uptime-bars.--active>.uptime-bar:not(.--active){--opacity:.35}.uptime-service{--gap-horizontal:0px;--gap-vertical:var(--size-100);--width:calc(var(--days) * var(--day-width) + (var(--days) - 1) * var(--day-gap))}.uptime-service-axis{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300)}.uptime-service-caption{--gap-horizontal:var(--size-200);--gap-vertical:0px}.uptime-service-header{--gap-horizontal:var(--size-400);--gap-vertical:0px;--height:var(--size-400)}.uptime-service-message{--blur:var(--blur-400);--dot-size:6px;--enter-duration:.2s;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--offset:calc(var(--size-100) / 2)}.uptime-service-message--degraded{--dot:var(--color-degraded)}.uptime-service-message--ok{--dot:var(--color-ok)}.uptime-service-message--outage{--dot:var(--color-outage)}.uptime-service-percentage{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300);--line-color:var(--surface-border-default);--line-width:var(--border-width-400)}@container style(--surface-level:-3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .035),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .03),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:6){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .1),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.uptime{color:var(--color);font-size:var(--font-size);gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex;position:relative;container-type:inline-size}.uptime-bar{background:var(--background);border-radius:var(--border-radius);opacity:var(--opacity);scale:1 var(--scale);transform-origin:bottom;transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function);width:calc((100% - (var(--days) - 1) * var(--day-gap)) / var(--days));flex-shrink:0}@media (prefers-reduced-motion:reduce){.uptime-bar{transition:none}}.uptime-bars{border-radius:var(--border-radius);cursor:default;gap:var(--day-gap);height:var(--height);outline:none;display:flex}.uptime-bars:focus-visible{outline:var(--border-width-500) solid var(--color);outline-offset:calc(var(--size-100) / 2)}.uptime-service{gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex}.uptime-service-axis{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);white-space:nowrap;display:flex}.uptime-service-caption{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:flex-end;min-width:0;display:flex}.uptime-service-day{color:var(--color-muted);flex-shrink:0}.uptime-service-day,.uptime-service-percentage{font-variant-numeric:tabular-nums}.uptime-service-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);justify-content:space-between;display:flex}.uptime-service-message{animation:uptime-service-message var(--enter-duration) var(--enter-timing-function);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}@media (prefers-reduced-motion:reduce){.uptime-service-message{animation:none}}.uptime-service-message--active{color:var(--color)}.uptime-service-message--degraded:before,.uptime-service-message--ok:before,.uptime-service-message--outage:before{background:var(--dot);content:"";height:var(--dot-size);vertical-align:middle;width:var(--dot-size);border-radius:50%;margin-inline-end:var(--size-100);display:inline-block}.uptime-service-name{font-weight:var(--font-weight-500);flex-shrink:0}.uptime-service-percentage{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;display:flex}.uptime-service-percentage:after,.uptime-service-percentage:before{border-top:var(--line-width) solid var(--line-color);content:"";flex:1}@keyframes uptime-service-message{0%{filter:blur(var(--blur));opacity:0;translate:0 var(--offset)}}}
|
|
1
|
+
@layer components{.uptime-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:where([data-theme=dark]) .uptime-service-percentage,:where([data-theme=light]) .uptime-service-percentage{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .036) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .036) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .036) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .036) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}.uptime{--color:var(--color-text-400);--color-degraded:var(--color-yellow-400);--color-muted:var(--color-text-300);--color-ok:var(--color-green-400);--color-outage:var(--color-red-400);--day-gap:round(down, (100cqw - var(--days) * var(--day-width)) / (var(--days) - 1), 1px);--day-gap-min:calc(var(--size-300) / 4);--day-width:round(down, (100cqw - (var(--days) - 1) * var(--day-gap-min)) / var(--days), 1px);--font-size:var(--font-size-300);--gap-horizontal:var(--size-600);--gap-vertical:var(--size-600);--width:min(440px, 100%)}.uptime-bar{--background:var(--color-ok);--border-radius:0px;--opacity:1;--scale:1;--scale-far:1;--scale-near:1.1;--scale-peak:1.2;--transition-duration:.2s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}@media (prefers-reduced-motion:reduce){.uptime-bar{--transition-duration:0s}}@media (prefers-reduced-motion:no-preference){.uptime-bar:has(+.uptime-bar+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar+.uptime-bar{--scale:var(--scale-far)}.uptime-bar:has(+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar{--scale:var(--scale-near)}.uptime-bar.--active{--scale:var(--scale-peak)}}.uptime-bar--degraded{--background:var(--color-degraded)}.uptime-bar--outage{--background:var(--color-outage)}.uptime-bars{--border-radius:0px;--height:var(--size-600)}.uptime-bars.--active>.uptime-bar:not(.--active){--opacity:.35}.uptime-service{--gap-horizontal:0px;--gap-vertical:var(--size-100);--width:calc(var(--days) * var(--day-width) + (var(--days) - 1) * var(--day-gap))}.uptime-service-axis{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300)}.uptime-service-caption{--gap-horizontal:var(--size-200);--gap-vertical:0px}.uptime-service-header{--gap-horizontal:var(--size-400);--gap-vertical:0px;--height:var(--size-400)}.uptime-service-message{--blur:var(--blur-400);--dot-size:6px;--enter-duration:.2s;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--offset:calc(var(--size-100) / 2)}@media (prefers-reduced-motion:reduce){.uptime-service-message{--enter-duration:0s}}.uptime-service-message--degraded{--dot:var(--color-degraded)}.uptime-service-message--ok{--dot:var(--color-ok)}.uptime-service-message--outage{--dot:var(--color-outage)}.uptime-service-percentage{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300);--line-color:var(--surface-border-default);--line-width:var(--border-width-400)}@container style(--surface-level:-3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:6){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.uptime{color:var(--color);font-size:var(--font-size);gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex;position:relative;container-type:inline-size}.uptime-bar{background:var(--background);border-radius:var(--border-radius);opacity:var(--opacity);scale:1 var(--scale);transform-origin:bottom;transition-duration:var(--transition-duration);transition-property:opacity,scale;transition-timing-function:var(--transition-timing-function);width:calc((100% - (var(--days) - 1) * var(--day-gap)) / var(--days));flex-shrink:0}.uptime-bars{border-radius:var(--border-radius);cursor:default;gap:var(--day-gap);height:var(--height);outline:none;display:flex}.uptime-bars:focus-visible{outline:var(--border-width-500) solid var(--color);outline-offset:calc(var(--size-100) / 2)}.uptime-service{gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex}.uptime-service-axis{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);white-space:nowrap;display:flex}.uptime-service-caption{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:flex-end;min-width:0;display:flex}.uptime-service-day,.uptime-service-percentage{font-variant-numeric:tabular-nums}.uptime-service-day{color:var(--color-muted);flex-shrink:0}.uptime-service-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);justify-content:space-between;display:flex}.uptime-service-message{animation:uptime-service-message var(--enter-duration) var(--enter-timing-function);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.uptime-service-message--active{color:var(--color)}.uptime-service-message--degraded:before,.uptime-service-message--ok:before,.uptime-service-message--outage:before{background:var(--dot);content:"";height:var(--dot-size);vertical-align:middle;width:var(--dot-size);border-radius:50%;margin-inline-end:var(--size-100);display:inline-block}.uptime-service-name{font-weight:var(--font-weight-500);flex-shrink:0}.uptime-service-percentage{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;display:flex}.uptime-service-percentage:after,.uptime-service-percentage:before{border-top:var(--line-width) solid var(--line-color);content:"";flex:1}@keyframes uptime-service-message{0%{filter:blur(var(--blur));opacity:0;translate:0 var(--offset)}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -18,7 +18,7 @@ export default component(function ({ label = 'Context window', usage, ...attribu
|
|
|
18
18
|
new template_u1.EffectSlot(root_0r0k9fwb, () => `$${usage.cost.toFixed(4)}`, 1);
|
|
19
19
|
return root_0r0k9fwb;
|
|
20
20
|
})(), 1);
|
|
21
|
-
template_u1.setStyle(element_0r0k9fw8, ["", () =>
|
|
21
|
+
template_u1.setStyle(element_0r0k9fw8, ["", () => `--fill-ratio: ${read(ratio)}`]);
|
|
22
22
|
template_u1.setProperty(element_0r0k9fw7, 'aria-label', label);
|
|
23
23
|
template_u1.setProperty(element_0r0k9fw7, 'aria-valuemax', () => usage.context);
|
|
24
24
|
template_u1.setProperty(element_0r0k9fw7, 'aria-valuenow', () => read(used));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{@font-face{font-display:swap;font-family:Geist;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Italic-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Italic-Variable.woff2)format("woff2")}.usage-meter{--gap-horizontal:var(--size-200);--gap-vertical:var(--size-100);--max-width:380px}.usage-meter--
|
|
1
|
+
@layer components{@font-face{font-display:swap;font-family:Geist;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Italic-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Italic-Variable.woff2)format("woff2")}.usage-meter{--gap-horizontal:var(--size-200);--gap-vertical:var(--size-100);--max-width:380px}.usage-meter--critical .usage-meter-fill{--background:color-mix(in oklch, var(--color-red-400) 80%, transparent)}.usage-meter--inline{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300);--max-width:none}.usage-meter--inline .usage-meter-breakdown,.usage-meter--inline .usage-meter-label,.usage-meter--inline .usage-meter-percent{--display:none}.usage-meter--inline .usage-meter-cost{--prefix:none}.usage-meter--inline .usage-meter-footer,.usage-meter--inline .usage-meter-header{--display:contents}.usage-meter--inline .usage-meter-track{--background:var(--surface-border-hover);--height:4px;--order:-1;--width:64px}.usage-meter--warning .usage-meter-fill{--background:color-mix(in oklch, var(--color-yellow-500) 80%, transparent)}.usage-meter-breakdown,.usage-meter-percent{--display:inline}.usage-meter-cost{--prefix:"≈ "}.usage-meter-count{--color:var(--color-text-300);--font-size:var(--font-size-200)}.usage-meter-fill{--background:var(--color-primary-500);--transition-duration:.5s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}@media (prefers-reduced-motion:reduce){.usage-meter-fill{--transition-duration:0s}}.usage-meter-footer{--color:color-mix(in oklch, var(--color-primary-300) 70%, transparent);--display:flex;--font-size:var(--font-size-200)}.usage-meter-header{--display:flex;--gap-horizontal:var(--size-300);--gap-vertical:0px}.usage-meter-label{--color:var(--color-text-500);--display:inline;--font-size:var(--font-size-200);--font-weight:var(--font-weight-500)}.usage-meter-track{--background:var(--surface-border-default);--border-radius:999px;--height:6px;--order:0;--width:100%}.usage-meter{gap:var(--gap-vertical) var(--gap-horizontal);max-width:var(--max-width);flex-direction:column;width:100%;display:flex}.usage-meter--inline{flex-direction:row;align-items:center;width:fit-content}.usage-meter-breakdown,.usage-meter-cost,.usage-meter-count{font-variant-numeric:tabular-nums}.usage-meter-breakdown,.usage-meter-label,.usage-meter-percent{display:var(--display)}.usage-meter-cost:before{content:var(--prefix)}.usage-meter-count{color:var(--color);font-size:var(--font-size)}.usage-meter-fill{background:var(--background);border-radius:inherit;height:100%;transition-duration:var(--transition-duration);transition-property:background-color,translate;transition-timing-function:var(--transition-timing-function);translate:calc((var(--fill-ratio) - 1) * 100%) 0;width:100%;display:block}.usage-meter-footer{color:var(--color);display:var(--display);font-size:var(--font-size);justify-content:space-between;align-items:center}.usage-meter-header{display:var(--display);align-items:baseline;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:space-between}.usage-meter-label{color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight)}.usage-meter-track{background:var(--background);border-radius:var(--border-radius);height:var(--height);flex:none;order:var(--order);width:var(--width);overflow:hidden}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Montserrat.Git Project Authors (https://github.com/JulietaUla/Montserrat.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/build/shared/drag.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ type Direction = {
|
|
|
3
3
|
axis: 'x' | 'y';
|
|
4
4
|
sign: -1 | 1;
|
|
5
5
|
};
|
|
6
|
-
type Drag = {
|
|
6
|
+
type Drag = Velocity & {
|
|
7
7
|
captured: boolean;
|
|
8
8
|
directions: Direction[];
|
|
9
9
|
distance: number;
|
|
@@ -11,11 +11,6 @@ type Drag = {
|
|
|
11
11
|
originX: number;
|
|
12
12
|
originY: number;
|
|
13
13
|
pointer: number;
|
|
14
|
-
sampleX: number;
|
|
15
|
-
sampleY: number;
|
|
16
|
-
time: number;
|
|
17
|
-
vx: number;
|
|
18
|
-
vy: number;
|
|
19
14
|
width: number;
|
|
20
15
|
x: number;
|
|
21
16
|
y: number;
|
|
@@ -26,6 +21,7 @@ type Fling = {
|
|
|
26
21
|
x: number;
|
|
27
22
|
y: number;
|
|
28
23
|
};
|
|
24
|
+
type Release = Pick<Drag, 'directions' | 'x' | 'y'> & Velocity;
|
|
29
25
|
type Options = {
|
|
30
26
|
begin: (e: PointerEvent, element: HTMLElement) => Direction[] | null;
|
|
31
27
|
capture?: (element: HTMLElement) => void;
|
|
@@ -33,14 +29,24 @@ type Options = {
|
|
|
33
29
|
move: (element: HTMLElement, drag: Drag, progress: number) => void;
|
|
34
30
|
release: (element: HTMLElement, drag: Drag, dismiss: boolean) => void;
|
|
35
31
|
};
|
|
32
|
+
type Velocity = {
|
|
33
|
+
sampleX: number;
|
|
34
|
+
sampleY: number;
|
|
35
|
+
time: number;
|
|
36
|
+
vx: number;
|
|
37
|
+
vy: number;
|
|
38
|
+
};
|
|
36
39
|
declare const INTERACTIVE = "a, button, input, label, select, summary, textarea, [contenteditable], [role=\"button\"], [role=\"option\"]";
|
|
40
|
+
declare const coast: (element: HTMLElement, release: Release) => Fling | null;
|
|
37
41
|
declare const drag: ({ begin, capture, measure, move, release }: Options) => {
|
|
38
42
|
onpointercancel: (e: PointerEvent) => void;
|
|
39
43
|
onpointerdown: (e: PointerEvent) => void;
|
|
40
44
|
onpointermove: (e: PointerEvent) => void;
|
|
41
45
|
onpointerup: (e: PointerEvent) => void;
|
|
42
46
|
};
|
|
43
|
-
declare const fling: (element: HTMLElement,
|
|
47
|
+
declare const fling: (element: HTMLElement, release: Release) => Fling | null;
|
|
48
|
+
declare const sample: (velocity: Velocity, x: number, y: number, now?: number) => void;
|
|
44
49
|
declare const toward: ({ x, y }: Edge) => Direction[];
|
|
45
|
-
|
|
46
|
-
export
|
|
50
|
+
declare const velocity: (now?: number) => Velocity;
|
|
51
|
+
export { coast, drag, fling, INTERACTIVE, sample, toward, velocity };
|
|
52
|
+
export type { Direction, Drag, Fling, Release, Velocity };
|