@esportsplus/ui 0.56.4 → 0.57.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/NOTICE +232 -0
- package/README.md +129 -138
- package/build/components/accordion/index.d.ts +23 -9
- package/build/components/accordion/index.js +95 -11
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/index.d.ts +2167 -0
- package/build/components/announcement/index.js +35 -0
- package/build/components/announcement/scss/index.scss +2 -0
- package/build/components/banner/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.d.ts +25 -25
- package/build/components/breadcrumb/index.js +189 -17
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.js +6 -6
- package/build/components/button/faces.js +4 -4
- package/build/components/button/fan.js +85 -84
- package/build/components/button/hold.js +8 -10
- package/build/components/button/icons.js +33 -10
- package/build/components/button/index.d.ts +6 -0
- package/build/components/button/index.js +4 -1
- package/build/components/button/kbd.js +25 -25
- package/build/components/button/loading.js +7 -7
- package/build/components/button/morph.d.ts +22 -0
- package/build/components/button/morph.js +115 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +18 -0
- package/build/components/button/sidebar.js +19 -0
- package/build/components/button/split.d.ts +23 -0
- package/build/components/button/split.js +41 -0
- package/build/components/capslock/index.d.ts +19 -0
- package/build/components/capslock/index.js +39 -0
- package/build/components/capslock/scss/index.scss +2 -0
- package/build/components/card/expand.d.ts +22 -0
- package/build/components/card/expand.js +118 -0
- package/build/components/card/index.d.ts +6 -0
- package/build/components/card/index.js +4 -0
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.d.ts +30 -0
- package/build/components/cc/index.js +569 -0
- package/build/components/cc/scss/index.scss +2 -0
- package/build/components/chat-minimap/index.d.ts +28 -0
- package/build/components/chat-minimap/index.js +223 -0
- package/build/components/chat-minimap/range.d.ts +9 -0
- package/build/components/chat-minimap/range.js +30 -0
- package/build/components/chat-minimap/scss/index.scss +2 -0
- package/build/components/chat-minimap/spy.d.ts +14 -0
- package/build/components/chat-minimap/spy.js +107 -0
- package/build/components/checkbox/group.d.ts +33 -0
- package/build/components/checkbox/group.js +156 -0
- package/build/components/checkbox/index.d.ts +3 -1456
- package/build/components/checkbox/index.js +3 -69
- package/build/components/checkbox/options.d.ts +6513 -0
- package/build/components/checkbox/options.js +79 -0
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/copy.js +5 -5
- package/build/components/clipboard/index.d.ts +15 -3
- package/build/components/color-picker/index.d.ts +5 -7
- package/build/components/color-picker/index.js +175 -222
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +83 -17
- package/build/components/command/index.js +556 -143
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/copy/index.d.ts +23 -0
- package/build/components/copy/index.js +61 -0
- package/build/components/copy/scss/index.scss +2 -0
- package/build/components/counter/index.d.ts +3 -2
- package/build/components/counter/index.js +41 -73
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.d.ts +5 -0
- package/build/components/datalist/index.js +76 -49
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +5 -4
- package/build/components/dock/index.js +62 -171
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/changes.d.ts +15 -0
- package/build/components/editor/code/changes.js +60 -0
- package/build/components/editor/code/clipboard.d.ts +6 -0
- package/build/components/editor/code/clipboard.js +50 -0
- package/build/components/editor/code/colors.d.ts +11 -0
- package/build/components/editor/code/colors.js +172 -0
- package/build/components/editor/code/commands.d.ts +22 -0
- package/build/components/editor/code/commands.js +556 -0
- package/build/components/editor/code/composition.d.ts +23 -0
- package/build/components/editor/code/composition.js +67 -0
- package/build/components/editor/code/conflicts.d.ts +21 -0
- package/build/components/editor/code/conflicts.js +91 -0
- package/build/components/editor/code/document.d.ts +127 -0
- package/build/components/editor/code/document.js +477 -0
- package/build/components/editor/code/editor.d.ts +21 -0
- package/build/components/editor/code/editor.js +30 -0
- package/build/components/editor/code/features.d.ts +77 -0
- package/build/components/editor/code/features.js +833 -0
- package/build/components/editor/code/field.d.ts +14 -0
- package/build/components/editor/code/field.js +57 -0
- package/build/components/editor/code/find.d.ts +83 -0
- package/build/components/editor/code/find.js +312 -0
- package/build/components/editor/code/folding.d.ts +34 -0
- package/build/components/editor/code/folding.js +433 -0
- package/build/components/editor/code/goto.d.ts +22 -0
- package/build/components/editor/code/goto.js +91 -0
- package/build/components/editor/code/gutter.d.ts +5 -0
- package/build/components/editor/code/gutter.js +22 -0
- package/build/components/editor/code/index.d.ts +17 -0
- package/build/components/editor/code/index.js +7 -0
- package/build/components/editor/code/keymap.d.ts +30 -0
- package/build/components/editor/code/keymap.js +356 -0
- package/build/components/editor/code/layout.d.ts +67 -0
- package/build/components/editor/code/layout.js +350 -0
- package/build/components/editor/code/links.d.ts +8 -0
- package/build/components/editor/code/links.js +32 -0
- package/build/components/editor/code/minimap.d.ts +46 -0
- package/build/components/editor/code/minimap.js +172 -0
- package/build/components/editor/code/navigation.d.ts +17 -0
- package/build/components/editor/code/navigation.js +49 -0
- package/build/components/editor/code/pointer.d.ts +40 -0
- package/build/components/editor/code/pointer.js +134 -0
- package/build/components/editor/code/projection.d.ts +43 -0
- package/build/components/editor/code/projection.js +200 -0
- package/build/components/editor/code/rows.d.ts +50 -0
- package/build/components/editor/code/rows.js +296 -0
- package/build/components/editor/code/search.d.ts +24 -0
- package/build/components/editor/code/search.js +231 -0
- package/build/components/editor/code/selection.d.ts +2 -0
- package/build/components/editor/code/selection.js +53 -0
- package/build/components/editor/code/services/completion.d.ts +27 -0
- package/build/components/editor/code/services/completion.js +90 -0
- package/build/components/editor/code/services/diagnostics.d.ts +28 -0
- package/build/components/editor/code/services/diagnostics.js +98 -0
- package/build/components/editor/code/services/hover.d.ts +14 -0
- package/build/components/editor/code/services/hover.js +66 -0
- package/build/components/editor/code/services/index.d.ts +27 -0
- package/build/components/editor/code/services/index.js +64 -0
- package/build/components/editor/code/services/model.d.ts +35 -0
- package/build/components/editor/code/services/model.js +167 -0
- package/build/components/editor/code/services/protocol.d.ts +68 -0
- package/build/components/editor/code/services/protocol.js +1 -0
- package/build/components/editor/code/services/session.d.ts +54 -0
- package/build/components/editor/code/services/session.js +496 -0
- package/build/components/editor/code/services/transport.d.ts +12 -0
- package/build/components/editor/code/services/transport.js +18 -0
- package/build/components/editor/code/syntax.d.ts +83 -0
- package/build/components/editor/code/syntax.js +1106 -0
- package/build/components/editor/code/unicode.d.ts +10 -0
- package/build/components/editor/code/unicode.js +117 -0
- package/build/components/editor/code/view.d.ts +122 -0
- package/build/components/editor/code/view.js +1560 -0
- package/build/components/editor/diffs/diff3.d.ts +25 -0
- package/build/components/editor/diffs/diff3.js +152 -0
- package/build/components/editor/diffs/engine.d.ts +18 -0
- package/build/components/editor/diffs/engine.js +110 -0
- package/build/components/editor/diffs/hunks.d.ts +41 -0
- package/build/components/editor/diffs/hunks.js +96 -0
- package/build/components/editor/diffs/index.d.ts +18 -0
- package/build/components/editor/diffs/index.js +10 -0
- package/build/components/editor/diffs/merge.d.ts +23 -0
- package/build/components/editor/diffs/merge.js +324 -0
- package/build/components/editor/diffs/render.d.ts +6 -0
- package/build/components/editor/diffs/render.js +56 -0
- package/build/components/editor/diffs/view.d.ts +44 -0
- package/build/components/editor/diffs/view.js +363 -0
- package/build/components/editor/diffs/words.d.ts +8 -0
- package/build/components/editor/diffs/words.js +47 -0
- package/build/components/editor/index.d.ts +21 -0
- package/build/components/editor/index.js +11 -0
- package/build/components/editor/markdown/editing.d.ts +7 -0
- package/build/components/editor/markdown/editing.js +55 -0
- package/build/components/editor/markdown/html.d.ts +24 -0
- package/build/components/editor/markdown/html.js +108 -0
- package/build/components/editor/markdown/index.d.ts +25 -0
- package/build/components/editor/markdown/index.js +33 -0
- package/build/components/editor/markdown/inline.d.ts +16 -0
- package/build/components/editor/markdown/inline.js +259 -0
- package/build/components/editor/markdown/layout.d.ts +63 -0
- package/build/components/editor/markdown/layout.js +252 -0
- package/build/components/editor/markdown/model.d.ts +53 -0
- package/build/components/editor/markdown/model.js +463 -0
- package/build/components/editor/markdown/render.d.ts +29 -0
- package/build/components/editor/markdown/render.js +561 -0
- package/build/components/editor/markdown/structure.d.ts +7 -0
- package/build/components/editor/markdown/structure.js +87 -0
- package/build/components/editor/markdown/view.d.ts +18 -0
- package/build/components/editor/markdown/view.js +1841 -0
- package/build/components/editor/tree/clipboard.d.ts +12 -0
- package/build/components/editor/tree/clipboard.js +48 -0
- package/build/components/editor/tree/compact.d.ts +23 -0
- package/build/components/editor/tree/compact.js +57 -0
- package/build/components/editor/tree/decorations.d.ts +39 -0
- package/build/components/editor/tree/decorations.js +126 -0
- package/build/components/editor/tree/drag.d.ts +45 -0
- package/build/components/editor/tree/drag.js +462 -0
- package/build/components/editor/tree/edit.d.ts +43 -0
- package/build/components/editor/tree/edit.js +134 -0
- package/build/components/editor/tree/filter.d.ts +7 -0
- package/build/components/editor/tree/filter.js +47 -0
- package/build/components/editor/tree/find.d.ts +55 -0
- package/build/components/editor/tree/find.js +291 -0
- package/build/components/editor/tree/glob.d.ts +2 -0
- package/build/components/editor/tree/glob.js +57 -0
- package/build/components/editor/tree/glyph.d.ts +6 -0
- package/build/components/editor/tree/glyph.js +31 -0
- package/build/components/editor/tree/history.d.ts +61 -0
- package/build/components/editor/tree/history.js +172 -0
- package/build/components/editor/tree/icons.d.ts +29 -0
- package/build/components/editor/tree/icons.js +417 -0
- package/build/components/editor/tree/index.d.ts +118 -0
- package/build/components/editor/tree/index.js +2227 -0
- package/build/components/editor/tree/jump.d.ts +8 -0
- package/build/components/editor/tree/jump.js +45 -0
- package/build/components/editor/tree/lazy.d.ts +24 -0
- package/build/components/editor/tree/lazy.js +71 -0
- package/build/components/editor/tree/model.d.ts +33 -0
- package/build/components/editor/tree/model.js +128 -0
- package/build/components/editor/tree/selection.d.ts +13 -0
- package/build/components/editor/tree/selection.js +55 -0
- package/build/components/editor/tree/shortcuts.d.ts +6 -0
- package/build/components/editor/tree/shortcuts.js +44 -0
- package/build/components/editor/tree/sort.d.ts +13 -0
- package/build/components/editor/tree/sort.js +53 -0
- package/build/components/editor/tree/spoken.d.ts +9 -0
- package/build/components/editor/tree/spoken.js +38 -0
- package/build/components/editor/tree/sprites.d.ts +4 -0
- package/build/components/editor/tree/sprites.js +152 -0
- package/build/components/editor/tree/sticky.d.ts +11 -0
- package/build/components/editor/tree/sticky.js +102 -0
- package/build/components/editor/tree/transfer.d.ts +15 -0
- package/build/components/editor/tree/transfer.js +75 -0
- package/build/components/editor/workspace/index.d.ts +64 -0
- package/build/components/editor/workspace/index.js +1125 -0
- package/build/components/editor/workspace/model.d.ts +161 -0
- package/build/components/editor/workspace/model.js +690 -0
- package/build/components/error/index.d.ts +31 -0
- package/build/components/error/index.js +150 -0
- package/build/components/error/scss/index.scss +2 -0
- package/build/components/filter/index.d.ts +38 -0
- package/build/components/filter/index.js +307 -0
- package/build/components/filter/scss/index.scss +2 -0
- package/build/components/form/action.js +1 -2
- package/build/components/form/index.d.ts +10 -1
- package/build/components/form/input.d.ts +12 -2
- package/build/components/form/input.js +12 -7
- package/build/components/form/scss/index.scss +1 -1
- package/build/components/frame/scss/index.scss +2 -0
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/heatmap/index.d.ts +32 -0
- package/build/components/heatmap/index.js +209 -0
- package/build/components/heatmap/scss/index.scss +2 -0
- package/build/components/highlight/easing.d.ts +2 -0
- package/build/components/highlight/easing.js +19 -0
- package/build/components/highlight/index.d.ts +6 -0
- package/build/components/highlight/index.js +334 -112
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.js +1 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +17 -12
- package/build/components/image/index.js +3 -61
- package/build/components/image/lazyload.d.ts +15 -0
- package/build/components/image/lazyload.js +72 -0
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +15 -79
- package/build/components/index.js +15 -79
- package/build/components/inline-edit/format.d.ts +29 -0
- package/build/components/inline-edit/format.js +112 -0
- package/build/components/inline-edit/history.d.ts +14 -0
- package/build/components/inline-edit/history.js +40 -0
- package/build/components/inline-edit/index.d.ts +13 -7
- package/build/components/inline-edit/index.js +44 -38
- package/build/components/inline-edit/markdown.d.ts +7 -0
- package/build/components/inline-edit/markdown.js +314 -0
- package/build/components/inline-edit/model.d.ts +61 -0
- package/build/components/inline-edit/model.js +192 -0
- package/build/components/inline-edit/rich.d.ts +39 -0
- package/build/components/inline-edit/rich.js +1236 -0
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/selection.d.ts +7 -0
- package/build/components/inline-edit/selection.js +114 -0
- package/build/components/inline-edit/status.d.ts +24 -0
- package/build/components/inline-edit/status.js +196 -0
- package/build/components/inline-edit/utilities.d.ts +4 -0
- package/build/components/inline-edit/utilities.js +12 -0
- package/build/components/input/field.d.ts +14 -0
- package/build/components/input/field.js +34 -0
- package/build/components/input/index.d.ts +7 -14
- package/build/components/input/index.js +5 -41
- package/build/components/input/scrub.d.ts +30 -0
- package/build/components/input/scrub.js +221 -0
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +24 -0
- package/build/components/input/tag.js +288 -0
- package/build/components/json/download.js +4 -3
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.d.ts +10 -1
- package/build/components/marquee/index.js +240 -174
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/marquee/velocity.d.ts +17 -0
- package/build/components/marquee/velocity.js +78 -0
- package/build/components/metric/flash.d.ts +11 -0
- package/build/components/metric/flash.js +116 -0
- package/build/components/metric/index.d.ts +33 -0
- package/build/components/metric/index.js +271 -0
- package/build/components/metric/scss/index.scss +2 -0
- package/build/components/nav/index.d.ts +13 -0
- package/build/components/nav/index.js +6 -0
- package/build/components/nav/scss/index.scss +2 -0
- package/build/components/nav/spy.d.ts +9 -0
- package/build/components/nav/spy.js +157 -0
- package/build/components/nav/toc.d.ts +26 -0
- package/build/components/nav/toc.js +22 -0
- package/build/components/nav/tree.d.ts +39 -0
- package/build/components/nav/tree.js +123 -0
- package/build/components/notification/index.d.ts +15 -0
- package/build/components/notification/index.js +98 -0
- package/build/components/notification/scss/index.scss +2 -0
- package/build/components/overlay/index.d.ts +28 -9
- package/build/components/overlay/index.js +346 -8
- package/build/components/overlay/popup.d.ts +31 -0
- package/build/components/overlay/popup.js +150 -0
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/dots.d.ts +21 -0
- package/build/components/pagination/dots.js +110 -0
- package/build/components/pagination/index.d.ts +8 -3
- package/build/components/pagination/index.js +36 -59
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/progress/index.d.ts +7 -2
- package/build/components/progress/index.js +14 -10
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.d.ts +12 -0
- package/build/components/progress/text.js +124 -0
- package/build/components/pull-to-refresh/index.d.ts +3 -11
- package/build/components/pull-to-refresh/index.js +127 -165
- package/build/components/pull-to-refresh/scss/index.scss +1 -1
- package/build/components/radio/index.d.ts +2 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.d.ts +22 -0
- package/build/components/range/filter.js +322 -0
- package/build/components/range/index.d.ts +9 -2
- package/build/components/range/index.js +13 -9
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.d.ts +15 -8
- package/build/components/relative-time/index.js +206 -193
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +35 -16
- package/build/components/select/index.js +358 -92
- package/build/components/select/placement.d.ts +15 -0
- package/build/components/select/placement.js +31 -0
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shortcut-recorder/index.d.ts +7 -2
- package/build/components/shortcut-recorder/index.js +107 -99
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +722 -4
- package/build/components/sortable/index.js +329 -213
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/index.d.ts +22 -15
- package/build/components/sticky-header/index.js +41 -81
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +21 -0
- package/build/components/story/index.js +253 -0
- package/build/components/story/scss/index.scss +2 -0
- package/build/components/surface-field/engine.d.ts +65 -0
- package/build/components/surface-field/engine.js +970 -0
- package/build/components/surface-field/index.d.ts +2247 -1470
- package/build/components/surface-field/index.js +394 -371
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +39 -0
- package/build/components/surface-field/surface.js +159 -0
- package/build/components/surface-field/worker/index.d.ts +9 -0
- package/build/components/surface-field/worker/index.js +19 -0
- package/build/components/switch/index.d.ts +2 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.d.ts +25 -717
- package/build/components/tasklist/index.js +151 -97
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +15 -3
- package/build/components/textarea/index.js +124 -32
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/toast/index.d.ts +40 -7
- package/build/components/toast/index.js +192 -145
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/index.d.ts +3 -4
- package/build/components/tooltip/index.js +3 -4
- package/build/components/tooltip/menu.d.ts +47 -21
- package/build/components/tooltip/menu.js +525 -18
- package/build/components/tooltip/onclick.d.ts +1 -0
- package/build/components/tooltip/onclick.js +50 -33
- package/build/components/tooltip/onhover.d.ts +721 -10
- package/build/components/tooltip/onhover.js +129 -43
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +34 -0
- package/build/components/tooltip/shared.js +569 -0
- package/build/components/tooltip/utilities.d.ts +23 -3
- package/build/components/tooltip/utilities.js +46 -21
- package/build/components/typewriter/index.d.ts +1439 -10
- package/build/components/typewriter/index.js +7 -2
- package/build/components/typewriter/retype.d.ts +7 -0
- package/build/components/typewriter/retype.js +83 -0
- package/build/components/typewriter/rotate.d.ts +13 -0
- package/build/components/typewriter/rotate.js +186 -0
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.js +61 -61
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.d.ts +15 -3
- package/build/components/usage-meter/index.js +19 -19
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/css-utilities/background/scss/index.scss +1 -1
- package/build/css-utilities/border/scss/index.scss +1 -1
- package/build/css-utilities/color/scss/index.scss +1 -1
- package/build/css-utilities/flex/scss/index.scss +1 -1
- package/build/css-utilities/font/geist/scss/index.scss +1 -1
- package/build/css-utilities/font/montserrat/scss/index.scss +1 -1
- package/build/css-utilities/glass/index.d.ts +10 -0
- package/build/css-utilities/glass/index.js +26 -0
- package/build/css-utilities/glass/scss/index.scss +1 -1
- package/build/css-utilities/index.d.ts +3 -0
- package/build/css-utilities/index.js +3 -0
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/inline/scss/index.scss +1 -1
- package/build/css-utilities/scrollbar/index.d.ts +42 -0
- package/build/css-utilities/scrollbar/index.js +155 -0
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/css-utilities/skeleton/scss/index.scss +1 -1
- package/build/css-utilities/text/scss/index.scss +1 -1
- package/build/css-utilities/theme/index.d.ts +16 -0
- package/build/css-utilities/theme/index.js +60 -0
- package/build/normalize/scss/index.scss +3 -0
- package/build/shared/anchor.d.ts +7 -0
- package/build/shared/anchor.js +18 -0
- package/build/shared/animation.d.ts +6 -0
- package/build/shared/animation.js +57 -0
- package/build/shared/clamp.d.ts +2 -0
- package/build/shared/clamp.js +4 -0
- package/build/shared/deadline.d.ts +2 -0
- package/build/shared/deadline.js +94 -0
- package/build/shared/dismiss.d.ts +2 -0
- package/build/shared/dismiss.js +5 -0
- package/build/shared/drag.d.ts +47 -0
- package/build/shared/drag.js +189 -0
- package/build/shared/fuzzy.d.ts +6 -0
- package/build/shared/fuzzy.js +153 -0
- package/build/shared/keystep.d.ts +2 -0
- package/build/shared/keystep.js +21 -0
- package/build/shared/platform.d.ts +2 -0
- package/build/shared/platform.js +3 -0
- package/build/shared/press.d.ts +15 -0
- package/build/shared/press.js +83 -0
- package/build/shared/resize.d.ts +18 -0
- package/build/shared/resize.js +137 -0
- package/build/shared/subscribe.d.ts +3 -0
- package/build/shared/subscribe.js +12 -0
- package/build/shared/ticker.d.ts +3 -0
- package/build/shared/ticker.js +34 -0
- package/build/shared/transition.d.ts +11 -0
- package/build/shared/transition.js +49 -0
- package/build/shared/viewport.d.ts +7 -0
- package/build/shared/viewport.js +11 -0
- package/build/shared/visible.d.ts +8 -0
- package/build/shared/visible.js +79 -0
- package/build/themes/dark/input.d.ts +3 -721
- package/build/themes/dark/input.js +4 -2
- package/build/themes/dark/select.js +2 -1
- package/build/themes/dark/textarea.d.ts +15 -3
- package/build/themes/dark/textarea.js +1 -0
- package/package.json +11 -4
- package/pnpm-workspace.yaml +3 -18
- package/scripts/animation.test.mjs +45 -0
- package/scripts/chat-minimap.test.mjs +53 -0
- package/scripts/code-editor-features.test.mjs +287 -0
- package/scripts/code-editor-markdown.test.mjs +527 -0
- package/scripts/code-editor-services.test.mjs +361 -0
- package/scripts/code-editor-workspace.test.mjs +398 -0
- package/scripts/code-editor.test.mjs +1615 -0
- package/scripts/css-variables.test.mjs +1 -1
- package/scripts/deadline.test.mjs +191 -0
- package/scripts/diffs.test.mjs +189 -0
- package/scripts/file-tree-features.test.mjs +137 -0
- package/scripts/file-tree-icons.test.mjs +234 -0
- package/scripts/highlight.test.mjs +52 -0
- package/scripts/resize.test.mjs +247 -0
- package/scripts/resolve.mjs +52 -0
- package/scripts/slides.test.mjs +126 -0
- package/scripts/subscribe.test.mjs +49 -0
- package/scripts/ticker.test.mjs +126 -0
- package/scripts/transition.test.mjs +83 -0
- package/scripts/viewport.test.mjs +82 -0
- package/scripts/visible.test.mjs +186 -0
- package/shared.scss +2 -0
- package/src/components/accordion/index.ts +71 -12
- package/src/components/accordion/scss/index.scss +32 -129
- package/src/components/accordion/scss/variables.scss +7 -0
- package/src/components/announcement/index.ts +26 -0
- package/src/components/announcement/scss/index.scss +47 -0
- package/src/components/announcement/scss/variables.scss +23 -0
- package/src/components/banner/scss/index.scss +4 -8
- package/src/components/banner/scss/variables.scss +6 -0
- package/src/components/breadcrumb/index.ts +222 -25
- package/src/components/breadcrumb/scss/index.scss +217 -34
- package/src/components/breadcrumb/scss/variables.scss +73 -8
- package/src/components/button/copy.ts +1 -1
- package/src/components/button/faces.ts +1 -2
- package/src/components/button/fan.ts +111 -114
- package/src/components/button/hold.ts +9 -9
- package/src/components/button/icons.ts +15 -32
- package/src/components/button/index.ts +13 -1
- package/src/components/button/kbd.ts +6 -6
- package/src/components/button/loading.ts +1 -1
- package/src/components/button/morph.ts +153 -0
- package/src/components/button/scss/_kbd.scss +2 -1
- package/src/components/button/scss/_morph.scss +119 -0
- package/src/components/button/scss/_sidebar.scss +50 -0
- package/src/components/button/scss/_split.scss +53 -0
- package/src/components/button/scss/index.scss +45 -31
- package/src/components/button/scss/variables.scss +85 -34
- package/src/components/button/sidebar.ts +60 -0
- package/src/components/button/split.ts +60 -0
- package/src/components/capslock/index.ts +54 -0
- package/src/components/capslock/scss/index.scss +55 -0
- package/src/components/capslock/scss/variables.scss +26 -0
- package/src/components/card/expand.ts +141 -0
- package/src/components/card/index.ts +8 -0
- package/src/components/card/scss/_expand.scss +240 -0
- package/src/components/card/scss/index.scss +52 -9
- package/src/components/card/scss/variables.scss +85 -19
- package/src/components/cc/index.ts +558 -0
- package/src/components/cc/scss/index.scss +429 -0
- package/src/components/cc/scss/variables.scss +68 -0
- package/src/components/chat-minimap/index.ts +265 -0
- package/src/components/chat-minimap/range.ts +59 -0
- package/src/components/chat-minimap/scss/index.scss +140 -0
- package/src/components/chat-minimap/scss/variables.scss +97 -0
- package/src/components/chat-minimap/spy.ts +151 -0
- package/src/components/checkbox/group.ts +216 -0
- package/src/components/checkbox/index.ts +3 -41
- package/src/components/checkbox/options.ts +55 -0
- package/src/components/checkbox/scss/index.scss +69 -17
- package/src/components/checkbox/scss/variables.scss +28 -7
- package/src/components/clipboard/copy.ts +5 -5
- package/src/components/color-picker/index.ts +160 -233
- package/src/components/color-picker/scss/index.scss +51 -93
- package/src/components/color-picker/scss/variables.scss +68 -10
- package/src/components/command/index.ts +788 -206
- package/src/components/command/scss/index.scss +168 -158
- package/src/components/command/scss/variables.scss +118 -25
- package/src/components/copy/index.ts +69 -0
- package/src/components/copy/scss/index.scss +52 -0
- package/src/components/copy/scss/variables.scss +22 -0
- package/src/components/counter/index.ts +69 -94
- package/src/components/counter/scss/index.scss +20 -48
- package/src/components/counter/scss/variables.scss +24 -35
- package/src/components/datalist/index.ts +49 -29
- package/src/components/datalist/scss/index.scss +43 -24
- package/src/components/datalist/scss/variables.scss +7 -4
- package/src/components/dock/index.ts +61 -231
- package/src/components/dock/scss/index.scss +73 -39
- package/src/components/dock/scss/variables.scss +77 -16
- package/src/components/editor/code/changes.ts +111 -0
- package/src/components/editor/code/clipboard.ts +81 -0
- package/src/components/editor/code/colors.ts +278 -0
- package/src/components/editor/code/commands.ts +879 -0
- package/src/components/editor/code/composition.ts +85 -0
- package/src/components/editor/code/conflicts.ts +160 -0
- package/src/components/editor/code/document.ts +789 -0
- package/src/components/editor/code/editor.ts +68 -0
- package/src/components/editor/code/features.ts +1144 -0
- package/src/components/editor/code/field.ts +96 -0
- package/src/components/editor/code/find.ts +340 -0
- package/src/components/editor/code/folding.ts +689 -0
- package/src/components/editor/code/goto.ts +89 -0
- package/src/components/editor/code/gutter.ts +47 -0
- package/src/components/editor/code/index.ts +29 -0
- package/src/components/editor/code/keymap.ts +518 -0
- package/src/components/editor/code/layout.ts +565 -0
- package/src/components/editor/code/links.ts +55 -0
- package/src/components/editor/code/minimap.ts +260 -0
- package/src/components/editor/code/navigation.ts +95 -0
- package/src/components/editor/code/pointer.ts +199 -0
- package/src/components/editor/code/projection.ts +342 -0
- package/src/components/editor/code/rows.ts +412 -0
- package/src/components/editor/code/scss/_editor.scss +432 -0
- package/src/components/editor/code/scss/_features.scss +311 -0
- package/src/components/editor/code/scss/_services.scss +154 -0
- package/src/components/editor/code/scss/index.scss +6 -0
- package/src/components/editor/code/scss/variables.scss +194 -0
- package/src/components/editor/code/search.ts +391 -0
- package/src/components/editor/code/selection.ts +83 -0
- package/src/components/editor/code/services/completion.ts +114 -0
- package/src/components/editor/code/services/diagnostics.ts +168 -0
- package/src/components/editor/code/services/hover.ts +74 -0
- package/src/components/editor/code/services/index.ts +118 -0
- package/src/components/editor/code/services/model.ts +270 -0
- package/src/components/editor/code/services/protocol.ts +55 -0
- package/src/components/editor/code/services/session.ts +721 -0
- package/src/components/editor/code/services/transport.ts +36 -0
- package/src/components/editor/code/syntax.ts +1673 -0
- package/src/components/editor/code/unicode.ts +156 -0
- package/src/components/editor/code/view.ts +2139 -0
- package/src/components/editor/diffs/diff3.ts +280 -0
- package/src/components/editor/diffs/engine.ts +192 -0
- package/src/components/editor/diffs/hunks.ts +196 -0
- package/src/components/editor/diffs/index.ts +20 -0
- package/src/components/editor/diffs/merge.ts +377 -0
- package/src/components/editor/diffs/render.ts +95 -0
- package/src/components/editor/diffs/scss/_diffs.scss +352 -0
- package/src/components/editor/diffs/scss/_merge.scss +121 -0
- package/src/components/editor/diffs/scss/index.scss +5 -0
- package/src/components/editor/diffs/scss/variables.scss +70 -0
- package/src/components/editor/diffs/view.ts +464 -0
- package/src/components/editor/diffs/words.ts +85 -0
- package/src/components/editor/index.ts +59 -0
- package/src/components/editor/markdown/editing.ts +92 -0
- package/src/components/editor/markdown/html.ts +192 -0
- package/src/components/editor/markdown/index.ts +72 -0
- package/src/components/editor/markdown/inline.ts +399 -0
- package/src/components/editor/markdown/layout.ts +446 -0
- package/src/components/editor/markdown/model.ts +737 -0
- package/src/components/editor/markdown/render.ts +461 -0
- package/src/components/editor/markdown/scss/index.scss +456 -0
- package/src/components/editor/markdown/scss/variables.scss +109 -0
- package/src/components/editor/markdown/structure.ts +136 -0
- package/src/components/editor/markdown/view.ts +2417 -0
- package/src/components/editor/tree/clipboard.ts +80 -0
- package/src/components/editor/tree/compact.ts +93 -0
- package/src/components/editor/tree/decorations.ts +210 -0
- package/src/components/editor/tree/drag.ts +652 -0
- package/src/components/editor/tree/edit.ts +234 -0
- package/src/components/editor/tree/filter.ts +81 -0
- package/src/components/editor/tree/find.ts +500 -0
- package/src/components/editor/tree/glob.ts +76 -0
- package/src/components/editor/tree/glyph.ts +49 -0
- package/src/components/editor/tree/history.ts +282 -0
- package/src/components/editor/tree/icons.ts +507 -0
- package/src/components/editor/tree/index.ts +3438 -0
- package/src/components/editor/tree/jump.ts +78 -0
- package/src/components/editor/tree/lazy.ts +111 -0
- package/src/components/editor/tree/model.ts +235 -0
- package/src/components/editor/tree/scss/index.scss +732 -0
- package/src/components/editor/tree/scss/variables.scss +260 -0
- package/src/components/editor/tree/selection.ts +85 -0
- package/src/components/editor/tree/shortcuts.ts +64 -0
- package/src/components/editor/tree/sort.ts +104 -0
- package/src/components/editor/tree/spoken.ts +67 -0
- package/src/components/editor/tree/sprites.ts +159 -0
- package/src/components/editor/tree/sticky.ts +154 -0
- package/src/components/editor/tree/transfer.ts +134 -0
- package/src/components/editor/workspace/index.ts +1357 -0
- package/src/components/editor/workspace/model.ts +1023 -0
- package/src/components/editor/workspace/scss/index.scss +547 -0
- package/src/components/error/index.ts +189 -0
- package/src/components/error/scss/index.scss +89 -0
- package/src/components/error/scss/variables.scss +13 -0
- package/src/components/filter/index.ts +420 -0
- package/src/components/filter/scss/index.scss +6 -0
- package/src/components/filter/scss/variables.scss +17 -0
- package/src/components/form/action.ts +4 -4
- package/src/components/form/input.ts +13 -7
- package/src/components/frame/scss/index.scss +107 -0
- package/src/components/frame/scss/variables.scss +27 -0
- package/src/components/heatmap/index.ts +281 -0
- package/src/components/heatmap/scss/index.scss +131 -0
- package/src/components/heatmap/scss/variables.scss +58 -0
- package/src/components/highlight/easing.ts +33 -0
- package/src/components/highlight/index.ts +580 -77
- package/src/components/highlight/scss/index.scss +49 -9
- package/src/components/highlight/scss/variables.scss +62 -3
- package/src/components/icon/scss/index.scss +0 -1
- package/src/components/image/index.ts +3 -76
- package/src/components/image/lazyload.ts +95 -0
- package/src/components/image/scss/index.scss +71 -57
- package/src/components/image/scss/variables.scss +39 -14
- package/src/components/index.ts +27 -79
- package/src/components/inline-edit/format.ts +183 -0
- package/src/components/inline-edit/history.ts +71 -0
- package/src/components/inline-edit/index.ts +44 -38
- package/src/components/inline-edit/markdown.ts +485 -0
- package/src/components/inline-edit/model.ts +366 -0
- package/src/components/inline-edit/rich.ts +1518 -0
- package/src/components/inline-edit/scss/index.scss +431 -41
- package/src/components/inline-edit/scss/variables.scss +105 -0
- package/src/components/inline-edit/selection.ts +188 -0
- package/src/components/inline-edit/status.ts +194 -0
- package/src/components/inline-edit/utilities.ts +18 -0
- package/src/components/input/field.ts +32 -0
- package/src/components/input/index.ts +5 -38
- package/src/components/input/scrub.ts +338 -0
- package/src/components/input/scss/_field.scss +53 -0
- package/src/components/input/scss/_scrub.scss +91 -0
- package/src/components/input/scss/_tag.scss +162 -0
- package/src/components/input/scss/index.scss +5 -18
- package/src/components/input/scss/variables.scss +108 -38
- package/src/components/input/tag.ts +403 -0
- package/src/components/json/download.ts +9 -6
- package/src/components/link/scss/index.scss +9 -4
- package/src/components/link/scss/variables.scss +1 -31
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/scss/index.scss +3 -6
- package/src/components/marquee/index.ts +246 -169
- package/src/components/marquee/scss/index.scss +21 -28
- package/src/components/marquee/scss/variables.scss +16 -0
- package/src/components/marquee/velocity.ts +144 -0
- package/src/components/metric/flash.ts +128 -0
- package/src/components/metric/index.ts +315 -0
- package/src/components/metric/scss/_flash.scss +163 -0
- package/src/components/metric/scss/index.scss +163 -0
- package/src/components/metric/scss/variables.scss +133 -0
- package/src/components/nav/index.ts +13 -0
- package/src/components/nav/scss/index.scss +123 -0
- package/src/components/nav/scss/variables.scss +60 -0
- package/src/components/nav/spy.ts +203 -0
- package/src/components/nav/toc.ts +48 -0
- package/src/components/nav/tree.ts +181 -0
- package/src/components/notification/index.ts +111 -0
- package/src/components/notification/scss/index.scss +123 -0
- package/src/components/notification/scss/variables.scss +54 -0
- package/src/components/overlay/index.ts +487 -5
- package/src/components/overlay/popup.ts +214 -0
- package/src/components/overlay/scss/index.scss +379 -7
- package/src/components/overlay/scss/variables.scss +117 -0
- package/src/components/pagination/dots.ts +132 -0
- package/src/components/pagination/index.ts +34 -45
- package/src/components/pagination/scss/_dots.scss +67 -0
- package/src/components/pagination/scss/index.scss +15 -8
- package/src/components/pagination/scss/variables.scss +59 -0
- package/src/components/progress/index.ts +18 -8
- package/src/components/progress/scss/_text.scss +132 -0
- package/src/components/progress/scss/index.scss +1 -0
- package/src/components/progress/scss/variables.scss +42 -0
- package/src/components/progress/text.ts +158 -0
- package/src/components/pull-to-refresh/index.ts +126 -248
- package/src/components/pull-to-refresh/scss/index.scss +65 -29
- package/src/components/pull-to-refresh/scss/variables.scss +24 -1
- package/src/components/radio/index.ts +3 -3
- package/src/components/range/filter.ts +398 -0
- package/src/components/range/index.ts +27 -16
- package/src/components/range/scss/_filter.scss +374 -0
- package/src/components/range/scss/_slider.scss +140 -0
- package/src/components/range/scss/_vertical.scss +22 -0
- package/src/components/range/scss/index.scss +26 -14
- package/src/components/range/scss/variables.scss +78 -13
- package/src/components/relative-time/index.ts +218 -233
- package/src/components/relative-time/scss/index.scss +42 -18
- package/src/components/relative-time/scss/variables.scss +25 -0
- package/src/components/root/scss/index.scss +7 -3
- package/src/components/root/scss/variables.scss +21 -12
- package/src/components/select/index.ts +506 -153
- package/src/components/select/placement.ts +75 -0
- package/src/components/select/scss/index.scss +182 -45
- package/src/components/select/scss/variables.scss +58 -44
- package/src/components/shortcut-recorder/index.ts +145 -106
- package/src/components/shortcut-recorder/scss/index.scss +34 -121
- package/src/components/shortcut-recorder/scss/variables.scss +27 -39
- package/src/components/sortable/index.ts +380 -272
- package/src/components/sortable/scss/index.scss +107 -38
- package/src/components/sortable/scss/variables.scss +12 -1
- package/src/components/sticky-header/index.ts +43 -92
- package/src/components/sticky-header/scss/index.scss +76 -86
- package/src/components/sticky-header/scss/variables.scss +36 -12
- package/src/components/story/index.ts +305 -0
- package/src/components/story/scss/index.scss +189 -0
- package/src/components/story/scss/variables.scss +28 -0
- package/src/components/surface-field/engine.ts +1631 -0
- package/src/components/surface-field/index.ts +574 -608
- package/src/components/surface-field/scss/index.scss +74 -17
- package/src/components/surface-field/scss/variables.scss +23 -0
- package/src/components/surface-field/surface.ts +260 -0
- package/src/components/surface-field/worker/index.ts +41 -0
- package/src/components/switch/index.ts +3 -3
- package/src/components/tasklist/index.ts +197 -119
- package/src/components/tasklist/scss/index.scss +45 -128
- package/src/components/tasklist/scss/variables.scss +97 -70
- package/src/components/text/scss/index.scss +2 -15
- package/src/components/textarea/index.ts +142 -39
- package/src/components/textarea/scss/index.scss +41 -18
- package/src/components/textarea/scss/variables.scss +5 -46
- package/src/components/toast/index.ts +270 -157
- package/src/components/toast/scss/index.scss +244 -225
- package/src/components/toast/scss/variables.scss +68 -9
- package/src/components/tooltip/index.ts +9 -4
- package/src/components/tooltip/menu.ts +599 -37
- package/src/components/tooltip/onclick.ts +28 -22
- package/src/components/tooltip/onhover.ts +155 -73
- package/src/components/tooltip/scss/_menu.scss +352 -0
- package/src/components/tooltip/scss/_shared.scss +109 -0
- package/src/components/tooltip/scss/_south.scss +0 -1
- package/src/components/tooltip/scss/index.scss +16 -97
- package/src/components/tooltip/scss/variables.scss +103 -59
- package/src/components/tooltip/shared.ts +819 -0
- package/src/components/tooltip/utilities.ts +78 -23
- package/src/components/typewriter/index.ts +8 -1
- package/src/components/typewriter/retype.ts +99 -0
- package/src/components/typewriter/rotate.ts +279 -0
- package/src/components/typewriter/scss/_caret.scss +34 -0
- package/src/components/typewriter/scss/_retype.scss +67 -0
- package/src/components/typewriter/scss/_rotate.scss +28 -0
- package/src/components/typewriter/scss/index.scss +3 -33
- package/src/components/typewriter/scss/variables.scss +60 -10
- package/src/components/uptime/index.ts +50 -49
- package/src/components/uptime/scss/index.scss +67 -47
- package/src/components/uptime/scss/variables.scss +32 -4
- package/src/components/usage-meter/index.ts +17 -17
- package/src/components/usage-meter/scss/index.scss +19 -31
- package/src/components/usage-meter/scss/variables.scss +15 -7
- package/src/css-utilities/background/scss/index.scss +1 -1
- package/src/css-utilities/background/scss/variables.scss +2 -17
- package/src/css-utilities/border/scss/index.scss +1 -1
- package/src/css-utilities/border/scss/variables.scss +7 -23
- package/src/css-utilities/color/scss/index.scss +1 -1
- package/src/css-utilities/color/scss/variables.scss +2 -17
- package/src/css-utilities/flex/scss/variables.scss +0 -1
- package/src/css-utilities/font/geist/scss/index.scss +2 -2
- package/src/css-utilities/font/montserrat/scss/index.scss +2 -2
- package/src/css-utilities/glass/index.ts +42 -0
- package/src/css-utilities/glass/scss/index.scss +65 -1
- package/src/css-utilities/glass/scss/variables.scss +6 -1
- package/src/css-utilities/index.scss +0 -5
- package/src/css-utilities/index.ts +3 -0
- package/src/css-utilities/scrollbar/index.ts +200 -0
- package/src/css-utilities/scrollbar/scss/index.scss +300 -36
- package/src/css-utilities/scrollbar/scss/variables.scss +38 -3
- package/src/css-utilities/text/scss/index.scss +97 -6
- package/src/css-utilities/text/scss/variables.scss +22 -0
- package/src/css-utilities/theme/index.ts +71 -0
- package/src/normalize/scss/index.scss +42 -0
- package/src/shared/anchor.ts +34 -0
- package/src/shared/animation.ts +106 -0
- package/src/shared/clamp.ts +6 -0
- package/src/shared/deadline.ts +153 -0
- package/src/shared/dismiss.ts +6 -0
- package/src/shared/drag.ts +348 -0
- package/src/shared/fuzzy.ts +263 -0
- package/src/shared/keystep.ts +28 -0
- package/src/shared/platform.ts +10 -0
- package/src/shared/press.ts +144 -0
- package/src/shared/resize.ts +232 -0
- package/src/shared/scss/absolute.scss +28 -0
- package/src/shared/scss/anchor.scss +63 -0
- package/src/shared/scss/background.scss +21 -0
- package/src/shared/scss/border.scss +21 -0
- package/src/shared/scss/color.scss +21 -0
- package/src/shared/scss/drag.scss +7 -0
- package/src/shared/scss/hidden.scss +22 -0
- package/src/shared/scss/icon.scss +36 -0
- package/src/shared/scss/index.scss +16 -0
- package/src/shared/scss/layer.scss +20 -0
- package/src/shared/scss/list.scss +64 -0
- package/src/shared/scss/reset.scss +21 -0
- package/src/shared/scss/string.scss +18 -0
- package/src/shared/scss/text.scss +31 -0
- package/src/shared/subscribe.ts +20 -0
- package/src/shared/ticker.ts +56 -0
- package/src/shared/transition.ts +61 -0
- package/src/shared/viewport.ts +23 -0
- package/src/shared/visible.ts +127 -0
- package/src/themes/dark/input.ts +6 -2
- package/src/themes/dark/select.ts +3 -2
- package/src/themes/dark/textarea.ts +1 -0
- package/src/tokens/scss/box-shadow.scss +12 -16
- package/src/tokens/scss/color.scss +3 -2
- package/src/tokens/scss/font-family.scss +5 -0
- package/src/tokens/scss/index.scss +10 -0
- package/src/tokens/scss/state.scss +10 -8
- package/storage/code.md +180 -0
- package/storage/editor-features.md +227 -0
- package/storage/svg/amex.svg +1 -0
- package/storage/svg/arrow-down.svg +1 -0
- package/storage/svg/arrow-up.svg +1 -0
- package/storage/svg/bold.svg +1 -0
- package/storage/svg/caps-lock.svg +1 -0
- package/storage/svg/card.svg +1 -0
- package/storage/svg/chevron-down.svg +1 -0
- package/storage/svg/chevron-left.svg +1 -0
- package/storage/svg/chevron-right.svg +1 -0
- package/storage/svg/chevron-up.svg +1 -0
- package/storage/svg/chevrons-up-down.svg +1 -0
- package/storage/svg/chip.svg +1 -0
- package/storage/svg/circle.svg +1 -0
- package/storage/svg/clear-format.svg +1 -0
- package/storage/svg/close.svg +1 -0
- package/storage/svg/code.svg +1 -0
- package/storage/svg/command.svg +1 -0
- package/storage/svg/contrast.svg +1 -0
- package/storage/svg/copy.svg +1 -0
- package/storage/svg/corner-down-right.svg +1 -0
- package/storage/svg/credit-card.svg +1 -0
- package/storage/svg/dash.svg +1 -0
- package/storage/svg/discover.svg +1 -0
- package/storage/svg/document.svg +1 -0
- package/storage/svg/dots.svg +1 -0
- package/storage/svg/download.svg +1 -0
- package/storage/svg/enter.svg +1 -0
- package/storage/svg/expand.svg +1 -0
- package/storage/svg/external-link.svg +1 -0
- package/storage/svg/eye-off.svg +1 -0
- package/storage/svg/eye.svg +1 -0
- package/storage/svg/file-agents.svg +1 -0
- package/storage/svg/file-astro.svg +1 -0
- package/storage/svg/file-babel.svg +1 -0
- package/storage/svg/file-bash.svg +1 -0
- package/storage/svg/file-biome.svg +1 -0
- package/storage/svg/file-bootstrap.svg +1 -0
- package/storage/svg/file-browserslist.svg +1 -0
- package/storage/svg/file-bun.svg +1 -0
- package/storage/svg/file-c.svg +1 -0
- package/storage/svg/file-claude.svg +1 -0
- package/storage/svg/file-css.svg +1 -0
- package/storage/svg/file-database.svg +1 -0
- package/storage/svg/file-docker.svg +1 -0
- package/storage/svg/file-eslint.svg +1 -0
- package/storage/svg/file-font.svg +1 -0
- package/storage/svg/file-git.svg +1 -0
- package/storage/svg/file-go.svg +1 -0
- package/storage/svg/file-graphql.svg +1 -0
- package/storage/svg/file-html.svg +1 -0
- package/storage/svg/file-image.svg +1 -0
- package/storage/svg/file-javascript.svg +1 -0
- package/storage/svg/file-json.svg +1 -0
- package/storage/svg/file-markdown.svg +1 -0
- package/storage/svg/file-mcp.svg +1 -0
- package/storage/svg/file-nextjs.svg +1 -0
- package/storage/svg/file-npm.svg +1 -0
- package/storage/svg/file-oxc.svg +1 -0
- package/storage/svg/file-package.svg +1 -0
- package/storage/svg/file-pnpm.svg +1 -0
- package/storage/svg/file-postcss.svg +1 -0
- package/storage/svg/file-prettier.svg +1 -0
- package/storage/svg/file-python.svg +1 -0
- package/storage/svg/file-react.svg +1 -0
- package/storage/svg/file-readme.svg +1 -0
- package/storage/svg/file-ruby.svg +1 -0
- package/storage/svg/file-rust.svg +1 -0
- package/storage/svg/file-sass.svg +1 -0
- package/storage/svg/file-stylelint.svg +1 -0
- package/storage/svg/file-svelte.svg +1 -0
- package/storage/svg/file-svg.svg +1 -0
- package/storage/svg/file-svgo.svg +1 -0
- package/storage/svg/file-swift.svg +1 -0
- package/storage/svg/file-table.svg +1 -0
- package/storage/svg/file-tailwind.svg +1 -0
- package/storage/svg/file-terraform.svg +1 -0
- package/storage/svg/file-text.svg +1 -0
- package/storage/svg/file-tsconfig.svg +1 -0
- package/storage/svg/file-typescript.svg +1 -0
- package/storage/svg/file-vite.svg +1 -0
- package/storage/svg/file-vscode.svg +1 -0
- package/storage/svg/file-vue.svg +1 -0
- package/storage/svg/file-wasm.svg +1 -0
- package/storage/svg/file-webpack.svg +1 -0
- package/storage/svg/file-yml.svg +1 -0
- package/storage/svg/file-zig.svg +1 -0
- package/storage/svg/file-zip.svg +1 -0
- package/storage/svg/file.svg +1 -0
- package/storage/svg/folder-assets-open.svg +1 -0
- package/storage/svg/folder-assets.svg +1 -0
- package/storage/svg/folder-components-open.svg +1 -0
- package/storage/svg/folder-components.svg +1 -0
- package/storage/svg/folder-docs-open.svg +1 -0
- package/storage/svg/folder-docs.svg +1 -0
- package/storage/svg/folder-git-open.svg +1 -0
- package/storage/svg/folder-git.svg +1 -0
- package/storage/svg/folder-open.svg +1 -0
- package/storage/svg/folder-output-open.svg +1 -0
- package/storage/svg/folder-output.svg +1 -0
- package/storage/svg/folder-packages-open.svg +1 -0
- package/storage/svg/folder-packages.svg +1 -0
- package/storage/svg/folder-public-open.svg +1 -0
- package/storage/svg/folder-public.svg +1 -0
- package/storage/svg/folder-scripts-open.svg +1 -0
- package/storage/svg/folder-scripts.svg +1 -0
- package/storage/svg/folder-src-open.svg +1 -0
- package/storage/svg/folder-src.svg +1 -0
- package/storage/svg/folder-test-open.svg +1 -0
- package/storage/svg/folder-test.svg +1 -0
- package/storage/svg/folder.svg +1 -0
- package/storage/svg/gear.svg +1 -0
- package/storage/svg/help.svg +1 -0
- package/storage/svg/highlight.svg +1 -0
- package/storage/svg/home.svg +1 -0
- package/storage/svg/inbox.svg +1 -0
- package/storage/svg/italic.svg +1 -0
- package/storage/svg/keyboard.svg +1 -0
- package/storage/svg/link.svg +1 -0
- package/storage/svg/list-checks.svg +1 -0
- package/storage/svg/lock.svg +1 -0
- package/storage/svg/log-out.svg +1 -0
- package/storage/svg/map.svg +1 -0
- package/storage/svg/mastercard.svg +1 -0
- package/storage/svg/pause.svg +1 -0
- package/storage/svg/pencil.svg +1 -0
- package/storage/svg/play.svg +1 -0
- package/storage/svg/plus.svg +1 -0
- package/storage/svg/redo.svg +1 -0
- package/storage/svg/save.svg +1 -0
- package/storage/svg/sidebar-filled.svg +1 -0
- package/storage/svg/sidebar.svg +1 -0
- package/storage/svg/slash.svg +1 -0
- package/storage/svg/sliders.svg +1 -0
- package/storage/svg/strikethrough.svg +1 -0
- package/storage/svg/trash.svg +1 -0
- package/storage/svg/triangle.svg +1 -0
- package/storage/svg/undo.svg +1 -0
- package/storage/svg/unlink.svg +1 -0
- package/storage/svg/user.svg +1 -0
- package/storage/svg/visa.svg +1 -0
- package/storage/svg/zoom-in.svg +1 -0
- package/storage/svg/zoom-out.svg +1 -0
- package/tokens.scss +1 -1
- package/vite.config.ts +47 -46
- package/build/components/accordion/more.d.ts +0 -20
- package/build/components/accordion/more.js +0 -76
- package/build/components/anchor/scss/index.scss +0 -2
- package/build/components/announcement-banner/index.d.ts +0 -33
- package/build/components/announcement-banner/index.js +0 -61
- package/build/components/announcement-banner/scss/index.scss +0 -2
- package/build/components/autosave/index.d.ts +0 -12
- package/build/components/autosave/index.js +0 -140
- package/build/components/autosave/scss/index.scss +0 -2
- package/build/components/back-to-top/index.d.ts +0 -16
- package/build/components/back-to-top/index.js +0 -182
- package/build/components/back-to-top/scss/index.scss +0 -2
- package/build/components/bento-grid/index.d.ts +0 -25
- package/build/components/bento-grid/index.js +0 -38
- package/build/components/bento-grid/scss/index.scss +0 -2
- package/build/components/bento-grid-spotlight/index.d.ts +0 -35
- package/build/components/bento-grid-spotlight/index.js +0 -108
- package/build/components/bento-grid-spotlight/scss/index.scss +0 -2
- package/build/components/bookmark-button/index.d.ts +0 -23
- package/build/components/bookmark-button/index.js +0 -120
- package/build/components/bookmark-button/scss/index.scss +0 -2
- package/build/components/breadcrumb/ellipsis.d.ts +0 -12
- package/build/components/breadcrumb/ellipsis.js +0 -11
- package/build/components/breadcrumb/item.d.ts +0 -12
- package/build/components/breadcrumb/item.js +0 -9
- package/build/components/breadcrumb/link.d.ts +0 -15
- package/build/components/breadcrumb/link.js +0 -14
- package/build/components/breadcrumb/list.d.ts +0 -12
- package/build/components/breadcrumb/list.js +0 -9
- package/build/components/breadcrumb/menu.d.ts +0 -13
- package/build/components/breadcrumb/menu.js +0 -16
- package/build/components/breadcrumb/page.d.ts +0 -12
- package/build/components/breadcrumb/page.js +0 -9
- package/build/components/breadcrumb/separator.d.ts +0 -12
- package/build/components/breadcrumb/separator.js +0 -11
- package/build/components/breadcrumb/svg/caret.svg +0 -1
- package/build/components/breadcrumb/svg/chevron.svg +0 -1
- package/build/components/breadcrumb/svg/more.svg +0 -1
- package/build/components/breadcrumbs/index.d.ts +0 -27
- package/build/components/breadcrumbs/index.js +0 -324
- package/build/components/breadcrumbs/scss/index.scss +0 -2
- package/build/components/button/svg/plus.svg +0 -1
- package/build/components/card-input/index.d.ts +0 -31
- package/build/components/card-input/index.js +0 -562
- package/build/components/card-input/scss/index.scss +0 -2
- package/build/components/carousel-3d/index.d.ts +0 -27
- package/build/components/carousel-3d/index.js +0 -248
- package/build/components/carousel-3d/scss/index.scss +0 -2
- package/build/components/checkbox-group/index.d.ts +0 -30
- package/build/components/checkbox-group/index.js +0 -101
- package/build/components/checkbox-group/scss/index.scss +0 -2
- package/build/components/code-morph/index.d.ts +0 -25
- package/build/components/code-morph/index.js +0 -401
- package/build/components/code-morph/scss/index.scss +0 -2
- package/build/components/collapsible-sidebar/index.d.ts +0 -41
- package/build/components/collapsible-sidebar/index.js +0 -105
- package/build/components/collapsible-sidebar/scss/index.scss +0 -2
- package/build/components/command/constants.d.ts +0 -3
- package/build/components/command/constants.js +0 -3
- package/build/components/command-palette/index.d.ts +0 -51
- package/build/components/command-palette/index.js +0 -319
- package/build/components/command-palette/scss/index.scss +0 -2
- package/build/components/composer/index.d.ts +0 -29
- package/build/components/composer/index.js +0 -79
- package/build/components/composer/scss/index.scss +0 -2
- package/build/components/composer/svg/arrow-up.svg +0 -1
- package/build/components/contribution-heatmap/index.d.ts +0 -30
- package/build/components/contribution-heatmap/index.js +0 -236
- package/build/components/contribution-heatmap/scss/index.scss +0 -2
- package/build/components/date-range-picker/index.d.ts +0 -28
- package/build/components/date-range-picker/index.js +0 -443
- package/build/components/date-range-picker/scss/index.scss +0 -2
- package/build/components/dynamic-island/index.d.ts +0 -23
- package/build/components/dynamic-island/index.js +0 -179
- package/build/components/dynamic-island/scss/index.scss +0 -2
- package/build/components/email-typo-fix/index.d.ts +0 -28
- package/build/components/email-typo-fix/index.js +0 -416
- package/build/components/email-typo-fix/scss/index.scss +0 -2
- package/build/components/expanding-card/index.d.ts +0 -26
- package/build/components/expanding-card/index.js +0 -265
- package/build/components/expanding-card/scss/index.scss +0 -2
- package/build/components/feature-spotlight/index.d.ts +0 -37
- package/build/components/feature-spotlight/index.js +0 -248
- package/build/components/feature-spotlight/scss/index.scss +0 -2
- package/build/components/file-tree/index.d.ts +0 -31
- package/build/components/file-tree/index.js +0 -208
- package/build/components/file-tree/scss/index.scss +0 -2
- package/build/components/filter-grid/index.d.ts +0 -23
- package/build/components/filter-grid/index.js +0 -240
- package/build/components/filter-grid/scss/index.scss +0 -2
- package/build/components/gradient-text/index.d.ts +0 -19
- package/build/components/gradient-text/index.js +0 -14
- package/build/components/gradient-text/scss/index.scss +0 -2
- package/build/components/header/index.d.ts +0 -41
- package/build/components/header/index.js +0 -281
- package/build/components/header/scss/index.scss +0 -2
- package/build/components/hover-card/index.d.ts +0 -47
- package/build/components/hover-card/index.js +0 -197
- package/build/components/hover-card/scss/index.scss +0 -2
- package/build/components/kanban-board/index.d.ts +0 -23
- package/build/components/kanban-board/index.js +0 -235
- package/build/components/kanban-board/scss/index.scss +0 -2
- package/build/components/lightbox/index.d.ts +0 -32
- package/build/components/lightbox/index.js +0 -396
- package/build/components/lightbox/scss/index.scss +0 -2
- package/build/components/lightbox/spring.d.ts +0 -16
- package/build/components/lightbox/spring.js +0 -71
- package/build/components/line-shadow-text/index.d.ts +0 -17
- package/build/components/line-shadow-text/index.js +0 -15
- package/build/components/line-shadow-text/scss/index.scss +0 -2
- package/build/components/log/index.d.ts +0 -20
- package/build/components/log/index.js +0 -125
- package/build/components/log/scss/index.scss +0 -2
- package/build/components/long-press/bind.d.ts +0 -21
- package/build/components/long-press/bind.js +0 -136
- package/build/components/long-press/button.d.ts +0 -21
- package/build/components/long-press/button.js +0 -25
- package/build/components/long-press/index.d.ts +0 -2181
- package/build/components/long-press/index.js +0 -4
- package/build/components/long-press/scss/index.scss +0 -2
- package/build/components/modal/index.d.ts +0 -24
- package/build/components/modal/index.js +0 -75
- package/build/components/modal/scss/index.scss +0 -2
- package/build/components/morphing-button/index.d.ts +0 -24
- package/build/components/morphing-button/index.js +0 -127
- package/build/components/morphing-button/scss/index.scss +0 -2
- package/build/components/morphing-nav/index.d.ts +0 -38
- package/build/components/morphing-nav/index.js +0 -342
- package/build/components/morphing-nav/scss/index.scss +0 -2
- package/build/components/multi-step-form/index.d.ts +0 -32
- package/build/components/multi-step-form/index.js +0 -305
- package/build/components/multi-step-form/scss/index.scss +0 -2
- package/build/components/navigation-menu/index.d.ts +0 -28
- package/build/components/navigation-menu/index.js +0 -419
- package/build/components/navigation-menu/scss/index.scss +0 -2
- package/build/components/nested-menu/index.d.ts +0 -27
- package/build/components/nested-menu/index.js +0 -374
- package/build/components/nested-menu/scss/index.scss +0 -2
- package/build/components/normalize/scss/index.scss +0 -3
- package/build/components/notification-bell/index.d.ts +0 -13
- package/build/components/notification-bell/index.js +0 -87
- package/build/components/notification-bell/scss/index.scss +0 -2
- package/build/components/onboarding-checklist/index.d.ts +0 -29
- package/build/components/onboarding-checklist/index.js +0 -196
- package/build/components/onboarding-checklist/scss/index.scss +0 -2
- package/build/components/page-dots/index.d.ts +0 -24
- package/build/components/page-dots/index.js +0 -116
- package/build/components/page-dots/scss/index.scss +0 -2
- package/build/components/pagination/svg/arrow-left.svg +0 -1
- package/build/components/pagination/svg/arrow-right.svg +0 -1
- package/build/components/password/constants.d.ts +0 -2
- package/build/components/password/constants.js +0 -2
- package/build/components/password/index.d.ts +0 -22
- package/build/components/password/index.js +0 -74
- package/build/components/password/scss/index.scss +0 -2
- package/build/components/plan-card/index.d.ts +0 -36
- package/build/components/plan-card/index.js +0 -257
- package/build/components/plan-card/scss/index.scss +0 -2
- package/build/components/radio-cards/index.d.ts +0 -36
- package/build/components/radio-cards/index.js +0 -106
- package/build/components/radio-cards/scss/index.scss +0 -2
- package/build/components/range-filter/index.d.ts +0 -20
- package/build/components/range-filter/index.js +0 -216
- package/build/components/range-filter/scss/index.scss +0 -2
- package/build/components/range-slider/index.d.ts +0 -30
- package/build/components/range-slider/index.js +0 -287
- package/build/components/range-slider/scss/index.scss +0 -2
- package/build/components/reading-progress/index.d.ts +0 -13
- package/build/components/reading-progress/index.js +0 -106
- package/build/components/reading-progress/scss/index.scss +0 -2
- package/build/components/scroll-fade/index.d.ts +0 -39
- package/build/components/scroll-fade/index.js +0 -104
- package/build/components/scroll-fade/scss/index.scss +0 -2
- package/build/components/scroll-spine/index.d.ts +0 -26
- package/build/components/scroll-spine/index.js +0 -204
- package/build/components/scroll-spine/scss/index.scss +0 -2
- package/build/components/scroll-velocity/index.d.ts +0 -22
- package/build/components/scroll-velocity/index.js +0 -160
- package/build/components/scroll-velocity/scss/index.scss +0 -2
- package/build/components/scrub-input/index.d.ts +0 -39
- package/build/components/scrub-input/index.js +0 -221
- package/build/components/scrub-input/scss/index.scss +0 -2
- package/build/components/select-menu/index.d.ts +0 -34
- package/build/components/select-menu/index.js +0 -329
- package/build/components/select-menu/scss/index.scss +0 -2
- package/build/components/selection-toolbar/index.d.ts +0 -36
- package/build/components/selection-toolbar/index.js +0 -442
- package/build/components/selection-toolbar/scss/index.scss +0 -2
- package/build/components/settings/index.d.ts +0 -43
- package/build/components/settings/index.js +0 -147
- package/build/components/settings/scss/index.scss +0 -2
- package/build/components/settings/svg/close.svg +0 -1
- package/build/components/settings/svg/saved.svg +0 -1
- package/build/components/share-button/index.d.ts +0 -29
- package/build/components/share-button/index.js +0 -191
- package/build/components/share-button/scss/index.scss +0 -2
- package/build/components/sheet/index.d.ts +0 -33
- package/build/components/sheet/index.js +0 -110
- package/build/components/sheet/scss/index.scss +0 -2
- package/build/components/shiny-text/index.d.ts +0 -17
- package/build/components/shiny-text/index.js +0 -14
- package/build/components/shiny-text/scss/index.scss +0 -2
- package/build/components/shortcut-sheet/index.d.ts +0 -48
- package/build/components/shortcut-sheet/index.js +0 -304
- package/build/components/shortcut-sheet/scss/index.scss +0 -2
- package/build/components/sidebar/index.d.ts +0 -13
- package/build/components/sidebar/index.js +0 -13
- package/build/components/sidebar/scss/index.scss +0 -2
- package/build/components/slider/index.d.ts +0 -25
- package/build/components/slider/index.js +0 -188
- package/build/components/slider/scss/index.scss +0 -2
- package/build/components/sliding-tabs/index.d.ts +0 -28
- package/build/components/sliding-tabs/index.js +0 -188
- package/build/components/sliding-tabs/scss/index.scss +0 -2
- package/build/components/snap-carousel/index.d.ts +0 -30
- package/build/components/snap-carousel/index.js +0 -233
- package/build/components/snap-carousel/scss/index.scss +0 -2
- package/build/components/sparkline/index.d.ts +0 -26
- package/build/components/sparkline/index.js +0 -173
- package/build/components/sparkline/scss/index.scss +0 -2
- package/build/components/stacked-drawer/index.d.ts +0 -24
- package/build/components/stacked-drawer/index.js +0 -211
- package/build/components/stacked-drawer/scss/index.scss +0 -2
- package/build/components/stat-counter/index.d.ts +0 -32
- package/build/components/stat-counter/index.js +0 -216
- package/build/components/stat-counter/scss/index.scss +0 -2
- package/build/components/status-picker/index.d.ts +0 -32
- package/build/components/status-picker/index.js +0 -198
- package/build/components/status-picker/scss/index.scss +0 -2
- package/build/components/sticky-stack/index.d.ts +0 -33
- package/build/components/sticky-stack/index.js +0 -184
- package/build/components/sticky-stack/scss/index.scss +0 -2
- package/build/components/story-progress/index.d.ts +0 -26
- package/build/components/story-progress/index.js +0 -196
- package/build/components/story-progress/scss/index.scss +0 -2
- package/build/components/swipe-deck/index.d.ts +0 -19
- package/build/components/swipe-deck/index.js +0 -300
- package/build/components/swipe-deck/scss/index.scss +0 -2
- package/build/components/tabs/scss/index.scss +0 -2
- package/build/components/tag-input/index.d.ts +0 -27
- package/build/components/tag-input/index.js +0 -309
- package/build/components/tag-input/scss/index.scss +0 -2
- package/build/components/task-list/index.d.ts +0 -28
- package/build/components/task-list/index.js +0 -107
- package/build/components/task-list/scss/index.scss +0 -2
- package/build/components/tasklist/constants.d.ts +0 -2
- package/build/components/tasklist/constants.js +0 -2
- package/build/components/text-animate/index.d.ts +0 -30
- package/build/components/text-animate/index.js +0 -97
- package/build/components/text-animate/scss/index.scss +0 -2
- package/build/components/text-progress/index.d.ts +0 -13
- package/build/components/text-progress/index.js +0 -114
- package/build/components/text-progress/scss/index.scss +0 -2
- package/build/components/thumbnail/scss/index.scss +0 -2
- package/build/components/toast/manager.d.ts +0 -64
- package/build/components/toast/manager.js +0 -221
- package/build/components/toast/svg/check.svg +0 -1
- package/build/components/toast/svg/chevron.svg +0 -1
- package/build/components/toast/svg/close.svg +0 -1
- package/build/components/toast/svg/copy.svg +0 -1
- package/build/components/toast/svg/info.svg +0 -1
- package/build/components/tooltip/context.d.ts +0 -22
- package/build/components/tooltip/context.js +0 -66
- package/build/components/tooltip/group.d.ts +0 -29
- package/build/components/tooltip/group.js +0 -128
- package/build/components/tooltip/options.d.ts +0 -7
- package/build/components/tooltip/options.js +0 -21
- package/build/components/tree/index.d.ts +0 -28
- package/build/components/tree/index.js +0 -182
- package/build/components/tree/scss/index.scss +0 -2
- package/build/components/tree-view/index.d.ts +0 -25
- package/build/components/tree-view/index.js +0 -205
- package/build/components/tree-view/scss/index.scss +0 -2
- package/build/components/typewriter-retype/index.d.ts +0 -8
- package/build/components/typewriter-retype/index.js +0 -122
- package/build/components/typewriter-retype/scss/index.scss +0 -2
- package/build/components/undo-toast/index.d.ts +0 -30
- package/build/components/undo-toast/index.js +0 -262
- package/build/components/undo-toast/scss/index.scss +0 -2
- package/build/components/value-flash/index.d.ts +0 -12
- package/build/components/value-flash/index.js +0 -106
- package/build/components/value-flash/scss/index.scss +0 -2
- package/build/components/waitlist-join/index.d.ts +0 -34
- package/build/components/waitlist-join/index.js +0 -402
- package/build/components/waitlist-join/scss/index.scss +0 -2
- package/build/components/web-search/brands.d.ts +0 -121
- package/build/components/web-search/brands.js +0 -138
- package/build/components/web-search/index.d.ts +0 -31
- package/build/components/web-search/index.js +0 -245
- package/build/components/web-search/scss/index.scss +0 -2
- package/build/components/word-rotator/index.d.ts +0 -14
- package/build/components/word-rotator/index.js +0 -196
- package/build/components/word-rotator/scss/index.scss +0 -2
- package/build/css-utilities/absolute/scss/index.scss +0 -2
- package/build/css-utilities/disabled/scss/index.scss +0 -2
- package/build/css-utilities/hidden/scss/index.scss +0 -2
- package/build/css-utilities/not-allowed/scss/index.scss +0 -2
- package/build/css-utilities/tabular/scss/index.scss +0 -2
- package/lib.scss +0 -2
- package/src/components/accordion/more.ts +0 -97
- package/src/components/anchor/scss/index.scss +0 -56
- package/src/components/anchor/scss/variables.scss +0 -4
- package/src/components/announcement-banner/index.ts +0 -81
- package/src/components/announcement-banner/scss/index.scss +0 -183
- package/src/components/announcement-banner/scss/variables.scss +0 -18
- package/src/components/autosave/index.ts +0 -113
- package/src/components/autosave/scss/index.scss +0 -155
- package/src/components/autosave/scss/variables.scss +0 -22
- package/src/components/back-to-top/index.ts +0 -293
- package/src/components/back-to-top/scss/index.scss +0 -111
- package/src/components/back-to-top/scss/variables.scss +0 -30
- package/src/components/bento-grid/index.ts +0 -63
- package/src/components/bento-grid/scss/index.scss +0 -175
- package/src/components/bento-grid/scss/variables.scss +0 -19
- package/src/components/bento-grid-spotlight/index.ts +0 -133
- package/src/components/bento-grid-spotlight/scss/index.scss +0 -226
- package/src/components/bento-grid-spotlight/scss/variables.scss +0 -36
- package/src/components/bookmark-button/index.ts +0 -174
- package/src/components/bookmark-button/scss/index.scss +0 -162
- package/src/components/bookmark-button/scss/variables.scss +0 -28
- package/src/components/breadcrumb/ellipsis.ts +0 -17
- package/src/components/breadcrumb/item.ts +0 -10
- package/src/components/breadcrumb/link.ts +0 -21
- package/src/components/breadcrumb/list.ts +0 -10
- package/src/components/breadcrumb/menu.ts +0 -20
- package/src/components/breadcrumb/page.ts +0 -16
- package/src/components/breadcrumb/separator.ts +0 -17
- package/src/components/breadcrumb/svg/caret.svg +0 -1
- package/src/components/breadcrumb/svg/chevron.svg +0 -1
- package/src/components/breadcrumb/svg/more.svg +0 -1
- package/src/components/breadcrumbs/index.ts +0 -479
- package/src/components/breadcrumbs/scss/index.scss +0 -235
- package/src/components/breadcrumbs/scss/variables.scss +0 -30
- package/src/components/button/svg/plus.svg +0 -1
- package/src/components/card-input/index.ts +0 -594
- package/src/components/card-input/scss/index.scss +0 -512
- package/src/components/card-input/scss/variables.scss +0 -29
- package/src/components/carousel-3d/index.ts +0 -405
- package/src/components/carousel-3d/scss/index.scss +0 -155
- package/src/components/carousel-3d/scss/variables.scss +0 -25
- package/src/components/checkbox/svg/check.svg +0 -1
- package/src/components/checkbox-group/index.ts +0 -171
- package/src/components/checkbox-group/scss/index.scss +0 -229
- package/src/components/checkbox-group/scss/variables.scss +0 -28
- package/src/components/code-morph/index.ts +0 -459
- package/src/components/code-morph/scss/index.scss +0 -384
- package/src/components/code-morph/scss/variables.scss +0 -33
- package/src/components/collapsible-sidebar/index.ts +0 -193
- package/src/components/collapsible-sidebar/scss/index.scss +0 -220
- package/src/components/collapsible-sidebar/scss/variables.scss +0 -42
- package/src/components/command/constants.ts +0 -6
- package/src/components/command-palette/index.ts +0 -456
- package/src/components/command-palette/scss/index.scss +0 -235
- package/src/components/command-palette/scss/variables.scss +0 -42
- package/src/components/composer/index.ts +0 -117
- package/src/components/composer/scss/index.scss +0 -105
- package/src/components/composer/scss/variables.scss +0 -82
- package/src/components/composer/svg/arrow-up.svg +0 -1
- package/src/components/contribution-heatmap/index.ts +0 -348
- package/src/components/contribution-heatmap/scss/index.scss +0 -151
- package/src/components/contribution-heatmap/scss/variables.scss +0 -39
- package/src/components/date-range-picker/index.ts +0 -641
- package/src/components/date-range-picker/scss/index.scss +0 -380
- package/src/components/date-range-picker/scss/variables.scss +0 -22
- package/src/components/dynamic-island/index.ts +0 -161
- package/src/components/dynamic-island/scss/index.scss +0 -278
- package/src/components/dynamic-island/scss/variables.scss +0 -39
- package/src/components/email-typo-fix/index.ts +0 -615
- package/src/components/email-typo-fix/scss/index.scss +0 -213
- package/src/components/email-typo-fix/scss/variables.scss +0 -18
- package/src/components/expanding-card/index.ts +0 -377
- package/src/components/expanding-card/scss/index.scss +0 -232
- package/src/components/expanding-card/scss/variables.scss +0 -22
- package/src/components/feature-spotlight/index.ts +0 -437
- package/src/components/feature-spotlight/scss/index.scss +0 -254
- package/src/components/feature-spotlight/scss/variables.scss +0 -36
- package/src/components/file-tree/index.ts +0 -319
- package/src/components/file-tree/scss/index.scss +0 -138
- package/src/components/file-tree/scss/variables.scss +0 -18
- package/src/components/filter-grid/index.ts +0 -344
- package/src/components/filter-grid/scss/index.scss +0 -142
- package/src/components/filter-grid/scss/variables.scss +0 -41
- package/src/components/gradient-text/index.ts +0 -26
- package/src/components/gradient-text/scss/index.scss +0 -20
- package/src/components/gradient-text/scss/variables.scss +0 -6
- package/src/components/header/index.ts +0 -318
- package/src/components/header/scss/index.scss +0 -508
- package/src/components/header/scss/variables.scss +0 -21
- package/src/components/hover-card/index.ts +0 -319
- package/src/components/hover-card/scss/index.scss +0 -117
- package/src/components/hover-card/scss/variables.scss +0 -25
- package/src/components/kanban-board/index.ts +0 -326
- package/src/components/kanban-board/scss/index.scss +0 -126
- package/src/components/kanban-board/scss/variables.scss +0 -39
- package/src/components/lightbox/index.ts +0 -594
- package/src/components/lightbox/scss/index.scss +0 -194
- package/src/components/lightbox/scss/variables.scss +0 -24
- package/src/components/lightbox/spring.ts +0 -118
- package/src/components/line-shadow-text/index.ts +0 -24
- package/src/components/line-shadow-text/scss/index.scss +0 -45
- package/src/components/line-shadow-text/scss/variables.scss +0 -6
- package/src/components/log/index.ts +0 -156
- package/src/components/log/scss/index.scss +0 -269
- package/src/components/log/scss/variables.scss +0 -19
- package/src/components/long-press/bind.ts +0 -159
- package/src/components/long-press/button.ts +0 -46
- package/src/components/long-press/index.ts +0 -6
- package/src/components/long-press/scss/index.scss +0 -60
- package/src/components/long-press/scss/variables.scss +0 -9
- package/src/components/modal/index.ts +0 -91
- package/src/components/modal/scss/index.scss +0 -81
- package/src/components/modal/scss/variables.scss +0 -42
- package/src/components/morphing-button/index.ts +0 -188
- package/src/components/morphing-button/scss/index.scss +0 -154
- package/src/components/morphing-button/scss/variables.scss +0 -21
- package/src/components/morphing-nav/index.ts +0 -496
- package/src/components/morphing-nav/scss/index.scss +0 -284
- package/src/components/morphing-nav/scss/variables.scss +0 -36
- package/src/components/multi-step-form/index.ts +0 -368
- package/src/components/multi-step-form/scss/index.scss +0 -397
- package/src/components/multi-step-form/scss/variables.scss +0 -22
- package/src/components/navigation-menu/index.ts +0 -608
- package/src/components/navigation-menu/scss/index.scss +0 -213
- package/src/components/navigation-menu/scss/variables.scss +0 -24
- package/src/components/nested-menu/index.ts +0 -446
- package/src/components/nested-menu/scss/index.scss +0 -219
- package/src/components/nested-menu/scss/variables.scss +0 -26
- package/src/components/normalize/scss/index.scss +0 -35
- package/src/components/notification-bell/index.ts +0 -102
- package/src/components/notification-bell/scss/index.scss +0 -132
- package/src/components/notification-bell/scss/variables.scss +0 -41
- package/src/components/notification-bell/svg/bell.svg +0 -1
- package/src/components/onboarding-checklist/index.ts +0 -252
- package/src/components/onboarding-checklist/scss/index.scss +0 -414
- package/src/components/onboarding-checklist/scss/variables.scss +0 -17
- package/src/components/page-dots/index.ts +0 -137
- package/src/components/page-dots/scss/index.scss +0 -95
- package/src/components/page-dots/scss/variables.scss +0 -26
- package/src/components/pagination/svg/arrow-left.svg +0 -1
- package/src/components/pagination/svg/arrow-right.svg +0 -1
- package/src/components/password/constants.ts +0 -4
- package/src/components/password/index.ts +0 -97
- package/src/components/password/scss/index.scss +0 -188
- package/src/components/password/scss/variables.scss +0 -50
- package/src/components/plan-card/index.ts +0 -404
- package/src/components/plan-card/scss/index.scss +0 -513
- package/src/components/plan-card/scss/variables.scss +0 -33
- package/src/components/radio-cards/index.ts +0 -145
- package/src/components/radio-cards/scss/index.scss +0 -232
- package/src/components/radio-cards/scss/variables.scss +0 -32
- package/src/components/range-filter/index.ts +0 -295
- package/src/components/range-filter/scss/index.scss +0 -257
- package/src/components/range-filter/scss/variables.scss +0 -20
- package/src/components/range-slider/index.ts +0 -277
- package/src/components/range-slider/scss/index.scss +0 -234
- package/src/components/range-slider/scss/variables.scss +0 -26
- package/src/components/reading-progress/index.ts +0 -160
- package/src/components/reading-progress/scss/index.scss +0 -115
- package/src/components/reading-progress/scss/variables.scss +0 -31
- package/src/components/scroll-fade/index.ts +0 -131
- package/src/components/scroll-fade/scss/index.scss +0 -104
- package/src/components/scroll-fade/scss/variables.scss +0 -10
- package/src/components/scroll-spine/index.ts +0 -355
- package/src/components/scroll-spine/scss/index.scss +0 -209
- package/src/components/scroll-spine/scss/variables.scss +0 -22
- package/src/components/scroll-velocity/index.ts +0 -269
- package/src/components/scroll-velocity/scss/index.scss +0 -29
- package/src/components/scroll-velocity/scss/variables.scss +0 -3
- package/src/components/scrub-input/index.ts +0 -339
- package/src/components/scrub-input/scss/index.scss +0 -105
- package/src/components/scrub-input/scss/variables.scss +0 -23
- package/src/components/select-menu/index.ts +0 -499
- package/src/components/select-menu/scss/index.scss +0 -192
- package/src/components/select-menu/scss/variables.scss +0 -41
- package/src/components/selection-toolbar/index.ts +0 -510
- package/src/components/selection-toolbar/scss/index.scss +0 -221
- package/src/components/selection-toolbar/scss/variables.scss +0 -24
- package/src/components/settings/index.ts +0 -184
- package/src/components/settings/scss/index.scss +0 -327
- package/src/components/settings/scss/variables.scss +0 -50
- package/src/components/settings/svg/close.svg +0 -1
- package/src/components/settings/svg/saved.svg +0 -1
- package/src/components/share-button/index.ts +0 -328
- package/src/components/share-button/scss/index.scss +0 -191
- package/src/components/share-button/scss/variables.scss +0 -24
- package/src/components/sheet/index.ts +0 -170
- package/src/components/sheet/scss/index.scss +0 -65
- package/src/components/sheet/scss/variables.scss +0 -27
- package/src/components/shiny-text/index.ts +0 -19
- package/src/components/shiny-text/scss/index.scss +0 -32
- package/src/components/shiny-text/scss/variables.scss +0 -7
- package/src/components/shortcut-sheet/index.ts +0 -454
- package/src/components/shortcut-sheet/scss/index.scss +0 -306
- package/src/components/shortcut-sheet/scss/variables.scss +0 -36
- package/src/components/sidebar/index.ts +0 -13
- package/src/components/sidebar/scss/index.scss +0 -49
- package/src/components/sidebar/scss/variables.scss +0 -20
- package/src/components/slider/index.ts +0 -232
- package/src/components/slider/scss/index.scss +0 -182
- package/src/components/slider/scss/variables.scss +0 -15
- package/src/components/sliding-tabs/index.ts +0 -291
- package/src/components/sliding-tabs/scss/index.scss +0 -174
- package/src/components/sliding-tabs/scss/variables.scss +0 -34
- package/src/components/snap-carousel/index.ts +0 -324
- package/src/components/snap-carousel/scss/index.scss +0 -174
- package/src/components/snap-carousel/scss/variables.scss +0 -31
- package/src/components/sparkline/index.ts +0 -234
- package/src/components/sparkline/scss/index.scss +0 -169
- package/src/components/sparkline/scss/variables.scss +0 -30
- package/src/components/stacked-drawer/index.ts +0 -272
- package/src/components/stacked-drawer/scss/index.scss +0 -122
- package/src/components/stacked-drawer/scss/variables.scss +0 -20
- package/src/components/stat-counter/index.ts +0 -337
- package/src/components/stat-counter/scss/index.scss +0 -246
- package/src/components/stat-counter/scss/variables.scss +0 -24
- package/src/components/status-picker/index.ts +0 -323
- package/src/components/status-picker/scss/index.scss +0 -290
- package/src/components/status-picker/scss/variables.scss +0 -29
- package/src/components/sticky-stack/index.ts +0 -313
- package/src/components/sticky-stack/scss/index.scss +0 -167
- package/src/components/sticky-stack/scss/variables.scss +0 -50
- package/src/components/story-progress/index.ts +0 -247
- package/src/components/story-progress/scss/index.scss +0 -205
- package/src/components/story-progress/scss/variables.scss +0 -21
- package/src/components/swipe-deck/index.ts +0 -438
- package/src/components/swipe-deck/scss/index.scss +0 -275
- package/src/components/swipe-deck/scss/variables.scss +0 -24
- package/src/components/tabs/scss/index.scss +0 -62
- package/src/components/tabs/scss/variables.scss +0 -4
- package/src/components/tag-input/index.ts +0 -415
- package/src/components/tag-input/scss/index.scss +0 -186
- package/src/components/tag-input/scss/variables.scss +0 -30
- package/src/components/task-list/index.ts +0 -137
- package/src/components/task-list/scss/index.scss +0 -171
- package/src/components/task-list/scss/variables.scss +0 -8
- package/src/components/tasklist/constants.ts +0 -4
- package/src/components/text/scss/variables.scss +0 -9
- package/src/components/text-animate/index.ts +0 -142
- package/src/components/text-animate/scss/index.scss +0 -106
- package/src/components/text-animate/scss/variables.scss +0 -17
- package/src/components/text-progress/index.ts +0 -170
- package/src/components/text-progress/scss/index.scss +0 -148
- package/src/components/text-progress/scss/variables.scss +0 -26
- package/src/components/thumbnail/scss/index.scss +0 -62
- package/src/components/thumbnail/scss/variables.scss +0 -19
- package/src/components/toast/manager.ts +0 -342
- package/src/components/toast/svg/check.svg +0 -1
- package/src/components/toast/svg/chevron.svg +0 -1
- package/src/components/toast/svg/close.svg +0 -1
- package/src/components/toast/svg/copy.svg +0 -1
- package/src/components/toast/svg/error.svg +0 -1
- package/src/components/toast/svg/info.svg +0 -1
- package/src/components/toast/svg/loading.svg +0 -1
- package/src/components/toast/svg/success.svg +0 -1
- package/src/components/toast/svg/warning.svg +0 -1
- package/src/components/tooltip/context.ts +0 -96
- package/src/components/tooltip/group.ts +0 -162
- package/src/components/tooltip/options.ts +0 -33
- package/src/components/tooltip/scss/_group.scss +0 -164
- package/src/components/tree/index.ts +0 -259
- package/src/components/tree/scss/index.scss +0 -105
- package/src/components/tree/scss/variables.scss +0 -48
- package/src/components/tree-view/index.ts +0 -285
- package/src/components/tree-view/scss/index.scss +0 -169
- package/src/components/tree-view/scss/variables.scss +0 -18
- package/src/components/typewriter-retype/index.ts +0 -164
- package/src/components/typewriter-retype/scss/index.scss +0 -142
- package/src/components/typewriter-retype/scss/variables.scss +0 -46
- package/src/components/undo-toast/index.ts +0 -359
- package/src/components/undo-toast/scss/index.scss +0 -216
- package/src/components/undo-toast/scss/variables.scss +0 -20
- package/src/components/value-flash/index.ts +0 -121
- package/src/components/value-flash/scss/index.scss +0 -193
- package/src/components/value-flash/scss/variables.scss +0 -47
- package/src/components/waitlist-join/index.ts +0 -545
- package/src/components/waitlist-join/scss/index.scss +0 -401
- package/src/components/waitlist-join/scss/variables.scss +0 -23
- package/src/components/web-search/brands.ts +0 -155
- package/src/components/web-search/index.ts +0 -316
- package/src/components/web-search/scss/index.scss +0 -270
- package/src/components/web-search/scss/variables.scss +0 -8
- package/src/components/word-rotator/index.ts +0 -296
- package/src/components/word-rotator/scss/index.scss +0 -33
- package/src/components/word-rotator/scss/variables.scss +0 -7
- package/src/css-utilities/absolute/scss/index.scss +0 -36
- package/src/css-utilities/disabled/scss/index.scss +0 -4
- package/src/css-utilities/hidden/scss/index.scss +0 -28
- package/src/css-utilities/not-allowed/scss/index.scss +0 -7
- package/src/css-utilities/tabular/scss/index.scss +0 -3
- package/src/lib/index.scss +0 -7
- package/src/lib/scss/breakpoint.scss +0 -41
- package/src/lib/scss/color.scss +0 -1
- package/src/lib/scss/list.scss +0 -77
- package/src/lib/scss/string.scss +0 -34
- package/src/tokens/index.scss +0 -9
- package/storage/psd/Color Palette.psd +0 -0
- /package/src/{lib → shared}/scss/css-variables.scss +0 -0
- /package/src/{lib → shared}/scss/map.scss +0 -0
- /package/src/{lib → shared}/scss/position.scss +0 -0
- /package/{build/components/notification-bell → storage}/svg/bell.svg +0 -0
- /package/{build/components/checkbox → storage}/svg/check.svg +0 -0
- /package/{build/components/toast/svg/error.svg → storage/svg/circle-alert.svg} +0 -0
- /package/{build/components/toast/svg/success.svg → storage/svg/circle-check.svg} +0 -0
- /package/{build/components/toast/svg/loading.svg → storage/svg/spinner.svg} +0 -0
- /package/{build/components/toast → storage}/svg/warning.svg +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import { swallow } from '../../shared/press.js';
|
|
5
|
+
import input from './field.js';
|
|
6
|
+
const template_0589z482 = template_u1.template(`<div class='input-scrub'><span aria-hidden='true' class='input-scrub-tape'><span class='input-scrub-ticks'></span><span class='input-scrub-needle'></span></span><span class='input-scrub-label'>`);
|
|
7
|
+
class ReactiveObject_0589z480 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#draft;
|
|
9
|
+
#scrubbing = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
constructor(_p0) {
|
|
11
|
+
super(null);
|
|
12
|
+
this.#draft = this[reactivity_u0.SIGNAL](_p0);
|
|
13
|
+
}
|
|
14
|
+
get draft() {
|
|
15
|
+
return reactivity_u0.read(this.#draft);
|
|
16
|
+
}
|
|
17
|
+
set draft(_v0) {
|
|
18
|
+
reactivity_u0.write(this.#draft, _v0);
|
|
19
|
+
}
|
|
20
|
+
get scrubbing() {
|
|
21
|
+
return reactivity_u0.read(this.#scrubbing);
|
|
22
|
+
}
|
|
23
|
+
set scrubbing(_v1) {
|
|
24
|
+
reactivity_u0.write(this.#scrubbing, _v1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const DRAG_THRESHOLD = 3;
|
|
28
|
+
const INPUT_SCRUB_FIELD = Symbol.for('@esportsplus/ui/input.scrub.field');
|
|
29
|
+
const INPUT_SCRUB_LABEL = Symbol.for('@esportsplus/ui/input.scrub.label');
|
|
30
|
+
const TICK = 6;
|
|
31
|
+
function decimals(n) {
|
|
32
|
+
let s = String(n), dot = s.indexOf('.');
|
|
33
|
+
return dot < 0 ? 0 : s.length - dot - 1;
|
|
34
|
+
}
|
|
35
|
+
function gear(e) {
|
|
36
|
+
return e.shiftKey ? 10 : e.altKey ? 0.1 : 1;
|
|
37
|
+
}
|
|
38
|
+
export default component(function ({ label, lockPointer = false, max = Infinity, min = -Infinity, pixelsPerStep = 1, step = 1, precision = decimals(step) + 1, suffix = '', value = 0, state = reactivity_u0.reactive({ active: false, error: '', value }), ...attributes }, content) {
|
|
39
|
+
let field, local = new ReactiveObject_0589z480(null), period = TICK * 5, scrub = null, skip = false;
|
|
40
|
+
function clamp(n) {
|
|
41
|
+
return Math.min(Math.max(n, min), max);
|
|
42
|
+
}
|
|
43
|
+
function commit() {
|
|
44
|
+
if (local.draft === null) {
|
|
45
|
+
return state.value;
|
|
46
|
+
}
|
|
47
|
+
let next = parse(local.draft);
|
|
48
|
+
if (next !== null && next !== state.value) {
|
|
49
|
+
state.value = next;
|
|
50
|
+
}
|
|
51
|
+
return next ?? state.value;
|
|
52
|
+
}
|
|
53
|
+
function end() {
|
|
54
|
+
if (document.pointerLockElement) {
|
|
55
|
+
document.exitPointerLock();
|
|
56
|
+
}
|
|
57
|
+
document.documentElement.style.removeProperty('cursor');
|
|
58
|
+
if (scrub?.moved) {
|
|
59
|
+
swallow();
|
|
60
|
+
}
|
|
61
|
+
scrub = null;
|
|
62
|
+
local.scrubbing = false;
|
|
63
|
+
}
|
|
64
|
+
function format(n) {
|
|
65
|
+
return `${round(n)}${suffix}`;
|
|
66
|
+
}
|
|
67
|
+
function parse(text) {
|
|
68
|
+
let trimmed = (suffix ? text.replace(suffix, '') : text).trim(), n = Number(trimmed);
|
|
69
|
+
return trimmed === '' || Number.isNaN(n) ? null : clamp(round(n));
|
|
70
|
+
}
|
|
71
|
+
function round(n) {
|
|
72
|
+
return Number(n.toFixed(precision));
|
|
73
|
+
}
|
|
74
|
+
function show(field, text) {
|
|
75
|
+
local.draft = text;
|
|
76
|
+
field.value = text;
|
|
77
|
+
field.select();
|
|
78
|
+
}
|
|
79
|
+
return (() => {
|
|
80
|
+
let root_0589z481 = template_0589z482(), element_0589z483 = root_0589z481.firstChild, element_0589z484 = element_0589z483.firstElementChild.firstElementChild, element_0589z485 = element_0589z483.firstElementChild.nextElementSibling;
|
|
81
|
+
template_u1.slot(element_0589z485, content, 1);
|
|
82
|
+
template_u1.slot(element_0589z483, input.call({ attributes: { ...this?.attributes?.[INPUT_SCRUB_FIELD], ...attributes[INPUT_SCRUB_FIELD] } }, {
|
|
83
|
+
'aria-label': label,
|
|
84
|
+
'aria-valuemax': Number.isFinite(max) && max,
|
|
85
|
+
'aria-valuemin': Number.isFinite(min) && min,
|
|
86
|
+
'aria-valuenow': () => state.value,
|
|
87
|
+
'aria-valuetext': () => format(state.value),
|
|
88
|
+
autocomplete: 'off',
|
|
89
|
+
class: 'input-scrub-field',
|
|
90
|
+
inputmode: 'decimal',
|
|
91
|
+
onblur: () => {
|
|
92
|
+
if (!skip) {
|
|
93
|
+
commit();
|
|
94
|
+
}
|
|
95
|
+
skip = false;
|
|
96
|
+
local.draft = null;
|
|
97
|
+
},
|
|
98
|
+
onconnect: (element) => {
|
|
99
|
+
field = element;
|
|
100
|
+
},
|
|
101
|
+
onfocus: (e) => {
|
|
102
|
+
show(e.currentTarget, format(state.value));
|
|
103
|
+
},
|
|
104
|
+
oninput: (e) => {
|
|
105
|
+
local.draft = e.currentTarget.value;
|
|
106
|
+
},
|
|
107
|
+
onkeydown: (e) => {
|
|
108
|
+
let field = e.currentTarget;
|
|
109
|
+
if (e.key === 'Enter') {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
show(field, format(commit()));
|
|
112
|
+
}
|
|
113
|
+
else if (e.key === 'Escape') {
|
|
114
|
+
skip = true;
|
|
115
|
+
field.blur();
|
|
116
|
+
}
|
|
117
|
+
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
let base = local.draft === null ? state.value : (parse(local.draft) ?? state.value), next = clamp(round(base + (e.key === 'ArrowUp' ? step : -step) * gear(e)));
|
|
120
|
+
if (next !== state.value) {
|
|
121
|
+
state.value = next;
|
|
122
|
+
}
|
|
123
|
+
show(field, format(next));
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
role: 'spinbutton',
|
|
127
|
+
spellcheck: false,
|
|
128
|
+
state,
|
|
129
|
+
value: () => local.draft ?? format(state.value)
|
|
130
|
+
}), 2);
|
|
131
|
+
template_u1.setProperties(element_0589z485, this?.attributes?.[INPUT_SCRUB_LABEL]);
|
|
132
|
+
template_u1.setProperties(element_0589z485, attributes[INPUT_SCRUB_LABEL]);
|
|
133
|
+
template_u1.delegate(element_0589z485, 'click', () => {
|
|
134
|
+
field?.focus();
|
|
135
|
+
});
|
|
136
|
+
template_u1.delegate(element_0589z485, 'lostpointercapture', (e) => {
|
|
137
|
+
if (scrub?.id === e.pointerId) {
|
|
138
|
+
end();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
template_u1.delegate(element_0589z485, 'pointercancel', (e) => {
|
|
142
|
+
if (scrub?.id === e.pointerId) {
|
|
143
|
+
end();
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
template_u1.delegate(element_0589z485, 'pointerdown', (e) => {
|
|
147
|
+
if (e.button !== 0 || scrub) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
e.preventDefault();
|
|
151
|
+
let element = e.currentTarget, start = state.value;
|
|
152
|
+
if (field && document.activeElement === field) {
|
|
153
|
+
start = commit();
|
|
154
|
+
skip = true;
|
|
155
|
+
field.blur();
|
|
156
|
+
}
|
|
157
|
+
element.setPointerCapture(e.pointerId);
|
|
158
|
+
scrub = {
|
|
159
|
+
id: e.pointerId,
|
|
160
|
+
lastX: e.clientX,
|
|
161
|
+
moved: false,
|
|
162
|
+
raw: start,
|
|
163
|
+
sent: start,
|
|
164
|
+
start,
|
|
165
|
+
startX: e.clientX
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
template_u1.delegate(element_0589z485, 'pointermove', (e) => {
|
|
169
|
+
let s = scrub;
|
|
170
|
+
if (!s || e.pointerId !== s.id) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
let element = e.currentTarget;
|
|
174
|
+
if (!s.moved) {
|
|
175
|
+
if (Math.abs(e.clientX - s.startX) < DRAG_THRESHOLD) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
s.moved = true;
|
|
179
|
+
local.scrubbing = true;
|
|
180
|
+
document.documentElement.style.cursor = 'ew-resize';
|
|
181
|
+
if (lockPointer && e.pointerType === 'mouse') {
|
|
182
|
+
Promise.resolve(element.requestPointerLock?.()).catch(() => { });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
let dx = document.pointerLockElement === element ? e.movementX : e.clientX - s.lastX;
|
|
186
|
+
s.lastX = e.clientX;
|
|
187
|
+
s.raw = clamp(s.raw + (dx / pixelsPerStep) * step * gear(e));
|
|
188
|
+
let next = round(s.raw);
|
|
189
|
+
if (next === s.sent) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
s.sent = next;
|
|
193
|
+
state.value = next;
|
|
194
|
+
});
|
|
195
|
+
template_u1.delegate(element_0589z485, 'pointerup', (e) => {
|
|
196
|
+
if (scrub?.id === e.pointerId) {
|
|
197
|
+
end();
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
template_u1.setList(element_0589z484, 'style', () => {
|
|
201
|
+
let offset = ((((state.value / step) * pixelsPerStep) % period) + period) % period;
|
|
202
|
+
return `--offset: ${offset}px`;
|
|
203
|
+
});
|
|
204
|
+
template_u1.setProperties(element_0589z483, this?.attributes);
|
|
205
|
+
template_u1.setProperties(element_0589z483, attributes);
|
|
206
|
+
template_u1.setList(element_0589z483, 'class', () => local.scrubbing && '--active');
|
|
207
|
+
template_u1.ondisconnect(element_0589z483, () => {
|
|
208
|
+
if (scrub) {
|
|
209
|
+
end();
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
template_u1.ondocument(element_0589z483, 'keydown', (e) => {
|
|
213
|
+
if (e.key !== 'Escape' || !scrub) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
state.value = scrub.start;
|
|
217
|
+
end();
|
|
218
|
+
});
|
|
219
|
+
return root_0589z481;
|
|
220
|
+
})();
|
|
221
|
+
}, { field: INPUT_SCRUB_FIELD, label: INPUT_SCRUB_LABEL });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.input{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.input:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.input:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.input.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.input{background:var(--background);border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;font-size:var(--font-size);min-height:calc(var(--padding-vertical) * 2 + var(--size));min-width:0;padding-block:max(0px, var(--padding-vertical) - var(--border-width));padding-inline:max(0px, var(--padding-horizontal) - var(--border-width));text-overflow:ellipsis;transition:background var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);white-space:nowrap;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.input:invalid,.input:required{box-shadow:none}.input[type=number]{appearance:textfield}}
|
|
1
|
+
@layer components{.input-scrub-tape{position:absolute;inset:auto 0 0}.input-tag-chip-body,.input-scrub-ticks{position:absolute;inset:0}.input{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.input{--background:var(--background-active)}.input:not(.--active):hover{--background:var(--background-hover)}.input:not(.--active):active{--background:var(--background-pressed)}.input{--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:transparent;--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default)}.--active.input{--border-color:var(--border-color-active)}.input:not(.--active):hover{--border-color:var(--border-color-hover)}.input:not(.--active):active{--border-color:var(--border-color-pressed)}.input{--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default)}.--active.input{--color:var(--color-active)}.input:not(.--active):hover{--color:var(--color-hover)}.input:not(.--active):active{--color:var(--color-pressed)}.input-tag-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.input-tag-list{margin:0;padding:0;list-style:none}.input-tag-chip-text{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.input-scrub{background:var(--background);border-radius:var(--border-radius);color:var(--color);height:var(--height);align-items:center;display:flex;position:relative;overflow:hidden}.input-scrub:has(.input-scrub-field:focus-visible){outline:var(--outline-width) solid var(--outline-color)}.input-scrub>.input-scrub-field{font-variant-numeric:tabular-nums;height:100%;min-height:0;outline:none;padding-inline-end:var(--field-padding)}.input-scrub-label{color:var(--label-color);cursor:ew-resize;font-size:var(--font-size);touch-action:none;height:100%;transition:color var(--transition-duration) var(--transition-timing-function);-webkit-user-select:none;user-select:none;width:var(--label-width);flex-shrink:0;justify-content:center;align-items:center;display:flex}.input-scrub-label:hover{color:var(--label-color-active)}.input-scrub-label svg{width:16px;height:16px}.input-scrub-needle{background:var(--needle-color);height:var(--tape-height);width:1px;position:absolute;bottom:0;left:50%;translate:-50%}.input-scrub-tape{color:var(--tape-color);height:var(--tape-height);opacity:var(--tape-opacity);pointer-events:none;transition:opacity var(--tape-duration) var(--tape-timing-function), translate var(--tape-duration) var(--tape-timing-function);translate:var(--tape-translate);-webkit-mask-image:linear-gradient(90deg,#0000,#000 30% 70%,#0000);mask-image:linear-gradient(90deg,#0000,#000 30% 70%,#0000)}.input-scrub-ticks{background-image:linear-gradient(90deg,currentColor 1px,#0000 1px),linear-gradient(90deg,currentColor 1px,#0000 1px);background-position-x:calc(50% - var(--offset,0px));background-position-y:bottom;background-repeat:repeat-x;background-size:var(--tick) var(--tape-minor-height), calc(var(--tick) * 5) var(--tape-major-height)}@media (prefers-reduced-motion:reduce){.input-scrub-tape{translate:0}}.input-tag{color:var(--color);width:var(--width);flex-direction:column;gap:8px;display:flex}.input-tag-box{background:var(--box-background);border-radius:var(--box-border-radius);box-shadow:var(--box-shadow);cursor:text;outline-offset:2px;padding:var(--box-padding)}.input-tag-box:has(.input-tag-field:focus-visible){outline:var(--border-width-500) solid var(--outline-color)}.input-tag-chip{color:var(--chip-color);font-size:var(--font-size);height:var(--chip-height);max-width:100%;padding-inline:var(--text-inset) 4px;transition:color var(--transition-duration) var(--transition-timing-function);align-items:center;gap:2px;display:flex;position:relative}.input-tag-chip.--active{color:var(--chip-color-active)}.input-tag-chip-body{background:var(--chip-background);border-radius:var(--chip-border-radius);box-shadow:var(--chip-shadow);transition:background-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function)}.input-tag-chip-button{border-radius:var(--border-radius-300);color:var(--chip-remove-color);cursor:pointer;height:24px;transition:background-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function);background:0 0;border:0;outline:none;flex-shrink:0;justify-content:center;align-items:center;width:24px;padding:0;display:flex;position:relative}.input-tag-chip-button:after{content:"";position:absolute;inset:-4px}.input-tag-chip-button:hover{background:var(--chip-remove-hover-background);color:var(--chip-remove-color-hover)}.input-tag-chip-button:active{scale:.96}.input-tag-chip-button:focus-visible{outline:var(--border-width-500) solid var(--outline-color)}.input-tag-chip-icon{width:14px;height:14px}.input-tag-chip-remove{display:flex;position:relative}.input-tag-chip-text{position:relative}.input-tag-entry{font-size:var(--font-size);min-width:var(--entry-min-width);flex:1;display:flex}.input-tag-entry>.input-tag-field{font-size:inherit;height:var(--chip-height);min-width:0;min-height:0;padding:0 8px 0 var(--text-inset);outline:none}.input-tag-entry>.input-tag-field::placeholder{color:var(--placeholder-color)}.input-tag-ghost{pointer-events:none;position:absolute}.input-tag-hint{color:var(--hint-color);font-size:var(--hint-font-size);margin:0}.input-tag-label{font-size:var(--label-font-size);font-weight:var(--label-font-weight)}.input-tag-list{gap:var(--gap);flex-wrap:wrap;display:flex;position:relative}@media (prefers-reduced-motion:reduce){.input-tag-chip-button:active{scale:1}}.input{--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--font-size:var(--font-size-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.input:not(.--active):not(.--active):hover{--box-shadow:var(--box-shadow-hover)}.input:not(.--active):not(.--active):active{--box-shadow:var(--box-shadow-pressed)}.input.--active{--box-shadow:var(--box-shadow-active)}.input-scrub{--background:var(--color-white-300);--border-radius:var(--border-radius-400);--color:var(--color-text-500);--field-padding:10px;--font-size:var(--font-size-300);--height:40px;--label-color:var(--color-text-300);--label-color-active:var(--color-text-500);--label-width:36px;--needle-color:var(--color-text-500);--outline-color:var(--color-text-500);--outline-width:var(--border-width-500);--tape-color:var(--color-text-300);--tape-duration:var(--tape-leave-duration);--tape-enter-duration:.15s;--tape-height:8px;--tape-leave-duration:.2s;--tape-major-height:6px;--tape-minor-height:3px;--tape-opacity:0;--tape-timing-function:cubic-bezier(.23, 1, .32, 1);--tape-translate:0 4px;--tick:6px}.input-scrub.--active{--label-color:var(--label-color-active);--tape-duration:var(--tape-enter-duration);--tape-opacity:1;--tape-translate:0 0}.input-scrub>.input-scrub-field{--color-default:currentColor;--font-size:inherit;--padding-horizontal:0px;--padding-vertical:0px}.input-tag{--box-background:var(--color-grey-400);--box-border-radius:14px;--box-padding:6px;--box-shadow:var(--box-shadow-200);--chip-background:var(--color-white-300);--chip-background-active:var(--color-text-500);--chip-blur:4px;--chip-border-radius:var(--border-radius-400);--chip-color:var(--color-text-500);--chip-color-active:var(--color-white-300);--chip-height:32px;--chip-remove-color:var(--color-text-300);--chip-remove-color-hover:var(--color-text-500);--chip-remove-hover-background:oklch(from var(--color-text-500) l c h / .06);--chip-remove-scale:.25;--chip-scale:.9;--chip-shadow:var(--box-shadow-100);--chip-shake:4px;--chip-shake-opacity:1;--chip-slide-duration:.41s;--chip-slide-easing:linear(0, .038, .116, .219, .326, .43, .518, .602, .674, .731, .782, .825, .858, .886, .91, .928, .942, .955, .964, .971, .977, .982, .986, .989, .991, .993, .995, .996, .997, .997, 1);--color:var(--color-text-500);--entry-min-width:120px;--font-size:var(--font-size-300);--gap:6px;--hint-color:var(--color-text-300);--hint-font-size:var(--font-size-200);--label-font-size:var(--font-size-300);--label-font-weight:var(--font-weight-500);--outline-color:var(--color-text-500);--placeholder-color:var(--color-text-300);--text-inset:10px;--width:min(440px, 100%)}@media (prefers-reduced-motion:reduce){.input-tag{--chip-blur:0px;--chip-remove-scale:1;--chip-scale:1;--chip-shake:0px;--chip-shake-opacity:.4;--chip-slide-duration:0s}}.input-tag-chip.--active{--chip-background:var(--chip-background-active);--chip-remove-color:oklch(from var(--chip-color-active) l c h / .7);--chip-remove-color-hover:var(--chip-color-active);--chip-remove-hover-background:transparent;--chip-shadow:none}.input-tag-entry>.input-tag-field{--color-default:currentColor}.input{min-height:calc(var(--padding-vertical) * 2 + var(--size));text-overflow:ellipsis;transition:background var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);white-space:nowrap;background:var(--background);border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;font-size:var(--font-size);min-width:0;padding-block:max(0px, var(--padding-vertical) - var(--border-width));padding-inline:max(0px, var(--padding-horizontal) - var(--border-width));flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.input:invalid,.input:required{box-shadow:none}.input[type=number]{appearance:textfield}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
|
+
import { type Reactive } from '@esportsplus/reactivity';
|
|
4
|
+
import input from './field.js';
|
|
5
|
+
type A = Attributes & {
|
|
6
|
+
[INPUT_TAG_FIELD]?: Field;
|
|
7
|
+
hint?: Renderable<unknown>;
|
|
8
|
+
label: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
state?: State;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
};
|
|
14
|
+
type Field = Parameters<typeof input>[0];
|
|
15
|
+
type State = {
|
|
16
|
+
active: boolean;
|
|
17
|
+
error: string;
|
|
18
|
+
tags: Reactive<string[]>;
|
|
19
|
+
};
|
|
20
|
+
declare const INPUT_TAG_FIELD: unique symbol;
|
|
21
|
+
declare const _default: template_u1.Factory<A, Renderable<any>, Renderable<any>, {
|
|
22
|
+
readonly field: typeof INPUT_TAG_FIELD;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import { ReactiveArray } from '@esportsplus/reactivity';
|
|
5
|
+
import close from '@esportsplus/ui/svg/close.svg';
|
|
6
|
+
import { measure, slides, timing } from '../../shared/animation.js';
|
|
7
|
+
import input from './field.js';
|
|
8
|
+
const template_0vbj7wx3 = template_u1.template(`<li class='input-tag-chip '><span aria-hidden='true' class='input-tag-chip-body'></span><span class='input-tag-chip-text'></span><span class='input-tag-chip-remove'><button class='input-tag-chip-button' type='button'><svg aria-hidden='true' class='input-tag-chip-icon'><use />`);
|
|
9
|
+
const template_0vbj7wx9 = template_u1.template(`<input type='hidden' />`);
|
|
10
|
+
const template_0vbj7wxc = template_u1.template(`<li aria-hidden='true' class='input-tag-chip input-tag-ghost' inert style=';;;;'><span aria-hidden='true' class='input-tag-chip-body'></span><span class='input-tag-chip-text'></span><span class='input-tag-chip-remove'><span class='input-tag-chip-button'><svg aria-hidden='true' class='input-tag-chip-icon'><use />`);
|
|
11
|
+
const template_0vbj7wxh = template_u1.template(`<div class='input-tag'><label class='input-tag-label'></label><div class='input-tag-box'><ul class='input-tag-list'><!--$--><!--$--><li class='input-tag-entry' role='none'></li></ul></div><!--$--><span aria-live='polite' class='input-tag-live'>`);
|
|
12
|
+
const template_0vbj7wxs = template_u1.template(`<p class='input-tag-hint'>`);
|
|
13
|
+
class ReactiveObject_0vbj7wx0 extends reactivity_u0.ReactiveObject {
|
|
14
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
15
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
16
|
+
#tags;
|
|
17
|
+
constructor(_p0) {
|
|
18
|
+
super(null);
|
|
19
|
+
this.#tags = this[reactivity_u0.SIGNAL](_p0);
|
|
20
|
+
}
|
|
21
|
+
get active() {
|
|
22
|
+
return reactivity_u0.read(this.#active);
|
|
23
|
+
}
|
|
24
|
+
set active(_v0) {
|
|
25
|
+
reactivity_u0.write(this.#active, _v0);
|
|
26
|
+
}
|
|
27
|
+
get error() {
|
|
28
|
+
return reactivity_u0.read(this.#error);
|
|
29
|
+
}
|
|
30
|
+
set error(_v1) {
|
|
31
|
+
reactivity_u0.write(this.#error, _v1);
|
|
32
|
+
}
|
|
33
|
+
get tags() {
|
|
34
|
+
return reactivity_u0.read(this.#tags);
|
|
35
|
+
}
|
|
36
|
+
set tags(_v2) {
|
|
37
|
+
reactivity_u0.write(this.#tags, _v2);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
class ReactiveObject_0vbj7wx1 extends reactivity_u0.ReactiveObject {
|
|
41
|
+
#announcement = this[reactivity_u0.SIGNAL]('');
|
|
42
|
+
#armed = this[reactivity_u0.SIGNAL]('');
|
|
43
|
+
constructor() {
|
|
44
|
+
super(null);
|
|
45
|
+
}
|
|
46
|
+
get announcement() {
|
|
47
|
+
return reactivity_u0.read(this.#announcement);
|
|
48
|
+
}
|
|
49
|
+
set announcement(_v0) {
|
|
50
|
+
reactivity_u0.write(this.#announcement, _v0);
|
|
51
|
+
}
|
|
52
|
+
get armed() {
|
|
53
|
+
return reactivity_u0.read(this.#armed);
|
|
54
|
+
}
|
|
55
|
+
set armed(_v1) {
|
|
56
|
+
reactivity_u0.write(this.#armed, _v1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const TAG_SEPARATORS = /[,\n]/;
|
|
60
|
+
const LEAVE = { duration: 150, easing: 'cubic-bezier(0.23, 1, 0.32, 1)' };
|
|
61
|
+
const POP = {
|
|
62
|
+
duration: 380,
|
|
63
|
+
easing: 'linear(0, 0.035, 0.107, 0.208, 0.31, 0.42, 0.524, 0.61, 0.692, 0.757, 0.815, 0.863, 0.898, 0.928, 0.95, 0.968, 0.981, 0.989, 0.996, 1, 1.003, 1.004, 1.005, 1.005, 1.005, 1.005, 1.004, 1.004, 1.003, 1.003, 1)'
|
|
64
|
+
};
|
|
65
|
+
const SHAKE = { duration: 300, easing: 'cubic-bezier(0.23, 1, 0.32, 1)' };
|
|
66
|
+
const SHAKING = Symbol();
|
|
67
|
+
const SWAP = { delay: 60, duration: 300, fill: 'backwards' };
|
|
68
|
+
const INPUT_TAG_FIELD = Symbol.for('@esportsplus/ui/input.tag.field');
|
|
69
|
+
let uid = 0;
|
|
70
|
+
function key(tag) {
|
|
71
|
+
return tag.toLowerCase();
|
|
72
|
+
}
|
|
73
|
+
function motion(element) {
|
|
74
|
+
let computed = getComputedStyle(element);
|
|
75
|
+
return {
|
|
76
|
+
blur: parseFloat(computed.getPropertyValue('--chip-blur')) || 0,
|
|
77
|
+
dim: parseFloat(computed.getPropertyValue('--chip-shake-opacity')) || 1,
|
|
78
|
+
grow: parseFloat(computed.getPropertyValue('--chip-remove-scale')) || 1,
|
|
79
|
+
scale: parseFloat(computed.getPropertyValue('--chip-scale')) || 1,
|
|
80
|
+
settle: computed.getPropertyValue('--chip-slide-easing').trim() || 'ease',
|
|
81
|
+
shake: parseFloat(computed.getPropertyValue('--chip-shake')) || 0,
|
|
82
|
+
slide: timing(computed, 'chip-slide')
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export default component(function ({ hint, label, name, placeholder = 'Add a tag', tags = [], state = new ReactiveObject_0vbj7wx0(new ReactiveArray(tags)), ...attributes }) {
|
|
86
|
+
let chips = new Map(), field, ghosts = new ReactiveArray(), id = `input-tag-${++uid}`, list, local = new ReactiveObject_0vbj7wx1(), slot = new template_u1.ArraySlot(state.tags, (tag) => {
|
|
87
|
+
let root_0vbj7wx2 = template_0vbj7wx3(), element_0vbj7wx4 = root_0vbj7wx2.firstChild, element_0vbj7wx5 = element_0vbj7wx4.firstElementChild.nextElementSibling, element_0vbj7wx6 = element_0vbj7wx5.nextElementSibling.firstElementChild, element_0vbj7wx7 = element_0vbj7wx6.firstElementChild.firstElementChild;
|
|
88
|
+
template_u1.slot(element_0vbj7wx5, tag, 1);
|
|
89
|
+
template_u1.slot(element_0vbj7wx4, name && (() => {
|
|
90
|
+
let root_0vbj7wx8 = template_0vbj7wx9(), element_0vbj7wxa = root_0vbj7wx8.firstChild;
|
|
91
|
+
template_u1.setProperty(element_0vbj7wxa, 'name', template_u1.interpolate([(name), "[]"]));
|
|
92
|
+
template_u1.setProperty(element_0vbj7wxa, 'value', tag);
|
|
93
|
+
return root_0vbj7wx8;
|
|
94
|
+
})(), 2);
|
|
95
|
+
template_u1.setProperty(element_0vbj7wx7, 'href', template_u1.interpolate(["#", (close)]));
|
|
96
|
+
template_u1.setProperty(element_0vbj7wx6, 'aria-label', template_u1.interpolate(["Remove ", (tag)]));
|
|
97
|
+
template_u1.delegate(element_0vbj7wx6, 'click', () => {
|
|
98
|
+
remove(key(tag));
|
|
99
|
+
field?.focus();
|
|
100
|
+
});
|
|
101
|
+
template_u1.delegate(element_0vbj7wx6, 'pointerdown', (e) => {
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
});
|
|
104
|
+
template_u1.setList(element_0vbj7wx4, 'class', () => local.armed === key(tag) && '--active');
|
|
105
|
+
template_u1.onconnect(element_0vbj7wx4, (element) => {
|
|
106
|
+
chips.set(key(tag), element);
|
|
107
|
+
});
|
|
108
|
+
template_u1.ondisconnect(element_0vbj7wx4, (element) => {
|
|
109
|
+
if (chips.get(key(tag)) === element) {
|
|
110
|
+
chips.delete(key(tag));
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return root_0vbj7wx2;
|
|
114
|
+
}), stand = new template_u1.ArraySlot(ghosts, (ghost) => {
|
|
115
|
+
let root_0vbj7wxb = template_0vbj7wxc(), element_0vbj7wxd = root_0vbj7wxb.firstChild, element_0vbj7wxe = element_0vbj7wxd.firstElementChild.nextElementSibling, element_0vbj7wxf = element_0vbj7wxe.nextElementSibling.firstElementChild.firstElementChild.firstElementChild;
|
|
116
|
+
template_u1.slot(element_0vbj7wxe, ghost.tag, 1);
|
|
117
|
+
template_u1.setProperty(element_0vbj7wxf, 'href', template_u1.interpolate(["#", (close)]));
|
|
118
|
+
template_u1.setList(element_0vbj7wxd, 'style', template_u1.interpolate(["height: ", (ghost.height), "px"]));
|
|
119
|
+
template_u1.setList(element_0vbj7wxd, 'style', template_u1.interpolate([" left: ", (ghost.left), "px"]));
|
|
120
|
+
template_u1.setList(element_0vbj7wxd, 'style', template_u1.interpolate([" top: ", (ghost.top), "px"]));
|
|
121
|
+
template_u1.setList(element_0vbj7wxd, 'style', template_u1.interpolate([" width: ", (ghost.width), "px"]));
|
|
122
|
+
template_u1.onconnect(element_0vbj7wxd, (element) => {
|
|
123
|
+
let { blur, scale } = motion(element);
|
|
124
|
+
element.animate({ filter: ['blur(0)', `blur(${blur / 2}px)`], opacity: [1, 0], scale: [1, scale] }, { ...LEAVE, fill: 'forwards' }).finished.then(() => {
|
|
125
|
+
let at = ghosts.indexOf(ghost);
|
|
126
|
+
if (at !== -1) {
|
|
127
|
+
ghosts.splice(at, 1);
|
|
128
|
+
}
|
|
129
|
+
}, () => { });
|
|
130
|
+
});
|
|
131
|
+
return root_0vbj7wxb;
|
|
132
|
+
});
|
|
133
|
+
function add(raw, typed) {
|
|
134
|
+
let added = [], seen = new Map();
|
|
135
|
+
for (let i = 0, n = state.tags.$length; i < n; i++) {
|
|
136
|
+
let k = key(state.tags[i]);
|
|
137
|
+
if (!seen.has(k)) {
|
|
138
|
+
seen.set(k, state.tags[i]);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
for (let i = 0, n = raw.length; i < n; i++) {
|
|
142
|
+
let tag = raw[i].trim();
|
|
143
|
+
if (!tag) {
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
let k = key(tag);
|
|
147
|
+
if (seen.has(k)) {
|
|
148
|
+
nudge(k);
|
|
149
|
+
local.announcement = `${seen.get(k) ?? tag} is already added`;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
seen.set(k, undefined);
|
|
153
|
+
added.push(tag);
|
|
154
|
+
}
|
|
155
|
+
if (field) {
|
|
156
|
+
field.value = '';
|
|
157
|
+
}
|
|
158
|
+
local.armed = '';
|
|
159
|
+
if (!added.length) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
let formed = typed && added.length === 1 ? key(added[0]) : '';
|
|
163
|
+
mutate(() => state.tags.push(...added), formed ? form : pop);
|
|
164
|
+
local.announcement = `Added ${added.join(', ')}`;
|
|
165
|
+
}
|
|
166
|
+
function form(chip) {
|
|
167
|
+
let body = chip.querySelector('.input-tag-chip-body'), remove = chip.querySelector('.input-tag-chip-remove'), { blur, grow, scale, settle } = motion(chip);
|
|
168
|
+
body?.animate({ opacity: [0, 1], scale: [scale, 1] }, POP);
|
|
169
|
+
remove?.animate({ filter: [`blur(${blur}px)`, 'blur(0)'], opacity: [0, 1], scale: [grow, 1] }, { ...SWAP, easing: settle });
|
|
170
|
+
}
|
|
171
|
+
function mutate(change, enter) {
|
|
172
|
+
if (!list) {
|
|
173
|
+
change();
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
let children = list.children, shift = motion(list).slide;
|
|
177
|
+
measure(children);
|
|
178
|
+
change();
|
|
179
|
+
slot.flush();
|
|
180
|
+
slides([...children].filter((child) => !child.classList.contains('input-tag-ghost')), shift, enter);
|
|
181
|
+
}
|
|
182
|
+
function nudge(k) {
|
|
183
|
+
let element = chips.get(k);
|
|
184
|
+
if (!element) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
let { dim, shake } = motion(element);
|
|
188
|
+
element[SHAKING]?.cancel();
|
|
189
|
+
element[SHAKING] = element.animate({ opacity: [1, dim, 1], translate: ['0', `${-shake}px`, `${shake}px`, `${shake * -0.75}px`, `${shake / 2}px`, '0'] }, SHAKE);
|
|
190
|
+
}
|
|
191
|
+
function pop(chip) {
|
|
192
|
+
let { blur, scale } = motion(chip);
|
|
193
|
+
chip.animate({ filter: [`blur(${blur}px)`, 'blur(0)'], opacity: [0, 1], scale: [scale, 1] }, POP);
|
|
194
|
+
}
|
|
195
|
+
function remove(k) {
|
|
196
|
+
let index = state.tags.findIndex((t) => key(t) === k);
|
|
197
|
+
if (index === -1) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
let element = chips.get(k), tag = state.tags[index];
|
|
201
|
+
if (element && list) {
|
|
202
|
+
let origin = list.getBoundingClientRect(), rect = element.getBoundingClientRect();
|
|
203
|
+
ghosts.push({ height: rect.height, left: rect.left - origin.left, tag, top: rect.top - origin.top, width: rect.width });
|
|
204
|
+
}
|
|
205
|
+
mutate(() => state.tags.splice(index, 1));
|
|
206
|
+
local.announcement = `Removed ${tag}`;
|
|
207
|
+
local.armed = '';
|
|
208
|
+
}
|
|
209
|
+
return (() => {
|
|
210
|
+
let root_0vbj7wxg = template_0vbj7wxh(), element_0vbj7wxi = root_0vbj7wxg.firstChild, element_0vbj7wxj = element_0vbj7wxi.firstElementChild, element_0vbj7wxk = element_0vbj7wxj.nextElementSibling, element_0vbj7wxl = element_0vbj7wxk.firstElementChild, element_0vbj7wxm = element_0vbj7wxl.firstChild, element_0vbj7wxn = element_0vbj7wxm.nextSibling, element_0vbj7wxo = element_0vbj7wxl.firstElementChild, element_0vbj7wxp = element_0vbj7wxi.firstChild.nextSibling.nextSibling, element_0vbj7wxq = element_0vbj7wxk.nextElementSibling;
|
|
211
|
+
template_u1.slot(element_0vbj7wxj, label, 1);
|
|
212
|
+
template_u1.slot(element_0vbj7wxm, slot);
|
|
213
|
+
template_u1.slot(element_0vbj7wxn, stand);
|
|
214
|
+
template_u1.slot(element_0vbj7wxo, input.call({ attributes: { ...this?.attributes?.[INPUT_TAG_FIELD], ...attributes[INPUT_TAG_FIELD] } }, {
|
|
215
|
+
autocomplete: 'off',
|
|
216
|
+
class: 'input-tag-field',
|
|
217
|
+
enterkeyhint: 'enter',
|
|
218
|
+
id,
|
|
219
|
+
onblur: () => {
|
|
220
|
+
local.armed = '';
|
|
221
|
+
},
|
|
222
|
+
onconnect: (element) => {
|
|
223
|
+
field = element;
|
|
224
|
+
},
|
|
225
|
+
oninput: (e) => {
|
|
226
|
+
let value = e.currentTarget.value;
|
|
227
|
+
if (value.includes(',')) {
|
|
228
|
+
add(value.split(','), true);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
local.armed = '';
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
onkeydown: (e) => {
|
|
235
|
+
let element = e.currentTarget;
|
|
236
|
+
if (e.key === 'Enter' || e.key === ',') {
|
|
237
|
+
e.preventDefault();
|
|
238
|
+
add([element.value], true);
|
|
239
|
+
}
|
|
240
|
+
else if (e.key === 'Backspace' && element.value === '' && state.tags.$length) {
|
|
241
|
+
e.preventDefault();
|
|
242
|
+
let last = key(state.tags[state.tags.$length - 1]);
|
|
243
|
+
if (local.armed === last) {
|
|
244
|
+
remove(last);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
local.armed = last;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
else if (e.key === 'Escape') {
|
|
251
|
+
local.armed = '';
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
onpaste: (e) => {
|
|
255
|
+
let text = e.clipboardData?.getData('text') ?? '';
|
|
256
|
+
if (!TAG_SEPARATORS.test(text)) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
e.preventDefault();
|
|
260
|
+
add((e.currentTarget.value + text).split(TAG_SEPARATORS), false);
|
|
261
|
+
},
|
|
262
|
+
placeholder,
|
|
263
|
+
state
|
|
264
|
+
}), 1);
|
|
265
|
+
template_u1.slot(element_0vbj7wxp, !!hint && (() => {
|
|
266
|
+
let root_0vbj7wxr = template_0vbj7wxs(), element_0vbj7wxt = root_0vbj7wxr.firstChild;
|
|
267
|
+
template_u1.slot(element_0vbj7wxt, hint, 1);
|
|
268
|
+
return root_0vbj7wxr;
|
|
269
|
+
})());
|
|
270
|
+
new template_u1.EffectSlot(element_0vbj7wxq, () => local.announcement, 1);
|
|
271
|
+
template_u1.setProperty(element_0vbj7wxl, 'aria-label', () => `${label}, ${slot.length} added`);
|
|
272
|
+
template_u1.onconnect(element_0vbj7wxl, (element) => {
|
|
273
|
+
list = element;
|
|
274
|
+
});
|
|
275
|
+
template_u1.delegate(element_0vbj7wxk, 'pointerdown', (e) => {
|
|
276
|
+
let target = e.target;
|
|
277
|
+
if (target !== e.currentTarget && target !== list) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
e.preventDefault();
|
|
281
|
+
field?.focus();
|
|
282
|
+
});
|
|
283
|
+
template_u1.setProperty(element_0vbj7wxj, 'for', id);
|
|
284
|
+
template_u1.setProperties(element_0vbj7wxi, this?.attributes);
|
|
285
|
+
template_u1.setProperties(element_0vbj7wxi, attributes);
|
|
286
|
+
return root_0vbj7wxg;
|
|
287
|
+
})();
|
|
288
|
+
}, { field: INPUT_TAG_FIELD });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export default (content, name) => {
|
|
2
|
-
let link = document.createElement('a');
|
|
2
|
+
let link = document.createElement('a'), url = URL.createObjectURL(new Blob([JSON.stringify(content)], { type: 'application/json' }));
|
|
3
3
|
link.download = name + '.json';
|
|
4
|
-
link.href =
|
|
4
|
+
link.href = url;
|
|
5
5
|
document.body.appendChild(link);
|
|
6
6
|
link.click();
|
|
7
|
-
|
|
7
|
+
link.remove();
|
|
8
|
+
setTimeout(() => URL.revokeObjectURL(url));
|
|
8
9
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components
|
|
1
|
+
@layer components{.link{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.link{--background:var(--background-active)}.link:not(.--active):hover{--background:var(--background-hover)}.link:not(.--active):active{--background:var(--background-pressed)}.link{--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:transparent;--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default)}.--active.link{--border-color:var(--border-color-active)}.link:not(.--active):hover{--border-color:var(--border-color-hover)}.link:not(.--active):active{--border-color:var(--border-color-pressed)}.link{--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default)}.--active.link{--color:var(--color-active)}.link:not(.--active):hover{--color:var(--color-hover)}.link:not(.--active):active{--color:var(--color-pressed)}.link{--border-width:0px;--color:var(--color-default,inherit);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--width:auto;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);gap:var(--gap-vertical) var(--gap-horizontal);line-height:var(--line-height);transition:color var(--transition-duration) var(--transition-timing-function);width:var(--width);display:flex;position:relative}.--text-truncate.link{display:block}.link{--border-color-default:var(--background);--padding-horizontal:0px;background:var(--background);cursor:pointer;padding-block:max(0px, var(--padding-vertical) - var(--border-width));padding-inline:max(0px, var(--padding-horizontal) - var(--border-width));transition:background var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function);flex-wrap:wrap;place-content:center flex-start;position:relative}:where(.link) :where(.icon){transition:color var(--transition-duration) var(--transition-timing-function)}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components
|
|
1
|
+
@layer components{.loading--bar:before{position:absolute;inset:0 auto 0 0}.loading{--animation-duration:.64s;--border-color:var(--color);--border-width:var(--border-width-400);--color:var(--color-black-400);--size:var(--size-400);--timing-function:cubic-bezier(.5, 0, .5, 1);--track-color:color-mix(in srgb, var(--border-color), transparent 90%)}.loading--bar{--animation-duration:.8s;--height:var(--border-width);--width:100%}.loading--tail{--animation-duration:.8s;--tail:120deg}.loading{animation:loading var(--animation-duration) linear infinite;border:var(--border-width) solid var(--track-color);border-left-color:var(--border-color);height:var(--size);width:var(--size);border-radius:100%}.loading--bar{background:var(--track-color);border-radius:var(--border-width);height:var(--height);width:var(--width);border:0;animation:none;position:relative;overflow:hidden}.loading--bar:before{animation:loading--bar var(--animation-duration) var(--timing-function) infinite;background:var(--border-color);border-radius:inherit;content:"";width:40%}.loading--tail{background:conic-gradient(transparent calc(360deg - var(--tail)), var(--border-color));-webkit-mask:radial-gradient(farthest-side, transparent calc(100% - var(--border-width)), #000 calc(100% - var(--border-width) + .5px));-webkit-mask:radial-gradient(farthest-side, transparent calc(100% - var(--border-width)), #000 calc(100% - var(--border-width) + .5px));mask:radial-gradient(farthest-side, transparent calc(100% - var(--border-width)), #000 calc(100% - var(--border-width) + .5px));border:0;position:relative}.loading--tail:after{background:var(--border-color);content:"";height:var(--border-width);width:var(--border-width);border-radius:100%;position:absolute;top:0;left:50%;translate:-50%}@keyframes loading{to{rotate:360deg}}@keyframes loading--bar{0%{translate:-100%}to{translate:250%}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -7,14 +7,23 @@ type Item = {
|
|
|
7
7
|
mark?: () => Renderable<unknown>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
|
-
declare function _default({ direction, gap, items, label, select, speed, state, ...attributes }: Attributes & {
|
|
10
|
+
declare function _default({ direction, gap, items, label, select, speed, state, velocity, ...attributes }: Attributes & {
|
|
11
11
|
direction?: 'left' | 'right';
|
|
12
12
|
gap?: number;
|
|
13
13
|
items: Item[];
|
|
14
14
|
label?: string;
|
|
15
|
+
onfocusin?: never;
|
|
16
|
+
onfocusout?: never;
|
|
17
|
+
onpointercancel?: never;
|
|
18
|
+
onpointerdown?: never;
|
|
19
|
+
onpointerenter?: never;
|
|
20
|
+
onpointerleave?: never;
|
|
21
|
+
onpointerup?: never;
|
|
22
|
+
onwindowblur?: never;
|
|
15
23
|
select?: (item: Item) => void;
|
|
16
24
|
speed?: number;
|
|
17
25
|
state?: {
|
|
18
26
|
paused: boolean;
|
|
19
27
|
};
|
|
28
|
+
velocity?: boolean;
|
|
20
29
|
}): DocumentFragment | Text;
|