@esportsplus/ui 0.55.0 → 0.56.2
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/README.md +144 -4
- package/build/components/accordion/index.d.ts +2158 -717
- package/build/components/accordion/index.js +12 -9
- package/build/components/accordion/more.d.ts +20 -0
- package/build/components/accordion/more.js +76 -0
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/announcement-banner/index.d.ts +33 -0
- package/build/components/announcement-banner/index.js +61 -0
- package/build/components/announcement-banner/scss/index.scss +2 -0
- package/build/components/autosave/index.d.ts +12 -0
- package/build/components/autosave/index.js +140 -0
- package/build/components/autosave/scss/index.scss +2 -0
- package/build/components/back-to-top/index.d.ts +16 -0
- package/build/components/back-to-top/index.js +182 -0
- package/build/components/back-to-top/scss/index.scss +2 -0
- package/build/components/bento-grid/index.d.ts +25 -0
- package/build/components/bento-grid/index.js +38 -0
- package/build/components/bento-grid/scss/index.scss +2 -0
- package/build/components/bento-grid-spotlight/index.d.ts +35 -0
- package/build/components/bento-grid-spotlight/index.js +108 -0
- package/build/components/bento-grid-spotlight/scss/index.scss +2 -0
- package/build/components/bookmark-button/index.d.ts +23 -0
- package/build/components/bookmark-button/index.js +120 -0
- package/build/components/bookmark-button/scss/index.scss +2 -0
- package/build/components/breadcrumb/ellipsis.d.ts +12 -0
- package/build/components/breadcrumb/ellipsis.js +11 -0
- package/build/components/breadcrumb/index.d.ts +29 -0
- package/build/components/breadcrumb/index.js +19 -0
- package/build/components/breadcrumb/item.d.ts +12 -0
- package/build/components/breadcrumb/item.js +9 -0
- package/build/components/breadcrumb/link.d.ts +15 -0
- package/build/components/breadcrumb/link.js +14 -0
- package/build/components/breadcrumb/list.d.ts +12 -0
- package/build/components/breadcrumb/list.js +9 -0
- package/build/components/breadcrumb/menu.d.ts +13 -0
- package/build/components/breadcrumb/menu.js +16 -0
- package/build/components/breadcrumb/page.d.ts +12 -0
- package/build/components/breadcrumb/page.js +9 -0
- package/build/components/breadcrumb/scss/index.scss +2 -0
- package/build/components/breadcrumb/separator.d.ts +12 -0
- package/build/components/breadcrumb/separator.js +11 -0
- package/build/components/breadcrumb/svg/caret.svg +1 -0
- package/build/components/breadcrumb/svg/chevron.svg +1 -0
- package/build/components/breadcrumb/svg/more.svg +1 -0
- package/build/components/breadcrumbs/index.d.ts +27 -0
- package/build/components/breadcrumbs/index.js +324 -0
- package/build/components/breadcrumbs/scss/index.scss +2 -0
- package/build/components/button/copy.d.ts +21 -0
- package/build/components/button/copy.js +48 -0
- package/build/components/button/faces.d.ts +10 -0
- package/build/components/button/faces.js +16 -0
- package/build/components/button/fan.d.ts +24 -0
- package/build/components/button/fan.js +117 -0
- package/build/components/button/hold.d.ts +31 -0
- package/build/components/button/hold.js +117 -0
- package/build/components/button/icons.d.ts +6 -0
- package/build/components/button/icons.js +12 -0
- package/build/components/button/index.d.ts +14 -0
- package/build/components/button/index.js +8 -0
- package/build/components/button/kbd.d.ts +15 -0
- package/build/components/button/kbd.js +106 -0
- package/build/components/button/loading.d.ts +22 -0
- package/build/components/button/loading.js +60 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/svg/plus.svg +1 -0
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/card-input/index.d.ts +31 -0
- package/build/components/card-input/index.js +562 -0
- package/build/components/card-input/scss/index.scss +2 -0
- package/build/components/carousel-3d/index.d.ts +27 -0
- package/build/components/carousel-3d/index.js +248 -0
- package/build/components/carousel-3d/scss/index.scss +2 -0
- package/build/components/checkbox/index.d.ts +1441 -11
- package/build/components/checkbox/index.js +50 -52
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/checkbox-group/index.d.ts +30 -0
- package/build/components/checkbox-group/index.js +101 -0
- package/build/components/checkbox-group/scss/index.scss +2 -0
- package/build/components/clipboard/copy.d.ts +21 -5
- package/build/components/clipboard/copy.js +19 -25
- package/build/components/clipboard/index.d.ts +2165 -1435
- package/build/components/clipboard/index.js +2 -3
- package/build/components/code-morph/index.d.ts +25 -0
- package/build/components/code-morph/index.js +401 -0
- package/build/components/code-morph/scss/index.scss +2 -0
- package/build/components/collapsible-sidebar/index.d.ts +41 -0
- package/build/components/collapsible-sidebar/index.js +105 -0
- package/build/components/collapsible-sidebar/scss/index.scss +2 -0
- package/build/components/color-picker/index.d.ts +19 -0
- package/build/components/color-picker/index.js +569 -0
- package/build/components/color-picker/scss/index.scss +2 -0
- package/build/components/command/constants.d.ts +3 -0
- package/build/components/command/constants.js +3 -0
- package/build/components/command/index.d.ts +30 -0
- package/build/components/command/index.js +188 -0
- package/build/components/command/scss/index.scss +2 -0
- package/build/components/command-palette/index.d.ts +51 -0
- package/build/components/command-palette/index.js +319 -0
- package/build/components/command-palette/scss/index.scss +2 -0
- package/build/components/composer/index.d.ts +29 -0
- package/build/components/composer/index.js +79 -0
- package/build/components/composer/scss/index.scss +2 -0
- package/build/components/composer/svg/arrow-up.svg +1 -0
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/contribution-heatmap/index.d.ts +30 -0
- package/build/components/contribution-heatmap/index.js +236 -0
- package/build/components/contribution-heatmap/scss/index.scss +2 -0
- package/build/components/counter/index.d.ts +3 -1
- package/build/components/counter/index.js +53 -26
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.d.ts +37 -0
- package/build/components/datalist/index.js +159 -0
- package/build/components/datalist/scss/index.scss +2 -0
- package/build/components/date-range-picker/index.d.ts +28 -0
- package/build/components/date-range-picker/index.js +443 -0
- package/build/components/date-range-picker/scss/index.scss +2 -0
- package/build/components/dock/index.d.ts +24 -0
- package/build/components/dock/index.js +200 -0
- package/build/components/dock/scss/index.scss +2 -0
- package/build/components/dynamic-island/index.d.ts +23 -0
- package/build/components/dynamic-island/index.js +179 -0
- package/build/components/dynamic-island/scss/index.scss +2 -0
- package/build/components/email-typo-fix/index.d.ts +28 -0
- package/build/components/email-typo-fix/index.js +416 -0
- package/build/components/email-typo-fix/scss/index.scss +2 -0
- package/build/components/expanding-card/index.d.ts +26 -0
- package/build/components/expanding-card/index.js +265 -0
- package/build/components/expanding-card/scss/index.scss +2 -0
- package/build/components/feature-spotlight/index.d.ts +37 -0
- package/build/components/feature-spotlight/index.js +248 -0
- package/build/components/feature-spotlight/scss/index.scss +2 -0
- package/build/components/file-tree/index.d.ts +31 -0
- package/build/components/file-tree/index.js +208 -0
- package/build/components/file-tree/scss/index.scss +2 -0
- package/build/components/filter-grid/index.d.ts +23 -0
- package/build/components/filter-grid/index.js +240 -0
- package/build/components/filter-grid/scss/index.scss +2 -0
- package/build/components/form/action.js +8 -8
- package/build/components/form/scss/index.scss +1 -1
- package/build/components/gradient-text/index.d.ts +19 -0
- package/build/components/gradient-text/index.js +14 -0
- package/build/components/gradient-text/scss/index.scss +2 -0
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/header/index.d.ts +41 -0
- package/build/components/header/index.js +281 -0
- package/build/components/header/scss/index.scss +2 -0
- package/build/components/highlight/index.d.ts +25 -0
- package/build/components/highlight/index.js +218 -0
- package/build/components/highlight/scss/index.scss +2 -0
- package/build/components/hover-card/index.d.ts +47 -0
- package/build/components/hover-card/index.js +197 -0
- package/build/components/hover-card/scss/index.scss +2 -0
- package/build/components/icon/index.d.ts +11 -2
- package/build/components/icon/index.js +6 -6
- package/build/components/image/index.d.ts +14 -0
- package/build/components/image/index.js +62 -0
- package/build/components/image/scss/index.scss +2 -0
- package/build/components/index.d.ts +96 -1
- package/build/components/index.js +96 -1
- package/build/components/inline-edit/index.d.ts +30 -0
- package/build/components/inline-edit/index.js +108 -0
- package/build/components/inline-edit/scss/index.scss +2 -0
- package/build/components/input/index.d.ts +8 -2
- package/build/components/input/index.js +11 -11
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/kanban-board/index.d.ts +23 -0
- package/build/components/kanban-board/index.js +235 -0
- package/build/components/kanban-board/scss/index.scss +2 -0
- package/build/components/lightbox/index.d.ts +32 -0
- package/build/components/lightbox/index.js +396 -0
- package/build/components/lightbox/scss/index.scss +2 -0
- package/build/components/lightbox/spring.d.ts +16 -0
- package/build/components/lightbox/spring.js +71 -0
- package/build/components/line-shadow-text/index.d.ts +17 -0
- package/build/components/line-shadow-text/index.js +15 -0
- package/build/components/line-shadow-text/scss/index.scss +2 -0
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.js +5 -7
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/log/index.d.ts +20 -0
- package/build/components/log/index.js +125 -0
- package/build/components/log/scss/index.scss +2 -0
- package/build/components/long-press/bind.d.ts +21 -0
- package/build/components/long-press/bind.js +136 -0
- package/build/components/long-press/button.d.ts +21 -0
- package/build/components/long-press/button.js +25 -0
- package/build/components/long-press/index.d.ts +2181 -0
- package/build/components/long-press/index.js +4 -0
- package/build/components/long-press/scss/index.scss +2 -0
- package/build/components/marquee/index.d.ts +20 -0
- package/build/components/marquee/index.js +236 -0
- package/build/components/marquee/scss/index.scss +2 -0
- package/build/components/modal/index.d.ts +24 -0
- package/build/components/modal/index.js +75 -0
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/morphing-button/index.d.ts +24 -0
- package/build/components/morphing-button/index.js +127 -0
- package/build/components/morphing-button/scss/index.scss +2 -0
- package/build/components/morphing-nav/index.d.ts +38 -0
- package/build/components/morphing-nav/index.js +342 -0
- package/build/components/morphing-nav/scss/index.scss +2 -0
- package/build/components/multi-step-form/index.d.ts +32 -0
- package/build/components/multi-step-form/index.js +305 -0
- package/build/components/multi-step-form/scss/index.scss +2 -0
- package/build/components/nested-menu/index.d.ts +27 -0
- package/build/components/nested-menu/index.js +374 -0
- package/build/components/nested-menu/scss/index.scss +2 -0
- package/build/components/notification-bell/index.d.ts +13 -0
- package/build/components/notification-bell/index.js +87 -0
- package/build/components/notification-bell/scss/index.scss +2 -0
- package/build/components/notification-bell/svg/bell.svg +1 -0
- package/build/components/onboarding-checklist/index.d.ts +29 -0
- package/build/components/onboarding-checklist/index.js +196 -0
- package/build/components/onboarding-checklist/scss/index.scss +2 -0
- package/build/components/overlay/index.d.ts +11 -2
- package/build/components/overlay/index.js +7 -7
- package/build/components/page-dots/index.d.ts +24 -0
- package/build/components/page-dots/index.js +116 -0
- package/build/components/page-dots/scss/index.scss +2 -0
- package/build/components/pagination/index.d.ts +11 -0
- package/build/components/pagination/index.js +109 -0
- package/build/components/pagination/scss/index.scss +2 -0
- package/build/components/pagination/svg/arrow-left.svg +1 -0
- package/build/components/pagination/svg/arrow-right.svg +1 -0
- package/build/components/password/constants.d.ts +2 -0
- package/build/components/password/constants.js +2 -0
- package/build/components/password/index.d.ts +22 -0
- package/build/components/password/index.js +74 -0
- package/build/components/password/scss/index.scss +2 -0
- package/build/components/progress/index.d.ts +15 -0
- package/build/components/progress/index.js +37 -0
- package/build/components/progress/scss/index.scss +2 -0
- package/build/components/pull-to-refresh/index.d.ts +26 -0
- package/build/components/pull-to-refresh/index.js +260 -0
- package/build/components/pull-to-refresh/scss/index.scss +2 -0
- package/build/components/radio-cards/index.d.ts +36 -0
- package/build/components/radio-cards/index.js +106 -0
- package/build/components/radio-cards/scss/index.scss +2 -0
- package/build/components/range/index.js +13 -13
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/range-filter/index.d.ts +20 -0
- package/build/components/range-filter/index.js +216 -0
- package/build/components/range-filter/scss/index.scss +2 -0
- package/build/components/range-slider/index.d.ts +30 -0
- package/build/components/range-slider/index.js +287 -0
- package/build/components/range-slider/scss/index.scss +2 -0
- package/build/components/reading-progress/index.d.ts +13 -0
- package/build/components/reading-progress/index.js +106 -0
- package/build/components/reading-progress/scss/index.scss +2 -0
- package/build/components/relative-time/index.d.ts +25 -0
- package/build/components/relative-time/index.js +283 -0
- package/build/components/relative-time/scss/index.scss +2 -0
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/scroll-fade/index.d.ts +39 -0
- package/build/components/scroll-fade/index.js +104 -0
- package/build/components/scroll-fade/scss/index.scss +2 -0
- package/build/components/scroll-spine/index.d.ts +26 -0
- package/build/components/scroll-spine/index.js +204 -0
- package/build/components/scroll-spine/scss/index.scss +2 -0
- package/build/components/scroll-velocity/index.d.ts +22 -0
- package/build/components/scroll-velocity/index.js +160 -0
- package/build/components/scroll-velocity/scss/index.scss +2 -0
- package/build/components/scrub-input/index.d.ts +39 -0
- package/build/components/scrub-input/index.js +221 -0
- package/build/components/scrub-input/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +7 -5
- package/build/components/select/index.js +40 -38
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/select-menu/index.d.ts +34 -0
- package/build/components/select-menu/index.js +329 -0
- package/build/components/select-menu/scss/index.scss +2 -0
- package/build/components/selection-toolbar/index.d.ts +36 -0
- package/build/components/selection-toolbar/index.js +442 -0
- package/build/components/selection-toolbar/scss/index.scss +2 -0
- package/build/components/settings/index.d.ts +43 -0
- package/build/components/settings/index.js +147 -0
- package/build/components/settings/scss/index.scss +2 -0
- package/build/components/settings/svg/close.svg +1 -0
- package/build/components/settings/svg/saved.svg +1 -0
- package/build/components/share-button/index.d.ts +29 -0
- package/build/components/share-button/index.js +191 -0
- package/build/components/share-button/scss/index.scss +2 -0
- package/build/components/sheet/index.d.ts +33 -0
- package/build/components/sheet/index.js +110 -0
- package/build/components/sheet/scss/index.scss +2 -0
- package/build/components/shiny-text/index.d.ts +17 -0
- package/build/components/shiny-text/index.js +14 -0
- package/build/components/shiny-text/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +12 -0
- package/build/components/shortcut-recorder/index.js +230 -0
- package/build/components/shortcut-recorder/scss/index.scss +2 -0
- package/build/components/shortcut-sheet/index.d.ts +48 -0
- package/build/components/shortcut-sheet/index.js +304 -0
- package/build/components/shortcut-sheet/scss/index.scss +2 -0
- package/build/components/sidebar/index.d.ts +11 -2
- package/build/components/sidebar/index.js +7 -7
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/slider/index.d.ts +25 -0
- package/build/components/slider/index.js +188 -0
- package/build/components/slider/scss/index.scss +2 -0
- package/build/components/sliding-tabs/index.d.ts +28 -0
- package/build/components/sliding-tabs/index.js +188 -0
- package/build/components/sliding-tabs/scss/index.scss +2 -0
- package/build/components/snap-carousel/index.d.ts +30 -0
- package/build/components/snap-carousel/index.js +233 -0
- package/build/components/snap-carousel/scss/index.scss +2 -0
- package/build/components/sortable/index.d.ts +9 -0
- package/build/components/sortable/index.js +302 -0
- package/build/components/sortable/scss/index.scss +2 -0
- package/build/components/sparkline/index.d.ts +26 -0
- package/build/components/sparkline/index.js +173 -0
- package/build/components/sparkline/scss/index.scss +2 -0
- package/build/components/stacked-drawer/index.d.ts +24 -0
- package/build/components/stacked-drawer/index.js +211 -0
- package/build/components/stacked-drawer/scss/index.scss +2 -0
- package/build/components/stat-counter/index.d.ts +32 -0
- package/build/components/stat-counter/index.js +216 -0
- package/build/components/stat-counter/scss/index.scss +2 -0
- package/build/components/status-picker/index.d.ts +32 -0
- package/build/components/status-picker/index.js +198 -0
- package/build/components/status-picker/scss/index.scss +2 -0
- package/build/components/sticky-header/index.d.ts +2159 -0
- package/build/components/sticky-header/index.js +98 -0
- package/build/components/sticky-header/scss/index.scss +2 -0
- package/build/components/sticky-stack/index.d.ts +33 -0
- package/build/components/sticky-stack/index.js +184 -0
- package/build/components/sticky-stack/scss/index.scss +2 -0
- package/build/components/story-progress/index.d.ts +26 -0
- package/build/components/story-progress/index.js +196 -0
- package/build/components/story-progress/scss/index.scss +2 -0
- package/build/components/swipe-deck/index.d.ts +19 -0
- package/build/components/swipe-deck/index.js +300 -0
- package/build/components/swipe-deck/scss/index.scss +2 -0
- package/build/components/tabs/scss/index.scss +1 -1
- package/build/components/tag-input/index.d.ts +27 -0
- package/build/components/tag-input/index.js +309 -0
- package/build/components/tag-input/scss/index.scss +2 -0
- package/build/components/task-list/index.d.ts +28 -0
- package/build/components/task-list/index.js +107 -0
- package/build/components/task-list/scss/index.scss +2 -0
- package/build/components/tasklist/constants.d.ts +2 -0
- package/build/components/tasklist/constants.js +2 -0
- package/build/components/tasklist/index.d.ts +730 -0
- package/build/components/tasklist/index.js +116 -0
- package/build/components/tasklist/scss/index.scss +2 -0
- package/build/components/text-animate/index.d.ts +30 -0
- package/build/components/text-animate/index.js +97 -0
- package/build/components/text-animate/scss/index.scss +2 -0
- package/build/components/text-progress/index.d.ts +13 -0
- package/build/components/text-progress/index.js +114 -0
- package/build/components/text-progress/scss/index.scss +2 -0
- package/build/components/textarea/index.d.ts +2159 -715
- package/build/components/textarea/index.js +14 -13
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/thumbnail/scss/index.scss +1 -1
- package/build/components/toast/index.js +53 -43
- package/build/components/toast/manager.d.ts +4 -0
- package/build/components/toast/manager.js +19 -1
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/context.d.ts +22 -0
- package/build/components/tooltip/context.js +66 -0
- package/build/components/tooltip/group.d.ts +29 -0
- package/build/components/tooltip/group.js +128 -0
- package/build/components/tooltip/index.d.ts +4 -0
- package/build/components/tooltip/index.js +3 -1
- package/build/components/tooltip/menu.d.ts +17 -8
- package/build/components/tooltip/menu.js +14 -31
- package/build/components/tooltip/onclick.d.ts +22 -713
- package/build/components/tooltip/onclick.js +38 -18
- package/build/components/tooltip/onhover.d.ts +23 -713
- package/build/components/tooltip/onhover.js +89 -13
- package/build/components/tooltip/options.d.ts +7 -0
- package/build/components/tooltip/options.js +21 -0
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/utilities.d.ts +4 -0
- package/build/components/tooltip/utilities.js +58 -0
- package/build/components/tree/index.d.ts +28 -0
- package/build/components/tree/index.js +182 -0
- package/build/components/tree/scss/index.scss +2 -0
- package/build/components/tree-view/index.d.ts +25 -0
- package/build/components/tree-view/index.js +205 -0
- package/build/components/tree-view/scss/index.scss +2 -0
- package/build/components/typewriter/index.d.ts +11 -2
- package/build/components/typewriter/index.js +16 -12
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/typewriter-retype/index.d.ts +8 -0
- package/build/components/typewriter-retype/index.js +122 -0
- package/build/components/typewriter-retype/scss/index.scss +2 -0
- package/build/components/undo-toast/index.d.ts +30 -0
- package/build/components/undo-toast/index.js +262 -0
- package/build/components/undo-toast/scss/index.scss +2 -0
- package/build/components/uptime/index.d.ts +21 -0
- package/build/components/uptime/index.js +210 -0
- package/build/components/uptime/scss/index.scss +2 -0
- package/build/components/usage-meter/index.d.ts +2159 -0
- package/build/components/usage-meter/index.js +30 -0
- package/build/components/usage-meter/scss/index.scss +2 -0
- package/build/components/value-flash/index.d.ts +12 -0
- package/build/components/value-flash/index.js +106 -0
- package/build/components/value-flash/scss/index.scss +2 -0
- package/build/components/waitlist-join/index.d.ts +34 -0
- package/build/components/waitlist-join/index.js +402 -0
- package/build/components/waitlist-join/scss/index.scss +2 -0
- package/build/components/web-search/brands.d.ts +121 -0
- package/build/components/web-search/brands.js +138 -0
- package/build/components/web-search/index.d.ts +31 -0
- package/build/components/web-search/index.js +245 -0
- package/build/components/web-search/scss/index.scss +2 -0
- package/build/components/word-rotator/index.d.ts +14 -0
- package/build/components/word-rotator/index.js +196 -0
- package/build/components/word-rotator/scss/index.scss +2 -0
- package/build/css-utilities/absolute/scss/index.scss +1 -1
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/themes/dark/input.d.ts +6 -2
- package/build/themes/dark/select.js +2 -2
- package/build/themes/dark/textarea.d.ts +2172 -718
- package/package.json +6 -6
- package/pnpm-workspace.yaml +5 -5
- package/src/components/accordion/index.ts +7 -1
- package/src/components/accordion/more.ts +97 -0
- package/src/components/accordion/scss/index.scss +141 -0
- package/src/components/anchor/scss/index.scss +2 -2
- package/src/components/announcement-banner/index.ts +81 -0
- package/src/components/announcement-banner/scss/index.scss +183 -0
- package/src/components/announcement-banner/scss/variables.scss +18 -0
- package/src/components/autosave/index.ts +113 -0
- package/src/components/autosave/scss/index.scss +155 -0
- package/src/components/autosave/scss/variables.scss +22 -0
- package/src/components/back-to-top/index.ts +293 -0
- package/src/components/back-to-top/scss/index.scss +111 -0
- package/src/components/back-to-top/scss/variables.scss +30 -0
- package/src/components/banner/scss/variables.scss +1 -1
- package/src/components/bento-grid/index.ts +63 -0
- package/src/components/bento-grid/scss/index.scss +174 -0
- package/src/components/bento-grid/scss/variables.scss +19 -0
- package/src/components/bento-grid-spotlight/index.ts +133 -0
- package/src/components/bento-grid-spotlight/scss/index.scss +226 -0
- package/src/components/bento-grid-spotlight/scss/variables.scss +36 -0
- package/src/components/bookmark-button/index.ts +174 -0
- package/src/components/bookmark-button/scss/index.scss +162 -0
- package/src/components/bookmark-button/scss/variables.scss +28 -0
- package/src/components/breadcrumb/ellipsis.ts +17 -0
- package/src/components/breadcrumb/index.ts +32 -0
- package/src/components/breadcrumb/item.ts +10 -0
- package/src/components/breadcrumb/link.ts +21 -0
- package/src/components/breadcrumb/list.ts +10 -0
- package/src/components/breadcrumb/menu.ts +20 -0
- package/src/components/breadcrumb/page.ts +16 -0
- package/src/components/breadcrumb/scss/index.scss +74 -0
- package/src/components/breadcrumb/scss/variables.scss +17 -0
- package/src/components/breadcrumb/separator.ts +17 -0
- package/src/components/breadcrumb/svg/caret.svg +1 -0
- package/src/components/breadcrumb/svg/chevron.svg +1 -0
- package/src/components/breadcrumb/svg/more.svg +1 -0
- package/src/components/breadcrumbs/index.ts +479 -0
- package/src/components/breadcrumbs/scss/index.scss +235 -0
- package/src/components/breadcrumbs/scss/variables.scss +30 -0
- package/src/components/button/copy.ts +59 -0
- package/src/components/button/faces.ts +29 -0
- package/src/components/button/fan.ts +173 -0
- package/src/components/button/hold.ts +154 -0
- package/src/components/button/icons.ts +38 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button/kbd.ts +156 -0
- package/src/components/button/loading.ts +77 -0
- package/src/components/button/scss/_fan.scss +125 -0
- package/src/components/button/scss/_kbd.scss +10 -0
- package/src/components/button/scss/index.scss +117 -5
- package/src/components/button/scss/variables.scss +81 -0
- package/src/components/button/svg/plus.svg +1 -0
- package/src/components/card/scss/index.scss +2 -3
- package/src/components/card-input/index.ts +594 -0
- package/src/components/card-input/scss/index.scss +512 -0
- package/src/components/card-input/scss/variables.scss +29 -0
- package/src/components/carousel-3d/index.ts +405 -0
- package/src/components/carousel-3d/scss/index.scss +155 -0
- package/src/components/carousel-3d/scss/variables.scss +25 -0
- package/src/components/checkbox/index.ts +16 -13
- package/src/components/checkbox/scss/index.scss +6 -3
- package/src/components/checkbox-group/index.ts +171 -0
- package/src/components/checkbox-group/scss/index.scss +229 -0
- package/src/components/checkbox-group/scss/variables.scss +28 -0
- package/src/components/clipboard/copy.ts +19 -25
- package/src/components/clipboard/index.ts +2 -3
- package/src/components/code-morph/index.ts +459 -0
- package/src/components/code-morph/scss/index.scss +384 -0
- package/src/components/code-morph/scss/variables.scss +33 -0
- package/src/components/collapsible-sidebar/index.ts +193 -0
- package/src/components/collapsible-sidebar/scss/index.scss +220 -0
- package/src/components/collapsible-sidebar/scss/variables.scss +42 -0
- package/src/components/color-picker/index.ts +650 -0
- package/src/components/color-picker/scss/index.scss +345 -0
- package/src/components/color-picker/scss/variables.scss +33 -0
- package/src/components/command/constants.ts +6 -0
- package/src/components/command/index.ts +282 -0
- package/src/components/command/scss/index.scss +213 -0
- package/src/components/command/scss/variables.scss +35 -0
- package/src/components/command-palette/index.ts +456 -0
- package/src/components/command-palette/scss/index.scss +235 -0
- package/src/components/command-palette/scss/variables.scss +42 -0
- package/src/components/composer/index.ts +117 -0
- package/src/components/composer/scss/index.scss +105 -0
- package/src/components/composer/scss/variables.scss +82 -0
- package/src/components/composer/svg/arrow-up.svg +1 -0
- package/src/components/container/scss/index.scss +2 -1
- package/src/components/contribution-heatmap/index.ts +348 -0
- package/src/components/contribution-heatmap/scss/index.scss +151 -0
- package/src/components/contribution-heatmap/scss/variables.scss +39 -0
- package/src/components/counter/index.ts +56 -9
- package/src/components/counter/scss/index.scss +56 -2
- package/src/components/counter/scss/variables.scss +38 -2
- package/src/components/datalist/index.ts +236 -0
- package/src/components/datalist/scss/index.scss +84 -0
- package/src/components/datalist/scss/variables.scss +26 -0
- package/src/components/date-range-picker/index.ts +641 -0
- package/src/components/date-range-picker/scss/index.scss +380 -0
- package/src/components/date-range-picker/scss/variables.scss +22 -0
- package/src/components/dock/index.ts +265 -0
- package/src/components/dock/scss/index.scss +102 -0
- package/src/components/dock/scss/variables.scss +30 -0
- package/src/components/dynamic-island/index.ts +161 -0
- package/src/components/dynamic-island/scss/index.scss +278 -0
- package/src/components/dynamic-island/scss/variables.scss +39 -0
- package/src/components/email-typo-fix/index.ts +615 -0
- package/src/components/email-typo-fix/scss/index.scss +213 -0
- package/src/components/email-typo-fix/scss/variables.scss +18 -0
- package/src/components/expanding-card/index.ts +377 -0
- package/src/components/expanding-card/scss/index.scss +232 -0
- package/src/components/expanding-card/scss/variables.scss +22 -0
- package/src/components/feature-spotlight/index.ts +437 -0
- package/src/components/feature-spotlight/scss/index.scss +254 -0
- package/src/components/feature-spotlight/scss/variables.scss +36 -0
- package/src/components/file-tree/index.ts +319 -0
- package/src/components/file-tree/scss/index.scss +138 -0
- package/src/components/file-tree/scss/variables.scss +18 -0
- package/src/components/filter-grid/index.ts +344 -0
- package/src/components/filter-grid/scss/index.scss +142 -0
- package/src/components/filter-grid/scss/variables.scss +41 -0
- package/src/components/form/scss/index.scss +2 -1
- package/src/components/gradient-text/index.ts +26 -0
- package/src/components/gradient-text/scss/index.scss +20 -0
- package/src/components/gradient-text/scss/variables.scss +6 -0
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/header/index.ts +318 -0
- package/src/components/header/scss/index.scss +508 -0
- package/src/components/header/scss/variables.scss +21 -0
- package/src/components/highlight/index.ts +239 -0
- package/src/components/highlight/scss/index.scss +48 -0
- package/src/components/highlight/scss/variables.scss +26 -0
- package/src/components/hover-card/index.ts +319 -0
- package/src/components/hover-card/scss/index.scss +117 -0
- package/src/components/hover-card/scss/variables.scss +25 -0
- package/src/components/image/index.ts +79 -0
- package/src/components/image/scss/index.scss +82 -0
- package/src/components/image/scss/variables.scss +15 -0
- package/src/components/index.ts +96 -1
- package/src/components/inline-edit/index.ts +177 -0
- package/src/components/inline-edit/scss/index.scss +152 -0
- package/src/components/inline-edit/scss/variables.scss +17 -0
- package/src/components/input/index.ts +9 -2
- package/src/components/input/scss/index.scss +2 -3
- package/src/components/kanban-board/index.ts +326 -0
- package/src/components/kanban-board/scss/index.scss +126 -0
- package/src/components/kanban-board/scss/variables.scss +39 -0
- package/src/components/lightbox/index.ts +594 -0
- package/src/components/lightbox/scss/index.scss +194 -0
- package/src/components/lightbox/scss/variables.scss +24 -0
- package/src/components/lightbox/spring.ts +118 -0
- package/src/components/line-shadow-text/index.ts +24 -0
- package/src/components/line-shadow-text/scss/index.scss +45 -0
- package/src/components/line-shadow-text/scss/variables.scss +6 -0
- package/src/components/link/scss/index.scss +2 -3
- package/src/components/loading/index.ts +3 -10
- package/src/components/loading/scss/index.scss +55 -4
- package/src/components/loading/scss/variables.scss +15 -1
- package/src/components/log/index.ts +156 -0
- package/src/components/log/scss/index.scss +269 -0
- package/src/components/log/scss/variables.scss +19 -0
- package/src/components/long-press/bind.ts +159 -0
- package/src/components/long-press/button.ts +46 -0
- package/src/components/long-press/index.ts +6 -0
- package/src/components/long-press/scss/index.scss +60 -0
- package/src/components/long-press/scss/variables.scss +9 -0
- package/src/components/marquee/index.ts +300 -0
- package/src/components/marquee/scss/index.scss +109 -0
- package/src/components/marquee/scss/variables.scss +18 -0
- package/src/components/modal/index.ts +91 -0
- package/src/components/modal/scss/index.scss +51 -4
- package/src/components/modal/scss/variables.scss +36 -0
- package/src/components/morphing-button/index.ts +188 -0
- package/src/components/morphing-button/scss/index.scss +154 -0
- package/src/components/morphing-button/scss/variables.scss +21 -0
- package/src/components/morphing-nav/index.ts +496 -0
- package/src/components/morphing-nav/scss/index.scss +284 -0
- package/src/components/morphing-nav/scss/variables.scss +36 -0
- package/src/components/multi-step-form/index.ts +368 -0
- package/src/components/multi-step-form/scss/index.scss +397 -0
- package/src/components/multi-step-form/scss/variables.scss +22 -0
- package/src/components/nested-menu/index.ts +446 -0
- package/src/components/nested-menu/scss/index.scss +219 -0
- package/src/components/nested-menu/scss/variables.scss +26 -0
- package/src/components/notification-bell/index.ts +102 -0
- package/src/components/notification-bell/scss/index.scss +132 -0
- package/src/components/notification-bell/scss/variables.scss +41 -0
- package/src/components/notification-bell/svg/bell.svg +1 -0
- package/src/components/onboarding-checklist/index.ts +252 -0
- package/src/components/onboarding-checklist/scss/index.scss +414 -0
- package/src/components/onboarding-checklist/scss/variables.scss +17 -0
- package/src/components/page-dots/index.ts +137 -0
- package/src/components/page-dots/scss/index.scss +95 -0
- package/src/components/page-dots/scss/variables.scss +26 -0
- package/src/components/pagination/index.ts +129 -0
- package/src/components/pagination/scss/index.scss +46 -0
- package/src/components/pagination/scss/variables.scss +40 -0
- package/src/components/pagination/svg/arrow-left.svg +1 -0
- package/src/components/pagination/svg/arrow-right.svg +1 -0
- package/src/components/password/constants.ts +4 -0
- package/src/components/password/index.ts +97 -0
- package/src/components/password/scss/index.scss +188 -0
- package/src/components/password/scss/variables.scss +50 -0
- package/src/components/progress/index.ts +57 -0
- package/src/components/progress/scss/index.scss +49 -0
- package/src/components/progress/scss/variables.scss +11 -0
- package/src/components/pull-to-refresh/index.ts +438 -0
- package/src/components/pull-to-refresh/scss/index.scss +91 -0
- package/src/components/pull-to-refresh/scss/variables.scss +10 -0
- package/src/components/radio-cards/index.ts +145 -0
- package/src/components/radio-cards/scss/index.scss +232 -0
- package/src/components/radio-cards/scss/variables.scss +32 -0
- package/src/components/range/scss/index.scss +2 -1
- package/src/components/range-filter/index.ts +295 -0
- package/src/components/range-filter/scss/index.scss +257 -0
- package/src/components/range-filter/scss/variables.scss +20 -0
- package/src/components/range-slider/index.ts +277 -0
- package/src/components/range-slider/scss/index.scss +234 -0
- package/src/components/range-slider/scss/variables.scss +26 -0
- package/src/components/reading-progress/index.ts +160 -0
- package/src/components/reading-progress/scss/index.scss +115 -0
- package/src/components/reading-progress/scss/variables.scss +31 -0
- package/src/components/relative-time/index.ts +410 -0
- package/src/components/relative-time/scss/index.scss +88 -0
- package/src/components/relative-time/scss/variables.scss +19 -0
- package/src/components/root/scss/index.scss +2 -2
- package/src/components/scroll-fade/index.ts +131 -0
- package/src/components/scroll-fade/scss/index.scss +104 -0
- package/src/components/scroll-fade/scss/variables.scss +10 -0
- package/src/components/scroll-spine/index.ts +355 -0
- package/src/components/scroll-spine/scss/index.scss +209 -0
- package/src/components/scroll-spine/scss/variables.scss +22 -0
- package/src/components/scroll-velocity/index.ts +269 -0
- package/src/components/scroll-velocity/scss/index.scss +29 -0
- package/src/components/scroll-velocity/scss/variables.scss +3 -0
- package/src/components/scrub-input/index.ts +339 -0
- package/src/components/scrub-input/scss/index.scss +105 -0
- package/src/components/scrub-input/scss/variables.scss +23 -0
- package/src/components/select/index.ts +12 -5
- package/src/components/select/scss/index.scss +15 -10
- package/src/components/select-menu/index.ts +499 -0
- package/src/components/select-menu/scss/index.scss +192 -0
- package/src/components/select-menu/scss/variables.scss +41 -0
- package/src/components/selection-toolbar/index.ts +510 -0
- package/src/components/selection-toolbar/scss/index.scss +221 -0
- package/src/components/selection-toolbar/scss/variables.scss +24 -0
- package/src/components/settings/index.ts +184 -0
- package/src/components/settings/scss/index.scss +327 -0
- package/src/components/settings/scss/variables.scss +50 -0
- package/src/components/settings/svg/close.svg +1 -0
- package/src/components/settings/svg/saved.svg +1 -0
- package/src/components/share-button/index.ts +328 -0
- package/src/components/share-button/scss/index.scss +191 -0
- package/src/components/share-button/scss/variables.scss +24 -0
- package/src/components/sheet/index.ts +170 -0
- package/src/components/sheet/scss/index.scss +65 -0
- package/src/components/sheet/scss/variables.scss +27 -0
- package/src/components/shiny-text/index.ts +19 -0
- package/src/components/shiny-text/scss/index.scss +32 -0
- package/src/components/shiny-text/scss/variables.scss +7 -0
- package/src/components/shortcut-recorder/index.ts +284 -0
- package/src/components/shortcut-recorder/scss/index.scss +198 -0
- package/src/components/shortcut-recorder/scss/variables.scss +54 -0
- package/src/components/shortcut-sheet/index.ts +454 -0
- package/src/components/shortcut-sheet/scss/index.scss +306 -0
- package/src/components/shortcut-sheet/scss/variables.scss +36 -0
- package/src/components/sidebar/scss/index.scss +3 -3
- package/src/components/slider/index.ts +232 -0
- package/src/components/slider/scss/index.scss +182 -0
- package/src/components/slider/scss/variables.scss +15 -0
- package/src/components/sliding-tabs/index.ts +291 -0
- package/src/components/sliding-tabs/scss/index.scss +174 -0
- package/src/components/sliding-tabs/scss/variables.scss +34 -0
- package/src/components/snap-carousel/index.ts +324 -0
- package/src/components/snap-carousel/scss/index.scss +174 -0
- package/src/components/snap-carousel/scss/variables.scss +31 -0
- package/src/components/sortable/index.ts +483 -0
- package/src/components/sortable/scss/index.scss +282 -0
- package/src/components/sortable/scss/variables.scss +59 -0
- package/src/components/sparkline/index.ts +234 -0
- package/src/components/sparkline/scss/index.scss +169 -0
- package/src/components/sparkline/scss/variables.scss +30 -0
- package/src/components/stacked-drawer/index.ts +272 -0
- package/src/components/stacked-drawer/scss/index.scss +122 -0
- package/src/components/stacked-drawer/scss/variables.scss +20 -0
- package/src/components/stat-counter/index.ts +337 -0
- package/src/components/stat-counter/scss/index.scss +246 -0
- package/src/components/stat-counter/scss/variables.scss +24 -0
- package/src/components/status-picker/index.ts +323 -0
- package/src/components/status-picker/scss/index.scss +290 -0
- package/src/components/status-picker/scss/variables.scss +29 -0
- package/src/components/sticky-header/index.ts +127 -0
- package/src/components/sticky-header/scss/index.scss +149 -0
- package/src/components/sticky-header/scss/variables.scss +22 -0
- package/src/components/sticky-stack/index.ts +313 -0
- package/src/components/sticky-stack/scss/index.scss +167 -0
- package/src/components/sticky-stack/scss/variables.scss +50 -0
- package/src/components/story-progress/index.ts +247 -0
- package/src/components/story-progress/scss/index.scss +205 -0
- package/src/components/story-progress/scss/variables.scss +21 -0
- package/src/components/swipe-deck/index.ts +438 -0
- package/src/components/swipe-deck/scss/index.scss +275 -0
- package/src/components/swipe-deck/scss/variables.scss +24 -0
- package/src/components/tabs/scss/index.scss +3 -3
- package/src/components/tag-input/index.ts +415 -0
- package/src/components/tag-input/scss/index.scss +186 -0
- package/src/components/tag-input/scss/variables.scss +30 -0
- package/src/components/task-list/index.ts +137 -0
- package/src/components/task-list/scss/index.scss +171 -0
- package/src/components/task-list/scss/variables.scss +8 -0
- package/src/components/tasklist/constants.ts +4 -0
- package/src/components/tasklist/index.ts +174 -0
- package/src/components/tasklist/scss/index.scss +184 -0
- package/src/components/tasklist/scss/variables.scss +83 -0
- package/src/components/text-animate/index.ts +142 -0
- package/src/components/text-animate/scss/index.scss +106 -0
- package/src/components/text-animate/scss/variables.scss +17 -0
- package/src/components/text-progress/index.ts +170 -0
- package/src/components/text-progress/scss/index.scss +148 -0
- package/src/components/text-progress/scss/variables.scss +26 -0
- package/src/components/textarea/index.ts +6 -3
- package/src/components/textarea/scss/index.scss +2 -3
- package/src/components/thumbnail/scss/index.scss +51 -0
- package/src/components/thumbnail/scss/variables.scss +12 -0
- package/src/components/toast/index.ts +11 -1
- package/src/components/toast/manager.ts +31 -1
- package/src/components/toast/scss/index.scss +66 -18
- package/src/components/toast/scss/variables.scss +2 -0
- package/src/components/tooltip/context.ts +96 -0
- package/src/components/tooltip/group.ts +162 -0
- package/src/components/tooltip/index.ts +3 -1
- package/src/components/tooltip/menu.ts +25 -31
- package/src/components/tooltip/onclick.ts +62 -24
- package/src/components/tooltip/onhover.ts +148 -18
- package/src/components/tooltip/options.ts +33 -0
- package/src/components/tooltip/scss/_center.scss +1 -5
- package/src/components/tooltip/scss/_east.scss +5 -5
- package/src/components/tooltip/scss/_group.scss +164 -0
- package/src/components/tooltip/scss/_north.scss +5 -5
- package/src/components/tooltip/scss/_south.scss +5 -5
- package/src/components/tooltip/scss/_west.scss +5 -5
- package/src/components/tooltip/scss/index.scss +230 -17
- package/src/components/tooltip/scss/variables.scss +105 -0
- package/src/components/tooltip/utilities.ts +103 -0
- package/src/components/tree/index.ts +259 -0
- package/src/components/tree/scss/index.scss +105 -0
- package/src/components/tree/scss/variables.scss +48 -0
- package/src/components/tree-view/index.ts +285 -0
- package/src/components/tree-view/scss/index.scss +169 -0
- package/src/components/tree-view/scss/variables.scss +18 -0
- package/src/components/typewriter/index.ts +10 -6
- package/src/components/typewriter/scss/index.scss +30 -11
- package/src/components/typewriter/scss/variables.scss +24 -0
- package/src/components/typewriter-retype/index.ts +164 -0
- package/src/components/typewriter-retype/scss/index.scss +142 -0
- package/src/components/typewriter-retype/scss/variables.scss +46 -0
- package/src/components/undo-toast/index.ts +359 -0
- package/src/components/undo-toast/scss/index.scss +216 -0
- package/src/components/undo-toast/scss/variables.scss +20 -0
- package/src/components/uptime/index.ts +271 -0
- package/src/components/uptime/scss/index.scss +163 -0
- package/src/components/uptime/scss/variables.scss +56 -0
- package/src/components/usage-meter/index.ts +63 -0
- package/src/components/usage-meter/scss/index.scss +94 -0
- package/src/components/usage-meter/scss/variables.scss +43 -0
- package/src/components/value-flash/index.ts +121 -0
- package/src/components/value-flash/scss/index.scss +193 -0
- package/src/components/value-flash/scss/variables.scss +47 -0
- package/src/components/waitlist-join/index.ts +545 -0
- package/src/components/waitlist-join/scss/index.scss +401 -0
- package/src/components/waitlist-join/scss/variables.scss +23 -0
- package/src/components/web-search/brands.ts +155 -0
- package/src/components/web-search/index.ts +316 -0
- package/src/components/web-search/scss/index.scss +270 -0
- package/src/components/web-search/scss/variables.scss +8 -0
- package/src/components/word-rotator/index.ts +296 -0
- package/src/components/word-rotator/scss/index.scss +33 -0
- package/src/components/word-rotator/scss/variables.scss +7 -0
- package/src/css-utilities/scrollbar/scss/index.scss +6 -1
- package/src/lib/scss/position.scss +3 -3
- package/src/themes/dark/select.ts +2 -2
- package/storage/svg/settings/add-line.svg +1 -0
- package/storage/svg/settings/arrow-down-s-line.svg +1 -0
- package/storage/svg/settings/arrow-left-s-line.svg +1 -0
- package/storage/svg/settings/arrow-right-s-line.svg +1 -0
- package/storage/svg/settings/bank-card-line.svg +1 -0
- package/storage/svg/settings/book-open-line.svg +1 -0
- package/storage/svg/settings/calendar-line.svg +1 -0
- package/storage/svg/settings/code-block.svg +1 -0
- package/storage/svg/settings/database-2-line.svg +1 -0
- package/storage/svg/settings/delete-bin-6-line.svg +1 -0
- package/storage/svg/settings/download-2-line.svg +1 -0
- package/storage/svg/settings/edit-line.svg +1 -0
- package/storage/svg/settings/expand-up-down-line.svg +1 -0
- package/storage/svg/settings/external-link-line.svg +1 -0
- package/storage/svg/settings/file-copy-line.svg +1 -0
- package/storage/svg/settings/file-excel-2-fill.svg +1 -0
- package/storage/svg/settings/file-text-fill.svg +1 -0
- package/storage/svg/settings/film-fill.svg +1 -0
- package/storage/svg/settings/git-merge-line.svg +1 -0
- package/storage/svg/settings/logout-circle-line.svg +1 -0
- package/storage/svg/settings/mail-line.svg +1 -0
- package/storage/svg/settings/more-2-fill.svg +1 -0
- package/storage/svg/settings/more-fill.svg +1 -0
- package/storage/svg/settings/organization-chart.svg +1 -0
- package/storage/svg/settings/palette-line.svg +1 -0
- package/storage/svg/settings/plug-line.svg +1 -0
- package/storage/svg/settings/school-line.svg +1 -0
- package/storage/svg/settings/search-line.svg +1 -0
- package/storage/svg/settings/settings-6-line.svg +1 -0
- package/storage/svg/settings/settings-line.svg +1 -0
- package/storage/svg/settings/tools-fill.svg +1 -0
- package/storage/svg/settings/upload-cloud-2-line.svg +1 -0
- package/build/components/border/scss/index.scss +0 -2
- package/build/components/checkbox/constants.d.ts +0 -2
- package/build/components/checkbox/constants.js +0 -2
- package/build/components/clipboard/onclick.d.ts +0 -10
- package/build/components/clipboard/onclick.js +0 -36
- package/build/components/select/constants.d.ts +0 -4
- package/build/components/select/constants.js +0 -4
- package/build/components/tooltip/constants.d.ts +0 -3
- package/build/components/tooltip/constants.js +0 -3
- package/src/components/border/scss/index.scss +0 -17
- package/src/components/border/scss/variables.scss +0 -6
- package/src/components/checkbox/constants.ts +0 -4
- package/src/components/clipboard/onclick.ts +0 -35
- package/src/components/select/constants.ts +0 -8
- package/src/components/tooltip/constants.ts +0 -6
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[CODE_MORPH_TAB]?: Attributes;
|
|
5
|
+
label?: string;
|
|
6
|
+
state?: State;
|
|
7
|
+
steps: Step[];
|
|
8
|
+
};
|
|
9
|
+
type State = {
|
|
10
|
+
step: number;
|
|
11
|
+
};
|
|
12
|
+
type Step = {
|
|
13
|
+
code: string;
|
|
14
|
+
label: string;
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
declare const CODE_MORPH_TAB: unique symbol;
|
|
18
|
+
declare function template(this: {
|
|
19
|
+
attributes?: Partial<A>;
|
|
20
|
+
} | void, { label, state, steps, ...attributes }: A): DocumentFragment | Text;
|
|
21
|
+
declare const _default: typeof template & {
|
|
22
|
+
readonly tab: typeof CODE_MORPH_TAB;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
export type { State as CodeMorphState, Step as CodeMorphStep };
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { ReactiveArray, effect, onCleanup } from '@esportsplus/reactivity';
|
|
4
|
+
import { write } from '../clipboard/index.js';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_13tkti96 = template_u1.template(`<div class='code-morph'><div class='code-morph-header'><div class='code-morph-tabs' role='tablist'><span aria-hidden='true' class='code-morph-pill'></span></div><button aria-label='Copy this step' class='code-morph-copy ' type='button'><svg aria-hidden='true' class='code-morph-icon code-morph-icon--copy' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><rect height='8' rx='1.75' width='8' x='5.25' y='5.25' /><path d='M10.75 5.25V4a1.25 1.25 0 0 0-1.25-1.25H4A1.25 1.25 0 0 0 2.75 4v5.5A1.25 1.25 0 0 0 4 10.75h1.25' /></svg><svg aria-hidden='true' class='code-morph-icon code-morph-icon--check' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><path d='M3.5 8.5 6.5 11.5 12.5 4.5' /></svg></button><span class='code-morph-sr' role='status'></span></div><div class='code-morph-panel' role='tabpanel' tabindex='0'><pre class='code-morph-sr'></pre><div aria-hidden='true' class='code-morph-code'><!--$--><div class='code-morph-gutter'></div><div class='code-morph-tokens'></div></div></div><div class='code-morph-footer'><span class='code-morph-count'></span><div class='code-morph-titles'>`);
|
|
7
|
+
const template_13tkti9l = template_u1.template(`<button class='code-morph-tab ' role='tab' type='button'><span class='code-morph-tab-label'>`);
|
|
8
|
+
const template_13tkti9p = template_u1.template(`<span class='code-morph-added '>`);
|
|
9
|
+
const template_13tkti9s = template_u1.template(`<div class='code-morph-number '>`);
|
|
10
|
+
const template_13tkti9v = template_u1.template(`<span class='code-morph-token '>`);
|
|
11
|
+
const template_13tkti9y = template_u1.template(`<span class='code-morph-title '>`);
|
|
12
|
+
class ReactiveObject_13tkti90 extends reactivity_u0.ReactiveObject {
|
|
13
|
+
#step = this[reactivity_u0.SIGNAL](0);
|
|
14
|
+
constructor() {
|
|
15
|
+
super(null);
|
|
16
|
+
}
|
|
17
|
+
get step() {
|
|
18
|
+
return reactivity_u0.read(this.#step);
|
|
19
|
+
}
|
|
20
|
+
set step(_v0) {
|
|
21
|
+
reactivity_u0.write(this.#step, _v0);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class ReactiveObject_13tkti91 extends reactivity_u0.ReactiveObject {
|
|
25
|
+
#status;
|
|
26
|
+
constructor(_p0) {
|
|
27
|
+
super(null);
|
|
28
|
+
this.#status = this[reactivity_u0.SIGNAL](_p0);
|
|
29
|
+
}
|
|
30
|
+
get status() {
|
|
31
|
+
return reactivity_u0.read(this.#status);
|
|
32
|
+
}
|
|
33
|
+
set status(_v0) {
|
|
34
|
+
reactivity_u0.write(this.#status, _v0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class ReactiveObject_13tkti92 extends reactivity_u0.ReactiveObject {
|
|
38
|
+
#added;
|
|
39
|
+
#step = this[reactivity_u0.SIGNAL](0);
|
|
40
|
+
constructor(_p0) {
|
|
41
|
+
super(null);
|
|
42
|
+
this.#added = this[reactivity_u0.SIGNAL](_p0);
|
|
43
|
+
}
|
|
44
|
+
get added() {
|
|
45
|
+
return reactivity_u0.read(this.#added);
|
|
46
|
+
}
|
|
47
|
+
set added(_v0) {
|
|
48
|
+
reactivity_u0.write(this.#added, _v0);
|
|
49
|
+
}
|
|
50
|
+
get step() {
|
|
51
|
+
return reactivity_u0.read(this.#step);
|
|
52
|
+
}
|
|
53
|
+
set step(_v1) {
|
|
54
|
+
reactivity_u0.write(this.#step, _v1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class ReactiveObject_13tkti93 extends reactivity_u0.ReactiveObject {
|
|
58
|
+
#col;
|
|
59
|
+
#kind;
|
|
60
|
+
#phase;
|
|
61
|
+
#row;
|
|
62
|
+
#text;
|
|
63
|
+
constructor(_p0, _p1, _p2, _p3, _p4) {
|
|
64
|
+
super(null);
|
|
65
|
+
this.#col = this[reactivity_u0.SIGNAL](_p0);
|
|
66
|
+
this.#kind = this[reactivity_u0.SIGNAL](_p1);
|
|
67
|
+
this.#phase = this[reactivity_u0.SIGNAL](_p2);
|
|
68
|
+
this.#row = this[reactivity_u0.SIGNAL](_p3);
|
|
69
|
+
this.#text = this[reactivity_u0.SIGNAL](_p4);
|
|
70
|
+
}
|
|
71
|
+
get col() {
|
|
72
|
+
return reactivity_u0.read(this.#col);
|
|
73
|
+
}
|
|
74
|
+
set col(_v0) {
|
|
75
|
+
reactivity_u0.write(this.#col, _v0);
|
|
76
|
+
}
|
|
77
|
+
get kind() {
|
|
78
|
+
return reactivity_u0.read(this.#kind);
|
|
79
|
+
}
|
|
80
|
+
set kind(_v1) {
|
|
81
|
+
reactivity_u0.write(this.#kind, _v1);
|
|
82
|
+
}
|
|
83
|
+
get phase() {
|
|
84
|
+
return reactivity_u0.read(this.#phase);
|
|
85
|
+
}
|
|
86
|
+
set phase(_v2) {
|
|
87
|
+
reactivity_u0.write(this.#phase, _v2);
|
|
88
|
+
}
|
|
89
|
+
get row() {
|
|
90
|
+
return reactivity_u0.read(this.#row);
|
|
91
|
+
}
|
|
92
|
+
set row(_v3) {
|
|
93
|
+
reactivity_u0.write(this.#row, _v3);
|
|
94
|
+
}
|
|
95
|
+
get text() {
|
|
96
|
+
return reactivity_u0.read(this.#text);
|
|
97
|
+
}
|
|
98
|
+
set text(_v4) {
|
|
99
|
+
reactivity_u0.write(this.#text, _v4);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
class ReactiveObject_13tkti94 extends reactivity_u0.ReactiveObject {
|
|
103
|
+
#col;
|
|
104
|
+
#kind;
|
|
105
|
+
#phase;
|
|
106
|
+
#row;
|
|
107
|
+
#text;
|
|
108
|
+
constructor(_p0, _p1, _p2, _p3, _p4) {
|
|
109
|
+
super(null);
|
|
110
|
+
this.#col = this[reactivity_u0.SIGNAL](_p0);
|
|
111
|
+
this.#kind = this[reactivity_u0.SIGNAL](_p1);
|
|
112
|
+
this.#phase = this[reactivity_u0.SIGNAL](_p2);
|
|
113
|
+
this.#row = this[reactivity_u0.SIGNAL](_p3);
|
|
114
|
+
this.#text = this[reactivity_u0.SIGNAL](_p4);
|
|
115
|
+
}
|
|
116
|
+
get col() {
|
|
117
|
+
return reactivity_u0.read(this.#col);
|
|
118
|
+
}
|
|
119
|
+
set col(_v0) {
|
|
120
|
+
reactivity_u0.write(this.#col, _v0);
|
|
121
|
+
}
|
|
122
|
+
get kind() {
|
|
123
|
+
return reactivity_u0.read(this.#kind);
|
|
124
|
+
}
|
|
125
|
+
set kind(_v1) {
|
|
126
|
+
reactivity_u0.write(this.#kind, _v1);
|
|
127
|
+
}
|
|
128
|
+
get phase() {
|
|
129
|
+
return reactivity_u0.read(this.#phase);
|
|
130
|
+
}
|
|
131
|
+
set phase(_v2) {
|
|
132
|
+
reactivity_u0.write(this.#phase, _v2);
|
|
133
|
+
}
|
|
134
|
+
get row() {
|
|
135
|
+
return reactivity_u0.read(this.#row);
|
|
136
|
+
}
|
|
137
|
+
set row(_v3) {
|
|
138
|
+
reactivity_u0.write(this.#row, _v3);
|
|
139
|
+
}
|
|
140
|
+
get text() {
|
|
141
|
+
return reactivity_u0.read(this.#text);
|
|
142
|
+
}
|
|
143
|
+
set text(_v4) {
|
|
144
|
+
reactivity_u0.write(this.#text, _v4);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const CODE_MORPH_TAB = Symbol.for('@esportsplus/ui/code-morph.tab');
|
|
148
|
+
const KEYWORDS = new Set('import from export default function return const let var if else new true false null undefined async await try catch finally throw typeof'.split(' '));
|
|
149
|
+
const LINE = 22;
|
|
150
|
+
const PAD = 16;
|
|
151
|
+
const PATTERN = /(\/\/[^\n]*)|("[^"\n]*"|'[^'\n]*'|`[^`]*`)|(\b\d+(?:\.\d+)?\b)|([A-Za-z_$][\w$]*)|(=>|===|!==|&&|\|\||\?\.|\.\.\.|[^\s\w])/g;
|
|
152
|
+
const RESET = 1600;
|
|
153
|
+
let uid = 0;
|
|
154
|
+
function instant(element, update) {
|
|
155
|
+
element.classList.add('--instant');
|
|
156
|
+
update();
|
|
157
|
+
getComputedStyle(element).opacity;
|
|
158
|
+
element.classList.remove('--instant');
|
|
159
|
+
}
|
|
160
|
+
function match(a, b) {
|
|
161
|
+
let m = b.length, n = a.length, w = m + 1, dp = new Uint16Array((n + 1) * w), pairs = new Array(m).fill(-1);
|
|
162
|
+
function same(i, j) {
|
|
163
|
+
return a[i].text === b[j].text && a[i].kind === b[j].kind;
|
|
164
|
+
}
|
|
165
|
+
for (let i = n - 1; i >= 0; i--) {
|
|
166
|
+
for (let j = m - 1; j >= 0; j--) {
|
|
167
|
+
dp[i * w + j] = same(i, j) ? dp[(i + 1) * w + j + 1] + 1 : Math.max(dp[(i + 1) * w + j], dp[i * w + j + 1]);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
let i = 0, j = 0;
|
|
171
|
+
while (i < n && j < m) {
|
|
172
|
+
if (same(i, j)) {
|
|
173
|
+
pairs[j] = i;
|
|
174
|
+
i++;
|
|
175
|
+
j++;
|
|
176
|
+
}
|
|
177
|
+
else if (dp[(i + 1) * w + j] >= dp[i * w + j + 1]) {
|
|
178
|
+
i++;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
j++;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return pairs;
|
|
185
|
+
}
|
|
186
|
+
function tokenize(code) {
|
|
187
|
+
let col = 0, last = 0, row = 0, tokens = [];
|
|
188
|
+
function advance(text) {
|
|
189
|
+
for (let i = 0, n = text.length; i < n; i++) {
|
|
190
|
+
if (text[i] === '\n') {
|
|
191
|
+
col = 0;
|
|
192
|
+
row++;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
col++;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
for (let m of code.matchAll(PATTERN)) {
|
|
200
|
+
let index = m.index ?? 0, kind = 'plain', text = m[0];
|
|
201
|
+
advance(code.slice(last, index));
|
|
202
|
+
if (m[1]) {
|
|
203
|
+
kind = 'comment';
|
|
204
|
+
}
|
|
205
|
+
else if (m[2]) {
|
|
206
|
+
kind = 'string';
|
|
207
|
+
}
|
|
208
|
+
else if (m[3]) {
|
|
209
|
+
kind = 'number';
|
|
210
|
+
}
|
|
211
|
+
else if (m[5]) {
|
|
212
|
+
kind = 'punct';
|
|
213
|
+
}
|
|
214
|
+
else if (KEYWORDS.has(text)) {
|
|
215
|
+
kind = 'keyword';
|
|
216
|
+
}
|
|
217
|
+
else if (code[index + text.length] === '(') {
|
|
218
|
+
kind = 'fn';
|
|
219
|
+
}
|
|
220
|
+
else if (/^[A-Z]/.test(text)) {
|
|
221
|
+
kind = 'type';
|
|
222
|
+
}
|
|
223
|
+
tokens.push({ col, kind, row, text });
|
|
224
|
+
advance(text);
|
|
225
|
+
last = index + text.length;
|
|
226
|
+
}
|
|
227
|
+
return tokens;
|
|
228
|
+
}
|
|
229
|
+
function template({ label = 'Tutorial steps', state = new ReactiveObject_13tkti90(), steps, ...attributes }) {
|
|
230
|
+
let applied = -1, attempt = 0, cols = 0, copy = new ReactiveObject_13tkti91('idle'), id = `code-morph-${++uid}`, items = new ReactiveArray(), observer, ordered = [], pill, rows = [], sources = steps.map((step) => step.code.trim()), tabs = [], timer, tokens = sources.map(tokenize), view = new ReactiveObject_13tkti92(new Set());
|
|
231
|
+
for (let i = 0, n = sources.length; i < n; i++) {
|
|
232
|
+
let lines = sources[i].split('\n');
|
|
233
|
+
rows.push(lines.length);
|
|
234
|
+
for (let j = 0, o = lines.length; j < o; j++) {
|
|
235
|
+
cols = Math.max(cols, lines[j].length);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
let height = Math.max(...rows);
|
|
239
|
+
function apply(next) {
|
|
240
|
+
if (next === applied || !tokens[next]) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
let initial = applied === -1;
|
|
244
|
+
applied = next;
|
|
245
|
+
view.step = next;
|
|
246
|
+
place();
|
|
247
|
+
if (initial) {
|
|
248
|
+
ordered = tokens[next].map((token) => new ReactiveObject_13tkti93(token.col, token.kind, 'idle', token.row, token.text));
|
|
249
|
+
items.push(...ordered);
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
for (let i = items.$length - 1; i >= 0; i--) {
|
|
253
|
+
if (items[i].phase === 'exit') {
|
|
254
|
+
items.splice(i, 1);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
let added = new Set(), previous = ordered, target = tokens[next], pairs = match(previous, target), used = new Set();
|
|
258
|
+
ordered = [];
|
|
259
|
+
for (let j = 0, n = target.length; j < n; j++) {
|
|
260
|
+
let partner = pairs[j], token = target[j];
|
|
261
|
+
if (partner >= 0) {
|
|
262
|
+
let item = previous[partner];
|
|
263
|
+
item.col = token.col;
|
|
264
|
+
item.phase = 'stay';
|
|
265
|
+
item.row = token.row;
|
|
266
|
+
ordered.push(item);
|
|
267
|
+
used.add(partner);
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
let item = new ReactiveObject_13tkti94(token.col, token.kind, 'enter', token.row, token.text);
|
|
271
|
+
added.add(token.row);
|
|
272
|
+
items.push(item);
|
|
273
|
+
ordered.push(item);
|
|
274
|
+
}
|
|
275
|
+
for (let i = 0, n = previous.length; i < n; i++) {
|
|
276
|
+
if (!used.has(i)) {
|
|
277
|
+
previous[i].phase = 'exit';
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
view.added = added;
|
|
281
|
+
}
|
|
282
|
+
async function clip() {
|
|
283
|
+
let n = ++attempt;
|
|
284
|
+
show('copied');
|
|
285
|
+
if (!(await write(sources[view.step])) && n === attempt) {
|
|
286
|
+
show('failed');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function place() {
|
|
290
|
+
let tab = tabs[applied];
|
|
291
|
+
if (!pill || !tab) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
pill.style.translate = `${tab.offsetLeft}px 0`;
|
|
295
|
+
pill.style.width = `${tab.offsetWidth}px`;
|
|
296
|
+
}
|
|
297
|
+
function show(status) {
|
|
298
|
+
clearTimeout(timer);
|
|
299
|
+
copy.status = status;
|
|
300
|
+
timer = setTimeout(() => {
|
|
301
|
+
copy.status = 'idle';
|
|
302
|
+
}, RESET);
|
|
303
|
+
}
|
|
304
|
+
let stop = effect(() => {
|
|
305
|
+
apply(state.step);
|
|
306
|
+
});
|
|
307
|
+
onCleanup(() => {
|
|
308
|
+
clearTimeout(timer);
|
|
309
|
+
observer?.disconnect();
|
|
310
|
+
stop();
|
|
311
|
+
});
|
|
312
|
+
return (() => {
|
|
313
|
+
let root_13tkti95 = template_13tkti96(), element_13tkti97 = root_13tkti95.firstChild, element_13tkti98 = element_13tkti97.firstElementChild.firstElementChild, element_13tkti99 = element_13tkti98.firstElementChild, element_13tkti9a = element_13tkti98.nextElementSibling, element_13tkti9b = element_13tkti9a.nextElementSibling, element_13tkti9c = element_13tkti97.firstElementChild.nextElementSibling, element_13tkti9d = element_13tkti9c.firstElementChild, element_13tkti9e = element_13tkti9d.nextElementSibling, element_13tkti9f = element_13tkti9e.firstChild, element_13tkti9g = element_13tkti9e.firstElementChild, element_13tkti9h = element_13tkti9g.nextElementSibling, element_13tkti9i = element_13tkti9c.nextElementSibling.firstElementChild, element_13tkti9j = element_13tkti9i.nextElementSibling;
|
|
314
|
+
template_u1.setProperties(element_13tkti97, this?.attributes);
|
|
315
|
+
template_u1.setProperties(element_13tkti97, attributes);
|
|
316
|
+
template_u1.setProperty(element_13tkti98, 'aria-label', label);
|
|
317
|
+
template_u1.onconnect(element_13tkti98, (element) => {
|
|
318
|
+
if (pill) {
|
|
319
|
+
instant(pill, place);
|
|
320
|
+
}
|
|
321
|
+
observer = new ResizeObserver(() => {
|
|
322
|
+
if (pill) {
|
|
323
|
+
instant(pill, place);
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
observer.observe(element);
|
|
327
|
+
});
|
|
328
|
+
template_u1.delegate(element_13tkti98, 'keydown', (e) => {
|
|
329
|
+
let end = steps.length - 1, next = {
|
|
330
|
+
ArrowLeft: applied === 0 ? end : applied - 1,
|
|
331
|
+
ArrowRight: applied === end ? 0 : applied + 1,
|
|
332
|
+
End: end,
|
|
333
|
+
Home: 0
|
|
334
|
+
}[e.key];
|
|
335
|
+
if (next === undefined) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
e.preventDefault();
|
|
339
|
+
state.step = next;
|
|
340
|
+
tabs[next]?.focus();
|
|
341
|
+
});
|
|
342
|
+
template_u1.onrender(element_13tkti99, (element) => { pill = element; });
|
|
343
|
+
template_u1.slot(element_13tkti98, steps.map((step, i) => {
|
|
344
|
+
let root_13tkti9k = template_13tkti9l(), element_13tkti9m = root_13tkti9k.firstChild, element_13tkti9n = element_13tkti9m.firstElementChild;
|
|
345
|
+
template_u1.setList(element_13tkti9m, 'class', () => view.step === i && '--active');
|
|
346
|
+
template_u1.setProperty(element_13tkti9m, 'id', template_u1.interpolate([(id), "-tab-", (i)]));
|
|
347
|
+
template_u1.setProperties(element_13tkti9m, this?.attributes?.[CODE_MORPH_TAB]);
|
|
348
|
+
template_u1.setProperties(element_13tkti9m, attributes[CODE_MORPH_TAB]);
|
|
349
|
+
template_u1.setProperty(element_13tkti9m, 'aria-controls', `${id}-panel`);
|
|
350
|
+
template_u1.setProperty(element_13tkti9m, 'aria-selected', () => String(view.step === i));
|
|
351
|
+
template_u1.delegate(element_13tkti9m, 'click', () => {
|
|
352
|
+
state.step = i;
|
|
353
|
+
});
|
|
354
|
+
template_u1.onrender(element_13tkti9m, (element) => {
|
|
355
|
+
tabs[i] = element;
|
|
356
|
+
});
|
|
357
|
+
template_u1.setProperty(element_13tkti9m, 'tabindex', () => view.step === i ? 0 : -1);
|
|
358
|
+
template_u1.slot(element_13tkti9n, step.label, 1);
|
|
359
|
+
return root_13tkti9k;
|
|
360
|
+
}), 2);
|
|
361
|
+
template_u1.setList(element_13tkti9a, 'class', () => copy.status === 'copied' && '--copied');
|
|
362
|
+
template_u1.delegate(element_13tkti9a, 'click', clip);
|
|
363
|
+
new template_u1.EffectSlot(element_13tkti9b, () => copy.status === 'copied' ? 'Copied' : copy.status === 'failed' ? "Couldn't copy" : '', 1);
|
|
364
|
+
template_u1.setProperty(element_13tkti9c, 'id', template_u1.interpolate([(id), "-panel"]));
|
|
365
|
+
template_u1.setProperty(element_13tkti9c, 'aria-labelledby', () => `${id}-tab-${view.step}`);
|
|
366
|
+
new template_u1.EffectSlot(element_13tkti9d, () => sources[view.step], 1);
|
|
367
|
+
template_u1.setList(element_13tkti9e, 'style', () => `height: ${rows[view.step] * LINE + PAD * 2}px`);
|
|
368
|
+
template_u1.slot(element_13tkti9f, Array.from({ length: height }, (_, row) => {
|
|
369
|
+
let root_13tkti9o = template_13tkti9p(), element_13tkti9q = root_13tkti9o.firstChild;
|
|
370
|
+
template_u1.setList(element_13tkti9q, 'class', () => view.added.has(row) && '--active');
|
|
371
|
+
template_u1.setList(element_13tkti9q, 'style', template_u1.interpolate(["top: ", (PAD + row * LINE), "px"]));
|
|
372
|
+
return root_13tkti9o;
|
|
373
|
+
}));
|
|
374
|
+
template_u1.slot(element_13tkti9g, Array.from({ length: height }, (_, row) => {
|
|
375
|
+
let root_13tkti9r = template_13tkti9s(), element_13tkti9t = root_13tkti9r.firstChild;
|
|
376
|
+
template_u1.setList(element_13tkti9t, 'class', () => row >= rows[view.step] && '--hidden');
|
|
377
|
+
template_u1.slot(element_13tkti9t, row + 1, 1);
|
|
378
|
+
return root_13tkti9r;
|
|
379
|
+
}), 1);
|
|
380
|
+
template_u1.setList(element_13tkti9h, 'style', template_u1.interpolate(["width: calc(", (cols), "ch + 20px)"]));
|
|
381
|
+
element_13tkti9h.appendChild(new template_u1.ArraySlot(items, (item) => {
|
|
382
|
+
let root_13tkti9u = template_13tkti9v(), element_13tkti9w = root_13tkti9u.firstChild;
|
|
383
|
+
template_u1.setList(element_13tkti9w, 'class', template_u1.interpolate(["code-morph-token--", (item.kind)]));
|
|
384
|
+
template_u1.setList(element_13tkti9w, 'class', () => item.phase === 'enter' && '--enter');
|
|
385
|
+
template_u1.setList(element_13tkti9w, 'class', () => item.phase === 'exit' && '--exit');
|
|
386
|
+
template_u1.setList(element_13tkti9w, 'style', () => `transform: translate(${item.col}ch, ${item.row * LINE}px)`);
|
|
387
|
+
template_u1.slot(element_13tkti9w, item.text, 1);
|
|
388
|
+
return root_13tkti9u;
|
|
389
|
+
}, true).fragment);
|
|
390
|
+
new template_u1.EffectSlot(element_13tkti9i, () => `${view.step + 1}/${steps.length}`, 1);
|
|
391
|
+
template_u1.slot(element_13tkti9j, steps.map((step, i) => {
|
|
392
|
+
let root_13tkti9x = template_13tkti9y(), element_13tkti9z = root_13tkti9x.firstChild;
|
|
393
|
+
template_u1.setProperty(element_13tkti9z, 'aria-hidden', () => String(view.step !== i));
|
|
394
|
+
template_u1.setList(element_13tkti9z, 'class', () => view.step === i && '--active');
|
|
395
|
+
template_u1.slot(element_13tkti9z, step.title, 1);
|
|
396
|
+
return root_13tkti9x;
|
|
397
|
+
}), 1);
|
|
398
|
+
return root_13tkti95;
|
|
399
|
+
})();
|
|
400
|
+
}
|
|
401
|
+
export default Object.assign(template, { tab: CODE_MORPH_TAB });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.code-morph{--background:var(--color-grey-400);--border-color:var(--color-border-300);--box-shadow:0 0 0 1px oklch(0% 0 0/.06), var(--box-shadow-200);--color:var(--color-text-500);--exit-color:var(--color-red-500);--focus-color:var(--color-text-500);--font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--font-size:var(--font-size-300);--muted-color:var(--color-text-300);--move-duration:.48s;--move-timing-function:cubic-bezier(.77, 0, .175, 1);--pill-background:var(--color-white-300);--pill-box-shadow:0 0 0 1px oklch(0% 0 0/.06), var(--box-shadow-100);--pill-duration:.3s;--pill-timing-function:linear(0, .0432 4.2%, .1402 8.3%, .2575 12.5%, .3764 16.7%, .4867 20.8%, .584 25%, .667 29.2%, .7361 33.3%, .7925 37.5%, .838 41.7%, .8743 45.8%, .9029 50%, .9254 54.2%, .9428 58.3%, .9564 62.5%, .9668 66.7%, .9748 70.8%, .9809 75%, .9856 79.2%, .9892 83.3%, .9918 87.5%, .9939 91.7%, .9954 95.8%, 1);--radius:var(--border-radius-700);--row-height:22px;--syntax-comment:var(--color-text-300);--syntax-fn:oklch(from var(--color-blue-400) .5 .14 255);--syntax-keyword:oklch(from var(--color-purple-400) .5 .15 300);--syntax-number:oklch(from var(--color-red-400) .54 .14 50);--syntax-plain:var(--color);--syntax-punct:color-mix(in oklab, var(--color-text-500) 55%, transparent);--syntax-string:oklch(from var(--color-green-500) .5 .11 150);--syntax-type:oklch(from var(--color-blue-400) .5 .1 200);--tab-radius:var(--border-radius-400);--width:580px;background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);color:var(--color);max-width:100%;width:var(--width);overflow:hidden}.code-morph-added{background:color-mix(in oklab, var(--color-text-500) 4%, transparent);border-left:2px solid color-mix(in oklab, var(--color-text-500) 25%, transparent);height:var(--row-height);opacity:0;pointer-events:none;z-index:2;transition:opacity .15s ease-out;position:absolute;inset-inline:0}.code-morph-added.--active{opacity:1;transition:opacity .3s ease-out .3s}.code-morph-code{font-family:var(--font-family);font-size:var(--font-size);line-height:var(--row-height);transition:height var(--move-duration) var(--move-timing-function);padding-block:16px;display:flex;position:relative}.code-morph-copy{border-radius:var(--tab-radius);color:var(--muted-color);cursor:pointer;touch-action:manipulation;background:0 0;border:0;outline:none;flex-shrink:0;place-items:center;width:36px;height:36px;transition:color .15s ease-out,scale .15s ease-out;display:grid}.code-morph-copy:active{scale:.96}.code-morph-copy:focus-visible{outline:2px solid var(--focus-color);outline-offset:1px}.code-morph-copy:hover{color:var(--color)}.code-morph-count{color:var(--muted-color);font-variant-numeric:tabular-nums;font-weight:var(--font-weight-500);flex-shrink:0}.code-morph-footer{border-top:1px solid var(--border-color);font-size:var(--font-size-400);height:48px;padding-inline:var(--size-400);align-items:center;gap:12px;display:flex}.code-morph-gutter{background:var(--background);color:color-mix(in oklab, var(--muted-color) 60%, transparent);font-variant-numeric:tabular-nums;padding-inline:var(--size-400);text-align:right;-webkit-user-select:none;user-select:none;z-index:1;flex-shrink:0;position:sticky;left:0}.code-morph-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:12px;padding:8px;display:flex}.code-morph-icon{filter:blur();grid-area:1/1;width:16px;height:16px;transition:filter .3s cubic-bezier(.25,1,.5,1),opacity .3s cubic-bezier(.25,1,.5,1),scale .3s cubic-bezier(.25,1,.5,1)}.code-morph-icon--check,.code-morph-copy.--copied .code-morph-icon--copy{filter:blur(4px);opacity:0;scale:.25}.code-morph-copy.--copied .code-morph-icon--check{filter:blur();opacity:1;scale:1}.code-morph-number{height:var(--row-height);transition:opacity .2s ease-out}.code-morph-number.--hidden{opacity:0}.code-morph-panel{outline:none;overflow:auto hidden}.code-morph-panel:focus-visible{outline:2px solid var(--focus-color);outline-offset:-2px}.code-morph-pill{background:var(--pill-background);border-radius:var(--tab-radius);box-shadow:var(--pill-box-shadow);pointer-events:none;height:100%;transition:translate var(--pill-duration) var(--pill-timing-function), width var(--pill-duration) var(--pill-timing-function);position:absolute;top:0;left:0}.code-morph-pill.--instant{transition:none}.code-morph-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:0;position:absolute;overflow:hidden}.code-morph-tab{border-radius:var(--tab-radius);color:var(--muted-color);cursor:pointer;font-size:var(--font-size-300);font-weight:var(--font-weight-500);touch-action:manipulation;-webkit-user-select:none;user-select:none;background:0 0;border:0;outline:none;height:36px;padding-inline:12px;transition:color .15s ease-out,scale .15s ease-out;position:relative}.code-morph-tab:active{scale:.96}.code-morph-tab:focus-visible{outline:2px solid var(--focus-color);outline-offset:1px}.code-morph-tab:hover,.code-morph-tab.--active{color:var(--color)}.code-morph-tab-label{position:relative}.code-morph-tabs{align-items:center;gap:4px;display:flex;position:relative}.code-morph-title{opacity:0;text-overflow:ellipsis;white-space:nowrap;grid-area:1/1;transition:filter .12s cubic-bezier(.23,1,.32,1),opacity .12s cubic-bezier(.23,1,.32,1);overflow:hidden}.code-morph-title:not(.--active){filter:blur(2px)}.code-morph-title.--active{opacity:1;animation:.24s cubic-bezier(.23,1,.32,1) code-morph-title}.code-morph-titles{flex:1;min-width:0;display:grid}.code-morph-token{color:var(--syntax-plain);transition:background-color .2s ease, color .2s ease, transform var(--move-duration) var(--move-timing-function);white-space:pre;border-radius:3px;position:absolute;top:0;left:0}.code-morph-token--comment{color:var(--syntax-comment)}.code-morph-token--fn{color:var(--syntax-fn)}.code-morph-token--keyword{color:var(--syntax-keyword)}.code-morph-token--number{color:var(--syntax-number)}.code-morph-token--punct{color:var(--syntax-punct)}.code-morph-token--string{color:var(--syntax-string)}.code-morph-token--type{color:var(--syntax-type)}.code-morph-token.--enter{animation:.26s cubic-bezier(.23,1,.32,1) .3s both code-morph-enter}.code-morph-token.--exit{background-color:color-mix(in oklab, var(--exit-color) 12%, transparent);color:var(--exit-color);animation:.36s cubic-bezier(.23,1,.32,1) both code-morph-exit}.code-morph-tokens{white-space:pre;flex-shrink:0;position:relative}@media (prefers-reduced-motion:reduce){.code-morph-code,.code-morph-pill{transition:none}.code-morph-copy,.code-morph-tab{transition:color .15s ease-out}.code-morph-title.--active{animation-name:code-morph-fade-in}.code-morph-token{transition:background-color .2s,color .2s}.code-morph-token.--enter{animation:.2s .12s both code-morph-fade-in}.code-morph-token.--exit{animation:.16s both code-morph-fade-out}}@keyframes code-morph-enter{0%{filter:blur(4px);opacity:0;translate:0 4px}to{filter:none;opacity:1;translate:0}}@keyframes code-morph-exit{0%,40%{filter:none;opacity:1;translate:0}to{filter:blur(2px);opacity:0;translate:0 -3px}}@keyframes code-morph-fade-in{0%{opacity:0}to{opacity:1}}@keyframes code-morph-fade-out{0%{opacity:1}to{opacity:0}}@keyframes code-morph-title{0%{filter:blur(4px);opacity:0;translate:0 4px}to{filter:blur();opacity:1;translate:0}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
+
import '../tooltip/index.js';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
type A = Attributes & {
|
|
5
|
+
[COLLAPSIBLE_SIDEBAR_ITEM]?: Attributes;
|
|
6
|
+
[COLLAPSIBLE_SIDEBAR_NAV]?: Attributes;
|
|
7
|
+
[COLLAPSIBLE_SIDEBAR_TOGGLE]?: Attributes;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
items: Item[];
|
|
10
|
+
label?: string;
|
|
11
|
+
selected?: string;
|
|
12
|
+
state?: State;
|
|
13
|
+
};
|
|
14
|
+
type Item = {
|
|
15
|
+
icon: Renderable<unknown>;
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
type State = {
|
|
20
|
+
expanded: boolean;
|
|
21
|
+
selected: string;
|
|
22
|
+
};
|
|
23
|
+
declare const COLLAPSIBLE_SIDEBAR_ITEM: unique symbol;
|
|
24
|
+
declare const COLLAPSIBLE_SIDEBAR_NAV: unique symbol;
|
|
25
|
+
declare const COLLAPSIBLE_SIDEBAR_TOGGLE: unique symbol;
|
|
26
|
+
declare const _default: {
|
|
27
|
+
(): Renderable<any>;
|
|
28
|
+
<T extends A>(attributes: T): Renderable<any>;
|
|
29
|
+
<T extends Renderable<any>>(content: T): Renderable<any>;
|
|
30
|
+
(attributes: A, content?: Renderable<any>): Renderable<any>;
|
|
31
|
+
bind(context: {
|
|
32
|
+
attributes?: Partial<A> | undefined;
|
|
33
|
+
content?: Renderable<any>;
|
|
34
|
+
}): any;
|
|
35
|
+
} & {
|
|
36
|
+
readonly item: typeof COLLAPSIBLE_SIDEBAR_ITEM;
|
|
37
|
+
readonly nav: typeof COLLAPSIBLE_SIDEBAR_NAV;
|
|
38
|
+
readonly toggle: typeof COLLAPSIBLE_SIDEBAR_TOGGLE;
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
41
|
+
export type { Item, State };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import '../tooltip/index.js';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_1ti86962 = template_u1.template(`<div class='collapsible-sidebar'><nav class='collapsible-sidebar-nav'><span aria-hidden='true' class='collapsible-sidebar-highlight'></span><ul class='collapsible-sidebar-list'></ul></nav><div aria-hidden='true' class='collapsible-sidebar-tip tooltip'><span class='collapsible-sidebar-tip-message tooltip-message tooltip-message--e'></span></div><div class='collapsible-sidebar-main'><div class='collapsible-sidebar-header'><button class='collapsible-sidebar-toggle' type='button'><svg aria-hidden='true' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><rect height='10.5' rx='2' width='11.5' x='2.25' y='2.75' /><path d='M6.25 2.75v10.5' />`);
|
|
7
|
+
const template_1ti8696c = template_u1.template(`<li><button class='collapsible-sidebar-item' type='button'><span class='collapsible-sidebar-icon'></span><span class='collapsible-sidebar-label'>`);
|
|
8
|
+
class ReactiveObject_1ti86960 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#index = this[reactivity_u0.SIGNAL](0);
|
|
11
|
+
constructor() {
|
|
12
|
+
super(null);
|
|
13
|
+
}
|
|
14
|
+
get active() {
|
|
15
|
+
return reactivity_u0.read(this.#active);
|
|
16
|
+
}
|
|
17
|
+
set active(_v0) {
|
|
18
|
+
reactivity_u0.write(this.#active, _v0);
|
|
19
|
+
}
|
|
20
|
+
get index() {
|
|
21
|
+
return reactivity_u0.read(this.#index);
|
|
22
|
+
}
|
|
23
|
+
set index(_v1) {
|
|
24
|
+
reactivity_u0.write(this.#index, _v1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const COLLAPSIBLE_SIDEBAR_ITEM = Symbol.for('@esportsplus/ui/collapsible-sidebar.item');
|
|
28
|
+
const COLLAPSIBLE_SIDEBAR_NAV = Symbol.for('@esportsplus/ui/collapsible-sidebar.nav');
|
|
29
|
+
const COLLAPSIBLE_SIDEBAR_TOGGLE = Symbol.for('@esportsplus/ui/collapsible-sidebar.toggle');
|
|
30
|
+
const TOOLTIP_DELAY = 400;
|
|
31
|
+
let uid = 0;
|
|
32
|
+
export default Object.assign(component(function ({ expanded = true, items, label = 'Main', selected, state = reactivity_u0.reactive({ expanded, selected: selected ?? items[0]?.id ?? '' }), ...attributes }, content) {
|
|
33
|
+
let id = `collapsible-sidebar-${++uid}`, timer, tip = new ReactiveObject_1ti86960();
|
|
34
|
+
function hide() {
|
|
35
|
+
clearTimeout(timer);
|
|
36
|
+
tip.active = false;
|
|
37
|
+
}
|
|
38
|
+
function show(index, immediate) {
|
|
39
|
+
if (state.expanded) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
clearTimeout(timer);
|
|
43
|
+
if (immediate || tip.active) {
|
|
44
|
+
tip.active = true;
|
|
45
|
+
tip.index = index;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
timer = setTimeout(() => {
|
|
49
|
+
tip.active = true;
|
|
50
|
+
tip.index = index;
|
|
51
|
+
}, TOOLTIP_DELAY);
|
|
52
|
+
}
|
|
53
|
+
return (() => {
|
|
54
|
+
let root_1ti86961 = template_1ti86962(), element_1ti86963 = root_1ti86961.firstChild, element_1ti86964 = element_1ti86963.firstElementChild, element_1ti86965 = element_1ti86964.firstElementChild, element_1ti86966 = element_1ti86965.nextElementSibling, element_1ti86967 = element_1ti86964.nextElementSibling, element_1ti86968 = element_1ti86967.firstElementChild, element_1ti86969 = element_1ti86967.nextElementSibling.firstElementChild.firstElementChild, element_1ti8696a = element_1ti86967.nextElementSibling;
|
|
55
|
+
template_u1.setProperties(element_1ti86963, this?.attributes);
|
|
56
|
+
template_u1.setProperties(element_1ti86963, attributes);
|
|
57
|
+
template_u1.setList(element_1ti86963, 'class', () => state.expanded && '--active');
|
|
58
|
+
template_u1.ondisconnect(element_1ti86963, () => clearTimeout(timer));
|
|
59
|
+
template_u1.setProperties(element_1ti86964, this?.attributes?.[COLLAPSIBLE_SIDEBAR_NAV]);
|
|
60
|
+
template_u1.setProperties(element_1ti86964, attributes[COLLAPSIBLE_SIDEBAR_NAV]);
|
|
61
|
+
template_u1.setProperty(element_1ti86964, 'aria-label', label);
|
|
62
|
+
template_u1.setProperty(element_1ti86964, 'id', id);
|
|
63
|
+
template_u1.on(element_1ti86964, 'pointerleave', hide);
|
|
64
|
+
template_u1.setProperty(element_1ti86965, 'hidden', () => !items.some((item) => item.id === state.selected));
|
|
65
|
+
template_u1.setList(element_1ti86965, 'style', () => `--index: ${items.findIndex((item) => item.id === state.selected)}`);
|
|
66
|
+
template_u1.slot(element_1ti86966, items.map((item, index) => {
|
|
67
|
+
let root_1ti8696b = template_1ti8696c(), element_1ti8696d = root_1ti8696b.firstChild.firstElementChild, element_1ti8696e = element_1ti8696d.firstElementChild, element_1ti8696f = element_1ti8696e.nextElementSibling;
|
|
68
|
+
template_u1.setProperties(element_1ti8696d, this?.attributes?.[COLLAPSIBLE_SIDEBAR_ITEM]);
|
|
69
|
+
template_u1.setProperties(element_1ti8696d, attributes[COLLAPSIBLE_SIDEBAR_ITEM]);
|
|
70
|
+
template_u1.setProperty(element_1ti8696d, 'aria-current', () => state.selected === item.id && 'page');
|
|
71
|
+
template_u1.setList(element_1ti8696d, 'class', () => state.selected === item.id && '--active');
|
|
72
|
+
template_u1.on(element_1ti8696d, 'blur', hide);
|
|
73
|
+
template_u1.delegate(element_1ti8696d, 'click', () => {
|
|
74
|
+
state.selected = item.id;
|
|
75
|
+
});
|
|
76
|
+
template_u1.on(element_1ti8696d, 'focus', (e) => {
|
|
77
|
+
if (e.currentTarget.matches(':focus-visible')) {
|
|
78
|
+
show(index, true);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
template_u1.on(element_1ti8696d, 'pointerenter', (e) => {
|
|
82
|
+
if (e.pointerType !== 'touch') {
|
|
83
|
+
show(index, false);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
template_u1.slot(element_1ti8696e, item.icon, 1);
|
|
87
|
+
template_u1.slot(element_1ti8696f, item.label, 1);
|
|
88
|
+
return root_1ti8696b;
|
|
89
|
+
}), 1);
|
|
90
|
+
template_u1.setList(element_1ti86967, 'class', () => tip.active && !state.expanded && '--active');
|
|
91
|
+
template_u1.setList(element_1ti86967, 'style', () => `--index: ${tip.index}`);
|
|
92
|
+
new template_u1.EffectSlot(element_1ti86968, () => items[tip.index]?.label ?? '', 1);
|
|
93
|
+
template_u1.setProperty(element_1ti86969, 'aria-controls', id);
|
|
94
|
+
template_u1.setProperties(element_1ti86969, this?.attributes?.[COLLAPSIBLE_SIDEBAR_TOGGLE]);
|
|
95
|
+
template_u1.setProperties(element_1ti86969, attributes[COLLAPSIBLE_SIDEBAR_TOGGLE]);
|
|
96
|
+
template_u1.setProperty(element_1ti86969, 'aria-expanded', () => String(state.expanded));
|
|
97
|
+
template_u1.setProperty(element_1ti86969, 'aria-label', () => state.expanded ? 'Collapse sidebar' : 'Expand sidebar');
|
|
98
|
+
template_u1.delegate(element_1ti86969, 'click', () => {
|
|
99
|
+
hide();
|
|
100
|
+
state.expanded = !state.expanded;
|
|
101
|
+
});
|
|
102
|
+
template_u1.slot(element_1ti8696a, content, 2);
|
|
103
|
+
return root_1ti86961;
|
|
104
|
+
})();
|
|
105
|
+
}), { item: COLLAPSIBLE_SIDEBAR_ITEM, nav: COLLAPSIBLE_SIDEBAR_NAV, toggle: COLLAPSIBLE_SIDEBAR_TOGGLE });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.collapsible-sidebar{--background:var(--color-white-300);--border-color:var(--color-border-300);--border-radius:var(--border-radius-700);--box-shadow:0 0 0 var(--border-width-400) var(--border-color), var(--box-shadow-200);--color:var(--color-text-300);--color-active:var(--color-text-500);--focus-color:var(--color-text-500);--font-size:var(--font-size-400);--font-weight:var(--font-weight-500);--gap:4px;--header-height:56px;--highlight-background:var(--color-grey-400);--highlight-duration:.31s;--highlight-timing-function:var(--spring);--icon-size:20px;--item-border-radius:var(--border-radius-400);--item-height:40px;--label-blur:4px;--label-delay:.12s;--label-duration-in:.2s;--label-duration-out:.1s;--padding:8px;--spring:linear(0, .0432 4.2%, .1402 8.3%, .2575 12.5%, .3764 16.7%, .4867 20.8%, .584 25%, .667 29.2%, .7361 33.3%, .7925 37.5%, .838 41.7%, .8743 45.8%, .9029 50%, .9254 54.2%, .9428 58.3%, .9564 62.5%, .9668 66.7%, .9748 70.8%, .9809 75%, .9856 79.2%, .9892 83.3%, .9918 87.5%, .9939 91.7%, .9954 95.8%, 1);--tip-duration-in:.125s;--tip-duration-out:.1s;--tip-timing-function:cubic-bezier(.23, 1, .32, 1);--width:var(--width-expanded);--width-collapsed:64px;--width-duration:.38s;--width-expanded:240px;--width-timing-function:var(--spring)}.collapsible-sidebar--dense{--gap:2px;--item-height:36px;--width-collapsed:56px}.collapsible-sidebar{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);display:flex;position:relative;overflow:hidden}.collapsible-sidebar:not(.--active){--width:var(--width-collapsed)}.collapsible-sidebar:not(.--active) .collapsible-sidebar-label{filter:blur(var(--label-blur));opacity:0;transition-delay:0s;transition-duration:var(--label-duration-out)}.collapsible-sidebar-header{align-items:center;gap:var(--padding);height:var(--header-height);padding-inline:var(--padding);flex-shrink:0;display:flex}.collapsible-sidebar-highlight{background:var(--highlight-background);border-radius:var(--item-border-radius);height:var(--item-height);inset-inline:var(--padding);pointer-events:none;top:var(--padding);transition:translate var(--highlight-duration) var(--highlight-timing-function);translate:0 calc(var(--index) * (var(--item-height) + var(--gap)));position:absolute}.collapsible-sidebar-icon,.collapsible-sidebar-toggle svg{flex:0 0 var(--icon-size);height:var(--icon-size);width:var(--icon-size)}.collapsible-sidebar-icon{transition:scale .15s ease-out;display:flex;position:relative}.collapsible-sidebar-icon svg{width:100%;height:100%}.collapsible-sidebar-item{border-radius:var(--item-border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);font-weight:var(--font-weight);height:var(--item-height);padding:0 0 0 calc((var(--width-collapsed) - var(--padding) * 2 - var(--icon-size)) / 2);touch-action:manipulation;-webkit-user-select:none;user-select:none;white-space:nowrap;background:0 0;border:0;outline:none;align-items:center;gap:12px;width:100%;transition:color .15s ease-out;display:flex;position:relative}.collapsible-sidebar-item:active .collapsible-sidebar-icon{scale:.96}.collapsible-sidebar-item:focus-visible{outline:2px solid var(--focus-color);outline-offset:-2px}.collapsible-sidebar-item:hover,.collapsible-sidebar-item.--active{color:var(--color-active)}.collapsible-sidebar-label{filter:blur();opacity:1;transition:filter var(--label-duration-in) ease-out var(--label-delay), opacity var(--label-duration-in) ease-out var(--label-delay);position:relative}.collapsible-sidebar-list{gap:var(--gap);padding:var(--padding);flex-direction:column;margin:0;list-style:none;display:flex}.collapsible-sidebar-main{flex-direction:column;flex:auto;min-width:0;display:flex}.collapsible-sidebar-nav{border-inline-end:var(--border-width-400) solid var(--border-color);transition:width var(--width-duration) var(--width-timing-function);width:var(--width);flex-shrink:0;position:relative;overflow:hidden}.collapsible-sidebar-tip.tooltip{height:var(--item-height);pointer-events:none;left:0;top:calc(var(--padding) + var(--index) * (var(--item-height) + var(--gap)));width:var(--width-collapsed);z-index:1;position:absolute}.collapsible-sidebar-tip-message.tooltip-message{--border-radius:var(--border-radius-300);--box-shadow:none;--font-weight:var(--font-weight-500);--offset:4px;--padding-horizontal:10px;--padding-vertical:0px;--scale:.97;--spacer:8px;--transition-duration:var(--tip-duration-out);--transition-timing-function:var(--tip-timing-function);align-items:center;height:32px;display:flex}.tooltip.--active>.collapsible-sidebar-tip-message.tooltip-message{--transition-duration:var(--tip-duration-in)}.collapsible-sidebar-toggle{border-radius:var(--item-border-radius);color:var(--color);cursor:pointer;height:var(--item-height);touch-action:manipulation;width:var(--item-height);background:0 0;border:0;outline:none;flex-shrink:0;justify-content:center;align-items:center;transition:background-color .15s ease-out,color .15s ease-out,scale .15s ease-out;display:flex}.collapsible-sidebar-toggle:active{scale:.96}.collapsible-sidebar-toggle:focus-visible{outline:2px solid var(--focus-color)}.collapsible-sidebar-toggle:hover{background:var(--highlight-background);color:var(--color-active)}@media (prefers-reduced-motion:reduce){.collapsible-sidebar-highlight,.collapsible-sidebar-icon,.collapsible-sidebar-nav{transition:none}.collapsible-sidebar-tip-message.tooltip-message{--offset:0px;--scale:1}.collapsible-sidebar-toggle{transition:background-color .15s ease-out,color .15s ease-out}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[COLOR_PICKER_SWATCH]?: Attributes;
|
|
5
|
+
recent?: string[];
|
|
6
|
+
state?: {
|
|
7
|
+
error: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const COLOR_PICKER_SWATCH: unique symbol;
|
|
13
|
+
declare function template(this: {
|
|
14
|
+
attributes?: Pick<A, typeof COLOR_PICKER_SWATCH>;
|
|
15
|
+
} | void, { recent: initial, value, state, ...attributes }?: A): DocumentFragment | Text;
|
|
16
|
+
declare const _default: typeof template & {
|
|
17
|
+
readonly swatch: typeof COLOR_PICKER_SWATCH;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|