@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,79 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
+
import icon from '../icon/index.js';
|
|
5
|
+
import textarea from '../textarea/index.js';
|
|
6
|
+
import arrow from './svg/arrow-up.svg';
|
|
7
|
+
import './scss/index.scss';
|
|
8
|
+
const template_1pzsz612 = template_u1.template(`<div class='composer'><div class='composer-input'><!--$--><div class='composer-toolbar'><div class='composer-actions'></div><button aria-label='Send' class='composer-send' type='button'>`);
|
|
9
|
+
const template_1pzsz618 = template_u1.template(`<div class='composer-footer'>`);
|
|
10
|
+
class ReactiveObject_1pzsz610 extends reactivity_u0.ReactiveObject {
|
|
11
|
+
#processing = this[reactivity_u0.SIGNAL](false);
|
|
12
|
+
#value = this[reactivity_u0.SIGNAL]('');
|
|
13
|
+
constructor() {
|
|
14
|
+
super(null);
|
|
15
|
+
}
|
|
16
|
+
get processing() {
|
|
17
|
+
return reactivity_u0.read(this.#processing);
|
|
18
|
+
}
|
|
19
|
+
set processing(_v0) {
|
|
20
|
+
reactivity_u0.write(this.#processing, _v0);
|
|
21
|
+
}
|
|
22
|
+
get value() {
|
|
23
|
+
return reactivity_u0.read(this.#value);
|
|
24
|
+
}
|
|
25
|
+
set value(_v1) {
|
|
26
|
+
reactivity_u0.write(this.#value, _v1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const COMPOSER_SEND = Symbol.for('@esportsplus/ui/composer.send');
|
|
30
|
+
const COMPOSER_TEXTAREA = Symbol.for('@esportsplus/ui/composer.textarea');
|
|
31
|
+
export default component(function ({ actions, footer, state = new ReactiveObject_1pzsz610(), submit, ...attributes }) {
|
|
32
|
+
let disabled = () => state.processing || !state.value.trim();
|
|
33
|
+
let send = async () => {
|
|
34
|
+
if (disabled()) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
state.processing = true;
|
|
38
|
+
try {
|
|
39
|
+
await submit(state.value);
|
|
40
|
+
state.value = '';
|
|
41
|
+
}
|
|
42
|
+
finally {
|
|
43
|
+
state.processing = false;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return (() => {
|
|
47
|
+
let root_1pzsz611 = template_1pzsz612(), element_1pzsz613 = root_1pzsz611.firstChild, element_1pzsz614 = element_1pzsz613.firstElementChild.firstChild, element_1pzsz615 = element_1pzsz613.firstElementChild.firstElementChild.firstElementChild, element_1pzsz616 = element_1pzsz615.nextElementSibling;
|
|
48
|
+
template_u1.setProperties(element_1pzsz613, this?.attributes);
|
|
49
|
+
template_u1.setProperties(element_1pzsz613, attributes);
|
|
50
|
+
template_u1.slot(element_1pzsz614, textarea({
|
|
51
|
+
autoresize: { height: { max: '320px', min: '72px' } },
|
|
52
|
+
...this?.attributes?.[COMPOSER_TEXTAREA],
|
|
53
|
+
...attributes[COMPOSER_TEXTAREA],
|
|
54
|
+
oninput: (e) => {
|
|
55
|
+
state.value = e.target.value;
|
|
56
|
+
},
|
|
57
|
+
onkeydown: (e) => {
|
|
58
|
+
if (e.key !== 'Enter' || e.isComposing || e.shiftKey) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
void send();
|
|
63
|
+
},
|
|
64
|
+
value: () => state.value
|
|
65
|
+
}));
|
|
66
|
+
template_u1.slot(element_1pzsz615, actions, 1);
|
|
67
|
+
template_u1.setProperties(element_1pzsz616, this?.attributes?.[COMPOSER_SEND]);
|
|
68
|
+
template_u1.setProperties(element_1pzsz616, attributes[COMPOSER_SEND]);
|
|
69
|
+
template_u1.setProperty(element_1pzsz616, 'disabled', disabled);
|
|
70
|
+
template_u1.delegate(element_1pzsz616, 'click', send);
|
|
71
|
+
template_u1.slot(element_1pzsz616, icon({ 'aria-hidden': true }, arrow), 1);
|
|
72
|
+
template_u1.slot(element_1pzsz613, footer && (() => {
|
|
73
|
+
let root_1pzsz617 = template_1pzsz618(), element_1pzsz619 = root_1pzsz617.firstChild;
|
|
74
|
+
template_u1.slot(element_1pzsz619, footer, 1);
|
|
75
|
+
return root_1pzsz617;
|
|
76
|
+
})(), 2);
|
|
77
|
+
return root_1pzsz611;
|
|
78
|
+
})();
|
|
79
|
+
}, { send: COMPOSER_SEND, textarea: COMPOSER_TEXTAREA });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.composer{--background:var(--color-grey-400);--border-radius:var(--border-radius-700);--width:100%}.composer-action{--background:transparent;--background-hover:color-mix(in srgb, var(--color-text-500), transparent 94%);--background-pressed:color-mix(in srgb, var(--color-text-500), transparent 90%);--border-radius:var(--border-radius-300);--color:var(--color-text-400);--color-hover:var(--color-text-500);--font-size:var(--font-size-400);--gap:var(--size-100);--padding-horizontal:var(--size-200);--padding-vertical:var(--size-100)}.composer-action:not(.--active):hover{--background:var(--background-hover);--color:var(--color-hover)}.composer-action:not(.--active):active{--background:var(--background-pressed);--color:var(--color-hover)}.composer-actions,.composer-footer{--gap:var(--size-100)}.composer-footer{--padding-horizontal:var(--size-300);--padding-vertical:var(--size-200)}.composer-input{--background:var(--color-white-300);--border-color:var(--border-color-default);--border-color-active:var(--color-border-400);--border-color-default:var(--color-border-300);--border-width:var(--border-width-400);--box-shadow:none}.composer-input:focus-within{--border-color:var(--border-color-active)}.composer-input .textarea{--color-default:var(--color-text-500);--font-size:var(--font-size-400);--padding-horizontal:var(--size-500);--padding-vertical:var(--size-400);--placeholder-color:var(--color-text-300)}.composer-send{--background:var(--color-text-500);--background-disabled:var(--color-text-300);--color:var(--color-white-300);--icon-size:var(--size-300);--size:var(--size-600)}.composer-separator{--background:var(--color-border-300);--height:var(--size-400);--margin-horizontal:var(--size-100);--width:var(--border-width-400)}.composer-toolbar{--gap:var(--size-300);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.composer{background:var(--background);border-radius:var(--border-radius);width:var(--width);flex-direction:column;display:flex;position:relative}.composer-action{background:var(--background);border-radius:var(--border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);align-items:center;gap:var(--gap);padding:var(--padding-vertical) var(--padding-horizontal);transition:background var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);white-space:nowrap;border:0;flex:none;display:inline-flex}.composer-actions,.composer-footer{align-items:center;gap:var(--gap);flex-wrap:wrap;min-width:0;display:flex}.composer-footer{padding:var(--padding-vertical) var(--padding-horizontal)}.composer-input{background:var(--background);border:var(--border-width) solid var(--border-color);border-radius:inherit;box-shadow:var(--box-shadow);cursor:text;transition:border-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function);flex-direction:column;display:flex}.composer-input .textarea::placeholder{color:var(--placeholder-color)}.composer-send{background:var(--background);color:var(--color);cursor:pointer;flex:0 0 var(--size);height:var(--size);transition:background var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function);width:var(--size);border:0;border-radius:100%;justify-content:center;align-items:center;margin-left:auto;padding:0;display:flex}.composer-send:disabled{background:var(--background-disabled);cursor:default}.composer-send .icon{--size:var(--icon-size)}.composer-separator{background:var(--background);flex:0 0 var(--width);height:var(--height);margin:0 var(--margin-horizontal);width:var(--width);align-self:center}.composer-toolbar{align-items:center;gap:var(--gap);padding:0 var(--padding-horizontal) var(--padding-vertical);display:flex}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 19V5M5 12l7-7 7 7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.container{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:var(--size-600);--margin-vertical:0px;--max-width:1400px;gap:var(--gap-vertical) var(--gap-horizontal);margin:var(--margin-vertical)
|
|
1
|
+
@layer components {.container{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:var(--size-600);--margin-vertical:0px;--max-width:1400px;gap:var(--gap-vertical) var(--gap-horizontal);margin-block:var(--margin-vertical);width:min(var(--max-width), 100% - var(--margin-horizontal) * 2);flex-wrap:wrap;justify-content:flex-start;margin-inline:auto;display:flex;position:relative}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import '../tooltip/scss/index.scss';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
type A = Attributes & {
|
|
5
|
+
[CONTRIBUTION_HEATMAP_CELL]?: Attributes;
|
|
6
|
+
data: Day[];
|
|
7
|
+
label?: string;
|
|
8
|
+
onscroll?: never;
|
|
9
|
+
state?: State;
|
|
10
|
+
thresholds?: number[];
|
|
11
|
+
};
|
|
12
|
+
type Day = {
|
|
13
|
+
count: number;
|
|
14
|
+
date: string;
|
|
15
|
+
level?: number;
|
|
16
|
+
};
|
|
17
|
+
type State = {
|
|
18
|
+
index: number;
|
|
19
|
+
};
|
|
20
|
+
declare const CONTRIBUTION_HEATMAP_CELL: unique symbol;
|
|
21
|
+
declare function legend(attributes?: Attributes): DocumentFragment | Text;
|
|
22
|
+
declare function template(this: {
|
|
23
|
+
attributes?: Partial<A>;
|
|
24
|
+
} | void, { data, label, state, thresholds, ...attributes }: A): DocumentFragment | Text;
|
|
25
|
+
declare const _default: typeof template & {
|
|
26
|
+
readonly cell: typeof CONTRIBUTION_HEATMAP_CELL;
|
|
27
|
+
readonly legend: typeof legend;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
export type { Day as ContributionHeatmapDay, State as ContributionHeatmapState };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect, onCleanup } from '@esportsplus/reactivity';
|
|
4
|
+
import '../tooltip/scss/index.scss';
|
|
5
|
+
import './scss/index.scss';
|
|
6
|
+
const template_0su8xra2 = template_u1.template(`<div aria-hidden='true' class='contribution-heatmap-legend'><span>Less</span><!--$--><span>More`);
|
|
7
|
+
const template_0su8xra6 = template_u1.template(`<span class='contribution-heatmap-swatch'>`);
|
|
8
|
+
const template_0su8xra9 = template_u1.template(`<div class='contribution-heatmap'><div aria-hidden='true' class='contribution-heatmap-days'></div><div class='contribution-heatmap-scroll'><div class='contribution-heatmap-body'><div aria-hidden='true' class='contribution-heatmap-months'></div><div aria-readonly='true' class='contribution-heatmap-grid' role='grid'></div></div></div><div aria-hidden='true' class='contribution-heatmap-tip tooltip'><span class='tooltip-message tooltip-message--n'>`);
|
|
9
|
+
const template_0su8xrai = template_u1.template(`<span>`);
|
|
10
|
+
const template_0su8xran = template_u1.template(`<div class='contribution-heatmap-row' role='row'>`);
|
|
11
|
+
const template_0su8xrap = template_u1.template(`<div class='contribution-heatmap-cell contribution-heatmap-cell--empty' role='presentation'>`);
|
|
12
|
+
const template_0su8xrar = template_u1.template(`<div class='contribution-heatmap-cell' role='gridcell' tabindex='-1'>`);
|
|
13
|
+
class ReactiveObject_0su8xra0 extends reactivity_u0.ReactiveObject {
|
|
14
|
+
#index;
|
|
15
|
+
constructor(_p0) {
|
|
16
|
+
super(null);
|
|
17
|
+
this.#index = this[reactivity_u0.SIGNAL](_p0);
|
|
18
|
+
}
|
|
19
|
+
get index() {
|
|
20
|
+
return reactivity_u0.read(this.#index);
|
|
21
|
+
}
|
|
22
|
+
set index(_v0) {
|
|
23
|
+
reactivity_u0.write(this.#index, _v0);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const CELL = 10;
|
|
27
|
+
const CONTRIBUTION_HEATMAP_CELL = Symbol.for('@esportsplus/ui/contribution-heatmap.cell');
|
|
28
|
+
const DAYS = ['', 'Mon', '', 'Wed', '', 'Fri', ''];
|
|
29
|
+
const LEVELS = [0, 1, 2, 3, 4];
|
|
30
|
+
const LONG_DATE = new Intl.DateTimeFormat('en-US', { day: 'numeric', month: 'long', timeZone: 'UTC', weekday: 'long', year: 'numeric' });
|
|
31
|
+
const MONTH = new Intl.DateTimeFormat('en-US', { month: 'short', timeZone: 'UTC' });
|
|
32
|
+
const NUMBER = new Intl.NumberFormat('en-US');
|
|
33
|
+
const PITCH = 13;
|
|
34
|
+
const SHORT_DATE = new Intl.DateTimeFormat('en-US', { day: 'numeric', month: 'short', timeZone: 'UTC' });
|
|
35
|
+
const THRESHOLDS = [1, 4, 7, 10];
|
|
36
|
+
function levelOf(count, thresholds) {
|
|
37
|
+
let level = 0;
|
|
38
|
+
for (let i = 0, n = thresholds.length; i < n; i++) {
|
|
39
|
+
if (count >= thresholds[i]) {
|
|
40
|
+
level++;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return level;
|
|
44
|
+
}
|
|
45
|
+
function phrase(count) {
|
|
46
|
+
if (count === 0) {
|
|
47
|
+
return 'No contributions';
|
|
48
|
+
}
|
|
49
|
+
return `${NUMBER.format(count)} contribution${count === 1 ? '' : 's'}`;
|
|
50
|
+
}
|
|
51
|
+
function legend(attributes = {}) {
|
|
52
|
+
return (() => {
|
|
53
|
+
let root_0su8xra1 = template_0su8xra2(), element_0su8xra3 = root_0su8xra1.firstChild, element_0su8xra4 = element_0su8xra3.firstChild.nextSibling;
|
|
54
|
+
template_u1.setProperties(element_0su8xra3, attributes);
|
|
55
|
+
template_u1.slot(element_0su8xra4, LEVELS.map((level) => {
|
|
56
|
+
let root_0su8xra5 = template_0su8xra6(), element_0su8xra7 = root_0su8xra5.firstChild;
|
|
57
|
+
template_u1.setProperty(element_0su8xra7, 'data-level', level);
|
|
58
|
+
return root_0su8xra5;
|
|
59
|
+
}));
|
|
60
|
+
return root_0su8xra1;
|
|
61
|
+
})();
|
|
62
|
+
}
|
|
63
|
+
function template({ data, label, state = new ReactiveObject_0su8xra0(data.length - 1), thresholds = THRESHOLDS, ...attributes }) {
|
|
64
|
+
let cells = [], focusable, grid, months = [], observer, tip, weeks = Math.ceil(data.length / 7), wrap;
|
|
65
|
+
for (let i = 0, n = data.length; i < n; i++) {
|
|
66
|
+
let day = data[i], date = new Date(`${day.date}T00:00:00Z`);
|
|
67
|
+
cells.push({
|
|
68
|
+
date,
|
|
69
|
+
label: `${phrase(day.count)} on ${LONG_DATE.format(date)}`,
|
|
70
|
+
level: day.level ?? levelOf(day.count, thresholds),
|
|
71
|
+
tip: `${phrase(day.count)} on ${SHORT_DATE.format(date)}`
|
|
72
|
+
});
|
|
73
|
+
if (date.getUTCDate() !== 1) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
let column = Math.floor(i / 7);
|
|
77
|
+
if (months.length && column - months[months.length - 1].column < 3) {
|
|
78
|
+
months.pop();
|
|
79
|
+
}
|
|
80
|
+
months.push({ column, name: MONTH.format(date) });
|
|
81
|
+
}
|
|
82
|
+
function cellFrom(target) {
|
|
83
|
+
return target?.closest('[data-i]') ?? null;
|
|
84
|
+
}
|
|
85
|
+
function hide() {
|
|
86
|
+
tip?.classList.remove('--active');
|
|
87
|
+
}
|
|
88
|
+
function move(next) {
|
|
89
|
+
let index = Math.min(Math.max(next, 0), data.length - 1);
|
|
90
|
+
state.index = index;
|
|
91
|
+
grid?.querySelector(`[data-i="${index}"]`)?.focus();
|
|
92
|
+
}
|
|
93
|
+
function rove(index) {
|
|
94
|
+
let element = grid?.querySelector(`[data-i="${index}"]`);
|
|
95
|
+
if (!element || element === focusable) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (focusable) {
|
|
99
|
+
focusable.tabIndex = -1;
|
|
100
|
+
}
|
|
101
|
+
element.tabIndex = 0;
|
|
102
|
+
focusable = element;
|
|
103
|
+
}
|
|
104
|
+
function show(element) {
|
|
105
|
+
let cell = cells[Number(element.dataset.i)], message = tip?.firstElementChild;
|
|
106
|
+
if (!cell || !message || !tip || !wrap) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
message.textContent = cell.tip;
|
|
110
|
+
let box = wrap.getBoundingClientRect(), rect = element.getBoundingClientRect(), scale = wrap.offsetWidth / box.width || 1, width = message.offsetWidth, x = Math.min(Math.max((rect.left - box.left + rect.width / 2) * scale, width / 2), wrap.offsetWidth - width / 2), y = (rect.top - box.top) * scale;
|
|
111
|
+
tip.style.transform = `translate(${x}px, ${y}px)`;
|
|
112
|
+
tip.classList.add('--active');
|
|
113
|
+
}
|
|
114
|
+
let stop = effect(() => {
|
|
115
|
+
rove(state.index);
|
|
116
|
+
});
|
|
117
|
+
onCleanup(() => {
|
|
118
|
+
observer?.disconnect();
|
|
119
|
+
stop();
|
|
120
|
+
});
|
|
121
|
+
return (() => {
|
|
122
|
+
let root_0su8xra8 = template_0su8xra9(), element_0su8xraa = root_0su8xra8.firstChild, element_0su8xrab = element_0su8xraa.firstElementChild, element_0su8xrac = element_0su8xrab.nextElementSibling, element_0su8xrad = element_0su8xrac.firstElementChild, element_0su8xrae = element_0su8xrad.firstElementChild, element_0su8xraf = element_0su8xrae.nextElementSibling, element_0su8xrag = element_0su8xrac.nextElementSibling;
|
|
123
|
+
template_u1.setProperties(element_0su8xraa, this?.attributes);
|
|
124
|
+
template_u1.setProperties(element_0su8xraa, attributes);
|
|
125
|
+
template_u1.onrender(element_0su8xraa, (element) => {
|
|
126
|
+
wrap = element;
|
|
127
|
+
});
|
|
128
|
+
template_u1.slot(element_0su8xrab, DAYS.map((day) => {
|
|
129
|
+
let root_0su8xrah = template_0su8xrai(), element_0su8xraj = root_0su8xrah.firstChild;
|
|
130
|
+
template_u1.slot(element_0su8xraj, day, 1);
|
|
131
|
+
return root_0su8xrah;
|
|
132
|
+
}), 1);
|
|
133
|
+
template_u1.onconnect(element_0su8xrac, (element) => {
|
|
134
|
+
element.scrollLeft = element.scrollWidth;
|
|
135
|
+
});
|
|
136
|
+
template_u1.on(element_0su8xrac, 'scroll', hide);
|
|
137
|
+
template_u1.setList(element_0su8xrad, 'style', template_u1.interpolate(["width: ", (weeks * PITCH - (PITCH - CELL)), "px"]));
|
|
138
|
+
template_u1.slot(element_0su8xrae, months.map((month) => {
|
|
139
|
+
let root_0su8xrak = template_0su8xrai(), element_0su8xral = root_0su8xrak.firstChild;
|
|
140
|
+
template_u1.setList(element_0su8xral, 'style', template_u1.interpolate(["left: ", (month.column * PITCH), "px"]));
|
|
141
|
+
template_u1.slot(element_0su8xral, month.name, 1);
|
|
142
|
+
return root_0su8xrak;
|
|
143
|
+
}), 1);
|
|
144
|
+
template_u1.setProperty(element_0su8xraf, 'aria-label', label ?? `Contributions over the last ${weeks} weeks`);
|
|
145
|
+
template_u1.onconnect(element_0su8xraf, (element) => {
|
|
146
|
+
grid = element;
|
|
147
|
+
rove(state.index);
|
|
148
|
+
observer = new IntersectionObserver((entries) => {
|
|
149
|
+
if (!entries.some((entry) => entry.isIntersecting)) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
observer?.disconnect();
|
|
153
|
+
element.classList.add('--shown');
|
|
154
|
+
}, { threshold: 0.4 });
|
|
155
|
+
observer.observe(element);
|
|
156
|
+
});
|
|
157
|
+
template_u1.on(element_0su8xraf, 'focusin', (e) => {
|
|
158
|
+
let element = cellFrom(e.target);
|
|
159
|
+
if (!element) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
state.index = Number(element.dataset.i);
|
|
163
|
+
show(element);
|
|
164
|
+
});
|
|
165
|
+
template_u1.on(element_0su8xraf, 'focusout', (e) => {
|
|
166
|
+
if (!grid?.contains(e.relatedTarget)) {
|
|
167
|
+
hide();
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
template_u1.delegate(element_0su8xraf, 'keydown', (e) => {
|
|
171
|
+
let element = cellFrom(e.target);
|
|
172
|
+
if (!element) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (e.key === 'Escape') {
|
|
176
|
+
hide();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
let i = Number(element.dataset.i), day = i % 7, next = {
|
|
180
|
+
ArrowDown: day < 6 ? i + 1 : i,
|
|
181
|
+
ArrowLeft: i - 7,
|
|
182
|
+
ArrowRight: i + 7,
|
|
183
|
+
ArrowUp: day > 0 ? i - 1 : i,
|
|
184
|
+
End: (weeks - 1) * 7 + day,
|
|
185
|
+
Home: day
|
|
186
|
+
}[e.key];
|
|
187
|
+
if (next === undefined) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
move(next);
|
|
192
|
+
});
|
|
193
|
+
template_u1.delegate(element_0su8xraf, 'pointerdown', (e) => {
|
|
194
|
+
let element = cellFrom(e.target);
|
|
195
|
+
if (e.pointerType === 'touch' && element) {
|
|
196
|
+
show(element);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
template_u1.on(element_0su8xraf, 'pointerleave', (e) => {
|
|
200
|
+
if (e.pointerType !== 'touch') {
|
|
201
|
+
hide();
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
template_u1.delegate(element_0su8xraf, 'pointerover', (e) => {
|
|
205
|
+
let element = cellFrom(e.target);
|
|
206
|
+
if (e.pointerType !== 'touch' && element) {
|
|
207
|
+
show(element);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
template_u1.slot(element_0su8xraf, DAYS.map((_, day) => {
|
|
211
|
+
let root_0su8xram = template_0su8xran(), element_0su8xrao = root_0su8xram.firstChild;
|
|
212
|
+
template_u1.slot(element_0su8xrao, Array.from({ length: weeks }, (_, week) => {
|
|
213
|
+
let i = week * 7 + day, cell = cells[i];
|
|
214
|
+
if (!cell) {
|
|
215
|
+
return template_0su8xrap();
|
|
216
|
+
}
|
|
217
|
+
return (() => {
|
|
218
|
+
let root_0su8xraq = template_0su8xrar(), element_0su8xras = root_0su8xraq.firstChild;
|
|
219
|
+
template_u1.setProperty(element_0su8xras, 'aria-label', cell.label);
|
|
220
|
+
template_u1.setProperty(element_0su8xras, 'data-i', i);
|
|
221
|
+
template_u1.setProperty(element_0su8xras, 'data-level', cell.level);
|
|
222
|
+
template_u1.setList(element_0su8xras, 'style', template_u1.interpolate(["--column: ", (week)]));
|
|
223
|
+
template_u1.setProperties(element_0su8xras, this?.attributes?.[CONTRIBUTION_HEATMAP_CELL]);
|
|
224
|
+
template_u1.setProperties(element_0su8xras, attributes[CONTRIBUTION_HEATMAP_CELL]);
|
|
225
|
+
return root_0su8xraq;
|
|
226
|
+
})();
|
|
227
|
+
}), 1);
|
|
228
|
+
return root_0su8xram;
|
|
229
|
+
}), 1);
|
|
230
|
+
template_u1.onrender(element_0su8xrag, (element) => {
|
|
231
|
+
tip = element;
|
|
232
|
+
});
|
|
233
|
+
return root_0su8xra8;
|
|
234
|
+
})();
|
|
235
|
+
}
|
|
236
|
+
export default Object.assign(template, { cell: CONTRIBUTION_HEATMAP_CELL, legend });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.contribution-heatmap,.contribution-heatmap-legend{--cell-radius:var(--border-radius-100);--cell-size:10px;--color:var(--color-text-300);--focus-color:var(--color-text-500);--font-size:var(--font-size-300);--hover-color:color-mix(in oklab, var(--color-text-500) 50%, transparent);--level-0:color-mix(in oklab, var(--level-color) 7%, transparent);--level-1:color-mix(in oklab, var(--level-color) 25%, transparent);--level-2:color-mix(in oklab, var(--level-color) 45%, transparent);--level-3:color-mix(in oklab, var(--level-color) 70%, transparent);--level-4:var(--level-color);--level-color:var(--color-text-500);--pitch:13px;--stagger:8ms;--transition-duration:.3s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.contribution-heatmap--blue,.contribution-heatmap-legend--blue{--level-color:var(--color-blue-400)}.contribution-heatmap-tip .tooltip-message{--border-radius:var(--border-radius-300);--font-size:var(--font-size-300);--font-weight:var(--font-weight-500);--offset:0px;--padding-horizontal:var(--size-100);--padding-vertical:calc(var(--size-100) / 2);--spacer:6px;--transition-duration:75ms;--transition-timing-function:ease-out}.contribution-heatmap{color:var(--color);font-size:var(--font-size);grid-template-columns:auto minmax(0,max-content);width:fit-content;max-width:100%;display:grid;position:relative}.contribution-heatmap-cell{background:var(--level-0);border-radius:var(--cell-radius);height:var(--cell-size);opacity:0;transition:opacity var(--transition-duration) var(--transition-timing-function) calc(var(--column) * var(--stagger)), scale var(--transition-duration) var(--transition-timing-function) calc(var(--column) * var(--stagger));width:var(--cell-size);outline:none;flex-shrink:0;scale:.6}.contribution-heatmap-cell:hover{outline:1px solid var(--hover-color);outline-offset:1px}.contribution-heatmap-cell:focus-visible{outline:2px solid var(--focus-color);outline-offset:1px}.contribution-heatmap-cell--empty{background:0 0}.contribution-heatmap-cell[data-level="1"]{background:var(--level-1)}.contribution-heatmap-cell[data-level="2"]{background:var(--level-2)}.contribution-heatmap-cell[data-level="3"]{background:var(--level-3)}.contribution-heatmap-cell[data-level="4"]{background:var(--level-4)}.contribution-heatmap-days{margin-inline-end:5px;flex-direction:column;margin-top:23px;display:flex}.contribution-heatmap-days span{height:var(--pitch);line-height:var(--cell-size)}.contribution-heatmap-grid{gap:calc(var(--pitch) - var(--cell-size));flex-direction:column;display:flex}.contribution-heatmap-grid.--shown .contribution-heatmap-cell{opacity:1;scale:1}.contribution-heatmap-months{height:20px;position:relative}.contribution-heatmap-months span{line-height:1;position:absolute;top:0}.contribution-heatmap-row{gap:calc(var(--pitch) - var(--cell-size));display:flex}.contribution-heatmap-scroll{overscroll-behavior-x:contain;min-width:0;padding:3px;overflow-x:auto}.contribution-heatmap .contribution-heatmap-tip{cursor:auto;pointer-events:none;z-index:10;width:0;height:0;position:absolute;top:0;left:0}.contribution-heatmap .contribution-heatmap-tip.--active .tooltip-message{--transition-duration:.1s}@media (prefers-reduced-motion:reduce){.contribution-heatmap-cell{transition:none;scale:1}}.contribution-heatmap-legend{color:var(--color);font-size:var(--font-size);align-items:center;gap:4px;display:flex}.contribution-heatmap-legend>span:first-child{margin-inline-end:4px}.contribution-heatmap-legend>span:last-child{margin-inline-start:4px}.contribution-heatmap-swatch{border-radius:var(--cell-radius);height:var(--cell-size);width:var(--cell-size)}.contribution-heatmap-swatch[data-level="0"]{background:var(--level-0)}.contribution-heatmap-swatch[data-level="1"]{background:var(--level-1)}.contribution-heatmap-swatch[data-level="2"]{background:var(--level-2)}.contribution-heatmap-swatch[data-level="3"]{background:var(--level-3)}.contribution-heatmap-swatch[data-level="4"]{background:var(--level-4)}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { type Attributes } from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
3
|
export default _default;
|
|
4
|
-
declare function _default(attributes: Attributes & {
|
|
4
|
+
declare function _default({ currency, decimals, delay, max, prefix, startOnView, state: api, suffix, value, ...attributes }: Attributes & {
|
|
5
5
|
currency?: 'IGNORE' | 'EUR' | 'GBP' | 'USD';
|
|
6
6
|
decimals?: number;
|
|
7
7
|
delay?: number;
|
|
8
8
|
max?: number;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
startOnView?: boolean;
|
|
9
11
|
state?: {
|
|
10
12
|
value: number;
|
|
11
13
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import { effect, onCleanup, untrack } from '@esportsplus/reactivity';
|
|
4
|
-
import { omit } from '@esportsplus/utilities';
|
|
5
4
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
5
|
+
const template_00nd5up3 = template_u1.template(`<div class='counter'>`);
|
|
6
|
+
const template_00nd5up6 = template_u1.template(`<span class='counter-character counter-character--symbol'>`);
|
|
7
|
+
const template_00nd5up9 = template_u1.template(`<div class='counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0`);
|
|
8
|
+
const template_00nd5upd = template_u1.template(`<span>`);
|
|
10
9
|
class ReactiveObject_00nd5up0 extends reactivity_u0.ReactiveObject {
|
|
11
10
|
#value = this[reactivity_u0.SIGNAL](-1);
|
|
12
11
|
constructor() {
|
|
@@ -31,17 +30,14 @@ class ReactiveObject_00nd5up1 extends reactivity_u0.ReactiveObject {
|
|
|
31
30
|
reactivity_u0.write(this.#started, _v0);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
|
|
35
33
|
let formatters = {};
|
|
36
|
-
export default (attributes) => {
|
|
37
|
-
let
|
|
34
|
+
export default ({ currency, decimals = 2, delay, max, prefix, startOnView, state: api = new ReactiveObject_00nd5up0(), suffix, value, ...attributes }) => {
|
|
35
|
+
let formatter = currency === 'IGNORE'
|
|
38
36
|
? undefined
|
|
39
37
|
: formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
|
|
40
38
|
style: 'currency',
|
|
41
39
|
currency: currency || 'USD'
|
|
42
|
-
}), animation = new ReactiveObject_00nd5up1(), render = new reactivity_u0.ReactiveArray()
|
|
43
|
-
decimals ??= 2;
|
|
44
|
-
let stop = effect(() => {
|
|
40
|
+
}), animation = new ReactiveObject_00nd5up1(), observer, render = new reactivity_u0.ReactiveArray(), stop = effect(() => {
|
|
45
41
|
let target = api.value === -1 ? value : api.value, started = animation.started;
|
|
46
42
|
let padding = (max || target).toFixed(decimals).length - target.toFixed(decimals).length, values = target.toString().padStart(target.toString().length + padding, '1');
|
|
47
43
|
if (formatter) {
|
|
@@ -54,21 +50,29 @@ export default (attributes) => {
|
|
|
54
50
|
});
|
|
55
51
|
}
|
|
56
52
|
values = values.split('');
|
|
53
|
+
if (prefix) {
|
|
54
|
+
values.unshift(...prefix.split(''));
|
|
55
|
+
}
|
|
57
56
|
if (suffix) {
|
|
58
57
|
values.push(' ', ...suffix.split(''));
|
|
59
58
|
}
|
|
60
59
|
untrack(() => {
|
|
60
|
+
let remaining = values.filter((value) => !isNaN(parseInt(value, 10))).length;
|
|
61
61
|
for (let i = 0, n = values.length; i < n; i++) {
|
|
62
|
-
let value = values[i], digit = !isNaN(parseInt(value, 10));
|
|
62
|
+
let previous = render[i], value = values[i], digit = !isNaN(parseInt(value, 10)), index = digit ? --remaining : 0;
|
|
63
63
|
if (digit && (!started || padding > 0)) {
|
|
64
64
|
padding--;
|
|
65
65
|
value = '0';
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
|
|
67
|
+
if (previous?.digit === digit) {
|
|
68
|
+
previous.index = index;
|
|
69
|
+
if (previous.value !== value) {
|
|
70
|
+
previous.roll = previous.roll === 1 ? 2 : 1;
|
|
71
|
+
previous.value = value;
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
74
|
else {
|
|
71
|
-
let character = reactivity_u0.reactive({ digit, value });
|
|
75
|
+
let character = reactivity_u0.reactive({ digit, index, roll: 0, value });
|
|
72
76
|
render.$set(i, character);
|
|
73
77
|
}
|
|
74
78
|
}
|
|
@@ -76,33 +80,52 @@ export default (attributes) => {
|
|
|
76
80
|
render.splice(values.length);
|
|
77
81
|
}
|
|
78
82
|
});
|
|
79
|
-
}), timer
|
|
83
|
+
}), timer;
|
|
84
|
+
function start() {
|
|
85
|
+
timer = setTimeout(() => animation.started = true, delay ?? 1000);
|
|
86
|
+
}
|
|
80
87
|
onCleanup(() => {
|
|
81
88
|
clearTimeout(timer);
|
|
89
|
+
observer?.disconnect();
|
|
82
90
|
stop();
|
|
83
91
|
});
|
|
84
92
|
return (() => {
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
let root_00nd5up2 = template_00nd5up3(), element_00nd5up4 = root_00nd5up2.firstChild;
|
|
94
|
+
template_u1.setProperties(element_00nd5up4, attributes);
|
|
95
|
+
template_u1.onconnect(element_00nd5up4, (element) => {
|
|
96
|
+
if (!startOnView) {
|
|
97
|
+
start();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
observer = new IntersectionObserver((entries) => {
|
|
101
|
+
if (!entries.some((entry) => entry.isIntersecting)) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
observer?.disconnect();
|
|
105
|
+
start();
|
|
106
|
+
});
|
|
107
|
+
observer.observe(element);
|
|
108
|
+
});
|
|
109
|
+
element_00nd5up4.appendChild(new template_u1.ArraySlot(render, function (character) {
|
|
88
110
|
if (!character.digit) {
|
|
89
111
|
return (() => {
|
|
90
|
-
let
|
|
91
|
-
new
|
|
92
|
-
return
|
|
112
|
+
let root_00nd5up5 = template_00nd5up6(), element_00nd5up7 = root_00nd5up5.firstChild;
|
|
113
|
+
new template_u1.EffectSlot(element_00nd5up7, () => character.value, 1);
|
|
114
|
+
return root_00nd5up5;
|
|
93
115
|
})();
|
|
94
116
|
}
|
|
95
117
|
return (() => {
|
|
96
|
-
let
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
118
|
+
let root_00nd5up8 = template_00nd5up9(), element_00nd5upa = root_00nd5up8.firstChild.firstElementChild, element_00nd5upb = element_00nd5upa.firstChild.nextSibling;
|
|
119
|
+
template_u1.setProperty(element_00nd5upa, 'data-roll', () => character.roll);
|
|
120
|
+
template_u1.setList(element_00nd5upa, 'style', () => `--index: ${character.index}; --value: ${character.value}`);
|
|
121
|
+
template_u1.slot(element_00nd5upb, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
|
|
122
|
+
let root_00nd5upc = template_00nd5upd(), element_00nd5upe = root_00nd5upc.firstChild;
|
|
123
|
+
template_u1.slot(element_00nd5upe, value, 1);
|
|
124
|
+
return root_00nd5upc;
|
|
102
125
|
}));
|
|
103
|
-
return
|
|
126
|
+
return root_00nd5up8;
|
|
104
127
|
})();
|
|
105
128
|
}, true).fragment);
|
|
106
|
-
return
|
|
129
|
+
return root_00nd5up2;
|
|
107
130
|
})();
|
|
108
131
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.counter{--font-size:clamp(2rem, 4vw + 1rem, 8rem);--font-weight:var(--font-weight-400);--mask-size:.24;--timing-function:
|
|
1
|
+
@layer components {.counter{--blur:.05em;--font-size:clamp(2rem, 4vw + 1rem, 8rem);--font-weight:var(--font-weight-400);--mask-size:.24;--stagger:0s;--timing-function:linear(0, .004, .016, .035, .063, .098, .141 13.6%, .25, .391, .563, .765, 1, .891 40.9%, .848, .813, .785, .766, .754, .75, .754, .766, .785, .813, .848, .891 68.2%, 1 72.7%, .973, .953, .941, .938, .941, .953, .973, 1, .988, .984, .988, 1);--transition-duration:2s}.counter--linear{--timing-function:linear;--transition-duration:1.2s}.counter--snap{--timing-function:cubic-bezier(.16, 1, .3, 1);--transition-duration:.64s}.counter--spring{--timing-function:linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);--transition-duration:1.2s}.counter--stagger{--stagger:80ms}.counter-character{--scale:1}.counter-character--fraction,.counter-character--symbol{--opacity:.8}.counter-character--fraction{--font-weight:var(--font-weight-300);--scale:.75}.counter-character--symbol:first-child{--scale:.8}.counter--ticker{--font-size:1em;--mask-size:.12;--stagger:60ms;--timing-function:cubic-bezier(.22, 1, .36, 1);--transition-duration:.9s}.counter--ticker .counter-character--symbol{--opacity:1;--scale:1}.counter{transition:transform calc(var(--transition-duration) / 4) var(--transition-duration);transform-style:flat;place-items:center;gap:2px;display:flex}.counter-character,.counter-character-track span{color:#0000;transform-style:flat;background:linear-gradient(#fafafa 50%,#737373) fixed;-webkit-background-clip:text;background-clip:text}.counter-character{font-size:var(--font-size);font-variant:tabular-nums;font-weight:var(--font-weight);height:1lh;-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);transform-style:flat;display:grid;overflow:hidden}.counter-character--fraction{font-size:calc(var(--font-size) * var(--scale));font-weight:var(--font-weight-300);opacity:var(--opacity);height:1lh;overflow:visible}.counter-character--fraction .counter-character-track span{flex-direction:column;align-items:end;padding:calc(.2lh - .2em) 0;display:flex}.counter-character--symbol{font-size:calc(var(--font-size) * var(--scale));opacity:var(--opacity);margin-inline-end:.1ch}.counter-character-track{translate:0 calc((var(--value) + 1) * -1lh);transition:translate var(--transition-duration) var(--timing-function) calc(var(--index) * var(--stagger));display:grid}.counter-character-track span{transform-style:flat;height:1lh}@media (prefers-reduced-motion:no-preference){.counter--blur .counter-character-track{animation:var(--transition-duration) ease-out calc(var(--index) * var(--stagger))}.counter--blur .counter-character-track[data-roll="1"]{animation-name:counter-blur-1}.counter--blur .counter-character-track[data-roll="2"]{animation-name:counter-blur-2}}.counter--ticker{gap:0}.counter--ticker .counter-character,.counter--ticker .counter-character-track span{color:inherit;background:0 0}@media (prefers-reduced-motion:reduce){.counter,.counter-character-track{transition:none}}@keyframes counter-blur-1{0%,to{filter:blur()}20%{filter:blur(var(--blur))}}@keyframes counter-blur-2{0%,to{filter:blur()}20%{filter:blur(var(--blur))}}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
declare const DATALIST_LENS: unique symbol;
|
|
5
|
+
declare const DATALIST_OPTION: unique symbol;
|
|
6
|
+
declare const DATALIST_SCROLLER: unique symbol;
|
|
7
|
+
type A = {
|
|
8
|
+
[DATALIST_LENS]?: Attributes;
|
|
9
|
+
[DATALIST_OPTION]?: Attributes & {
|
|
10
|
+
'aria-selected'?: never;
|
|
11
|
+
onclick?: never;
|
|
12
|
+
};
|
|
13
|
+
[DATALIST_SCROLLER]?: Attributes & {
|
|
14
|
+
'aria-activedescendant'?: never;
|
|
15
|
+
onconnect?: never;
|
|
16
|
+
onkeydown?: never;
|
|
17
|
+
onscroll?: never;
|
|
18
|
+
};
|
|
19
|
+
options: Record<number | string, Renderable<unknown>>;
|
|
20
|
+
} & ({
|
|
21
|
+
selected?: number | string;
|
|
22
|
+
state?: never;
|
|
23
|
+
} | {
|
|
24
|
+
selected?: never;
|
|
25
|
+
state: State;
|
|
26
|
+
}) & Attributes;
|
|
27
|
+
type State = {
|
|
28
|
+
error: string;
|
|
29
|
+
selected?: number | string;
|
|
30
|
+
settled: boolean;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: template_u1.Factory<A, Renderable<any>, Renderable<any>, {
|
|
33
|
+
readonly lens: typeof DATALIST_LENS;
|
|
34
|
+
readonly option: typeof DATALIST_OPTION;
|
|
35
|
+
readonly scroller: typeof DATALIST_SCROLLER;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|