@esportsplus/ui 0.59.1 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.audit/audit.json +2770 -0
- package/.audit/check-scss.mjs +20 -0
- package/.audit/rules-audit.md +531 -0
- package/README.md +52 -40
- package/RULES.md +145 -0
- package/build/components/accordion/index.d.ts +15 -2174
- package/build/components/accordion/index.js +32 -31
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/index.d.ts +720 -2164
- package/build/components/announcement/index.js +12 -9
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.d.ts +4 -1
- package/build/components/breadcrumb/index.js +57 -69
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +4 -11
- package/build/components/button/copy.js +32 -25
- package/build/components/button/faces.d.ts +2 -2
- package/build/components/button/faces.js +9 -11
- package/build/components/button/index.d.ts +3 -7
- package/build/components/button/index.js +3 -5
- package/build/components/button/kbd.d.ts +3 -7
- package/build/components/button/kbd.js +63 -76
- package/build/components/button/morph/index.d.ts +1447 -0
- package/build/components/button/morph/index.js +4 -0
- package/build/components/button/morph/save.d.ts +10 -0
- package/build/components/button/morph/save.js +57 -0
- package/build/components/button/morph/template.d.ts +23 -0
- package/build/components/button/morph/template.js +110 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +1 -10
- package/build/components/button/sidebar.js +14 -12
- package/build/components/button/split.d.ts +7 -2
- package/build/components/button/split.js +20 -19
- package/build/components/capslock/index.d.ts +1 -10
- package/build/components/capslock/index.js +18 -14
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.d.ts +4 -1
- package/build/components/cc/index.js +209 -175
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/index.d.ts +6 -0
- package/build/components/chat/index.js +3 -0
- package/build/components/chat/minimap/index.d.ts +63 -0
- package/build/components/chat/minimap/index.js +272 -0
- package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
- package/build/components/checkbox/group.d.ts +2 -10
- package/build/components/checkbox/group.js +39 -29
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/checkbox/index.js +1 -0
- package/build/components/checkbox/options.d.ts +5005 -6441
- package/build/components/checkbox/options.js +72 -45
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/index.d.ts +3 -2181
- package/build/components/clipboard/index.js +2 -3
- package/build/components/color-picker/index.d.ts +31 -1
- package/build/components/color-picker/index.js +200 -168
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +6 -93
- package/build/components/command/index.js +4 -601
- package/build/components/command/palette.d.ts +111 -0
- package/build/components/command/palette.js +606 -0
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +19 -0
- package/build/components/command/search.js +68 -0
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/counter/index.d.ts +6 -4
- package/build/components/counter/index.js +36 -32
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +28 -6
- package/build/components/dock/index.js +433 -55
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/editor.d.ts +1 -10
- package/build/components/editor/code/features.d.ts +3 -3
- package/build/components/editor/code/features.js +65 -52
- package/build/components/editor/code/field.d.ts +1 -1
- package/build/components/editor/code/find.d.ts +4 -4
- package/build/components/editor/code/find.js +39 -37
- package/build/components/editor/code/folding.d.ts +1 -1
- package/build/components/editor/code/goto.d.ts +2 -1
- package/build/components/editor/code/goto.js +7 -7
- package/build/components/editor/code/gutter.js +12 -12
- package/build/components/editor/code/html.d.ts +4 -0
- package/build/components/editor/code/html.js +8 -0
- package/build/components/editor/code/minimap.d.ts +4 -10
- package/build/components/editor/code/minimap.js +18 -13
- package/build/components/editor/code/rows.js +6 -12
- package/build/components/editor/code/search.d.ts +1 -2
- package/build/components/editor/code/search.js +1 -1
- package/build/components/editor/code/services/index.d.ts +1 -1
- package/build/components/editor/code/services/index.js +27 -23
- package/build/components/editor/code/services/model.d.ts +1 -5
- package/build/components/editor/code/services/model.js +1 -1
- package/build/components/editor/code/services/session.d.ts +3 -2
- package/build/components/editor/code/services/session.js +1 -4
- package/build/components/editor/code/syntax.d.ts +1 -1
- package/build/components/editor/code/view.d.ts +2 -1
- package/build/components/editor/code/view.js +50 -39
- package/build/components/editor/diffs/merge.d.ts +1 -10
- package/build/components/editor/diffs/merge.js +126 -102
- package/build/components/editor/diffs/render.d.ts +1 -2
- package/build/components/editor/diffs/render.js +2 -8
- package/build/components/editor/diffs/view.d.ts +1 -10
- package/build/components/editor/diffs/view.js +112 -105
- package/build/components/editor/markdown/editing.d.ts +1 -1
- package/build/components/editor/markdown/erase.js +1 -1
- package/build/components/editor/markdown/format.d.ts +23 -0
- package/build/components/editor/markdown/format.js +319 -0
- package/build/components/editor/markdown/html.d.ts +1 -1
- package/build/components/editor/markdown/index.d.ts +3 -22
- package/build/components/editor/markdown/index.js +3 -30
- package/build/components/editor/markdown/inline.d.ts +1 -1
- package/build/components/editor/markdown/inline.js +6 -5
- package/build/components/editor/markdown/layout.d.ts +1 -3
- package/build/components/editor/markdown/layout.js +1 -1
- package/build/components/editor/markdown/model.d.ts +3 -9
- package/build/components/editor/markdown/model.js +1 -8
- package/build/components/editor/markdown/render.d.ts +2 -1
- package/build/components/editor/markdown/render.js +281 -252
- package/build/components/editor/markdown/template.d.ts +13 -0
- package/build/components/editor/markdown/template.js +30 -0
- package/build/components/editor/markdown/toolbar.d.ts +32 -0
- package/build/components/editor/markdown/toolbar.js +556 -0
- package/build/components/editor/markdown/view.d.ts +12 -1
- package/build/components/editor/markdown/view.js +154 -60
- package/build/components/editor/tree/compact.d.ts +2 -1
- package/build/components/editor/tree/compact.js +12 -11
- package/build/components/editor/tree/drag.d.ts +3 -2
- package/build/components/editor/tree/drag.js +29 -26
- package/build/components/editor/tree/edit.d.ts +1 -1
- package/build/components/editor/tree/edit.js +10 -9
- package/build/components/editor/tree/find.d.ts +1 -1
- package/build/components/editor/tree/find.js +13 -9
- package/build/components/editor/tree/icons.d.ts +1 -1
- package/build/components/editor/tree/icons.js +1 -1
- package/build/components/editor/tree/index.d.ts +3 -116
- package/build/components/editor/tree/index.js +3 -2225
- package/build/components/editor/tree/lazy.d.ts +2 -1
- package/build/components/editor/tree/lazy.js +17 -16
- package/build/components/editor/tree/sticky.d.ts +3 -2
- package/build/components/editor/tree/sticky.js +7 -6
- package/build/components/editor/tree/template.d.ts +117 -0
- package/build/components/editor/tree/template.js +2212 -0
- package/build/components/editor/viewer/index.d.ts +3 -26
- package/build/components/editor/viewer/index.js +3 -249
- package/build/components/editor/viewer/model.js +1 -7
- package/build/components/editor/viewer/template.d.ts +17 -0
- package/build/components/editor/viewer/template.js +258 -0
- package/build/components/editor/workspace/index.d.ts +4 -65
- package/build/components/editor/workspace/index.js +4 -1228
- package/build/components/editor/workspace/model.d.ts +29 -37
- package/build/components/editor/workspace/model.js +186 -155
- package/build/components/editor/workspace/navigate.d.ts +2 -1
- package/build/components/editor/workspace/navigate.js +2 -4
- package/build/components/editor/workspace/session.d.ts +5 -1
- package/build/components/editor/workspace/session.js +71 -39
- package/build/components/editor/workspace/shortcuts.d.ts +0 -2
- package/build/components/editor/workspace/shortcuts.js +39 -35
- package/build/components/editor/workspace/status.d.ts +4 -5
- package/build/components/editor/workspace/status.js +79 -61
- package/build/components/editor/workspace/statusbar.d.ts +7 -4
- package/build/components/editor/workspace/statusbar.js +73 -86
- package/build/components/editor/workspace/strip.d.ts +1 -2
- package/build/components/editor/workspace/strip.js +10 -8
- package/build/components/editor/workspace/tabs.d.ts +35 -3
- package/build/components/editor/workspace/tabs.js +75 -13
- package/build/components/editor/workspace/template.d.ts +57 -0
- package/build/components/editor/workspace/template.js +1150 -0
- package/build/components/error/index.d.ts +1 -10
- package/build/components/error/index.js +64 -32
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +138 -77
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/action.d.ts +2 -2
- package/build/components/form/action.js +12 -9
- package/build/components/form/index.d.ts +6 -32
- package/build/components/form/index.js +2 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +14 -0
- package/build/components/group/index.js +18 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/heatmap/index.d.ts +5 -2
- package/build/components/heatmap/index.js +79 -88
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +3 -13
- package/build/components/highlight/index.js +95 -92
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +2 -10
- package/build/components/icon/index.js +12 -10
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +3 -16
- package/build/components/image/index.js +2 -2
- package/build/components/image/lazyload.d.ts +2 -1
- package/build/components/image/lazyload.js +29 -26
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +6 -7
- package/build/components/index.js +6 -7
- package/build/components/inline-edit/index.d.ts +5 -1
- package/build/components/inline-edit/index.js +35 -27
- package/build/components/inline-edit/rich.d.ts +10 -15
- package/build/components/inline-edit/rich.js +82 -1197
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.d.ts +3 -2
- package/build/components/inline-edit/status.js +23 -18
- package/build/components/input/field.d.ts +2 -1
- package/build/components/input/field.js +12 -9
- package/build/components/input/scrub.d.ts +4 -1
- package/build/components/input/scrub.js +25 -20
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +4 -2
- package/build/components/input/tag.js +105 -83
- package/build/components/json/index.d.ts +4 -3
- package/build/components/json/index.js +2 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +2 -1
- package/build/components/loading/index.js +6 -3
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.d.ts +2 -1
- package/build/components/marquee/index.js +92 -84
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/marquee/velocity.js +4 -3
- package/build/components/metric/flash.d.ts +2 -1
- package/build/components/metric/flash.js +26 -25
- package/build/components/metric/index.d.ts +13 -2
- package/build/components/metric/index.js +60 -56
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/spy.js +9 -6
- package/build/components/nav/toc.d.ts +4 -18
- package/build/components/nav/toc.js +9 -21
- package/build/components/nav/tree.d.ts +14 -13
- package/build/components/nav/tree.js +80 -65
- package/build/components/notification/index.d.ts +5 -3
- package/build/components/notification/index.js +30 -39
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +4 -5
- package/build/components/overlay/index.js +399 -196
- package/build/components/overlay/popup.d.ts +5 -6
- package/build/components/overlay/popup.js +80 -39
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/arrows.d.ts +2 -1
- package/build/components/pagination/arrows.js +48 -45
- package/build/components/pagination/cards.d.ts +5 -1
- package/build/components/pagination/cards.js +70 -47
- package/build/components/pagination/dots.d.ts +3 -1
- package/build/components/pagination/dots.js +29 -24
- package/build/components/pagination/index.d.ts +2 -1
- package/build/components/pagination/index.js +27 -28
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.d.ts +47 -0
- package/build/components/panels/dnd.js +114 -0
- package/build/components/panels/group.d.ts +36 -0
- package/build/components/panels/group.js +322 -0
- package/build/components/panels/index.d.ts +17 -0
- package/build/components/panels/index.js +524 -0
- package/build/components/panels/model.d.ts +64 -0
- package/build/components/panels/model.js +446 -0
- package/build/components/panels/resize.d.ts +9 -0
- package/build/components/panels/resize.js +123 -0
- package/build/components/panels/scss/index.scss +2 -0
- package/build/components/panels/subtree.d.ts +4 -0
- package/build/components/panels/subtree.js +44 -0
- package/build/components/preview/buttons.d.ts +12 -0
- package/build/components/preview/buttons.js +26 -0
- package/build/components/preview/code.d.ts +8 -0
- package/build/components/preview/code.js +18 -0
- package/build/components/preview/header.d.ts +8 -0
- package/build/components/preview/header.js +21 -0
- package/build/components/preview/index.d.ts +37 -0
- package/build/components/preview/index.js +123 -0
- package/build/components/preview/scss/index.scss +2 -0
- package/build/components/preview/source.d.ts +12 -0
- package/build/components/preview/source.js +79 -0
- package/build/components/preview/stage.d.ts +8 -0
- package/build/components/preview/stage.js +28 -0
- package/build/components/progress/index.d.ts +2 -1
- package/build/components/progress/index.js +30 -26
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.d.ts +2 -1
- package/build/components/progress/text.js +30 -30
- package/build/components/radio/index.d.ts +3 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.d.ts +2 -1
- package/build/components/range/filter.js +130 -132
- package/build/components/range/index.d.ts +2 -1
- package/build/components/range/index.js +17 -22
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.d.ts +3 -1
- package/build/components/relative-time/index.js +60 -48
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/expand.d.ts +44 -0
- package/build/components/select/expand.js +215 -0
- package/build/components/select/index.d.ts +19 -10
- package/build/components/select/index.js +130 -90
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +23 -0
- package/build/components/shell/index.js +290 -0
- package/build/components/shell/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +2 -3
- package/build/components/shortcut-recorder/index.js +49 -44
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +2 -714
- package/build/components/sortable/index.js +75 -64
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +3 -5
- package/build/components/story/index.js +122 -84
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/engine.js +51 -53
- package/build/components/surface-field/index.d.ts +2180 -2921
- package/build/components/surface-field/index.js +52 -51
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +1 -10
- package/build/components/surface-field/surface.js +42 -36
- package/build/components/switch/index.d.ts +3 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.d.ts +8 -1
- package/build/components/tasklist/index.js +66 -47
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +722 -2170
- package/build/components/textarea/index.js +67 -91
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/cards.d.ts +4 -0
- package/build/components/theme/cards.js +21 -0
- package/build/components/theme/index.d.ts +17 -4
- package/build/components/theme/index.js +40 -15
- package/build/components/theme/reveal.d.ts +6 -0
- package/build/components/theme/reveal.js +100 -0
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme/shared.d.ts +26 -0
- package/build/components/theme/shared.js +26 -0
- package/build/components/theme/swatches.d.ts +4 -0
- package/build/components/theme/swatches.js +21 -0
- package/build/components/theme/toggle.d.ts +15 -0
- package/build/components/theme/toggle.js +33 -0
- package/build/components/toast/index.d.ts +6 -2
- package/build/components/toast/index.js +68 -56
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +12 -2
- package/build/components/tooltip/menu.js +234 -176
- package/build/components/tooltip/onclick.d.ts +1 -10
- package/build/components/tooltip/onclick.js +25 -27
- package/build/components/tooltip/onhover.d.ts +8 -709
- package/build/components/tooltip/onhover.js +60 -60
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +5 -3
- package/build/components/tooltip/shared.js +201 -91
- package/build/components/tooltip/utilities.d.ts +10 -4
- package/build/components/tooltip/utilities.js +95 -18
- package/build/components/typewriter/index.d.ts +2855 -1413
- package/build/components/typewriter/index.js +17 -18
- package/build/components/typewriter/retype.d.ts +2 -1
- package/build/components/typewriter/retype.js +21 -18
- package/build/components/typewriter/rotate.d.ts +2 -1
- package/build/components/typewriter/rotate.js +41 -45
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.d.ts +2 -1
- package/build/components/uptime/index.js +51 -54
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.d.ts +719 -2161
- package/build/components/usage-meter/index.js +23 -20
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/background/scss/index.scss +2 -0
- package/build/modifiers/border/scss/index.scss +2 -0
- package/build/modifiers/box-shadow/scss/index.scss +2 -0
- package/build/modifiers/color/scss/index.scss +2 -0
- package/build/modifiers/disabled/scss/index.scss +2 -0
- package/build/modifiers/glass/index.d.ts +3 -2
- package/build/modifiers/glass/index.js +7 -7
- package/build/modifiers/glass/scss/index.scss +1 -1
- package/build/modifiers/scrollbar/index.d.ts +13 -13
- package/build/modifiers/scrollbar/index.js +74 -90
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.d.ts +1 -1
- package/build/shared/animation.js +6 -4
- package/build/shared/dispatch.d.ts +7 -0
- package/build/shared/dispatch.js +25 -0
- package/build/shared/drag.d.ts +4 -5
- package/build/shared/drag.js +4 -3
- package/build/shared/press.d.ts +1 -1
- package/build/shared/press.js +5 -3
- package/build/shared/resize.js +2 -25
- package/build/shared/transition.d.ts +1 -1
- package/build/shared/transition.js +2 -2
- package/build/shared/visible.js +1 -24
- package/package.json +10 -11
- package/scripts/code-editor-services.test.mjs +1 -1
- package/scripts/code-editor-workspace.test.mjs +28 -18
- package/scripts/panels.test.mjs +262 -0
- package/scripts/workspace-keybindings.test.mjs +1 -1
- package/scripts/workspace-session.test.mjs +8 -6
- package/scripts/workspace-status.test.mjs +9 -1
- package/scripts/workspace-tabs.test.mjs +5 -5
- package/src/components/accordion/index.ts +13 -12
- package/src/components/accordion/scss/index.scss +16 -13
- package/src/components/accordion/scss/variables.scss +13 -10
- package/src/components/announcement/scss/index.scss +16 -24
- package/src/components/announcement/scss/variables.scss +20 -10
- package/src/components/breadcrumb/index.ts +11 -13
- package/src/components/breadcrumb/scss/index.scss +52 -126
- package/src/components/breadcrumb/scss/variables.scss +64 -53
- package/src/components/button/copy.ts +35 -28
- package/src/components/button/faces.ts +2 -4
- package/src/components/button/index.ts +3 -7
- package/src/components/button/kbd.ts +42 -99
- package/src/components/button/morph/index.ts +6 -0
- package/src/components/button/morph/save.ts +55 -0
- package/src/components/button/morph/template.ts +133 -0
- package/src/components/button/scss/index.scss +263 -119
- package/src/components/button/scss/variables.scss +180 -120
- package/src/components/button/sidebar.ts +7 -7
- package/src/components/button/split.ts +11 -13
- package/src/components/capslock/index.ts +11 -10
- package/src/components/capslock/scss/index.scss +24 -26
- package/src/components/capslock/scss/variables.scss +32 -14
- package/src/components/card/scss/index.scss +12 -36
- package/src/components/card/scss/variables.scss +33 -76
- package/src/components/cc/index.ts +46 -42
- package/src/components/cc/scss/index.scss +142 -155
- package/src/components/cc/scss/variables.scss +234 -44
- package/src/components/chat/index.ts +10 -0
- package/src/components/{chat-minimap → chat/minimap}/index.ts +74 -28
- package/src/components/chat/minimap/scss/index.scss +111 -0
- package/src/components/chat/minimap/scss/variables.scss +182 -0
- package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
- package/src/components/checkbox/group.ts +5 -5
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/options.ts +2 -3
- package/src/components/checkbox/scss/index.scss +33 -35
- package/src/components/checkbox/scss/variables.scss +102 -56
- package/src/components/clipboard/index.ts +4 -3
- package/src/components/clipboard/write.ts +2 -1
- package/src/components/color-picker/index.ts +131 -69
- package/src/components/color-picker/scss/index.scss +138 -221
- package/src/components/color-picker/scss/variables.scss +205 -73
- package/src/components/command/index.ts +5 -860
- package/src/components/command/palette.ts +865 -0
- package/src/components/command/scss/index.scss +77 -99
- package/src/components/command/scss/variables.scss +129 -50
- package/src/components/command/search.ts +62 -0
- package/src/components/container/scss/index.scss +2 -4
- package/src/components/container/scss/variables.scss +0 -2
- package/src/components/counter/index.ts +91 -85
- package/src/components/counter/scss/index.scss +33 -41
- package/src/components/counter/scss/variables.scss +41 -19
- package/src/components/dock/index.ts +514 -42
- package/src/components/dock/scss/index.scss +288 -73
- package/src/components/dock/scss/variables.scss +301 -39
- package/src/components/editor/code/features.ts +4 -6
- package/src/components/editor/code/field.ts +1 -1
- package/src/components/editor/code/find.ts +1 -2
- package/src/components/editor/code/folding.ts +1 -1
- package/src/components/editor/code/html.ts +17 -0
- package/src/components/editor/code/keymap.ts +0 -1
- package/src/components/editor/code/minimap.ts +7 -5
- package/src/components/editor/code/rows.ts +1 -14
- package/src/components/editor/code/scss/_editor.scss +22 -54
- package/src/components/editor/code/scss/_features.scss +28 -70
- package/src/components/editor/code/scss/_minimap.scss +29 -0
- package/src/components/editor/code/scss/_services.scss +19 -30
- package/src/components/editor/code/scss/index.scss +1 -2
- package/src/components/editor/code/scss/variables.scss +217 -56
- package/src/components/editor/code/search.ts +1 -1
- package/src/components/editor/code/services/completion.ts +1 -0
- package/src/components/editor/code/services/hover.ts +1 -0
- package/src/components/editor/code/services/index.ts +1 -1
- package/src/components/editor/code/services/model.ts +1 -1
- package/src/components/editor/code/services/session.ts +1 -4
- package/src/components/editor/code/syntax.ts +1 -1
- package/src/components/editor/code/view.ts +0 -1
- package/src/components/editor/diffs/merge.ts +3 -3
- package/src/components/editor/diffs/render.ts +2 -17
- package/src/components/editor/diffs/scss/_diffs.scss +41 -129
- package/src/components/editor/diffs/scss/_merge.scss +9 -41
- package/src/components/editor/diffs/scss/index.scss +1 -1
- package/src/components/editor/diffs/scss/variables.scss +141 -13
- package/src/components/editor/diffs/view.ts +4 -5
- package/src/components/editor/markdown/editing.ts +1 -1
- package/src/components/editor/markdown/erase.ts +3 -3
- package/src/components/editor/markdown/format.ts +517 -0
- package/src/components/editor/markdown/html.ts +1 -1
- package/src/components/editor/markdown/index.ts +3 -67
- package/src/components/editor/markdown/inline.ts +9 -6
- package/src/components/editor/markdown/layout.ts +1 -1
- package/src/components/editor/markdown/model.ts +2 -17
- package/src/components/editor/markdown/render.ts +6 -8
- package/src/components/editor/markdown/scss/index.scss +157 -100
- package/src/components/editor/markdown/scss/variables.scss +241 -36
- package/src/components/editor/markdown/template.ts +69 -0
- package/src/components/editor/markdown/toolbar.ts +628 -0
- package/src/components/editor/markdown/view.ts +121 -10
- package/src/components/editor/tree/drag.ts +19 -15
- package/src/components/editor/tree/find.ts +5 -4
- package/src/components/editor/tree/icons.ts +1 -1
- package/src/components/editor/tree/index.ts +3 -3434
- package/src/components/editor/tree/scss/index.scss +261 -294
- package/src/components/editor/tree/scss/variables.scss +263 -65
- package/src/components/editor/tree/sticky.ts +1 -1
- package/src/components/editor/tree/template.ts +3436 -0
- package/src/components/editor/viewer/index.ts +3 -318
- package/src/components/editor/viewer/model.ts +1 -14
- package/src/components/editor/viewer/scss/_viewer.scss +31 -97
- package/src/components/editor/viewer/scss/variables.scss +56 -16
- package/src/components/editor/viewer/template.ts +323 -0
- package/src/components/editor/workspace/index.ts +4 -1480
- package/src/components/editor/workspace/model.ts +225 -185
- package/src/components/editor/workspace/navigate.ts +3 -6
- package/src/components/editor/workspace/scss/_keybindings.scss +165 -0
- package/src/components/editor/workspace/scss/_status.scss +65 -0
- package/src/components/editor/workspace/scss/_tabs.scss +60 -0
- package/src/components/editor/workspace/scss/index.scss +105 -330
- package/src/components/editor/workspace/scss/variables.scss +431 -0
- package/src/components/editor/workspace/session.ts +96 -53
- package/src/components/editor/workspace/shortcuts.ts +0 -2
- package/src/components/editor/workspace/status.ts +110 -80
- package/src/components/editor/workspace/statusbar.ts +38 -35
- package/src/components/editor/workspace/strip.ts +6 -5
- package/src/components/editor/workspace/tabs.ts +115 -15
- package/src/components/editor/workspace/template.ts +1477 -0
- package/src/components/error/index.ts +36 -15
- package/src/components/error/scss/index.scss +35 -64
- package/src/components/error/scss/variables.scss +29 -9
- package/src/components/filter/index.ts +147 -104
- package/src/components/filter/scss/index.scss +9 -2
- package/src/components/filter/scss/variables.scss +6 -6
- package/src/components/form/action.ts +1 -1
- package/src/components/form/index.ts +4 -1
- package/src/components/frame/scss/index.scss +37 -44
- package/src/components/frame/scss/variables.scss +31 -19
- package/src/components/grid/scss/index.scss +3 -2
- package/src/components/grid/scss/variables.scss +1 -1
- package/src/components/group/index.ts +24 -0
- package/src/components/group/scss/index.scss +6 -0
- package/src/components/group/scss/variables.scss +4 -0
- package/src/components/heatmap/index.ts +16 -46
- package/src/components/heatmap/scss/index.scss +48 -49
- package/src/components/heatmap/scss/variables.scss +74 -51
- package/src/components/highlight/index.ts +133 -120
- package/src/components/highlight/scss/index.scss +43 -45
- package/src/components/highlight/scss/variables.scss +70 -31
- package/src/components/icon/index.ts +7 -9
- package/src/components/icon/scss/index.scss +9 -2
- package/src/components/icon/scss/variables.scss +2 -0
- package/src/components/image/index.ts +4 -2
- package/src/components/image/lazyload.ts +1 -1
- package/src/components/image/scss/index.scss +18 -25
- package/src/components/image/scss/variables.scss +31 -12
- package/src/components/index.ts +6 -7
- package/src/components/inline-edit/index.ts +9 -7
- package/src/components/inline-edit/rich.ts +88 -1401
- package/src/components/inline-edit/scss/index.scss +125 -381
- package/src/components/inline-edit/scss/variables.scss +153 -92
- package/src/components/inline-edit/status.ts +8 -4
- package/src/components/input/field.ts +2 -2
- package/src/components/input/scrub.ts +1 -5
- package/src/components/input/scss/_field.scss +1 -1
- package/src/components/input/scss/_scrub.scss +21 -25
- package/src/components/input/scss/_tag.scss +28 -46
- package/src/components/input/scss/index.scss +1 -2
- package/src/components/input/scss/variables.scss +160 -77
- package/src/components/input/tag.ts +65 -56
- package/src/components/json/download.ts +2 -1
- package/src/components/json/index.ts +4 -1
- package/src/components/link/scss/index.scss +1 -5
- package/src/components/link/scss/variables.scss +5 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/scss/index.scss +7 -27
- package/src/components/loading/scss/variables.scss +7 -10
- package/src/components/marquee/index.ts +36 -31
- package/src/components/marquee/scss/index.scss +37 -29
- package/src/components/marquee/scss/variables.scss +35 -24
- package/src/components/marquee/velocity.ts +7 -3
- package/src/components/metric/flash.ts +3 -2
- package/src/components/metric/index.ts +5 -13
- package/src/components/metric/scss/_flash.scss +129 -144
- package/src/components/metric/scss/index.scss +38 -48
- package/src/components/metric/scss/variables.scss +196 -102
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +47 -49
- package/src/components/nav/scss/variables.scss +59 -64
- package/src/components/nav/spy.ts +15 -6
- package/src/components/nav/toc.ts +11 -31
- package/src/components/nav/tree.ts +77 -47
- package/src/components/notification/index.ts +115 -89
- package/src/components/notification/scss/index.scss +91 -75
- package/src/components/notification/scss/variables.scss +55 -38
- package/src/components/overlay/index.ts +211 -139
- package/src/components/overlay/popup.ts +89 -52
- package/src/components/overlay/scss/index.scss +152 -189
- package/src/components/overlay/scss/variables.scss +54 -23
- package/src/components/page/scss/variables.scss +1 -1
- package/src/components/pagination/cards.ts +1 -1
- package/src/components/pagination/index.ts +1 -7
- package/src/components/pagination/scss/index.scss +191 -7
- package/src/components/pagination/scss/variables.scss +128 -40
- package/src/components/panels/dnd.ts +190 -0
- package/src/components/panels/group.ts +429 -0
- package/src/components/panels/index.ts +676 -0
- package/src/components/panels/model.ts +675 -0
- package/src/components/panels/resize.ts +157 -0
- package/src/components/panels/scss/index.scss +379 -0
- package/src/components/panels/scss/variables.scss +197 -0
- package/src/components/panels/subtree.ts +65 -0
- package/src/components/preview/buttons.ts +48 -0
- package/src/components/preview/code.ts +28 -0
- package/src/components/preview/header.ts +23 -0
- package/src/components/preview/index.ts +149 -0
- package/src/components/preview/scss/index.scss +158 -0
- package/src/components/preview/scss/variables.scss +149 -0
- package/src/components/preview/source.ts +73 -0
- package/src/components/preview/stage.ts +33 -0
- package/src/components/progress/scss/index.scss +120 -15
- package/src/components/progress/scss/variables.scss +144 -41
- package/src/components/progress/text.ts +11 -9
- package/src/components/radio/index.ts +2 -4
- package/src/components/range/filter.ts +16 -22
- package/src/components/range/index.ts +2 -9
- package/src/components/range/scss/_filter.scss +300 -325
- package/src/components/range/scss/_slider.scss +32 -110
- package/src/components/range/scss/_vertical.scss +8 -20
- package/src/components/range/scss/index.scss +1 -4
- package/src/components/range/scss/variables.scss +361 -71
- package/src/components/relative-time/index.ts +22 -28
- package/src/components/relative-time/scss/index.scss +17 -21
- package/src/components/relative-time/scss/variables.scss +51 -30
- package/src/components/root/scss/index.scss +14 -20
- package/src/components/root/scss/variables.scss +24 -22
- package/src/components/select/expand.ts +272 -0
- package/src/components/select/index.ts +155 -110
- package/src/components/select/scss/index.scss +99 -54
- package/src/components/select/scss/variables.scss +141 -19
- package/src/components/shell/index.ts +344 -0
- package/src/components/shell/scss/index.scss +201 -0
- package/src/components/shell/scss/variables.scss +89 -0
- package/src/components/shortcut-recorder/index.ts +20 -20
- package/src/components/shortcut-recorder/scss/index.scss +78 -58
- package/src/components/shortcut-recorder/scss/variables.scss +48 -25
- package/src/components/sortable/index.ts +25 -27
- package/src/components/sortable/scss/index.scss +59 -63
- package/src/components/sortable/scss/variables.scss +81 -52
- package/src/components/story/index.ts +111 -83
- package/src/components/story/scss/index.scss +26 -107
- package/src/components/story/scss/variables.scss +52 -22
- package/src/components/surface-field/engine.ts +71 -72
- package/src/components/surface-field/index.ts +32 -37
- package/src/components/surface-field/scss/index.scss +36 -52
- package/src/components/surface-field/scss/variables.scss +89 -23
- package/src/components/surface-field/surface.ts +4 -3
- package/src/components/switch/index.ts +2 -4
- package/src/components/tasklist/index.ts +9 -8
- package/src/components/tasklist/scss/index.scss +28 -32
- package/src/components/tasklist/scss/variables.scss +31 -32
- package/src/components/textarea/index.ts +50 -91
- package/src/components/textarea/scss/index.scss +28 -21
- package/src/components/textarea/scss/variables.scss +17 -2
- package/src/components/theme/cards.ts +19 -0
- package/src/components/theme/index.ts +68 -19
- package/src/components/theme/reveal.ts +190 -0
- package/src/components/theme/scss/index.scss +122 -0
- package/src/components/theme/scss/variables.scss +155 -16
- package/src/components/theme/shared.ts +57 -0
- package/src/components/theme/swatches.ts +15 -0
- package/src/components/theme/toggle.ts +47 -0
- package/src/components/toast/index.ts +16 -17
- package/src/components/toast/scss/index.scss +193 -155
- package/src/components/toast/scss/variables.scss +195 -53
- package/src/components/tooltip/menu.ts +194 -117
- package/src/components/tooltip/onclick.ts +16 -21
- package/src/components/tooltip/onhover.ts +5 -8
- package/src/components/tooltip/scss/index.scss +561 -85
- package/src/components/tooltip/scss/variables.scss +243 -72
- package/src/components/tooltip/shared.ts +129 -85
- package/src/components/tooltip/utilities.ts +75 -24
- package/src/components/typewriter/index.ts +7 -10
- package/src/components/typewriter/rotate.ts +26 -31
- package/src/components/typewriter/scss/index.scss +133 -3
- package/src/components/typewriter/scss/variables.scss +56 -44
- package/src/components/uptime/index.ts +13 -19
- package/src/components/uptime/scss/index.scss +99 -126
- package/src/components/uptime/scss/variables.scss +101 -55
- package/src/components/usage-meter/index.ts +1 -1
- package/src/components/usage-meter/scss/index.scss +19 -22
- package/src/components/usage-meter/scss/variables.scss +80 -36
- package/src/css-utilities/absolute.scss +54 -52
- package/src/css-utilities/background.scss +29 -23
- package/src/css-utilities/border.scss +24 -21
- package/src/css-utilities/box-shadow.scss +33 -21
- package/src/css-utilities/color.scss +34 -22
- package/src/css-utilities/disabled.scss +12 -0
- package/src/css-utilities/flex.scss +55 -53
- package/src/css-utilities/font/geist/index.scss +2 -1
- package/src/css-utilities/font/montserrat/index.scss +1 -1
- package/src/css-utilities/group.scss +6 -0
- package/src/css-utilities/hidden.scss +22 -20
- package/src/css-utilities/icon.scss +33 -30
- package/src/css-utilities/layer.scss +12 -11
- package/src/css-utilities/reset.scss +27 -16
- package/src/css-utilities/skeleton.scss +4 -1
- package/src/css-utilities/surface.scss +217 -150
- package/src/css-utilities/text.scss +115 -115
- package/src/modifiers/background/scss/index.scss +1 -0
- package/src/modifiers/background/scss/variables.scss +22 -0
- package/src/modifiers/border/scss/index.scss +1 -0
- package/src/modifiers/border/scss/variables.scss +19 -0
- package/src/modifiers/box-shadow/scss/index.scss +1 -0
- package/src/modifiers/box-shadow/scss/variables.scss +12 -0
- package/src/modifiers/color/scss/index.scss +1 -0
- package/src/modifiers/color/scss/variables.scss +10 -0
- package/src/modifiers/disabled/scss/index.scss +5 -0
- package/src/modifiers/glass/index.ts +2 -1
- package/src/modifiers/glass/scss/index.scss +8 -11
- package/src/modifiers/glass/scss/variables.scss +1 -0
- package/src/modifiers/scrollbar/index.ts +94 -113
- package/src/modifiers/scrollbar/scss/index.scss +23 -4
- package/src/modifiers/scrollbar/scss/variables.scss +6 -5
- package/src/normalize/scss/index.scss +1 -0
- package/src/shared/anchor.ts +1 -1
- package/src/shared/animation.ts +9 -7
- package/src/shared/dispatch.ts +42 -0
- package/src/shared/drag.ts +10 -4
- package/src/shared/press.ts +7 -5
- package/src/shared/resize.ts +4 -35
- package/src/shared/scss/list.scss +1 -2
- package/src/shared/transition.ts +2 -2
- package/src/shared/visible.ts +3 -35
- package/src/tokens/scss/color.scss +50 -38
- package/src/tokens/scss/focus.scss +5 -0
- package/src/tokens/scss/font-size.scss +1 -2
- package/src/tokens/scss/index.scss +1 -1
- package/src/tokens/scss/scale.scss +4 -8
- package/src/tokens/scss/size.scss +3 -3
- package/src/tokens/scss/spacer.scss +1 -1
- package/src/tokens/scss/state.scss +25 -29
- package/storage/svg/code.svg +1 -1
- package/storage/svg/collapse.svg +1 -0
- package/storage/svg/grid.svg +1 -0
- package/storage/svg/stack.svg +1 -0
- package/vite-env.d.ts +1 -1
- package/vite.config.ts +10 -8
- package/build/components/banner/scss/index.scss +0 -2
- package/build/components/button/fan.d.ts +0 -24
- package/build/components/button/fan.js +0 -118
- package/build/components/button/hold.d.ts +0 -31
- package/build/components/button/hold.js +0 -115
- package/build/components/button/icons.d.ts +0 -6
- package/build/components/button/icons.js +0 -35
- package/build/components/button/loading.d.ts +0 -22
- package/build/components/button/loading.js +0 -60
- package/build/components/button/morph.d.ts +0 -22
- package/build/components/button/morph.js +0 -115
- package/build/components/card/expand.d.ts +0 -22
- package/build/components/card/expand.js +0 -118
- package/build/components/card/index.d.ts +0 -6
- package/build/components/card/index.js +0 -4
- package/build/components/chat-minimap/index.d.ts +0 -28
- package/build/components/chat-minimap/index.js +0 -223
- package/build/components/chat-minimap/scss/index.scss +0 -2
- package/build/components/clipboard/copy.d.ts +0 -27
- package/build/components/clipboard/copy.js +0 -48
- package/build/components/copy/index.d.ts +0 -23
- package/build/components/copy/index.js +0 -61
- package/build/components/copy/scss/index.scss +0 -2
- package/build/components/datalist/index.d.ts +0 -42
- package/build/components/datalist/index.js +0 -186
- package/build/components/datalist/scss/index.scss +0 -2
- package/build/components/highlight/easing.d.ts +0 -2
- package/build/components/highlight/easing.js +0 -19
- package/build/components/inline-edit/format.d.ts +0 -29
- package/build/components/inline-edit/format.js +0 -112
- package/build/components/inline-edit/history.d.ts +0 -14
- package/build/components/inline-edit/history.js +0 -40
- package/build/components/inline-edit/markdown.d.ts +0 -7
- package/build/components/inline-edit/markdown.js +0 -314
- package/build/components/inline-edit/model.d.ts +0 -61
- package/build/components/inline-edit/model.js +0 -192
- package/build/components/inline-edit/selection.d.ts +0 -7
- package/build/components/inline-edit/selection.js +0 -114
- package/build/components/inline-edit/utilities.d.ts +0 -4
- package/build/components/inline-edit/utilities.js +0 -12
- package/build/components/pull-to-refresh/index.d.ts +0 -18
- package/build/components/pull-to-refresh/index.js +0 -222
- package/build/components/pull-to-refresh/scss/index.scss +0 -2
- package/build/components/sticky-header/index.d.ts +0 -2166
- package/build/components/sticky-header/index.js +0 -58
- package/build/components/sticky-header/scss/index.scss +0 -2
- package/build/components/theme-picker/index.d.ts +0 -52
- package/build/components/theme-picker/index.js +0 -167
- package/build/components/theme-picker/scss/index.scss +0 -2
- package/src/components/banner/scss/index.scss +0 -37
- package/src/components/banner/scss/variables.scss +0 -16
- package/src/components/button/fan.ts +0 -170
- package/src/components/button/hold.ts +0 -154
- package/src/components/button/icons.ts +0 -21
- package/src/components/button/loading.ts +0 -77
- package/src/components/button/morph.ts +0 -153
- package/src/components/button/scss/_fan.scss +0 -121
- package/src/components/button/scss/_kbd.scss +0 -11
- package/src/components/button/scss/_morph.scss +0 -107
- package/src/components/button/scss/_sidebar.scss +0 -61
- package/src/components/button/scss/_split.scss +0 -53
- package/src/components/card/expand.ts +0 -141
- package/src/components/card/index.ts +0 -8
- package/src/components/card/scss/_expand.scss +0 -234
- package/src/components/chat-minimap/scss/index.scss +0 -148
- package/src/components/chat-minimap/scss/variables.scss +0 -97
- package/src/components/clipboard/copy.ts +0 -49
- package/src/components/copy/index.ts +0 -69
- package/src/components/copy/scss/index.scss +0 -52
- package/src/components/copy/scss/variables.scss +0 -19
- package/src/components/datalist/index.ts +0 -256
- package/src/components/datalist/scss/index.scss +0 -104
- package/src/components/datalist/scss/variables.scss +0 -33
- package/src/components/editor/workspace/scss/keybindings.scss +0 -190
- package/src/components/editor/workspace/scss/status.scss +0 -122
- package/src/components/editor/workspace/scss/tabs.scss +0 -56
- package/src/components/highlight/easing.ts +0 -33
- package/src/components/inline-edit/format.ts +0 -183
- package/src/components/inline-edit/history.ts +0 -71
- package/src/components/inline-edit/markdown.ts +0 -485
- package/src/components/inline-edit/model.ts +0 -366
- package/src/components/inline-edit/selection.ts +0 -188
- package/src/components/inline-edit/utilities.ts +0 -18
- package/src/components/pagination/scss/_arrows.scss +0 -69
- package/src/components/pagination/scss/_cards.scss +0 -121
- package/src/components/pagination/scss/_dots.scss +0 -64
- package/src/components/progress/scss/_text.scss +0 -135
- package/src/components/pull-to-refresh/index.ts +0 -316
- package/src/components/pull-to-refresh/scss/index.scss +0 -128
- package/src/components/pull-to-refresh/scss/variables.scss +0 -38
- package/src/components/sticky-header/index.ts +0 -78
- package/src/components/sticky-header/scss/index.scss +0 -140
- package/src/components/sticky-header/scss/variables.scss +0 -46
- package/src/components/theme-picker/index.ts +0 -231
- package/src/components/theme-picker/scss/index.scss +0 -264
- package/src/components/tooltip/scss/_center.scss +0 -9
- package/src/components/tooltip/scss/_east.scss +0 -33
- package/src/components/tooltip/scss/_menu.scss +0 -367
- package/src/components/tooltip/scss/_north.scss +0 -33
- package/src/components/tooltip/scss/_shared.scss +0 -109
- package/src/components/tooltip/scss/_south.scss +0 -33
- package/src/components/tooltip/scss/_west.scss +0 -33
- package/src/components/typewriter/scss/_caret.scss +0 -34
- package/src/components/typewriter/scss/_retype.scss +0 -68
- package/src/components/typewriter/scss/_rotate.scss +0 -29
- package/src/tokens/scss/transition.scss +0 -21
- /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
- /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.highlight{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.highlight{--background:var(--background-active)}.highlight:not(.--active):hover{--background:var(--background-hover)}.highlight:not(.--active):active{--background:var(--background-pressed)}@property --slide-height{syntax:"<length>";inherits:false;initial-value:0}@property --slide-width{syntax:"<length>";inherits:false;initial-value:0}@property --slide-x{syntax:"<length>";inherits:false;initial-value:0}@property --slide-y{syntax:"<length>";inherits:false;initial-value:0}.highlight{--background-
|
|
1
|
+
@layer components{.highlight{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.highlight{--background:var(--background-active)}.highlight:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.highlight:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}@property --slide-height{syntax:"<length>";inherits:false;initial-value:0}@property --slide-width{syntax:"<length>";inherits:false;initial-value:0}@property --slide-x{syntax:"<length>";inherits:false;initial-value:0}@property --slide-y{syntax:"<length>";inherits:false;initial-value:0}.highlight{--background-opacity:90%;--border-cap-radius:calc(var(--border-width) / 2);--border-color:currentColor;--border-inset-horizontal:calc(var(--size-100) / 2);--border-inset-vertical:calc(var(--size-100) / 2);--border-offset:0px;--border-width:var(--border-width-500);--fade-duration:.16s;--glide:var(--glide-duration);--glide-duration:.16s;--glide-duration-active:var(--glide-duration);--glide-tail:var(--glide-tail-duration);--glide-tail-duration:var(--glide-duration);--glide-tail-duration-active:var(--glide-duration-active);--glide-timing-function:linear(0, .035, .123, .239, .367, .494, .611, .715, .803, .874, .929, .971, 1, 1.02, 1.032, 1.037, 1.038, 1.037, 1.033, 1.028, 1.024, 1.019, 1.014, 1.01, 1);--glide-timing-function-edge:cubic-bezier(.22, 1, .36, 1);--inset-horizontal:0px;--inset-vertical:0px;--scale-default:.92}@media (prefers-reduced-motion:reduce){.highlight{--glide:0s;--glide-tail:0s;--scale-default:1}}.highlight--border-bottom,.highlight--border-top{--inset-vertical:var(--border-inset-vertical)}.highlight--border-left,.highlight--border-right{--inset-horizontal:var(--border-inset-horizontal)}.highlight--hover{--background:var(--background-hover)}:where(:has(:active):not(:has(.--disabled:active)))>.highlight--hover{--background:var(--background-pressed)}.highlight--rail{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--border-color:var(--color-primary-500);--border-offset:calc(var(--rail-width) * -1);--scale-default:1}.highlight-rail{--rail-color:var(--surface-border-default);--rail-width:var(--border-width-400)}.highlight.--active{--glide:var(--glide-duration-active);--glide-tail:var(--glide-tail-duration-active)}@media (prefers-reduced-motion:reduce){.highlight.--active{--glide:0s;--glide-tail:0s}}.highlight{border-radius:var(--border-radius);height:calc(var(--height) - var(--inset-vertical) * 2 + var(--slide-height));opacity:0;pointer-events:none;scale:var(--scale-default);transition:background var(--transition-duration) var(--transition-timing-function), border-radius var(--glide) var(--glide-timing-function), display var(--fade-duration) allow-discrete, opacity var(--fade-duration) var(--transition-timing-function), scale var(--fade-duration) var(--transition-timing-function);translate:calc(var(--x) + var(--inset-horizontal) + var(--slide-x)) calc(var(--y) + var(--inset-vertical) + var(--slide-y));width:calc(var(--width) - var(--inset-horizontal) * 2 + var(--slide-width));z-index:-1;display:none;position:absolute;inset:0 auto auto 0}@media (prefers-reduced-motion:reduce){.highlight{transition:background var(--transition-duration) var(--transition-timing-function), display var(--fade-duration) allow-discrete, opacity var(--fade-duration) var(--transition-timing-function)}}.highlight--border:after{background:var(--border-color);border-radius:var(--border-cap-radius);content:"";position:absolute}.highlight--border-bottom:after{bottom:calc(var(--border-offset) - var(--inset-vertical));height:var(--border-width);inset-inline:calc(var(--inset-horizontal) * -1)}.highlight--border-top:after{top:calc(var(--border-offset) - var(--inset-vertical));height:var(--border-width);inset-inline:calc(var(--inset-horizontal) * -1)}.highlight--border-left:after{left:calc(var(--border-offset) - var(--inset-horizontal));inset-block:calc(var(--inset-vertical) * -1);width:var(--border-width)}.highlight--border-right:after{right:calc(var(--border-offset) - var(--inset-horizontal));inset-block:calc(var(--inset-vertical) * -1);width:var(--border-width)}.highlight--fill{background:color-mix(in srgb, var(--background) var(--background-opacity), transparent)}.highlight--visible{opacity:1;display:block;scale:1}@starting-style{.highlight--visible{opacity:0;scale:var(--scale-default)}}.highlight-rail--bottom{border-bottom:var(--rail-width) solid var(--rail-color)}.highlight-rail--left{border-left:var(--rail-width) solid var(--rail-color)}.highlight-rail--right{border-right:var(--rail-width) solid var(--rail-color)}.highlight-rail--top{border-top:var(--rail-width) solid var(--rail-color)}:where(:has(>.highlight)){isolation:isolate;position:relative}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
3
|
import './scss/index.scss';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
(): template_u1.Renderable<any>;
|
|
5
|
-
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
6
|
-
<T extends string>(content: T): template_u1.Renderable<any>;
|
|
7
|
-
(attributes: template_u1.Attributes, content?: string | undefined): template_u1.Renderable<any>;
|
|
8
|
-
bind(context: {
|
|
9
|
-
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
10
|
-
content?: string | undefined;
|
|
11
|
-
}): any;
|
|
12
|
-
};
|
|
4
|
+
declare const _default: template_u1.Factory<Attributes, string, template_u1.Renderable<any>, {}>;
|
|
13
5
|
export default _default;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
-
const template_1lt0nhw1 = template_u1.template(`<div
|
|
5
|
-
export default component((attributes, href)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
template_u1.setProperties(
|
|
4
|
+
const template_1lt0nhw1 = template_u1.template(`<div><svg><use />`, true);
|
|
5
|
+
export default component(function (attributes, href) {
|
|
6
|
+
{
|
|
7
|
+
let root_1lt0nhw0 = template_1lt0nhw1(), element_1lt0nhw2 = root_1lt0nhw0.firstElementChild.firstElementChild;
|
|
8
|
+
template_u1.setProperty(element_1lt0nhw2, 'href', href);
|
|
9
|
+
let attributes_1lt0nhw3 = this?.attributes;
|
|
10
|
+
template_u1.setProperties(root_1lt0nhw0, attributes_1lt0nhw3, true);
|
|
11
|
+
let attributes_1lt0nhw4 = attributes;
|
|
12
|
+
template_u1.setProperties(root_1lt0nhw0, attributes_1lt0nhw4, true);
|
|
13
|
+
template_u1.setClass(root_1lt0nhw0, ["icon", attributes_1lt0nhw3?.class, attributes_1lt0nhw4?.class]);
|
|
14
|
+
template_u1.setStyle(root_1lt0nhw0, ["", attributes_1lt0nhw3?.style, attributes_1lt0nhw4?.style]);
|
|
13
15
|
return root_1lt0nhw0;
|
|
14
|
-
}
|
|
16
|
+
}
|
|
15
17
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.icon{--color:inherit;--height:var(--size);--size:var(--size-400);--width:var(--size)}.icon--rotate{--rotate:0deg}.icon{color:var(--color);flex:0 0 var(--width);height:var(--height);width:var(--width);display:flex;position:relative}.icon--rotate{rotate:var(--rotate);transition:rotate var(--duration
|
|
1
|
+
@layer components{.icon{--color:inherit;--height:var(--size);--size:var(--size-400);--width:var(--size)}.icon--rotate{--rotate:0deg;--transition-duration:.13s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.icon{color:var(--color);flex:0 0 var(--width);height:var(--height);width:var(--width);display:flex;position:relative}:where(.icon){fill:currentColor}.icon--rotate{rotate:var(--rotate);transition:rotate var(--transition-duration) var(--transition-timing-function)}@media (prefers-reduced-motion:reduce){.icon--rotate{transition:none}}.icon svg{width:100%;height:100%}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import lazyload from './lazyload.js';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
declare const
|
|
4
|
-
lazyload:
|
|
5
|
-
alt: string;
|
|
6
|
-
crossorigin?: 'anonymous' | 'use-credentials';
|
|
7
|
-
fetchpriority?: 'auto' | 'high' | 'low';
|
|
8
|
-
height: number;
|
|
9
|
-
loading?: 'eager' | 'lazy';
|
|
10
|
-
placeholder: string;
|
|
11
|
-
referrerpolicy?: ReferrerPolicy;
|
|
12
|
-
sizes?: string;
|
|
13
|
-
src: string;
|
|
14
|
-
srcset?: string;
|
|
15
|
-
width: number;
|
|
16
|
-
}) => DocumentFragment | Text;
|
|
3
|
+
declare const image: {
|
|
4
|
+
lazyload: typeof lazyload;
|
|
17
5
|
};
|
|
18
|
-
export default
|
|
19
|
-
export { lazyload };
|
|
6
|
+
export default image;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
1
2
|
import { type Attributes } from '@esportsplus/template';
|
|
2
3
|
export default _default;
|
|
3
4
|
declare function _default({ alt, crossorigin, fetchpriority, height, loading, placeholder, referrerpolicy, sizes, src, srcset, width, ...attributes }: Attributes & {
|
|
@@ -12,4 +13,4 @@ declare function _default({ alt, crossorigin, fetchpriority, height, loading, pl
|
|
|
12
13
|
src: string;
|
|
13
14
|
srcset?: string;
|
|
14
15
|
width: number;
|
|
15
|
-
}):
|
|
16
|
+
}): template_u1.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
1
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
-
|
|
4
|
-
const
|
|
2
|
+
import * as template_u1 from '@esportsplus/template';
|
|
3
|
+
const template_1sfe53m2 = template_u1.template(`<div><img decoding='async' draggable='false' />`, true);
|
|
4
|
+
const template_1sfe53m5 = template_u1.template(`<img alt='' aria-hidden='true' decoding='async' draggable='false' />`, true);
|
|
5
5
|
class ReactiveObject_1sfe53m0 extends reactivity_u0.ReactiveObject {
|
|
6
6
|
#covered = this[reactivity_u0.SIGNAL](true);
|
|
7
7
|
#status;
|
|
@@ -29,31 +29,32 @@ export default ({ alt, crossorigin, fetchpriority, height, loading = 'lazy', pla
|
|
|
29
29
|
state.covered = false;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
let root_1sfe53m1 = template_1sfe53m2(), element_1sfe53m3 = root_1sfe53m1.
|
|
34
|
-
new template_u1.EffectSlot(
|
|
35
|
-
let
|
|
36
|
-
template_u1.setProperty(
|
|
37
|
-
template_u1.delegate(
|
|
38
|
-
template_u1.delegate(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
template_u1.setProperty(
|
|
43
|
-
template_u1.setProperty(
|
|
44
|
-
template_u1.setProperty(
|
|
45
|
-
template_u1.setProperty(
|
|
46
|
-
template_u1.
|
|
47
|
-
template_u1.
|
|
32
|
+
{
|
|
33
|
+
let root_1sfe53m1 = template_1sfe53m2(), element_1sfe53m3 = root_1sfe53m1.firstElementChild;
|
|
34
|
+
new template_u1.EffectSlot(root_1sfe53m1, () => state.covered && (() => {
|
|
35
|
+
let root_1sfe53m4 = template_1sfe53m5();
|
|
36
|
+
template_u1.setProperty(root_1sfe53m4, 'src', placeholder);
|
|
37
|
+
template_u1.delegate(root_1sfe53m4, 'transitioncancel', uncover);
|
|
38
|
+
template_u1.delegate(root_1sfe53m4, 'transitionend', uncover);
|
|
39
|
+
template_u1.setClass(root_1sfe53m4, ["image-lazyload-placeholder"]);
|
|
40
|
+
return root_1sfe53m4;
|
|
41
|
+
})(), 1);
|
|
42
|
+
template_u1.setProperty(element_1sfe53m3, 'alt', alt);
|
|
43
|
+
template_u1.setProperty(element_1sfe53m3, 'height', height);
|
|
44
|
+
template_u1.setProperty(element_1sfe53m3, 'loading', loading);
|
|
45
|
+
template_u1.setProperty(element_1sfe53m3, 'src', src);
|
|
46
|
+
template_u1.setProperty(element_1sfe53m3, 'width', width);
|
|
47
|
+
template_u1.setProperties(element_1sfe53m3, source);
|
|
48
|
+
template_u1.onconnect(element_1sfe53m3, (img) => {
|
|
48
49
|
if (img.complete && img.naturalWidth > 0) {
|
|
49
50
|
state.covered = false;
|
|
50
51
|
state.status = 'ready';
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
|
-
template_u1.
|
|
54
|
+
template_u1.direct(element_1sfe53m3, 'error', () => {
|
|
54
55
|
state.status = 'error';
|
|
55
56
|
});
|
|
56
|
-
template_u1.
|
|
57
|
+
template_u1.direct(element_1sfe53m3, 'load', function () {
|
|
57
58
|
if (state.status === 'ready') {
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
@@ -63,10 +64,12 @@ export default ({ alt, crossorigin, fetchpriority, height, loading = 'lazy', pla
|
|
|
63
64
|
state.status = 'error';
|
|
64
65
|
});
|
|
65
66
|
});
|
|
66
|
-
template_u1.
|
|
67
|
-
template_u1.
|
|
68
|
-
|
|
69
|
-
template_u1.
|
|
67
|
+
template_u1.setClass(element_1sfe53m3, ["image-lazyload-source"]);
|
|
68
|
+
template_u1.setProperty(root_1sfe53m1, 'aria-busy', () => String(state.status === 'loading'));
|
|
69
|
+
let attributes_1sfe53m6 = attributes;
|
|
70
|
+
template_u1.setProperties(root_1sfe53m1, attributes_1sfe53m6, true);
|
|
71
|
+
template_u1.setClass(root_1sfe53m1, ["image-lazyload", attributes_1sfe53m6?.class, () => `image-lazyload--${state.status}`]);
|
|
72
|
+
template_u1.setStyle(root_1sfe53m1, ["", `--aspect-ratio: ${width} / ${height}`, attributes_1sfe53m6?.style]);
|
|
70
73
|
return root_1sfe53m1;
|
|
71
|
-
}
|
|
74
|
+
}
|
|
72
75
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.image-lazyload-placeholder,.image-lazyload-source{position:absolute;inset:0}.image-lazyload{--surface-background-active: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-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) calc(c * clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .005) c h),oklch(from var(--surface-background-default) calc(l + .01) 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 - .04) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .04) c h),oklch(from var(--surface-background-active) min(1, l + .06) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .04) c h),oklch(from var(--surface-background-default) min(1, l + .06) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .04) c h),oklch(from var(--surface-background-hover) min(1, l + .06) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .04) c h),oklch(from var(--surface-background-pressed) min(1, l + .06) c h));--surface-shadow-active:var(--surface-shadow-hover);--surface-shadow-color:light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-cast:light-dark(oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .08),oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-default:0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 0, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 5 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 1, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 9 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 25 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -7 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, var(--surface-shadow-weight) - 0, 1) + .05 * clamp(0, var(--surface-shadow-weight) - 2, 1) + .15 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -8 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -10 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -.1 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10));--surface-shadow-hover:0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 5 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 1, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 9 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 25 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -7 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + .15 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -8 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -.1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10));--surface-shadow-pressed:0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 5 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 1, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 9 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 25 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -7 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + .15 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -8 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -.1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10));--surface-shadow-weight:0}@container style(--surface-level:-2){.image-lazyload{--surface-level:-3}}@container style(--surface-level:-1){.image-lazyload{--surface-level:-2}}@container style(--surface-level:0){.image-lazyload{--surface-level:-1}}@container style(--surface-level:1){.image-lazyload{--surface-level:0}}@container style(--surface-level:2){.image-lazyload{--surface-level:1}}@container style(--surface-level:3){.image-lazyload{--surface-level:2}}@container style(--surface-level:4){.image-lazyload{--surface-level:3}}@container style(--surface-level:5){.image-lazyload{--surface-level:4}}@container style(--surface-level:6){.image-lazyload{--surface-level:5}}.image-lazyload{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.image-lazyload{--background:var(--background-active)}.image-lazyload:not(.--active):hover{--background:var(--background-hover)}.image-lazyload:not(.--active):active{--background:var(--background-pressed)}.image{--background:transparent;--border-radius:var(--border-radius-300);--height:var(--size);--size:var(--size-700);--width:var(--size)}.image--stack{--stack-gap:var(--border-width-500);--stack-overlap:calc(var(--width) / 4)}.image--stack:has(+.image--stack){--stack-cut:calc(var(--stack-radius) + var(--stack-gap));--stack-radius:min(var(--border-radius), var(--height) / 2, var(--width) / 2);--stack-x:calc(100% - var(--stack-overlap) + var(--stack-radius))}.image--status{--status-color:var(--color-green-400);--status-gap:var(--border-width-500);--status-mask:radial-gradient(circle at calc(100% - var(--status-size) / 2) calc(100% - var(--status-size) / 2), #000 calc(var(--status-size) / 2 - .5px), transparent calc(var(--status-size) / 2 + .5px) calc(var(--status-size) / 2 + var(--status-gap) - .5px), #000 calc(var(--status-size) / 2 + var(--status-gap) + .5px));--status-size:calc(min(var(--height), var(--width)) * .3)}.image-lazyload{--aspect-ratio:auto;--background-default:var(--surface-background-default);--border-radius:var(--border-radius-600);--timing-function:var(--easing-out);--transition-duration:.65s}.image{background:var(--background);border-radius:var(--border-radius);height:var(--height);width:var(--width);background-position:50%;background-size:cover;position:relative}.image--stack+.image--stack{margin-left:calc(var(--stack-overlap) * -1)}.image--stack:has(+.image--stack){mask-composite:subtract,add,add,add,add;mask-image:var(--status-mask,linear-gradient(#000 0 0)), linear-gradient(to right, transparent var(--stack-x), #000 0), linear-gradient(to right, transparent calc(100% - var(--stack-overlap) - var(--stack-gap)), #000 0), radial-gradient(circle at var(--stack-x) var(--stack-radius), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px)), radial-gradient(circle at var(--stack-x) calc(100% - var(--stack-radius)), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px));mask-position:0 0,0 0,0,0 0,0 0;mask-repeat:no-repeat;mask-size:100% 100%, 100% 100%, 100% calc(100% - var(--stack-radius) * 2), 100% 100%, 100% 100%}.image--status{mask-clip:no-clip;mask-image:var(--status-mask)}.image--status:after{background:var(--status-color);content:"";height:calc(var(--status-size) + 1px);width:calc(var(--status-size) + 1px);border-radius:100%;position:absolute;bottom:-.5px;right:-.5px}.image-lazyload{aspect-ratio:var(--aspect-ratio);background:var(--background);border-radius:var(--border-radius);isolation:isolate;width:100%;position:relative;overflow:hidden}.image-lazyload--error{--source-visibility:hidden}.image-lazyload--ready{--placeholder-opacity:0}.image-lazyload-placeholder{opacity:var(--placeholder-opacity,1);pointer-events:none;transition:opacity var(--transition-duration) var(--timing-function);z-index:1}.image-lazyload-placeholder,.image-lazyload-source{object-fit:cover;-webkit-user-select:none;user-select:none;width:100%;height:100%}.image-lazyload-source{visibility:var(--source-visibility);z-index:0}}
|
|
1
|
+
@layer components{.image-lazyload-placeholder,.image-lazyload-source{position:absolute;inset:0}.image-lazyload{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.image-lazyload{--background:var(--background-active)}.image-lazyload:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.image-lazyload:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.image-lazyload{--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))}@container style(--surface-level:-2){.image-lazyload{--surface-level:-3}}@container style(--surface-level:-1){.image-lazyload{--surface-level:-2}}@container style(--surface-level:0){.image-lazyload{--surface-level:-1}}@container style(--surface-level:1){.image-lazyload{--surface-level:0}}@container style(--surface-level:2){.image-lazyload{--surface-level:1}}@container style(--surface-level:3){.image-lazyload{--surface-level:2}}@container style(--surface-level:4){.image-lazyload{--surface-level:3}}@container style(--surface-level:5){.image-lazyload{--surface-level:4}}@container style(--surface-level:6){.image-lazyload{--surface-level:5}}.image{--background:transparent;--border-radius:var(--border-radius-300);--height:var(--size);--size:var(--size-700);--width:var(--size)}.image--stack{--border-radius:var(--border-radius-400);--gap-horizontal:var(--border-width-500);--overlap:calc(var(--width) / 4)}.image--stack:has(+.image--stack){--corner:min(var(--border-radius), var(--height) / 2, var(--width) / 2);--cut:calc(var(--corner) + var(--gap-horizontal));--mask:linear-gradient(#000 0 0);--x:calc(100% - var(--overlap) + var(--corner))}.image--status{--mask:radial-gradient(circle at calc(100% - var(--status-size) / 2) calc(100% - var(--status-size) / 2), #000 calc(var(--status-size) / 2 - .5px), transparent calc(var(--status-size) / 2 + .5px) calc(var(--status-size) / 2 + var(--status-gap) - .5px), #000 calc(var(--status-size) / 2 + var(--status-gap) + .5px));--status-color:var(--color-green-400);--status-gap:var(--border-width-500);--status-size:calc(min(var(--height), var(--width)) * .3)}.image-lazyload{--aspect-ratio:auto;--background-default:var(--surface-background-default);--border-radius:var(--border-radius-600);--transition-duration:.65s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.image-lazyload--error .image-lazyload-source{--visibility:hidden}.image-lazyload--ready .image-lazyload-placeholder{--opacity:0}.image-lazyload-placeholder{--opacity:1}.image{background:var(--background);border-radius:var(--border-radius);height:var(--height);width:var(--width);background-position:50%;background-size:cover;position:relative}.image--stack+.image--stack{margin-left:calc(var(--overlap) * -1)}.image--stack:has(+.image--stack){mask-composite:subtract,add,add,add,add;mask-image:var(--mask), linear-gradient(to right, transparent var(--x), #000 0), linear-gradient(to right, transparent calc(100% - var(--overlap) - var(--gap-horizontal)), #000 0), radial-gradient(circle at var(--x) var(--corner), #000 calc(var(--cut) - .5px), transparent calc(var(--cut) + .5px)), radial-gradient(circle at var(--x) calc(100% - var(--corner)), #000 calc(var(--cut) - .5px), transparent calc(var(--cut) + .5px));mask-position:0 0,0 0,0,0 0,0 0;mask-repeat:no-repeat;mask-size:100% 100%, 100% 100%, 100% calc(100% - var(--corner) * 2), 100% 100%, 100% 100%}.image--status{mask-clip:no-clip;mask-image:var(--mask)}.image--status:after{background:var(--status-color);content:"";height:calc(var(--status-size) + 1px);width:calc(var(--status-size) + 1px);border-radius:100%;position:absolute;bottom:-.5px;right:-.5px}.image-lazyload{aspect-ratio:var(--aspect-ratio);background:var(--background);border-radius:var(--border-radius);isolation:isolate;width:100%;position:relative;overflow:hidden}.image-lazyload-placeholder{opacity:var(--opacity);pointer-events:none;transition:opacity var(--transition-duration) var(--transition-timing-function);z-index:1}.image-lazyload-placeholder,.image-lazyload-source{object-fit:cover;-webkit-user-select:none;user-select:none;width:100%;height:100%}.image-lazyload-source{visibility:var(--visibility);z-index:0}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -3,21 +3,19 @@ export { default as announcement } from './announcement/index.js';
|
|
|
3
3
|
export { default as breadcrumb } from './breadcrumb/index.js';
|
|
4
4
|
export { default as button } from './button/index.js';
|
|
5
5
|
export { default as capslock } from './capslock/index.js';
|
|
6
|
-
export { default as card } from './card/index.js';
|
|
7
6
|
export { default as cc } from './cc/index.js';
|
|
8
|
-
export { default as
|
|
7
|
+
export { default as chat } from './chat/index.js';
|
|
9
8
|
export { default as checkbox } from './checkbox/index.js';
|
|
10
9
|
export { default as clipboard } from './clipboard/index.js';
|
|
11
10
|
export { default as colorPicker } from './color-picker/index.js';
|
|
12
11
|
export { default as command } from './command/index.js';
|
|
13
|
-
export { default as copy } from './copy/index.js';
|
|
14
12
|
export { default as counter } from './counter/index.js';
|
|
15
|
-
export { default as datalist } from './datalist/index.js';
|
|
16
13
|
export { default as dock } from './dock/index.js';
|
|
17
14
|
export { createFileTreeIconResolver, default as editor, EditorDocument, EditorWorkspaceModel, FileTreeDecorations, FileTreeEditor, FileTreeElements, FileTreeHistory, fileTreeIcon, isWorkspaceCodeEditor, resolveFileTreeIcon } from './editor/index.js';
|
|
18
15
|
export { default as error } from './error/index.js';
|
|
19
16
|
export { default as filter } from './filter/index.js';
|
|
20
17
|
export { default as form } from './form/index.js';
|
|
18
|
+
export { default as group } from './group/index.js';
|
|
21
19
|
export { default as heatmap } from './heatmap/index.js';
|
|
22
20
|
export { default as highlight } from './highlight/index.js';
|
|
23
21
|
export { default as icon } from './icon/index.js';
|
|
@@ -33,22 +31,23 @@ export { default as notification } from './notification/index.js';
|
|
|
33
31
|
export { default as number } from './number/index.js';
|
|
34
32
|
export { default as overlay } from './overlay/index.js';
|
|
35
33
|
export { default as pagination } from './pagination/index.js';
|
|
34
|
+
export { default as panels } from './panels/index.js';
|
|
35
|
+
export { default as preview } from './preview/index.js';
|
|
36
36
|
export { default as progress } from './progress/index.js';
|
|
37
|
-
export { default as pullToRefresh } from './pull-to-refresh/index.js';
|
|
38
37
|
export { default as radio } from './radio/index.js';
|
|
39
38
|
export { default as range } from './range/index.js';
|
|
40
39
|
export { default as relativeTime } from './relative-time/index.js';
|
|
40
|
+
export { default as search } from './command/search.js';
|
|
41
41
|
export { default as select } from './select/index.js';
|
|
42
|
+
export { default as shell } from './shell/index.js';
|
|
42
43
|
export { default as shortcutRecorder } from './shortcut-recorder/index.js';
|
|
43
44
|
export { default as sortable } from './sortable/index.js';
|
|
44
|
-
export { default as stickyHeader } from './sticky-header/index.js';
|
|
45
45
|
export { default as story } from './story/index.js';
|
|
46
46
|
export { default as surfaceField } from './surface-field/index.js';
|
|
47
47
|
export { default as switch } from './switch/index.js';
|
|
48
48
|
export { default as tasklist } from './tasklist/index.js';
|
|
49
49
|
export { default as textarea } from './textarea/index.js';
|
|
50
50
|
export { default as theme } from './theme/index.js';
|
|
51
|
-
export { default as themePicker } from './theme-picker/index.js';
|
|
52
51
|
export { default as toaster } from './toast/index.js';
|
|
53
52
|
export { default as tooltip } from './tooltip/index.js';
|
|
54
53
|
export { default as truncate } from './truncate/index.js';
|
|
@@ -3,21 +3,19 @@ export { default as announcement } from './announcement/index.js';
|
|
|
3
3
|
export { default as breadcrumb } from './breadcrumb/index.js';
|
|
4
4
|
export { default as button } from './button/index.js';
|
|
5
5
|
export { default as capslock } from './capslock/index.js';
|
|
6
|
-
export { default as card } from './card/index.js';
|
|
7
6
|
export { default as cc } from './cc/index.js';
|
|
8
|
-
export { default as
|
|
7
|
+
export { default as chat } from './chat/index.js';
|
|
9
8
|
export { default as checkbox } from './checkbox/index.js';
|
|
10
9
|
export { default as clipboard } from './clipboard/index.js';
|
|
11
10
|
export { default as colorPicker } from './color-picker/index.js';
|
|
12
11
|
export { default as command } from './command/index.js';
|
|
13
|
-
export { default as copy } from './copy/index.js';
|
|
14
12
|
export { default as counter } from './counter/index.js';
|
|
15
|
-
export { default as datalist } from './datalist/index.js';
|
|
16
13
|
export { default as dock } from './dock/index.js';
|
|
17
14
|
export { createFileTreeIconResolver, default as editor, EditorDocument, EditorWorkspaceModel, FileTreeDecorations, FileTreeEditor, FileTreeElements, FileTreeHistory, fileTreeIcon, isWorkspaceCodeEditor, resolveFileTreeIcon } from './editor/index.js';
|
|
18
15
|
export { default as error } from './error/index.js';
|
|
19
16
|
export { default as filter } from './filter/index.js';
|
|
20
17
|
export { default as form } from './form/index.js';
|
|
18
|
+
export { default as group } from './group/index.js';
|
|
21
19
|
export { default as heatmap } from './heatmap/index.js';
|
|
22
20
|
export { default as highlight } from './highlight/index.js';
|
|
23
21
|
export { default as icon } from './icon/index.js';
|
|
@@ -33,22 +31,23 @@ export { default as notification } from './notification/index.js';
|
|
|
33
31
|
export { default as number } from './number/index.js';
|
|
34
32
|
export { default as overlay } from './overlay/index.js';
|
|
35
33
|
export { default as pagination } from './pagination/index.js';
|
|
34
|
+
export { default as panels } from './panels/index.js';
|
|
35
|
+
export { default as preview } from './preview/index.js';
|
|
36
36
|
export { default as progress } from './progress/index.js';
|
|
37
|
-
export { default as pullToRefresh } from './pull-to-refresh/index.js';
|
|
38
37
|
export { default as radio } from './radio/index.js';
|
|
39
38
|
export { default as range } from './range/index.js';
|
|
40
39
|
export { default as relativeTime } from './relative-time/index.js';
|
|
40
|
+
export { default as search } from './command/search.js';
|
|
41
41
|
export { default as select } from './select/index.js';
|
|
42
|
+
export { default as shell } from './shell/index.js';
|
|
42
43
|
export { default as shortcutRecorder } from './shortcut-recorder/index.js';
|
|
43
44
|
export { default as sortable } from './sortable/index.js';
|
|
44
|
-
export { default as stickyHeader } from './sticky-header/index.js';
|
|
45
45
|
export { default as story } from './story/index.js';
|
|
46
46
|
export { default as surfaceField } from './surface-field/index.js';
|
|
47
47
|
export { default as switch } from './switch/index.js';
|
|
48
48
|
export { default as tasklist } from './tasklist/index.js';
|
|
49
49
|
export { default as textarea } from './textarea/index.js';
|
|
50
50
|
export { default as theme } from './theme/index.js';
|
|
51
|
-
export { default as themePicker } from './theme-picker/index.js';
|
|
52
51
|
export { default as toaster } from './toast/index.js';
|
|
53
52
|
export { default as tooltip } from './tooltip/index.js';
|
|
54
53
|
export { default as truncate } from './truncate/index.js';
|
|
@@ -28,7 +28,11 @@ declare const plain: template_u1.Factory<A, template_u1.Renderable<any>, templat
|
|
|
28
28
|
readonly display: typeof INLINE_EDIT_DISPLAY;
|
|
29
29
|
readonly field: typeof INLINE_EDIT_FIELD;
|
|
30
30
|
readonly status: typeof INLINE_EDIT_STATUS;
|
|
31
|
-
}
|
|
31
|
+
}> & {
|
|
32
|
+
readonly display: typeof INLINE_EDIT_DISPLAY;
|
|
33
|
+
readonly field: typeof INLINE_EDIT_FIELD;
|
|
34
|
+
readonly status: typeof INLINE_EDIT_STATUS;
|
|
35
|
+
};
|
|
32
36
|
declare const inlineEdit: typeof plain & {
|
|
33
37
|
rich: typeof rich;
|
|
34
38
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { component } from '@esportsplus/template';
|
|
3
1
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
2
|
import { flush } from '@esportsplus/reactivity';
|
|
3
|
+
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import { component } from '@esportsplus/template';
|
|
5
|
+
import icon from '../icon/index.js';
|
|
5
6
|
import input from '../input/index.js';
|
|
6
7
|
import textarea from '../textarea/index.js';
|
|
7
8
|
import rich from './rich.js';
|
|
@@ -9,7 +10,7 @@ import status, { INLINE_EDIT_STATUS } from './status.js';
|
|
|
9
10
|
import check from '@esportsplus/ui/svg/check.svg';
|
|
10
11
|
import pencil from '@esportsplus/ui/svg/pencil.svg';
|
|
11
12
|
import './scss/index.scss';
|
|
12
|
-
const template_13ikqx12 = template_u1.template(`<div
|
|
13
|
+
const template_13ikqx12 = template_u1.template(`<div><button type='button'><span class='inline-edit-label'>Edit <!--$-->: </span></button><!--$--><span aria-hidden='true' class='inline-edit-icon'><!--$-->`, true);
|
|
13
14
|
class ReactiveObject_13ikqx10 extends reactivity_u0.ReactiveObject {
|
|
14
15
|
#draft = this[reactivity_u0.SIGNAL]('');
|
|
15
16
|
constructor() {
|
|
@@ -22,9 +23,9 @@ class ReactiveObject_13ikqx10 extends reactivity_u0.ReactiveObject {
|
|
|
22
23
|
reactivity_u0.write(this.#draft, _v0);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
const WHITESPACE = /\s+/g;
|
|
26
26
|
const INLINE_EDIT_DISPLAY = Symbol.for('@esportsplus/ui/inline-edit.display');
|
|
27
27
|
const INLINE_EDIT_FIELD = Symbol.for('@esportsplus/ui/inline-edit.field');
|
|
28
|
+
const WHITESPACE = /\s+/g;
|
|
28
29
|
function template({ label, multiline = false, onsave, placeholder = '', status: shown = false, value = '', state = reactivity_u0.reactive({ editing: false, saved: false, value }), ...attributes }) {
|
|
29
30
|
let display, draft = '', local = new ReactiveObject_13ikqx10(), parts = { ...this?.attributes?.[INLINE_EDIT_FIELD], ...attributes[INLINE_EDIT_FIELD] }, saving = status.saver(state, shown, () => clean(local.draft) !== state.value, onsave);
|
|
30
31
|
function clean(value) {
|
|
@@ -74,40 +75,47 @@ function template({ label, multiline = false, onsave, placeholder = '', status:
|
|
|
74
75
|
saving.save(next);
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
-
let root_13ikqx11 = template_13ikqx12(), element_13ikqx13 = root_13ikqx11.
|
|
79
|
-
template_u1.slot(
|
|
80
|
-
new template_u1.EffectSlot(
|
|
78
|
+
{
|
|
79
|
+
let root_13ikqx11 = template_13ikqx12(), element_13ikqx13 = root_13ikqx11.firstElementChild, element_13ikqx14 = element_13ikqx13.firstElementChild.firstChild.nextSibling, element_13ikqx15 = root_13ikqx11.firstChild.nextSibling, element_13ikqx16 = element_13ikqx13.nextElementSibling.firstChild, element_13ikqx17 = element_13ikqx13.nextElementSibling;
|
|
80
|
+
template_u1.slot(element_13ikqx14, label);
|
|
81
|
+
new template_u1.EffectSlot(element_13ikqx13, () => {
|
|
81
82
|
if (state.editing) {
|
|
82
83
|
return `${local.draft} `;
|
|
83
84
|
}
|
|
84
85
|
return state.value.trim() === '' ? placeholder : state.value;
|
|
85
|
-
},
|
|
86
|
-
new template_u1.EffectSlot(
|
|
87
|
-
template_u1.slot(
|
|
88
|
-
template_u1.
|
|
89
|
-
template_u1.
|
|
90
|
-
|
|
91
|
-
template_u1.setProperties(
|
|
92
|
-
|
|
86
|
+
}, 1);
|
|
87
|
+
new template_u1.EffectSlot(element_13ikqx15, () => state.editing && field());
|
|
88
|
+
template_u1.slot(element_13ikqx16, icon({ class: 'inline-edit-icon-pencil' }, pencil));
|
|
89
|
+
template_u1.slot(element_13ikqx17, icon({ class: 'inline-edit-icon-check' }, check), 1);
|
|
90
|
+
template_u1.slot(root_13ikqx11, saving.status && status.render(saving.status, this?.attributes?.[INLINE_EDIT_STATUS], attributes[INLINE_EDIT_STATUS]), 1);
|
|
91
|
+
let attributes_13ikqx18 = this?.attributes?.[INLINE_EDIT_DISPLAY];
|
|
92
|
+
template_u1.setProperties(element_13ikqx13, attributes_13ikqx18, true);
|
|
93
|
+
let attributes_13ikqx19 = attributes[INLINE_EDIT_DISPLAY];
|
|
94
|
+
template_u1.setProperties(element_13ikqx13, attributes_13ikqx19, true);
|
|
95
|
+
template_u1.delegate(element_13ikqx13, 'click', () => {
|
|
93
96
|
draft = state.value;
|
|
94
97
|
local.draft = draft;
|
|
95
98
|
state.editing = true;
|
|
96
99
|
});
|
|
97
|
-
template_u1.onconnect(
|
|
100
|
+
template_u1.onconnect(element_13ikqx13, (element) => {
|
|
98
101
|
display = element;
|
|
99
102
|
});
|
|
100
|
-
template_u1.
|
|
101
|
-
template_u1.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
template_u1.setClass(element_13ikqx13, ["inline-edit-display", attributes_13ikqx18?.class, attributes_13ikqx19?.class]);
|
|
104
|
+
template_u1.setStyle(element_13ikqx13, ["", attributes_13ikqx18?.style, attributes_13ikqx19?.style]);
|
|
105
|
+
let attributes_13ikqx1a = this?.attributes;
|
|
106
|
+
template_u1.setProperties(root_13ikqx11, attributes_13ikqx1a, true);
|
|
107
|
+
let attributes_13ikqx1b = attributes;
|
|
108
|
+
template_u1.setProperties(root_13ikqx11, attributes_13ikqx1b, true);
|
|
109
|
+
template_u1.ondisconnect(root_13ikqx11, saving.dispose);
|
|
110
|
+
template_u1.setClass(root_13ikqx11, ["inline-edit", attributes_13ikqx1a?.class, attributes_13ikqx1b?.class, [
|
|
111
|
+
multiline && 'inline-edit--multiline',
|
|
112
|
+
() => state.editing && '--active',
|
|
113
|
+
() => state.saved && 'inline-edit--saved',
|
|
114
|
+
() => state.value.trim() === '' && 'inline-edit--empty'
|
|
115
|
+
]]);
|
|
116
|
+
template_u1.setStyle(root_13ikqx11, ["", attributes_13ikqx1a?.style, attributes_13ikqx1b?.style]);
|
|
109
117
|
return root_13ikqx11;
|
|
110
|
-
}
|
|
118
|
+
}
|
|
111
119
|
}
|
|
112
120
|
const plain = component(template, { display: INLINE_EDIT_DISPLAY, field: INLINE_EDIT_FIELD, status: INLINE_EDIT_STATUS });
|
|
113
121
|
const inlineEdit = Object.assign(plain, { rich });
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { type Attributes
|
|
3
|
-
import { type Feature } from './markdown.js';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
4
3
|
import { INLINE_EDIT_STATUS, type Status } from './status.js';
|
|
5
|
-
import '../
|
|
6
|
-
import '../select/scss/index.scss';
|
|
4
|
+
import type { Tool } from '../editor/markdown/toolbar.js';
|
|
7
5
|
import './scss/index.scss';
|
|
8
6
|
type A = Attributes & {
|
|
9
7
|
[INLINE_EDIT_RICH_EDITOR]?: Attributes;
|
|
10
|
-
[INLINE_EDIT_RICH_TOOLBAR]?: Attributes;
|
|
11
8
|
[INLINE_EDIT_STATUS]?: Attributes;
|
|
12
|
-
features?:
|
|
9
|
+
features?: Tool[];
|
|
13
10
|
label: string;
|
|
14
11
|
multiline?: boolean;
|
|
12
|
+
onconnect?: never;
|
|
15
13
|
ondisconnect?: never;
|
|
16
|
-
ondocumentselectionchange?: never;
|
|
17
|
-
onfocusout?: never;
|
|
18
14
|
onsave?: (value: string) => unknown;
|
|
19
|
-
onwindowpointercancel?: never;
|
|
20
|
-
onwindowpointerup?: never;
|
|
21
15
|
placeholder?: string;
|
|
22
16
|
state?: State;
|
|
23
17
|
status?: boolean | Status;
|
|
@@ -29,11 +23,12 @@ type State = {
|
|
|
29
23
|
value: string;
|
|
30
24
|
};
|
|
31
25
|
declare const INLINE_EDIT_RICH_EDITOR: unique symbol;
|
|
32
|
-
declare const
|
|
33
|
-
declare const _default: template_u1.Factory<A, Renderable<any>, Renderable<any>, {
|
|
26
|
+
declare const _default: template_u1.Factory<A, template_u1.Renderable<any>, template_u1.Renderable<any>, {
|
|
34
27
|
readonly editor: typeof INLINE_EDIT_RICH_EDITOR;
|
|
35
28
|
readonly status: typeof INLINE_EDIT_STATUS;
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
}> & {
|
|
30
|
+
readonly editor: typeof INLINE_EDIT_RICH_EDITOR;
|
|
31
|
+
readonly status: typeof INLINE_EDIT_STATUS;
|
|
32
|
+
};
|
|
38
33
|
export default _default;
|
|
39
|
-
export type {
|
|
34
|
+
export type { Status, Tool as Feature };
|