@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,25 @@
|
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type Card = Attributes & {
|
|
4
|
+
background?: Renderable<unknown>;
|
|
5
|
+
cta?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
icon?: Renderable<unknown>;
|
|
9
|
+
name: string;
|
|
10
|
+
span?: 1 | 2 | 3;
|
|
11
|
+
};
|
|
12
|
+
declare function card({ background, cta, description, href, icon, name, span, ...attributes }: Card): DocumentFragment | Text;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
(): Renderable<any>;
|
|
15
|
+
<T extends Attributes>(attributes: T): Renderable<any>;
|
|
16
|
+
<T extends Renderable<any>>(content: T): Renderable<any>;
|
|
17
|
+
(attributes: Attributes, content?: Renderable<any>): Renderable<any>;
|
|
18
|
+
bind(context: {
|
|
19
|
+
attributes?: Partial<Attributes> | undefined;
|
|
20
|
+
content?: Renderable<any>;
|
|
21
|
+
}): any;
|
|
22
|
+
} & {
|
|
23
|
+
card: typeof card;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import './scss/index.scss';
|
|
4
|
+
const template_12bcjhy0 = template_u1.template(`<svg aria-hidden='true' class='bento-grid-arrow' fill='none' viewBox='0 0 15 15'><path d='M8.15 3.15a.5.5 0 0 1 .7 0l4 4a.5.5 0 0 1 0 .7l-4 4a.5.5 0 0 1-.7-.7L11.29 8H2.5a.5.5 0 0 1 0-1h8.79L8.15 3.85a.5.5 0 0 1 0-.7Z' fill='currentColor' />`);
|
|
5
|
+
const template_12bcjhy2 = template_u1.template(`<div class='bento-grid-card'><div aria-hidden='true' class='bento-grid-background'></div><div class='bento-grid-body'><div class='bento-grid-content'><!--$--><h3 class='bento-grid-name'></h3><p class='bento-grid-description'></p></div></div><div class='bento-grid-cta'><a class='bento-grid-link'><!--$--></a></div><div aria-hidden='true' class='bento-grid-overlay'>`);
|
|
6
|
+
const template_12bcjhyb = template_u1.template(`<span aria-hidden='true' class='bento-grid-icon'>`);
|
|
7
|
+
const template_12bcjhye = template_u1.template(`<div class='bento-grid'>`);
|
|
8
|
+
function arrow() {
|
|
9
|
+
return template_12bcjhy0();
|
|
10
|
+
}
|
|
11
|
+
function card({ background, cta = 'Learn more', description, href = '#', icon, name, span = 3, ...attributes }) {
|
|
12
|
+
return (() => {
|
|
13
|
+
let root_12bcjhy1 = template_12bcjhy2(), element_12bcjhy3 = root_12bcjhy1.firstChild, element_12bcjhy4 = element_12bcjhy3.firstElementChild, element_12bcjhy5 = element_12bcjhy4.nextElementSibling.firstElementChild.firstChild, element_12bcjhy6 = element_12bcjhy4.nextElementSibling.firstElementChild.firstElementChild, element_12bcjhy7 = element_12bcjhy6.nextElementSibling, element_12bcjhy8 = element_12bcjhy4.nextElementSibling.nextElementSibling.firstElementChild, element_12bcjhy9 = element_12bcjhy8.firstChild;
|
|
14
|
+
template_u1.setList(element_12bcjhy3, 'style', `--span: ${span}`);
|
|
15
|
+
template_u1.setProperties(element_12bcjhy3, attributes);
|
|
16
|
+
template_u1.slot(element_12bcjhy4, background, 1);
|
|
17
|
+
template_u1.slot(element_12bcjhy5, icon && (() => {
|
|
18
|
+
let root_12bcjhya = template_12bcjhyb(), element_12bcjhyc = root_12bcjhya.firstChild;
|
|
19
|
+
template_u1.slot(element_12bcjhyc, icon, 1);
|
|
20
|
+
return root_12bcjhya;
|
|
21
|
+
})());
|
|
22
|
+
template_u1.slot(element_12bcjhy6, name, 1);
|
|
23
|
+
template_u1.slot(element_12bcjhy7, description, 1);
|
|
24
|
+
template_u1.setProperty(element_12bcjhy8, 'href', href);
|
|
25
|
+
template_u1.slot(element_12bcjhy9, cta);
|
|
26
|
+
template_u1.slot(element_12bcjhy8, arrow(), 2);
|
|
27
|
+
return root_12bcjhy1;
|
|
28
|
+
})();
|
|
29
|
+
}
|
|
30
|
+
export default Object.assign(component(function (attributes, content) {
|
|
31
|
+
return (() => {
|
|
32
|
+
let root_12bcjhyd = template_12bcjhye(), element_12bcjhyf = root_12bcjhyd.firstChild;
|
|
33
|
+
template_u1.setProperties(element_12bcjhyf, this?.attributes);
|
|
34
|
+
template_u1.setProperties(element_12bcjhyf, attributes);
|
|
35
|
+
template_u1.slot(element_12bcjhyf, content, 1);
|
|
36
|
+
return root_12bcjhyd;
|
|
37
|
+
})();
|
|
38
|
+
}), { card });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.bento-grid{--background:var(--color-white-300);--border-radius:12px;--box-shadow:0 0 0 1px oklch(from var(--color-black-300) l c h / .03), 0 2px 4px oklch(from var(--color-black-300) l c h / .05), 0 12px 24px oklch(from var(--color-black-300) l c h / .05);--description-color:var(--color-text-300);--duration:.3s;--ease:cubic-bezier(.4, 0, .2, 1);--focus-color:oklch(from var(--color-text-500) l c h / .38);--gap:16px;--icon-color:var(--color-text-400);--icon-size:48px;--link-color:var(--color-text-500);--link-font-size:calc(var(--font-size-400) * .875);--name-color:var(--color-text-400);--name-font-size:var(--font-size-500);--overlay-hover:oklch(from var(--color-black-300) l c h / .03);--padding:16px;--row-height:22rem;gap:var(--gap);grid-auto-rows:var(--row-height);grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid;container-type:inline-size}.bento-grid-arrow{height:16px;transition:translate var(--duration) var(--ease);flex-shrink:0;width:16px}.bento-grid-background{pointer-events:none;position:absolute;inset:0}.bento-grid-background>*{pointer-events:auto}.bento-grid-body{padding:var(--padding);z-index:1;margin-top:auto;position:relative}.bento-grid-card{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);flex-direction:column;grid-column:span 3;justify-content:space-between;display:flex;position:relative;overflow:hidden}.bento-grid-content{pointer-events:none;transition:translate var(--duration) var(--ease);flex-direction:column;gap:4px;display:flex}.bento-grid-cta{padding:0 var(--padding) var(--padding);z-index:1;display:flex;position:relative}.bento-grid-description{color:var(--description-color);max-width:32rem;margin:0}.bento-grid-icon{color:var(--icon-color);height:var(--icon-size);transform-origin:0;transition:scale var(--duration) var(--ease);width:var(--icon-size);display:flex}.bento-grid-icon svg{width:100%;height:100%}.bento-grid-link{color:var(--link-color);font-size:var(--link-font-size);font-weight:var(--font-weight-500);outline:0 solid var(--focus-color);outline-offset:2px;text-underline-offset:4px;border-radius:4px;align-items:center;gap:8px;text-decoration:none;display:inline-flex}.bento-grid-link:focus-visible{outline-width:2px}.bento-grid-link:hover{text-decoration:underline}.bento-grid-link:hover .bento-grid-arrow{translate:2px}.bento-grid-name{color:var(--name-color);font-size:var(--name-font-size);font-weight:var(--font-weight-600);margin:0}.bento-grid-overlay{pointer-events:none;transition:background-color var(--duration) var(--ease);position:absolute;inset:0}.bento-grid-card:hover .bento-grid-overlay{background:var(--overlay-hover)}.bento-grid-card:hover .bento-grid-icon,.bento-grid-card:focus-within .bento-grid-icon{scale:.75}@container (width>=720px){.bento-grid-card{grid-column:span var(--span)}.bento-grid-cta{opacity:0;padding:var(--padding);transition:opacity var(--duration) var(--ease), translate var(--duration) var(--ease);bottom:0;position:absolute;inset-inline:0;translate:0 40px}.bento-grid-card:hover .bento-grid-content,.bento-grid-card:focus-within .bento-grid-content{translate:0 -40px}.bento-grid-card:hover .bento-grid-cta,.bento-grid-card:focus-within .bento-grid-cta{opacity:1;translate:0}}@media (prefers-reduced-motion:reduce){.bento-grid-arrow,.bento-grid-content,.bento-grid-icon{transition:none}.bento-grid-cta{translate:0!important}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type Card = Attributes & {
|
|
4
|
+
background?: Renderable<unknown>;
|
|
5
|
+
beam?: boolean;
|
|
6
|
+
columns?: 1 | 2 | 3 | 4;
|
|
7
|
+
description?: Renderable<unknown>;
|
|
8
|
+
icon?: Renderable<unknown>;
|
|
9
|
+
rows?: 1 | 2 | 3;
|
|
10
|
+
spotlight?: boolean;
|
|
11
|
+
tilt?: boolean;
|
|
12
|
+
title?: Renderable<unknown>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: {
|
|
15
|
+
(): Renderable<any>;
|
|
16
|
+
<T extends Attributes>(attributes: T): Renderable<any>;
|
|
17
|
+
<T extends Renderable<any>>(content: T): Renderable<any>;
|
|
18
|
+
(attributes: Attributes, content?: Renderable<any>): Renderable<any>;
|
|
19
|
+
bind(context: {
|
|
20
|
+
attributes?: Partial<Attributes> | undefined;
|
|
21
|
+
content?: Renderable<any>;
|
|
22
|
+
}): any;
|
|
23
|
+
} & {
|
|
24
|
+
card: {
|
|
25
|
+
(): Renderable<any>;
|
|
26
|
+
<T extends Card>(attributes: T): Renderable<any>;
|
|
27
|
+
<T extends Renderable<any>>(content: T): Renderable<any>;
|
|
28
|
+
(attributes: Card, content?: Renderable<any>): Renderable<any>;
|
|
29
|
+
bind(context: {
|
|
30
|
+
attributes?: Partial<Card> | undefined;
|
|
31
|
+
content?: Renderable<any>;
|
|
32
|
+
}): any;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
|
+
import * as template_u1 from '@esportsplus/template';
|
|
3
|
+
import { component } from '@esportsplus/template';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
const template_1dq8ad92 = template_u1.template(`<div class='bento-grid-spotlight-card '><!--$--><!--$--><!--$--><div class='bento-grid-spotlight-body'><div class='bento-grid-spotlight-visual'>`);
|
|
6
|
+
const template_1dq8ad99 = template_u1.template(`<div aria-hidden='true' class='bento-grid-spotlight-glow'>`);
|
|
7
|
+
const template_1dq8ad9a = template_u1.template(`<div aria-hidden='true' class='bento-grid-spotlight-beam'><div class='bento-grid-spotlight-beam-light'>`);
|
|
8
|
+
const template_1dq8ad9c = template_u1.template(`<div aria-hidden='true' class='bento-grid-spotlight-background'>`);
|
|
9
|
+
const template_1dq8ad9f = template_u1.template(`<div class='bento-grid-spotlight-footer'><!--$--><div><!--$-->`);
|
|
10
|
+
const template_1dq8ad9k = template_u1.template(`<div aria-hidden='true' class='bento-grid-spotlight-icon'>`);
|
|
11
|
+
const template_1dq8ad9n = template_u1.template(`<h3 class='bento-grid-spotlight-title'>`);
|
|
12
|
+
const template_1dq8ad9q = template_u1.template(`<p class='bento-grid-spotlight-description'>`);
|
|
13
|
+
const template_1dq8ad9t = template_u1.template(`<div class='bento-grid-spotlight'><div class='bento-grid-spotlight-grid'>`);
|
|
14
|
+
class ReactiveObject_1dq8ad90 extends reactivity_u0.ReactiveObject {
|
|
15
|
+
#visible = this[reactivity_u0.SIGNAL](false);
|
|
16
|
+
constructor() {
|
|
17
|
+
super(null);
|
|
18
|
+
}
|
|
19
|
+
get visible() {
|
|
20
|
+
return reactivity_u0.read(this.#visible);
|
|
21
|
+
}
|
|
22
|
+
set visible(_v0) {
|
|
23
|
+
reactivity_u0.write(this.#visible, _v0);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const TILT = 5;
|
|
27
|
+
const TILT_RANGE = 150;
|
|
28
|
+
function clamp(value, min, max) {
|
|
29
|
+
return Math.min(max, Math.max(min, value));
|
|
30
|
+
}
|
|
31
|
+
const card = component(function ({ background, beam = true, columns = 1, description, icon, rows = 1, spotlight = true, tilt = false, title, ...attributes }, content) {
|
|
32
|
+
let footer = title || description || icon;
|
|
33
|
+
return (() => {
|
|
34
|
+
let root_1dq8ad91 = template_1dq8ad92(), element_1dq8ad93 = root_1dq8ad91.firstChild, element_1dq8ad94 = element_1dq8ad93.firstChild, element_1dq8ad95 = element_1dq8ad94.nextSibling, element_1dq8ad96 = element_1dq8ad95.nextSibling, element_1dq8ad97 = element_1dq8ad93.firstElementChild.firstElementChild, element_1dq8ad98 = element_1dq8ad93.firstElementChild;
|
|
35
|
+
template_u1.setList(element_1dq8ad93, 'class', tilt && '--tilt');
|
|
36
|
+
template_u1.setList(element_1dq8ad93, 'style', `--columns: ${columns}; --rows: ${rows};`);
|
|
37
|
+
template_u1.setProperties(element_1dq8ad93, this?.attributes);
|
|
38
|
+
template_u1.setProperties(element_1dq8ad93, attributes);
|
|
39
|
+
template_u1.on(element_1dq8ad93, 'pointerleave', function () {
|
|
40
|
+
this.style.setProperty('--tilt-x', '0deg');
|
|
41
|
+
this.style.setProperty('--tilt-y', '0deg');
|
|
42
|
+
});
|
|
43
|
+
template_u1.delegate(element_1dq8ad93, 'pointermove', function (event) {
|
|
44
|
+
let rect = this.getBoundingClientRect(), x = event.clientX - rect.left, y = event.clientY - rect.top;
|
|
45
|
+
this.style.setProperty('--spot-x', `${x}px`);
|
|
46
|
+
this.style.setProperty('--spot-y', `${y}px`);
|
|
47
|
+
if (tilt) {
|
|
48
|
+
this.style.setProperty('--tilt-x', `${clamp((y - rect.height / 2) / TILT_RANGE, -1, 1) * -TILT}deg`);
|
|
49
|
+
this.style.setProperty('--tilt-y', `${clamp((x - rect.width / 2) / TILT_RANGE, -1, 1) * TILT}deg`);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
template_u1.slot(element_1dq8ad94, spotlight && template_1dq8ad99());
|
|
53
|
+
template_u1.slot(element_1dq8ad95, beam && template_1dq8ad9a());
|
|
54
|
+
template_u1.slot(element_1dq8ad96, background && (() => {
|
|
55
|
+
let root_1dq8ad9b = template_1dq8ad9c(), element_1dq8ad9d = root_1dq8ad9b.firstChild;
|
|
56
|
+
template_u1.slot(element_1dq8ad9d, background, 1);
|
|
57
|
+
return root_1dq8ad9b;
|
|
58
|
+
})());
|
|
59
|
+
template_u1.slot(element_1dq8ad97, content, 1);
|
|
60
|
+
template_u1.slot(element_1dq8ad98, footer && (() => {
|
|
61
|
+
let root_1dq8ad9e = template_1dq8ad9f(), element_1dq8ad9g = root_1dq8ad9e.firstChild.firstChild, element_1dq8ad9h = root_1dq8ad9e.firstChild.firstElementChild.firstChild, element_1dq8ad9i = root_1dq8ad9e.firstChild.firstElementChild;
|
|
62
|
+
template_u1.slot(element_1dq8ad9g, icon && (() => {
|
|
63
|
+
let root_1dq8ad9j = template_1dq8ad9k(), element_1dq8ad9l = root_1dq8ad9j.firstChild;
|
|
64
|
+
template_u1.slot(element_1dq8ad9l, icon, 1);
|
|
65
|
+
return root_1dq8ad9j;
|
|
66
|
+
})());
|
|
67
|
+
template_u1.slot(element_1dq8ad9h, title && (() => {
|
|
68
|
+
let root_1dq8ad9m = template_1dq8ad9n(), element_1dq8ad9o = root_1dq8ad9m.firstChild;
|
|
69
|
+
template_u1.slot(element_1dq8ad9o, title, 1);
|
|
70
|
+
return root_1dq8ad9m;
|
|
71
|
+
})());
|
|
72
|
+
template_u1.slot(element_1dq8ad9i, description && (() => {
|
|
73
|
+
let root_1dq8ad9p = template_1dq8ad9q(), element_1dq8ad9r = root_1dq8ad9p.firstChild;
|
|
74
|
+
template_u1.slot(element_1dq8ad9r, description, 1);
|
|
75
|
+
return root_1dq8ad9p;
|
|
76
|
+
})(), 2);
|
|
77
|
+
return root_1dq8ad9e;
|
|
78
|
+
})(), 2);
|
|
79
|
+
return root_1dq8ad91;
|
|
80
|
+
})();
|
|
81
|
+
});
|
|
82
|
+
export default Object.assign(component(function (attributes, content) {
|
|
83
|
+
let observer, ui = new ReactiveObject_1dq8ad90();
|
|
84
|
+
return (() => {
|
|
85
|
+
let root_1dq8ad9s = template_1dq8ad9t(), element_1dq8ad9u = root_1dq8ad9s.firstChild, element_1dq8ad9v = element_1dq8ad9u.firstElementChild;
|
|
86
|
+
template_u1.setProperties(element_1dq8ad9u, this?.attributes);
|
|
87
|
+
template_u1.setProperties(element_1dq8ad9u, attributes);
|
|
88
|
+
template_u1.setList(element_1dq8ad9u, 'class', () => ui.visible && '--visible');
|
|
89
|
+
template_u1.onconnect(element_1dq8ad9u, (element) => {
|
|
90
|
+
let children = element.firstElementChild.children;
|
|
91
|
+
for (let i = 0, n = children.length; i < n; i++) {
|
|
92
|
+
children[i].style.setProperty('--i', String(i));
|
|
93
|
+
}
|
|
94
|
+
observer = new IntersectionObserver((entries) => {
|
|
95
|
+
if (entries.some((entry) => entry.isIntersecting)) {
|
|
96
|
+
ui.visible = true;
|
|
97
|
+
observer?.disconnect();
|
|
98
|
+
}
|
|
99
|
+
}, { rootMargin: '-50px' });
|
|
100
|
+
observer.observe(element);
|
|
101
|
+
});
|
|
102
|
+
template_u1.ondisconnect(element_1dq8ad9u, () => {
|
|
103
|
+
observer?.disconnect();
|
|
104
|
+
});
|
|
105
|
+
template_u1.slot(element_1dq8ad9v, content, 1);
|
|
106
|
+
return root_1dq8ad9s;
|
|
107
|
+
})();
|
|
108
|
+
}), { card });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.bento-grid-spotlight{--background:var(--color-grey-300);--beam-duration:8s;--beam-from:oklch(70.8% 0 0/0);--beam-to:oklch(70.8% 0 0/.4);--beam-width:1.5px;--border-color:var(--color-border-300);--border-radius:16px;--box-shadow:0 1px 2px oklch(from var(--color-black-300) l c h / .05);--box-shadow-hover:0 10px 15px -3px oklch(from var(--color-border-300) l c h / .5), 0 4px 6px -4px oklch(from var(--color-border-300) l c h / .5);--description-color:var(--color-text-300);--description-font-size:calc(var(--font-size-400) * .875);--duration:.3s;--enter-duration:.7s;--enter-ease:linear(0, .066, .211, .388, .574, .733, .862, .958, 1.025, 1.063, 1.079, 1.081, 1.073, 1.06, 1.045, 1.031, 1.018, 1.008, 1.001, .997, .994, .993, .994, .994, .996, .997, .998, .999, 1, 1, 1);--enter-stagger:.1s;--gap:24px;--hover-duration:.57s;--hover-ease:linear(0, .065, .212, .394, .575, .736, .866, .962, 1.025, 1.062, 1.077, 1.078, 1.069, 1.056, 1.041, 1.028, 1.017, 1.007, 1.001, .997, .995, .994, .994, .995, .996, .997, .998, .999, 1, 1, 1);--hover-lift:-4px;--hover-scale:1.01;--icon-background:oklch(from var(--color-border-300) l c h / .5);--max-width:80rem;--padding:20px;--perspective:1000px;--press-scale:.98;--spotlight-color:oklch(from var(--color-black-300) l c h / .05);--spotlight-size:350px;--tilt-duration:.54s;--tilt-ease:linear(0, .043, .14, .261, .387, .505, .611, .702, .777, .837, .881, .918, .945, .965, .979, .989, .995, .999, 1.002, 1.003, 1.004, 1.004, 1.003, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1);--title-color:var(--color-text-500);--title-font-size:calc(var(--font-size-400) * 1.125);max-width:var(--max-width);width:100%;margin-inline:auto;container-type:inline-size}.bento-grid-spotlight-background{opacity:.5;transition:opacity var(--duration) ease;z-index:0;position:absolute;inset:0}.bento-grid-spotlight-beam{border-radius:inherit;padding:var(--beam-width);pointer-events:none;z-index:0;-webkit-mask-composite:xor;-webkit-mask-source-type:auto,auto;position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.bento-grid-spotlight-beam-light{animation:bento-grid-spotlight-beam var(--beam-duration) linear infinite;aspect-ratio:1;background:conic-gradient(from 0deg, var(--beam-from) 0%, var(--beam-to) 50%, var(--beam-from) 100%);opacity:.3;transition:opacity var(--duration) ease;width:250%;position:absolute;top:50%;left:50%;translate:-50% -50%}.bento-grid-spotlight-body{height:100%;padding:var(--padding);z-index:1;flex-direction:column;justify-content:space-between;display:flex;position:relative}.bento-grid-spotlight-card{background:var(--background);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(--box-shadow);grid-row:span var(--rows);transition:box-shadow var(--duration) ease, scale var(--hover-duration) var(--hover-ease), transform var(--tilt-duration) var(--tilt-ease), translate var(--hover-duration) var(--hover-ease);flex-direction:column;display:flex;position:relative;overflow:hidden}.bento-grid-spotlight-card.--tilt{transform:perspective(var(--perspective)) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg))}.bento-grid-spotlight-card:hover{box-shadow:var(--box-shadow-hover);scale:var(--hover-scale);translate:0 var(--hover-lift)}.bento-grid-spotlight-card:hover .bento-grid-spotlight-background,.bento-grid-spotlight-card:hover .bento-grid-spotlight-glow,.bento-grid-spotlight-card:hover .bento-grid-spotlight-beam-light{opacity:1}.bento-grid-spotlight-card:active{scale:var(--press-scale)}.bento-grid-spotlight-description{color:var(--description-color);font-size:var(--description-font-size);margin:4px 0 0}.bento-grid-spotlight-footer{align-items:flex-start;gap:16px;display:flex}.bento-grid-spotlight-visual:not(:empty)+.bento-grid-spotlight-footer{margin-top:24px}.bento-grid-spotlight-glow{background:radial-gradient(var(--spotlight-size) circle at var(--spot-x,50%) var(--spot-y,50%), var(--spotlight-color), transparent 80%);opacity:0;pointer-events:none;transition:opacity var(--duration) ease;z-index:0;position:absolute;inset:-1px}.bento-grid-spotlight-grid{gap:var(--gap);grid-template-columns:minmax(0,1fr);display:grid}.bento-grid-spotlight-icon{background:var(--icon-background);color:var(--title-color);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.bento-grid-spotlight-icon svg{width:20px;height:20px}.bento-grid-spotlight-title{color:var(--title-color);font-size:var(--title-font-size);font-weight:var(--font-weight-500);letter-spacing:-.02em;margin:0}.bento-grid-spotlight-visual{flex:1;min-height:0}.bento-grid-spotlight:not(.--visible) .bento-grid-spotlight-card{opacity:0}.bento-grid-spotlight.--visible .bento-grid-spotlight-card{animation:bento-grid-spotlight-enter var(--enter-duration) var(--enter-ease) backwards;animation-delay:calc(var(--i,0) * var(--enter-stagger))}@container (width>=560px){.bento-grid-spotlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bento-grid-spotlight-card{grid-column:span min(var(--columns), 2)}}@container (width>=900px){.bento-grid-spotlight-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bento-grid-spotlight-card{grid-column:span var(--columns)}}@media (prefers-reduced-motion:reduce){.bento-grid-spotlight-beam-light{animation:none}.bento-grid-spotlight-card{transition:box-shadow var(--duration) ease}.bento-grid-spotlight-card,.bento-grid-spotlight-card:active,.bento-grid-spotlight-card:hover{transform:translate(0,0)}.bento-grid-spotlight:not(.--visible) .bento-grid-spotlight-card{opacity:1}.bento-grid-spotlight.--visible .bento-grid-spotlight-card{animation:none}}@keyframes bento-grid-spotlight-beam{to{rotate:360deg}}@keyframes bento-grid-spotlight-enter{0%{opacity:0;translate:0 12px;scale:.98}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Attributes } from '@esportsplus/template';
|
|
2
|
+
import './scss/index.scss';
|
|
3
|
+
type A = Attributes & {
|
|
4
|
+
[BOOKMARK_BUTTON_ICON]?: Attributes;
|
|
5
|
+
count?: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
onclick?: never;
|
|
8
|
+
onconnect?: never;
|
|
9
|
+
ondisconnect?: never;
|
|
10
|
+
onsave?: (saved: boolean) => void;
|
|
11
|
+
savedLabel?: string;
|
|
12
|
+
state?: State;
|
|
13
|
+
};
|
|
14
|
+
type State = {
|
|
15
|
+
saved: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const BOOKMARK_BUTTON_ICON: unique symbol;
|
|
18
|
+
declare const _default: ((this: {
|
|
19
|
+
attributes?: A;
|
|
20
|
+
} | void, { count, label, onsave, savedLabel, state, ...attributes }?: A) => DocumentFragment | Text) & {
|
|
21
|
+
readonly icon: typeof BOOKMARK_BUTTON_ICON;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
+
import { effect } from '@esportsplus/reactivity';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
const template_16x42zk3 = template_u1.template(`<button class='button bookmark-button' type='button'><span aria-hidden='true' class='bookmark-button-icon'><svg class='bookmark-button-outline' viewBox='0 0 24 24'><path d='M6.5 4.75A1.75 1.75 0 0 1 8.25 3h7.5a1.75 1.75 0 0 1 1.75 1.75v15.07a.5.5 0 0 1-.79.41L12 16.75l-4.71 3.48a.5.5 0 0 1-.79-.41Z' /></svg><svg class='bookmark-button-fill' viewBox='0 0 24 24'><path d='M6.5 4.75A1.75 1.75 0 0 1 8.25 3h7.5a1.75 1.75 0 0 1 1.75 1.75v15.07a.5.5 0 0 1-.79.41L12 16.75l-4.71 3.48a.5.5 0 0 1-.79-.41Z' /></svg></span><!--$--><span aria-live='polite' class='bookmark-button-live'>`);
|
|
6
|
+
const template_16x42zk9 = template_u1.template(`<span aria-hidden='true' class='bookmark-button-labels'><span class='bookmark-button-label bookmark-button-label--idle'></span><span class='bookmark-button-label bookmark-button-label--saved'>`);
|
|
7
|
+
const template_16x42zkd = template_u1.template(`<span class='bookmark-button-count'><span class='bookmark-button-live'></span><span aria-hidden='true' class='bookmark-button-count-values'><span class='bookmark-button-count-value'>`);
|
|
8
|
+
class ReactiveObject_16x42zk0 extends reactivity_u0.ReactiveObject {
|
|
9
|
+
#saved = this[reactivity_u0.SIGNAL](false);
|
|
10
|
+
constructor() {
|
|
11
|
+
super(null);
|
|
12
|
+
}
|
|
13
|
+
get saved() {
|
|
14
|
+
return reactivity_u0.read(this.#saved);
|
|
15
|
+
}
|
|
16
|
+
set saved(_v0) {
|
|
17
|
+
reactivity_u0.write(this.#saved, _v0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class ReactiveObject_16x42zk1 extends reactivity_u0.ReactiveObject {
|
|
21
|
+
#note = this[reactivity_u0.SIGNAL]('');
|
|
22
|
+
constructor() {
|
|
23
|
+
super(null);
|
|
24
|
+
}
|
|
25
|
+
get note() {
|
|
26
|
+
return reactivity_u0.read(this.#note);
|
|
27
|
+
}
|
|
28
|
+
set note(_v0) {
|
|
29
|
+
reactivity_u0.write(this.#note, _v0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const BOOKMARK_BUTTON_ICON = Symbol.for('@esportsplus/ui/bookmark-button.icon');
|
|
33
|
+
const EASE_OUT = 'cubic-bezier(0.23, 1, 0.32, 1)';
|
|
34
|
+
const LAND = [
|
|
35
|
+
{ easing: 'ease-out', scale: '1 1', translate: '0 0' },
|
|
36
|
+
{ easing: 'ease-in', offset: 0.35, scale: '0.97 1.04', translate: '0 -2px' },
|
|
37
|
+
{ easing: 'ease-out', offset: 0.65, scale: '1.04 0.95', translate: '0 1px' },
|
|
38
|
+
{ scale: '1 1', translate: '0 0' }
|
|
39
|
+
];
|
|
40
|
+
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)';
|
|
41
|
+
let uid = 0;
|
|
42
|
+
function reduced() {
|
|
43
|
+
return matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
44
|
+
}
|
|
45
|
+
function roll(container, value, previous) {
|
|
46
|
+
let blur = reduced() ? 'blur(0px)' : 'blur(4px)', direction = value > previous ? 1 : -1, next = document.createElement('span'), shift = reduced() ? 0 : 6;
|
|
47
|
+
for (let child of [...container.children]) {
|
|
48
|
+
child.classList.add('bookmark-button-count-value--leaving');
|
|
49
|
+
child.animate([{}, { filter: blur, opacity: 0, translate: `0 ${(-direction * shift) / 2}px` }], { duration: 120, easing: EASE_OUT, fill: 'forwards' }).finished.then(() => child.remove(), () => child.remove());
|
|
50
|
+
}
|
|
51
|
+
next.className = 'bookmark-button-count-value';
|
|
52
|
+
next.textContent = String(value);
|
|
53
|
+
container.append(next);
|
|
54
|
+
next.animate([{ filter: blur, opacity: 0, translate: `0 ${direction * shift}px` }, { filter: 'blur(0px)', opacity: 1, translate: '0 0' }], { duration: 300, easing: SPRING });
|
|
55
|
+
}
|
|
56
|
+
export default Object.assign(function ({ count, label = 'Save', onsave, savedLabel = 'Saved', state = new ReactiveObject_16x42zk0(), ...attributes } = {}) {
|
|
57
|
+
let icon, id = `bookmark-button-${++uid}`, live = new ReactiveObject_16x42zk1(), stop, total = () => (count ?? 0) + (state.saved ? 1 : 0);
|
|
58
|
+
function toggle() {
|
|
59
|
+
let element = this.querySelector('.bookmark-button-icon'), next = !state.saved;
|
|
60
|
+
state.saved = next;
|
|
61
|
+
live.note = next ? 'Saved' : 'Removed from saved';
|
|
62
|
+
onsave?.(next);
|
|
63
|
+
if (!element || reduced()) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (next) {
|
|
67
|
+
icon?.cancel();
|
|
68
|
+
icon = element.animate(LAND, { duration: 400 });
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
let { scale, translate } = getComputedStyle(element);
|
|
72
|
+
icon?.cancel();
|
|
73
|
+
icon = element.animate([{ scale, translate }, { scale: '1 1', translate: '0 0' }], { duration: 150, easing: EASE_OUT });
|
|
74
|
+
}
|
|
75
|
+
return (() => {
|
|
76
|
+
let root_16x42zk2 = template_16x42zk3(), element_16x42zk4 = root_16x42zk2.firstChild, element_16x42zk5 = element_16x42zk4.firstElementChild, element_16x42zk6 = element_16x42zk4.firstChild.nextSibling, element_16x42zk7 = element_16x42zk5.nextElementSibling;
|
|
77
|
+
template_u1.setProperties(element_16x42zk4, this?.attributes);
|
|
78
|
+
template_u1.setProperties(element_16x42zk4, attributes);
|
|
79
|
+
template_u1.setProperty(element_16x42zk4, 'aria-describedby', count === undefined ? undefined : `${id}-count`);
|
|
80
|
+
template_u1.setProperty(element_16x42zk4, 'aria-label', label);
|
|
81
|
+
template_u1.setProperty(element_16x42zk4, 'aria-pressed', () => state.saved ? 'true' : 'false');
|
|
82
|
+
template_u1.setList(element_16x42zk4, 'class', () => state.saved && '--active');
|
|
83
|
+
template_u1.delegate(element_16x42zk4, 'click', toggle);
|
|
84
|
+
template_u1.onconnect(element_16x42zk4, (element) => {
|
|
85
|
+
let container = element.querySelector('.bookmark-button-count-values'), previous = total();
|
|
86
|
+
if (!container) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
stop = effect(() => {
|
|
90
|
+
let value = total();
|
|
91
|
+
if (value !== previous) {
|
|
92
|
+
roll(container, value, previous);
|
|
93
|
+
previous = value;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
template_u1.ondisconnect(element_16x42zk4, () => {
|
|
98
|
+
icon?.cancel();
|
|
99
|
+
stop?.();
|
|
100
|
+
});
|
|
101
|
+
template_u1.setProperties(element_16x42zk5, this?.attributes?.[BOOKMARK_BUTTON_ICON]);
|
|
102
|
+
template_u1.setProperties(element_16x42zk5, attributes[BOOKMARK_BUTTON_ICON]);
|
|
103
|
+
element_16x42zk6.parentNode.insertBefore(count === undefined
|
|
104
|
+
? (() => {
|
|
105
|
+
let root_16x42zk8 = template_16x42zk9(), element_16x42zka = root_16x42zk8.firstChild.firstElementChild, element_16x42zkb = element_16x42zka.nextElementSibling;
|
|
106
|
+
template_u1.slot(element_16x42zka, label, 1);
|
|
107
|
+
template_u1.slot(element_16x42zkb, savedLabel, 1);
|
|
108
|
+
return root_16x42zk8;
|
|
109
|
+
})()
|
|
110
|
+
: (() => {
|
|
111
|
+
let root_16x42zkc = template_16x42zkd(), element_16x42zke = root_16x42zkc.firstChild.firstElementChild, element_16x42zkf = element_16x42zke.nextElementSibling.firstElementChild;
|
|
112
|
+
template_u1.setProperty(element_16x42zke, 'id', template_u1.interpolate([(id), "-count"]));
|
|
113
|
+
new template_u1.EffectSlot(element_16x42zke, () => `${total()} saves`, 1);
|
|
114
|
+
template_u1.slot(element_16x42zkf, total(), 1);
|
|
115
|
+
return root_16x42zkc;
|
|
116
|
+
})(), element_16x42zk6);
|
|
117
|
+
new template_u1.EffectSlot(element_16x42zk7, () => live.note, 1);
|
|
118
|
+
return root_16x42zk2;
|
|
119
|
+
})();
|
|
120
|
+
}, { icon: BOOKMARK_BUTTON_ICON });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.bookmark-button{--bookmark-button-background:var(--color-grey-400);--bookmark-button-background-hover:var(--color-white-300);--bookmark-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);--bookmark-button-color:var(--color-text-500);--bookmark-button-count-color:var(--color-text-500);--bookmark-button-ease:cubic-bezier(.23, 1, .32, 1);--bookmark-button-fill-duration:.26s;--bookmark-button-focus-color:color-mix(in oklab, var(--color-text-500) 38%, transparent);--bookmark-button-font-size:14px;--bookmark-button-gap:var(--size-100);--bookmark-button-height:40px;--bookmark-button-icon-size:20px;--bookmark-button-scale-pressed:.96;--bookmark-button-unfill-duration:.15s;--border-radius:999px;--padding-horizontal:16px;--padding-vertical:0px}.bookmark-button--white{--bookmark-button-background:var(--color-white-300);--bookmark-button-background-hover:color-mix(in oklab, var(--color-white-300) 60%, transparent)}.bookmark-button.button{--background-default:var(--bookmark-button-background);--background-hover:var(--bookmark-button-background-hover);--box-shadow-default:var(--bookmark-button-box-shadow);--color-default:var(--bookmark-button-color);--font-size:var(--bookmark-button-font-size);--font-weight:var(--font-weight-500);--line-height:20px;gap:var(--bookmark-button-gap);height:var(--bookmark-button-height);padding-inline:calc(var(--padding-horizontal) - 4px) var(--padding-horizontal);touch-action:manipulation;-webkit-user-select:none;user-select:none;border:0;outline:none;transition:background-color .15s ease-out,scale .15s ease-out;display:inline-flex}.bookmark-button:active{scale:var(--bookmark-button-scale-pressed)}.bookmark-button:focus-visible{outline:2px solid var(--bookmark-button-focus-color);outline-offset:2px}.bookmark-button-count{color:var(--bookmark-button-count-color);font-variant-numeric:tabular-nums;justify-content:flex-end;display:inline-flex;position:relative}.bookmark-button-count-values{justify-content:flex-end;display:inline-flex;position:relative}.bookmark-button-count-value{display:inline-block}.bookmark-button-count-value--leaving{position:absolute;top:0;right:0}.bookmark-button-fill,.bookmark-button-outline{height:var(--bookmark-button-icon-size);width:var(--bookmark-button-icon-size);grid-area:1/1}.bookmark-button-fill{clip-path:inset(85% 0 0);fill:currentColor;transition:clip-path var(--bookmark-button-unfill-duration) ease-out}.bookmark-button-icon{transform-origin:bottom;display:grid}.bookmark-button-label{filter:blur(4px);opacity:0;transition:filter .1s var(--bookmark-button-ease), opacity .1s var(--bookmark-button-ease), translate .1s var(--bookmark-button-ease);grid-area:1/1;translate:0 2px}.bookmark-button-label--idle{filter:blur();opacity:1;transition-duration:.2s;translate:0}.bookmark-button-labels{display:grid}.bookmark-button-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.bookmark-button-outline{fill:none;stroke:currentColor;stroke-linejoin:round;stroke-width:1.75px}.bookmark-button.--active .bookmark-button-fill{clip-path:inset(12% 0 0);transition:clip-path var(--bookmark-button-fill-duration) var(--bookmark-button-ease)}.bookmark-button.--active .bookmark-button-label--idle{filter:blur(4px);opacity:0;transition-duration:.1s;translate:0 2px}.bookmark-button.--active .bookmark-button-label--saved{filter:blur();opacity:1;transition-duration:.2s;translate:0}@media (prefers-reduced-motion:reduce){.bookmark-button.button{transition:background-color .15s ease-out}.bookmark-button:active{scale:1}.bookmark-button .bookmark-button-fill{transition:none}.bookmark-button .bookmark-button-label{filter:none;transition-property:opacity;translate:0}}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): template_u1.Renderable<any>;
|
|
4
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
6
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
7
|
+
bind(context: {
|
|
8
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
9
|
+
content?: template_u1.Renderable<any>;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import icon from '../icon/index.js';
|
|
4
|
+
import more from './svg/more.svg';
|
|
5
|
+
const template_176lwtf1 = template_u1.template(`<span aria-hidden='true' class='breadcrumb-ellipsis' role='presentation'>`);
|
|
6
|
+
export default component((attributes) => {
|
|
7
|
+
let root_176lwtf0 = template_176lwtf1(), element_176lwtf2 = root_176lwtf0.firstChild;
|
|
8
|
+
template_u1.setProperties(element_176lwtf2, attributes);
|
|
9
|
+
template_u1.slot(element_176lwtf2, icon(more), 1);
|
|
10
|
+
return root_176lwtf0;
|
|
11
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import ellipsis from './ellipsis.js';
|
|
3
|
+
import item from './item.js';
|
|
4
|
+
import link from './link.js';
|
|
5
|
+
import list from './list.js';
|
|
6
|
+
import menu from './menu.js';
|
|
7
|
+
import page from './page.js';
|
|
8
|
+
import separator from './separator.js';
|
|
9
|
+
import './scss/index.scss';
|
|
10
|
+
declare let root: {
|
|
11
|
+
(): template_u1.Renderable<any>;
|
|
12
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
13
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
14
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
15
|
+
bind(context: {
|
|
16
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
17
|
+
content?: template_u1.Renderable<any>;
|
|
18
|
+
}): any;
|
|
19
|
+
};
|
|
20
|
+
declare const breadcrumb: typeof root & {
|
|
21
|
+
ellipsis: typeof ellipsis;
|
|
22
|
+
item: typeof item;
|
|
23
|
+
link: typeof link;
|
|
24
|
+
list: typeof list;
|
|
25
|
+
menu: typeof menu;
|
|
26
|
+
page: typeof page;
|
|
27
|
+
separator: typeof separator;
|
|
28
|
+
};
|
|
29
|
+
export default breadcrumb;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import ellipsis from './ellipsis.js';
|
|
4
|
+
import item from './item.js';
|
|
5
|
+
import link from './link.js';
|
|
6
|
+
import list from './list.js';
|
|
7
|
+
import menu from './menu.js';
|
|
8
|
+
import page from './page.js';
|
|
9
|
+
import separator from './separator.js';
|
|
10
|
+
import './scss/index.scss';
|
|
11
|
+
const template_1iy9n1s1 = template_u1.template(`<nav aria-label='breadcrumb' class='breadcrumb'>`);
|
|
12
|
+
let root = component((attributes, content) => {
|
|
13
|
+
let root_1iy9n1s0 = template_1iy9n1s1(), element_1iy9n1s2 = root_1iy9n1s0.firstChild;
|
|
14
|
+
template_u1.setProperties(element_1iy9n1s2, attributes);
|
|
15
|
+
template_u1.slot(element_1iy9n1s2, content, 1);
|
|
16
|
+
return root_1iy9n1s0;
|
|
17
|
+
});
|
|
18
|
+
const breadcrumb = Object.assign(root, { ellipsis, item, link, list, menu, page, separator });
|
|
19
|
+
export default breadcrumb;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): template_u1.Renderable<any>;
|
|
4
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
6
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
7
|
+
bind(context: {
|
|
8
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
9
|
+
content?: template_u1.Renderable<any>;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
const template_0oomduv1 = template_u1.template(`<li class='breadcrumb-item'>`);
|
|
4
|
+
export default component((attributes, content) => {
|
|
5
|
+
let root_0oomduv0 = template_0oomduv1(), element_0oomduv2 = root_0oomduv0.firstChild;
|
|
6
|
+
template_u1.setProperties(element_0oomduv2, attributes);
|
|
7
|
+
template_u1.slot(element_0oomduv2, content, 1);
|
|
8
|
+
return root_0oomduv0;
|
|
9
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
+
type A = Attributes & {
|
|
3
|
+
render?: (attributes: Attributes, content: Renderable<unknown>) => Renderable<unknown>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: {
|
|
6
|
+
(): Renderable<any>;
|
|
7
|
+
<T extends A>(attributes: T): Renderable<any>;
|
|
8
|
+
<T extends Renderable<any>>(content: T): Renderable<any>;
|
|
9
|
+
(attributes: A, content?: Renderable<any>): Renderable<any>;
|
|
10
|
+
bind(context: {
|
|
11
|
+
attributes?: Partial<A> | undefined;
|
|
12
|
+
content?: Renderable<any>;
|
|
13
|
+
}): any;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
const template_02qqdxm1 = template_u1.template(`<a class='breadcrumb-link'>`);
|
|
4
|
+
export default component(({ render, ...attributes }, content) => {
|
|
5
|
+
if (render) {
|
|
6
|
+
return render({ ...attributes, class: ['breadcrumb-link'].concat(attributes.class ?? []) }, content);
|
|
7
|
+
}
|
|
8
|
+
return (() => {
|
|
9
|
+
let root_02qqdxm0 = template_02qqdxm1(), element_02qqdxm2 = root_02qqdxm0.firstChild;
|
|
10
|
+
template_u1.setProperties(element_02qqdxm2, attributes);
|
|
11
|
+
template_u1.slot(element_02qqdxm2, content, 1);
|
|
12
|
+
return root_02qqdxm0;
|
|
13
|
+
})();
|
|
14
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): template_u1.Renderable<any>;
|
|
4
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
6
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
7
|
+
bind(context: {
|
|
8
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
9
|
+
content?: template_u1.Renderable<any>;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
const template_1kaqk9i1 = template_u1.template(`<ol class='breadcrumb-list'>`);
|
|
4
|
+
export default component((attributes, content) => {
|
|
5
|
+
let root_1kaqk9i0 = template_1kaqk9i1(), element_1kaqk9i2 = root_1kaqk9i0.firstChild;
|
|
6
|
+
template_u1.setProperties(element_1kaqk9i2, attributes);
|
|
7
|
+
template_u1.slot(element_1kaqk9i2, content, 1);
|
|
8
|
+
return root_1kaqk9i0;
|
|
9
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import type { A } from '../tooltip/menu.js';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
(): template_u1.Renderable<any>;
|
|
5
|
+
<T extends A>(attributes: T): template_u1.Renderable<any>;
|
|
6
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
7
|
+
(attributes: A, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
8
|
+
bind(context: {
|
|
9
|
+
attributes?: Partial<A> | undefined;
|
|
10
|
+
content?: template_u1.Renderable<any>;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import icon from '../icon/index.js';
|
|
4
|
+
import tooltip from '../tooltip/index.js';
|
|
5
|
+
import caret from './svg/caret.svg';
|
|
6
|
+
const template_162q6hj1 = template_u1.template(`<!--$--><!--$-->`);
|
|
7
|
+
export default component((attributes, content) => tooltip.menu({
|
|
8
|
+
...attributes,
|
|
9
|
+
class: ['breadcrumb-link', 'breadcrumb-menu'].concat(attributes.class ?? []),
|
|
10
|
+
[tooltip.menu.tooltipContent]: { direction: 'sw', ...attributes[tooltip.menu.tooltipContent] }
|
|
11
|
+
}, (() => {
|
|
12
|
+
let root_162q6hj0 = template_162q6hj1(), element_162q6hj2 = root_162q6hj0.firstChild, element_162q6hj3 = element_162q6hj2.nextSibling;
|
|
13
|
+
template_u1.slot(element_162q6hj2, content);
|
|
14
|
+
template_u1.slot(element_162q6hj3, icon({ class: 'breadcrumb-menu-caret' }, caret));
|
|
15
|
+
return root_162q6hj0;
|
|
16
|
+
})()));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): template_u1.Renderable<any>;
|
|
4
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
6
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
7
|
+
bind(context: {
|
|
8
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
9
|
+
content?: template_u1.Renderable<any>;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
const template_1vdakvn1 = template_u1.template(`<span aria-current='page' aria-disabled='true' class='breadcrumb-page' role='link'>`);
|
|
4
|
+
export default component((attributes, content) => {
|
|
5
|
+
let root_1vdakvn0 = template_1vdakvn1(), element_1vdakvn2 = root_1vdakvn0.firstChild;
|
|
6
|
+
template_u1.setProperties(element_1vdakvn2, attributes);
|
|
7
|
+
template_u1.slot(element_1vdakvn2, content, 1);
|
|
8
|
+
return root_1vdakvn0;
|
|
9
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer components {.breadcrumb{--color:var(--color-default);--color-active:var(--color-text-500);--color-default:var(--color-text-300);--color-hover:var(--color-text-500);--font-size:var(--font-size-300)}.breadcrumb-ellipsis{--size:var(--size-500)}.breadcrumb-menu-caret.icon,.breadcrumb-separator .icon{--size:var(--size-300)}.breadcrumb{color:var(--color);font-size:var(--font-size)}.breadcrumb-ellipsis{height:var(--size);width:var(--size);justify-content:center;align-items:center;display:flex}.breadcrumb-item{align-items:center;gap:var(--gap);display:inline-flex}.breadcrumb-link{color:var(--color);transition:color var(--transition-duration) var(--transition-timing-function)}.breadcrumb-link:not(.--active):hover{--color:var(--color-hover)}.breadcrumb-list{align-items:center;gap:var(--gap);overflow-wrap:break-word;flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.breadcrumb-menu{align-items:center;gap:calc(var(--gap) / 2);display:flex}.breadcrumb-menu.--active{--color:var(--color-hover)}.breadcrumb-menu.--active .breadcrumb-menu-caret{transform:rotate(180deg)}.breadcrumb-menu-caret{transition:transform var(--transition-duration) var(--transition-timing-function)}.breadcrumb-page{color:var(--color-active)}.breadcrumb-separator{align-items:center;display:flex}[dir=rtl] .breadcrumb-separator .icon{transform:scaleX(-1)}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): template_u1.Renderable<any>;
|
|
4
|
+
<T extends template_u1.Attributes>(attributes: T): template_u1.Renderable<any>;
|
|
5
|
+
<T extends template_u1.Renderable<any>>(content: T): template_u1.Renderable<any>;
|
|
6
|
+
(attributes: template_u1.Attributes, content?: template_u1.Renderable<any>): template_u1.Renderable<any>;
|
|
7
|
+
bind(context: {
|
|
8
|
+
attributes?: Partial<template_u1.Attributes> | undefined;
|
|
9
|
+
content?: template_u1.Renderable<any>;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|