@esportsplus/ui 0.54.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 +2157 -8
- package/build/components/accordion/index.js +25 -11
- 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 +1447 -11
- package/build/components/checkbox/index.js +50 -66
- 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 +28 -29
- 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 +54 -31
- 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.d.ts +1 -1
- package/build/components/form/action.js +9 -12
- package/build/components/form/index.d.ts +1 -1
- 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 +12 -13
- 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/index.d.ts +3 -1442
- package/build/components/radio/index.js +2 -1
- 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 +16 -8
- package/build/components/select/index.js +66 -81
- 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/switch/index.d.ts +3 -1442
- package/build/components/switch/index.js +2 -1
- 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 +16 -18
- 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 +12 -2153
- package/build/components/tooltip/index.js +4 -1
- package/build/components/tooltip/menu.d.ts +23 -10
- package/build/components/tooltip/menu.js +16 -36
- package/build/components/tooltip/onclick.d.ts +22 -713
- package/build/components/tooltip/onclick.js +32 -18
- package/build/components/tooltip/onhover.d.ts +24 -711
- package/build/components/tooltip/onhover.js +85 -14
- 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 +496 -492
- package/build/themes/dark/select.d.ts +3 -735
- package/build/themes/dark/select.js +4 -3
- 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 +13 -14
- package/src/components/accordion/more.ts +97 -0
- package/src/components/accordion/scss/index.scss +144 -1
- 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 +17 -25
- 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 +24 -35
- 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 +58 -20
- 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/action.ts +2 -8
- 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 +15 -6
- 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/index.ts +5 -2
- 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 +54 -51
- 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/switch/index.ts +5 -2
- 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 +18 -16
- 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 +6 -1
- package/src/components/tooltip/menu.ts +31 -48
- package/src/components/tooltip/onclick.ts +42 -15
- package/src/components/tooltip/onhover.ts +130 -11
- 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 +7 -4
- 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/clipboard/onclick.d.ts +0 -10
- package/build/components/clipboard/onclick.js +0 -38
- package/src/components/border/scss/index.scss +0 -17
- package/src/components/border/scss/variables.scss +0 -6
- package/src/components/clipboard/onclick.ts +0 -40
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
-
import { omit } from '@esportsplus/utilities';
|
|
5
4
|
import form from '../form/index.js';
|
|
6
5
|
import './scss/index.scss';
|
|
7
|
-
const
|
|
6
|
+
const template_1x5yfkx2 = template_u1.template(`<textarea class='textarea'>`);
|
|
8
7
|
class ReactiveObject_1x5yfkx0 extends reactivity_u0.ReactiveObject {
|
|
9
8
|
#active = this[reactivity_u0.SIGNAL](false);
|
|
10
9
|
#error = this[reactivity_u0.SIGNAL]('');
|
|
@@ -24,8 +23,7 @@ class ReactiveObject_1x5yfkx0 extends reactivity_u0.ReactiveObject {
|
|
|
24
23
|
reactivity_u0.write(this.#error, _v1);
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
function autoresize({ height }) {
|
|
26
|
+
function autoresize({ height }, oninput) {
|
|
29
27
|
let attributes = {
|
|
30
28
|
class: 'textarea--autoresize',
|
|
31
29
|
style: `
|
|
@@ -39,29 +37,29 @@ function autoresize({ height }) {
|
|
|
39
37
|
return {
|
|
40
38
|
...attributes,
|
|
41
39
|
class: `${attributes.class} textarea--autoresize-fallback`,
|
|
42
|
-
oninput: (e)
|
|
40
|
+
oninput: function (e) {
|
|
43
41
|
let element = e.target;
|
|
44
42
|
element.style.setProperty('--content-height', '0px');
|
|
45
43
|
element.style.setProperty('--content-height', `${element.scrollHeight}px`);
|
|
44
|
+
oninput?.call(this, e);
|
|
46
45
|
}
|
|
47
46
|
};
|
|
48
47
|
}
|
|
49
|
-
export default component(function (attributes) {
|
|
50
|
-
|
|
48
|
+
export default component(function ({ autoresize: resize, state = new ReactiveObject_1x5yfkx0(), ...attributes }) {
|
|
49
|
+
attributes.value ??= '';
|
|
51
50
|
return (() => {
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
let root_1x5yfkx1 = template_1x5yfkx2(), element_1x5yfkx3 = root_1x5yfkx1.firstChild;
|
|
52
|
+
template_u1.setProperties(element_1x5yfkx3, this?.attributes);
|
|
53
|
+
template_u1.setProperties(element_1x5yfkx3, attributes);
|
|
54
|
+
template_u1.setProperties(element_1x5yfkx3, resize && autoresize(resize, attributes.oninput ?? this?.attributes?.oninput));
|
|
55
|
+
template_u1.setList(element_1x5yfkx3, 'class', () => state.active && '--active');
|
|
56
|
+
template_u1.on(element_1x5yfkx3, 'focusin', () => {
|
|
58
57
|
state.active = true;
|
|
59
58
|
});
|
|
60
|
-
|
|
59
|
+
template_u1.on(element_1x5yfkx3, 'focusout', () => {
|
|
61
60
|
state.active = false;
|
|
62
61
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return root_u21;
|
|
62
|
+
template_u1.onrender(element_1x5yfkx3, form.input.onrender(state));
|
|
63
|
+
return root_1x5yfkx1;
|
|
66
64
|
})();
|
|
67
65
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.textarea{--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)}.textarea: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)}.textarea: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)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{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:max(0px, var(--padding-vertical) - var(--border-width))
|
|
1
|
+
@layer components {.textarea{--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)}.textarea: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)}.textarea: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)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{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));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);flex:auto;width:100%;position:relative}.textarea:invalid,.textarea:required{box-shadow:none}.textarea--autoresize{field-sizing:content;height:auto;max-height:var(--max-height);min-height:var(--min-height);resize:none;overflow-y:auto}.textarea--autoresize-fallback{box-sizing:border-box;height:calc(var(--content-height,var(--min-height)) + 2 * var(--border-width))}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.thumbnail{--background:transparent;--border-radius:var(--border-radius-300);--height:var(--size);--size:var(--size-700);--width:var(--size)
|
|
1
|
+
@layer components {.thumbnail{--background:transparent;--border-radius:var(--border-radius-300);--height:var(--size);--size:var(--size-700);--width:var(--size)}.thumbnail--stack{--stack-gap:var(--border-width-500);--stack-overlap:calc(var(--width) / 4)}.thumbnail--status{--status-color:var(--color-green-400);--status-gap:var(--border-width-500);--status-size:calc(min(var(--height), var(--width)) * .3)}.thumbnail{background:var(--background);border-radius:var(--border-radius);height:var(--height);width:var(--width);background-position:50%;background-size:cover;position:relative}.thumbnail--stack+.thumbnail--stack{margin-left:calc(var(--stack-overlap) * -1)}.thumbnail--stack:has(+.thumbnail--stack){--stack-cut:calc(var(--stack-radius) + var(--stack-gap));--stack-radius:min(var(--border-radius), var(--height) / 2, var(--width) / 2);--stack-x:calc(100% - var(--stack-overlap) + var(--stack-radius));-webkit-mask-composite:source-out, source-over, source-over, source-over, source-over;-webkit-mask-composite:source-out,source-over,source-over,source-over,source-over;mask-composite:subtract,add,add,add,add;-webkit-mask-image:var(--status-mask,linear-gradient(#000 0 0)), linear-gradient(to right, transparent var(--stack-x), #000 0), linear-gradient(to right, transparent calc(100% - var(--stack-overlap) - var(--stack-gap)), #000 0), radial-gradient(circle at var(--stack-x) var(--stack-radius), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px)), radial-gradient(circle at var(--stack-x) calc(100% - var(--stack-radius)), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px));-webkit-mask-image:var(--status-mask,linear-gradient(#000 0 0)), linear-gradient(to right, transparent var(--stack-x), #000 0), linear-gradient(to right, transparent calc(100% - var(--stack-overlap) - var(--stack-gap)), #000 0), radial-gradient(circle at var(--stack-x) var(--stack-radius), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px)), radial-gradient(circle at var(--stack-x) calc(100% - var(--stack-radius)), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px));mask-image:var(--status-mask,linear-gradient(#000 0 0)), linear-gradient(to right, transparent var(--stack-x), #000 0), linear-gradient(to right, transparent calc(100% - var(--stack-overlap) - var(--stack-gap)), #000 0), radial-gradient(circle at var(--stack-x) var(--stack-radius), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px)), radial-gradient(circle at var(--stack-x) calc(100% - var(--stack-radius)), #000 calc(var(--stack-cut) - .5px), transparent calc(var(--stack-cut) + .5px));-webkit-mask-position:0 0,0 0,0,0 0,0 0;mask-position:0 0,0 0,0,0 0,0 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%, 100% 100%, 100% calc(100% - var(--stack-radius) * 2), 100% 100%, 100% 100%;-webkit-mask-size:100% 100%, 100% 100%, 100% calc(100% - var(--stack-radius) * 2), 100% 100%, 100% 100%;mask-size:100% 100%, 100% 100%, 100% calc(100% - var(--stack-radius) * 2), 100% 100%, 100% 100%}.thumbnail--status{--status-mask:radial-gradient(circle at calc(100% - var(--status-size) / 2) calc(100% - var(--status-size) / 2), #000 calc(var(--status-size) / 2 - .5px), transparent calc(var(--status-size) / 2 + .5px) calc(var(--status-size) / 2 + var(--status-gap) - .5px), #000 calc(var(--status-size) / 2 + var(--status-gap) + .5px));-webkit-mask-clip:no-clip;mask-clip:no-clip;-webkit-mask-image:var(--status-mask);-webkit-mask-image:var(--status-mask);mask-image:var(--status-mask)}.thumbnail--status:after{background:var(--status-color);content:"";height:calc(var(--status-size) + 1px);width:calc(var(--status-size) + 1px);border-radius:100%;position:absolute;bottom:-.5px;right:-.5px}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import clipboard from '../clipboard/index.js';
|
|
4
4
|
import icon from '../icon/index.js';
|
|
@@ -13,11 +13,12 @@ import loading from './svg/loading.svg';
|
|
|
13
13
|
import success from './svg/success.svg';
|
|
14
14
|
import warning from './svg/warning.svg';
|
|
15
15
|
import './scss/index.scss';
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
16
|
+
const template_1ali9cs2 = template_u1.template(`<svg aria-hidden='true' class='toast-countdown' viewBox='0 0 20 20'><circle class='toast-countdown-track' cx='10' cy='10' r='8' /><circle class='toast-countdown-ring' cx='10' cy='10' r='8' style=';' />`);
|
|
17
|
+
const template_1ali9cs6 = template_u1.template(`<div><div class='toast-content'><!--$--><!--$--><div class='--flex-column --flex-fill'><div class='toast-title'></div></div><!--$-->`);
|
|
18
|
+
const template_1ali9csf = template_u1.template(`<div class='toast-description '>`);
|
|
19
|
+
const template_1ali9csi = template_u1.template(`<div class='toast-action button button--primary'>`);
|
|
20
|
+
const template_1ali9csl = template_u1.template(`<button class='toast-close' aria-label='Dismiss'>`);
|
|
21
|
+
const template_1ali9cso = template_u1.template(`<div class='toaster '>`);
|
|
21
22
|
class ReactiveObject_1ali9cs0 extends reactivity_u0.ReactiveObject {
|
|
22
23
|
#direction = this[reactivity_u0.SIGNAL]('');
|
|
23
24
|
#x = this[reactivity_u0.SIGNAL](0);
|
|
@@ -46,6 +47,14 @@ class ReactiveObject_1ali9cs0 extends reactivity_u0.ReactiveObject {
|
|
|
46
47
|
}
|
|
47
48
|
const ICONS = { error, info, loading, success, warning };
|
|
48
49
|
const dismiss = toast.dismiss;
|
|
50
|
+
function countdown(toast) {
|
|
51
|
+
return (() => {
|
|
52
|
+
let root_1ali9cs1 = template_1ali9cs2(), element_1ali9cs3 = root_1ali9cs1.firstChild, element_1ali9cs4 = element_1ali9cs3.firstElementChild.nextElementSibling;
|
|
53
|
+
template_u1.setProperty(element_1ali9cs3, 'data-cycle', toast.cycle);
|
|
54
|
+
template_u1.setList(element_1ali9cs4, 'style', template_u1.interpolate(["animation-duration: ", (toast.duration), "ms"]));
|
|
55
|
+
return root_1ali9cs1;
|
|
56
|
+
})();
|
|
57
|
+
}
|
|
49
58
|
function row(toast, position) {
|
|
50
59
|
let swipe = new ReactiveObject_1ali9cs0(), horizontal = position.endsWith('left') || position.endsWith('right'), pointerId = -1, pressed = false, startX = 0, startY = 0, swiping = false, top = position.startsWith('top');
|
|
51
60
|
const finish = () => {
|
|
@@ -67,9 +76,9 @@ function row(toast, position) {
|
|
|
67
76
|
}
|
|
68
77
|
};
|
|
69
78
|
return (() => {
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
let root_1ali9cs5 = template_1ali9cs6(), element_1ali9cs7 = root_1ali9cs5.firstChild, element_1ali9cs8 = element_1ali9cs7.firstElementChild.firstChild, element_1ali9cs9 = element_1ali9cs8.nextSibling, element_1ali9csa = element_1ali9cs7.firstElementChild.firstElementChild.firstElementChild, element_1ali9csb = element_1ali9cs7.firstElementChild.firstElementChild, element_1ali9csc = element_1ali9cs9.nextSibling.nextSibling, element_1ali9csd = element_1ali9cs7.firstElementChild;
|
|
80
|
+
template_u1.setList(element_1ali9cs7, 'class', () => `toast toast--${toast.type}${toast.status === 'starting' ? ' toast--starting' : toast.status === 'ending' ? ' toast--ending' : ''}${swipe.x !== 0 || swipe.y !== 0 ? ' toast--swiping' : ''}`);
|
|
81
|
+
template_u1.setList(element_1ali9cs7, 'style', () => {
|
|
73
82
|
let item = buildVisibleToastLayout([...toasts]).items.find((i) => i.toast === toast), visibleIndex = item?.visibleIndex ?? 0, offsetY = item?.offsetY ?? 0;
|
|
74
83
|
return `
|
|
75
84
|
--toast-index:${visibleIndex};
|
|
@@ -78,22 +87,22 @@ function row(toast, position) {
|
|
|
78
87
|
--toast-swipe-x:${swipe.x}px;
|
|
79
88
|
--toast-swipe-y:${swipe.y}px;`;
|
|
80
89
|
});
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
template_u1.setProperty(element_1ali9cs7, 'data-swipe-direction', () => swipe.direction);
|
|
91
|
+
template_u1.onconnect(element_1ali9cs7, (el) => {
|
|
83
92
|
let observer = new ResizeObserver(() => { toast.height = el.offsetHeight; });
|
|
84
93
|
el.__toastObserver = observer;
|
|
85
94
|
observer.observe(el);
|
|
86
95
|
});
|
|
87
|
-
|
|
96
|
+
template_u1.ondisconnect(element_1ali9cs7, (el) => {
|
|
88
97
|
el.__toastObserver?.disconnect();
|
|
89
98
|
});
|
|
90
|
-
|
|
99
|
+
template_u1.delegate(element_1ali9cs7, 'pointerdown', (e) => {
|
|
91
100
|
pointerId = e.pointerId;
|
|
92
101
|
pressed = true;
|
|
93
102
|
startX = e.clientX;
|
|
94
103
|
startY = e.clientY;
|
|
95
104
|
});
|
|
96
|
-
|
|
105
|
+
template_u1.delegate(element_1ali9cs7, 'pointermove', (e) => {
|
|
97
106
|
if (!pressed) {
|
|
98
107
|
return;
|
|
99
108
|
}
|
|
@@ -108,49 +117,50 @@ function row(toast, position) {
|
|
|
108
117
|
swipe.x = x;
|
|
109
118
|
swipe.y = y;
|
|
110
119
|
});
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
template_u1.delegate(element_1ali9cs7, 'pointerup', finish);
|
|
121
|
+
template_u1.delegate(element_1ali9cs7, 'pointercancel', finish);
|
|
122
|
+
new template_u1.EffectSlot(element_1ali9cs8, () => toast.countdown && countdown(toast));
|
|
123
|
+
template_u1.slot(element_1ali9cs9, toast.type !== 'message' ? icon({ class: 'toast-icon' }, ICONS[toast.type]) : '');
|
|
124
|
+
template_u1.slot(element_1ali9csa, toast.title, 1);
|
|
125
|
+
template_u1.slot(element_1ali9csb, toast.description && (() => {
|
|
126
|
+
let root_1ali9cse = template_1ali9csf(), element_1ali9csg = root_1ali9cse.firstChild;
|
|
127
|
+
template_u1.setList(element_1ali9csg, 'class', toast.type === 'error' && typeof toast.description === 'string' && toast.description.length > 180 && 'toast-description--clamp');
|
|
128
|
+
template_u1.slot(element_1ali9csg, toast.description, 1);
|
|
129
|
+
return root_1ali9cse;
|
|
120
130
|
})(), 2);
|
|
121
|
-
|
|
131
|
+
template_u1.slot(element_1ali9csc, toast.type === 'error' && typeof toast.description === 'string' && clipboard.copy({
|
|
122
132
|
class: 'toast-copy button',
|
|
123
133
|
value: String(toast.description)
|
|
124
134
|
}, (state) => icon(state.copied ? check : copy)));
|
|
125
|
-
|
|
126
|
-
let
|
|
127
|
-
|
|
135
|
+
template_u1.slot(element_1ali9csd, toast.action && (() => {
|
|
136
|
+
let root_1ali9csh = template_1ali9csi(), element_1ali9csj = root_1ali9csh.firstChild;
|
|
137
|
+
template_u1.delegate(element_1ali9csj, 'click', () => {
|
|
128
138
|
toast.action?.onclick();
|
|
129
139
|
dismiss(toast.id);
|
|
130
140
|
});
|
|
131
|
-
|
|
132
|
-
return
|
|
141
|
+
template_u1.slot(element_1ali9csj, toast.action?.label, 1);
|
|
142
|
+
return root_1ali9csh;
|
|
133
143
|
})(), 2);
|
|
134
|
-
new
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return
|
|
144
|
+
new template_u1.EffectSlot(element_1ali9cs7, () => toast.dismissible && (() => {
|
|
145
|
+
let root_1ali9csk = template_1ali9csl(), element_1ali9csm = root_1ali9csk.firstChild;
|
|
146
|
+
template_u1.delegate(element_1ali9csm, 'click', () => dismiss(toast.id));
|
|
147
|
+
template_u1.slot(element_1ali9csm, icon(close), 1);
|
|
148
|
+
return root_1ali9csk;
|
|
139
149
|
})(), 2);
|
|
140
|
-
return
|
|
150
|
+
return root_1ali9cs5;
|
|
141
151
|
})();
|
|
142
152
|
}
|
|
143
153
|
const toaster = (options) => {
|
|
144
154
|
let position = options?.position ?? 'top-right';
|
|
145
155
|
return (() => {
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return
|
|
156
|
+
let root_1ali9csn = template_1ali9cso(), element_1ali9csp = root_1ali9csn.firstChild;
|
|
157
|
+
template_u1.setList(element_1ali9csp, 'class', () => state.active ? '--active' : '');
|
|
158
|
+
template_u1.setProperty(element_1ali9csp, 'data-position', position);
|
|
159
|
+
template_u1.setList(element_1ali9csp, 'style', () => `--toast-frontmost-height:${buildVisibleToastLayout([...toasts]).frontmostHeight}px;`);
|
|
160
|
+
template_u1.on(element_1ali9csp, 'mouseenter', () => { state.active = true; });
|
|
161
|
+
template_u1.on(element_1ali9csp, 'mouseleave', () => { state.active = false; });
|
|
162
|
+
element_1ali9csp.appendChild(new template_u1.ArraySlot(toasts, (value) => row(value, position), true).fragment);
|
|
163
|
+
return root_1ali9csn;
|
|
154
164
|
})();
|
|
155
165
|
};
|
|
156
166
|
export default toaster;
|
|
@@ -13,16 +13,20 @@ type Action = {
|
|
|
13
13
|
};
|
|
14
14
|
type Options = {
|
|
15
15
|
action?: Action;
|
|
16
|
+
countdown?: boolean;
|
|
16
17
|
description?: Renderable<unknown> | string;
|
|
17
18
|
dismissible?: boolean;
|
|
18
19
|
duration?: number;
|
|
19
20
|
id?: string;
|
|
21
|
+
ondismiss?: () => void;
|
|
20
22
|
priority?: 'low' | 'high';
|
|
21
23
|
};
|
|
22
24
|
type Status = 'ending' | 'starting' | 'visible';
|
|
23
25
|
type Toast = {
|
|
24
26
|
action?: Action;
|
|
27
|
+
countdown: boolean;
|
|
25
28
|
createdAt: number;
|
|
29
|
+
cycle: number;
|
|
26
30
|
description?: Renderable<unknown> | string;
|
|
27
31
|
dismissible: boolean;
|
|
28
32
|
duration: number;
|
|
@@ -21,7 +21,7 @@ const DURATIONS = {
|
|
|
21
21
|
warning: 6000
|
|
22
22
|
};
|
|
23
23
|
const EXIT_DURATION = 300;
|
|
24
|
-
let counter = 0, paused = false, timers = new Map();
|
|
24
|
+
let callbacks = new Map(), counter = 0, paused = false, timers = new Map();
|
|
25
25
|
function buildVisibleToastLayout(toasts) {
|
|
26
26
|
let fullIndex = 0, fullOffsetY = 0, liveIndex = 0, liveOffsetY = 0, items = toasts.map((toast) => {
|
|
27
27
|
let height = normalizeToastHeight(toast.height), item;
|
|
@@ -64,7 +64,9 @@ function clearTimer(id) {
|
|
|
64
64
|
function create(type, title, options = {}) {
|
|
65
65
|
let id = options.id ?? `toast-${++counter}`, toast = reactivity_u0.reactive({
|
|
66
66
|
action: options.action,
|
|
67
|
+
countdown: options.countdown ?? false,
|
|
67
68
|
createdAt: Date.now(),
|
|
69
|
+
cycle: 0,
|
|
68
70
|
description: options.description,
|
|
69
71
|
dismissible: options.dismissible ?? true,
|
|
70
72
|
duration: options.duration ?? DURATIONS[type],
|
|
@@ -75,6 +77,9 @@ function create(type, title, options = {}) {
|
|
|
75
77
|
title,
|
|
76
78
|
type
|
|
77
79
|
});
|
|
80
|
+
if (options.ondismiss) {
|
|
81
|
+
callbacks.set(id, options.ondismiss);
|
|
82
|
+
}
|
|
78
83
|
toasts.push(toast);
|
|
79
84
|
queueMicrotask(() => {
|
|
80
85
|
if (toast.status === 'starting' && toasts.includes(toast)) {
|
|
@@ -94,6 +99,11 @@ function dismiss(id) {
|
|
|
94
99
|
clearTimer(id);
|
|
95
100
|
toast.status = 'ending';
|
|
96
101
|
setTimeout(() => remove(id), EXIT_DURATION);
|
|
102
|
+
let callback = callbacks.get(id);
|
|
103
|
+
if (callback) {
|
|
104
|
+
callbacks.delete(id);
|
|
105
|
+
callback();
|
|
106
|
+
}
|
|
97
107
|
}
|
|
98
108
|
function normalizeToastHeight(height) {
|
|
99
109
|
return typeof height === 'number' && Number.isFinite(height) && height > 0 ? height : 0;
|
|
@@ -110,6 +120,7 @@ function pause() {
|
|
|
110
120
|
}
|
|
111
121
|
function remove(id) {
|
|
112
122
|
let index = toasts.findIndex((toast) => toast.id === id);
|
|
123
|
+
callbacks.delete(id);
|
|
113
124
|
clearTimer(id);
|
|
114
125
|
if (index !== -1) {
|
|
115
126
|
toasts.splice(index, 1);
|
|
@@ -128,6 +139,7 @@ function schedule(toast) {
|
|
|
128
139
|
if (toast.duration <= 0) {
|
|
129
140
|
return;
|
|
130
141
|
}
|
|
142
|
+
toast.cycle += 1;
|
|
131
143
|
if (state.active) {
|
|
132
144
|
timers.set(toast.id, {
|
|
133
145
|
handle: undefined,
|
|
@@ -150,12 +162,18 @@ function update(id, options) {
|
|
|
150
162
|
if (options.action !== undefined) {
|
|
151
163
|
toast.action = options.action;
|
|
152
164
|
}
|
|
165
|
+
if (options.countdown !== undefined) {
|
|
166
|
+
toast.countdown = options.countdown;
|
|
167
|
+
}
|
|
153
168
|
if (options.description !== undefined) {
|
|
154
169
|
toast.description = options.description;
|
|
155
170
|
}
|
|
156
171
|
if (options.dismissible !== undefined) {
|
|
157
172
|
toast.dismissible = options.dismissible;
|
|
158
173
|
}
|
|
174
|
+
if (options.ondismiss !== undefined) {
|
|
175
|
+
callbacks.set(id, options.ondismiss);
|
|
176
|
+
}
|
|
159
177
|
if (options.priority !== undefined) {
|
|
160
178
|
toast.priority = options.priority;
|
|
161
179
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.toaster{--toast-gap:var(--size-300);--toast-inset:var(--size-500);--toast-peek:var(--size-300)}.toast{--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height,0px)), var(--toast-height,0px));--toast-calc-offset-y:calc(var(--toast-offset-y,0px) + (var(--toast-index,0) * var(--toast-gap)) + var(--toast-swipe-y,0px));--toast-color:var(--color-text-300);--toast-height:0px;--toast-index:0;--toast-offset-y:0px;--toast-scale:max(0, 1 - (var(--toast-index,0) * .06));--toast-shrink:calc(1 - var(--toast-scale));--toast-swipe-x:0px;--toast-swipe-y:0px}.toaster{width:min(360px, 100% - var(--toast-inset) * 2);z-index:9999;position:fixed;inset:auto}.toaster[data-position^=top]{top:var(--toast-inset)}.toaster[data-position^=bottom]{bottom:var(--toast-inset)}.toaster[data-position$=left]{left:var(--toast-inset)}.toaster[data-position$=right]{right:var(--toast-inset)}.toaster[data-position$=center]{left:50%;
|
|
1
|
+
@layer components {.toaster{--toast-gap:var(--size-300);--toast-inset:var(--size-500);--toast-peek:var(--size-300)}.toast{--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height,0px)), var(--toast-height,0px));--toast-calc-offset-y:calc(var(--toast-offset-y,0px) + (var(--toast-index,0) * var(--toast-gap)) + var(--toast-swipe-y,0px));--toast-color:var(--color-text-300);--toast-countdown-length:50.27;--toast-height:0px;--toast-index:0;--toast-offset-y:0px;--toast-scale:max(0, 1 - (var(--toast-index,0) * .06));--toast-shrink:calc(1 - var(--toast-scale));--toast-swipe-x:0px;--toast-swipe-y:0px}.toaster{width:min(360px, 100% - var(--toast-inset) * 2);z-index:9999;position:fixed;inset:auto}.toaster[data-position^=top]{top:var(--toast-inset)}.toaster[data-position^=bottom]{bottom:var(--toast-inset)}.toaster[data-position$=left]{left:var(--toast-inset)}.toaster[data-position$=right]{right:var(--toast-inset)}.toaster[data-position$=center]{left:50%;translate:-50%}.toast{background:var(--background);border:1px solid var(--color-border-400);border-radius:var(--border-radius-500);box-shadow:var(--box-shadow-300);color:var(--color-text-400);scale:var(--toast-scale);translate:var(--toast-swipe-x) calc(var(--toast-swipe-y) + var(--toast-index) * var(--toast-peek) + var(--toast-shrink) * var(--toast-calc-height));-webkit-user-select:none;user-select:none;width:100%;z-index:calc(9999 - var(--toast-index,0));transition:translate .4s cubic-bezier(.22,1,.36,1),scale .4s cubic-bezier(.22,1,.36,1),opacity .3s,height .2s;position:absolute;inset-inline:0;overflow:visible}[data-position*=top] .toast{transform-origin:top;top:0;bottom:auto}[data-position*=bottom] .toast{--toast-calc-offset-y:calc((var(--toast-offset-y,0px) * -1) + (var(--toast-index,0) * var(--toast-gap) * -1) + var(--toast-swipe-y,0px));transform-origin:bottom;translate:var(--toast-swipe-x) calc(var(--toast-swipe-y) - var(--toast-index) * var(--toast-peek) - var(--toast-shrink) * var(--toast-calc-height));top:auto;bottom:0}.toast:after{content:"";height:calc(var(--toast-gap) + 1px);width:100%;position:absolute;left:0}[data-position*=top] .toast:after{top:100%}[data-position*=bottom] .toast:after{bottom:100%}.toast-action{flex-shrink:0}.toast-close{background:var(--background);border:1px solid var(--color-border-400);color:var(--color-text-500);height:var(--size-500);inset-inline-end:calc(var(--size-200) * -1);top:calc(var(--size-200) * -1);width:var(--size-500);z-index:1;border-radius:100%;justify-content:center;align-items:center;display:flex;position:absolute}.toast-content{align-items:center;gap:var(--size-300);min-height:0;opacity:max(0, 1 - var(--toast-index,0));padding:var(--size-400);justify-content:space-between;transition:opacity .3s;display:flex;overflow:clip visible}.toast-copy{justify-content:center;align-items:center;display:inline-flex}.toast-countdown{flex-shrink:0;width:20px;height:20px;rotate:-90deg}.toast-countdown circle{fill:none;stroke:currentColor;stroke-width:2px}.toast-countdown-ring{stroke-dasharray:var(--toast-countdown-length);stroke-linecap:round;animation:linear forwards toast-countdown}.toast-countdown-track{opacity:.2}.toast-description{color:var(--color-text-300);overflow-wrap:anywhere}.toast-description--clamp{-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toast-details{max-height:160px;margin-block-start:var(--size-200);overflow-y:auto}.toast-details-toggle{cursor:pointer;align-items:center;gap:var(--size-200);display:flex}.toast-icon{color:var(--toast-color);flex-shrink:0;width:18px;height:18px}.toast-title{font-weight:var(--font-weight-400);overflow-wrap:anywhere}.toast--error{--toast-color:var(--color-red-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--warning{--toast-color:var(--color-yellow-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--success{--toast-color:var(--color-green-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--info{--toast-color:var(--color-blue-400);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--loading{--toast-color:var(--color-grey-500);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toast--loading .toast-icon{animation:1s linear infinite toast-spin}.toast--message{--toast-color:var(--color-text-300);border-color:color-mix(in oklab, var(--toast-color) 30%, var(--color-border-400))}.toaster.--active .toast{height:auto;scale:1;translate:var(--toast-swipe-x) var(--toast-calc-offset-y)}.toaster.--active .toast-content{opacity:1}.toaster.--active .toast-countdown-ring{animation-play-state:paused}.toaster .toast.toast--starting{opacity:0;scale:1}.toaster[data-position*=top] .toast.toast--starting{translate:0 -120%}.toaster[data-position*=bottom] .toast.toast--starting{translate:0 120%}.toaster .toast.toast--ending{opacity:0;scale:1}.toaster[data-position*=top] .toast.toast--ending{translate:0 calc(-100% - var(--toast-inset))}.toaster[data-position*=bottom] .toast.toast--ending{translate:0 calc(100% + var(--toast-inset))}.toaster .toast.toast--ending[data-swipe-direction=left]{translate:calc(var(--toast-swipe-x) - 100% - var(--toast-inset)) var(--toast-calc-offset-y)}.toaster .toast.toast--ending[data-swipe-direction=right]{translate:calc(var(--toast-swipe-x) + 100% + var(--toast-inset)) var(--toast-calc-offset-y)}.toaster .toast.toast--ending[data-swipe-direction=up]{translate:0 calc(var(--toast-swipe-y) - 100% - var(--toast-inset))}.toaster .toast.toast--ending[data-swipe-direction=down]{translate:0 calc(var(--toast-swipe-y) + 100% + var(--toast-inset))}.toast--swiping{transition:none}@media (prefers-reduced-motion:reduce){.toast,.toast-content{transition:none}}@keyframes toast-countdown{to{stroke-dashoffset:var(--toast-countdown-length)}}@keyframes toast-spin{to{rotate:360deg}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
3
|
+
import { type Option } from './options.js';
|
|
4
|
+
declare const CONTEXT_OPTION: unique symbol;
|
|
5
|
+
declare const CONTEXT_TOOLTIP_CONTENT: unique symbol;
|
|
6
|
+
type A = Attributes & {
|
|
7
|
+
[CONTEXT_OPTION]?: Attributes;
|
|
8
|
+
[CONTEXT_TOOLTIP_CONTENT]?: Attributes;
|
|
9
|
+
oncontextmenu?: never;
|
|
10
|
+
ondocumentclick?: never;
|
|
11
|
+
ondocumentcontextmenu?: never;
|
|
12
|
+
ondocumentkeydown?: never;
|
|
13
|
+
options: Option[];
|
|
14
|
+
state?: {
|
|
15
|
+
active: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare const _default: template_u1.Factory<A, template_u1.Renderable<any>, template_u1.Renderable<any>, {
|
|
19
|
+
readonly option: typeof CONTEXT_OPTION;
|
|
20
|
+
readonly tooltipContent: typeof CONTEXT_TOOLTIP_CONTENT;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import render from './options.js';
|
|
5
|
+
const template_03iv7xx2 = template_u1.template(`<div class='tooltip tooltip--context'><!--$--><div class='tooltip-content tooltip-content--context'>`);
|
|
6
|
+
class ReactiveObject_03iv7xx0 extends reactivity_u0.ReactiveObject {
|
|
7
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
8
|
+
constructor() {
|
|
9
|
+
super(null);
|
|
10
|
+
}
|
|
11
|
+
get active() {
|
|
12
|
+
return reactivity_u0.read(this.#active);
|
|
13
|
+
}
|
|
14
|
+
set active(_v0) {
|
|
15
|
+
reactivity_u0.write(this.#active, _v0);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const CONTEXT_OPTION = Symbol.for('@esportsplus/ui/tooltip.context.option');
|
|
19
|
+
const CONTEXT_TOOLTIP_CONTENT = Symbol.for('@esportsplus/ui/tooltip.context.tooltip-content');
|
|
20
|
+
export default component(({ options, state = new ReactiveObject_03iv7xx0(), ...attributes }, content) => {
|
|
21
|
+
let menu;
|
|
22
|
+
return (() => {
|
|
23
|
+
let root_03iv7xx1 = template_03iv7xx2(), element_03iv7xx3 = root_03iv7xx1.firstChild, element_03iv7xx4 = element_03iv7xx3.firstChild, element_03iv7xx5 = element_03iv7xx3.firstElementChild;
|
|
24
|
+
template_u1.setProperties(element_03iv7xx3, attributes);
|
|
25
|
+
template_u1.setList(element_03iv7xx3, 'class', () => state.active && '--active');
|
|
26
|
+
template_u1.delegate(element_03iv7xx3, 'contextmenu', function (event) {
|
|
27
|
+
if (!menu) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
let bounds = this.getBoundingClientRect(), x = event.clientX, xflip = x + menu.offsetWidth > window.innerWidth, y = event.clientY, yflip = y + menu.offsetHeight > window.innerHeight;
|
|
32
|
+
if (xflip) {
|
|
33
|
+
x -= menu.offsetWidth;
|
|
34
|
+
}
|
|
35
|
+
if (yflip) {
|
|
36
|
+
y -= menu.offsetHeight;
|
|
37
|
+
}
|
|
38
|
+
menu.style.left = `${x - bounds.left - this.clientLeft + this.scrollLeft}px`;
|
|
39
|
+
menu.style.top = `${y - bounds.top - this.clientTop + this.scrollTop}px`;
|
|
40
|
+
menu.style.transformOrigin = `${xflip ? 'right' : 'left'} ${yflip ? 'bottom' : 'top'}`;
|
|
41
|
+
state.active = true;
|
|
42
|
+
});
|
|
43
|
+
template_u1.ondocument(element_03iv7xx3, 'click', () => {
|
|
44
|
+
state.active = false;
|
|
45
|
+
});
|
|
46
|
+
template_u1.ondocument(element_03iv7xx3, 'contextmenu', function (event) {
|
|
47
|
+
if (!state.active || this.contains(event.target)) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
state.active = false;
|
|
51
|
+
});
|
|
52
|
+
template_u1.ondocument(element_03iv7xx3, 'keydown', (event) => {
|
|
53
|
+
if (event.key === 'Escape') {
|
|
54
|
+
state.active = false;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
template_u1.slot(element_03iv7xx4, content);
|
|
58
|
+
template_u1.setProperties(element_03iv7xx5, attributes[CONTEXT_TOOLTIP_CONTENT]);
|
|
59
|
+
template_u1.setProperty(element_03iv7xx5, 'inert', () => !state.active);
|
|
60
|
+
template_u1.onrender(element_03iv7xx5, (element) => {
|
|
61
|
+
menu = element;
|
|
62
|
+
});
|
|
63
|
+
template_u1.slot(element_03iv7xx5, render(options, attributes[CONTEXT_OPTION]), 1);
|
|
64
|
+
return root_03iv7xx1;
|
|
65
|
+
})();
|
|
66
|
+
}, { option: CONTEXT_OPTION, tooltipContent: CONTEXT_TOOLTIP_CONTENT });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
|
+
declare const GROUP_ITEM: unique symbol;
|
|
4
|
+
declare const GROUP_TOOLTIP_CONTENT: unique symbol;
|
|
5
|
+
type A = Attributes & {
|
|
6
|
+
[GROUP_ITEM]?: Attributes;
|
|
7
|
+
[GROUP_TOOLTIP_CONTENT]?: Attributes & {
|
|
8
|
+
direction?: 'e' | 'n' | 's' | 'w';
|
|
9
|
+
};
|
|
10
|
+
items: (Attributes & {
|
|
11
|
+
content: Renderable<unknown>;
|
|
12
|
+
tooltip: Renderable<unknown>;
|
|
13
|
+
})[];
|
|
14
|
+
onfocusin?: never;
|
|
15
|
+
onfocusout?: never;
|
|
16
|
+
onkeydown?: never;
|
|
17
|
+
onpointerleave?: never;
|
|
18
|
+
onpointerover?: never;
|
|
19
|
+
state?: {
|
|
20
|
+
active: boolean;
|
|
21
|
+
gliding: boolean;
|
|
22
|
+
index: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare const _default: template_u1.Factory<A, Renderable<any>, Renderable<any>, {
|
|
26
|
+
readonly item: typeof GROUP_ITEM;
|
|
27
|
+
readonly tooltipContent: typeof GROUP_TOOLTIP_CONTENT;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import * as template_u1 from '@esportsplus/template';
|
|
3
|
+
import { component } from '@esportsplus/template';
|
|
4
|
+
const template_14qix912 = template_u1.template(`<div class='tooltip-group'><!--$--><div class='tooltip-group-content ' role='tooltip'><div class='tooltip-group-box'>`);
|
|
5
|
+
const template_14qix918 = template_u1.template(`<div class='tooltip-group-item'>`);
|
|
6
|
+
const template_14qix91b = template_u1.template(`<div class='tooltip-group-layer'>`);
|
|
7
|
+
class ReactiveObject_14qix910 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
9
|
+
#gliding = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#index = this[reactivity_u0.SIGNAL](-1);
|
|
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 gliding() {
|
|
21
|
+
return reactivity_u0.read(this.#gliding);
|
|
22
|
+
}
|
|
23
|
+
set gliding(_v1) {
|
|
24
|
+
reactivity_u0.write(this.#gliding, _v1);
|
|
25
|
+
}
|
|
26
|
+
get index() {
|
|
27
|
+
return reactivity_u0.read(this.#index);
|
|
28
|
+
}
|
|
29
|
+
set index(_v2) {
|
|
30
|
+
reactivity_u0.write(this.#index, _v2);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const GROUP_ITEM = Symbol.for('@esportsplus/ui/tooltip.group.item');
|
|
34
|
+
const GROUP_TOOLTIP_CONTENT = Symbol.for('@esportsplus/ui/tooltip.group.tooltip-content');
|
|
35
|
+
function item(container, target) {
|
|
36
|
+
let element = target?.closest?.('.tooltip-group-item');
|
|
37
|
+
if (!element || element.closest('.tooltip-group') !== container) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
return element;
|
|
41
|
+
}
|
|
42
|
+
function measure(container, element, index) {
|
|
43
|
+
let content = container.querySelector('.tooltip-group-content'), layer = content?.querySelectorAll('.tooltip-group-layer')[index];
|
|
44
|
+
if (!content || !layer) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
let style = content.style;
|
|
48
|
+
style.setProperty('--group-height', `${layer.offsetHeight}px`);
|
|
49
|
+
style.setProperty('--group-width', `${layer.offsetWidth}px`);
|
|
50
|
+
style.setProperty('--group-x', `${element.offsetLeft + element.offsetWidth / 2}px`);
|
|
51
|
+
style.setProperty('--group-y', `${element.offsetTop + element.offsetHeight / 2}px`);
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
export default component(({ items, state = new ReactiveObject_14qix910(), ...attributes }) => {
|
|
55
|
+
let { direction = 'n', ...tooltipContent } = attributes[GROUP_TOOLTIP_CONTENT] ?? {}, frame = 0;
|
|
56
|
+
let close = () => {
|
|
57
|
+
cancelAnimationFrame(frame);
|
|
58
|
+
state.active = false;
|
|
59
|
+
state.gliding = false;
|
|
60
|
+
};
|
|
61
|
+
let open = (container, element) => {
|
|
62
|
+
let index = Number(element.dataset.index);
|
|
63
|
+
if (state.active && state.index === index) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!measure(container, element, index)) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
state.index = index;
|
|
70
|
+
if (state.active) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
state.active = true;
|
|
74
|
+
frame = requestAnimationFrame(() => {
|
|
75
|
+
frame = requestAnimationFrame(() => {
|
|
76
|
+
state.gliding = true;
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
return (() => {
|
|
81
|
+
let root_14qix911 = template_14qix912(), element_14qix913 = root_14qix911.firstChild, element_14qix914 = element_14qix913.firstChild, element_14qix915 = element_14qix913.firstElementChild, element_14qix916 = element_14qix915.firstElementChild;
|
|
82
|
+
template_u1.setProperties(element_14qix913, attributes);
|
|
83
|
+
template_u1.setList(element_14qix913, 'class', () => `${state.active ? '--active' : ''} ${state.gliding ? '--gliding' : ''}`);
|
|
84
|
+
template_u1.ondisconnect(element_14qix913, () => {
|
|
85
|
+
cancelAnimationFrame(frame);
|
|
86
|
+
});
|
|
87
|
+
template_u1.on(element_14qix913, 'focusin', (e) => {
|
|
88
|
+
let container = e.currentTarget, element = item(container, e.target);
|
|
89
|
+
if (element && e.target.matches(':focus-visible')) {
|
|
90
|
+
open(container, element);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
template_u1.on(element_14qix913, 'focusout', (e) => {
|
|
94
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
95
|
+
close();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
template_u1.delegate(element_14qix913, 'keydown', (e) => {
|
|
99
|
+
if (e.key === 'Escape') {
|
|
100
|
+
close();
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
template_u1.on(element_14qix913, 'pointerleave', close);
|
|
104
|
+
template_u1.delegate(element_14qix913, 'pointerover', (e) => {
|
|
105
|
+
let container = e.currentTarget, element = item(container, e.target);
|
|
106
|
+
if (element) {
|
|
107
|
+
open(container, element);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
template_u1.slot(element_14qix914, items.map(({ content, tooltip, ...o }, i) => {
|
|
111
|
+
let root_14qix917 = template_14qix918(), element_14qix919 = root_14qix917.firstChild;
|
|
112
|
+
template_u1.setProperty(element_14qix919, 'data-index', i);
|
|
113
|
+
template_u1.setProperties(element_14qix919, o);
|
|
114
|
+
template_u1.setProperties(element_14qix919, attributes[GROUP_ITEM]);
|
|
115
|
+
template_u1.slot(element_14qix919, content, 1);
|
|
116
|
+
return root_14qix917;
|
|
117
|
+
}));
|
|
118
|
+
template_u1.setList(element_14qix915, 'class', `tooltip-group-content--${direction}`);
|
|
119
|
+
template_u1.setProperties(element_14qix915, tooltipContent);
|
|
120
|
+
template_u1.slot(element_14qix916, items.map(({ tooltip }, i) => {
|
|
121
|
+
let root_14qix91a = template_14qix91b(), element_14qix91c = root_14qix91a.firstChild;
|
|
122
|
+
template_u1.setList(element_14qix91c, 'class', () => state.index === i ? '--active' : state.index > i ? '--before' : '--after');
|
|
123
|
+
template_u1.slot(element_14qix91c, tooltip, 1);
|
|
124
|
+
return root_14qix91a;
|
|
125
|
+
}), 1);
|
|
126
|
+
return root_14qix911;
|
|
127
|
+
})();
|
|
128
|
+
}, { item: GROUP_ITEM, tooltipContent: GROUP_TOOLTIP_CONTENT });
|