@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,30 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
const template_0r0k9fw1 = template_u1.template(`<div class='usage-meter'><div class='usage-meter-header'><span class='usage-meter-label'></span><span class='usage-meter-count'><!--$--><span class='usage-meter-percent'></span></span></div><div aria-valuemin='0' class='usage-meter-track' role='meter'><span class='usage-meter-fill'></span></div><div class='usage-meter-footer'><span class='usage-meter-breakdown'>`);
|
|
5
|
+
const template_0r0k9fwa = template_u1.template(`<span class='usage-meter-cost'>`);
|
|
6
|
+
function format(count) {
|
|
7
|
+
return count < 1000 ? `${count}` : `${(count / 1000).toFixed(1)}k`;
|
|
8
|
+
}
|
|
9
|
+
export default component(function ({ label = 'Context window', usage, ...attributes }) {
|
|
10
|
+
let ratio = () => Math.min(1, (usage.prompt + usage.completion) / usage.context);
|
|
11
|
+
return (() => {
|
|
12
|
+
let root_0r0k9fw0 = template_0r0k9fw1(), element_0r0k9fw2 = root_0r0k9fw0.firstChild, element_0r0k9fw3 = element_0r0k9fw2.firstElementChild.firstElementChild, element_0r0k9fw4 = element_0r0k9fw3.nextElementSibling.firstChild, element_0r0k9fw5 = element_0r0k9fw3.nextElementSibling.firstElementChild, element_0r0k9fw6 = element_0r0k9fw2.firstElementChild.nextElementSibling, element_0r0k9fw7 = element_0r0k9fw6.nextElementSibling.firstElementChild, element_0r0k9fw8 = element_0r0k9fw6.nextElementSibling;
|
|
13
|
+
template_u1.setProperty(element_0r0k9fw2, 'data-level', () => ratio() > 0.9 ? 'critical' : ratio() > 0.75 ? 'warning' : 'normal');
|
|
14
|
+
template_u1.setList(element_0r0k9fw2, 'style', () => `--ratio: ${ratio()}`);
|
|
15
|
+
template_u1.setProperties(element_0r0k9fw2, attributes);
|
|
16
|
+
template_u1.slot(element_0r0k9fw3, label, 1);
|
|
17
|
+
new template_u1.EffectSlot(element_0r0k9fw4, () => `${format(usage.prompt + usage.completion)} / ${format(usage.context)}`);
|
|
18
|
+
new template_u1.EffectSlot(element_0r0k9fw5, () => ` · ${Math.round(ratio() * 100)}%`, 1);
|
|
19
|
+
template_u1.setProperty(element_0r0k9fw6, 'aria-label', label);
|
|
20
|
+
template_u1.setProperty(element_0r0k9fw6, 'aria-valuemax', () => usage.context);
|
|
21
|
+
template_u1.setProperty(element_0r0k9fw6, 'aria-valuenow', () => usage.prompt + usage.completion);
|
|
22
|
+
new template_u1.EffectSlot(element_0r0k9fw7, () => `prompt ${format(usage.prompt)} · completion ${format(usage.completion)}`, 1);
|
|
23
|
+
new template_u1.EffectSlot(element_0r0k9fw8, () => usage.cost !== undefined && (() => {
|
|
24
|
+
let root_0r0k9fw9 = template_0r0k9fwa(), element_0r0k9fwb = root_0r0k9fw9.firstChild;
|
|
25
|
+
element_0r0k9fwb.appendChild(template_u1.text(`$${usage.cost.toFixed(4)}`));
|
|
26
|
+
return root_0r0k9fw9;
|
|
27
|
+
})(), 2);
|
|
28
|
+
return root_0r0k9fw0;
|
|
29
|
+
})();
|
|
30
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.usage-meter{--fill:var(--fill-normal);--fill-critical:color-mix(in oklch, var(--color-red-400) 80%, transparent);--fill-normal:var(--color-text-500);--fill-warning:color-mix(in oklch, var(--color-yellow-500) 80%, transparent);--font-family-mono:"Geist Mono", ui-monospace, monospace;--gap:var(--size-200);--label-color:var(--color-text-500);--label-font-size:var(--font-size-200);--label-font-weight:var(--font-weight-500);--max-width:380px;--meta-color:var(--color-text-300);--meta-color-muted:var(--color-border-500);--meta-font-size:var(--font-size-100);--track-background:color-mix(in oklch, var(--color-text-500) 6%, transparent);--track-height:6px;--track-width:100%;--transition-duration:.5s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.usage-meter--inline{--gap:var(--size-300);--max-width:none;--track-background:color-mix(in oklch, var(--color-text-500) 7%, transparent);--track-height:4px;--track-width:64px}.usage-meter[data-level=critical]{--fill:var(--fill-critical)}.usage-meter[data-level=warning]{--fill:var(--fill-warning)}@media (prefers-reduced-motion:reduce){.usage-meter{--transition-duration:0s}}.usage-meter{gap:var(--gap);max-width:var(--max-width);flex-direction:column;width:100%;display:flex}.usage-meter-breakdown,.usage-meter-cost,.usage-meter-count{font-family:var(--font-family-mono);font-variant-numeric:tabular-nums}.usage-meter-cost:before{content:"≈ "}.usage-meter-count{color:var(--meta-color);font-size:var(--meta-font-size)}.usage-meter-fill{background:var(--fill);border-radius:inherit;height:100%;transition:background-color var(--transition-duration) var(--transition-timing-function), width var(--transition-duration) var(--transition-timing-function);width:calc(var(--ratio) * 100%);display:block}.usage-meter-footer{color:var(--meta-color-muted);font-size:var(--meta-font-size);justify-content:space-between;align-items:center;display:flex}.usage-meter-header{align-items:baseline;gap:var(--size-300);justify-content:space-between;display:flex}.usage-meter-label{color:var(--label-color);font-size:var(--label-font-size);font-weight:var(--label-font-weight)}.usage-meter-track{background:var(--track-background);height:var(--track-height);width:var(--track-width);border-radius:999px;flex:none;overflow:hidden}.usage-meter--inline{flex-direction:row;align-items:center;width:fit-content}.usage-meter--inline .usage-meter-breakdown,.usage-meter--inline .usage-meter-label,.usage-meter--inline .usage-meter-percent{display:none}.usage-meter--inline .usage-meter-cost:before{content:none}.usage-meter--inline .usage-meter-footer,.usage-meter--inline .usage-meter-header{display:contents}.usage-meter--inline .usage-meter-track{order:-1}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
export default _default;
|
|
4
|
+
declare function _default({ announceAfter, format, hold, label, state: api, ...attributes }: Attributes & {
|
|
5
|
+
announceAfter?: number;
|
|
6
|
+
format?: (value: number) => string;
|
|
7
|
+
hold?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
state: {
|
|
10
|
+
value: number;
|
|
11
|
+
};
|
|
12
|
+
}): DocumentFragment | Text;
|
|
@@ -0,0 +1,106 @@
|
|
|
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 './scss/index.scss';
|
|
5
|
+
const template_0fbj40f2 = template_u1.template(`<span class='value-flash'><span aria-hidden='true' class='value-flash-tint'></span><span aria-hidden='true' class='value-flash-value'></span><span aria-hidden='true' class='value-flash-arrow'><svg fill='currentColor' viewBox='0 0 256 256'><path d='M128 68 L210 180 H46 Z' /></svg></span><span aria-live='polite' class='value-flash-announcement'>`);
|
|
6
|
+
const template_0fbj40f7 = template_u1.template(`<span>`);
|
|
7
|
+
class ReactiveObject_0fbj40f0 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#changes = this[reactivity_u0.SIGNAL](0);
|
|
9
|
+
#direction;
|
|
10
|
+
#flashing = this[reactivity_u0.SIGNAL](false);
|
|
11
|
+
#settled;
|
|
12
|
+
constructor(_p0, _p1) {
|
|
13
|
+
super(null);
|
|
14
|
+
this.#direction = this[reactivity_u0.SIGNAL](_p0);
|
|
15
|
+
this.#settled = this[reactivity_u0.SIGNAL](_p1);
|
|
16
|
+
}
|
|
17
|
+
get changes() {
|
|
18
|
+
return reactivity_u0.read(this.#changes);
|
|
19
|
+
}
|
|
20
|
+
set changes(_v0) {
|
|
21
|
+
reactivity_u0.write(this.#changes, _v0);
|
|
22
|
+
}
|
|
23
|
+
get direction() {
|
|
24
|
+
return reactivity_u0.read(this.#direction);
|
|
25
|
+
}
|
|
26
|
+
set direction(_v1) {
|
|
27
|
+
reactivity_u0.write(this.#direction, _v1);
|
|
28
|
+
}
|
|
29
|
+
get flashing() {
|
|
30
|
+
return reactivity_u0.read(this.#flashing);
|
|
31
|
+
}
|
|
32
|
+
set flashing(_v2) {
|
|
33
|
+
reactivity_u0.write(this.#flashing, _v2);
|
|
34
|
+
}
|
|
35
|
+
get settled() {
|
|
36
|
+
return reactivity_u0.read(this.#settled);
|
|
37
|
+
}
|
|
38
|
+
set settled(_v3) {
|
|
39
|
+
reactivity_u0.write(this.#settled, _v3);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default ({ announceAfter = 700, format = String, hold = 900, label, state: api, ...attributes }) => {
|
|
43
|
+
let announcer, holder, previous = api.value, render = new reactivity_u0.ReactiveArray(), state = new ReactiveObject_0fbj40f0('', format(previous)), stop = effect(() => {
|
|
44
|
+
let value = api.value;
|
|
45
|
+
untrack(() => {
|
|
46
|
+
let prior = previous, text = format(value);
|
|
47
|
+
previous = value;
|
|
48
|
+
clearTimeout(announcer);
|
|
49
|
+
announcer = setTimeout(() => state.settled = text, announceAfter);
|
|
50
|
+
if (render.$length === 0) {
|
|
51
|
+
render.push(reactivity_u0.reactive({ direction: '', leaving: false, text }));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let delta = value - prior;
|
|
55
|
+
if (!delta) {
|
|
56
|
+
if (render[render.$length - 1].text !== text) {
|
|
57
|
+
render[render.$length - 1].text = text;
|
|
58
|
+
}
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
let direction = delta > 0 ? 'up' : 'down';
|
|
62
|
+
for (let i = 0, n = render.$length; i < n; i++) {
|
|
63
|
+
render[i].direction = direction;
|
|
64
|
+
render[i].leaving = true;
|
|
65
|
+
}
|
|
66
|
+
render.push(reactivity_u0.reactive({ direction, leaving: false, text }));
|
|
67
|
+
state.changes++;
|
|
68
|
+
state.direction = direction;
|
|
69
|
+
state.flashing = true;
|
|
70
|
+
clearTimeout(holder);
|
|
71
|
+
holder = setTimeout(() => state.flashing = false, hold);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
function remove(entry) {
|
|
75
|
+
let index = render.indexOf(entry);
|
|
76
|
+
if (index !== -1) {
|
|
77
|
+
render.splice(index, 1);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
onCleanup(() => {
|
|
81
|
+
clearTimeout(announcer);
|
|
82
|
+
clearTimeout(holder);
|
|
83
|
+
stop();
|
|
84
|
+
});
|
|
85
|
+
return (() => {
|
|
86
|
+
let root_0fbj40f1 = template_0fbj40f2(), element_0fbj40f3 = root_0fbj40f1.firstChild, element_0fbj40f4 = element_0fbj40f3.firstElementChild.nextElementSibling, element_0fbj40f5 = element_0fbj40f4.nextElementSibling.nextElementSibling;
|
|
87
|
+
template_u1.setProperties(element_0fbj40f3, attributes);
|
|
88
|
+
template_u1.setProperty(element_0fbj40f3, 'data-direction', () => state.direction);
|
|
89
|
+
template_u1.setProperty(element_0fbj40f3, 'data-flash', () => state.flashing ? (state.changes % 2 ? 'odd' : 'even') : state.changes ? 'off' : '');
|
|
90
|
+
element_0fbj40f4.appendChild(new template_u1.ArraySlot(render, function (entry) {
|
|
91
|
+
return (() => {
|
|
92
|
+
let root_0fbj40f6 = template_0fbj40f7(), element_0fbj40f8 = root_0fbj40f6.firstChild;
|
|
93
|
+
template_u1.setList(element_0fbj40f8, 'class', () => `value-flash-text${entry.direction ? ` value-flash-text--${entry.direction}` : ''}${entry.leaving ? ' value-flash-text--leaving' : ''}`);
|
|
94
|
+
template_u1.delegate(element_0fbj40f8, 'animationend', () => {
|
|
95
|
+
if (entry.leaving) {
|
|
96
|
+
remove(entry);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
new template_u1.EffectSlot(element_0fbj40f8, () => entry.text, 1);
|
|
100
|
+
return root_0fbj40f6;
|
|
101
|
+
})();
|
|
102
|
+
}, true).fragment);
|
|
103
|
+
new template_u1.EffectSlot(element_0fbj40f5, () => label ? `${label}: ${state.settled}` : state.settled, 1);
|
|
104
|
+
return root_0fbj40f1;
|
|
105
|
+
})();
|
|
106
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.value-flash{--arrow-offset:.3em;--arrow-size:.68em;--border-radius:var(--border-radius-300);--cell:linear(0, .092, .262, .426, .567, .679, .764, .827, .874, .908, .933, .951, .964, .974, .981, .986, .99, .993, .995, .996, .997, .998, .999, .999, 1);--cell-duration:.36s;--clear:cubic-bezier(.4, 0, 1, 1);--clear-duration:.16s;--color-down:var(--color-red-500);--color-up:oklch(from var(--color-green-500) .6 c h);--drop-blur:4px;--drop-duration:.14s;--drop-offset:.7em;--font-size:var(--font-size-300);--font-weight:var(--font-weight-500);--gap:6px;--lift:linear(0, .06, .193, .351, .506, .644, .758, .845, .909, .954, .983, 1.001, 1.011, 1.015, 1.015, 1.014, 1.012, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001, 1.001, 1);--lift-duration:.39s;--lift-scale:1.05;--padding:3px 6px;--pop:linear(0, .136, .423, .722, .953, 1.092, 1.145, 1.138, 1.1, 1.055, 1.017, .992, .98, .979, .983, .99, .996, 1, 1.003, 1.003, 1.003, 1.002, 1.001, 1, 1);--pop-duration:.46s;--roll:linear(0, .065, .201, .348, .487, .606, .703, .779, .837, .881, .913, .937, .955, .968, .977, .984, .988, .992, .994, .996, .997, .998, .999, .999, 1);--roll-blur:5px;--roll-duration:.34s;--roll-offset:.85em;--settle:linear(0, .086, .242, .399, .533, .641, .725, .79, .84, .879, .908, .93, .947, .96, .969, .977, .982, .987, .99, .992, .994, .995, .997, .997, 1);--settle-duration:.66s;--tint-opacity:14%;--tone-duration:.2s}@media (prefers-reduced-motion:reduce){.value-flash{--arrow-offset:0em;--cell-duration:1ms;--clear-duration:1ms;--drop-blur:0px;--drop-duration:1ms;--drop-offset:0em;--lift-scale:1;--pop-duration:1ms;--roll-blur:0px;--roll-duration:1ms;--roll-offset:0em}}.value-flash{border-radius:var(--border-radius);font-size:var(--font-size);font-variant-numeric:tabular-nums;font-weight:var(--font-weight);align-items:center;gap:var(--gap);padding:var(--padding);transition:color var(--tone-duration) var(--transition-timing-function), scale var(--settle-duration) var(--settle);grid-auto-flow:column;display:inline-grid;position:relative}.value-flash[data-direction=down]{--tone:var(--color-down)}.value-flash[data-direction=up]{--tone:var(--color-up)}.value-flash:is([data-flash=even],[data-flash=odd]){color:var(--tone);scale:var(--lift-scale);transition:color var(--tone-duration) var(--transition-timing-function), scale var(--lift-duration) var(--lift)}.value-flash:is([data-flash=even],[data-flash=odd]) .value-flash-tint{opacity:1;transition:opacity var(--cell-duration) var(--cell)}.value-flash[data-flash=even] .value-flash-arrow svg{animation-name:value-flash-pop-2}.value-flash[data-flash=odd] .value-flash-arrow svg{animation-name:value-flash-pop-1}.value-flash[data-flash=off] .value-flash-arrow svg{animation:value-flash-clear var(--clear-duration) var(--clear) both}.value-flash-announcement{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.value-flash-arrow{place-items:center;width:1em;height:1em;display:grid;position:relative}.value-flash-arrow svg{--from:var(--arrow-offset);animation:none var(--pop-duration) var(--pop) both;height:var(--arrow-size);opacity:0;width:var(--arrow-size);display:block}.value-flash[data-direction=down] .value-flash-arrow svg{--from:calc(var(--arrow-offset) * -1);rotate:180deg}.value-flash-text{grid-area:1/1}.value-flash-text--down,.value-flash-text--up{animation:value-flash-roll var(--roll-duration) var(--roll) both}.value-flash-text--down{--from:calc(var(--roll-offset) * -1);--to:var(--drop-offset)}.value-flash-text--up{--from:var(--roll-offset);--to:calc(var(--drop-offset) * -1)}.value-flash-text--leaving{animation:value-flash-drop var(--drop-duration) var(--clear) both;position:absolute;inset-inline-start:0}.value-flash-tint{background:color-mix(in oklch, var(--tone,transparent) var(--tint-opacity), transparent);border-radius:inherit;opacity:0;pointer-events:none;transition:opacity var(--clear-duration) var(--clear);position:absolute;inset:0}.value-flash-value{display:inline-grid;position:relative;overflow:hidden}@keyframes value-flash-clear{0%{opacity:1;scale:1}to{opacity:0;scale:.8}}@keyframes value-flash-drop{0%{filter:blur();opacity:1;translate:0}to{filter:blur(var(--drop-blur));opacity:0;translate:0 var(--to,0)}}@keyframes value-flash-pop-1{0%{opacity:0;scale:.4;translate:0 var(--from)}to{opacity:1;translate:0;scale:1}}@keyframes value-flash-pop-2{0%{opacity:0;scale:.4;translate:0 var(--from)}to{opacity:1;translate:0;scale:1}}@keyframes value-flash-roll{0%{filter:blur(var(--roll-blur));opacity:0;translate:0 var(--from)}to{filter:blur();opacity:1;translate:0}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import input from '../input/index.js';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
type A = Attributes & {
|
|
5
|
+
[WAITLIST_JOIN_INPUT]?: Parameters<typeof input>[0];
|
|
6
|
+
linkBase?: string;
|
|
7
|
+
onjoin?: (email: string) => void;
|
|
8
|
+
product?: string;
|
|
9
|
+
queue: QueuePerson[];
|
|
10
|
+
skip?: number;
|
|
11
|
+
state?: State;
|
|
12
|
+
waiting: number;
|
|
13
|
+
};
|
|
14
|
+
type QueuePerson = {
|
|
15
|
+
avatar?: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
type State = {
|
|
20
|
+
bumped: boolean;
|
|
21
|
+
copied: boolean;
|
|
22
|
+
email: string;
|
|
23
|
+
status: 'idle' | 'joined' | 'joining';
|
|
24
|
+
touched: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const WAITLIST_JOIN_INPUT: unique symbol;
|
|
27
|
+
declare function template(this: {
|
|
28
|
+
attributes?: Partial<A>;
|
|
29
|
+
} | void, { linkBase, onjoin, product, queue, skip, state, waiting, ...attributes }: A): DocumentFragment | Text;
|
|
30
|
+
declare const _default: typeof template & {
|
|
31
|
+
readonly input: typeof WAITLIST_JOIN_INPUT;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
34
|
+
export type { QueuePerson, State };
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect, untrack } from '@esportsplus/reactivity';
|
|
4
|
+
import clipboard from '../clipboard/index.js';
|
|
5
|
+
import counter from '../counter/index.js';
|
|
6
|
+
import form from '../form/index.js';
|
|
7
|
+
import input from '../input/index.js';
|
|
8
|
+
import './scss/index.scss';
|
|
9
|
+
const template_1iptpxt4 = template_u1.template(`<img alt='' class='waitlist-join-face-image' draggable='false' height='36' width='36' />`);
|
|
10
|
+
const template_1iptpxt6 = template_u1.template(`<svg aria-hidden='true' class='waitlist-join-face-image' viewBox='0 0 36 36'><circle cx='18' cy='14.5' r='6.5' /><path d='M5 36c1.5-8 6.5-12 13-12s11.5 4 13 12Z' />`);
|
|
11
|
+
const template_1iptpxt8 = template_u1.template(`<section class='waitlist-join'><div class='waitlist-join-top'><p class='waitlist-join-product'><!--$--> · Private beta</p><button class='button waitlist-join-reset' type='button'> Not you? </button></div><h2 class='waitlist-join-title'><span class='waitlist-join-heading'>Join the waitlist</span><span class='waitlist-join-heading'><span aria-hidden='true' class='waitlist-join-spot'> You’re #</span><span class='waitlist-join-live'></span></span></h2><p class='waitlist-join-description'></p><div class='waitlist-join-queue'><ol class='waitlist-join-line'><!--$--><li aria-label='You' class='waitlist-join-person waitlist-join-person--me' hidden><span class='waitlist-join-me'></span><span aria-hidden='true' class='waitlist-join-badge'>You</span></li></ol></div><div class='waitlist-join-meta'><span class='waitlist-join-front'><svg aria-hidden='true' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><path d='M12.5 8h-9M7 4.5 3.5 8 7 11.5' /></svg> Front of the line </span><span class='waitlist-join-count'></span></div><div class='waitlist-join-slot'><!--$--><div class='waitlist-join-share'><span class='waitlist-join-link'></span><button class='button waitlist-join-copy' type='button'><span class='waitlist-join-icons' aria-hidden='true'><svg class='waitlist-join-icon waitlist-join-icon--copy' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' viewBox='0 0 16 16'><rect height='8' rx='1.5' width='8' x='5.5' y='5.5' /><path d='M10.5 3.5v-.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h.5' /></svg><svg class='waitlist-join-icon waitlist-join-icon--check' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' viewBox='0 0 16 16'><path d='m3.5 8.5 3 3 6-7' /></svg></span></button></div></div><p aria-live='polite' class='waitlist-join-note'>`);
|
|
12
|
+
const template_1iptpxts = template_u1.template(`<li class='waitlist-join-person'><span class='waitlist-join-face'>`);
|
|
13
|
+
const template_1iptpxtw = template_u1.template(`<!--$--><button class='button waitlist-join-submit' type='submit'><span>Join</span><span class='waitlist-join-live'>`);
|
|
14
|
+
class ReactiveObject_1iptpxt0 extends reactivity_u0.ReactiveObject {
|
|
15
|
+
#value;
|
|
16
|
+
constructor(_p0) {
|
|
17
|
+
super(null);
|
|
18
|
+
this.#value = this[reactivity_u0.SIGNAL](_p0);
|
|
19
|
+
}
|
|
20
|
+
get value() {
|
|
21
|
+
return reactivity_u0.read(this.#value);
|
|
22
|
+
}
|
|
23
|
+
set value(_v0) {
|
|
24
|
+
reactivity_u0.write(this.#value, _v0);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class ReactiveObject_1iptpxt1 extends reactivity_u0.ReactiveObject {
|
|
28
|
+
#bumped = this[reactivity_u0.SIGNAL](false);
|
|
29
|
+
#copied = this[reactivity_u0.SIGNAL](false);
|
|
30
|
+
#email = this[reactivity_u0.SIGNAL]('');
|
|
31
|
+
#status;
|
|
32
|
+
#touched = this[reactivity_u0.SIGNAL](false);
|
|
33
|
+
constructor(_p0) {
|
|
34
|
+
super(null);
|
|
35
|
+
this.#status = this[reactivity_u0.SIGNAL](_p0);
|
|
36
|
+
}
|
|
37
|
+
get bumped() {
|
|
38
|
+
return reactivity_u0.read(this.#bumped);
|
|
39
|
+
}
|
|
40
|
+
set bumped(_v0) {
|
|
41
|
+
reactivity_u0.write(this.#bumped, _v0);
|
|
42
|
+
}
|
|
43
|
+
get copied() {
|
|
44
|
+
return reactivity_u0.read(this.#copied);
|
|
45
|
+
}
|
|
46
|
+
set copied(_v1) {
|
|
47
|
+
reactivity_u0.write(this.#copied, _v1);
|
|
48
|
+
}
|
|
49
|
+
get email() {
|
|
50
|
+
return reactivity_u0.read(this.#email);
|
|
51
|
+
}
|
|
52
|
+
set email(_v2) {
|
|
53
|
+
reactivity_u0.write(this.#email, _v2);
|
|
54
|
+
}
|
|
55
|
+
get status() {
|
|
56
|
+
return reactivity_u0.read(this.#status);
|
|
57
|
+
}
|
|
58
|
+
set status(_v3) {
|
|
59
|
+
reactivity_u0.write(this.#status, _v3);
|
|
60
|
+
}
|
|
61
|
+
get touched() {
|
|
62
|
+
return reactivity_u0.read(this.#touched);
|
|
63
|
+
}
|
|
64
|
+
set touched(_v4) {
|
|
65
|
+
reactivity_u0.write(this.#touched, _v4);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
class ReactiveObject_1iptpxt2 extends reactivity_u0.ReactiveObject {
|
|
69
|
+
#round = this[reactivity_u0.SIGNAL](0);
|
|
70
|
+
constructor() {
|
|
71
|
+
super(null);
|
|
72
|
+
}
|
|
73
|
+
get round() {
|
|
74
|
+
return reactivity_u0.read(this.#round);
|
|
75
|
+
}
|
|
76
|
+
set round(_v0) {
|
|
77
|
+
reactivity_u0.write(this.#round, _v0);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const DROP = {
|
|
81
|
+
duration: 595,
|
|
82
|
+
easing: 'linear(0, 0.051, 0.165, 0.302, 0.452, 0.593, 0.717, 0.819, 0.896, 0.956, 0.997, 1.024, 1.038, 1.044, 1.044, 1.04, 1.035, 1.028, 1.022, 1.016, 1.011, 1.006, 1.003, 1.001, 1)'
|
|
83
|
+
};
|
|
84
|
+
const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
|
|
85
|
+
const JOIN_MS = 650;
|
|
86
|
+
const ME = 'me';
|
|
87
|
+
const REDUCED_MOTION = '(prefers-reduced-motion: reduce)';
|
|
88
|
+
const SHUFFLE = {
|
|
89
|
+
duration: 749,
|
|
90
|
+
easing: 'linear(0, 0.058, 0.181, 0.331, 0.474, 0.602, 0.71, 0.796, 0.863, 0.912, 0.947, 0.97, 0.987, 0.996, 1.002, 1.005, 1.006, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1.001, 1)'
|
|
91
|
+
};
|
|
92
|
+
const SLOTS = 9;
|
|
93
|
+
const WAITLIST_JOIN_INPUT = Symbol.for('@esportsplus/ui/waitlist-join.input');
|
|
94
|
+
function face(person) {
|
|
95
|
+
if (person.avatar) {
|
|
96
|
+
return (() => {
|
|
97
|
+
let root_1iptpxt3 = template_1iptpxt4(), element_1iptpxt5 = root_1iptpxt3.firstChild;
|
|
98
|
+
template_u1.setProperty(element_1iptpxt5, 'src', person.avatar);
|
|
99
|
+
return root_1iptpxt3;
|
|
100
|
+
})();
|
|
101
|
+
}
|
|
102
|
+
return template_1iptpxt6();
|
|
103
|
+
}
|
|
104
|
+
function format(value) {
|
|
105
|
+
return value.toLocaleString('en-US');
|
|
106
|
+
}
|
|
107
|
+
function problem(raw) {
|
|
108
|
+
let email = raw.trim();
|
|
109
|
+
if (!email) {
|
|
110
|
+
return 'Enter your email to join.';
|
|
111
|
+
}
|
|
112
|
+
if (/\s/.test(email)) {
|
|
113
|
+
return 'Emails cannot contain spaces.';
|
|
114
|
+
}
|
|
115
|
+
let at = email.lastIndexOf('@');
|
|
116
|
+
if (at === -1) {
|
|
117
|
+
return 'Add an @ and a domain, like sam@studio.com.';
|
|
118
|
+
}
|
|
119
|
+
if (at === 0) {
|
|
120
|
+
return 'Add your name before the @.';
|
|
121
|
+
}
|
|
122
|
+
let domain = email.slice(at + 1);
|
|
123
|
+
if (!domain) {
|
|
124
|
+
return 'Add the domain after the @, like gmail.com.';
|
|
125
|
+
}
|
|
126
|
+
if (!/\.[^.]{2,}$/.test(domain)) {
|
|
127
|
+
return `Finish the domain, like @${domain.replace(/\.+$/, '')}.com.`;
|
|
128
|
+
}
|
|
129
|
+
return '';
|
|
130
|
+
}
|
|
131
|
+
function referral(email, base) {
|
|
132
|
+
let hash = 0, local = email.split('@')[0].toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
133
|
+
for (let char of email) {
|
|
134
|
+
hash = (hash * 31 + char.charCodeAt(0)) >>> 0;
|
|
135
|
+
}
|
|
136
|
+
return `${base}/${local.slice(0, 12) || 'friend'}-${hash.toString(36).slice(0, 3)}`;
|
|
137
|
+
}
|
|
138
|
+
function swap(container, text) {
|
|
139
|
+
let current = container.querySelector(':scope > :not([data-exiting])');
|
|
140
|
+
if (current?.textContent === text) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
let next = document.createElement('span'), reduce = matchMedia(REDUCED_MOTION).matches;
|
|
144
|
+
next.className = 'waitlist-join-swap';
|
|
145
|
+
next.textContent = text;
|
|
146
|
+
container.append(next);
|
|
147
|
+
if (!current) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
let previous = current;
|
|
151
|
+
previous.dataset.exiting = '';
|
|
152
|
+
previous.animate(reduce ? { opacity: [1, 0] } : { filter: ['blur(0px)', 'blur(2px)'], opacity: [1, 0], translate: ['0 0', '0 -2px'] }, { duration: 120, easing: EASE_OUT, fill: 'forwards' }).onfinish = () => previous.remove();
|
|
153
|
+
next.animate(reduce ? { opacity: [0, 1] } : { filter: ['blur(4px)', 'blur(0px)'], opacity: [0, 1], translate: ['0 4px', '0 0'] }, { duration: 240, easing: EASE_OUT });
|
|
154
|
+
}
|
|
155
|
+
function template({ linkBase = 'parcel.so/i', onjoin, product = 'Parcel', queue, skip = 5, state, waiting, ...attributes }) {
|
|
156
|
+
let copyButton, defaults = this?.attributes, disposers = [], emailInput, hop = Math.min(skip, SLOTS - 2), id = `waitlist-join-${Math.random().toString(36).slice(2, 8)}`, people = new Map(), position = new ReactiveObject_1iptpxt0(waiting + 1), s = state || new ReactiveObject_1iptpxt1('idle'), strip, tail = queue.slice(-SLOTS), timers = [], ui = new ReactiveObject_1iptpxt2();
|
|
157
|
+
function arrange(animate) {
|
|
158
|
+
if (!strip) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
let before = new Map(), ids = line(), reduce = !animate || matchMedia(REDUCED_MOTION).matches;
|
|
162
|
+
for (let [, element] of people) {
|
|
163
|
+
if (!element.hidden && !element.hasAttribute('data-exiting')) {
|
|
164
|
+
before.set(element, element.getBoundingClientRect().left);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
for (let [key, element] of people) {
|
|
168
|
+
if (element.hidden || ids.includes(key) || element.hasAttribute('data-exiting')) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
if (reduce && !animate) {
|
|
172
|
+
element.hidden = true;
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
element.dataset.exiting = '';
|
|
176
|
+
element.style.left = `${element.offsetLeft}px`;
|
|
177
|
+
element.style.top = `${element.offsetTop}px`;
|
|
178
|
+
element.animate(reduce ? { opacity: [1, 0] } : { filter: ['blur(0px)', 'blur(2px)'], opacity: [1, 0], transform: ['none', 'translateX(-12px)'] }, { duration: 200, easing: EASE_OUT, fill: 'forwards' }).onfinish = function () {
|
|
179
|
+
delete element.dataset.exiting;
|
|
180
|
+
element.hidden = true;
|
|
181
|
+
element.style.left = '';
|
|
182
|
+
element.style.top = '';
|
|
183
|
+
this.cancel();
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
for (let i = 0, n = ids.length; i < n; i++) {
|
|
187
|
+
let element = people.get(ids[i]);
|
|
188
|
+
for (let animation of element.getAnimations()) {
|
|
189
|
+
animation.cancel();
|
|
190
|
+
}
|
|
191
|
+
delete element.dataset.exiting;
|
|
192
|
+
element.hidden = false;
|
|
193
|
+
element.style.left = '';
|
|
194
|
+
element.style.top = '';
|
|
195
|
+
strip.append(element);
|
|
196
|
+
}
|
|
197
|
+
if (!animate) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
for (let i = 0, n = ids.length; i < n; i++) {
|
|
201
|
+
let element = people.get(ids[i]), from = before.get(element);
|
|
202
|
+
if (from === undefined) {
|
|
203
|
+
element.animate(reduce ? { opacity: [0, 1] } : { filter: ['blur(4px)', 'blur(0px)'], opacity: [0, 1], transform: ['translateY(-20px)', 'none'] }, reduce ? { duration: 200, easing: EASE_OUT } : DROP);
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
let dx = from - element.getBoundingClientRect().left;
|
|
207
|
+
if (dx && !reduce) {
|
|
208
|
+
element.animate({ translate: [`${dx}px 0`, '0 0'] }, SHUFFLE);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function bump() {
|
|
213
|
+
if (s.bumped) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
s.bumped = true;
|
|
217
|
+
position.value = waiting + 1 - skip;
|
|
218
|
+
arrange(true);
|
|
219
|
+
if (!matchMedia(REDUCED_MOTION).matches) {
|
|
220
|
+
people.get(ME)?.animate({ transform: ['translateY(0)', 'translateY(-10px)', 'translateY(0)'] }, { duration: 450, easing: 'cubic-bezier(0.77, 0, 0.175, 1)' });
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function copy() {
|
|
224
|
+
void clipboard.write(`https://${link()}`);
|
|
225
|
+
s.copied = true;
|
|
226
|
+
bump();
|
|
227
|
+
timers.push(setTimeout(() => {
|
|
228
|
+
s.copied = false;
|
|
229
|
+
}, 1800));
|
|
230
|
+
}
|
|
231
|
+
function error() {
|
|
232
|
+
return s.touched ? problem(s.email) : '';
|
|
233
|
+
}
|
|
234
|
+
function join() {
|
|
235
|
+
s.touched = true;
|
|
236
|
+
if (problem(s.email) || s.status !== 'idle') {
|
|
237
|
+
emailInput?.focus();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
s.status = 'joining';
|
|
241
|
+
timers.push(setTimeout(() => {
|
|
242
|
+
position.value = waiting + 1;
|
|
243
|
+
s.status = 'joined';
|
|
244
|
+
ui.round++;
|
|
245
|
+
arrange(true);
|
|
246
|
+
onjoin?.(s.email.trim());
|
|
247
|
+
timers.push(setTimeout(() => copyButton?.focus(), 50));
|
|
248
|
+
}, JOIN_MS));
|
|
249
|
+
}
|
|
250
|
+
function line() {
|
|
251
|
+
if (s.status !== 'joined') {
|
|
252
|
+
return tail.map((person) => person.id);
|
|
253
|
+
}
|
|
254
|
+
let rest = queue.slice(-(SLOTS - 1)).map((person) => person.id);
|
|
255
|
+
rest.splice(rest.length - (s.bumped ? hop : 0), 0, ME);
|
|
256
|
+
return rest;
|
|
257
|
+
}
|
|
258
|
+
function link() {
|
|
259
|
+
return referral(s.email.trim(), linkBase);
|
|
260
|
+
}
|
|
261
|
+
function note() {
|
|
262
|
+
let message = error();
|
|
263
|
+
if (message) {
|
|
264
|
+
return message;
|
|
265
|
+
}
|
|
266
|
+
if (s.status !== 'joined') {
|
|
267
|
+
return 'One email when your invite is ready. Nothing else.';
|
|
268
|
+
}
|
|
269
|
+
return s.bumped
|
|
270
|
+
? `You jumped ${skip} spots. Every friend who joins moves you up again.`
|
|
271
|
+
: `Skip ahead by sharing: your link moves you up ${skip} spots.`;
|
|
272
|
+
}
|
|
273
|
+
function register(key) {
|
|
274
|
+
return (element) => {
|
|
275
|
+
people.set(key, element);
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
function reset() {
|
|
279
|
+
s.bumped = false;
|
|
280
|
+
s.copied = false;
|
|
281
|
+
s.email = '';
|
|
282
|
+
s.status = 'idle';
|
|
283
|
+
s.touched = false;
|
|
284
|
+
arrange(true);
|
|
285
|
+
timers.push(setTimeout(() => emailInput?.focus(), 50));
|
|
286
|
+
}
|
|
287
|
+
return (() => {
|
|
288
|
+
let root_1iptpxt7 = template_1iptpxt8(), element_1iptpxt9 = root_1iptpxt7.firstChild, element_1iptpxta = element_1iptpxt9.firstElementChild.firstElementChild.firstChild, element_1iptpxtb = element_1iptpxt9.firstElementChild.firstElementChild.nextElementSibling, element_1iptpxtc = element_1iptpxt9.firstElementChild.nextElementSibling, element_1iptpxtd = element_1iptpxtc.firstElementChild, element_1iptpxte = element_1iptpxtd.nextElementSibling, element_1iptpxtf = element_1iptpxte.firstElementChild, element_1iptpxtg = element_1iptpxtf.nextElementSibling, element_1iptpxth = element_1iptpxtc.nextElementSibling, element_1iptpxti = element_1iptpxth.nextElementSibling.firstElementChild, element_1iptpxtj = element_1iptpxti.firstChild, element_1iptpxtk = element_1iptpxti.firstElementChild, element_1iptpxtl = element_1iptpxtk.firstElementChild, element_1iptpxtm = element_1iptpxth.nextElementSibling.nextElementSibling.nextElementSibling.firstChild, element_1iptpxtn = element_1iptpxth.nextElementSibling.nextElementSibling.nextElementSibling.firstElementChild, element_1iptpxto = element_1iptpxtn.firstElementChild, element_1iptpxtp = element_1iptpxto.nextElementSibling, element_1iptpxtq = element_1iptpxth.nextElementSibling.nextElementSibling.nextElementSibling.nextElementSibling;
|
|
289
|
+
template_u1.setProperty(element_1iptpxt9, 'aria-labelledby', template_u1.interpolate([(id), "-title"]));
|
|
290
|
+
template_u1.setProperties(element_1iptpxt9, defaults);
|
|
291
|
+
template_u1.setProperties(element_1iptpxt9, attributes);
|
|
292
|
+
template_u1.setList(element_1iptpxt9, 'class', () => s.status === 'joined' && '--joined');
|
|
293
|
+
template_u1.onconnect(element_1iptpxt9, (element) => {
|
|
294
|
+
let count = element.querySelector('.waitlist-join-count'), hint = element.querySelector('.waitlist-join-note');
|
|
295
|
+
emailInput = element.querySelector('.waitlist-join-input') ?? undefined;
|
|
296
|
+
if (count) {
|
|
297
|
+
disposers.push(effect(() => swap(count, s.status === 'joined' ? `${format(position.value - 1)} ahead of you` : `${format(waiting)} waiting`)));
|
|
298
|
+
}
|
|
299
|
+
if (hint) {
|
|
300
|
+
disposers.push(effect(() => swap(hint, note())));
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
template_u1.ondisconnect(element_1iptpxt9, () => {
|
|
304
|
+
for (let i = 0, n = disposers.length; i < n; i++) {
|
|
305
|
+
disposers[i]();
|
|
306
|
+
}
|
|
307
|
+
for (let i = 0, n = timers.length; i < n; i++) {
|
|
308
|
+
clearTimeout(timers[i]);
|
|
309
|
+
}
|
|
310
|
+
disposers.length = 0;
|
|
311
|
+
timers.length = 0;
|
|
312
|
+
});
|
|
313
|
+
template_u1.slot(element_1iptpxta, product);
|
|
314
|
+
template_u1.setList(element_1iptpxtb, 'class', () => s.status === 'joined' && '--active');
|
|
315
|
+
template_u1.setProperty(element_1iptpxtb, 'inert', () => s.status !== 'joined');
|
|
316
|
+
template_u1.delegate(element_1iptpxtb, 'click', reset);
|
|
317
|
+
template_u1.setProperty(element_1iptpxtc, 'id', template_u1.interpolate([(id), "-title"]));
|
|
318
|
+
template_u1.setList(element_1iptpxtd, 'class', () => s.status !== 'joined' && '--active');
|
|
319
|
+
template_u1.setList(element_1iptpxte, 'class', () => s.status === 'joined' && '--active');
|
|
320
|
+
new template_u1.EffectSlot(element_1iptpxtf, () => ui.round > 0 && untrack(() => counter({
|
|
321
|
+
class: 'counter--ticker waitlist-join-roll',
|
|
322
|
+
currency: 'IGNORE',
|
|
323
|
+
decimals: 0,
|
|
324
|
+
delay: 16,
|
|
325
|
+
state: position,
|
|
326
|
+
value: position.value
|
|
327
|
+
})), 2);
|
|
328
|
+
new template_u1.EffectSlot(element_1iptpxtg, () => `You’re #${format(position.value)} in line`, 1);
|
|
329
|
+
new template_u1.EffectSlot(element_1iptpxth, () => s.status === 'joined'
|
|
330
|
+
? 'The next 200 people get in on Friday. You will hear from us the moment you do.'
|
|
331
|
+
: `${product} lets in 200 new people every Friday. Save your spot in line.`, 1);
|
|
332
|
+
template_u1.setProperty(element_1iptpxti, 'aria-label', () => s.status === 'joined' ? `Queue, you are number ${format(position.value)}` : `Queue, ${format(waiting)} people waiting`);
|
|
333
|
+
template_u1.onconnect(element_1iptpxti, (element) => {
|
|
334
|
+
strip = element;
|
|
335
|
+
arrange(false);
|
|
336
|
+
});
|
|
337
|
+
template_u1.slot(element_1iptpxtj, tail.map((person) => {
|
|
338
|
+
let root_1iptpxtr = template_1iptpxts(), element_1iptpxtt = root_1iptpxtr.firstChild, element_1iptpxtu = element_1iptpxtt.firstElementChild;
|
|
339
|
+
template_u1.setProperty(element_1iptpxtt, 'aria-label', person.name);
|
|
340
|
+
template_u1.onrender(element_1iptpxtt, register(person.id));
|
|
341
|
+
template_u1.setProperty(element_1iptpxtu, 'title', person.name);
|
|
342
|
+
template_u1.slot(element_1iptpxtu, face(person), 1);
|
|
343
|
+
return root_1iptpxtr;
|
|
344
|
+
}));
|
|
345
|
+
template_u1.onrender(element_1iptpxtk, register(ME));
|
|
346
|
+
new template_u1.EffectSlot(element_1iptpxtl, () => s.email.trim()[0]?.toUpperCase() ?? 'Y', 1);
|
|
347
|
+
template_u1.slot(element_1iptpxtm, form.action({
|
|
348
|
+
action: () => {
|
|
349
|
+
join();
|
|
350
|
+
return { errors: [] };
|
|
351
|
+
},
|
|
352
|
+
class: ['waitlist-join-form', () => s.status !== 'joined' && '--active'],
|
|
353
|
+
inert: () => s.status === 'joined',
|
|
354
|
+
novalidate: true
|
|
355
|
+
}, (() => {
|
|
356
|
+
let root_1iptpxtv = template_1iptpxtw(), element_1iptpxtx = root_1iptpxtv.firstChild, element_1iptpxty = element_1iptpxtx.nextSibling, element_1iptpxtz = element_1iptpxty.firstElementChild.nextElementSibling;
|
|
357
|
+
template_u1.slot(element_1iptpxtx, input({
|
|
358
|
+
'aria-describedby': `${id}-note`,
|
|
359
|
+
'aria-invalid': () => String(!!error()),
|
|
360
|
+
'aria-label': 'Email',
|
|
361
|
+
autocapitalize: 'none',
|
|
362
|
+
autocomplete: 'email',
|
|
363
|
+
class: ['waitlist-join-input', () => !!error() && '--error'],
|
|
364
|
+
disabled: () => s.status === 'joining',
|
|
365
|
+
inputmode: 'email',
|
|
366
|
+
name: 'email',
|
|
367
|
+
onblur: () => {
|
|
368
|
+
if (s.email.trim()) {
|
|
369
|
+
s.touched = true;
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
oninput: (e) => {
|
|
373
|
+
s.email = e.target.value;
|
|
374
|
+
},
|
|
375
|
+
placeholder: 'you@studio.com',
|
|
376
|
+
spellcheck: false,
|
|
377
|
+
type: 'email',
|
|
378
|
+
value: () => s.email,
|
|
379
|
+
...defaults?.[WAITLIST_JOIN_INPUT],
|
|
380
|
+
...attributes[WAITLIST_JOIN_INPUT]
|
|
381
|
+
}));
|
|
382
|
+
template_u1.setProperty(element_1iptpxty, 'aria-busy', () => s.status === 'joining' ? 'true' : 'false');
|
|
383
|
+
template_u1.setList(element_1iptpxty, 'class', () => s.status === 'joining' && 'button--processing');
|
|
384
|
+
new template_u1.EffectSlot(element_1iptpxtz, () => s.status === 'joining' ? 'Joining' : '', 1);
|
|
385
|
+
return root_1iptpxtv;
|
|
386
|
+
})()));
|
|
387
|
+
template_u1.setList(element_1iptpxtn, 'class', () => s.status === 'joined' && '--active');
|
|
388
|
+
template_u1.setProperty(element_1iptpxtn, 'inert', () => s.status !== 'joined');
|
|
389
|
+
new template_u1.EffectSlot(element_1iptpxto, link, 1);
|
|
390
|
+
template_u1.setProperty(element_1iptpxtp, 'aria-describedby', template_u1.interpolate([(id), "-note"]));
|
|
391
|
+
template_u1.setList(element_1iptpxtp, 'class', () => s.copied && '--copied');
|
|
392
|
+
template_u1.delegate(element_1iptpxtp, 'click', copy);
|
|
393
|
+
template_u1.onrender(element_1iptpxtp, (element) => {
|
|
394
|
+
copyButton = element;
|
|
395
|
+
});
|
|
396
|
+
new template_u1.EffectSlot(element_1iptpxtp, () => s.copied ? 'Copied' : 'Copy link', 2);
|
|
397
|
+
template_u1.setProperty(element_1iptpxtq, 'id', template_u1.interpolate([(id), "-note"]));
|
|
398
|
+
template_u1.setList(element_1iptpxtq, 'class', () => !!error() && '--error');
|
|
399
|
+
return root_1iptpxt7;
|
|
400
|
+
})();
|
|
401
|
+
}
|
|
402
|
+
export default Object.assign(template, { input: WAITLIST_JOIN_INPUT });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.waitlist-join{--accent:var(--color-text-500);--accent-contrast:var(--color-white-300);--background:var(--color-white-300);--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-danger:var(--color-red-500);--color-muted:var(--color-text-300);--ease:cubic-bezier(.23, 1, .32, 1);--face-background:oklch(97% 0 0);--face-ring:oklch(from var(--color-black-300) l c h / .1);--face-silhouette:oklch(84% 0 0);--face-size:36px;--focus-ring:oklch(from var(--color-text-500) l c h / .38);--font-size:calc(var(--font-size-400) * .875);--font-size-small:calc(var(--font-size-400) * .8125);--foreground:var(--color-text-500);--icon-duration:.446s;--icon-timing-function:linear(0, .118, .319, .509, .657, .769, .848, .901, .937, .96, .975, .984, .99, .994, 1);--radius:20px;--surface:var(--color-grey-400);--width:min(440px, 100%);background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);color:var(--foreground);font-size:var(--font-size);width:var(--width);padding:24px;display:block}.waitlist-join-badge{background:var(--background);box-shadow:0 1px 2px oklch(from var(--color-black-300) l c h/.15);color:var(--foreground);font-size:12px;font-weight:var(--font-weight-500);border-radius:999px;padding:0 6px;line-height:16px;position:absolute;bottom:-8px}.waitlist-join-copy{--background-default:var(--accent);--color-default:var(--accent-contrast);--padding-horizontal:12px;--padding-vertical:0px;font-size:var(--font-size-small);font-weight:var(--font-weight-500);border-radius:9px;flex-shrink:0;gap:6px;height:36px}.waitlist-join-copy,.waitlist-join-reset,.waitlist-join-submit{outline:0 solid var(--focus-ring);outline-offset:2px}.waitlist-join-copy:focus-visible,.waitlist-join-reset:focus-visible,.waitlist-join-submit:focus-visible{outline-width:2px}.waitlist-join-copy:active,.waitlist-join-reset:active,.waitlist-join-submit:active{scale:.96}.waitlist-join-count{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;display:block;position:relative}.waitlist-join-description{color:var(--color-muted);text-wrap:pretty;min-height:40px;margin-top:8px}.waitlist-join-face{background:var(--face-background);box-shadow:inset 0 0 0 1px var(--face-ring);height:var(--face-size);width:var(--face-size);border-radius:50%;justify-content:center;align-items:flex-end;display:flex;overflow:hidden}.waitlist-join-face-image{fill:var(--face-silhouette);width:100%;height:100%}.waitlist-join-form,.waitlist-join-share,.waitlist-join-heading,.waitlist-join-reset{filter:blur(2px);opacity:0;pointer-events:none;transition:filter .12s var(--ease), opacity .12s var(--ease), scale .15s ease-out, translate .12s var(--ease), visibility 0s .12s;visibility:hidden;translate:0 -2px}.waitlist-join-form.--active,.waitlist-join-share.--active,.waitlist-join-heading.--active,.waitlist-join-reset.--active{filter:none;opacity:1;pointer-events:auto;transition:filter .24s var(--ease), opacity .24s var(--ease), scale .15s ease-out, translate .24s var(--ease);visibility:visible;translate:0}.waitlist-join-form{--gap-horizontal:8px;flex-wrap:nowrap;margin:0;position:absolute;inset:0}.waitlist-join-front{align-items:center;gap:4px;display:flex}.waitlist-join-front svg{width:14px;height:14px}.waitlist-join-heading{white-space:nowrap;position:absolute;inset:0}.waitlist-join-icon{filter:blur(4px);opacity:0;height:14px;transition:filter var(--icon-duration) var(--icon-timing-function), opacity var(--icon-duration) var(--icon-timing-function), scale var(--icon-duration) var(--icon-timing-function);width:14px;position:absolute;inset:0;scale:.25}.waitlist-join-copy:not(.--copied) .waitlist-join-icon--copy,.waitlist-join-copy.--copied .waitlist-join-icon--check{filter:none;opacity:1;scale:1}.waitlist-join-icons{flex-shrink:0;width:14px;height:14px;position:relative}.waitlist-join-input{--background-default:var(--surface);--color-default:var(--foreground);--font-size:calc(var(--font-size-400) * .9375);--padding-horizontal:14px;--padding-vertical:0px;box-shadow:none;outline:0 solid var(--focus-ring);border-radius:12px;flex:1 1 0;height:44px;min-height:0;transition:box-shadow .15s ease-out}.waitlist-join-input::placeholder{color:var(--color-muted)}.waitlist-join-input:focus-visible{outline-width:2px}.waitlist-join-input.--error{box-shadow:inset 0 0 0 1px var(--color-danger)}.waitlist-join-line{justify-content:flex-end;gap:8px;margin:-8px 0;padding:8px 0;list-style:none;display:flex;position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#0000,#000 56px);mask-image:linear-gradient(90deg,#0000,#000 56px)}.waitlist-join-link{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--font-size-small);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.waitlist-join-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.waitlist-join-me{background:var(--accent);color:var(--accent-contrast);font-weight:var(--font-weight-600);height:var(--face-size);width:var(--face-size);border-radius:50%;justify-content:center;align-items:center;display:flex}.waitlist-join-meta{color:var(--color-muted);font-size:var(--font-size-small);justify-content:space-between;align-items:center;margin-top:8px;display:flex}.waitlist-join-note{color:var(--color-muted);font-size:var(--font-size-small);height:40px;margin-top:8px;line-height:20px;transition:color .15s ease-out;position:relative}.waitlist-join-note.--error{color:var(--color-danger)}@media (width>=640px){.waitlist-join-note{height:20px}}.waitlist-join-person{width:var(--face-size);flex-shrink:0;justify-content:center;display:flex;position:relative}.waitlist-join-person[data-exiting]{pointer-events:none;position:absolute}.waitlist-join-person[hidden]{display:none}.waitlist-join-person--me{z-index:1}.waitlist-join-product{color:var(--color-muted);font-size:var(--font-size-small);width:auto}.waitlist-join-queue{background:var(--surface);border-radius:16px;margin-top:20px;padding:14px}.waitlist-join-reset{--background-hover:var(--surface);--color-default:var(--color-muted);--color-hover:var(--foreground);--padding-horizontal:8px;--padding-vertical:0px;font-size:var(--font-size-small);outline-offset:0;border-radius:8px;height:32px;margin-right:-8px}.waitlist-join-roll{--font-weight:var(--font-weight-600);--stagger:80ms;--timing-function:var(--ease);--transition-duration:.7s;display:inline-flex}.waitlist-join-share{background:var(--surface);border-radius:12px;align-items:center;gap:8px;padding:0 4px 0 14px;display:flex;position:absolute;inset:0}.waitlist-join-slot{height:44px;margin-top:20px;position:relative}.waitlist-join-spot{display:inline-flex}.waitlist-join-submit{--background-default:var(--accent);--color-default:var(--accent-contrast);--padding-horizontal:0px;--padding-vertical:0px;font-size:var(--font-size);font-weight:var(--font-weight-500);border-radius:12px;flex:0 0 84px;height:44px}.waitlist-join-submit.button--processing{--border-width:var(--border-width-500)}.waitlist-join-swap{text-wrap:pretty;display:block}.waitlist-join-swap[data-exiting]{position:absolute;inset:0 0 auto}.waitlist-join-title{color:var(--foreground);font-size:calc(var(--font-size-400) * 1.5);font-weight:var(--font-weight-600);height:32px;margin-top:8px;line-height:32px;position:relative}.waitlist-join-top{justify-content:space-between;align-items:center;height:24px;display:flex}@media (prefers-reduced-motion:reduce){.waitlist-join-form,.waitlist-join-heading,.waitlist-join-icon,.waitlist-join-reset,.waitlist-join-share{filter:none;translate:0;scale:1}}}
|
|
2
|
+
/*$vite$:1*/
|