@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,159 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component, on } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import { effect, onCleanup, untrack } from '@esportsplus/reactivity';
|
|
5
|
+
import form from '../form/index.js';
|
|
6
|
+
import './scss/index.scss';
|
|
7
|
+
const template_0tf9kxv2 = template_u1.template(`<div class='datalist'><div class='datalist-lens' aria-hidden='true'></div><div class='datalist-scroller' role='listbox' tabindex='0'><div class='datalist-track'></div></div><input class='datalist-tag' />`);
|
|
8
|
+
const template_0tf9kxv9 = template_u1.template(`<div class='datalist-option ' role='option'>`);
|
|
9
|
+
class ReactiveObject_0tf9kxv0 extends reactivity_u0.ReactiveObject {
|
|
10
|
+
#error = this[reactivity_u0.SIGNAL]('');
|
|
11
|
+
#selected;
|
|
12
|
+
#settled = this[reactivity_u0.SIGNAL](true);
|
|
13
|
+
constructor(_p0) {
|
|
14
|
+
super(null);
|
|
15
|
+
this.#selected = 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 selected() {
|
|
24
|
+
return reactivity_u0.read(this.#selected);
|
|
25
|
+
}
|
|
26
|
+
set selected(_v1) {
|
|
27
|
+
reactivity_u0.write(this.#selected, _v1);
|
|
28
|
+
}
|
|
29
|
+
get settled() {
|
|
30
|
+
return reactivity_u0.read(this.#settled);
|
|
31
|
+
}
|
|
32
|
+
set settled(_v2) {
|
|
33
|
+
reactivity_u0.write(this.#settled, _v2);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const DATALIST_LENS = Symbol.for('@esportsplus/ui/datalist.lens');
|
|
37
|
+
const DATALIST_OPTION = Symbol.for('@esportsplus/ui/datalist.option');
|
|
38
|
+
const DATALIST_SCROLLER = Symbol.for('@esportsplus/ui/datalist.scroller');
|
|
39
|
+
const SETTLE_DELAY = 140;
|
|
40
|
+
const STEPS = {
|
|
41
|
+
ArrowDown: 1,
|
|
42
|
+
ArrowUp: -1,
|
|
43
|
+
PageDown: 5,
|
|
44
|
+
PageUp: -5
|
|
45
|
+
};
|
|
46
|
+
let uid = 0;
|
|
47
|
+
export default component(function ({ options, selected, state = new ReactiveObject_0tf9kxv0(selected ?? Object.keys(options)[0]), ...attributes }) {
|
|
48
|
+
let keys = Object.keys(options), active = reactivity_u0.reactive(Object.fromEntries(keys.map(key => [key, false]))), height = 0, id = `datalist-${++uid}`, observer, previous, scroller, timer;
|
|
49
|
+
function clamp(index) {
|
|
50
|
+
return Math.min(Math.max(index, 0), keys.length - 1);
|
|
51
|
+
}
|
|
52
|
+
function measure() {
|
|
53
|
+
let option = scroller?.querySelector('.datalist-option');
|
|
54
|
+
if (!scroller || !option) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
height = option.offsetHeight;
|
|
58
|
+
scroller.style.setProperty('--half', `${scroller.clientHeight / 2 / height}`);
|
|
59
|
+
paint();
|
|
60
|
+
}
|
|
61
|
+
function onscroll() {
|
|
62
|
+
if (!scroller || !height) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
paint();
|
|
66
|
+
let key = keys[clamp(Math.round(scroller.scrollTop / height))];
|
|
67
|
+
if (key !== String(state.selected)) {
|
|
68
|
+
state.selected = key;
|
|
69
|
+
}
|
|
70
|
+
state.settled = false;
|
|
71
|
+
clearTimeout(timer);
|
|
72
|
+
timer = setTimeout(settle, SETTLE_DELAY);
|
|
73
|
+
}
|
|
74
|
+
function paint() {
|
|
75
|
+
scroller.style.setProperty('--offset', `${scroller.scrollTop / height}`);
|
|
76
|
+
}
|
|
77
|
+
function scrollTo(index) {
|
|
78
|
+
scroller?.scrollTo({
|
|
79
|
+
behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth',
|
|
80
|
+
top: clamp(index) * height
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function settle() {
|
|
84
|
+
clearTimeout(timer);
|
|
85
|
+
state.settled = true;
|
|
86
|
+
}
|
|
87
|
+
let stop = effect(() => {
|
|
88
|
+
let key = String(state.selected);
|
|
89
|
+
untrack(() => {
|
|
90
|
+
if (previous !== undefined) {
|
|
91
|
+
active[previous] = false;
|
|
92
|
+
}
|
|
93
|
+
active[key] = true;
|
|
94
|
+
previous = key;
|
|
95
|
+
let index = keys.indexOf(key);
|
|
96
|
+
if (scroller && height && index !== -1 && index !== Math.round(scroller.scrollTop / height)) {
|
|
97
|
+
scrollTo(index);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
onCleanup(() => {
|
|
102
|
+
clearTimeout(timer);
|
|
103
|
+
observer?.disconnect();
|
|
104
|
+
stop();
|
|
105
|
+
});
|
|
106
|
+
return (() => {
|
|
107
|
+
let root_0tf9kxv1 = template_0tf9kxv2(), element_0tf9kxv3 = root_0tf9kxv1.firstChild, element_0tf9kxv4 = element_0tf9kxv3.firstElementChild, element_0tf9kxv5 = element_0tf9kxv4.nextElementSibling, element_0tf9kxv6 = element_0tf9kxv5.firstElementChild, element_0tf9kxv7 = element_0tf9kxv5.nextElementSibling;
|
|
108
|
+
template_u1.setProperties(element_0tf9kxv3, this?.attributes);
|
|
109
|
+
template_u1.setProperties(element_0tf9kxv3, attributes);
|
|
110
|
+
template_u1.setProperties(element_0tf9kxv4, this?.attributes?.[DATALIST_LENS]);
|
|
111
|
+
template_u1.setProperties(element_0tf9kxv4, attributes[DATALIST_LENS]);
|
|
112
|
+
template_u1.setProperties(element_0tf9kxv5, this?.attributes?.[DATALIST_SCROLLER]);
|
|
113
|
+
template_u1.setProperties(element_0tf9kxv5, attributes[DATALIST_SCROLLER]);
|
|
114
|
+
template_u1.setProperty(element_0tf9kxv5, 'aria-activedescendant', () => `${id}-${keys.indexOf(String(state.selected))}`);
|
|
115
|
+
template_u1.onconnect(element_0tf9kxv5, (element) => {
|
|
116
|
+
scroller = element;
|
|
117
|
+
measure();
|
|
118
|
+
scroller.scrollTop = clamp(keys.indexOf(String(state.selected))) * height;
|
|
119
|
+
paint();
|
|
120
|
+
on(element, 'scrollend', settle);
|
|
121
|
+
observer = new ResizeObserver(measure);
|
|
122
|
+
observer.observe(scroller);
|
|
123
|
+
});
|
|
124
|
+
template_u1.delegate(element_0tf9kxv5, 'keydown', (e) => {
|
|
125
|
+
let index = keys.indexOf(String(state.selected));
|
|
126
|
+
if (e.key in STEPS) {
|
|
127
|
+
index += STEPS[e.key];
|
|
128
|
+
}
|
|
129
|
+
else if (e.key === 'Home') {
|
|
130
|
+
index = 0;
|
|
131
|
+
}
|
|
132
|
+
else if (e.key === 'End') {
|
|
133
|
+
index = keys.length - 1;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
scrollTo(index);
|
|
140
|
+
});
|
|
141
|
+
template_u1.on(element_0tf9kxv5, 'scroll', onscroll);
|
|
142
|
+
template_u1.slot(element_0tf9kxv6, keys.map((key, index) => {
|
|
143
|
+
let root_0tf9kxv8 = template_0tf9kxv9(), element_0tf9kxva = root_0tf9kxv8.firstChild;
|
|
144
|
+
template_u1.setList(element_0tf9kxva, 'class', () => active[key] && '--active');
|
|
145
|
+
template_u1.setProperty(element_0tf9kxva, 'id', template_u1.interpolate([(id), "-", (index)]));
|
|
146
|
+
template_u1.setList(element_0tf9kxva, 'style', template_u1.interpolate(["--index: ", (index)]));
|
|
147
|
+
template_u1.setProperties(element_0tf9kxva, this?.attributes?.[DATALIST_OPTION]);
|
|
148
|
+
template_u1.setProperties(element_0tf9kxva, attributes[DATALIST_OPTION]);
|
|
149
|
+
template_u1.setProperty(element_0tf9kxva, 'aria-selected', () => active[key] ? 'true' : 'false');
|
|
150
|
+
template_u1.delegate(element_0tf9kxva, 'click', () => scrollTo(index));
|
|
151
|
+
template_u1.slot(element_0tf9kxva, options[key], 1);
|
|
152
|
+
return root_0tf9kxv8;
|
|
153
|
+
}), 1);
|
|
154
|
+
template_u1.setProperty(element_0tf9kxv7, 'name', attributes.name);
|
|
155
|
+
template_u1.onrender(element_0tf9kxv7, form.input.onrender(state));
|
|
156
|
+
template_u1.setProperty(element_0tf9kxv7, 'value', () => state.selected);
|
|
157
|
+
return root_0tf9kxv1;
|
|
158
|
+
})();
|
|
159
|
+
}, { lens: DATALIST_LENS, option: DATALIST_OPTION, scroller: DATALIST_SCROLLER });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.datalist{--background:transparent;--border-radius:var(--border-radius-700);--color:var(--color-text-500);--focus-color:var(--color-border-500);--focus-width:2px;--font-size:var(--font-size-400);--font-weight:var(--font-weight-500);--height:calc(var(--item-height) * 5);--item-height:40px;--padding:var(--size-200);--perspective:704px;--width:224px}.datalist-lens{--background:var(--color-border-300);--border-radius:var(--border-radius-600)}.datalist-option{--opacity-falloff:.55;--rotate:38deg;--scale:1.14;--scale-falloff:.34}.datalist{background:var(--background);border-radius:var(--border-radius);color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);padding:var(--padding);width:min(100%, var(--width));position:relative}.datalist-lens{top:50%;right:var(--padding);left:var(--padding);background:var(--background);border-radius:var(--border-radius);height:var(--item-height);pointer-events:none;position:absolute;transform:translateY(-50%)}.datalist-option{--t:clamp(-1, calc((var(--index) - var(--offset,0)) / var(--half,2.5)), 1);--t-abs:max(var(--t), var(--t) * -1);cursor:pointer;font-variant:tabular-nums;height:var(--item-height);opacity:calc(1 - var(--opacity-falloff) * var(--t-abs));scroll-snap-align:center;transform:scale(calc(var(--scale) - var(--scale-falloff) * var(--t-abs))) rotateX(calc(var(--rotate) * var(--t) * -1));-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;transition:none;display:flex}@media (prefers-reduced-motion:reduce){.datalist-option{opacity:1;transform:none}}.datalist-scroller{border-radius:var(--border-radius);height:var(--height);overscroll-behavior:contain;perspective:var(--perspective);scroll-snap-type:y mandatory;scrollbar-width:none;position:relative;overflow-y:auto;-webkit-mask-image:linear-gradient(#0000 0,#000 30% 70%,#0000 100%);mask-image:linear-gradient(#0000 0,#000 30% 70%,#0000 100%)}.datalist-scroller::-webkit-scrollbar{display:none}.datalist-scroller:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:calc(var(--focus-width) * -1)}.datalist-track{padding-block:calc((var(--height) - var(--item-height)) / 2)}.datalist-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[DATE_RANGE_PICKER_DAY]?: Attributes;
|
|
5
|
+
onapply?: (range: Range) => void;
|
|
6
|
+
state?: State;
|
|
7
|
+
today?: string;
|
|
8
|
+
value?: Range | null;
|
|
9
|
+
};
|
|
10
|
+
type Range = {
|
|
11
|
+
end: string;
|
|
12
|
+
start: string;
|
|
13
|
+
};
|
|
14
|
+
type State = {
|
|
15
|
+
end: string | null;
|
|
16
|
+
start: string | null;
|
|
17
|
+
};
|
|
18
|
+
declare const DATE_RANGE_PICKER_DAY: unique symbol;
|
|
19
|
+
declare function describe(range: Range): string;
|
|
20
|
+
declare function template(this: {
|
|
21
|
+
attributes?: Partial<A>;
|
|
22
|
+
} | void, { onapply, state, today, value, ...attributes }?: A): DocumentFragment | Text;
|
|
23
|
+
declare const _default: typeof template & {
|
|
24
|
+
readonly day: typeof DATE_RANGE_PICKER_DAY;
|
|
25
|
+
readonly describe: typeof describe;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
export type { Range, State };
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { computed, dispose, read, untrack } from '@esportsplus/reactivity';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
const template_1wcxcxi1 = template_u1.template(`<td class='date-range-picker-cell'>`);
|
|
6
|
+
const template_1wcxcxi3 = template_u1.template(`<td class='date-range-picker-cell' role='gridcell'><button class='date-range-picker-day' type='button'><!--$-->`);
|
|
7
|
+
const template_1wcxcxi7 = template_u1.template(`<span aria-hidden='true' class='date-range-picker-today'>`);
|
|
8
|
+
const template_1wcxcxi9 = template_u1.template(`<div class='date-range-picker-month'><p class='date-range-picker-month-title'></p><table class='date-range-picker-grid' role='grid'><thead><tr></tr></thead><tbody>`);
|
|
9
|
+
const template_1wcxcxif = template_u1.template(`<th scope='col'>`);
|
|
10
|
+
const template_1wcxcxii = template_u1.template(`<tr>`);
|
|
11
|
+
const template_1wcxcxil = template_u1.template(`<div class='date-range-picker-months'>`);
|
|
12
|
+
const template_1wcxcxio = template_u1.template(`<div class='date-range-picker'><div aria-label='Presets' class='date-range-picker-presets' role='group'></div><div class='date-range-picker-area'><div class='date-range-picker-nav'><button aria-label='Previous month' class='button date-range-picker-step' type='button'><svg aria-hidden='true' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><path d='M10 3.5 5.5 8l4.5 4.5' /></svg></button><button aria-label='Next month' class='button date-range-picker-step' type='button'><svg aria-hidden='true' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><path d='m6 3.5 4.5 4.5L6 12.5' /></svg></button></div><span aria-live='polite' class='date-range-picker-live'></span></div><div class='date-range-picker-footer'><div class='date-range-picker-status'><p class='date-range-picker-summary'></p><p class='date-range-picker-hint'></p></div><button class='button date-range-picker-clear' type='button'> Clear </button><button class='button date-range-picker-apply' type='button'><span class='date-range-picker-apply-labels'><span class='date-range-picker-apply-label date-range-picker-apply-label--done'><svg aria-hidden='true' class='date-range-picker-apply-icon' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 16 16'><path d='m3.5 8.5 3 3 6-7' /></svg><span class='date-range-picker-apply-text'>Applied</span></span><span class='date-range-picker-apply-label date-range-picker-apply-label--idle'>Apply</span></span></button></div><span aria-live='polite' class='date-range-picker-live'>`);
|
|
13
|
+
const template_1wcxcxi11 = template_u1.template(`<button class='button date-range-picker-preset' type='button'>`);
|
|
14
|
+
class ReactiveObject_1wcxcxi0 extends reactivity_u0.ReactiveObject {
|
|
15
|
+
#applied = this[reactivity_u0.SIGNAL](false);
|
|
16
|
+
#focused;
|
|
17
|
+
#hover;
|
|
18
|
+
#single = this[reactivity_u0.SIGNAL](false);
|
|
19
|
+
#view;
|
|
20
|
+
constructor(_p0, _p1, _p2) {
|
|
21
|
+
super(null);
|
|
22
|
+
this.#focused = this[reactivity_u0.SIGNAL](_p0);
|
|
23
|
+
this.#hover = this[reactivity_u0.SIGNAL](_p1);
|
|
24
|
+
this.#view = this[reactivity_u0.SIGNAL](_p2);
|
|
25
|
+
}
|
|
26
|
+
get applied() {
|
|
27
|
+
return reactivity_u0.read(this.#applied);
|
|
28
|
+
}
|
|
29
|
+
set applied(_v0) {
|
|
30
|
+
reactivity_u0.write(this.#applied, _v0);
|
|
31
|
+
}
|
|
32
|
+
get focused() {
|
|
33
|
+
return reactivity_u0.read(this.#focused);
|
|
34
|
+
}
|
|
35
|
+
set focused(_v1) {
|
|
36
|
+
reactivity_u0.write(this.#focused, _v1);
|
|
37
|
+
}
|
|
38
|
+
get hover() {
|
|
39
|
+
return reactivity_u0.read(this.#hover);
|
|
40
|
+
}
|
|
41
|
+
set hover(_v2) {
|
|
42
|
+
reactivity_u0.write(this.#hover, _v2);
|
|
43
|
+
}
|
|
44
|
+
get single() {
|
|
45
|
+
return reactivity_u0.read(this.#single);
|
|
46
|
+
}
|
|
47
|
+
set single(_v3) {
|
|
48
|
+
reactivity_u0.write(this.#single, _v3);
|
|
49
|
+
}
|
|
50
|
+
get view() {
|
|
51
|
+
return reactivity_u0.read(this.#view);
|
|
52
|
+
}
|
|
53
|
+
set view(_v4) {
|
|
54
|
+
reactivity_u0.write(this.#view, _v4);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const CELLS = 42;
|
|
58
|
+
const DATE_RANGE_PICKER_DAY = Symbol.for('@esportsplus/ui/date-range-picker.day');
|
|
59
|
+
const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
|
|
60
|
+
const REDUCED_MOTION = '(prefers-reduced-motion: reduce)';
|
|
61
|
+
const SLIDE = 56;
|
|
62
|
+
const TWO_MONTHS_AT = 540;
|
|
63
|
+
const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
64
|
+
function addDays(iso, days) {
|
|
65
|
+
let d = fromIso(iso);
|
|
66
|
+
return toIso(new Date(d.getFullYear(), d.getMonth(), d.getDate() + days));
|
|
67
|
+
}
|
|
68
|
+
function addMonths(iso, months) {
|
|
69
|
+
let d = fromIso(iso), last = new Date(d.getFullYear(), d.getMonth() + months + 1, 0);
|
|
70
|
+
return toIso(new Date(last.getFullYear(), last.getMonth(), Math.min(d.getDate(), last.getDate())));
|
|
71
|
+
}
|
|
72
|
+
function dayLabel(iso) {
|
|
73
|
+
return fromIso(iso).toLocaleDateString('en-US', { day: 'numeric', month: 'long', weekday: 'long', year: 'numeric' });
|
|
74
|
+
}
|
|
75
|
+
function daysBetween(a, b) {
|
|
76
|
+
return Math.round((fromIso(b).getTime() - fromIso(a).getTime()) / 86_400_000);
|
|
77
|
+
}
|
|
78
|
+
function describe(range) {
|
|
79
|
+
let days = daysBetween(range.start, range.end) + 1, sameYear = range.start.slice(0, 4) === range.end.slice(0, 4), span = range.start === range.end
|
|
80
|
+
? short(range.start, true)
|
|
81
|
+
: `${short(range.start, !sameYear)} to ${short(range.end, true)}`;
|
|
82
|
+
return `${span} · ${days} day${days === 1 ? '' : 's'}`;
|
|
83
|
+
}
|
|
84
|
+
function fromIso(iso) {
|
|
85
|
+
let [y, m, d] = iso.split('-').map(Number);
|
|
86
|
+
return new Date(y, m - 1, d);
|
|
87
|
+
}
|
|
88
|
+
function monthEnd(month) {
|
|
89
|
+
return toIso(new Date(Math.floor(month / 12), (month % 12) + 1, 0));
|
|
90
|
+
}
|
|
91
|
+
function monthIndex(iso) {
|
|
92
|
+
let [y, m] = iso.split('-').map(Number);
|
|
93
|
+
return y * 12 + m - 1;
|
|
94
|
+
}
|
|
95
|
+
function monthStart(month) {
|
|
96
|
+
return toIso(new Date(Math.floor(month / 12), month % 12, 1));
|
|
97
|
+
}
|
|
98
|
+
function monthTitle(month) {
|
|
99
|
+
return new Date(Math.floor(month / 12), month % 12, 1).toLocaleDateString('en-US', { month: 'long', year: 'numeric' });
|
|
100
|
+
}
|
|
101
|
+
function pad(n) {
|
|
102
|
+
return String(n).padStart(2, '0');
|
|
103
|
+
}
|
|
104
|
+
function presets(today) {
|
|
105
|
+
let month = monthIndex(today);
|
|
106
|
+
return [
|
|
107
|
+
{ label: 'Last 7 days', range: { end: today, start: addDays(today, -6) } },
|
|
108
|
+
{ label: 'Last 30 days', range: { end: today, start: addDays(today, -29) } },
|
|
109
|
+
{ label: 'This month', range: { end: monthEnd(month), start: monthStart(month) } },
|
|
110
|
+
{ label: 'Last month', range: { end: monthEnd(month - 1), start: monthStart(month - 1) } }
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
function short(iso, withYear) {
|
|
114
|
+
return fromIso(iso).toLocaleDateString('en-US', { day: 'numeric', month: 'short', year: withYear ? 'numeric' : undefined });
|
|
115
|
+
}
|
|
116
|
+
function template({ onapply, state, today = toIso(new Date()), value, ...attributes } = {}) {
|
|
117
|
+
let applied, area, defaults = this?.attributes, entering = 0, id = `date-range-picker-${Math.random().toString(36).slice(2, 8)}`, observer, pending = null, s = state || reactivity_u0.reactive({ end: value?.end ?? null, start: value?.start ?? null }), ui = new ReactiveObject_1wcxcxi0(null, null, null), viewCount = computed(() => ui.single ? 1 : 2), viewMonth = computed(() => {
|
|
118
|
+
if (ui.view !== null) {
|
|
119
|
+
return ui.view;
|
|
120
|
+
}
|
|
121
|
+
let month = monthIndex(s.start ?? today);
|
|
122
|
+
return s.end && !ui.single && monthIndex(s.end) === month ? month - 1 : month;
|
|
123
|
+
}), rangeHi = computed(() => {
|
|
124
|
+
if (s.start !== null && s.end === null) {
|
|
125
|
+
return ui.hover ? (ui.hover < s.start ? s.start : ui.hover) : s.start;
|
|
126
|
+
}
|
|
127
|
+
return s.end;
|
|
128
|
+
}), rangeLo = computed(() => {
|
|
129
|
+
if (s.start !== null && s.end === null && ui.hover) {
|
|
130
|
+
return ui.hover < s.start ? ui.hover : s.start;
|
|
131
|
+
}
|
|
132
|
+
return s.start;
|
|
133
|
+
}), tabbable = computed(() => {
|
|
134
|
+
let focused = ui.focused ?? s.start ?? today, month = monthIndex(focused), shown = read(viewMonth);
|
|
135
|
+
return month >= shown && month < shown + read(viewCount) ? focused : monthStart(shown);
|
|
136
|
+
});
|
|
137
|
+
function band(iso, col, last) {
|
|
138
|
+
let hi = read(rangeHi), lo = read(rangeLo);
|
|
139
|
+
if (!inRange(iso)) {
|
|
140
|
+
return '';
|
|
141
|
+
}
|
|
142
|
+
let rowEnd = col === 6 || iso === last, rowStart = col === 0 || iso.endsWith('-01');
|
|
143
|
+
if ((iso === lo && rowEnd) || (iso === hi && rowStart)) {
|
|
144
|
+
return '';
|
|
145
|
+
}
|
|
146
|
+
return `--band${iso === lo ? ' --band-lo' : ''}${iso === hi ? ' --band-hi' : ''}${rowStart && iso !== lo ? ' --band-start' : ''}${rowEnd && iso !== hi ? ' --band-end' : ''}`;
|
|
147
|
+
}
|
|
148
|
+
function cell(iso, col, last) {
|
|
149
|
+
if (!iso) {
|
|
150
|
+
return template_1wcxcxi1();
|
|
151
|
+
}
|
|
152
|
+
return (() => {
|
|
153
|
+
let root_1wcxcxi2 = template_1wcxcxi3(), element_1wcxcxi4 = root_1wcxcxi2.firstChild, element_1wcxcxi5 = element_1wcxcxi4.firstElementChild, element_1wcxcxi6 = element_1wcxcxi5.firstChild;
|
|
154
|
+
template_u1.setProperty(element_1wcxcxi4, 'aria-selected', () => String(inRange(iso) || iso === s.start || iso === s.end));
|
|
155
|
+
template_u1.setList(element_1wcxcxi4, 'class', () => band(iso, col, last));
|
|
156
|
+
template_u1.setProperty(element_1wcxcxi5, 'aria-label', dayLabel(iso));
|
|
157
|
+
template_u1.setProperty(element_1wcxcxi5, 'data-date', iso);
|
|
158
|
+
template_u1.setProperties(element_1wcxcxi5, iso === today ? { 'aria-current': 'date' } : {});
|
|
159
|
+
template_u1.setProperties(element_1wcxcxi5, defaults?.[DATE_RANGE_PICKER_DAY]);
|
|
160
|
+
template_u1.setProperties(element_1wcxcxi5, attributes[DATE_RANGE_PICKER_DAY]);
|
|
161
|
+
template_u1.setList(element_1wcxcxi5, 'class', () => dayClass(iso));
|
|
162
|
+
template_u1.setProperty(element_1wcxcxi5, 'tabindex', () => {
|
|
163
|
+
let day = read(tabbable);
|
|
164
|
+
return day === iso ? '0' : '-1';
|
|
165
|
+
});
|
|
166
|
+
template_u1.slot(element_1wcxcxi6, Number(iso.slice(8)));
|
|
167
|
+
template_u1.slot(element_1wcxcxi5, iso === today && template_1wcxcxi7(), 2);
|
|
168
|
+
return root_1wcxcxi2;
|
|
169
|
+
})();
|
|
170
|
+
}
|
|
171
|
+
function dayClass(iso) {
|
|
172
|
+
if (iso === s.start || iso === s.end) {
|
|
173
|
+
return '--active';
|
|
174
|
+
}
|
|
175
|
+
let hi = read(rangeHi), lo = read(rangeLo);
|
|
176
|
+
return (iso === lo || iso === hi) && picking() && ui.hover ? '--edge' : '';
|
|
177
|
+
}
|
|
178
|
+
function focus(iso) {
|
|
179
|
+
pending = iso;
|
|
180
|
+
requestAnimationFrame(settle);
|
|
181
|
+
}
|
|
182
|
+
function goTo(iso) {
|
|
183
|
+
ui.focused = iso;
|
|
184
|
+
if (picking()) {
|
|
185
|
+
ui.hover = iso;
|
|
186
|
+
}
|
|
187
|
+
reveal(iso);
|
|
188
|
+
focus(iso);
|
|
189
|
+
}
|
|
190
|
+
function inRange(iso) {
|
|
191
|
+
let hi = read(rangeHi), lo = read(rangeLo);
|
|
192
|
+
return lo !== null && hi !== null && lo !== hi && iso >= lo && iso <= hi;
|
|
193
|
+
}
|
|
194
|
+
function keydown(e) {
|
|
195
|
+
let target = e.target.closest('[data-date]');
|
|
196
|
+
if (!target) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
let focused = ui.focused ?? s.start ?? today, weekday = fromIso(focused).getDay(), years = e.shiftKey ? 12 : 1, moves = {
|
|
200
|
+
ArrowDown: () => addDays(focused, 7),
|
|
201
|
+
ArrowLeft: () => addDays(focused, -1),
|
|
202
|
+
ArrowRight: () => addDays(focused, 1),
|
|
203
|
+
ArrowUp: () => addDays(focused, -7),
|
|
204
|
+
End: () => addDays(focused, 6 - weekday),
|
|
205
|
+
Home: () => addDays(focused, -weekday),
|
|
206
|
+
PageDown: () => addMonths(focused, years),
|
|
207
|
+
PageUp: () => addMonths(focused, -years)
|
|
208
|
+
}, move = moves[e.key];
|
|
209
|
+
if (move) {
|
|
210
|
+
e.preventDefault();
|
|
211
|
+
goTo(move());
|
|
212
|
+
}
|
|
213
|
+
else if (e.key === 'Escape' && picking()) {
|
|
214
|
+
e.preventDefault();
|
|
215
|
+
s.start = null;
|
|
216
|
+
ui.hover = null;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function month(index) {
|
|
220
|
+
let first = fromIso(monthStart(index)), last = monthEnd(index), lead = first.getDay(), title = `${id}-${index}`, days = [];
|
|
221
|
+
for (let i = 0; i < CELLS; i++) {
|
|
222
|
+
let iso = toIso(new Date(first.getFullYear(), first.getMonth(), i - lead + 1));
|
|
223
|
+
days.push(monthIndex(iso) === index ? iso : null);
|
|
224
|
+
}
|
|
225
|
+
return (() => {
|
|
226
|
+
let root_1wcxcxi8 = template_1wcxcxi9(), element_1wcxcxia = root_1wcxcxi8.firstChild.firstElementChild, element_1wcxcxib = element_1wcxcxia.nextElementSibling, element_1wcxcxic = element_1wcxcxib.firstElementChild.firstElementChild, element_1wcxcxid = element_1wcxcxib.firstElementChild.nextElementSibling;
|
|
227
|
+
template_u1.setProperty(element_1wcxcxia, 'id', title);
|
|
228
|
+
template_u1.slot(element_1wcxcxia, monthTitle(index), 1);
|
|
229
|
+
template_u1.setProperty(element_1wcxcxib, 'aria-labelledby', title);
|
|
230
|
+
template_u1.slot(element_1wcxcxic, WEEKDAYS.map((day) => {
|
|
231
|
+
let root_1wcxcxie = template_1wcxcxif(), element_1wcxcxig = root_1wcxcxie.firstChild;
|
|
232
|
+
template_u1.setProperty(element_1wcxcxig, 'abbr', day);
|
|
233
|
+
template_u1.slot(element_1wcxcxig, day.slice(0, 2), 1);
|
|
234
|
+
return root_1wcxcxie;
|
|
235
|
+
}), 1);
|
|
236
|
+
template_u1.slot(element_1wcxcxid, [0, 1, 2, 3, 4, 5].map((week) => {
|
|
237
|
+
let root_1wcxcxih = template_1wcxcxii(), element_1wcxcxij = root_1wcxcxih.firstChild;
|
|
238
|
+
template_u1.slot(element_1wcxcxij, days.slice(week * 7, week * 7 + 7).map((iso, col) => cell(iso, col, last)), 1);
|
|
239
|
+
return root_1wcxcxih;
|
|
240
|
+
}), 1);
|
|
241
|
+
return root_1wcxcxi8;
|
|
242
|
+
})();
|
|
243
|
+
}
|
|
244
|
+
function months(view, count) {
|
|
245
|
+
return (() => {
|
|
246
|
+
let root_1wcxcxik = template_1wcxcxil(), element_1wcxcxim = root_1wcxcxik.firstChild;
|
|
247
|
+
template_u1.onconnect(element_1wcxcxim, (element) => {
|
|
248
|
+
let direction = Number(element.dataset.entering);
|
|
249
|
+
settle();
|
|
250
|
+
if (!direction) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
delete element.dataset.entering;
|
|
254
|
+
element.style.removeProperty('opacity');
|
|
255
|
+
element.animate(matchMedia(REDUCED_MOTION).matches
|
|
256
|
+
? { opacity: [0, 1] }
|
|
257
|
+
: { filter: ['blur(4px)', 'blur(0px)'], opacity: [0, 1], transform: [`translateX(${direction * SLIDE}px)`, 'none'] }, { duration: 250, easing: EASE_OUT });
|
|
258
|
+
});
|
|
259
|
+
template_u1.onrender(element_1wcxcxim, (element) => {
|
|
260
|
+
if (!entering) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
element.dataset.entering = String(entering);
|
|
264
|
+
element.style.opacity = '0';
|
|
265
|
+
entering = 0;
|
|
266
|
+
});
|
|
267
|
+
template_u1.slot(element_1wcxcxim, Array.from({ length: count }, (_, i) => month(view + i)), 1);
|
|
268
|
+
return root_1wcxcxik;
|
|
269
|
+
})();
|
|
270
|
+
}
|
|
271
|
+
function picking() {
|
|
272
|
+
return s.start !== null && s.end === null;
|
|
273
|
+
}
|
|
274
|
+
function reveal(iso) {
|
|
275
|
+
let m = monthIndex(iso), shown = read(viewMonth);
|
|
276
|
+
if (m < shown) {
|
|
277
|
+
showView(m);
|
|
278
|
+
}
|
|
279
|
+
else if (m > shown + read(viewCount) - 1) {
|
|
280
|
+
showView(m - read(viewCount) + 1);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
showView(shown);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function select(iso) {
|
|
287
|
+
let start = s.start;
|
|
288
|
+
ui.applied = false;
|
|
289
|
+
ui.focused = iso;
|
|
290
|
+
reveal(iso);
|
|
291
|
+
if (!picking() || start === null) {
|
|
292
|
+
s.start = iso;
|
|
293
|
+
s.end = null;
|
|
294
|
+
ui.hover = iso;
|
|
295
|
+
}
|
|
296
|
+
else if (iso < start) {
|
|
297
|
+
s.end = start;
|
|
298
|
+
s.start = iso;
|
|
299
|
+
ui.hover = null;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
s.end = iso;
|
|
303
|
+
ui.hover = null;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function setRange(range) {
|
|
307
|
+
let shown = read(viewMonth);
|
|
308
|
+
ui.applied = false;
|
|
309
|
+
ui.hover = null;
|
|
310
|
+
s.end = range?.end ?? null;
|
|
311
|
+
s.start = range?.start ?? null;
|
|
312
|
+
if (!range) {
|
|
313
|
+
showView(shown);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
ui.focused = range.start;
|
|
317
|
+
let end = monthIndex(range.end), visible = monthIndex(range.start) >= shown && end <= shown + read(viewCount) - 1;
|
|
318
|
+
showView(visible ? shown : Math.max(monthIndex(range.start), end - read(viewCount) + 1));
|
|
319
|
+
}
|
|
320
|
+
function settle() {
|
|
321
|
+
let button = pending && area?.querySelector(`.date-range-picker-months:not([data-exiting]):not([data-stale]) [data-date='${pending}']`);
|
|
322
|
+
if (!button) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
pending = null;
|
|
326
|
+
button.focus({ preventScroll: true });
|
|
327
|
+
}
|
|
328
|
+
function showView(next) {
|
|
329
|
+
let shown = read(viewMonth);
|
|
330
|
+
if (next !== shown && area) {
|
|
331
|
+
let current = area.querySelector(':scope > .date-range-picker-months:not([data-exiting]):not([data-stale])');
|
|
332
|
+
entering = next > shown ? 1 : -1;
|
|
333
|
+
if (current) {
|
|
334
|
+
current.dataset.stale = '';
|
|
335
|
+
let direction = entering, ghost = current.cloneNode(true);
|
|
336
|
+
ghost.dataset.exiting = '';
|
|
337
|
+
ghost.inert = true;
|
|
338
|
+
ghost.style.left = `${current.offsetLeft}px`;
|
|
339
|
+
ghost.style.top = `${current.offsetTop}px`;
|
|
340
|
+
ghost.style.width = `${current.offsetWidth}px`;
|
|
341
|
+
area.append(ghost);
|
|
342
|
+
ghost.animate(matchMedia(REDUCED_MOTION).matches
|
|
343
|
+
? { opacity: [1, 0] }
|
|
344
|
+
: { filter: ['blur(0px)', 'blur(2px)'], opacity: [1, 0], transform: ['none', `translateX(${direction * -SLIDE * 0.6}px)`] }, { duration: 180, easing: EASE_OUT, fill: 'forwards' }).onfinish = () => ghost.remove();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
ui.view = next;
|
|
348
|
+
}
|
|
349
|
+
function step(months) {
|
|
350
|
+
let focused = ui.focused ?? s.start ?? today;
|
|
351
|
+
showView(read(viewMonth) + months);
|
|
352
|
+
ui.focused = addMonths(focused, months);
|
|
353
|
+
}
|
|
354
|
+
function summary() {
|
|
355
|
+
if (s.start !== null && s.end !== null) {
|
|
356
|
+
return describe({ end: s.end, start: s.start });
|
|
357
|
+
}
|
|
358
|
+
return s.start !== null ? `From ${short(s.start, true)}` : 'No dates selected';
|
|
359
|
+
}
|
|
360
|
+
return (() => {
|
|
361
|
+
let root_1wcxcxin = template_1wcxcxio(), element_1wcxcxip = root_1wcxcxin.firstChild, element_1wcxcxiq = element_1wcxcxip.firstElementChild, element_1wcxcxir = element_1wcxcxiq.nextElementSibling, element_1wcxcxis = element_1wcxcxir.firstElementChild.firstElementChild, element_1wcxcxit = element_1wcxcxis.nextElementSibling, element_1wcxcxiu = element_1wcxcxir.firstElementChild.nextElementSibling, element_1wcxcxiv = element_1wcxcxir.nextElementSibling.firstElementChild.firstElementChild, element_1wcxcxiw = element_1wcxcxiv.nextElementSibling, element_1wcxcxix = element_1wcxcxir.nextElementSibling.firstElementChild.nextElementSibling, element_1wcxcxiy = element_1wcxcxix.nextElementSibling, element_1wcxcxiz = element_1wcxcxir.nextElementSibling.nextElementSibling;
|
|
362
|
+
template_u1.setProperties(element_1wcxcxip, defaults);
|
|
363
|
+
template_u1.setProperties(element_1wcxcxip, attributes);
|
|
364
|
+
template_u1.onconnect(element_1wcxcxip, (element) => {
|
|
365
|
+
observer = new ResizeObserver(([entry]) => {
|
|
366
|
+
ui.single = entry.contentRect.width < TWO_MONTHS_AT;
|
|
367
|
+
});
|
|
368
|
+
observer.observe(element);
|
|
369
|
+
});
|
|
370
|
+
template_u1.ondisconnect(element_1wcxcxip, () => {
|
|
371
|
+
clearTimeout(applied);
|
|
372
|
+
observer?.disconnect();
|
|
373
|
+
dispose(rangeHi);
|
|
374
|
+
dispose(rangeLo);
|
|
375
|
+
dispose(tabbable);
|
|
376
|
+
dispose(viewCount);
|
|
377
|
+
dispose(viewMonth);
|
|
378
|
+
});
|
|
379
|
+
template_u1.slot(element_1wcxcxiq, presets(today).map((chip) => {
|
|
380
|
+
let root_1wcxcxi10 = template_1wcxcxi11(), element_1wcxcxi12 = root_1wcxcxi10.firstChild;
|
|
381
|
+
template_u1.setProperty(element_1wcxcxi12, 'aria-pressed', () => String(s.start === chip.range.start && s.end === chip.range.end));
|
|
382
|
+
template_u1.delegate(element_1wcxcxi12, 'click', () => setRange(chip.range));
|
|
383
|
+
template_u1.slot(element_1wcxcxi12, chip.label, 1);
|
|
384
|
+
return root_1wcxcxi10;
|
|
385
|
+
}), 1);
|
|
386
|
+
template_u1.delegate(element_1wcxcxir, 'click', (e) => {
|
|
387
|
+
let day = e.target.closest('[data-date]');
|
|
388
|
+
if (day?.dataset.date) {
|
|
389
|
+
select(day.dataset.date);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
template_u1.delegate(element_1wcxcxir, 'keydown', keydown);
|
|
393
|
+
template_u1.on(element_1wcxcxir, 'mouseleave', () => {
|
|
394
|
+
if (picking()) {
|
|
395
|
+
ui.hover = null;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
template_u1.delegate(element_1wcxcxir, 'pointerover', (e) => {
|
|
399
|
+
if (e.pointerType === 'touch' || !picking()) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
let day = e.target.closest('[data-date]');
|
|
403
|
+
if (day?.dataset.date && !day.closest('[data-exiting]')) {
|
|
404
|
+
ui.hover = day.dataset.date;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
template_u1.onrender(element_1wcxcxir, (element) => {
|
|
408
|
+
area = element;
|
|
409
|
+
});
|
|
410
|
+
template_u1.delegate(element_1wcxcxis, 'click', () => step(-1));
|
|
411
|
+
template_u1.delegate(element_1wcxcxit, 'click', () => step(1));
|
|
412
|
+
new template_u1.EffectSlot(element_1wcxcxiu, () => Array.from({ length: read(viewCount) }, (_, i) => monthTitle(read(viewMonth) + i)).join(' and '), 1);
|
|
413
|
+
new template_u1.EffectSlot(element_1wcxcxir, () => {
|
|
414
|
+
let count = read(viewCount), view = read(viewMonth);
|
|
415
|
+
return untrack(() => months(view, count));
|
|
416
|
+
}, 2);
|
|
417
|
+
template_u1.setList(element_1wcxcxiv, 'class', () => s.start !== null && '--active');
|
|
418
|
+
new template_u1.EffectSlot(element_1wcxcxiv, summary, 1);
|
|
419
|
+
new template_u1.EffectSlot(element_1wcxcxiw, () => s.start !== null && s.end !== null ? '' : picking() ? 'Pick an end date' : 'Pick a start date', 1);
|
|
420
|
+
template_u1.setList(element_1wcxcxix, 'class', () => s.start === null && '--disabled');
|
|
421
|
+
template_u1.setProperty(element_1wcxcxix, 'inert', () => s.start === null);
|
|
422
|
+
template_u1.delegate(element_1wcxcxix, 'click', () => setRange(null));
|
|
423
|
+
template_u1.setList(element_1wcxcxiy, 'class', () => ui.applied && '--applied');
|
|
424
|
+
template_u1.setProperty(element_1wcxcxiy, 'disabled', () => s.start === null || s.end === null);
|
|
425
|
+
template_u1.delegate(element_1wcxcxiy, 'click', () => {
|
|
426
|
+
if (s.start === null || s.end === null) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
onapply?.({ end: s.end, start: s.start });
|
|
430
|
+
ui.applied = true;
|
|
431
|
+
clearTimeout(applied);
|
|
432
|
+
applied = setTimeout(() => {
|
|
433
|
+
ui.applied = false;
|
|
434
|
+
}, 1600);
|
|
435
|
+
});
|
|
436
|
+
new template_u1.EffectSlot(element_1wcxcxiz, () => ui.applied ? `Applied ${summary()}` : '', 1);
|
|
437
|
+
return root_1wcxcxin;
|
|
438
|
+
})();
|
|
439
|
+
}
|
|
440
|
+
function toIso(d) {
|
|
441
|
+
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
442
|
+
}
|
|
443
|
+
export default Object.assign(template, { day: DATE_RANGE_PICKER_DAY, describe });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.date-range-picker{--accent:var(--color-text-500);--accent-contrast:var(--color-white-300);--background:var(--color-white-300);--band:oklch(from var(--color-text-500) l c h / .07);--border:var(--color-border-300);--box-shadow:0 0 0 1px oklch(from var(--color-black-300) l c h / .06), 0 1px 2px oklch(from var(--color-black-300) l c h / .06), 0 6px 16px -6px oklch(from var(--color-black-300) l c h / .12);--color-muted:var(--color-text-300);--day-size:36px;--edge:oklch(from var(--color-text-500) l c h / .14);--focus-ring:oklch(from var(--color-text-500) l c h / .38);--font-size:calc(var(--font-size-400) * .875);--font-size-small:calc(var(--font-size-400) * .75);--font-size-title:calc(var(--font-size-400) * .9375);--foreground:var(--color-text-500);--hover:oklch(from var(--color-text-500) l c h / .05);--icon-duration:.446s;--icon-timing-function:linear(0, .118, .319, .509, .657, .769, .848, .901, .937, .96, .975, .984, .99, .994, 1);--radius:24px;--row-height:40px;--width:600px;background:var(--background);border-radius:var(--radius);box-shadow:var(--box-shadow);color:var(--foreground);font-size:var(--font-size);max-width:100%;width:var(--width);padding:16px}.date-range-picker-apply{--background-default:var(--accent);--color-default:var(--accent-contrast);--padding-horizontal:16px;--padding-vertical:0px;font-weight:var(--font-weight-500);border-radius:999px;height:36px}.date-range-picker-apply:disabled{opacity:.4}.date-range-picker-apply:not(:disabled):active{scale:.96}.date-range-picker-apply-label{grid-area:1/1;justify-content:center;align-items:center;gap:6px;display:flex}.date-range-picker-apply-label--idle,.date-range-picker-apply-text{transition:filter .2s ease-out,opacity .2s ease-out}.--applied .date-range-picker-apply-label--idle{filter:blur(4px);opacity:0}.date-range-picker-apply-icon{filter:blur(4px);opacity:0;height:16px;transition:filter var(--icon-duration) var(--icon-timing-function), opacity var(--icon-duration) var(--icon-timing-function), scale var(--icon-duration) var(--icon-timing-function);width:16px;scale:.25}.--applied .date-range-picker-apply-icon{filter:none;opacity:1;scale:1}.date-range-picker-apply-labels{display:grid}.date-range-picker-apply-text{filter:blur(4px);opacity:0}.--applied .date-range-picker-apply-text{filter:none;opacity:1}.date-range-picker-apply,.date-range-picker-clear,.date-range-picker-preset,.date-range-picker-step{font-size:var(--font-size);outline:0 solid var(--focus-ring);outline-offset:2px;-webkit-user-select:none;user-select:none}.date-range-picker-apply:focus-visible,.date-range-picker-clear:focus-visible,.date-range-picker-preset:focus-visible,.date-range-picker-step:focus-visible{outline-width:2px}.date-range-picker-area{height:calc(var(--row-height) + 32px + var(--row-height) * 6 + 8px);margin:-4px;padding:4px;position:relative;overflow:hidden}.date-range-picker-cell{height:var(--row-height);padding:0;position:relative}.date-range-picker-cell.--band:before{background:var(--band);content:"";position:absolute;inset:2px 0}.date-range-picker-cell.--band-end:before{border-top-right-radius:999px;border-bottom-right-radius:999px}.date-range-picker-cell.--band-hi:before{right:50%}.date-range-picker-cell.--band-lo:before{left:50%}.date-range-picker-cell.--band-start:before{border-top-left-radius:999px;border-bottom-left-radius:999px}.date-range-picker-clear{--background-hover:var(--hover);--color-default:var(--color-muted);--color-hover:var(--foreground);--padding-horizontal:14px;--padding-vertical:0px;outline-offset:0;border-radius:999px;height:36px}.date-range-picker-clear:active{scale:.96}.date-range-picker-clear.--disabled{opacity:.4}.date-range-picker-day{color:var(--foreground);cursor:pointer;font:inherit;font-variant-numeric:tabular-nums;height:var(--day-size);outline:0 solid var(--focus-ring);outline-offset:1px;touch-action:manipulation;-webkit-user-select:none;user-select:none;width:var(--day-size);background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;margin:0 auto;padding:0;transition:background-color .15s ease-out,scale .15s ease-out;display:flex;position:relative}.date-range-picker-day:active{scale:.96}.date-range-picker-day:focus-visible{outline-width:2px}.date-range-picker-day:hover{background:var(--band)}.date-range-picker-day.--edge{background:var(--edge)}.date-range-picker-day.--active{background:var(--accent);color:var(--accent-contrast)}.date-range-picker-footer{border-top:1px solid var(--border);align-items:center;gap:8px;height:56px;margin:12px -16px 0;padding:12px 16px 0;display:flex}.date-range-picker-grid{border-collapse:collapse;table-layout:fixed;width:100%}.date-range-picker-grid th{color:var(--color-muted);font-size:var(--font-size-small);font-weight:var(--font-weight-500);text-align:center;height:32px;padding:0}.date-range-picker-hint{color:var(--color-muted);font-size:var(--font-size-small);text-overflow:ellipsis;white-space:nowrap;height:16px;line-height:16px;overflow:hidden}.date-range-picker-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.date-range-picker-month{flex:1 1 0;min-width:0}.date-range-picker-month-title{font-size:var(--font-size-title);font-weight:var(--font-weight-500);height:var(--row-height);justify-content:center;align-items:center;display:flex}.date-range-picker-months{gap:24px;display:flex}.date-range-picker-months[data-exiting]{pointer-events:none;position:absolute}.date-range-picker-nav{pointer-events:none;z-index:1;justify-content:space-between;display:flex;position:absolute;inset:4px 4px auto}.date-range-picker-presets{scrollbar-width:none;gap:6px;margin:-4px -16px 8px;padding:4px 16px;display:flex;overflow-x:auto}.date-range-picker-preset{--background-hover:var(--hover);--color-default:var(--color-muted);--color-hover:var(--foreground);--padding-horizontal:14px;--padding-vertical:0px;box-shadow:inset 0 0 0 1px var(--border);border-radius:999px;flex-shrink:0;height:36px}.date-range-picker-preset:active{scale:.96}.date-range-picker-preset[aria-pressed=true]{--background-default:var(--accent);--background-hover:var(--accent);--color-default:var(--accent-contrast);--color-hover:var(--accent-contrast);box-shadow:none}.date-range-picker-status{flex:1 1 0;min-width:0}.date-range-picker-step{--background-hover:var(--hover);--color-default:var(--color-muted);--color-hover:var(--foreground);--padding-horizontal:0px;--padding-vertical:0px;outline-offset:0;pointer-events:auto;touch-action:manipulation;border-radius:50%;width:40px;height:40px}.date-range-picker-step:active{scale:.96}.date-range-picker-step svg{width:16px;height:16px}.date-range-picker-summary{color:var(--color-muted);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.date-range-picker-summary.--active{color:var(--foreground)}.date-range-picker-today{background:currentColor;border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:50%;translate:-50%}@media (prefers-reduced-motion:reduce){.date-range-picker-apply-icon{filter:none;scale:1}.date-range-picker-day{transition:background-color .15s ease-out}}}
|
|
2
|
+
/*$vite$:1*/
|