@esportsplus/ui 0.55.0 → 0.56.3
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 +97 -1
- package/build/components/index.js +97 -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/surface-field/index.d.ts +2200 -0
- package/build/components/surface-field/index.js +474 -0
- package/build/components/surface-field/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 +97 -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/surface-field/index.ts +816 -0
- package/src/components/surface-field/scss/index.scss +115 -0
- package/src/components/surface-field/scss/variables.scss +11 -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,196 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { untrack } from '@esportsplus/reactivity';
|
|
4
|
+
import accordion from '../accordion/index.js';
|
|
5
|
+
import checkbox, { factory } from '../checkbox/index.js';
|
|
6
|
+
import './scss/index.scss';
|
|
7
|
+
const template_0w6v5475 = template_u1.template(`<li class='onboarding-checklist-task'><div class='onboarding-checklist-row'><label class='onboarding-checklist-toggle'></label><button class='onboarding-checklist-summary' type='button'><span class='onboarding-checklist-title'><!--$--><span class='onboarding-checklist-strike' aria-hidden='true'></span></span><svg aria-hidden='true' class='onboarding-checklist-chevron' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><path d='m4 6 4 4 4-4' />`);
|
|
8
|
+
const template_0w6v547b = template_u1.template(`<div class='onboarding-checklist-body'><p class='onboarding-checklist-description'></p><button class='button onboarding-checklist-action' type='button'><span class='onboarding-checklist-action-label'></span><span class='onboarding-checklist-action-label onboarding-checklist-action-label--done'><!--$--><span>Done`);
|
|
9
|
+
const template_0w6v547h = template_u1.template(`<svg aria-hidden='true' class='onboarding-checklist-icon' 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 3 3 6-7' />`);
|
|
10
|
+
const template_0w6v547j = template_u1.template(`<section aria-label='Get started' class='onboarding-checklist'><header class='onboarding-checklist-header'><div class='onboarding-checklist-heading'><h2 class='onboarding-checklist-heading-title'>Get started</h2><p class='onboarding-checklist-heading-count'></p></div><div aria-label='Setup progress' aria-valuemax='100' aria-valuemin='0' class='onboarding-checklist-ring' role='progressbar'><svg aria-hidden='true' viewBox='0 0 48 48'><circle class='onboarding-checklist-ring-track' cx='24' cy='24' fill='none' r='20' stroke-width='4' /><circle class='onboarding-checklist-ring-fill' cx='24' cy='24' fill='none' pathLength='1' r='20' stroke-linecap='round' stroke-width='4' /></svg><span class='onboarding-checklist-ring-value'><!--$--><span>%</span></span></div></header><!--$--><!--$--><p class='onboarding-checklist-live' aria-live='polite'>`);
|
|
11
|
+
const template_0w6v547s = template_u1.template(`<ul class='onboarding-checklist-list'>`);
|
|
12
|
+
const template_0w6v547v = template_u1.template(`<div class='onboarding-checklist-celebration'><h3 class='onboarding-checklist-celebration-title'>You're all set</h3><p class='onboarding-checklist-celebration-note'> Your workspace is ready. You can find these steps again any time in Settings. </p><div class='onboarding-checklist-celebration-actions'><button class='button onboarding-checklist-action' type='button'> Dismiss `);
|
|
13
|
+
class ReactiveObject_0w6v5470 extends reactivity_u0.ReactiveObject {
|
|
14
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
15
|
+
constructor() {
|
|
16
|
+
super(null);
|
|
17
|
+
}
|
|
18
|
+
get active() {
|
|
19
|
+
return reactivity_u0.read(this.#active);
|
|
20
|
+
}
|
|
21
|
+
set active(_v0) {
|
|
22
|
+
reactivity_u0.write(this.#active, _v0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
class ReactiveObject_0w6v5471 extends reactivity_u0.ReactiveObject {
|
|
26
|
+
#active = this[reactivity_u0.SIGNAL](true);
|
|
27
|
+
constructor() {
|
|
28
|
+
super(null);
|
|
29
|
+
}
|
|
30
|
+
get active() {
|
|
31
|
+
return reactivity_u0.read(this.#active);
|
|
32
|
+
}
|
|
33
|
+
set active(_v0) {
|
|
34
|
+
reactivity_u0.write(this.#active, _v0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class ReactiveObject_0w6v5472 extends reactivity_u0.ReactiveObject {
|
|
38
|
+
#active;
|
|
39
|
+
#done;
|
|
40
|
+
constructor(_p0, _p1) {
|
|
41
|
+
super(null);
|
|
42
|
+
this.#active = this[reactivity_u0.SIGNAL](_p0);
|
|
43
|
+
this.#done = this[reactivity_u0.SIGNAL](_p1);
|
|
44
|
+
}
|
|
45
|
+
get active() {
|
|
46
|
+
return reactivity_u0.read(this.#active);
|
|
47
|
+
}
|
|
48
|
+
set active(_v0) {
|
|
49
|
+
reactivity_u0.write(this.#active, _v0);
|
|
50
|
+
}
|
|
51
|
+
get done() {
|
|
52
|
+
return reactivity_u0.read(this.#done);
|
|
53
|
+
}
|
|
54
|
+
set done(_v1) {
|
|
55
|
+
reactivity_u0.write(this.#done, _v1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class ReactiveObject_0w6v5473 extends reactivity_u0.ReactiveObject {
|
|
59
|
+
#announcement = this[reactivity_u0.SIGNAL]('');
|
|
60
|
+
#shown;
|
|
61
|
+
constructor(_p0) {
|
|
62
|
+
super(null);
|
|
63
|
+
this.#shown = this[reactivity_u0.SIGNAL](_p0);
|
|
64
|
+
}
|
|
65
|
+
get announcement() {
|
|
66
|
+
return reactivity_u0.read(this.#announcement);
|
|
67
|
+
}
|
|
68
|
+
set announcement(_v0) {
|
|
69
|
+
reactivity_u0.write(this.#announcement, _v0);
|
|
70
|
+
}
|
|
71
|
+
get shown() {
|
|
72
|
+
return reactivity_u0.read(this.#shown);
|
|
73
|
+
}
|
|
74
|
+
set shown(_v1) {
|
|
75
|
+
reactivity_u0.write(this.#shown, _v1);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const CELEBRATE_AFTER = 700;
|
|
79
|
+
const ONBOARDING_CHECKLIST_TASK = Symbol.for('@esportsplus/ui/onboarding-checklist.task');
|
|
80
|
+
const STIFFNESS = (2 * Math.PI / 0.6) ** 2;
|
|
81
|
+
const DAMPING = 2 * Math.sqrt(STIFFNESS);
|
|
82
|
+
function check() {
|
|
83
|
+
return template_0w6v547h();
|
|
84
|
+
}
|
|
85
|
+
function template({ done = [], ondismiss, open = [], state, tasks, ...attributes }) {
|
|
86
|
+
let celebration = new ReactiveObject_0w6v5470(), count = tasks.filter((task) => done.includes(task.id)).length, defaults = this?.attributes, frame = 0, list = new ReactiveObject_0w6v5471(), prefix = `onboarding-checklist-${Math.random().toString(36).slice(2, 8)}`, rows = tasks.map((task) => new ReactiveObject_0w6v5472(open.includes(task.id), done.includes(task.id))), s = state || reactivity_u0.reactive({ celebrating: false, count }), timer, ui = new ReactiveObject_0w6v5473(count / tasks.length), velocity = 0;
|
|
87
|
+
s.count = count;
|
|
88
|
+
function celebrate() {
|
|
89
|
+
clearTimeout(timer);
|
|
90
|
+
if (s.count !== tasks.length) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
timer = setTimeout(() => {
|
|
94
|
+
celebration.active = true;
|
|
95
|
+
list.active = false;
|
|
96
|
+
s.celebrating = true;
|
|
97
|
+
ui.announcement = 'All tasks complete. You\'re all set.';
|
|
98
|
+
}, CELEBRATE_AFTER);
|
|
99
|
+
}
|
|
100
|
+
function ring() {
|
|
101
|
+
cancelAnimationFrame(frame);
|
|
102
|
+
let previous = performance.now(), target = s.count / tasks.length;
|
|
103
|
+
if (matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
104
|
+
ui.shown = target;
|
|
105
|
+
velocity = 0;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
function step(now) {
|
|
109
|
+
let dt = Math.min((now - previous) / 1000, 1 / 30);
|
|
110
|
+
previous = now;
|
|
111
|
+
velocity += (STIFFNESS * (target - ui.shown) - DAMPING * velocity) * dt;
|
|
112
|
+
ui.shown += velocity * dt;
|
|
113
|
+
if (Math.abs(target - ui.shown) < 0.0005 && Math.abs(velocity) < 0.001) {
|
|
114
|
+
ui.shown = target;
|
|
115
|
+
velocity = 0;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
frame = requestAnimationFrame(step);
|
|
119
|
+
}
|
|
120
|
+
frame = requestAnimationFrame(step);
|
|
121
|
+
}
|
|
122
|
+
function row(task, index) {
|
|
123
|
+
let id = `${prefix}-${index}`, state = rows[index];
|
|
124
|
+
return (() => {
|
|
125
|
+
let root_0w6v5474 = template_0w6v5475(), element_0w6v5476 = root_0w6v5474.firstChild, element_0w6v5477 = element_0w6v5476.firstElementChild.firstElementChild, element_0w6v5478 = element_0w6v5477.nextElementSibling, element_0w6v5479 = element_0w6v5478.firstElementChild.firstChild;
|
|
126
|
+
template_u1.setProperties(element_0w6v5476, defaults?.[ONBOARDING_CHECKLIST_TASK]);
|
|
127
|
+
template_u1.setProperties(element_0w6v5476, attributes[ONBOARDING_CHECKLIST_TASK]);
|
|
128
|
+
template_u1.setList(element_0w6v5476, 'class', () => `${state.done ? '--done' : ''} ${state.active ? '--open' : ''}`);
|
|
129
|
+
template_u1.slot(element_0w6v5477, checkbox({
|
|
130
|
+
class: 'onboarding-checklist-checkbox',
|
|
131
|
+
[factory.input]: {
|
|
132
|
+
'aria-label': task.title,
|
|
133
|
+
checked: () => state.done,
|
|
134
|
+
onchange: (e) => toggle(index, e.target.checked)
|
|
135
|
+
}
|
|
136
|
+
}), 1);
|
|
137
|
+
template_u1.setProperty(element_0w6v5478, 'aria-controls', id);
|
|
138
|
+
template_u1.setProperty(element_0w6v5478, 'aria-expanded', () => String(state.active));
|
|
139
|
+
template_u1.delegate(element_0w6v5478, 'click', () => {
|
|
140
|
+
state.active = !state.active;
|
|
141
|
+
});
|
|
142
|
+
template_u1.slot(element_0w6v5479, task.title);
|
|
143
|
+
template_u1.slot(element_0w6v5476, accordion({ class: 'onboarding-checklist-details', id, state }, (() => {
|
|
144
|
+
let root_0w6v547a = template_0w6v547b(), element_0w6v547c = root_0w6v547a.firstChild.firstElementChild, element_0w6v547d = element_0w6v547c.nextElementSibling, element_0w6v547e = element_0w6v547d.firstElementChild, element_0w6v547f = element_0w6v547e.nextElementSibling, element_0w6v547g = element_0w6v547f.firstChild;
|
|
145
|
+
template_u1.slot(element_0w6v547c, task.description, 1);
|
|
146
|
+
template_u1.setProperty(element_0w6v547d, 'aria-disabled', () => String(state.done));
|
|
147
|
+
template_u1.delegate(element_0w6v547d, 'click', () => {
|
|
148
|
+
if (!state.done) {
|
|
149
|
+
toggle(index, true);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
template_u1.setProperty(element_0w6v547e, 'aria-hidden', () => String(state.done));
|
|
153
|
+
template_u1.slot(element_0w6v547e, task.action, 1);
|
|
154
|
+
template_u1.setProperty(element_0w6v547f, 'aria-hidden', () => String(!state.done));
|
|
155
|
+
template_u1.slot(element_0w6v547g, check());
|
|
156
|
+
return root_0w6v547a;
|
|
157
|
+
})()), 2);
|
|
158
|
+
return root_0w6v5474;
|
|
159
|
+
})();
|
|
160
|
+
}
|
|
161
|
+
function toggle(index, value) {
|
|
162
|
+
rows[index].done = value;
|
|
163
|
+
s.count = rows.filter((row) => row.done).length;
|
|
164
|
+
ui.announcement = `${tasks[index].title} ${value ? 'done' : 'not done'}. ${s.count} of ${tasks.length} complete.`;
|
|
165
|
+
ring();
|
|
166
|
+
celebrate();
|
|
167
|
+
}
|
|
168
|
+
return (() => {
|
|
169
|
+
let root_0w6v547i = template_0w6v547j(), element_0w6v547k = root_0w6v547i.firstChild, element_0w6v547l = element_0w6v547k.firstElementChild.firstElementChild.firstElementChild.nextElementSibling, element_0w6v547m = element_0w6v547k.firstElementChild.firstElementChild.nextElementSibling, element_0w6v547n = element_0w6v547m.firstElementChild.nextElementSibling.firstChild, element_0w6v547o = element_0w6v547k.firstChild.nextSibling, element_0w6v547p = element_0w6v547o.nextSibling, element_0w6v547q = element_0w6v547k.firstElementChild.nextElementSibling;
|
|
170
|
+
template_u1.setProperties(element_0w6v547k, defaults);
|
|
171
|
+
template_u1.setProperties(element_0w6v547k, attributes);
|
|
172
|
+
template_u1.setList(element_0w6v547k, 'class', () => s.celebrating && '--celebrating');
|
|
173
|
+
template_u1.onconnect(element_0w6v547k, () => untrack(celebrate));
|
|
174
|
+
template_u1.ondisconnect(element_0w6v547k, () => {
|
|
175
|
+
cancelAnimationFrame(frame);
|
|
176
|
+
clearTimeout(timer);
|
|
177
|
+
});
|
|
178
|
+
new template_u1.EffectSlot(element_0w6v547l, () => `${s.count} of ${tasks.length} complete`, 1);
|
|
179
|
+
template_u1.setProperty(element_0w6v547m, 'aria-valuenow', () => Math.round(s.count / tasks.length * 100));
|
|
180
|
+
template_u1.setList(element_0w6v547m, 'style', () => `--progress: ${ui.shown};`);
|
|
181
|
+
new template_u1.EffectSlot(element_0w6v547n, () => Math.round(ui.shown * 100));
|
|
182
|
+
template_u1.slot(element_0w6v547o, accordion({ class: 'onboarding-checklist-collapse', state: list }, (() => {
|
|
183
|
+
let root_0w6v547r = template_0w6v547s(), element_0w6v547t = root_0w6v547r.firstChild;
|
|
184
|
+
template_u1.slot(element_0w6v547t, tasks.map(row), 1);
|
|
185
|
+
return root_0w6v547r;
|
|
186
|
+
})()));
|
|
187
|
+
template_u1.slot(element_0w6v547p, accordion({ class: 'onboarding-checklist-collapse', state: celebration }, (() => {
|
|
188
|
+
let root_0w6v547u = template_0w6v547v(), element_0w6v547w = root_0w6v547u.firstChild.firstElementChild.nextElementSibling.nextElementSibling.firstElementChild;
|
|
189
|
+
template_u1.delegate(element_0w6v547w, 'click', () => ondismiss?.());
|
|
190
|
+
return root_0w6v547u;
|
|
191
|
+
})()));
|
|
192
|
+
new template_u1.EffectSlot(element_0w6v547q, () => ui.announcement, 1);
|
|
193
|
+
return root_0w6v547i;
|
|
194
|
+
})();
|
|
195
|
+
}
|
|
196
|
+
export default Object.assign(template, { task: ONBOARDING_CHECKLIST_TASK });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.onboarding-checklist{--accent:var(--color-text-500);--accent-contrast:var(--color-white-300);--background:var(--color-grey-400);--box-shadow:0 0 0 1px oklch(from var(--color-black-300) l c h / .06), 0 1px 2px oklch(from var(--color-black-300) l c h / .06), 0 6px 16px -6px oklch(from var(--color-black-300) l c h / .12);--color-muted:var(--color-text-300);--ease:cubic-bezier(.23, 1, .32, 1);--focus-ring:oklch(from var(--color-text-500) l c h / .38);--font-size:calc(var(--font-size-400) * .875);--font-size-title:calc(var(--font-size-400) * .9375);--foreground:var(--color-text-500);--hover:oklch(from var(--color-text-500) l c h / .04);--pressed:oklch(from var(--color-text-500) l c h / .06);--radius:20px;--ring-track:oklch(from var(--color-text-500) l c h / .1);--width:min(400px, 100%);background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);color:var(--foreground);font-size:var(--font-size);width:var(--width);display:block;overflow:hidden}.onboarding-checklist-action{--background-default:var(--accent);--color-default:var(--accent-contrast);--padding-horizontal:16px;--padding-vertical:0px;font-size:var(--font-size);font-weight:var(--font-weight-500);outline:0 solid var(--focus-ring);outline-offset:2px;-webkit-user-select:none;user-select:none;border-radius:999px;height:36px;display:grid}.onboarding-checklist-action:focus-visible{outline-width:2px}.onboarding-checklist-action:active{scale:.96}.--done .onboarding-checklist-action{--background-default:var(--pressed);--color-default:var(--color-muted);cursor:default;scale:1}.onboarding-checklist-action-label{grid-area:1/1;justify-content:center;align-items:center;gap:6px;transition:filter .2s ease-out,opacity .2s ease-out;display:flex}.--done .onboarding-checklist-action-label,.onboarding-checklist-action-label--done{filter:blur(4px);opacity:0}.--done .onboarding-checklist-action-label--done{filter:none;opacity:1}.onboarding-checklist-action-label--done .onboarding-checklist-icon{filter:blur(4px);opacity:0;transition:filter .3s var(--ease), opacity .3s var(--ease), scale .3s var(--ease);scale:.25}.--done .onboarding-checklist-action-label--done .onboarding-checklist-icon{filter:none;opacity:1;scale:1}.onboarding-checklist-body{filter:blur(4px);opacity:0;flex-direction:column;align-items:flex-start;gap:12px;padding:0 12px 16px 44px;transition:filter .15s ease-out,opacity .15s ease-out,translate .15s ease-out;display:flex;translate:0 -4px}.accordion.--active>.accordion-content>.onboarding-checklist-body{filter:none;opacity:1;transition-duration:.25s;translate:0}.onboarding-checklist-celebration{flex-direction:column;align-items:flex-start;gap:4px;padding:4px 20px 20px;display:flex}.onboarding-checklist-celebration-actions{margin-top:12px}.onboarding-checklist-celebration-note{color:var(--color-muted);text-wrap:pretty;line-height:20px}.onboarding-checklist-celebration-title{color:var(--foreground);font-size:calc(var(--font-size-400) * 1.0625);font-weight:var(--font-weight-600);letter-spacing:-.01em}.--celebrating .onboarding-checklist-celebration>*{animation:onboarding-checklist-enter .4s var(--ease) both}.--celebrating .onboarding-checklist-celebration>:nth-child(2){animation-delay:.2s}.--celebrating .onboarding-checklist-celebration>:nth-child(3){animation-delay:.28s}.--celebrating .onboarding-checklist-celebration>:first-child{animation-delay:.12s}.onboarding-checklist-checkbox{--background-active:var(--accent);--border-color-active:var(--accent);--border-color-default:oklch(from var(--color-muted) l c h / .6);--border-color-hover:var(--color-muted);--border-radius:6px;--border-width:1.5px;--border-width-offset-hover:0px;--box-shadow-active:none;--check-size:75%;--check-stroke-width:3;--focus-color:var(--focus-ring);--indicator-color-default:var(--accent-contrast);--size:20px;--transition-duration:.15s;--transition-timing-function:ease-out;transition-property:background,border-color,scale}.onboarding-checklist-toggle:active .onboarding-checklist-checkbox{scale:.96}.onboarding-checklist-chevron{color:var(--color-muted);height:16px;transition:rotate .2s var(--ease);flex-shrink:0;width:16px}.--open .onboarding-checklist-chevron{rotate:180deg}.onboarding-checklist-collapse,.onboarding-checklist-details{transition:grid-template-rows .2s var(--ease)}.onboarding-checklist-collapse.--active,.onboarding-checklist-details.--active{transition-duration:.3s}.onboarding-checklist-description{color:var(--color-muted);text-wrap:pretty;line-height:20px}.onboarding-checklist-details.--active{transition-duration:.25s}.onboarding-checklist-header{justify-content:space-between;align-items:center;gap:16px;padding:20px 20px 12px;display:flex}.onboarding-checklist-heading{flex-direction:column;gap:2px;min-width:0;display:flex}.onboarding-checklist-heading-count{color:var(--color-muted);font-variant-numeric:tabular-nums}.onboarding-checklist-heading-title{color:var(--foreground);font-size:calc(var(--font-size-400) * 1.125);font-weight:var(--font-weight-600);letter-spacing:-.01em}.onboarding-checklist-list{margin:0;padding:0 8px 8px;list-style:none}.onboarding-checklist-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.onboarding-checklist-icon{width:16px;height:16px}.onboarding-checklist-ring{flex-shrink:0;place-items:center;width:48px;height:48px;display:grid;position:relative}.onboarding-checklist-ring svg{position:absolute;inset:0;rotate:-90deg}.onboarding-checklist-ring-fill{stroke:var(--accent);stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--progress))}.onboarding-checklist-ring-track{stroke:var(--ring-track)}.onboarding-checklist-ring-value{font-size:calc(var(--font-size-400) * .6875);font-variant-numeric:tabular-nums;font-weight:var(--font-weight-500);position:relative}.onboarding-checklist-ring-value span{color:var(--color-muted)}.onboarding-checklist-row{align-items:center;display:flex}.onboarding-checklist-strike{transform-origin:0;height:1px;transition:scale .15s var(--ease);background:currentColor;width:100%;position:absolute;top:50%;left:0;scale:0 1}.--done .onboarding-checklist-strike{transition-duration:.3s;scale:1}.onboarding-checklist-summary{color:inherit;cursor:pointer;font:inherit;outline:0 solid var(--focus-ring);text-align:left;background:0 0;border:0;border-radius:10px;flex:1 1 0;justify-content:space-between;align-items:center;gap:12px;min-width:0;height:48px;padding:0 12px 0 4px;transition:background-color .15s ease-out;display:flex}.onboarding-checklist-summary:active{background:var(--pressed)}.onboarding-checklist-summary:focus-visible{outline-width:2px}@media (hover:hover){.onboarding-checklist-summary:hover:not(:active){background:var(--hover)}}.onboarding-checklist-title{color:var(--foreground);font-size:var(--font-size-title);text-overflow:ellipsis;white-space:nowrap;min-width:0;transition:color .2s ease-out;position:relative;overflow:hidden}.--done .onboarding-checklist-title{color:var(--color-muted)}.onboarding-checklist-toggle{cursor:pointer;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid;position:relative}@media (prefers-reduced-motion:reduce){.onboarding-checklist-action-label--done .onboarding-checklist-icon,.onboarding-checklist-body{filter:none;translate:0;scale:1}.onboarding-checklist-chevron,.onboarding-checklist-collapse,.onboarding-checklist-details,.onboarding-checklist-strike{transition:none}.--celebrating .onboarding-checklist-celebration>*{animation-name:onboarding-checklist-fade}.onboarding-checklist-checkbox{transition-property:background,border-color}}@keyframes onboarding-checklist-enter{0%{filter:blur(4px);opacity:0;translate:0 6px}}@keyframes onboarding-checklist-fade{0%{opacity:0}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: {
|
|
4
|
+
(): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
6
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
7
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
8
|
+
bind(context: {
|
|
9
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
10
|
+
content?: template_u1.Renderable<any>;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
4
13
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
-
const
|
|
4
|
+
const template_0ip26l11 = template_u1.template(`<div class='overlay --scrollbar'>`);
|
|
5
5
|
export default component(function (attributes, content) {
|
|
6
6
|
return (() => {
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
7
|
+
let root_0ip26l10 = template_0ip26l11(), element_0ip26l12 = root_0ip26l10.firstChild;
|
|
8
|
+
template_u1.setProperties(element_0ip26l12, this?.attributes);
|
|
9
|
+
template_u1.setProperties(element_0ip26l12, attributes);
|
|
10
|
+
template_u1.slot(element_0ip26l12, content, 1);
|
|
11
|
+
return root_0ip26l10;
|
|
12
12
|
})();
|
|
13
13
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[PAGE_DOTS_DOT]?: Attributes;
|
|
5
|
+
autoplay?: number;
|
|
6
|
+
count: number;
|
|
7
|
+
onelapsed?: (active: number) => void;
|
|
8
|
+
onpage?: (index: number) => void;
|
|
9
|
+
state?: State;
|
|
10
|
+
};
|
|
11
|
+
type State = {
|
|
12
|
+
active: number;
|
|
13
|
+
progress: number;
|
|
14
|
+
running: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const PAGE_DOTS_DOT: unique symbol;
|
|
17
|
+
declare function template(this: {
|
|
18
|
+
attributes?: Partial<A>;
|
|
19
|
+
} | void, { autoplay, count, onelapsed, onpage, state, ...attributes }: A): DocumentFragment | Text;
|
|
20
|
+
declare const _default: typeof template & {
|
|
21
|
+
readonly dot: typeof PAGE_DOTS_DOT;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export type { State };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect, onCleanup } from '@esportsplus/reactivity';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
const template_1b0apwb3 = template_u1.template(`<div aria-label='Pages' class='page-dots ' role='group'><!--$--><span aria-hidden='true' class='page-dots-pill'>`);
|
|
6
|
+
const template_1b0apwb8 = template_u1.template(`<button class='page-dots-dot' type='button'><span class='page-dots-mark'>`);
|
|
7
|
+
const template_1b0apwbb = template_u1.template(`<span class='page-dots-fill'>`);
|
|
8
|
+
class ReactiveObject_1b0apwb0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#active = this[reactivity_u0.SIGNAL](0);
|
|
10
|
+
#progress = this[reactivity_u0.SIGNAL](0);
|
|
11
|
+
#running = this[reactivity_u0.SIGNAL](false);
|
|
12
|
+
constructor() {
|
|
13
|
+
super(null);
|
|
14
|
+
}
|
|
15
|
+
get active() {
|
|
16
|
+
return reactivity_u0.read(this.#active);
|
|
17
|
+
}
|
|
18
|
+
set active(_v0) {
|
|
19
|
+
reactivity_u0.write(this.#active, _v0);
|
|
20
|
+
}
|
|
21
|
+
get progress() {
|
|
22
|
+
return reactivity_u0.read(this.#progress);
|
|
23
|
+
}
|
|
24
|
+
set progress(_v1) {
|
|
25
|
+
reactivity_u0.write(this.#progress, _v1);
|
|
26
|
+
}
|
|
27
|
+
get running() {
|
|
28
|
+
return reactivity_u0.read(this.#running);
|
|
29
|
+
}
|
|
30
|
+
set running(_v2) {
|
|
31
|
+
reactivity_u0.write(this.#running, _v2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
class ReactiveObject_1b0apwb1 extends reactivity_u0.ReactiveObject {
|
|
35
|
+
#connected = this[reactivity_u0.SIGNAL](false);
|
|
36
|
+
constructor() {
|
|
37
|
+
super(null);
|
|
38
|
+
}
|
|
39
|
+
get connected() {
|
|
40
|
+
return reactivity_u0.read(this.#connected);
|
|
41
|
+
}
|
|
42
|
+
set connected(_v0) {
|
|
43
|
+
reactivity_u0.write(this.#connected, _v0);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const PAGE_DOTS_DOT = Symbol.for('@esportsplus/ui/page-dots.dot');
|
|
47
|
+
const SETTLE = { duration: 200, easing: 'cubic-bezier(0.23, 1, 0.32, 1)' };
|
|
48
|
+
function template({ autoplay, count, onelapsed, onpage, state = new ReactiveObject_1b0apwb0(), ...attributes }) {
|
|
49
|
+
let element, fill, local = new ReactiveObject_1b0apwb1(), settle, stops = [
|
|
50
|
+
effect(() => {
|
|
51
|
+
let active = Math.min(Math.max(Math.round(state.progress), 0), count - 1);
|
|
52
|
+
element?.style.setProperty('--progress', String(state.progress));
|
|
53
|
+
if (state.active !== active) {
|
|
54
|
+
state.active = active;
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
effect((cleanup) => {
|
|
58
|
+
let active = state.active, running = local.connected && state.running;
|
|
59
|
+
if (!autoplay || !fill || !running) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
let target = fill;
|
|
63
|
+
settle?.cancel();
|
|
64
|
+
let countdown = target.animate([{ transform: 'scaleX(0)' }, { transform: 'scaleX(1)' }], { duration: autoplay, easing: 'linear' });
|
|
65
|
+
countdown.onfinish = () => onelapsed?.(active);
|
|
66
|
+
cleanup(() => {
|
|
67
|
+
countdown.onfinish = null;
|
|
68
|
+
if (countdown.playState !== 'running') {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
let from = getComputedStyle(target).transform;
|
|
72
|
+
countdown.cancel();
|
|
73
|
+
settle = target.animate([{ transform: from }, { transform: 'scaleX(1)' }], SETTLE);
|
|
74
|
+
});
|
|
75
|
+
})
|
|
76
|
+
];
|
|
77
|
+
onCleanup(() => {
|
|
78
|
+
settle?.cancel();
|
|
79
|
+
for (let i = 0, n = stops.length; i < n; i++) {
|
|
80
|
+
stops[i]();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return (() => {
|
|
84
|
+
let root_1b0apwb2 = template_1b0apwb3(), element_1b0apwb4 = root_1b0apwb2.firstChild, element_1b0apwb5 = element_1b0apwb4.firstChild, element_1b0apwb6 = element_1b0apwb4.firstElementChild;
|
|
85
|
+
template_u1.setList(element_1b0apwb4, 'class', autoplay && 'page-dots--autoplay');
|
|
86
|
+
template_u1.setList(element_1b0apwb4, 'style', `--count: ${count}; --progress: ${state.progress};`);
|
|
87
|
+
template_u1.setProperties(element_1b0apwb4, this?.attributes);
|
|
88
|
+
template_u1.setProperties(element_1b0apwb4, attributes);
|
|
89
|
+
template_u1.onconnect(element_1b0apwb4, () => {
|
|
90
|
+
local.connected = true;
|
|
91
|
+
});
|
|
92
|
+
template_u1.ondisconnect(element_1b0apwb4, () => {
|
|
93
|
+
local.connected = false;
|
|
94
|
+
});
|
|
95
|
+
template_u1.onrender(element_1b0apwb4, (el) => {
|
|
96
|
+
element = el;
|
|
97
|
+
});
|
|
98
|
+
template_u1.slot(element_1b0apwb5, Array.from({ length: count }, (_, i) => {
|
|
99
|
+
let root_1b0apwb7 = template_1b0apwb8(), element_1b0apwb9 = root_1b0apwb7.firstChild;
|
|
100
|
+
template_u1.setProperty(element_1b0apwb9, 'aria-current', () => state.active === i && 'page');
|
|
101
|
+
template_u1.setProperty(element_1b0apwb9, 'aria-label', `Page ${i + 1} of ${count}`);
|
|
102
|
+
template_u1.delegate(element_1b0apwb9, 'click', () => onpage?.(i));
|
|
103
|
+
template_u1.setList(element_1b0apwb9, 'style', `--index: ${i};`);
|
|
104
|
+
template_u1.setProperties(element_1b0apwb9, this?.attributes?.[PAGE_DOTS_DOT]);
|
|
105
|
+
template_u1.setProperties(element_1b0apwb9, attributes[PAGE_DOTS_DOT]);
|
|
106
|
+
return root_1b0apwb7;
|
|
107
|
+
}));
|
|
108
|
+
template_u1.slot(element_1b0apwb6, autoplay && (() => {
|
|
109
|
+
let root_1b0apwba = template_1b0apwbb(), element_1b0apwbc = root_1b0apwba.firstChild;
|
|
110
|
+
template_u1.onrender(element_1b0apwbc, (el) => { fill = el; });
|
|
111
|
+
return root_1b0apwba;
|
|
112
|
+
})(), 1);
|
|
113
|
+
return root_1b0apwb2;
|
|
114
|
+
})();
|
|
115
|
+
}
|
|
116
|
+
export default Object.assign(template, { dot: PAGE_DOTS_DOT });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.page-dots{--color:var(--color-text-500);--dot-color:oklch(from var(--color) l c h / .2);--dot-color-hover:oklch(from var(--color) l c h / .35);--dot-gap:6px;--dot-size:6px;--focus-color:var(--color);--height:32px;--pill-color:var(--color);--pill-width:20px;--pressed-scale:.96;--track-color:var(--pill-color);--transition-duration:.15s;--transition-timing-function:ease-out}.page-dots--autoplay{--track-color:oklch(from var(--pill-color) l c h / .4)}.page-dots--large{--dot-gap:8px;--dot-size:8px;--pill-width:28px}.page-dots{--step:calc(var(--dot-size) + var(--dot-gap));contain:layout;height:var(--height);width:calc((var(--count) - 1) * var(--step) + var(--pill-width));flex:none;position:relative}.page-dots-dot{--near:clamp(0, 1 - max(var(--progress) - var(--index), var(--index) - var(--progress)), 1);box-sizing:content-box;cursor:pointer;inset-block:0;left:calc(var(--index) * var(--step) + (var(--pill-width) - var(--dot-size)) * clamp(0, var(--index) - var(--progress), 1));margin:0 0 0 calc(var(--dot-gap) / -2);padding:0 calc(var(--dot-gap) / 2);touch-action:manipulation;width:calc(var(--dot-size) + (var(--pill-width) - var(--dot-size)) * var(--near));background:0 0;border:0;border-radius:999px;outline:none;align-items:center;display:flex;position:absolute}.page-dots-dot:focus-visible{outline:var(--border-width-500) solid var(--focus-color)}.page-dots-dot:active .page-dots-mark{scale:var(--pressed-scale)}@media (hover:hover){.page-dots-dot:hover .page-dots-mark{background:var(--dot-color-hover)}}.page-dots-fill{background:var(--pill-color);transform-origin:0;position:absolute;inset:0}.page-dots-mark{background:var(--dot-color);height:var(--dot-size);transition:background-color var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function);border-radius:999px;width:100%}.page-dots-pill{--k:clamp(0, round(down, var(--progress), 1), max(var(--count) - 2, 0));--t:clamp(0, var(--progress) - var(--k), 1);--lead-t:clamp(0, var(--t) / .6, 1);--trail-t:clamp(0, (var(--t) - .4) / .6, 1);--lead:calc(var(--lead-t) * var(--lead-t) * (3 - 2 * var(--lead-t)));--trail:calc(var(--trail-t) * var(--trail-t) * (3 - 2 * var(--trail-t)));background:var(--track-color);height:var(--dot-size);pointer-events:none;translate:calc(var(--k) * var(--step) + var(--step) * var(--trail)) -50%;width:calc(var(--pill-width) + var(--step) * (var(--lead) - var(--trail)));border-radius:999px;position:absolute;top:50%;left:0;overflow:hidden}@media (prefers-reduced-motion:reduce){.page-dots-mark{transition:background-color var(--transition-duration) var(--transition-timing-function)}.page-dots-dot:active .page-dots-mark{scale:none}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
export default _default;
|
|
4
|
+
declare function _default({ onchange, siblings, state: api, total, ...attributes }: Attributes & {
|
|
5
|
+
onchange?: (page: number) => void;
|
|
6
|
+
siblings?: number;
|
|
7
|
+
state?: {
|
|
8
|
+
page: number;
|
|
9
|
+
};
|
|
10
|
+
total: number;
|
|
11
|
+
}): DocumentFragment | Text;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect, onCleanup, untrack } from '@esportsplus/reactivity';
|
|
4
|
+
import icon from '../icon/index.js';
|
|
5
|
+
import next from './svg/arrow-right.svg';
|
|
6
|
+
import previous from './svg/arrow-left.svg';
|
|
7
|
+
import './scss/index.scss';
|
|
8
|
+
const template_0rssf9r3 = template_u1.template(`<nav aria-label='Pagination' class='pagination'><button class='button pagination-control ' type='button'><!--$--> Previous </button><div class='pagination-pages'></div><button class='button pagination-control ' type='button'> Next `);
|
|
9
|
+
const template_0rssf9ra = template_u1.template(`<button class='button pagination-page ' type='button'>`);
|
|
10
|
+
class ReactiveObject_0rssf9r0 extends reactivity_u0.ReactiveObject {
|
|
11
|
+
#page = this[reactivity_u0.SIGNAL](1);
|
|
12
|
+
constructor() {
|
|
13
|
+
super(null);
|
|
14
|
+
}
|
|
15
|
+
get page() {
|
|
16
|
+
return reactivity_u0.read(this.#page);
|
|
17
|
+
}
|
|
18
|
+
set page(_v0) {
|
|
19
|
+
reactivity_u0.write(this.#page, _v0);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
class ReactiveObject_0rssf9r1 extends reactivity_u0.ReactiveObject {
|
|
23
|
+
#value;
|
|
24
|
+
constructor(_p0) {
|
|
25
|
+
super(null);
|
|
26
|
+
this.#value = this[reactivity_u0.SIGNAL](_p0);
|
|
27
|
+
}
|
|
28
|
+
get value() {
|
|
29
|
+
return reactivity_u0.read(this.#value);
|
|
30
|
+
}
|
|
31
|
+
set value(_v0) {
|
|
32
|
+
reactivity_u0.write(this.#value, _v0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const DOTS = 0;
|
|
36
|
+
function range(start, end) {
|
|
37
|
+
let values = [];
|
|
38
|
+
for (let i = start; i <= end; i++) {
|
|
39
|
+
values.push(i);
|
|
40
|
+
}
|
|
41
|
+
return values;
|
|
42
|
+
}
|
|
43
|
+
function pages(page, siblings, total) {
|
|
44
|
+
let slots = siblings * 2 + 5;
|
|
45
|
+
if (total <= slots) {
|
|
46
|
+
return range(1, total);
|
|
47
|
+
}
|
|
48
|
+
let edge = slots - 2, left = Math.max(page - siblings, 1), right = Math.min(page + siblings, total);
|
|
49
|
+
if (left <= 3) {
|
|
50
|
+
return [...range(1, edge), DOTS, total];
|
|
51
|
+
}
|
|
52
|
+
if (right >= total - 2) {
|
|
53
|
+
return [1, DOTS, ...range(total - edge + 1, total)];
|
|
54
|
+
}
|
|
55
|
+
return [1, DOTS, ...range(left, right), DOTS, total];
|
|
56
|
+
}
|
|
57
|
+
export default ({ onchange, siblings = 1, state: api = new ReactiveObject_0rssf9r0(), total, ...attributes }) => {
|
|
58
|
+
let render = new reactivity_u0.ReactiveArray(), stop = effect(() => {
|
|
59
|
+
let values = pages(api.page, siblings, total);
|
|
60
|
+
untrack(() => {
|
|
61
|
+
for (let i = 0, n = values.length; i < n; i++) {
|
|
62
|
+
if (render[i]) {
|
|
63
|
+
render[i].value = values[i];
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
let cell = new ReactiveObject_0rssf9r1(values[i]);
|
|
67
|
+
render.$set(i, cell);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (render.$length > values.length) {
|
|
71
|
+
render.splice(values.length);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
function go(page) {
|
|
76
|
+
page = Math.min(Math.max(page, 1), total);
|
|
77
|
+
if (page === api.page) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
api.page = page;
|
|
81
|
+
onchange?.(page);
|
|
82
|
+
}
|
|
83
|
+
onCleanup(stop);
|
|
84
|
+
return (() => {
|
|
85
|
+
let root_0rssf9r2 = template_0rssf9r3(), element_0rssf9r4 = root_0rssf9r2.firstChild, element_0rssf9r5 = element_0rssf9r4.firstElementChild, element_0rssf9r6 = element_0rssf9r5.firstChild, element_0rssf9r7 = element_0rssf9r5.nextElementSibling, element_0rssf9r8 = element_0rssf9r7.nextElementSibling;
|
|
86
|
+
template_u1.setProperties(element_0rssf9r4, attributes);
|
|
87
|
+
template_u1.setProperty(element_0rssf9r5, 'aria-disabled', () => String(api.page <= 1));
|
|
88
|
+
template_u1.setList(element_0rssf9r5, 'class', () => api.page <= 1 ? '--disabled' : '');
|
|
89
|
+
template_u1.delegate(element_0rssf9r5, 'click', () => go(api.page - 1));
|
|
90
|
+
template_u1.slot(element_0rssf9r6, icon({ 'aria-hidden': 'true' }, previous));
|
|
91
|
+
element_0rssf9r7.appendChild(new template_u1.ArraySlot(render, function (cell) {
|
|
92
|
+
return (() => {
|
|
93
|
+
let root_0rssf9r9 = template_0rssf9ra(), element_0rssf9rb = root_0rssf9r9.firstChild;
|
|
94
|
+
template_u1.setProperty(element_0rssf9rb, 'aria-current', () => cell.value === api.page ? 'page' : 'false');
|
|
95
|
+
template_u1.setProperty(element_0rssf9rb, 'aria-hidden', () => String(cell.value === DOTS));
|
|
96
|
+
template_u1.setList(element_0rssf9rb, 'class', () => cell.value === DOTS ? 'pagination-page--dots' : cell.value === api.page ? '--active' : '');
|
|
97
|
+
template_u1.delegate(element_0rssf9rb, 'click', () => cell.value !== DOTS && go(cell.value));
|
|
98
|
+
template_u1.setProperty(element_0rssf9rb, 'tabindex', () => cell.value === DOTS ? -1 : 0);
|
|
99
|
+
new template_u1.EffectSlot(element_0rssf9rb, () => cell.value === DOTS ? '...' : cell.value, 1);
|
|
100
|
+
return root_0rssf9r9;
|
|
101
|
+
})();
|
|
102
|
+
}, true).fragment);
|
|
103
|
+
template_u1.setProperty(element_0rssf9r8, 'aria-disabled', () => String(api.page >= total));
|
|
104
|
+
template_u1.setList(element_0rssf9r8, 'class', () => api.page >= total ? '--disabled' : '');
|
|
105
|
+
template_u1.delegate(element_0rssf9r8, 'click', () => go(api.page + 1));
|
|
106
|
+
template_u1.slot(element_0rssf9r8, icon({ 'aria-hidden': 'true' }, next), 2);
|
|
107
|
+
return root_0rssf9r2;
|
|
108
|
+
})();
|
|
109
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.button-fan{align-items:center;display:inline-flex;position:relative}.button-fan.--active{z-index:9}.button-fan.--active>.button-fan-options>.button-fan-option{--delay:calc(var(--i) * var(--stagger));opacity:1;pointer-events:auto;translate:0;scale:1}.button-fan.--active>.button-fan-options>.button-fan-option:active{scale:var(--option-pressed-scale)}.button-fan.--active>.button--fan .button-fan-swap>:first-child{opacity:0;rotate:var(--swap-rotate)}.button-fan.--active>.button--fan .button-fan-swap>:last-child{opacity:1;rotate:0deg}.button-fan-options{align-items:center;gap:var(--spacer);pointer-events:none;z-index:0;display:flex;position:absolute}.button-fan-swap{place-items:center;display:inline-grid}.button-fan-swap>*{transition:opacity var(--swap-spring-duration) var(--swap-spring), rotate var(--swap-spring-duration) var(--swap-spring);grid-area:1/1}.button-fan-swap>:last-child{opacity:0;rotate:calc(var(--swap-rotate) * -1)}.button-fan>.button-fan-options>.button-fan-option{--delay:calc((var(--n) - 1 - var(--i)) * var(--stagger));opacity:0;scale:var(--option-scale);transform-origin:var(--origin);transition:opacity var(--option-opacity-duration) ease-out var(--delay), scale var(--option-spring-duration) var(--option-spring) var(--delay), translate var(--option-spring-duration) var(--option-spring) var(--delay);translate:calc((100% + var(--spacer)) * (var(--i) + 1) * var(--direction-x)) calc((100% + var(--spacer)) * (var(--i) + 1) * var(--direction-y))}.button-fan>.button-fan-options>.button-fan-option:focus-visible,.button-fan>.button--fan:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.button-fan--e>.button-fan-options{padding-left:var(--spacer);flex-direction:row;inset:0 auto 0 100%}.button-fan--n>.button-fan-options{padding-bottom:var(--spacer);flex-direction:column-reverse;inset:auto 0 100%}.button-fan--s>.button-fan-options{padding-top:var(--spacer);flex-direction:column;inset:100% 0 auto}.button-fan--w>.button-fan-options{padding-right:var(--spacer);flex-direction:row-reverse;inset:0 100% 0 auto}@media (prefers-reduced-motion:reduce){.button-fan{--swap-rotate:0deg}.button-fan>.button-fan-options>.button-fan-option{transition:opacity .15s ease-out;translate:none;scale:1}.button-fan .button-fan-swap>*{transition:opacity .15s ease-out}}.button-kbd{align-items:center;gap:var(--gap);display:inline-flex}.button-kbd .button-kbd-plus{--size:var(--plus-size);color:var(--plus-color)}.button{--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-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--box-shadow:var(--box-shadow-default);--box-shadow-default:none}.button.--active{--background:var(--background-active);--border-color:var(--border-color-active);--color:var(--color-active)}.button:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--color:var(--color-hover)}.button:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--color:var(--color-pressed)}.button--feedback{--draw-duration:.26s;--draw-timing-function:cubic-bezier(.23, 1, .32, 1);--error-color:var(--color-red-400);--face-blur:3px;--face-duration:.4s;--face-gap:.375em;--face-offset:3px;--face-timing-function:cubic-bezier(.23, 1, .32, 1);--icon-size:.875em;--spin-duration:.85s;--success-color:var(--color-green-500)}.button--hold{--fill-background:var(--color);--fill-color:var(--background)}.button--kbd{--box-shadow-default:0 var(--kbd-depth) 0 var(--kbd-shadow-color);--kbd-depth:2px;--kbd-shadow-color:color-mix(in srgb, var(--background-default) 60%, black)}.button--kbd.--active,.button--kbd:not(.--active):active{--background:var(--background-active);--box-shadow:0 calc(var(--kbd-depth) - 1px) 0 var(--kbd-shadow-color)}.button--processing{--animation-duration:.64s;--border-width:var(--border-width-400);--processing-color:var(--color);--size:var(--size-400)}.button--skeleton{--animation-duration:6.4s}.button-fan{--focus-color:currentColor;--focus-offset:2px;--focus-width:2px;--option-opacity-duration:.2s;--option-pressed-scale:.92;--option-scale:.5;--option-spring:linear(0, .067, .221, .406, .586, .741, .862, .949, 1.006, 1.037, 1.051, 1.053, 1.047, 1.038, 1.028, 1.019, 1.011, 1.006, 1.002, .999, .998, .997, .997, .998, 1);--option-spring-duration:.6s;--spacer:var(--size-300);--stagger:30ms;--swap-rotate:90deg;--swap-spring:linear(0, .07, .228, .418, .602, .759, .88, .965, 1.019, 1.047, 1.058, 1.056, 1.048, 1.038, 1.027, 1.017, 1.009, 1.003, 1, .998, .997, .997, .997, .998, 1);--swap-spring-duration:.44s;--trigger-pressed-scale:.94}.button-fan--e{--direction-x:-1;--direction-y:0;--origin:left center}.button-fan--n{--direction-x:0;--direction-y:1;--origin:center bottom}.button-fan--s{--direction-x:0;--direction-y:-1;--origin:center top}.button-fan--w{--direction-x:1;--direction-y:0;--origin:right center}.button-kbd{--gap:var(--size-200);--plus-color:color-mix(in srgb, currentColor 60%, transparent);--plus-size:var(--size-300)}.text,.button{--border-width:0px;--color:var(--color-default,inherit);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--width:auto;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);gap:var(--gap-vertical) var(--gap-horizontal);transition:color var(--transition-duration) var(--transition-timing-function);width:var(--width);display:flex;position:relative}.text.--text-truncate,.--text-truncate.button{display:block}.button{background:var(--background);border-radius:var(--border-radius);cursor:pointer;padding-block:max(0px, var(--padding-vertical) - var(--border-width));padding-inline:max(0px, var(--padding-horizontal) - var(--border-width));transition:all var(--transition-duration) var(--transition-timing-function);white-space:nowrap;flex-wrap:nowrap;place-content:center;align-items:center;translate:0}.button:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function);z-index:-1;position:absolute;inset:0}.button--fan{z-index:1}.button--fan:not(.--active):active{scale:var(--trigger-pressed-scale)}.button--feedback{-webkit-touch-callout:none;touch-action:manipulation;-webkit-user-select:none;user-select:none}.button--flat:after{display:none}.button--hold{isolation:isolate;overflow:hidden}.button--kbd.--active,.button--kbd:not(.--active):active{translate:0 1px}.button--processing{color:#0000;pointer-events:none}.button--processing:before{animation:button--processing var(--animation-duration) infinite linear;border:var(--border-width) solid color-mix(in srgb, var(--processing-color), transparent 90%);border-left-color:var(--processing-color);content:"";height:var(--size);width:var(--size);border-top-color:#0000;border-right-color:#0000;border-radius:100%;position:absolute;bottom:50%;right:50%;translate:50% 50%}.button--processing *{opacity:0}@keyframes button--processing{0%{rotate:0deg}to{rotate:360deg}}.button--skeleton{animation:var(--animation-duration) var(--transition-timing-function) infinite button--skeleton;background-image:linear-gradient(270deg, var(--background-pressed), var(--background-default), var(--background-default), var(--background-pressed));color:#0000;pointer-events:none;background-size:400% 100%}.button--skeleton *{opacity:0}@keyframes button--skeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.button--tactile:not(.--active):active{translate:0 1px}.button--top-left,.button--top-right{top:calc((var(--padding-vertical) + .5lh) * -1);position:absolute}.button--top-left{left:calc((var(--padding-horizontal) + .5lh) * -1)}.button--top-right{right:calc((var(--padding-horizontal) + .5lh) * -1)}.button--underline.--active,.button--underline:not(.--active):hover{text-decoration:underline}.button-face{filter:blur(var(--face-blur));align-items:center;gap:var(--face-gap);opacity:0;transition:filter var(--face-duration) var(--face-timing-function), opacity var(--face-duration) var(--face-timing-function), translate var(--face-duration) var(--face-timing-function);translate:0 var(--face-offset);grid-area:1/1;display:inline-flex}.button-face.--active{filter:blur();opacity:1;translate:0}.button-face.--active .button-icon--draw path{stroke-dashoffset:0}.button-face[data-tone=error] .button-icon{color:var(--error-color)}.button-face[data-tone=success] .button-icon{color:var(--success-color)}.button-faces{place-items:center;display:grid}.button-fill{background:var(--fill-background);border-radius:inherit;clip-path:inset(0 100% 0 0);color:var(--fill-color);pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.button-icon{height:var(--icon-size);width:var(--icon-size);flex-shrink:0}.button-icon--draw path{stroke-dasharray:1;stroke-dashoffset:1px;transition:stroke-dashoffset var(--draw-duration) var(--draw-timing-function)}.button-icon--spin{animation:button--processing var(--spin-duration) infinite linear}.button-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.button--skeleton,.button-icon--spin{animation:none}.button-face,.button-icon--draw path{transition:none}}.pagination{--gap:var(--size-300);--size:32px}.pagination-control,.pagination-page{--background-hover:var(--color-grey-400);--background-pressed:var(--color-grey-500);--border-color-default:var(--color-border-300);--border-radius:var(--border-radius-400);--border-width:var(--border-width-400);--color-default:var(--color-text-300);--color-hover:var(--color-text-500);--font-size:var(--font-size-300);--font-weight:var(--font-weight-500);--padding-horizontal:var(--size-300);--padding-vertical:0px;--width:auto}.pagination-control{--background-default:var(--color-white-300);--box-shadow-default:var(--box-shadow-100);--color-default:var(--color-text-500)}.pagination-page{--background-active:var(--color-white-300);--border-color-active:var(--color-border-300);--border-color-default:transparent;--color-active:var(--color-text-500);--padding-horizontal:0px}.pagination-page--dots{--background-hover:transparent;--background-pressed:transparent;--color-hover:var(--color-default)}.pagination{align-items:center;gap:var(--gap);justify-content:space-between;width:100%;display:flex}.pagination-control,.pagination-page{border:var(--border-width) solid var(--border-color);height:var(--size)}.pagination-control{gap:var(--size-100)}.pagination-control .icon{--size:var(--size-400)}.pagination-page{font-variant:tabular-nums;min-width:var(--size)}.pagination-page.--active{--box-shadow:var(--box-shadow-100)}.pagination-page--dots{cursor:default;pointer-events:none}.pagination-pages{align-items:center;gap:var(--size-100);display:flex}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m10 4-4 4 4 4M6 8h8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m6 4 4 4-4 4M2 8h8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import input from '../input/index.js';
|
|
3
|
+
import { PASSWORD_INPUT } from './constants.js';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
type A = Attributes & {
|
|
6
|
+
[PASSWORD_INPUT]?: Omit<Parameters<typeof input>[0], 'state'>;
|
|
7
|
+
};
|
|
8
|
+
type State = {
|
|
9
|
+
active: boolean;
|
|
10
|
+
capslock: boolean;
|
|
11
|
+
error: string;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare function template(this: {
|
|
15
|
+
attributes?: A;
|
|
16
|
+
} | void, { state, ...attributes }?: A & {
|
|
17
|
+
state?: State;
|
|
18
|
+
}): DocumentFragment | Text;
|
|
19
|
+
declare const _default: typeof template & {
|
|
20
|
+
readonly input: typeof PASSWORD_INPUT;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|