@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,74 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import input from '../input/index.js';
|
|
4
|
+
import { PASSWORD_INPUT } from './constants.js';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_1y936ck2 = template_u1.template(`<div class='password'><div class='password-field'><!--$--><div class='password-key' aria-hidden='true'><span class='password-key-light'></span><svg viewBox='0 0 12 10'><path d='M6 1 2 5h2v1.5h4V5h2L6 1Z' /><path d='M4 8.75h4' /></svg></div><button class='password-toggle' type='button'><svg class='password-toggle-show' viewBox='0 0 16 16' aria-hidden='true'><path d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z' /><circle cx='8' cy='8' r='2' /></svg><svg class='password-toggle-hide' viewBox='0 0 16 16' aria-hidden='true'><path d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z' /><circle cx='8' cy='8' r='2' /><path d='m2.5 2.5 11 11' /></svg></button></div><div class='password-warning'><span aria-hidden='true'>Caps Lock is on</span><span class='password-warning-live' aria-live='polite'>`);
|
|
7
|
+
class ReactiveObject_1y936ck0 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
9
|
+
#capslock = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
11
|
+
#visible = this[reactivity_u0.SIGNAL](false);
|
|
12
|
+
constructor() {
|
|
13
|
+
super(null);
|
|
14
|
+
}
|
|
15
|
+
get active() {
|
|
16
|
+
return reactivity_u0.read(this.#active);
|
|
17
|
+
}
|
|
18
|
+
set active(_v0) {
|
|
19
|
+
reactivity_u0.write(this.#active, _v0);
|
|
20
|
+
}
|
|
21
|
+
get capslock() {
|
|
22
|
+
return reactivity_u0.read(this.#capslock);
|
|
23
|
+
}
|
|
24
|
+
set capslock(_v1) {
|
|
25
|
+
reactivity_u0.write(this.#capslock, _v1);
|
|
26
|
+
}
|
|
27
|
+
get error() {
|
|
28
|
+
return reactivity_u0.read(this.#error);
|
|
29
|
+
}
|
|
30
|
+
set error(_v2) {
|
|
31
|
+
reactivity_u0.write(this.#error, _v2);
|
|
32
|
+
}
|
|
33
|
+
get visible() {
|
|
34
|
+
return reactivity_u0.read(this.#visible);
|
|
35
|
+
}
|
|
36
|
+
set visible(_v3) {
|
|
37
|
+
reactivity_u0.write(this.#visible, _v3);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function template({ state = new ReactiveObject_1y936ck0(), ...attributes } = {}) {
|
|
41
|
+
let read = (e) => {
|
|
42
|
+
state.capslock = e.getModifierState('CapsLock');
|
|
43
|
+
}, warning = () => state.active && state.capslock;
|
|
44
|
+
return (() => {
|
|
45
|
+
let root_1y936ck1 = template_1y936ck2(), element_1y936ck3 = root_1y936ck1.firstChild, element_1y936ck4 = element_1y936ck3.firstElementChild.firstChild, element_1y936ck5 = element_1y936ck3.firstElementChild.firstElementChild.nextElementSibling, element_1y936ck6 = element_1y936ck3.firstElementChild.nextElementSibling.firstElementChild.nextElementSibling;
|
|
46
|
+
template_u1.setProperties(element_1y936ck3, this?.attributes);
|
|
47
|
+
template_u1.setProperties(element_1y936ck3, attributes);
|
|
48
|
+
template_u1.setList(element_1y936ck3, 'class', [
|
|
49
|
+
() => state.active && '--active',
|
|
50
|
+
() => warning() && '--capslock'
|
|
51
|
+
]);
|
|
52
|
+
template_u1.delegate(element_1y936ck3, 'keydown', read);
|
|
53
|
+
template_u1.delegate(element_1y936ck3, 'keyup', read);
|
|
54
|
+
template_u1.delegate(element_1y936ck3, 'pointerdown', read);
|
|
55
|
+
template_u1.slot(element_1y936ck4, input.call({ attributes: this?.attributes?.[PASSWORD_INPUT] }, {
|
|
56
|
+
autocomplete: 'current-password',
|
|
57
|
+
...attributes[PASSWORD_INPUT],
|
|
58
|
+
state,
|
|
59
|
+
type: () => state.visible ? 'text' : 'password'
|
|
60
|
+
}));
|
|
61
|
+
template_u1.setProperty(element_1y936ck5, 'aria-label', () => state.visible ? 'Hide password' : 'Show password');
|
|
62
|
+
template_u1.setProperty(element_1y936ck5, 'aria-pressed', () => String(state.visible));
|
|
63
|
+
template_u1.setList(element_1y936ck5, 'class', () => state.visible && '--visible');
|
|
64
|
+
template_u1.delegate(element_1y936ck5, 'click', () => {
|
|
65
|
+
state.visible = !state.visible;
|
|
66
|
+
});
|
|
67
|
+
template_u1.delegate(element_1y936ck5, 'pointerdown', (e) => {
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
});
|
|
70
|
+
new template_u1.EffectSlot(element_1y936ck6, () => warning() ? 'Caps Lock is on' : '', 1);
|
|
71
|
+
return root_1y936ck1;
|
|
72
|
+
})();
|
|
73
|
+
}
|
|
74
|
+
export default Object.assign(template, { input: PASSWORD_INPUT });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.password{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-active:var(--box-shadow-default);--box-shadow-default:none;--box-shadow-hover:var(--box-shadow-default);--key-background:var(--color-white-400);--key-border-color:var(--color-border-400);--key-color:var(--color-text-300);--key-height:22px;--key-light-color:var(--key-border-color);--key-light-color-active:var(--color-green-400);--key-width:30px;--toggle-background-hover:var(--color-grey-400);--toggle-color:var(--color-text-300);--toggle-color-hover:var(--color-text-500);--toggle-size:32px;--transition-duration:.15s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1);--transition-timing-function-spring:cubic-bezier(.34, 1.3, .64, 1);--warning-color:var(--color-text-300);--warning-font-size:var(--font-size-300);--warning-height:20px}.password:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover)}.password.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active)}.password.--capslock{--key-light-color:var(--key-light-color-active)}.password{gap:var(--size-100);width:100%;min-width:0;display:grid}.password-field{background:var(--background);border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);box-shadow:var(--box-shadow);transition:background var(--transition-duration) ease-out, border-color var(--transition-duration) ease-out, box-shadow var(--transition-duration) ease-out;position:relative}.password-field .input{--background:transparent;--border-width:0px;padding-right:calc(var(--toggle-size) + var(--key-width) + var(--size-300));outline:none}.password-key{background:var(--key-background);border:1px solid var(--key-border-color);box-shadow:0 2px 0 0 var(--key-border-color);filter:blur(3px);height:var(--key-height);inset:0 calc(var(--toggle-size) + 8px) 0 auto;opacity:0;pointer-events:none;transition:filter var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);width:var(--key-width);border-radius:5px;flex-direction:column;justify-content:space-between;margin:auto 0;padding:3px 4px;display:flex;position:absolute;transform:translate(8px)}.password-key svg{color:var(--key-color);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.1px;align-self:center;width:11px;height:9px}.password-key-light{background:var(--key-light-color);border-radius:50%;width:4px;height:4px;transition:background-color .3s ease-out,box-shadow .3s ease-out}.password-toggle{border-radius:calc(var(--border-radius) - 2px);color:var(--toggle-color);cursor:pointer;height:var(--toggle-size);touch-action:manipulation;transition:background-color var(--transition-duration) ease-out, color var(--transition-duration) ease-out, scale var(--transition-duration) ease-out;width:var(--toggle-size);place-items:center;margin:auto 0;display:grid;position:absolute;inset:0 4px 0 auto}.password-toggle:hover{background:var(--toggle-background-hover);color:var(--toggle-color-hover)}.password-toggle:active{scale:.96}.password-toggle:focus-visible{outline:2px solid var(--toggle-color-hover)}.password-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;height:16px;transition:filter .3s var(--transition-timing-function), opacity .3s var(--transition-timing-function), scale .3s var(--transition-timing-function);grid-area:1/1;width:16px}.password-toggle:not(.--visible) .password-toggle-hide,.password-toggle.--visible .password-toggle-show{filter:blur(4px);opacity:0;scale:.25}.password-warning{color:var(--warning-color);font-size:var(--warning-font-size);height:var(--warning-height);line-height:var(--warning-height);position:relative}.password-warning>span:first-child{filter:blur(2px);opacity:0;transition:filter var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);position:absolute;inset:0;transform:translateY(-2px)}.password-warning-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.password.--capslock .password-key{filter:none;opacity:1;transition-duration:.35s;transition-timing-function:var(--transition-timing-function-spring);transform:none}.password.--capslock .password-key-light{box-shadow:0 0 4px 1px color-mix(in oklch, var(--key-light-color) 55%, transparent)}.password.--capslock .password-warning>span:first-child{filter:none;opacity:1;transition-duration:.2s;transform:none}@media (prefers-reduced-motion:reduce){.password .password-key,.password .password-toggle svg,.password .password-warning>span:first-child{transition-property:opacity}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
label?: string;
|
|
5
|
+
percent?: boolean;
|
|
6
|
+
state?: State;
|
|
7
|
+
status?: (value: number) => string;
|
|
8
|
+
value?: number;
|
|
9
|
+
};
|
|
10
|
+
type State = {
|
|
11
|
+
value: number;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
declare function _default({ label, percent, state, status, value, ...attributes }: A): DocumentFragment | Text;
|
|
15
|
+
export type { State as ProgressState };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import * as template_u1 from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
const template_11w7dyi1 = template_u1.template(`<div class='progress'><!--$--><div aria-valuemax='100' aria-valuemin='0' class='progress-track' role='progressbar'><div class='progress-indicator'>`);
|
|
5
|
+
const template_11w7dyi7 = template_u1.template(`<div class='progress-header'><span class='progress-label'>`);
|
|
6
|
+
const template_11w7dyib = template_u1.template(`<span class='progress-percent'>`);
|
|
7
|
+
const template_11w7dyie = template_u1.template(`<div class='progress-status'>`);
|
|
8
|
+
function clamp(value) {
|
|
9
|
+
return Math.min(100, Math.max(0, value || 0));
|
|
10
|
+
}
|
|
11
|
+
export default ({ label, percent = true, state, status, value = 0, ...attributes }) => {
|
|
12
|
+
let s = state ?? reactivity_u0.reactive({ value });
|
|
13
|
+
return (() => {
|
|
14
|
+
let root_11w7dyi0 = template_11w7dyi1(), element_11w7dyi2 = root_11w7dyi0.firstChild, element_11w7dyi3 = element_11w7dyi2.firstChild, element_11w7dyi4 = element_11w7dyi2.firstElementChild, element_11w7dyi5 = element_11w7dyi4.firstElementChild;
|
|
15
|
+
template_u1.setProperties(element_11w7dyi2, attributes);
|
|
16
|
+
template_u1.slot(element_11w7dyi3, label && (() => {
|
|
17
|
+
let root_11w7dyi6 = template_11w7dyi7(), element_11w7dyi8 = root_11w7dyi6.firstChild.firstElementChild, element_11w7dyi9 = root_11w7dyi6.firstChild;
|
|
18
|
+
template_u1.slot(element_11w7dyi8, label, 1);
|
|
19
|
+
template_u1.slot(element_11w7dyi9, percent && (() => {
|
|
20
|
+
let root_11w7dyia = template_11w7dyib(), element_11w7dyic = root_11w7dyia.firstChild;
|
|
21
|
+
new template_u1.EffectSlot(element_11w7dyic, () => `${Math.round(clamp(s.value))}%`, 1);
|
|
22
|
+
return root_11w7dyia;
|
|
23
|
+
})(), 2);
|
|
24
|
+
return root_11w7dyi6;
|
|
25
|
+
})());
|
|
26
|
+
template_u1.setProperty(element_11w7dyi4, 'aria-label', label ?? 'Progress');
|
|
27
|
+
template_u1.setProperty(element_11w7dyi4, 'aria-valuenow', () => Math.round(clamp(s.value)));
|
|
28
|
+
template_u1.setProperty(element_11w7dyi4, 'aria-valuetext', () => status ? status(clamp(s.value)) : `${Math.round(clamp(s.value))}%`);
|
|
29
|
+
template_u1.setList(element_11w7dyi5, 'style', () => `translate: ${clamp(s.value) - 100}% 0`);
|
|
30
|
+
template_u1.slot(element_11w7dyi2, status && (() => {
|
|
31
|
+
let root_11w7dyid = template_11w7dyie(), element_11w7dyif = root_11w7dyid.firstChild;
|
|
32
|
+
new template_u1.EffectSlot(element_11w7dyif, () => status(clamp(s.value)), 1);
|
|
33
|
+
return root_11w7dyid;
|
|
34
|
+
})(), 2);
|
|
35
|
+
return root_11w7dyi0;
|
|
36
|
+
})();
|
|
37
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.progress{--color:var(--color-text-500);--duration:.15s;--ease:cubic-bezier(.4, 0, .2, 1);--font-size:calc(var(--font-size-400) * .875);--height:6px;--indicator-color:var(--color-text-500);--muted-color:var(--color-text-300);--status-font-size:12px;--track-color:var(--color-grey-500);color:var(--color);font-size:var(--font-size);flex-direction:column;gap:8px;width:100%;display:flex}.progress-header{justify-content:space-between;align-items:baseline;display:flex}.progress-indicator{background:var(--indicator-color);height:100%;transition:translate var(--duration) var(--ease);width:100%}.progress-percent{color:var(--muted-color);font-variant-numeric:tabular-nums}.progress-status{color:var(--muted-color);font-size:var(--status-font-size)}.progress-track{background:var(--track-color);height:var(--height);border-radius:999px;width:100%;position:relative;overflow:hidden}@media (prefers-reduced-motion:reduce){.progress-indicator{transition:none}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[PULL_TO_REFRESH_SCROLLER]?: Attributes;
|
|
5
|
+
announce?: (count: number) => string;
|
|
6
|
+
onrefresh: () => unknown;
|
|
7
|
+
state?: State;
|
|
8
|
+
};
|
|
9
|
+
type State = {
|
|
10
|
+
refreshing: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const PULL_TO_REFRESH_SCROLLER: unique symbol;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
(): Renderable<any>;
|
|
15
|
+
<T extends A>(attributes: T): Renderable<any>;
|
|
16
|
+
<T extends Renderable<unknown>>(content: T): Renderable<any>;
|
|
17
|
+
(attributes: A, content?: Renderable<unknown>): Renderable<any>;
|
|
18
|
+
bind(context: {
|
|
19
|
+
attributes?: Partial<A> | undefined;
|
|
20
|
+
content?: Renderable<unknown>;
|
|
21
|
+
}): any;
|
|
22
|
+
} & {
|
|
23
|
+
readonly scroller: typeof PULL_TO_REFRESH_SCROLLER;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
26
|
+
export type { State };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import { effect, onCleanup } from '@esportsplus/reactivity';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_0qoomb22 = template_u1.template(`<div class='pull-to-refresh '><div aria-hidden='true' class='pull-to-refresh-indicator'><div class='pull-to-refresh-glyph'><svg class='pull-to-refresh-spinner' fill='none' stroke='currentColor' stroke-linecap='round' stroke-width='2' viewBox='0 0 24 24'><line class='pull-to-refresh-tick' style='--index: 0; --order: 0;' transform='rotate(0 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 1; --order: 7;' transform='rotate(-45 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 2; --order: 6;' transform='rotate(-90 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 3; --order: 5;' transform='rotate(-135 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 4; --order: 4;' transform='rotate(-180 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 5; --order: 3;' transform='rotate(-225 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 6; --order: 2;' transform='rotate(-270 12 12)' x1='12' x2='12' y1='3' y2='7' /><line class='pull-to-refresh-tick' style='--index: 7; --order: 1;' transform='rotate(-315 12 12)' x1='12' x2='12' y1='3' y2='7' /></svg></div></div><div class='pull-to-refresh-scroller'><div class='pull-to-refresh-content'></div></div><span aria-live='polite' class='pull-to-refresh-status'>`);
|
|
7
|
+
class ReactiveObject_0qoomb20 extends reactivity_u0.ReactiveObject {
|
|
8
|
+
#refreshing = this[reactivity_u0.SIGNAL](false);
|
|
9
|
+
constructor() {
|
|
10
|
+
super(null);
|
|
11
|
+
}
|
|
12
|
+
get refreshing() {
|
|
13
|
+
return reactivity_u0.read(this.#refreshing);
|
|
14
|
+
}
|
|
15
|
+
set refreshing(_v0) {
|
|
16
|
+
reactivity_u0.write(this.#refreshing, _v0);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const DRAG_SLOP = 4;
|
|
20
|
+
const FRESH = { duration: 300, easing: 'cubic-bezier(0.23, 1, 0.32, 1)' };
|
|
21
|
+
const PULL_TO_REFRESH_SCROLLER = Symbol.for('@esportsplus/ui/pull-to-refresh.scroller');
|
|
22
|
+
const RUBBER = 0.7;
|
|
23
|
+
const RUBBER_DIMENSION = 480;
|
|
24
|
+
const SETTLE = (2 * Math.PI) / (1.2 * 0.35);
|
|
25
|
+
const SLIDE_IN = (2 * Math.PI) / (1.2 * 0.5);
|
|
26
|
+
const THRESHOLD = 64;
|
|
27
|
+
function announcement(count) {
|
|
28
|
+
return `Updated, ${count} new item${count === 1 ? '' : 's'}`;
|
|
29
|
+
}
|
|
30
|
+
function reduced() {
|
|
31
|
+
return matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
32
|
+
}
|
|
33
|
+
function rubberband(distance) {
|
|
34
|
+
return (distance * RUBBER_DIMENSION * RUBBER) / (RUBBER_DIMENSION + RUBBER * distance);
|
|
35
|
+
}
|
|
36
|
+
function unband(offset) {
|
|
37
|
+
return (offset * RUBBER_DIMENSION) / (RUBBER * (RUBBER_DIMENSION - offset));
|
|
38
|
+
}
|
|
39
|
+
export default Object.assign(component(function ({ announce = announcement, onrefresh, state = new ReactiveObject_0qoomb20(), ...attributes }, content) {
|
|
40
|
+
let busy = false, cleanup, feed, frame = 0, gesture = null, glyph, mouse = null, reveal = 0, root, scroller, spring = { omega: SETTLE, target: 0, velocity: 0 }, status, time = 0, touch = null, y = 0;
|
|
41
|
+
function begin() {
|
|
42
|
+
stop();
|
|
43
|
+
glyph?.classList.remove('--fading');
|
|
44
|
+
gesture = { base: unband(Math.max(y, 0)), samples: [] };
|
|
45
|
+
}
|
|
46
|
+
function end() {
|
|
47
|
+
let g = gesture;
|
|
48
|
+
gesture = null;
|
|
49
|
+
if (!g) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let first = g.samples[0], last = g.samples[g.samples.length - 1], dt = first && last ? (last.t - first.t) / 1000 : 0, velocity = dt > 0 ? (last.y - first.y) / dt : 0;
|
|
53
|
+
if (y >= THRESHOLD) {
|
|
54
|
+
refresh(velocity);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
move(0, SETTLE, velocity);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function land(first) {
|
|
61
|
+
let count = 0, height = 0, motion = !reduced();
|
|
62
|
+
if (first?.isConnected && feed && first.parentElement === feed) {
|
|
63
|
+
let head = feed.firstElementChild;
|
|
64
|
+
height = first.offsetTop - head.offsetTop;
|
|
65
|
+
for (let node = head; node && node !== first; node = node.nextElementSibling) {
|
|
66
|
+
count++;
|
|
67
|
+
node.animate(motion
|
|
68
|
+
? [{ filter: 'blur(4px)', opacity: 0 }, { filter: 'blur(0px)', opacity: 1 }]
|
|
69
|
+
: [{ opacity: 0 }, { opacity: 1 }], FRESH);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (motion) {
|
|
73
|
+
glyph?.classList.add('--fading');
|
|
74
|
+
}
|
|
75
|
+
busy = false;
|
|
76
|
+
state.refreshing = false;
|
|
77
|
+
if (status) {
|
|
78
|
+
status.textContent = announce(count);
|
|
79
|
+
}
|
|
80
|
+
stop();
|
|
81
|
+
y -= height;
|
|
82
|
+
move(0, SLIDE_IN, 0);
|
|
83
|
+
}
|
|
84
|
+
function move(target, omega, velocity) {
|
|
85
|
+
stop();
|
|
86
|
+
if (reduced()) {
|
|
87
|
+
y = target;
|
|
88
|
+
paint();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
spring = { omega, target, velocity };
|
|
92
|
+
time = 0;
|
|
93
|
+
frame = requestAnimationFrame(tick);
|
|
94
|
+
}
|
|
95
|
+
function paint() {
|
|
96
|
+
root?.style.setProperty('--pull', String(Math.min(Math.max(y / THRESHOLD, 0), 1)));
|
|
97
|
+
root?.style.setProperty('--reveal', String(reveal));
|
|
98
|
+
root?.style.setProperty('--y', String(y));
|
|
99
|
+
}
|
|
100
|
+
function pull(distance, t) {
|
|
101
|
+
let g = gesture;
|
|
102
|
+
if (!g) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
let offset = rubberband(Math.max(g.base + distance, 0));
|
|
106
|
+
y = offset;
|
|
107
|
+
reveal = Math.min(offset / THRESHOLD, 1);
|
|
108
|
+
g.samples.push({ t, y: offset });
|
|
109
|
+
while (g.samples.length > 2 && t - g.samples[0].t > 100) {
|
|
110
|
+
g.samples.shift();
|
|
111
|
+
}
|
|
112
|
+
paint();
|
|
113
|
+
}
|
|
114
|
+
function refresh(velocity) {
|
|
115
|
+
let first = feed?.firstElementChild ?? null;
|
|
116
|
+
busy = true;
|
|
117
|
+
reveal = 1;
|
|
118
|
+
state.refreshing = true;
|
|
119
|
+
glyph?.classList.remove('--fading');
|
|
120
|
+
if (status) {
|
|
121
|
+
status.textContent = '';
|
|
122
|
+
}
|
|
123
|
+
move(THRESHOLD, SETTLE, velocity);
|
|
124
|
+
void Promise.resolve()
|
|
125
|
+
.then(onrefresh)
|
|
126
|
+
.finally(() => requestAnimationFrame(() => land(first)));
|
|
127
|
+
}
|
|
128
|
+
function stop() {
|
|
129
|
+
cancelAnimationFrame(frame);
|
|
130
|
+
frame = 0;
|
|
131
|
+
}
|
|
132
|
+
function tick(now) {
|
|
133
|
+
let dt = time ? Math.min((now - time) / 1000, 1 / 30) : 1 / 60, decay = Math.exp(-spring.omega * dt), offset = y - spring.target, slope = spring.velocity + spring.omega * offset;
|
|
134
|
+
time = now;
|
|
135
|
+
y = spring.target + (offset + slope * dt) * decay;
|
|
136
|
+
spring.velocity = (spring.velocity - spring.omega * slope * dt) * decay;
|
|
137
|
+
if (Math.abs(y - spring.target) < 0.05 && Math.abs(spring.velocity) < 1) {
|
|
138
|
+
y = spring.target;
|
|
139
|
+
frame = 0;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
frame = requestAnimationFrame(tick);
|
|
143
|
+
}
|
|
144
|
+
paint();
|
|
145
|
+
}
|
|
146
|
+
function touchend() {
|
|
147
|
+
if (touch?.pulling) {
|
|
148
|
+
end();
|
|
149
|
+
}
|
|
150
|
+
touch = null;
|
|
151
|
+
}
|
|
152
|
+
function touchmove(e) {
|
|
153
|
+
if (!touch || !scroller) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
let dy = e.touches[0].clientY - touch.y;
|
|
157
|
+
if (!touch.pulling) {
|
|
158
|
+
if (dy <= 0 || scroller.scrollTop > 0) {
|
|
159
|
+
touch = null;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
touch.pulling = true;
|
|
163
|
+
begin();
|
|
164
|
+
}
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
pull(dy, e.timeStamp);
|
|
167
|
+
}
|
|
168
|
+
function touchstart(e) {
|
|
169
|
+
touch = null;
|
|
170
|
+
if (busy || e.touches.length > 1 || !scroller || scroller.scrollTop > 0 || y < 0) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
touch = { pulling: false, y: e.touches[0].clientY };
|
|
174
|
+
}
|
|
175
|
+
onCleanup(effect(() => {
|
|
176
|
+
if (!state.refreshing || busy) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
scroller?.scrollTo({ behavior: reduced() ? 'auto' : 'smooth', top: 0 });
|
|
180
|
+
refresh(0);
|
|
181
|
+
}));
|
|
182
|
+
return (() => {
|
|
183
|
+
let root_0qoomb21 = template_0qoomb22(), element_0qoomb23 = root_0qoomb21.firstChild, element_0qoomb24 = element_0qoomb23.firstElementChild.nextElementSibling, element_0qoomb25 = element_0qoomb24.firstElementChild;
|
|
184
|
+
template_u1.setList(element_0qoomb23, 'class', () => state.refreshing && '--refreshing');
|
|
185
|
+
template_u1.setProperties(element_0qoomb23, this?.attributes);
|
|
186
|
+
template_u1.setProperties(element_0qoomb23, attributes);
|
|
187
|
+
template_u1.onconnect(element_0qoomb23, (el) => {
|
|
188
|
+
feed = el.querySelector('.pull-to-refresh-content') ?? undefined;
|
|
189
|
+
glyph = el.querySelector('.pull-to-refresh-glyph') ?? undefined;
|
|
190
|
+
root = el;
|
|
191
|
+
scroller = el.querySelector('.pull-to-refresh-scroller') ?? undefined;
|
|
192
|
+
status = el.querySelector('.pull-to-refresh-status') ?? undefined;
|
|
193
|
+
paint();
|
|
194
|
+
if (!scroller) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
let source = scroller;
|
|
198
|
+
source.addEventListener('touchcancel', touchend);
|
|
199
|
+
source.addEventListener('touchend', touchend);
|
|
200
|
+
source.addEventListener('touchmove', touchmove, { passive: false });
|
|
201
|
+
source.addEventListener('touchstart', touchstart, { passive: true });
|
|
202
|
+
cleanup = () => {
|
|
203
|
+
source.removeEventListener('touchcancel', touchend);
|
|
204
|
+
source.removeEventListener('touchend', touchend);
|
|
205
|
+
source.removeEventListener('touchmove', touchmove);
|
|
206
|
+
source.removeEventListener('touchstart', touchstart);
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
template_u1.ondisconnect(element_0qoomb23, () => {
|
|
210
|
+
cleanup?.();
|
|
211
|
+
stop();
|
|
212
|
+
});
|
|
213
|
+
template_u1.setProperty(element_0qoomb24, 'aria-busy', () => String(state.refreshing));
|
|
214
|
+
template_u1.setProperties(element_0qoomb24, this?.attributes?.[PULL_TO_REFRESH_SCROLLER]);
|
|
215
|
+
template_u1.setProperties(element_0qoomb24, attributes[PULL_TO_REFRESH_SCROLLER]);
|
|
216
|
+
template_u1.delegate(element_0qoomb24, 'pointercancel', () => {
|
|
217
|
+
if (mouse?.pulling) {
|
|
218
|
+
end();
|
|
219
|
+
}
|
|
220
|
+
mouse = null;
|
|
221
|
+
});
|
|
222
|
+
template_u1.delegate(element_0qoomb24, 'pointerdown', (e) => {
|
|
223
|
+
if (e.pointerType !== 'mouse' || e.button !== 0) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (busy || e.currentTarget.scrollTop > 0 || y < 0) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
mouse = { pulling: false, y: e.clientY };
|
|
230
|
+
});
|
|
231
|
+
template_u1.delegate(element_0qoomb24, 'pointermove', (e) => {
|
|
232
|
+
let m = mouse;
|
|
233
|
+
if (!m) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
let dy = e.clientY - m.y;
|
|
237
|
+
if (!m.pulling) {
|
|
238
|
+
if (dy < -DRAG_SLOP) {
|
|
239
|
+
mouse = null;
|
|
240
|
+
}
|
|
241
|
+
if (dy <= DRAG_SLOP) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
m.pulling = true;
|
|
245
|
+
m.y = e.clientY;
|
|
246
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
247
|
+
begin();
|
|
248
|
+
}
|
|
249
|
+
pull(e.clientY - m.y, e.timeStamp);
|
|
250
|
+
});
|
|
251
|
+
template_u1.delegate(element_0qoomb24, 'pointerup', () => {
|
|
252
|
+
if (mouse?.pulling) {
|
|
253
|
+
end();
|
|
254
|
+
}
|
|
255
|
+
mouse = null;
|
|
256
|
+
});
|
|
257
|
+
template_u1.slot(element_0qoomb25, content, 1);
|
|
258
|
+
return root_0qoomb21;
|
|
259
|
+
})();
|
|
260
|
+
}), { scroller: PULL_TO_REFRESH_SCROLLER });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.pull-to-refresh{--background:var(--color-white-300);--color:var(--color-text-500);--fade-duration:.15s;--fade-timing-function:cubic-bezier(.23, 1, .32, 1);--height:100%;--indicator-height:64px;--spin-duration:.8s;--spinner-size:24px;--pull:0;--reveal:0;--y:0;height:var(--height);min-height:0;position:relative}.pull-to-refresh-content{background:var(--background);min-height:100%;translate:0 calc(var(--y) * 1px);-webkit-user-select:none;user-select:none}.pull-to-refresh-glyph{rotate:calc(var(--y) * 3deg);display:flex}.pull-to-refresh-glyph.--fading{opacity:0;transition:opacity var(--fade-duration) var(--fade-timing-function)}.pull-to-refresh-indicator{color:var(--color);height:var(--indicator-height);opacity:var(--pull);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0 0 auto}.pull-to-refresh-scroller{overscroll-behavior:contain;height:100%;position:relative;overflow-y:auto}.pull-to-refresh-spinner{height:var(--spinner-size);width:var(--spinner-size)}.pull-to-refresh-status{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;position:absolute;overflow:hidden}.pull-to-refresh-tick{opacity:calc(clamp(0, (var(--reveal) * 8 - var(--order)) * 1000, 1) * (1 - var(--index) * .1))}.pull-to-refresh.--refreshing .pull-to-refresh-spinner{animation:pull-to-refresh-spin var(--spin-duration) steps(8) infinite}@media (prefers-reduced-motion:reduce){.pull-to-refresh.--refreshing .pull-to-refresh-spinner{animation:none}.pull-to-refresh-glyph.--fading{transition:none}}@keyframes pull-to-refresh-spin{to{rotate:360deg}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import { factory } from '../checkbox/index.js';
|
|
3
|
+
import radio from '../radio/index.js';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
type A = Attributes & {
|
|
6
|
+
[RADIO_CARDS_CARD]?: Attributes;
|
|
7
|
+
[RADIO_CARDS_INPUT]?: Input;
|
|
8
|
+
label: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
options: Option[];
|
|
11
|
+
state?: {
|
|
12
|
+
error: string;
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
15
|
+
value?: string;
|
|
16
|
+
};
|
|
17
|
+
type Input = NonNullable<NonNullable<Parameters<typeof radio>[0]>[typeof factory.input]>;
|
|
18
|
+
type Option = {
|
|
19
|
+
badge?: string;
|
|
20
|
+
description: string;
|
|
21
|
+
period?: string;
|
|
22
|
+
price: string;
|
|
23
|
+
title: string;
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
declare const RADIO_CARDS_CARD: unique symbol;
|
|
27
|
+
declare const RADIO_CARDS_INPUT: unique symbol;
|
|
28
|
+
declare function template(this: {
|
|
29
|
+
attributes?: Pick<A, typeof RADIO_CARDS_CARD | typeof RADIO_CARDS_INPUT>;
|
|
30
|
+
} | void, { label, name, options, value, state, ...attributes }: A): DocumentFragment | Text;
|
|
31
|
+
declare const _default: typeof template & {
|
|
32
|
+
readonly card: typeof RADIO_CARDS_CARD;
|
|
33
|
+
readonly input: typeof RADIO_CARDS_INPUT;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
36
|
+
export type { Option };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { factory } from '../checkbox/index.js';
|
|
4
|
+
import radio from '../radio/index.js';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_108kira2 = template_u1.template(`<fieldset class='radio-cards'><legend class='radio-cards-legend'></legend><div class='radio-cards-grid'>`);
|
|
7
|
+
const template_108kira7 = template_u1.template(`<label class='radio-cards-card'><span aria-hidden='true' class='radio-cards-ring'></span><span class='radio-cards-dot'><!--$--><svg aria-hidden='true' class='radio-cards-check' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'><path d='m3.5 8.5 3 3 6-7' /></svg></span><span class='radio-cards-content'><span class='radio-cards-heading'><span class='radio-cards-title'></span></span><span class='radio-cards-description'></span></span><span class='radio-cards-price'><span class='radio-cards-amount'>`);
|
|
8
|
+
const template_108kirag = template_u1.template(`<span class='radio-cards-badge'>`);
|
|
9
|
+
const template_108kiraj = template_u1.template(`<span class='radio-cards-period'>`);
|
|
10
|
+
class ReactiveObject_108kira0 extends reactivity_u0.ReactiveObject {
|
|
11
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
12
|
+
#value;
|
|
13
|
+
constructor(_p0) {
|
|
14
|
+
super(null);
|
|
15
|
+
this.#value = this[reactivity_u0.SIGNAL](_p0);
|
|
16
|
+
}
|
|
17
|
+
get error() {
|
|
18
|
+
return reactivity_u0.read(this.#error);
|
|
19
|
+
}
|
|
20
|
+
set error(_v0) {
|
|
21
|
+
reactivity_u0.write(this.#error, _v0);
|
|
22
|
+
}
|
|
23
|
+
get value() {
|
|
24
|
+
return reactivity_u0.read(this.#value);
|
|
25
|
+
}
|
|
26
|
+
set value(_v1) {
|
|
27
|
+
reactivity_u0.write(this.#value, _v1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const RADIO_CARDS_CARD = Symbol.for('@esportsplus/ui/radio-cards.card');
|
|
31
|
+
const RADIO_CARDS_INPUT = Symbol.for('@esportsplus/ui/radio-cards.input');
|
|
32
|
+
const RING = {
|
|
33
|
+
duration: 300,
|
|
34
|
+
easing: 'linear(0, 0.058, 0.18, 0.321, 0.455, 0.573, 0.671, 0.75, 0.812, 0.86, 0.897, 0.924, 0.944, 0.96, 0.971, 0.979, 0.985, 0.989, 0.992, 0.994, 0.996, 0.997, 0.998, 0.999, 1)'
|
|
35
|
+
};
|
|
36
|
+
let uid = 0;
|
|
37
|
+
function glide(grid, previous) {
|
|
38
|
+
let ring = grid.querySelector('.radio-cards-card:has(input:checked) .radio-cards-ring');
|
|
39
|
+
if (!previous || !ring || matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let next = ring.getBoundingClientRect(), x = previous.left - next.left, y = previous.top - next.top;
|
|
43
|
+
if (x === 0 && y === 0) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
ring.animate([
|
|
47
|
+
{ translate: `${x}px ${y}px` },
|
|
48
|
+
{ translate: '0px 0px' }
|
|
49
|
+
], RING);
|
|
50
|
+
}
|
|
51
|
+
function template({ label, name, options, value, state = new ReactiveObject_108kira0(value ?? options[0]?.value ?? ''), ...attributes }) {
|
|
52
|
+
let group = name ?? `radio-cards-${++uid}`, previous;
|
|
53
|
+
return (() => {
|
|
54
|
+
let root_108kira1 = template_108kira2(), element_108kira3 = root_108kira1.firstChild, element_108kira4 = element_108kira3.firstElementChild, element_108kira5 = element_108kira4.nextElementSibling;
|
|
55
|
+
template_u1.setProperties(element_108kira3, this?.attributes);
|
|
56
|
+
template_u1.setProperties(element_108kira3, attributes);
|
|
57
|
+
template_u1.slot(element_108kira4, label, 1);
|
|
58
|
+
template_u1.delegate(element_108kira5, 'pointerdown', function () {
|
|
59
|
+
previous = this.querySelector('.radio-cards-card:has(input:checked) .radio-cards-ring')?.getBoundingClientRect();
|
|
60
|
+
});
|
|
61
|
+
template_u1.slot(element_108kira5, options.map((option) => {
|
|
62
|
+
let root_108kira6 = template_108kira7(), element_108kira8 = root_108kira6.firstChild, element_108kira9 = element_108kira8.firstElementChild.nextElementSibling.firstChild, element_108kiraa = element_108kira8.firstElementChild.nextElementSibling.nextElementSibling.firstElementChild.firstElementChild, element_108kirab = element_108kira8.firstElementChild.nextElementSibling.nextElementSibling.firstElementChild, element_108kirac = element_108kirab.nextElementSibling, element_108kirad = element_108kira8.firstElementChild.nextElementSibling.nextElementSibling.nextElementSibling.firstElementChild, element_108kirae = element_108kira8.firstElementChild.nextElementSibling.nextElementSibling.nextElementSibling;
|
|
63
|
+
template_u1.setProperties(element_108kira8, this?.attributes?.[RADIO_CARDS_CARD]);
|
|
64
|
+
template_u1.setProperties(element_108kira8, attributes[RADIO_CARDS_CARD]);
|
|
65
|
+
template_u1.slot(element_108kira9, radio({
|
|
66
|
+
state,
|
|
67
|
+
[factory.input]: {
|
|
68
|
+
checked: () => state.value === option.value,
|
|
69
|
+
name: group,
|
|
70
|
+
onchange: function () {
|
|
71
|
+
let grid = this.closest('.radio-cards-grid');
|
|
72
|
+
state.value = option.value;
|
|
73
|
+
if (grid) {
|
|
74
|
+
glide(grid, previous);
|
|
75
|
+
}
|
|
76
|
+
previous = undefined;
|
|
77
|
+
},
|
|
78
|
+
onkeydown: function () {
|
|
79
|
+
previous = this.closest('.radio-cards-grid')
|
|
80
|
+
?.querySelector('.radio-cards-card:has(input:checked) .radio-cards-ring')
|
|
81
|
+
?.getBoundingClientRect();
|
|
82
|
+
},
|
|
83
|
+
value: option.value,
|
|
84
|
+
...this?.attributes?.[RADIO_CARDS_INPUT],
|
|
85
|
+
...attributes[RADIO_CARDS_INPUT]
|
|
86
|
+
}
|
|
87
|
+
}));
|
|
88
|
+
template_u1.slot(element_108kiraa, option.title, 1);
|
|
89
|
+
template_u1.slot(element_108kirab, option.badge ? (() => {
|
|
90
|
+
let root_108kiraf = template_108kirag(), element_108kirah = root_108kiraf.firstChild;
|
|
91
|
+
template_u1.slot(element_108kirah, option.badge, 1);
|
|
92
|
+
return root_108kiraf;
|
|
93
|
+
})() : '', 2);
|
|
94
|
+
template_u1.slot(element_108kirac, option.description, 1);
|
|
95
|
+
template_u1.slot(element_108kirad, option.price, 1);
|
|
96
|
+
template_u1.slot(element_108kirae, option.period ? (() => {
|
|
97
|
+
let root_108kirai = template_108kiraj(), element_108kirak = root_108kirai.firstChild;
|
|
98
|
+
template_u1.slot(element_108kirak, option.period, 1);
|
|
99
|
+
return root_108kirai;
|
|
100
|
+
})() : '', 2);
|
|
101
|
+
return root_108kira6;
|
|
102
|
+
}), 1);
|
|
103
|
+
return root_108kira1;
|
|
104
|
+
})();
|
|
105
|
+
}
|
|
106
|
+
export default Object.assign(template, { card: RADIO_CARDS_CARD, input: RADIO_CARDS_INPUT });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.radio-cards{--amount-font-size:calc(var(--font-size-400) * 1.125);--background:var(--background-default);--background-default:var(--color-white-300);--background-hover:var(--color-grey-400);--badge-background:var(--color-grey-400);--badge-background-hover:var(--color-white-300);--box-shadow:0 0 0 1px oklch(from var(--color-black-500) l c h / .06), 0 1px 2px oklch(from var(--color-black-500) l c h / .06), 0 6px 16px -6px oklch(from var(--color-black-500) l c h / .12);--card-border-radius:var(--border-radius-700);--card-gap:var(--size-300);--check-color:var(--color-white-300);--check-size:12px;--check-stroke-width:2.25;--color:var(--color-text-500);--color-muted:var(--color-text-300);--description-font-size:calc(var(--font-size-400) * .875);--description-line-height:1.43;--dot-border-width:1.5px;--dot-size:var(--size-500);--focus-width:var(--border-width-500);--padding:var(--size-400);--press-scale:.98;--ring-color:var(--color);--ring-width:var(--border-width-500);--title-line-height:1.4;--transition-duration:.15s;--transition-timing-function:ease-out;--width:min(480px, 100%);color:var(--color);min-width:0;width:var(--width);border:0;margin:0;padding:0}.radio-cards-amount{color:var(--color);font-size:var(--amount-font-size);font-variant-numeric:tabular-nums;font-weight:var(--font-weight-500)}.radio-cards-badge{background:var(--badge-background);color:var(--color-muted);font-size:var(--font-size-300);font-weight:var(--font-weight-400);padding:2px var(--size-200);transition:background var(--transition-duration) var(--transition-timing-function);border-radius:999px;line-height:1.4}.radio-cards-card{background:var(--background);border-radius:var(--card-border-radius);box-shadow:var(--box-shadow);cursor:pointer;align-items:center;gap:var(--padding);padding:var(--padding);touch-action:manipulation;transition:background var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function);-webkit-user-select:none;user-select:none;display:flex;position:relative}.radio-cards-card:hover{--background:var(--background-hover);--badge-background:var(--badge-background-hover)}.radio-cards-card:active{scale:var(--press-scale)}.radio-cards-card:has(input:checked){z-index:1}.radio-cards-card:has(input:focus-visible){outline:var(--focus-width) solid var(--color);outline-offset:2px}.radio-cards-check{color:var(--check-color);filter:blur(4px);height:var(--check-size);opacity:0;pointer-events:none;stroke-width:var(--check-stroke-width);transition:filter .3s linear(0, .058, .18, .321, .455, .573, .671, .75, .812, .86, .897, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1), opacity .3s linear(0, .058, .18, .321, .455, .573, .671, .75, .812, .86, .897, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1), scale .3s linear(0, .058, .18, .321, .455, .573, .671, .75, .812, .86, .897, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1);width:var(--check-size);margin:auto;position:absolute;inset:0;scale:.25}.radio-cards-content{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.radio-cards-description{color:var(--color-muted);font-size:var(--description-font-size);line-height:var(--description-line-height);text-wrap:pretty}.radio-cards-dot{flex:none;display:grid;position:relative}.radio-cards-dot .checkbox{--background-active:transparent;--border-color-active:var(--color);--border-color-default:color-mix(in oklch, var(--color) 25%, transparent);--border-color-hover:color-mix(in oklch, var(--color) 45%, transparent);--border-width:var(--dot-border-width);--border-width-offset-hover:0px;--box-shadow-active:none;--focus-width:0px;--indicator-color-default:var(--color);--scale-active:1;--scale-default:.5;--scale-hover:.5;--scale-pressed:.5;--size:var(--dot-size);--transition-duration:.15s;--transition-timing-function:ease-out}.radio-cards-dot .checkbox:before{--box-shadow:none;--height:calc(100% + var(--dot-border-width) * 2);--width:calc(100% + var(--dot-border-width) * 2);inset:calc(var(--dot-border-width) * -1);opacity:0;border-radius:50%;transition:opacity .15s cubic-bezier(.23,1,.32,1),scale .15s cubic-bezier(.23,1,.32,1)}.radio-cards-dot .checkbox:has(input:checked):before{opacity:1;transition:opacity .35s linear(0, .077, .251, .456, .649, .809, .927, 1.004, 1.048, 1.066, 1.067, 1.058, 1.045, 1.031, 1.019, 1.009, 1.002, .998, .996, .995, .996, .996, .997, .998, 1), scale .35s linear(0, .077, .251, .456, .649, .809, .927, 1.004, 1.048, 1.066, 1.067, 1.058, 1.045, 1.031, 1.019, 1.009, 1.002, .998, .996, .995, .996, .996, .997, .998, 1)}.radio-cards-dot:has(input:checked) .radio-cards-check{filter:blur();opacity:1;scale:1}.radio-cards-grid{gap:var(--card-gap);grid-auto-rows:1fr;display:grid}.radio-cards-heading{align-items:center;gap:var(--size-200);display:flex}.radio-cards-legend{color:var(--color);font-size:var(--font-size-400);font-weight:var(--font-weight-400);margin-bottom:var(--card-gap);padding:0}.radio-cards-period{color:var(--color-muted);font-size:var(--font-size-300)}.radio-cards-price{flex:none;align-items:baseline;gap:2px;display:flex}.radio-cards-ring{border:var(--ring-width) solid var(--ring-color);border-radius:inherit;opacity:0;pointer-events:none;position:absolute;inset:0}.radio-cards-card:has(input:checked) .radio-cards-ring{opacity:1}.radio-cards-title{color:var(--color);font-size:var(--font-size-400);font-weight:var(--font-weight-500);line-height:var(--title-line-height)}@media (prefers-reduced-motion:reduce){.radio-cards-card{transition:background var(--transition-duration) var(--transition-timing-function)}.radio-cards-card:active{scale:1}.radio-cards-check{filter:none;transition:opacity .15s cubic-bezier(.23,1,.32,1);scale:1}.radio-cards-dot .checkbox{--scale-default:1;--scale-hover:1;--scale-pressed:1}.radio-cards-dot .checkbox:before{transition:opacity .15s cubic-bezier(.23,1,.32,1)}.radio-cards-dot .checkbox:has(input:checked):before{transition:opacity .15s cubic-bezier(.23,1,.32,1)}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { root } from '@esportsplus/reactivity';
|
|
4
4
|
import form from '../form/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
6
|
+
const template_0aka2e62 = template_u1.template(`<input class='range --border-state --border-black' type='range' />`);
|
|
7
7
|
class ReactiveObject_0aka2e60 extends reactivity_u0.ReactiveObject {
|
|
8
8
|
#active = this[reactivity_u0.SIGNAL](false);
|
|
9
9
|
#error = this[reactivity_u0.SIGNAL]('');
|
|
@@ -36,23 +36,23 @@ export default function (attributes) {
|
|
|
36
36
|
state.value = Number(attributes.value);
|
|
37
37
|
}
|
|
38
38
|
return (() => {
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
let root_0aka2e61 = template_0aka2e62(), element_0aka2e63 = root_0aka2e61.firstChild;
|
|
40
|
+
template_u1.setList(element_0aka2e63, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`);
|
|
41
|
+
template_u1.setProperties(element_0aka2e63, this?.attributes);
|
|
42
|
+
template_u1.setProperties(element_0aka2e63, attributes);
|
|
43
|
+
template_u1.setList(element_0aka2e63, 'class', () => state.active && '--active');
|
|
44
|
+
template_u1.on(element_0aka2e63, 'focusin', () => {
|
|
45
45
|
state.active = true;
|
|
46
46
|
});
|
|
47
|
-
|
|
47
|
+
template_u1.on(element_0aka2e63, 'focusout', () => {
|
|
48
48
|
state.active = false;
|
|
49
49
|
});
|
|
50
|
-
|
|
50
|
+
template_u1.delegate(element_0aka2e63, 'input', (e) => {
|
|
51
51
|
state.value = Number(e.target.value);
|
|
52
52
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return
|
|
53
|
+
template_u1.onrender(element_0aka2e63, form.input.onrender(state));
|
|
54
|
+
template_u1.setProperty(element_0aka2e63, 'value', root(() => attributes?.value || state.value || 0));
|
|
55
|
+
return root_0aka2e61;
|
|
56
56
|
})();
|
|
57
57
|
}
|
|
58
58
|
;
|