@esportsplus/ui 0.54.0 → 0.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -4
- package/build/components/accordion/index.d.ts +2157 -8
- package/build/components/accordion/index.js +25 -11
- package/build/components/accordion/more.d.ts +20 -0
- package/build/components/accordion/more.js +76 -0
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/announcement-banner/index.d.ts +33 -0
- package/build/components/announcement-banner/index.js +61 -0
- package/build/components/announcement-banner/scss/index.scss +2 -0
- package/build/components/autosave/index.d.ts +12 -0
- package/build/components/autosave/index.js +140 -0
- package/build/components/autosave/scss/index.scss +2 -0
- package/build/components/back-to-top/index.d.ts +16 -0
- package/build/components/back-to-top/index.js +182 -0
- package/build/components/back-to-top/scss/index.scss +2 -0
- package/build/components/bento-grid/index.d.ts +25 -0
- package/build/components/bento-grid/index.js +38 -0
- package/build/components/bento-grid/scss/index.scss +2 -0
- package/build/components/bento-grid-spotlight/index.d.ts +35 -0
- package/build/components/bento-grid-spotlight/index.js +108 -0
- package/build/components/bento-grid-spotlight/scss/index.scss +2 -0
- package/build/components/bookmark-button/index.d.ts +23 -0
- package/build/components/bookmark-button/index.js +120 -0
- package/build/components/bookmark-button/scss/index.scss +2 -0
- package/build/components/breadcrumb/ellipsis.d.ts +12 -0
- package/build/components/breadcrumb/ellipsis.js +11 -0
- package/build/components/breadcrumb/index.d.ts +29 -0
- package/build/components/breadcrumb/index.js +19 -0
- package/build/components/breadcrumb/item.d.ts +12 -0
- package/build/components/breadcrumb/item.js +9 -0
- package/build/components/breadcrumb/link.d.ts +15 -0
- package/build/components/breadcrumb/link.js +14 -0
- package/build/components/breadcrumb/list.d.ts +12 -0
- package/build/components/breadcrumb/list.js +9 -0
- package/build/components/breadcrumb/menu.d.ts +13 -0
- package/build/components/breadcrumb/menu.js +16 -0
- package/build/components/breadcrumb/page.d.ts +12 -0
- package/build/components/breadcrumb/page.js +9 -0
- package/build/components/breadcrumb/scss/index.scss +2 -0
- package/build/components/breadcrumb/separator.d.ts +12 -0
- package/build/components/breadcrumb/separator.js +11 -0
- package/build/components/breadcrumb/svg/caret.svg +1 -0
- package/build/components/breadcrumb/svg/chevron.svg +1 -0
- package/build/components/breadcrumb/svg/more.svg +1 -0
- package/build/components/breadcrumbs/index.d.ts +27 -0
- package/build/components/breadcrumbs/index.js +324 -0
- package/build/components/breadcrumbs/scss/index.scss +2 -0
- package/build/components/button/copy.d.ts +21 -0
- package/build/components/button/copy.js +48 -0
- package/build/components/button/faces.d.ts +10 -0
- package/build/components/button/faces.js +16 -0
- package/build/components/button/fan.d.ts +24 -0
- package/build/components/button/fan.js +117 -0
- package/build/components/button/hold.d.ts +31 -0
- package/build/components/button/hold.js +117 -0
- package/build/components/button/icons.d.ts +6 -0
- package/build/components/button/icons.js +12 -0
- package/build/components/button/index.d.ts +14 -0
- package/build/components/button/index.js +8 -0
- package/build/components/button/kbd.d.ts +15 -0
- package/build/components/button/kbd.js +106 -0
- package/build/components/button/loading.d.ts +22 -0
- package/build/components/button/loading.js +60 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/svg/plus.svg +1 -0
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/card-input/index.d.ts +31 -0
- package/build/components/card-input/index.js +562 -0
- package/build/components/card-input/scss/index.scss +2 -0
- package/build/components/carousel-3d/index.d.ts +27 -0
- package/build/components/carousel-3d/index.js +248 -0
- package/build/components/carousel-3d/scss/index.scss +2 -0
- package/build/components/checkbox/index.d.ts +1447 -11
- package/build/components/checkbox/index.js +50 -66
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/checkbox-group/index.d.ts +30 -0
- package/build/components/checkbox-group/index.js +101 -0
- package/build/components/checkbox-group/scss/index.scss +2 -0
- package/build/components/clipboard/copy.d.ts +21 -5
- package/build/components/clipboard/copy.js +28 -29
- package/build/components/clipboard/index.d.ts +2165 -1435
- package/build/components/clipboard/index.js +2 -3
- package/build/components/code-morph/index.d.ts +25 -0
- package/build/components/code-morph/index.js +401 -0
- package/build/components/code-morph/scss/index.scss +2 -0
- package/build/components/collapsible-sidebar/index.d.ts +41 -0
- package/build/components/collapsible-sidebar/index.js +105 -0
- package/build/components/collapsible-sidebar/scss/index.scss +2 -0
- package/build/components/color-picker/index.d.ts +19 -0
- package/build/components/color-picker/index.js +569 -0
- package/build/components/color-picker/scss/index.scss +2 -0
- package/build/components/command/constants.d.ts +3 -0
- package/build/components/command/constants.js +3 -0
- package/build/components/command/index.d.ts +30 -0
- package/build/components/command/index.js +188 -0
- package/build/components/command/scss/index.scss +2 -0
- package/build/components/command-palette/index.d.ts +51 -0
- package/build/components/command-palette/index.js +319 -0
- package/build/components/command-palette/scss/index.scss +2 -0
- package/build/components/composer/index.d.ts +29 -0
- package/build/components/composer/index.js +79 -0
- package/build/components/composer/scss/index.scss +2 -0
- package/build/components/composer/svg/arrow-up.svg +1 -0
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/contribution-heatmap/index.d.ts +30 -0
- package/build/components/contribution-heatmap/index.js +236 -0
- package/build/components/contribution-heatmap/scss/index.scss +2 -0
- package/build/components/counter/index.d.ts +3 -1
- package/build/components/counter/index.js +54 -31
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.d.ts +37 -0
- package/build/components/datalist/index.js +159 -0
- package/build/components/datalist/scss/index.scss +2 -0
- package/build/components/date-range-picker/index.d.ts +28 -0
- package/build/components/date-range-picker/index.js +443 -0
- package/build/components/date-range-picker/scss/index.scss +2 -0
- package/build/components/dock/index.d.ts +24 -0
- package/build/components/dock/index.js +200 -0
- package/build/components/dock/scss/index.scss +2 -0
- package/build/components/dynamic-island/index.d.ts +23 -0
- package/build/components/dynamic-island/index.js +179 -0
- package/build/components/dynamic-island/scss/index.scss +2 -0
- package/build/components/email-typo-fix/index.d.ts +28 -0
- package/build/components/email-typo-fix/index.js +416 -0
- package/build/components/email-typo-fix/scss/index.scss +2 -0
- package/build/components/expanding-card/index.d.ts +26 -0
- package/build/components/expanding-card/index.js +265 -0
- package/build/components/expanding-card/scss/index.scss +2 -0
- package/build/components/feature-spotlight/index.d.ts +37 -0
- package/build/components/feature-spotlight/index.js +248 -0
- package/build/components/feature-spotlight/scss/index.scss +2 -0
- package/build/components/file-tree/index.d.ts +31 -0
- package/build/components/file-tree/index.js +208 -0
- package/build/components/file-tree/scss/index.scss +2 -0
- package/build/components/filter-grid/index.d.ts +23 -0
- package/build/components/filter-grid/index.js +240 -0
- package/build/components/filter-grid/scss/index.scss +2 -0
- package/build/components/form/action.d.ts +1 -1
- package/build/components/form/action.js +9 -12
- package/build/components/form/index.d.ts +1 -1
- package/build/components/form/scss/index.scss +1 -1
- package/build/components/gradient-text/index.d.ts +19 -0
- package/build/components/gradient-text/index.js +14 -0
- package/build/components/gradient-text/scss/index.scss +2 -0
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/header/index.d.ts +41 -0
- package/build/components/header/index.js +281 -0
- package/build/components/header/scss/index.scss +2 -0
- package/build/components/highlight/index.d.ts +25 -0
- package/build/components/highlight/index.js +218 -0
- package/build/components/highlight/scss/index.scss +2 -0
- package/build/components/hover-card/index.d.ts +47 -0
- package/build/components/hover-card/index.js +197 -0
- package/build/components/hover-card/scss/index.scss +2 -0
- package/build/components/icon/index.d.ts +11 -2
- package/build/components/icon/index.js +6 -6
- package/build/components/image/index.d.ts +14 -0
- package/build/components/image/index.js +62 -0
- package/build/components/image/scss/index.scss +2 -0
- package/build/components/index.d.ts +96 -1
- package/build/components/index.js +96 -1
- package/build/components/inline-edit/index.d.ts +30 -0
- package/build/components/inline-edit/index.js +108 -0
- package/build/components/inline-edit/scss/index.scss +2 -0
- package/build/components/input/index.d.ts +8 -2
- package/build/components/input/index.js +12 -13
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/kanban-board/index.d.ts +23 -0
- package/build/components/kanban-board/index.js +235 -0
- package/build/components/kanban-board/scss/index.scss +2 -0
- package/build/components/lightbox/index.d.ts +32 -0
- package/build/components/lightbox/index.js +396 -0
- package/build/components/lightbox/scss/index.scss +2 -0
- package/build/components/lightbox/spring.d.ts +16 -0
- package/build/components/lightbox/spring.js +71 -0
- package/build/components/line-shadow-text/index.d.ts +17 -0
- package/build/components/line-shadow-text/index.js +15 -0
- package/build/components/line-shadow-text/scss/index.scss +2 -0
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.js +5 -7
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/log/index.d.ts +20 -0
- package/build/components/log/index.js +125 -0
- package/build/components/log/scss/index.scss +2 -0
- package/build/components/long-press/bind.d.ts +21 -0
- package/build/components/long-press/bind.js +136 -0
- package/build/components/long-press/button.d.ts +21 -0
- package/build/components/long-press/button.js +25 -0
- package/build/components/long-press/index.d.ts +2181 -0
- package/build/components/long-press/index.js +4 -0
- package/build/components/long-press/scss/index.scss +2 -0
- package/build/components/marquee/index.d.ts +20 -0
- package/build/components/marquee/index.js +236 -0
- package/build/components/marquee/scss/index.scss +2 -0
- package/build/components/modal/index.d.ts +24 -0
- package/build/components/modal/index.js +75 -0
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/morphing-button/index.d.ts +24 -0
- package/build/components/morphing-button/index.js +127 -0
- package/build/components/morphing-button/scss/index.scss +2 -0
- package/build/components/morphing-nav/index.d.ts +38 -0
- package/build/components/morphing-nav/index.js +342 -0
- package/build/components/morphing-nav/scss/index.scss +2 -0
- package/build/components/multi-step-form/index.d.ts +32 -0
- package/build/components/multi-step-form/index.js +305 -0
- package/build/components/multi-step-form/scss/index.scss +2 -0
- package/build/components/nested-menu/index.d.ts +27 -0
- package/build/components/nested-menu/index.js +374 -0
- package/build/components/nested-menu/scss/index.scss +2 -0
- package/build/components/notification-bell/index.d.ts +13 -0
- package/build/components/notification-bell/index.js +87 -0
- package/build/components/notification-bell/scss/index.scss +2 -0
- package/build/components/notification-bell/svg/bell.svg +1 -0
- package/build/components/onboarding-checklist/index.d.ts +29 -0
- package/build/components/onboarding-checklist/index.js +196 -0
- package/build/components/onboarding-checklist/scss/index.scss +2 -0
- package/build/components/overlay/index.d.ts +11 -2
- package/build/components/overlay/index.js +7 -7
- package/build/components/page-dots/index.d.ts +24 -0
- package/build/components/page-dots/index.js +116 -0
- package/build/components/page-dots/scss/index.scss +2 -0
- package/build/components/pagination/index.d.ts +11 -0
- package/build/components/pagination/index.js +109 -0
- package/build/components/pagination/scss/index.scss +2 -0
- package/build/components/pagination/svg/arrow-left.svg +1 -0
- package/build/components/pagination/svg/arrow-right.svg +1 -0
- package/build/components/password/constants.d.ts +2 -0
- package/build/components/password/constants.js +2 -0
- package/build/components/password/index.d.ts +22 -0
- package/build/components/password/index.js +74 -0
- package/build/components/password/scss/index.scss +2 -0
- package/build/components/progress/index.d.ts +15 -0
- package/build/components/progress/index.js +37 -0
- package/build/components/progress/scss/index.scss +2 -0
- package/build/components/pull-to-refresh/index.d.ts +26 -0
- package/build/components/pull-to-refresh/index.js +260 -0
- package/build/components/pull-to-refresh/scss/index.scss +2 -0
- package/build/components/radio/index.d.ts +3 -1442
- package/build/components/radio/index.js +2 -1
- package/build/components/radio-cards/index.d.ts +36 -0
- package/build/components/radio-cards/index.js +106 -0
- package/build/components/radio-cards/scss/index.scss +2 -0
- package/build/components/range/index.js +13 -13
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/range-filter/index.d.ts +20 -0
- package/build/components/range-filter/index.js +216 -0
- package/build/components/range-filter/scss/index.scss +2 -0
- package/build/components/range-slider/index.d.ts +30 -0
- package/build/components/range-slider/index.js +287 -0
- package/build/components/range-slider/scss/index.scss +2 -0
- package/build/components/reading-progress/index.d.ts +13 -0
- package/build/components/reading-progress/index.js +106 -0
- package/build/components/reading-progress/scss/index.scss +2 -0
- package/build/components/relative-time/index.d.ts +25 -0
- package/build/components/relative-time/index.js +283 -0
- package/build/components/relative-time/scss/index.scss +2 -0
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/scroll-fade/index.d.ts +39 -0
- package/build/components/scroll-fade/index.js +104 -0
- package/build/components/scroll-fade/scss/index.scss +2 -0
- package/build/components/scroll-spine/index.d.ts +26 -0
- package/build/components/scroll-spine/index.js +204 -0
- package/build/components/scroll-spine/scss/index.scss +2 -0
- package/build/components/scroll-velocity/index.d.ts +22 -0
- package/build/components/scroll-velocity/index.js +160 -0
- package/build/components/scroll-velocity/scss/index.scss +2 -0
- package/build/components/scrub-input/index.d.ts +39 -0
- package/build/components/scrub-input/index.js +221 -0
- package/build/components/scrub-input/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +16 -8
- package/build/components/select/index.js +66 -81
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/select-menu/index.d.ts +34 -0
- package/build/components/select-menu/index.js +329 -0
- package/build/components/select-menu/scss/index.scss +2 -0
- package/build/components/selection-toolbar/index.d.ts +36 -0
- package/build/components/selection-toolbar/index.js +442 -0
- package/build/components/selection-toolbar/scss/index.scss +2 -0
- package/build/components/settings/index.d.ts +43 -0
- package/build/components/settings/index.js +147 -0
- package/build/components/settings/scss/index.scss +2 -0
- package/build/components/settings/svg/close.svg +1 -0
- package/build/components/settings/svg/saved.svg +1 -0
- package/build/components/share-button/index.d.ts +29 -0
- package/build/components/share-button/index.js +191 -0
- package/build/components/share-button/scss/index.scss +2 -0
- package/build/components/sheet/index.d.ts +33 -0
- package/build/components/sheet/index.js +110 -0
- package/build/components/sheet/scss/index.scss +2 -0
- package/build/components/shiny-text/index.d.ts +17 -0
- package/build/components/shiny-text/index.js +14 -0
- package/build/components/shiny-text/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +12 -0
- package/build/components/shortcut-recorder/index.js +230 -0
- package/build/components/shortcut-recorder/scss/index.scss +2 -0
- package/build/components/shortcut-sheet/index.d.ts +48 -0
- package/build/components/shortcut-sheet/index.js +304 -0
- package/build/components/shortcut-sheet/scss/index.scss +2 -0
- package/build/components/sidebar/index.d.ts +11 -2
- package/build/components/sidebar/index.js +7 -7
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/slider/index.d.ts +25 -0
- package/build/components/slider/index.js +188 -0
- package/build/components/slider/scss/index.scss +2 -0
- package/build/components/sliding-tabs/index.d.ts +28 -0
- package/build/components/sliding-tabs/index.js +188 -0
- package/build/components/sliding-tabs/scss/index.scss +2 -0
- package/build/components/snap-carousel/index.d.ts +30 -0
- package/build/components/snap-carousel/index.js +233 -0
- package/build/components/snap-carousel/scss/index.scss +2 -0
- package/build/components/sortable/index.d.ts +9 -0
- package/build/components/sortable/index.js +302 -0
- package/build/components/sortable/scss/index.scss +2 -0
- package/build/components/sparkline/index.d.ts +26 -0
- package/build/components/sparkline/index.js +173 -0
- package/build/components/sparkline/scss/index.scss +2 -0
- package/build/components/stacked-drawer/index.d.ts +24 -0
- package/build/components/stacked-drawer/index.js +211 -0
- package/build/components/stacked-drawer/scss/index.scss +2 -0
- package/build/components/stat-counter/index.d.ts +32 -0
- package/build/components/stat-counter/index.js +216 -0
- package/build/components/stat-counter/scss/index.scss +2 -0
- package/build/components/status-picker/index.d.ts +32 -0
- package/build/components/status-picker/index.js +198 -0
- package/build/components/status-picker/scss/index.scss +2 -0
- package/build/components/sticky-header/index.d.ts +2159 -0
- package/build/components/sticky-header/index.js +98 -0
- package/build/components/sticky-header/scss/index.scss +2 -0
- package/build/components/sticky-stack/index.d.ts +33 -0
- package/build/components/sticky-stack/index.js +184 -0
- package/build/components/sticky-stack/scss/index.scss +2 -0
- package/build/components/story-progress/index.d.ts +26 -0
- package/build/components/story-progress/index.js +196 -0
- package/build/components/story-progress/scss/index.scss +2 -0
- package/build/components/swipe-deck/index.d.ts +19 -0
- package/build/components/swipe-deck/index.js +300 -0
- package/build/components/swipe-deck/scss/index.scss +2 -0
- package/build/components/switch/index.d.ts +3 -1442
- package/build/components/switch/index.js +2 -1
- package/build/components/tabs/scss/index.scss +1 -1
- package/build/components/tag-input/index.d.ts +27 -0
- package/build/components/tag-input/index.js +309 -0
- package/build/components/tag-input/scss/index.scss +2 -0
- package/build/components/task-list/index.d.ts +28 -0
- package/build/components/task-list/index.js +107 -0
- package/build/components/task-list/scss/index.scss +2 -0
- package/build/components/tasklist/constants.d.ts +2 -0
- package/build/components/tasklist/constants.js +2 -0
- package/build/components/tasklist/index.d.ts +730 -0
- package/build/components/tasklist/index.js +116 -0
- package/build/components/tasklist/scss/index.scss +2 -0
- package/build/components/text-animate/index.d.ts +30 -0
- package/build/components/text-animate/index.js +97 -0
- package/build/components/text-animate/scss/index.scss +2 -0
- package/build/components/text-progress/index.d.ts +13 -0
- package/build/components/text-progress/index.js +114 -0
- package/build/components/text-progress/scss/index.scss +2 -0
- package/build/components/textarea/index.d.ts +2159 -715
- package/build/components/textarea/index.js +16 -18
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/thumbnail/scss/index.scss +1 -1
- package/build/components/toast/index.js +53 -43
- package/build/components/toast/manager.d.ts +4 -0
- package/build/components/toast/manager.js +19 -1
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/context.d.ts +22 -0
- package/build/components/tooltip/context.js +66 -0
- package/build/components/tooltip/group.d.ts +29 -0
- package/build/components/tooltip/group.js +128 -0
- package/build/components/tooltip/index.d.ts +12 -2153
- package/build/components/tooltip/index.js +4 -1
- package/build/components/tooltip/menu.d.ts +23 -10
- package/build/components/tooltip/menu.js +16 -36
- package/build/components/tooltip/onclick.d.ts +22 -713
- package/build/components/tooltip/onclick.js +32 -18
- package/build/components/tooltip/onhover.d.ts +24 -711
- package/build/components/tooltip/onhover.js +85 -14
- package/build/components/tooltip/options.d.ts +7 -0
- package/build/components/tooltip/options.js +21 -0
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/utilities.d.ts +4 -0
- package/build/components/tooltip/utilities.js +58 -0
- package/build/components/tree/index.d.ts +28 -0
- package/build/components/tree/index.js +182 -0
- package/build/components/tree/scss/index.scss +2 -0
- package/build/components/tree-view/index.d.ts +25 -0
- package/build/components/tree-view/index.js +205 -0
- package/build/components/tree-view/scss/index.scss +2 -0
- package/build/components/typewriter/index.d.ts +11 -2
- package/build/components/typewriter/index.js +16 -12
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/typewriter-retype/index.d.ts +8 -0
- package/build/components/typewriter-retype/index.js +122 -0
- package/build/components/typewriter-retype/scss/index.scss +2 -0
- package/build/components/undo-toast/index.d.ts +30 -0
- package/build/components/undo-toast/index.js +262 -0
- package/build/components/undo-toast/scss/index.scss +2 -0
- package/build/components/uptime/index.d.ts +21 -0
- package/build/components/uptime/index.js +210 -0
- package/build/components/uptime/scss/index.scss +2 -0
- package/build/components/usage-meter/index.d.ts +2159 -0
- package/build/components/usage-meter/index.js +30 -0
- package/build/components/usage-meter/scss/index.scss +2 -0
- package/build/components/value-flash/index.d.ts +12 -0
- package/build/components/value-flash/index.js +106 -0
- package/build/components/value-flash/scss/index.scss +2 -0
- package/build/components/waitlist-join/index.d.ts +34 -0
- package/build/components/waitlist-join/index.js +402 -0
- package/build/components/waitlist-join/scss/index.scss +2 -0
- package/build/components/web-search/brands.d.ts +121 -0
- package/build/components/web-search/brands.js +138 -0
- package/build/components/web-search/index.d.ts +31 -0
- package/build/components/web-search/index.js +245 -0
- package/build/components/web-search/scss/index.scss +2 -0
- package/build/components/word-rotator/index.d.ts +14 -0
- package/build/components/word-rotator/index.js +196 -0
- package/build/components/word-rotator/scss/index.scss +2 -0
- package/build/css-utilities/absolute/scss/index.scss +1 -1
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/themes/dark/input.d.ts +496 -492
- package/build/themes/dark/select.d.ts +3 -735
- package/build/themes/dark/select.js +4 -3
- package/build/themes/dark/textarea.d.ts +2172 -718
- package/package.json +6 -6
- package/pnpm-workspace.yaml +5 -5
- package/src/components/accordion/index.ts +13 -14
- package/src/components/accordion/more.ts +97 -0
- package/src/components/accordion/scss/index.scss +144 -1
- package/src/components/anchor/scss/index.scss +2 -2
- package/src/components/announcement-banner/index.ts +81 -0
- package/src/components/announcement-banner/scss/index.scss +183 -0
- package/src/components/announcement-banner/scss/variables.scss +18 -0
- package/src/components/autosave/index.ts +113 -0
- package/src/components/autosave/scss/index.scss +155 -0
- package/src/components/autosave/scss/variables.scss +22 -0
- package/src/components/back-to-top/index.ts +293 -0
- package/src/components/back-to-top/scss/index.scss +111 -0
- package/src/components/back-to-top/scss/variables.scss +30 -0
- package/src/components/banner/scss/variables.scss +1 -1
- package/src/components/bento-grid/index.ts +63 -0
- package/src/components/bento-grid/scss/index.scss +174 -0
- package/src/components/bento-grid/scss/variables.scss +19 -0
- package/src/components/bento-grid-spotlight/index.ts +133 -0
- package/src/components/bento-grid-spotlight/scss/index.scss +226 -0
- package/src/components/bento-grid-spotlight/scss/variables.scss +36 -0
- package/src/components/bookmark-button/index.ts +174 -0
- package/src/components/bookmark-button/scss/index.scss +162 -0
- package/src/components/bookmark-button/scss/variables.scss +28 -0
- package/src/components/breadcrumb/ellipsis.ts +17 -0
- package/src/components/breadcrumb/index.ts +32 -0
- package/src/components/breadcrumb/item.ts +10 -0
- package/src/components/breadcrumb/link.ts +21 -0
- package/src/components/breadcrumb/list.ts +10 -0
- package/src/components/breadcrumb/menu.ts +20 -0
- package/src/components/breadcrumb/page.ts +16 -0
- package/src/components/breadcrumb/scss/index.scss +74 -0
- package/src/components/breadcrumb/scss/variables.scss +17 -0
- package/src/components/breadcrumb/separator.ts +17 -0
- package/src/components/breadcrumb/svg/caret.svg +1 -0
- package/src/components/breadcrumb/svg/chevron.svg +1 -0
- package/src/components/breadcrumb/svg/more.svg +1 -0
- package/src/components/breadcrumbs/index.ts +479 -0
- package/src/components/breadcrumbs/scss/index.scss +235 -0
- package/src/components/breadcrumbs/scss/variables.scss +30 -0
- package/src/components/button/copy.ts +59 -0
- package/src/components/button/faces.ts +29 -0
- package/src/components/button/fan.ts +173 -0
- package/src/components/button/hold.ts +154 -0
- package/src/components/button/icons.ts +38 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button/kbd.ts +156 -0
- package/src/components/button/loading.ts +77 -0
- package/src/components/button/scss/_fan.scss +125 -0
- package/src/components/button/scss/_kbd.scss +10 -0
- package/src/components/button/scss/index.scss +117 -5
- package/src/components/button/scss/variables.scss +81 -0
- package/src/components/button/svg/plus.svg +1 -0
- package/src/components/card/scss/index.scss +2 -3
- package/src/components/card-input/index.ts +594 -0
- package/src/components/card-input/scss/index.scss +512 -0
- package/src/components/card-input/scss/variables.scss +29 -0
- package/src/components/carousel-3d/index.ts +405 -0
- package/src/components/carousel-3d/scss/index.scss +155 -0
- package/src/components/carousel-3d/scss/variables.scss +25 -0
- package/src/components/checkbox/index.ts +17 -25
- package/src/components/checkbox/scss/index.scss +6 -3
- package/src/components/checkbox-group/index.ts +171 -0
- package/src/components/checkbox-group/scss/index.scss +229 -0
- package/src/components/checkbox-group/scss/variables.scss +28 -0
- package/src/components/clipboard/copy.ts +24 -35
- package/src/components/clipboard/index.ts +2 -3
- package/src/components/code-morph/index.ts +459 -0
- package/src/components/code-morph/scss/index.scss +384 -0
- package/src/components/code-morph/scss/variables.scss +33 -0
- package/src/components/collapsible-sidebar/index.ts +193 -0
- package/src/components/collapsible-sidebar/scss/index.scss +220 -0
- package/src/components/collapsible-sidebar/scss/variables.scss +42 -0
- package/src/components/color-picker/index.ts +650 -0
- package/src/components/color-picker/scss/index.scss +345 -0
- package/src/components/color-picker/scss/variables.scss +33 -0
- package/src/components/command/constants.ts +6 -0
- package/src/components/command/index.ts +282 -0
- package/src/components/command/scss/index.scss +213 -0
- package/src/components/command/scss/variables.scss +35 -0
- package/src/components/command-palette/index.ts +456 -0
- package/src/components/command-palette/scss/index.scss +235 -0
- package/src/components/command-palette/scss/variables.scss +42 -0
- package/src/components/composer/index.ts +117 -0
- package/src/components/composer/scss/index.scss +105 -0
- package/src/components/composer/scss/variables.scss +82 -0
- package/src/components/composer/svg/arrow-up.svg +1 -0
- package/src/components/container/scss/index.scss +2 -1
- package/src/components/contribution-heatmap/index.ts +348 -0
- package/src/components/contribution-heatmap/scss/index.scss +151 -0
- package/src/components/contribution-heatmap/scss/variables.scss +39 -0
- package/src/components/counter/index.ts +58 -20
- package/src/components/counter/scss/index.scss +56 -2
- package/src/components/counter/scss/variables.scss +38 -2
- package/src/components/datalist/index.ts +236 -0
- package/src/components/datalist/scss/index.scss +84 -0
- package/src/components/datalist/scss/variables.scss +26 -0
- package/src/components/date-range-picker/index.ts +641 -0
- package/src/components/date-range-picker/scss/index.scss +380 -0
- package/src/components/date-range-picker/scss/variables.scss +22 -0
- package/src/components/dock/index.ts +265 -0
- package/src/components/dock/scss/index.scss +102 -0
- package/src/components/dock/scss/variables.scss +30 -0
- package/src/components/dynamic-island/index.ts +161 -0
- package/src/components/dynamic-island/scss/index.scss +278 -0
- package/src/components/dynamic-island/scss/variables.scss +39 -0
- package/src/components/email-typo-fix/index.ts +615 -0
- package/src/components/email-typo-fix/scss/index.scss +213 -0
- package/src/components/email-typo-fix/scss/variables.scss +18 -0
- package/src/components/expanding-card/index.ts +377 -0
- package/src/components/expanding-card/scss/index.scss +232 -0
- package/src/components/expanding-card/scss/variables.scss +22 -0
- package/src/components/feature-spotlight/index.ts +437 -0
- package/src/components/feature-spotlight/scss/index.scss +254 -0
- package/src/components/feature-spotlight/scss/variables.scss +36 -0
- package/src/components/file-tree/index.ts +319 -0
- package/src/components/file-tree/scss/index.scss +138 -0
- package/src/components/file-tree/scss/variables.scss +18 -0
- package/src/components/filter-grid/index.ts +344 -0
- package/src/components/filter-grid/scss/index.scss +142 -0
- package/src/components/filter-grid/scss/variables.scss +41 -0
- package/src/components/form/action.ts +2 -8
- package/src/components/form/scss/index.scss +2 -1
- package/src/components/gradient-text/index.ts +26 -0
- package/src/components/gradient-text/scss/index.scss +20 -0
- package/src/components/gradient-text/scss/variables.scss +6 -0
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/header/index.ts +318 -0
- package/src/components/header/scss/index.scss +508 -0
- package/src/components/header/scss/variables.scss +21 -0
- package/src/components/highlight/index.ts +239 -0
- package/src/components/highlight/scss/index.scss +48 -0
- package/src/components/highlight/scss/variables.scss +26 -0
- package/src/components/hover-card/index.ts +319 -0
- package/src/components/hover-card/scss/index.scss +117 -0
- package/src/components/hover-card/scss/variables.scss +25 -0
- package/src/components/image/index.ts +79 -0
- package/src/components/image/scss/index.scss +82 -0
- package/src/components/image/scss/variables.scss +15 -0
- package/src/components/index.ts +96 -1
- package/src/components/inline-edit/index.ts +177 -0
- package/src/components/inline-edit/scss/index.scss +152 -0
- package/src/components/inline-edit/scss/variables.scss +17 -0
- package/src/components/input/index.ts +15 -6
- package/src/components/input/scss/index.scss +2 -3
- package/src/components/kanban-board/index.ts +326 -0
- package/src/components/kanban-board/scss/index.scss +126 -0
- package/src/components/kanban-board/scss/variables.scss +39 -0
- package/src/components/lightbox/index.ts +594 -0
- package/src/components/lightbox/scss/index.scss +194 -0
- package/src/components/lightbox/scss/variables.scss +24 -0
- package/src/components/lightbox/spring.ts +118 -0
- package/src/components/line-shadow-text/index.ts +24 -0
- package/src/components/line-shadow-text/scss/index.scss +45 -0
- package/src/components/line-shadow-text/scss/variables.scss +6 -0
- package/src/components/link/scss/index.scss +2 -3
- package/src/components/loading/index.ts +3 -10
- package/src/components/loading/scss/index.scss +55 -4
- package/src/components/loading/scss/variables.scss +15 -1
- package/src/components/log/index.ts +156 -0
- package/src/components/log/scss/index.scss +269 -0
- package/src/components/log/scss/variables.scss +19 -0
- package/src/components/long-press/bind.ts +159 -0
- package/src/components/long-press/button.ts +46 -0
- package/src/components/long-press/index.ts +6 -0
- package/src/components/long-press/scss/index.scss +60 -0
- package/src/components/long-press/scss/variables.scss +9 -0
- package/src/components/marquee/index.ts +300 -0
- package/src/components/marquee/scss/index.scss +109 -0
- package/src/components/marquee/scss/variables.scss +18 -0
- package/src/components/modal/index.ts +91 -0
- package/src/components/modal/scss/index.scss +51 -4
- package/src/components/modal/scss/variables.scss +36 -0
- package/src/components/morphing-button/index.ts +188 -0
- package/src/components/morphing-button/scss/index.scss +154 -0
- package/src/components/morphing-button/scss/variables.scss +21 -0
- package/src/components/morphing-nav/index.ts +496 -0
- package/src/components/morphing-nav/scss/index.scss +284 -0
- package/src/components/morphing-nav/scss/variables.scss +36 -0
- package/src/components/multi-step-form/index.ts +368 -0
- package/src/components/multi-step-form/scss/index.scss +397 -0
- package/src/components/multi-step-form/scss/variables.scss +22 -0
- package/src/components/nested-menu/index.ts +446 -0
- package/src/components/nested-menu/scss/index.scss +219 -0
- package/src/components/nested-menu/scss/variables.scss +26 -0
- package/src/components/notification-bell/index.ts +102 -0
- package/src/components/notification-bell/scss/index.scss +132 -0
- package/src/components/notification-bell/scss/variables.scss +41 -0
- package/src/components/notification-bell/svg/bell.svg +1 -0
- package/src/components/onboarding-checklist/index.ts +252 -0
- package/src/components/onboarding-checklist/scss/index.scss +414 -0
- package/src/components/onboarding-checklist/scss/variables.scss +17 -0
- package/src/components/page-dots/index.ts +137 -0
- package/src/components/page-dots/scss/index.scss +95 -0
- package/src/components/page-dots/scss/variables.scss +26 -0
- package/src/components/pagination/index.ts +129 -0
- package/src/components/pagination/scss/index.scss +46 -0
- package/src/components/pagination/scss/variables.scss +40 -0
- package/src/components/pagination/svg/arrow-left.svg +1 -0
- package/src/components/pagination/svg/arrow-right.svg +1 -0
- package/src/components/password/constants.ts +4 -0
- package/src/components/password/index.ts +97 -0
- package/src/components/password/scss/index.scss +188 -0
- package/src/components/password/scss/variables.scss +50 -0
- package/src/components/progress/index.ts +57 -0
- package/src/components/progress/scss/index.scss +49 -0
- package/src/components/progress/scss/variables.scss +11 -0
- package/src/components/pull-to-refresh/index.ts +438 -0
- package/src/components/pull-to-refresh/scss/index.scss +91 -0
- package/src/components/pull-to-refresh/scss/variables.scss +10 -0
- package/src/components/radio/index.ts +5 -2
- package/src/components/radio-cards/index.ts +145 -0
- package/src/components/radio-cards/scss/index.scss +232 -0
- package/src/components/radio-cards/scss/variables.scss +32 -0
- package/src/components/range/scss/index.scss +2 -1
- package/src/components/range-filter/index.ts +295 -0
- package/src/components/range-filter/scss/index.scss +257 -0
- package/src/components/range-filter/scss/variables.scss +20 -0
- package/src/components/range-slider/index.ts +277 -0
- package/src/components/range-slider/scss/index.scss +234 -0
- package/src/components/range-slider/scss/variables.scss +26 -0
- package/src/components/reading-progress/index.ts +160 -0
- package/src/components/reading-progress/scss/index.scss +115 -0
- package/src/components/reading-progress/scss/variables.scss +31 -0
- package/src/components/relative-time/index.ts +410 -0
- package/src/components/relative-time/scss/index.scss +88 -0
- package/src/components/relative-time/scss/variables.scss +19 -0
- package/src/components/root/scss/index.scss +2 -2
- package/src/components/scroll-fade/index.ts +131 -0
- package/src/components/scroll-fade/scss/index.scss +104 -0
- package/src/components/scroll-fade/scss/variables.scss +10 -0
- package/src/components/scroll-spine/index.ts +355 -0
- package/src/components/scroll-spine/scss/index.scss +209 -0
- package/src/components/scroll-spine/scss/variables.scss +22 -0
- package/src/components/scroll-velocity/index.ts +269 -0
- package/src/components/scroll-velocity/scss/index.scss +29 -0
- package/src/components/scroll-velocity/scss/variables.scss +3 -0
- package/src/components/scrub-input/index.ts +339 -0
- package/src/components/scrub-input/scss/index.scss +105 -0
- package/src/components/scrub-input/scss/variables.scss +23 -0
- package/src/components/select/index.ts +54 -51
- package/src/components/select/scss/index.scss +15 -10
- package/src/components/select-menu/index.ts +499 -0
- package/src/components/select-menu/scss/index.scss +192 -0
- package/src/components/select-menu/scss/variables.scss +41 -0
- package/src/components/selection-toolbar/index.ts +510 -0
- package/src/components/selection-toolbar/scss/index.scss +221 -0
- package/src/components/selection-toolbar/scss/variables.scss +24 -0
- package/src/components/settings/index.ts +184 -0
- package/src/components/settings/scss/index.scss +327 -0
- package/src/components/settings/scss/variables.scss +50 -0
- package/src/components/settings/svg/close.svg +1 -0
- package/src/components/settings/svg/saved.svg +1 -0
- package/src/components/share-button/index.ts +328 -0
- package/src/components/share-button/scss/index.scss +191 -0
- package/src/components/share-button/scss/variables.scss +24 -0
- package/src/components/sheet/index.ts +170 -0
- package/src/components/sheet/scss/index.scss +65 -0
- package/src/components/sheet/scss/variables.scss +27 -0
- package/src/components/shiny-text/index.ts +19 -0
- package/src/components/shiny-text/scss/index.scss +32 -0
- package/src/components/shiny-text/scss/variables.scss +7 -0
- package/src/components/shortcut-recorder/index.ts +284 -0
- package/src/components/shortcut-recorder/scss/index.scss +198 -0
- package/src/components/shortcut-recorder/scss/variables.scss +54 -0
- package/src/components/shortcut-sheet/index.ts +454 -0
- package/src/components/shortcut-sheet/scss/index.scss +306 -0
- package/src/components/shortcut-sheet/scss/variables.scss +36 -0
- package/src/components/sidebar/scss/index.scss +3 -3
- package/src/components/slider/index.ts +232 -0
- package/src/components/slider/scss/index.scss +182 -0
- package/src/components/slider/scss/variables.scss +15 -0
- package/src/components/sliding-tabs/index.ts +291 -0
- package/src/components/sliding-tabs/scss/index.scss +174 -0
- package/src/components/sliding-tabs/scss/variables.scss +34 -0
- package/src/components/snap-carousel/index.ts +324 -0
- package/src/components/snap-carousel/scss/index.scss +174 -0
- package/src/components/snap-carousel/scss/variables.scss +31 -0
- package/src/components/sortable/index.ts +483 -0
- package/src/components/sortable/scss/index.scss +282 -0
- package/src/components/sortable/scss/variables.scss +59 -0
- package/src/components/sparkline/index.ts +234 -0
- package/src/components/sparkline/scss/index.scss +169 -0
- package/src/components/sparkline/scss/variables.scss +30 -0
- package/src/components/stacked-drawer/index.ts +272 -0
- package/src/components/stacked-drawer/scss/index.scss +122 -0
- package/src/components/stacked-drawer/scss/variables.scss +20 -0
- package/src/components/stat-counter/index.ts +337 -0
- package/src/components/stat-counter/scss/index.scss +246 -0
- package/src/components/stat-counter/scss/variables.scss +24 -0
- package/src/components/status-picker/index.ts +323 -0
- package/src/components/status-picker/scss/index.scss +290 -0
- package/src/components/status-picker/scss/variables.scss +29 -0
- package/src/components/sticky-header/index.ts +127 -0
- package/src/components/sticky-header/scss/index.scss +149 -0
- package/src/components/sticky-header/scss/variables.scss +22 -0
- package/src/components/sticky-stack/index.ts +313 -0
- package/src/components/sticky-stack/scss/index.scss +167 -0
- package/src/components/sticky-stack/scss/variables.scss +50 -0
- package/src/components/story-progress/index.ts +247 -0
- package/src/components/story-progress/scss/index.scss +205 -0
- package/src/components/story-progress/scss/variables.scss +21 -0
- package/src/components/swipe-deck/index.ts +438 -0
- package/src/components/swipe-deck/scss/index.scss +275 -0
- package/src/components/swipe-deck/scss/variables.scss +24 -0
- package/src/components/switch/index.ts +5 -2
- package/src/components/tabs/scss/index.scss +3 -3
- package/src/components/tag-input/index.ts +415 -0
- package/src/components/tag-input/scss/index.scss +186 -0
- package/src/components/tag-input/scss/variables.scss +30 -0
- package/src/components/task-list/index.ts +137 -0
- package/src/components/task-list/scss/index.scss +171 -0
- package/src/components/task-list/scss/variables.scss +8 -0
- package/src/components/tasklist/constants.ts +4 -0
- package/src/components/tasklist/index.ts +174 -0
- package/src/components/tasklist/scss/index.scss +184 -0
- package/src/components/tasklist/scss/variables.scss +83 -0
- package/src/components/text-animate/index.ts +142 -0
- package/src/components/text-animate/scss/index.scss +106 -0
- package/src/components/text-animate/scss/variables.scss +17 -0
- package/src/components/text-progress/index.ts +170 -0
- package/src/components/text-progress/scss/index.scss +148 -0
- package/src/components/text-progress/scss/variables.scss +26 -0
- package/src/components/textarea/index.ts +18 -16
- package/src/components/textarea/scss/index.scss +2 -3
- package/src/components/thumbnail/scss/index.scss +51 -0
- package/src/components/thumbnail/scss/variables.scss +12 -0
- package/src/components/toast/index.ts +11 -1
- package/src/components/toast/manager.ts +31 -1
- package/src/components/toast/scss/index.scss +66 -18
- package/src/components/toast/scss/variables.scss +2 -0
- package/src/components/tooltip/context.ts +96 -0
- package/src/components/tooltip/group.ts +162 -0
- package/src/components/tooltip/index.ts +6 -1
- package/src/components/tooltip/menu.ts +31 -48
- package/src/components/tooltip/onclick.ts +42 -15
- package/src/components/tooltip/onhover.ts +130 -11
- package/src/components/tooltip/options.ts +33 -0
- package/src/components/tooltip/scss/_center.scss +1 -5
- package/src/components/tooltip/scss/_east.scss +5 -5
- package/src/components/tooltip/scss/_group.scss +164 -0
- package/src/components/tooltip/scss/_north.scss +5 -5
- package/src/components/tooltip/scss/_south.scss +5 -5
- package/src/components/tooltip/scss/_west.scss +5 -5
- package/src/components/tooltip/scss/index.scss +230 -17
- package/src/components/tooltip/scss/variables.scss +105 -0
- package/src/components/tooltip/utilities.ts +103 -0
- package/src/components/tree/index.ts +259 -0
- package/src/components/tree/scss/index.scss +105 -0
- package/src/components/tree/scss/variables.scss +48 -0
- package/src/components/tree-view/index.ts +285 -0
- package/src/components/tree-view/scss/index.scss +169 -0
- package/src/components/tree-view/scss/variables.scss +18 -0
- package/src/components/typewriter/index.ts +10 -6
- package/src/components/typewriter/scss/index.scss +30 -11
- package/src/components/typewriter/scss/variables.scss +24 -0
- package/src/components/typewriter-retype/index.ts +164 -0
- package/src/components/typewriter-retype/scss/index.scss +142 -0
- package/src/components/typewriter-retype/scss/variables.scss +46 -0
- package/src/components/undo-toast/index.ts +359 -0
- package/src/components/undo-toast/scss/index.scss +216 -0
- package/src/components/undo-toast/scss/variables.scss +20 -0
- package/src/components/uptime/index.ts +271 -0
- package/src/components/uptime/scss/index.scss +163 -0
- package/src/components/uptime/scss/variables.scss +56 -0
- package/src/components/usage-meter/index.ts +63 -0
- package/src/components/usage-meter/scss/index.scss +94 -0
- package/src/components/usage-meter/scss/variables.scss +43 -0
- package/src/components/value-flash/index.ts +121 -0
- package/src/components/value-flash/scss/index.scss +193 -0
- package/src/components/value-flash/scss/variables.scss +47 -0
- package/src/components/waitlist-join/index.ts +545 -0
- package/src/components/waitlist-join/scss/index.scss +401 -0
- package/src/components/waitlist-join/scss/variables.scss +23 -0
- package/src/components/web-search/brands.ts +155 -0
- package/src/components/web-search/index.ts +316 -0
- package/src/components/web-search/scss/index.scss +270 -0
- package/src/components/web-search/scss/variables.scss +8 -0
- package/src/components/word-rotator/index.ts +296 -0
- package/src/components/word-rotator/scss/index.scss +33 -0
- package/src/components/word-rotator/scss/variables.scss +7 -0
- package/src/css-utilities/scrollbar/scss/index.scss +6 -1
- package/src/lib/scss/position.scss +3 -3
- package/src/themes/dark/select.ts +7 -4
- package/storage/svg/settings/add-line.svg +1 -0
- package/storage/svg/settings/arrow-down-s-line.svg +1 -0
- package/storage/svg/settings/arrow-left-s-line.svg +1 -0
- package/storage/svg/settings/arrow-right-s-line.svg +1 -0
- package/storage/svg/settings/bank-card-line.svg +1 -0
- package/storage/svg/settings/book-open-line.svg +1 -0
- package/storage/svg/settings/calendar-line.svg +1 -0
- package/storage/svg/settings/code-block.svg +1 -0
- package/storage/svg/settings/database-2-line.svg +1 -0
- package/storage/svg/settings/delete-bin-6-line.svg +1 -0
- package/storage/svg/settings/download-2-line.svg +1 -0
- package/storage/svg/settings/edit-line.svg +1 -0
- package/storage/svg/settings/expand-up-down-line.svg +1 -0
- package/storage/svg/settings/external-link-line.svg +1 -0
- package/storage/svg/settings/file-copy-line.svg +1 -0
- package/storage/svg/settings/file-excel-2-fill.svg +1 -0
- package/storage/svg/settings/file-text-fill.svg +1 -0
- package/storage/svg/settings/film-fill.svg +1 -0
- package/storage/svg/settings/git-merge-line.svg +1 -0
- package/storage/svg/settings/logout-circle-line.svg +1 -0
- package/storage/svg/settings/mail-line.svg +1 -0
- package/storage/svg/settings/more-2-fill.svg +1 -0
- package/storage/svg/settings/more-fill.svg +1 -0
- package/storage/svg/settings/organization-chart.svg +1 -0
- package/storage/svg/settings/palette-line.svg +1 -0
- package/storage/svg/settings/plug-line.svg +1 -0
- package/storage/svg/settings/school-line.svg +1 -0
- package/storage/svg/settings/search-line.svg +1 -0
- package/storage/svg/settings/settings-6-line.svg +1 -0
- package/storage/svg/settings/settings-line.svg +1 -0
- package/storage/svg/settings/tools-fill.svg +1 -0
- package/storage/svg/settings/upload-cloud-2-line.svg +1 -0
- package/build/components/border/scss/index.scss +0 -2
- package/build/components/clipboard/onclick.d.ts +0 -10
- package/build/components/clipboard/onclick.js +0 -38
- package/src/components/border/scss/index.scss +0 -17
- package/src/components/border/scss/variables.scss +0 -6
- package/src/components/clipboard/onclick.ts +0 -40
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import { effect } from '@esportsplus/reactivity';
|
|
3
|
+
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import { component } from '@esportsplus/template';
|
|
5
|
+
import icon from '../icon/index.js';
|
|
6
|
+
import modal from '../modal/index.js';
|
|
7
|
+
import close from './svg/close.svg';
|
|
8
|
+
import saved from './svg/saved.svg';
|
|
9
|
+
import './scss/index.scss';
|
|
10
|
+
const template_1x2e5bs3 = template_u1.template(`<div class='settings-panel'><nav class='settings-nav --scrollbar'></nav><div class='settings-main'><div class='settings-header'><h2 class='settings-title'></h2><button class='settings-close' type='button'></button></div><div class='settings-body'><!--$--><div class='settings-fade ' aria-hidden='true'></div></div></div></div><div class='settings-saved ' aria-live='polite'><!--$-->`);
|
|
11
|
+
const template_1x2e5bsd = template_u1.template(`<div class='settings-group'><div class='settings-group-label'>`);
|
|
12
|
+
const template_1x2e5bsh = template_u1.template(`<button class='settings-item' type='button'><!--$--><span class='settings-item-label'>`);
|
|
13
|
+
const template_1x2e5bsm = template_u1.template(`<div class='settings-content --scrollbar'>`);
|
|
14
|
+
class ReactiveObject_1x2e5bs0 extends reactivity_u0.ReactiveObject {
|
|
15
|
+
#saved = this[reactivity_u0.SIGNAL]('hidden');
|
|
16
|
+
#scrolled = this[reactivity_u0.SIGNAL](false);
|
|
17
|
+
constructor() {
|
|
18
|
+
super(null);
|
|
19
|
+
}
|
|
20
|
+
get saved() {
|
|
21
|
+
return reactivity_u0.read(this.#saved);
|
|
22
|
+
}
|
|
23
|
+
set saved(_v0) {
|
|
24
|
+
reactivity_u0.write(this.#saved, _v0);
|
|
25
|
+
}
|
|
26
|
+
get scrolled() {
|
|
27
|
+
return reactivity_u0.read(this.#scrolled);
|
|
28
|
+
}
|
|
29
|
+
set scrolled(_v1) {
|
|
30
|
+
reactivity_u0.write(this.#scrolled, _v1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class ReactiveObject_1x2e5bs1 extends reactivity_u0.ReactiveObject {
|
|
34
|
+
#active;
|
|
35
|
+
#saved;
|
|
36
|
+
#selected;
|
|
37
|
+
constructor(_p0, _p1, _p2) {
|
|
38
|
+
super(null);
|
|
39
|
+
this.#active = this[reactivity_u0.SIGNAL](_p0);
|
|
40
|
+
this.#saved = this[reactivity_u0.SIGNAL](_p1);
|
|
41
|
+
this.#selected = this[reactivity_u0.SIGNAL](_p2);
|
|
42
|
+
}
|
|
43
|
+
get active() {
|
|
44
|
+
return reactivity_u0.read(this.#active);
|
|
45
|
+
}
|
|
46
|
+
set active(_v0) {
|
|
47
|
+
reactivity_u0.write(this.#active, _v0);
|
|
48
|
+
}
|
|
49
|
+
get saved() {
|
|
50
|
+
return reactivity_u0.read(this.#saved);
|
|
51
|
+
}
|
|
52
|
+
set saved(_v1) {
|
|
53
|
+
reactivity_u0.write(this.#saved, _v1);
|
|
54
|
+
}
|
|
55
|
+
get selected() {
|
|
56
|
+
return reactivity_u0.read(this.#selected);
|
|
57
|
+
}
|
|
58
|
+
set selected(_v2) {
|
|
59
|
+
reactivity_u0.write(this.#selected, _v2);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const SAVED_DURATION = 2000;
|
|
63
|
+
const SAVED_EXIT = 220;
|
|
64
|
+
export default component(function ({ groups, labels = {}, state, ...attributes }) {
|
|
65
|
+
let pages = {};
|
|
66
|
+
for (let i = 0, n = groups.length; i < n; i++) {
|
|
67
|
+
let items = groups[i].items;
|
|
68
|
+
for (let j = 0, m = items.length; j < m; j++) {
|
|
69
|
+
let item = items[j];
|
|
70
|
+
if (item.id !== undefined && item.render) {
|
|
71
|
+
pages[item.id] ??= item;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
let local = new ReactiveObject_1x2e5bs0(), s = state ?? new ReactiveObject_1x2e5bs1(false, false, Object.keys(pages)[0]), stop, timer, title = labels.title ?? 'Settings';
|
|
76
|
+
return modal.call({ attributes: { class: 'settings' } }, { 'aria-label': title, ...attributes, state: s }, (() => {
|
|
77
|
+
let root_1x2e5bs2 = template_1x2e5bs3(), element_1x2e5bs4 = root_1x2e5bs2.firstChild, element_1x2e5bs5 = element_1x2e5bs4.firstElementChild, element_1x2e5bs6 = element_1x2e5bs5.nextElementSibling.firstElementChild.firstElementChild, element_1x2e5bs7 = element_1x2e5bs6.nextElementSibling, element_1x2e5bs8 = element_1x2e5bs5.nextElementSibling.firstElementChild.nextElementSibling.firstChild, element_1x2e5bs9 = element_1x2e5bs5.nextElementSibling.firstElementChild.nextElementSibling.firstElementChild, element_1x2e5bsa = element_1x2e5bs4.nextSibling, element_1x2e5bsb = element_1x2e5bsa.firstChild;
|
|
78
|
+
template_u1.onconnect(element_1x2e5bs4, () => {
|
|
79
|
+
stop = effect(() => {
|
|
80
|
+
if (!s.active) {
|
|
81
|
+
clearTimeout(timer);
|
|
82
|
+
local.saved = 'hidden';
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (!s.saved) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
s.saved = false;
|
|
89
|
+
local.saved = 'shown';
|
|
90
|
+
clearTimeout(timer);
|
|
91
|
+
timer = setTimeout(() => {
|
|
92
|
+
local.saved = 'leaving';
|
|
93
|
+
timer = setTimeout(() => local.saved = 'hidden', SAVED_EXIT);
|
|
94
|
+
}, SAVED_DURATION);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
template_u1.ondisconnect(element_1x2e5bs4, () => {
|
|
98
|
+
clearTimeout(timer);
|
|
99
|
+
stop?.();
|
|
100
|
+
});
|
|
101
|
+
template_u1.setProperty(element_1x2e5bs5, 'aria-label', template_u1.interpolate([(title), " sections"]));
|
|
102
|
+
template_u1.slot(element_1x2e5bs5, groups.map(({ items, label }) => {
|
|
103
|
+
let root_1x2e5bsc = template_1x2e5bsd(), element_1x2e5bse = root_1x2e5bsc.firstChild.firstElementChild, element_1x2e5bsf = root_1x2e5bsc.firstChild;
|
|
104
|
+
template_u1.slot(element_1x2e5bse, label, 1);
|
|
105
|
+
template_u1.slot(element_1x2e5bsf, items.map(({ content, icon: href, id, render, ...item }) => {
|
|
106
|
+
let root_1x2e5bsg = template_1x2e5bsh(), element_1x2e5bsi = root_1x2e5bsg.firstChild, element_1x2e5bsj = element_1x2e5bsi.firstChild, element_1x2e5bsk = element_1x2e5bsi.firstElementChild;
|
|
107
|
+
template_u1.setProperties(element_1x2e5bsi, item);
|
|
108
|
+
template_u1.setProperty(element_1x2e5bsi, 'aria-current', () => render && s.selected === id && 'page');
|
|
109
|
+
template_u1.setList(element_1x2e5bsi, 'class', () => render && s.selected === id && '--active');
|
|
110
|
+
template_u1.delegate(element_1x2e5bsi, 'click', () => {
|
|
111
|
+
if (!render || id === undefined) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
local.scrolled = false;
|
|
115
|
+
s.selected = id;
|
|
116
|
+
});
|
|
117
|
+
template_u1.slot(element_1x2e5bsj, href && icon({ 'aria-hidden': 'true', class: 'settings-item-icon' }, href));
|
|
118
|
+
template_u1.slot(element_1x2e5bsk, content, 1);
|
|
119
|
+
return root_1x2e5bsg;
|
|
120
|
+
}), 2);
|
|
121
|
+
return root_1x2e5bsc;
|
|
122
|
+
}), 1);
|
|
123
|
+
new template_u1.EffectSlot(element_1x2e5bs6, () => pages[s.selected]?.content, 1);
|
|
124
|
+
template_u1.setProperty(element_1x2e5bs7, 'aria-label', labels.close ?? `Close ${title.toLowerCase()}`);
|
|
125
|
+
template_u1.delegate(element_1x2e5bs7, 'click', () => {
|
|
126
|
+
s.active = false;
|
|
127
|
+
});
|
|
128
|
+
template_u1.slot(element_1x2e5bs7, icon({ 'aria-hidden': 'true' }, close), 1);
|
|
129
|
+
new template_u1.EffectSlot(element_1x2e5bs8, () => {
|
|
130
|
+
let id = s.selected;
|
|
131
|
+
return (() => {
|
|
132
|
+
let root_1x2e5bsl = template_1x2e5bsm(), element_1x2e5bsn = root_1x2e5bsl.firstChild;
|
|
133
|
+
template_u1.setProperty(element_1x2e5bsn, 'data-page', id);
|
|
134
|
+
template_u1.on(element_1x2e5bsn, 'scroll', (e) => {
|
|
135
|
+
local.scrolled = e.currentTarget.scrollTop > 0;
|
|
136
|
+
});
|
|
137
|
+
template_u1.slot(element_1x2e5bsn, pages[id]?.render?.(), 1);
|
|
138
|
+
return root_1x2e5bsl;
|
|
139
|
+
})();
|
|
140
|
+
});
|
|
141
|
+
template_u1.setList(element_1x2e5bs9, 'class', () => local.scrolled && '--active');
|
|
142
|
+
template_u1.setList(element_1x2e5bsa, 'class', () => `--${local.saved}`);
|
|
143
|
+
template_u1.slot(element_1x2e5bsb, icon({ 'aria-hidden': 'true', class: 'settings-saved-icon' }, saved));
|
|
144
|
+
template_u1.slot(element_1x2e5bsa, labels.saved ?? 'Saved', 2);
|
|
145
|
+
return root_1x2e5bs2;
|
|
146
|
+
})());
|
|
147
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.settings{--backdrop:color-mix(in srgb, var(--color-black-500) 50%, transparent);--blur:4px;--font-size-small:13px;--height:614px;--margin-horizontal:var(--size-400);--max-width:871px;--padding:32px;--rail-width:274px;--radius:24px;--saved:oklch(64.8% .2 131.684);--scale:.85;--separator:var(--color-border-300);--surface:var(--color-white-300);--surface-muted:var(--color-grey-500);--surface-rail:var(--color-grey-400);--text:var(--color-text-500);--text-muted:var(--color-text-300);--transition-duration:.3s;--transition-timing-function:cubic-bezier(.32, .72, 0, 1);--translateY:0px}.settings-panel{--font-size:14px;--transition-duration:.16s;--transition-timing-function:cubic-bezier(.4, 0, .2, 1)}.settings-card{--background:var(--surface-rail);--border-radius:var(--border-radius-700)}.settings-field{--background:var(--surface-muted);--border-radius:var(--border-radius-500);--width:202px}.settings-item{--background:transparent;--background-active:var(--surface-muted);--background-hover:color-mix(in srgb, var(--surface-muted) 60%, transparent);--border-radius:var(--border-radius-500)}dialog.settings{overflow:visible}.settings{filter:blur();transition:filter var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function)}.settings:not(.--active){filter:blur(var(--blur))}.settings-body{flex:auto;min-height:0;position:relative}.settings-card{background:var(--background);border-radius:var(--border-radius);flex-direction:column;width:100%;padding-left:12px;display:flex}.settings-close{background:var(--surface-muted);color:var(--text-muted);cursor:pointer;height:24px;transition:background var(--transition-duration) var(--transition-timing-function);border:0;border-radius:100%;outline:none;flex:none;justify-content:center;align-items:center;width:24px;padding:0;display:flex}.settings-close .icon{--size:16px}.settings-close:hover{background:var(--color-border-300)}.settings-close:focus-visible{box-shadow:0 0 0 2px var(--color-primary-400,var(--color-blue-400))}.settings-content{height:100%;padding:0 var(--padding) var(--padding);overflow-y:auto}.settings-fade{background:linear-gradient(to bottom, var(--surface), transparent);opacity:0;pointer-events:none;height:40px;transition:opacity .2s ease-out;position:absolute;inset:0 0 auto}.settings-fade.--active{opacity:1}.settings-field{background:var(--background);border-radius:var(--border-radius);color:var(--text);text-overflow:ellipsis;white-space:nowrap;height:32px;width:var(--width);flex:none;padding:0 6px 0 10px;line-height:32px;overflow:hidden}.settings-field--muted{color:var(--text-muted)}.settings-group{flex-direction:column;gap:4px;padding-top:4px;display:flex}.settings-group-label{color:var(--text-muted);font-weight:var(--font-weight-500);margin-bottom:2px;padding-left:8px}.settings-header{padding:var(--padding) var(--padding) 12px;flex:none;justify-content:space-between;align-items:center;display:flex}.settings-item{background:var(--background);border-radius:var(--border-radius);color:var(--text-muted);cursor:pointer;font:inherit;font-weight:var(--font-weight-500);text-align:left;transition:background var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);border:0;outline:none;align-items:center;gap:8px;width:100%;padding:8px;display:flex}.settings-item.--active{--background:var(--background-active);color:var(--text)}.settings-item:not(.--active):hover{--background:var(--background-hover)}.settings-item:focus-visible{box-shadow:inset 0 0 0 2px var(--color-primary-400,var(--color-blue-400))}.settings-item-icon{--size:20px;color:var(--text-muted)}.settings-item-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.settings-main{flex-direction:column;flex:auto;min-width:0;display:flex}.settings-nav{background:var(--surface-rail);border-right:var(--border-width-400) solid var(--separator);flex:0 0 var(--rail-width);flex-direction:column;gap:20px;padding:10px;display:flex;overflow-y:auto}.settings-page{flex-direction:column;gap:24px;width:100%;display:flex}.settings-panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--box-shadow-100);color:var(--text);font-size:var(--font-size);height:var(--height);max-height:calc(100dvh - var(--margin-horizontal) * 2);outline:none;width:100%;line-height:1.43;display:flex;overflow:clip}.settings-row{border-bottom:var(--border-width-400) solid var(--separator);justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:52px;padding:10px 10px 10px 0;display:flex}.settings-row:last-child{border-bottom:0}.settings-row-description{color:var(--text-muted);font-size:var(--font-size-small)}.settings-row-label{color:var(--text);flex-direction:column;min-width:0;display:flex}.settings-saved{background:var(--surface);border:var(--border-width-400) solid var(--separator);box-shadow:var(--box-shadow-300);color:var(--text);font-size:var(--font-size-small);font-weight:var(--font-weight-500);pointer-events:none;white-space:nowrap;z-index:1;border-radius:999px;align-items:center;gap:4px;padding:4px 10px 4px 6px;transition:filter .2s ease-out,opacity .2s ease-out,scale .2s ease-out,translate .2s ease-out;display:flex;position:absolute;bottom:0;left:50%}.settings-saved.--hidden,.settings-saved.--leaving{filter:blur(2px);opacity:0;scale:.9}.settings-saved.--hidden{translate:-50% calc(50% + 12px)}.settings-saved.--leaving{translate:-50% calc(50% - 10px)}.settings-saved.--shown{translate:-50% 50%}.settings-saved-icon{--size:16px;color:var(--saved)}.settings-section{flex-direction:column;gap:8px;width:100%;display:flex}.settings-section-description{color:var(--color-text-300);font-size:var(--font-size-small);opacity:.8;padding:0 12px}.settings-section-label{color:var(--text-muted);font-size:var(--font-size-small);font-weight:var(--font-weight-500);padding:0 12px}.settings-title{--font-size:20px;--font-weight:var(--font-weight-500);color:var(--text);font-size:var(--font-size);font-weight:var(--font-weight);margin:0;line-height:1.4}@media (prefers-reduced-motion:reduce){.settings,.settings-fade,.settings-saved{transition:none}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.4571 9.45711L11 15.9142L6.79289 11.7071L8.20711 10.2929L11 13.0858L16.0429 8.04289L17.4571 9.45711Z"/></svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[SHARE_BUTTON_TARGET]?: Attributes;
|
|
5
|
+
[SHARE_BUTTON_TRIGGER]?: Attributes;
|
|
6
|
+
onconnect?: never;
|
|
7
|
+
ondisconnect?: never;
|
|
8
|
+
ondocumentkeydown?: never;
|
|
9
|
+
ondocumentpointerdown?: never;
|
|
10
|
+
onkeydown?: never;
|
|
11
|
+
onpointerdown?: never;
|
|
12
|
+
state?: State;
|
|
13
|
+
text?: string;
|
|
14
|
+
title: string;
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
type State = {
|
|
18
|
+
copied: boolean;
|
|
19
|
+
open: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const SHARE_BUTTON_TARGET: unique symbol;
|
|
22
|
+
declare const SHARE_BUTTON_TRIGGER: unique symbol;
|
|
23
|
+
declare const _default: ((this: {
|
|
24
|
+
attributes?: Partial<A>;
|
|
25
|
+
} | void, { state, text, title, url, ...attributes }: A) => DocumentFragment | Text) & {
|
|
26
|
+
readonly target: typeof SHARE_BUTTON_TARGET;
|
|
27
|
+
readonly trigger: typeof SHARE_BUTTON_TRIGGER;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect } from '@esportsplus/reactivity';
|
|
4
|
+
import { write } from '../clipboard/index.js';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_0ttrset2 = template_u1.template(`<div class='share-button'><button aria-expanded='false' class='button share-button-face share-button-trigger' type='button'><svg class='share-button-icon' viewBox='0 0 16 16'><path d='M8 9.5V2.5M5.25 5.25 8 2.5l2.75 2.75M3.5 8v4.5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V8' /></svg></button><div class='share-button-face share-button-targets' role='group'><button class='button share-button-target share-button-copy ' type='button'><span class='share-button-swap'><svg class='share-button-icon share-button-icon--link' viewBox='0 0 16 16'><path d='M6.25 9.75l3.5-3.5M7 4.25l1.05-1.05a3.25 3.25 0 0 1 4.6 4.6L11.6 8.85M9 11.75l-1.05 1.05a3.25 3.25 0 0 1-4.6-4.6L4.4 7.15' /></svg><svg class='share-button-icon share-button-icon--check' viewBox='0 0 16 16'><path d='M3.5 8.25l3 3 6-6.5' /></svg></span><span class='share-button-copied' hidden>Copied</span></button><a aria-label='Post on X' class='button share-button-target' rel='noreferrer' target='_blank'><svg class='share-button-icon share-button-icon--x' viewBox='0 0 24 24'><path d='M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z' /></svg></a><a aria-label='Email' class='button share-button-target'><svg class='share-button-icon' viewBox='0 0 16 16'><rect x='2.25' y='3.75' width='11.5' height='8.5' rx='1.75' /><path d='M2.75 5.25 8 9l5.25-3.75' /></svg></a><!--$--><span aria-hidden='true' class='share-button-divider'></span><button aria-label='Close' class='button share-button-target share-button-close' type='button'><svg class='share-button-icon' viewBox='0 0 16 16'><path d='M4.5 4.5l7 7M11.5 4.5l-7 7' /></svg></button></div><span aria-live='polite' class='share-button-live'>`);
|
|
7
|
+
const template_0ttrsetd = template_u1.template(`<button aria-label='More ways to share' class='button share-button-target' type='button'><svg class='share-button-icon' viewBox='0 0 16 16'><path d='M3.75 8h.01M8 8h.01M12.25 8h.01' stroke-width='2.25' />`);
|
|
8
|
+
class ReactiveObject_0ttrset0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#copied = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
#open = this[reactivity_u0.SIGNAL](false);
|
|
11
|
+
constructor() {
|
|
12
|
+
super(null);
|
|
13
|
+
}
|
|
14
|
+
get copied() {
|
|
15
|
+
return reactivity_u0.read(this.#copied);
|
|
16
|
+
}
|
|
17
|
+
set copied(_v0) {
|
|
18
|
+
reactivity_u0.write(this.#copied, _v0);
|
|
19
|
+
}
|
|
20
|
+
get open() {
|
|
21
|
+
return reactivity_u0.read(this.#open);
|
|
22
|
+
}
|
|
23
|
+
set open(_v1) {
|
|
24
|
+
reactivity_u0.write(this.#open, _v1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const COPIED_FOR = 1800;
|
|
28
|
+
const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
|
|
29
|
+
const SHARE_BUTTON_TARGET = Symbol.for('@esportsplus/ui/share-button.target');
|
|
30
|
+
const SHARE_BUTTON_TRIGGER = Symbol.for('@esportsplus/ui/share-button.trigger');
|
|
31
|
+
const SPRING = 'linear(0, 0.057, 0.18, 0.321, 0.455, 0.573, 0.671, 0.75, 0.812, 0.86, 0.896, 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)';
|
|
32
|
+
function reduced() {
|
|
33
|
+
return matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
34
|
+
}
|
|
35
|
+
export default Object.assign(function ({ state = new ReactiveObject_0ttrset0(), text = 'Share', title, url, ...attributes }) {
|
|
36
|
+
let animations = [], encodedTitle = encodeURIComponent(title), encodedUrl = encodeURIComponent(url), keys = false, native = typeof navigator !== 'undefined' && typeof navigator.share === 'function', stop, timer;
|
|
37
|
+
function copied(element, value) {
|
|
38
|
+
let word = element.querySelector('.share-button-copied');
|
|
39
|
+
if (!word) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let from = word.hidden ? '0px' : getComputedStyle(word).width;
|
|
43
|
+
word.getAnimations().forEach((animation) => animation.cancel());
|
|
44
|
+
word.hidden = false;
|
|
45
|
+
let to = value ? `${word.scrollWidth}px` : '0px';
|
|
46
|
+
if (reduced()) {
|
|
47
|
+
word.hidden = !value;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
let animation = word.animate([
|
|
51
|
+
{ filter: value ? 'blur(4px)' : 'blur(0px)', opacity: value ? 0 : 1, width: from },
|
|
52
|
+
{ filter: value ? 'blur(0px)' : 'blur(4px)', opacity: value ? 1 : 0, width: to }
|
|
53
|
+
], { duration: 400, easing: SPRING });
|
|
54
|
+
if (!value) {
|
|
55
|
+
animation.finished.then(() => {
|
|
56
|
+
word.hidden = true;
|
|
57
|
+
}, () => { });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async function copy() {
|
|
61
|
+
if (!(await write(url))) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
clearTimeout(timer);
|
|
65
|
+
state.copied = true;
|
|
66
|
+
timer = setTimeout(() => {
|
|
67
|
+
state.copied = false;
|
|
68
|
+
}, COPIED_FOR);
|
|
69
|
+
}
|
|
70
|
+
function reshape(root, open) {
|
|
71
|
+
let enter = root.querySelector(open ? '.share-button-targets' : '.share-button-trigger'), from = getComputedStyle(root).width, leave = root.querySelector(open ? '.share-button-trigger' : '.share-button-targets');
|
|
72
|
+
if (!enter || !leave) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
for (let animation of animations) {
|
|
76
|
+
animation.cancel();
|
|
77
|
+
}
|
|
78
|
+
animations = [];
|
|
79
|
+
enter.classList.remove('share-button-face--leaving');
|
|
80
|
+
enter.hidden = false;
|
|
81
|
+
enter.inert = false;
|
|
82
|
+
leave.inert = true;
|
|
83
|
+
if (reduced()) {
|
|
84
|
+
leave.hidden = true;
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
leave.classList.add('share-button-face--leaving');
|
|
88
|
+
let fade = leave.animate([{}, { filter: 'blur(4px)', opacity: 0 }], { duration: 100, easing: EASE_OUT, fill: 'forwards' }), to = getComputedStyle(root).width;
|
|
89
|
+
fade.finished.then(() => {
|
|
90
|
+
leave.classList.remove('share-button-face--leaving');
|
|
91
|
+
leave.hidden = true;
|
|
92
|
+
fade.cancel();
|
|
93
|
+
}, () => { });
|
|
94
|
+
animations.push(fade, enter.animate([{ filter: 'blur(4px)', opacity: 0 }, { filter: 'blur(0px)', opacity: 1 }], { delay: open ? 60 : 80, duration: 200, easing: EASE_OUT, fill: 'backwards' }), root.animate([{ width: from }, { width: to }], { duration: 400, easing: SPRING }));
|
|
95
|
+
}
|
|
96
|
+
function toggle(root, open) {
|
|
97
|
+
clearTimeout(timer);
|
|
98
|
+
state.copied = false;
|
|
99
|
+
state.open = open;
|
|
100
|
+
if (!keys) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
requestAnimationFrame(() => {
|
|
104
|
+
root.querySelector(open ? '.share-button-target' : '.share-button-trigger')?.focus();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return (() => {
|
|
108
|
+
let root_0ttrset1 = template_0ttrset2(), element_0ttrset3 = root_0ttrset1.firstChild, element_0ttrset4 = element_0ttrset3.firstElementChild, element_0ttrset5 = element_0ttrset4.nextElementSibling, element_0ttrset6 = element_0ttrset5.firstElementChild, element_0ttrset7 = element_0ttrset6.nextElementSibling, element_0ttrset8 = element_0ttrset7.nextElementSibling, element_0ttrset9 = element_0ttrset5.firstChild.nextSibling.nextSibling.nextSibling, element_0ttrseta = element_0ttrset8.nextElementSibling.nextElementSibling, element_0ttrsetb = element_0ttrset5.nextElementSibling;
|
|
109
|
+
template_u1.setProperties(element_0ttrset3, this?.attributes);
|
|
110
|
+
template_u1.setProperties(element_0ttrset3, attributes);
|
|
111
|
+
template_u1.onconnect(element_0ttrset3, (element) => {
|
|
112
|
+
let open = state.open, wasCopied = state.copied;
|
|
113
|
+
stop = effect(() => {
|
|
114
|
+
if (state.open !== open) {
|
|
115
|
+
open = state.open;
|
|
116
|
+
reshape(element, open);
|
|
117
|
+
}
|
|
118
|
+
if (state.copied !== wasCopied) {
|
|
119
|
+
wasCopied = state.copied;
|
|
120
|
+
copied(element, wasCopied);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
template_u1.ondisconnect(element_0ttrset3, () => {
|
|
125
|
+
clearTimeout(timer);
|
|
126
|
+
stop?.();
|
|
127
|
+
for (let animation of animations) {
|
|
128
|
+
animation.cancel();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
template_u1.ondocument(element_0ttrset3, 'keydown', function (e) {
|
|
132
|
+
if (e.key !== 'Escape' || !state.open) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
keys = true;
|
|
136
|
+
toggle(this, false);
|
|
137
|
+
});
|
|
138
|
+
template_u1.ondocument(element_0ttrset3, 'pointerdown', function (e) {
|
|
139
|
+
if (!state.open || this.contains(e.target)) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
toggle(this, false);
|
|
143
|
+
});
|
|
144
|
+
template_u1.delegate(element_0ttrset3, 'keydown', () => {
|
|
145
|
+
keys = true;
|
|
146
|
+
});
|
|
147
|
+
template_u1.delegate(element_0ttrset3, 'pointerdown', () => {
|
|
148
|
+
keys = false;
|
|
149
|
+
});
|
|
150
|
+
template_u1.setProperty(element_0ttrset4, 'hidden', state.open);
|
|
151
|
+
template_u1.delegate(element_0ttrset4, 'click', function () {
|
|
152
|
+
let root = this.closest('.share-button');
|
|
153
|
+
if (root) {
|
|
154
|
+
toggle(root, true);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
template_u1.setProperties(element_0ttrset4, this?.attributes?.[SHARE_BUTTON_TRIGGER]);
|
|
158
|
+
template_u1.setProperties(element_0ttrset4, attributes[SHARE_BUTTON_TRIGGER]);
|
|
159
|
+
template_u1.slot(element_0ttrset4, text, 2);
|
|
160
|
+
template_u1.setProperty(element_0ttrset5, 'aria-label', template_u1.interpolate(["Share ", (title)]));
|
|
161
|
+
template_u1.setProperty(element_0ttrset5, 'hidden', !state.open);
|
|
162
|
+
template_u1.setList(element_0ttrset6, 'class', () => state.copied && '--active');
|
|
163
|
+
template_u1.setProperty(element_0ttrset6, 'aria-label', () => state.copied ? 'Link copied' : 'Copy link');
|
|
164
|
+
template_u1.delegate(element_0ttrset6, 'click', copy);
|
|
165
|
+
template_u1.setProperties(element_0ttrset6, this?.attributes?.[SHARE_BUTTON_TARGET]);
|
|
166
|
+
template_u1.setProperties(element_0ttrset6, attributes[SHARE_BUTTON_TARGET]);
|
|
167
|
+
template_u1.setProperty(element_0ttrset7, 'href', template_u1.interpolate(["https://x.com/intent/post?text=", (encodedTitle), "&url=", (encodedUrl)]));
|
|
168
|
+
template_u1.setProperties(element_0ttrset7, this?.attributes?.[SHARE_BUTTON_TARGET]);
|
|
169
|
+
template_u1.setProperties(element_0ttrset7, attributes[SHARE_BUTTON_TARGET]);
|
|
170
|
+
template_u1.setProperty(element_0ttrset8, 'href', template_u1.interpolate(["mailto:?subject=", (encodedTitle), "&body=", (encodedUrl)]));
|
|
171
|
+
template_u1.setProperties(element_0ttrset8, this?.attributes?.[SHARE_BUTTON_TARGET]);
|
|
172
|
+
template_u1.setProperties(element_0ttrset8, attributes[SHARE_BUTTON_TARGET]);
|
|
173
|
+
template_u1.slot(element_0ttrset9, native && (() => {
|
|
174
|
+
let root_0ttrsetc = template_0ttrsetd(), element_0ttrsete = root_0ttrsetc.firstChild;
|
|
175
|
+
template_u1.delegate(element_0ttrsete, 'click', () => {
|
|
176
|
+
navigator.share({ title, url }).catch(() => { });
|
|
177
|
+
});
|
|
178
|
+
template_u1.setProperties(element_0ttrsete, this?.attributes?.[SHARE_BUTTON_TARGET]);
|
|
179
|
+
template_u1.setProperties(element_0ttrsete, attributes[SHARE_BUTTON_TARGET]);
|
|
180
|
+
return root_0ttrsetc;
|
|
181
|
+
})());
|
|
182
|
+
template_u1.delegate(element_0ttrseta, 'click', function () {
|
|
183
|
+
let root = this.closest('.share-button');
|
|
184
|
+
if (root) {
|
|
185
|
+
toggle(root, false);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
new template_u1.EffectSlot(element_0ttrsetb, () => state.copied ? 'Link copied' : '', 1);
|
|
189
|
+
return root_0ttrset1;
|
|
190
|
+
})();
|
|
191
|
+
}, { target: SHARE_BUTTON_TARGET, trigger: SHARE_BUTTON_TRIGGER });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.share-button{--share-button-background:var(--color-white-300);--share-button-box-shadow:0 0 0 1px color-mix(in oklab, var(--color-black-300) 6%, transparent), 0 1px 2px color-mix(in oklab, var(--color-black-300) 6%, transparent), 0 6px 16px -6px color-mix(in oklab, var(--color-black-300) 12%, transparent);--share-button-color:var(--color-text-500);--share-button-color-muted:var(--color-text-300);--share-button-divider-color:var(--color-border-300);--share-button-ease:cubic-bezier(.23, 1, .32, 1);--share-button-focus-color:color-mix(in oklab, var(--color-text-500) 38%, transparent);--share-button-font-size:14px;--share-button-height:44px;--share-button-icon-size:16px;--share-button-scale-pressed:.96;--share-button-target-background-hover:var(--color-grey-400);--share-button-target-size:36px}.share-button--surface{--share-button-background:var(--color-grey-400);--share-button-target-background-hover:var(--color-white-300)}.share-button{background:var(--share-button-background);box-shadow:var(--share-button-box-shadow);height:var(--share-button-height);border-radius:999px;align-items:center;display:inline-flex;position:relative;overflow:hidden}.share-button-copied{font-size:13px;font-weight:var(--font-weight-500);white-space:nowrap;overflow:hidden}.share-button-close.button{--color-default:var(--share-button-color-muted);--color-hover:var(--share-button-color)}.share-button-divider{background:var(--share-button-divider-color);flex-shrink:0;width:1px;height:20px;margin-inline:4px}.share-button-face{flex-shrink:0}.share-button-face[hidden][hidden]{display:none}.share-button-face--leaving{position:absolute;top:0;left:0}.share-button-icon{fill:none;height:var(--share-button-icon-size);stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.4px;width:var(--share-button-icon-size);flex-shrink:0}.share-button-icon--check,.share-button-icon--link{transition:filter .2s var(--share-button-ease), opacity .2s var(--share-button-ease), scale .2s var(--share-button-ease);grid-area:1/1}.share-button-icon--check{filter:blur(4px);opacity:0;scale:.25}.share-button-icon--x{fill:currentColor;stroke:none;width:14px;height:14px}.share-button-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.share-button-swap{height:var(--share-button-icon-size);width:var(--share-button-icon-size);place-items:center;display:grid}.share-button-target.button,.share-button-trigger.button{--background-default:transparent;--border-radius:999px;--color-default:var(--share-button-color);--font-size:var(--share-button-font-size);--font-weight:var(--font-weight-500);--line-height:20px;--padding-vertical:0px;border:0;outline:none;flex-shrink:0;text-decoration:none;transition:background-color .15s ease-out,color .15s ease-out,scale .15s ease-out;display:inline-flex}.share-button-target.button:active,.share-button-trigger.button:active{scale:var(--share-button-scale-pressed)}.share-button-target.button:focus-visible,.share-button-trigger.button:focus-visible{outline:2px solid var(--share-button-focus-color);outline-offset:-2px}.share-button-target.button{--background-hover:var(--share-button-target-background-hover);--padding-horizontal:0px;height:var(--share-button-target-size);min-width:var(--share-button-target-size)}.share-button-targets{align-items:center;gap:2px;padding:4px;display:flex}.share-button-target.share-button-copy{--padding-horizontal:10px;gap:6px;width:auto}.share-button-trigger.button{--padding-horizontal:20px;height:var(--share-button-height);gap:8px}.share-button-copy.--active .share-button-icon--check{filter:blur();opacity:1;scale:1}.share-button-copy.--active .share-button-icon--link{filter:blur(4px);opacity:0;scale:.25}@media (prefers-reduced-motion:reduce){.share-button-icon--check,.share-button-icon--link{transition:none}.share-button-target.button,.share-button-trigger.button{transition:background-color .15s ease-out,color .15s ease-out}.share-button-target.button:active,.share-button-trigger.button:active{scale:1}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
type A = Attributes<HTMLDialogElement> & {
|
|
5
|
+
[SHEET_HANDLE]?: Attributes;
|
|
6
|
+
label?: string;
|
|
7
|
+
oncancel?: never;
|
|
8
|
+
onclick?: never;
|
|
9
|
+
onclose?: never;
|
|
10
|
+
onconnect?: never;
|
|
11
|
+
ondisconnect?: never;
|
|
12
|
+
onpointercancel?: never;
|
|
13
|
+
onpointerdown?: never;
|
|
14
|
+
onpointermove?: never;
|
|
15
|
+
onpointerup?: never;
|
|
16
|
+
state?: {
|
|
17
|
+
active: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
declare const SHEET_HANDLE: unique symbol;
|
|
21
|
+
declare const _default: {
|
|
22
|
+
(): template_u1.Renderable<any>;
|
|
23
|
+
<T extends A>(attributes: T): template_u1.Renderable<any>;
|
|
24
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
25
|
+
(attributes: A, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
26
|
+
bind(context: {
|
|
27
|
+
attributes?: Partial<A> | undefined;
|
|
28
|
+
content?: template_u1.Renderable<any>;
|
|
29
|
+
}): any;
|
|
30
|
+
} & {
|
|
31
|
+
readonly handle: typeof SHEET_HANDLE;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import { effect } from '@esportsplus/reactivity';
|
|
3
|
+
import * as template_u1 from '@esportsplus/template';
|
|
4
|
+
import { component } from '@esportsplus/template';
|
|
5
|
+
import modal from '../modal/index.js';
|
|
6
|
+
import './scss/index.scss';
|
|
7
|
+
const template_0si2o402 = template_u1.template(`<div aria-hidden='true' class='sheet-handle'></div><!--$-->`);
|
|
8
|
+
class ReactiveObject_0si2o400 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
constructor() {
|
|
11
|
+
super(null);
|
|
12
|
+
}
|
|
13
|
+
get active() {
|
|
14
|
+
return reactivity_u0.read(this.#active);
|
|
15
|
+
}
|
|
16
|
+
set active(_v0) {
|
|
17
|
+
reactivity_u0.write(this.#active, _v0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const DISMISS_DISTANCE = 0.25;
|
|
21
|
+
const FLICK_VELOCITY = 0.11;
|
|
22
|
+
const SHEET_HANDLE = Symbol.for('@esportsplus/ui/sheet.handle');
|
|
23
|
+
const base = modal.bind({ attributes: { class: 'sheet modal--sheet', tabindex: -1 } });
|
|
24
|
+
const THRESHOLD = 4;
|
|
25
|
+
function inside(element, e) {
|
|
26
|
+
let rect = element.getBoundingClientRect();
|
|
27
|
+
return e.clientX >= rect.left && e.clientX <= rect.right && e.clientY >= rect.top && e.clientY <= rect.bottom;
|
|
28
|
+
}
|
|
29
|
+
function swallow(e) {
|
|
30
|
+
e.preventDefault();
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
}
|
|
33
|
+
export default Object.assign(component(function ({ label, state = new ReactiveObject_0si2o400(), ...attributes }, content) {
|
|
34
|
+
let drag = null, stop;
|
|
35
|
+
function settle(element, close) {
|
|
36
|
+
element.classList.remove('--dragging');
|
|
37
|
+
element.style.removeProperty('--progress');
|
|
38
|
+
element.style.removeProperty('translate');
|
|
39
|
+
if (close) {
|
|
40
|
+
state.active = false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return base({
|
|
44
|
+
'aria-label': label,
|
|
45
|
+
state,
|
|
46
|
+
...this?.attributes,
|
|
47
|
+
...attributes,
|
|
48
|
+
class: [this?.attributes?.class, attributes.class].flat(),
|
|
49
|
+
onpointercancel: (e) => {
|
|
50
|
+
if (!drag || e.pointerId !== drag.pointer) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
drag = null;
|
|
54
|
+
settle(e.currentTarget, false);
|
|
55
|
+
},
|
|
56
|
+
onpointerdown: (e) => {
|
|
57
|
+
let element = e.currentTarget;
|
|
58
|
+
if (e.button !== 0 || !state.active || !inside(element, e)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (e.target.closest('a, button, input, select, textarea, [contenteditable]')) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
drag = { dy: 0, pointer: e.pointerId, start: performance.now(), y: e.clientY };
|
|
65
|
+
element.setPointerCapture(e.pointerId);
|
|
66
|
+
element.classList.add('--dragging');
|
|
67
|
+
},
|
|
68
|
+
onpointermove: (e) => {
|
|
69
|
+
if (!drag || e.pointerId !== drag.pointer) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
let element = e.currentTarget, dy = e.clientY - drag.y;
|
|
73
|
+
if (dy < 0) {
|
|
74
|
+
dy = -Math.pow(-dy, 0.7);
|
|
75
|
+
}
|
|
76
|
+
drag.dy = dy;
|
|
77
|
+
element.style.setProperty('--progress', String(Math.max(dy, 0) / element.offsetHeight));
|
|
78
|
+
element.style.translate = `0 ${dy}px`;
|
|
79
|
+
},
|
|
80
|
+
onpointerup: (e) => {
|
|
81
|
+
if (!drag || e.pointerId !== drag.pointer) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
let element = e.currentTarget, { dy, start } = drag, velocity = dy / (performance.now() - start);
|
|
85
|
+
drag = null;
|
|
86
|
+
if (Math.abs(dy) > THRESHOLD) {
|
|
87
|
+
addEventListener('click', swallow, true);
|
|
88
|
+
setTimeout(() => removeEventListener('click', swallow, true));
|
|
89
|
+
}
|
|
90
|
+
settle(element, dy > element.offsetHeight * DISMISS_DISTANCE || velocity > FLICK_VELOCITY);
|
|
91
|
+
}
|
|
92
|
+
}, (() => {
|
|
93
|
+
let root_0si2o401 = template_0si2o402(), element_0si2o403 = root_0si2o401.firstChild, element_0si2o404 = element_0si2o403.nextSibling;
|
|
94
|
+
template_u1.setProperties(element_0si2o403, this?.attributes?.[SHEET_HANDLE]);
|
|
95
|
+
template_u1.setProperties(element_0si2o403, attributes[SHEET_HANDLE]);
|
|
96
|
+
template_u1.onconnect(element_0si2o403, (element) => {
|
|
97
|
+
let dialog = element.parentElement;
|
|
98
|
+
stop = effect(() => {
|
|
99
|
+
if (state.active) {
|
|
100
|
+
queueMicrotask(() => dialog.focus({ preventScroll: true }));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
template_u1.ondisconnect(element_0si2o403, () => {
|
|
105
|
+
stop?.();
|
|
106
|
+
});
|
|
107
|
+
template_u1.slot(element_0si2o404, content);
|
|
108
|
+
return root_0si2o401;
|
|
109
|
+
})());
|
|
110
|
+
}), { handle: SHEET_HANDLE });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.sheet{--background:var(--color-white-300);--backdrop-color:color-mix(in srgb, var(--color-black-500) 40%, transparent);--box-shadow:0 0 0 var(--border-width-400) var(--color-border-300), 0 -8px 40px oklch(from var(--color-black-500) l c h / .15);--close-duration:.3s;--color:var(--color-text-500);--edge-color:var(--color-border-300);--ease:cubic-bezier(.32, .72, 0, 1);--handle-color:var(--color-border-300);--handle-height:6px;--handle-margin:var(--size-500);--handle-width:40px;--open-duration:.5s;--padding-bottom:var(--size-700);--padding-sides:calc(var(--size-400) * 1.5);--padding-top:var(--size-300);--radius:28px;--width:448px}.sheet--full{--radius:var(--border-radius-700);--width:100%}.sheet.modal{--backdrop:var(--backdrop-color);--margin-horizontal:0px;--max-width:var(--width);--transition-duration:var(--open-duration);--transition-timing-function:var(--ease);background:var(--background);border-radius:var(--radius) var(--radius) 0 0;box-shadow:var(--box-shadow);color:var(--color);cursor:grab;padding:var(--padding-top) var(--padding-sides) var(--padding-bottom);touch-action:none;-webkit-user-select:none;user-select:none;outline:none;overflow:visible}.sheet.modal:not(.--active){--transition-duration:var(--close-duration)}.sheet.modal.--active::backdrop{opacity:calc(1 - var(--progress,0))}.sheet.modal.--dragging{cursor:grabbing}.sheet.modal.--dragging,.sheet.modal.--dragging::backdrop{transition:none}.sheet.modal:after{background:inherit;box-shadow:var(--border-width-400) 0 0 var(--edge-color), calc(var(--border-width-400) * -1) 0 0 var(--edge-color);content:"";pointer-events:none;inset-inline:0;height:50vh;position:absolute;top:100%}@media (prefers-reduced-motion:reduce){.sheet.modal::backdrop{transition:opacity var(--transition-duration) var(--transition-timing-function)}}.sheet-handle{background:var(--handle-color);border-radius:var(--handle-height);height:var(--handle-height);margin:0 auto var(--handle-margin);width:var(--handle-width)}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
type A = Attributes & {
|
|
5
|
+
width?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: {
|
|
8
|
+
(): template_u1.Renderable<any>;
|
|
9
|
+
<T extends A>(attributes: T): template_u1.Renderable<any>;
|
|
10
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
11
|
+
(attributes: A, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
12
|
+
bind(context: {
|
|
13
|
+
attributes?: Partial<A> | undefined;
|
|
14
|
+
content?: template_u1.Renderable<any>;
|
|
15
|
+
}): any;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
const template_10y1frs1 = template_u1.template(`<span class='shiny-text'>`);
|
|
5
|
+
export default component(function ({ width = 100, ...attributes }, content) {
|
|
6
|
+
return (() => {
|
|
7
|
+
let root_10y1frs0 = template_10y1frs1(), element_10y1frs2 = root_10y1frs0.firstChild;
|
|
8
|
+
template_u1.setList(element_10y1frs2, 'style', `--shine-width: ${width}px`);
|
|
9
|
+
template_u1.setProperties(element_10y1frs2, this?.attributes);
|
|
10
|
+
template_u1.setProperties(element_10y1frs2, attributes);
|
|
11
|
+
template_u1.slot(element_10y1frs2, content, 1);
|
|
12
|
+
return root_10y1frs0;
|
|
13
|
+
})();
|
|
14
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.shiny-text{--color:oklch(from var(--color-text-300) l c h / .7);--duration:8s;--shine-color:oklch(from var(--color-black-300) l c h / .8);--shine-width:100px;--transition-duration:.3s;animation:shiny-text var(--duration) infinite;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(to right, transparent, var(--shine-color) 50%, transparent);background-position:0 0;background-repeat:no-repeat;background-size:var(--shine-width) 100%;color:var(--color);transition:color var(--transition-duration) ease-out}@media (prefers-reduced-motion:reduce){.shiny-text{background-image:none;animation:none}}@keyframes shiny-text{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
label: string;
|
|
5
|
+
state?: {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
taken?: (shortcut: string) => string | null | undefined;
|
|
9
|
+
value?: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
declare function _default({ label, taken, value, state, ...attributes }: A): DocumentFragment | Text;
|