@esportsplus/ui 0.55.0 → 0.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -4
- package/build/components/accordion/index.d.ts +2158 -717
- package/build/components/accordion/index.js +12 -9
- package/build/components/accordion/more.d.ts +20 -0
- package/build/components/accordion/more.js +76 -0
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/announcement-banner/index.d.ts +33 -0
- package/build/components/announcement-banner/index.js +61 -0
- package/build/components/announcement-banner/scss/index.scss +2 -0
- package/build/components/autosave/index.d.ts +12 -0
- package/build/components/autosave/index.js +140 -0
- package/build/components/autosave/scss/index.scss +2 -0
- package/build/components/back-to-top/index.d.ts +16 -0
- package/build/components/back-to-top/index.js +182 -0
- package/build/components/back-to-top/scss/index.scss +2 -0
- package/build/components/bento-grid/index.d.ts +25 -0
- package/build/components/bento-grid/index.js +38 -0
- package/build/components/bento-grid/scss/index.scss +2 -0
- package/build/components/bento-grid-spotlight/index.d.ts +35 -0
- package/build/components/bento-grid-spotlight/index.js +108 -0
- package/build/components/bento-grid-spotlight/scss/index.scss +2 -0
- package/build/components/bookmark-button/index.d.ts +23 -0
- package/build/components/bookmark-button/index.js +120 -0
- package/build/components/bookmark-button/scss/index.scss +2 -0
- package/build/components/breadcrumb/ellipsis.d.ts +12 -0
- package/build/components/breadcrumb/ellipsis.js +11 -0
- package/build/components/breadcrumb/index.d.ts +29 -0
- package/build/components/breadcrumb/index.js +19 -0
- package/build/components/breadcrumb/item.d.ts +12 -0
- package/build/components/breadcrumb/item.js +9 -0
- package/build/components/breadcrumb/link.d.ts +15 -0
- package/build/components/breadcrumb/link.js +14 -0
- package/build/components/breadcrumb/list.d.ts +12 -0
- package/build/components/breadcrumb/list.js +9 -0
- package/build/components/breadcrumb/menu.d.ts +13 -0
- package/build/components/breadcrumb/menu.js +16 -0
- package/build/components/breadcrumb/page.d.ts +12 -0
- package/build/components/breadcrumb/page.js +9 -0
- package/build/components/breadcrumb/scss/index.scss +2 -0
- package/build/components/breadcrumb/separator.d.ts +12 -0
- package/build/components/breadcrumb/separator.js +11 -0
- package/build/components/breadcrumb/svg/caret.svg +1 -0
- package/build/components/breadcrumb/svg/chevron.svg +1 -0
- package/build/components/breadcrumb/svg/more.svg +1 -0
- package/build/components/breadcrumbs/index.d.ts +27 -0
- package/build/components/breadcrumbs/index.js +324 -0
- package/build/components/breadcrumbs/scss/index.scss +2 -0
- package/build/components/button/copy.d.ts +21 -0
- package/build/components/button/copy.js +48 -0
- package/build/components/button/faces.d.ts +10 -0
- package/build/components/button/faces.js +16 -0
- package/build/components/button/fan.d.ts +24 -0
- package/build/components/button/fan.js +117 -0
- package/build/components/button/hold.d.ts +31 -0
- package/build/components/button/hold.js +117 -0
- package/build/components/button/icons.d.ts +6 -0
- package/build/components/button/icons.js +12 -0
- package/build/components/button/index.d.ts +14 -0
- package/build/components/button/index.js +8 -0
- package/build/components/button/kbd.d.ts +15 -0
- package/build/components/button/kbd.js +106 -0
- package/build/components/button/loading.d.ts +22 -0
- package/build/components/button/loading.js +60 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/svg/plus.svg +1 -0
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/card-input/index.d.ts +31 -0
- package/build/components/card-input/index.js +562 -0
- package/build/components/card-input/scss/index.scss +2 -0
- package/build/components/carousel-3d/index.d.ts +27 -0
- package/build/components/carousel-3d/index.js +248 -0
- package/build/components/carousel-3d/scss/index.scss +2 -0
- package/build/components/checkbox/index.d.ts +1441 -11
- package/build/components/checkbox/index.js +50 -52
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/checkbox-group/index.d.ts +30 -0
- package/build/components/checkbox-group/index.js +101 -0
- package/build/components/checkbox-group/scss/index.scss +2 -0
- package/build/components/clipboard/copy.d.ts +21 -5
- package/build/components/clipboard/copy.js +19 -25
- package/build/components/clipboard/index.d.ts +2165 -1435
- package/build/components/clipboard/index.js +2 -3
- package/build/components/code-morph/index.d.ts +25 -0
- package/build/components/code-morph/index.js +401 -0
- package/build/components/code-morph/scss/index.scss +2 -0
- package/build/components/collapsible-sidebar/index.d.ts +41 -0
- package/build/components/collapsible-sidebar/index.js +105 -0
- package/build/components/collapsible-sidebar/scss/index.scss +2 -0
- package/build/components/color-picker/index.d.ts +19 -0
- package/build/components/color-picker/index.js +569 -0
- package/build/components/color-picker/scss/index.scss +2 -0
- package/build/components/command/constants.d.ts +3 -0
- package/build/components/command/constants.js +3 -0
- package/build/components/command/index.d.ts +30 -0
- package/build/components/command/index.js +188 -0
- package/build/components/command/scss/index.scss +2 -0
- package/build/components/command-palette/index.d.ts +51 -0
- package/build/components/command-palette/index.js +319 -0
- package/build/components/command-palette/scss/index.scss +2 -0
- package/build/components/composer/index.d.ts +29 -0
- package/build/components/composer/index.js +79 -0
- package/build/components/composer/scss/index.scss +2 -0
- package/build/components/composer/svg/arrow-up.svg +1 -0
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/contribution-heatmap/index.d.ts +30 -0
- package/build/components/contribution-heatmap/index.js +236 -0
- package/build/components/contribution-heatmap/scss/index.scss +2 -0
- package/build/components/counter/index.d.ts +3 -1
- package/build/components/counter/index.js +53 -26
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.d.ts +37 -0
- package/build/components/datalist/index.js +159 -0
- package/build/components/datalist/scss/index.scss +2 -0
- package/build/components/date-range-picker/index.d.ts +28 -0
- package/build/components/date-range-picker/index.js +443 -0
- package/build/components/date-range-picker/scss/index.scss +2 -0
- package/build/components/dock/index.d.ts +24 -0
- package/build/components/dock/index.js +200 -0
- package/build/components/dock/scss/index.scss +2 -0
- package/build/components/dynamic-island/index.d.ts +23 -0
- package/build/components/dynamic-island/index.js +179 -0
- package/build/components/dynamic-island/scss/index.scss +2 -0
- package/build/components/email-typo-fix/index.d.ts +28 -0
- package/build/components/email-typo-fix/index.js +416 -0
- package/build/components/email-typo-fix/scss/index.scss +2 -0
- package/build/components/expanding-card/index.d.ts +26 -0
- package/build/components/expanding-card/index.js +265 -0
- package/build/components/expanding-card/scss/index.scss +2 -0
- package/build/components/feature-spotlight/index.d.ts +37 -0
- package/build/components/feature-spotlight/index.js +248 -0
- package/build/components/feature-spotlight/scss/index.scss +2 -0
- package/build/components/file-tree/index.d.ts +31 -0
- package/build/components/file-tree/index.js +208 -0
- package/build/components/file-tree/scss/index.scss +2 -0
- package/build/components/filter-grid/index.d.ts +23 -0
- package/build/components/filter-grid/index.js +240 -0
- package/build/components/filter-grid/scss/index.scss +2 -0
- package/build/components/form/action.js +8 -8
- package/build/components/form/scss/index.scss +1 -1
- package/build/components/gradient-text/index.d.ts +19 -0
- package/build/components/gradient-text/index.js +14 -0
- package/build/components/gradient-text/scss/index.scss +2 -0
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/header/index.d.ts +41 -0
- package/build/components/header/index.js +281 -0
- package/build/components/header/scss/index.scss +2 -0
- package/build/components/highlight/index.d.ts +25 -0
- package/build/components/highlight/index.js +218 -0
- package/build/components/highlight/scss/index.scss +2 -0
- package/build/components/hover-card/index.d.ts +47 -0
- package/build/components/hover-card/index.js +197 -0
- package/build/components/hover-card/scss/index.scss +2 -0
- package/build/components/icon/index.d.ts +11 -2
- package/build/components/icon/index.js +6 -6
- package/build/components/image/index.d.ts +14 -0
- package/build/components/image/index.js +62 -0
- package/build/components/image/scss/index.scss +2 -0
- package/build/components/index.d.ts +97 -1
- package/build/components/index.js +97 -1
- package/build/components/inline-edit/index.d.ts +30 -0
- package/build/components/inline-edit/index.js +108 -0
- package/build/components/inline-edit/scss/index.scss +2 -0
- package/build/components/input/index.d.ts +8 -2
- package/build/components/input/index.js +11 -11
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/kanban-board/index.d.ts +23 -0
- package/build/components/kanban-board/index.js +235 -0
- package/build/components/kanban-board/scss/index.scss +2 -0
- package/build/components/lightbox/index.d.ts +32 -0
- package/build/components/lightbox/index.js +396 -0
- package/build/components/lightbox/scss/index.scss +2 -0
- package/build/components/lightbox/spring.d.ts +16 -0
- package/build/components/lightbox/spring.js +71 -0
- package/build/components/line-shadow-text/index.d.ts +17 -0
- package/build/components/line-shadow-text/index.js +15 -0
- package/build/components/line-shadow-text/scss/index.scss +2 -0
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.js +5 -7
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/log/index.d.ts +20 -0
- package/build/components/log/index.js +125 -0
- package/build/components/log/scss/index.scss +2 -0
- package/build/components/long-press/bind.d.ts +21 -0
- package/build/components/long-press/bind.js +136 -0
- package/build/components/long-press/button.d.ts +21 -0
- package/build/components/long-press/button.js +25 -0
- package/build/components/long-press/index.d.ts +2181 -0
- package/build/components/long-press/index.js +4 -0
- package/build/components/long-press/scss/index.scss +2 -0
- package/build/components/marquee/index.d.ts +20 -0
- package/build/components/marquee/index.js +236 -0
- package/build/components/marquee/scss/index.scss +2 -0
- package/build/components/modal/index.d.ts +24 -0
- package/build/components/modal/index.js +75 -0
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/morphing-button/index.d.ts +24 -0
- package/build/components/morphing-button/index.js +127 -0
- package/build/components/morphing-button/scss/index.scss +2 -0
- package/build/components/morphing-nav/index.d.ts +38 -0
- package/build/components/morphing-nav/index.js +342 -0
- package/build/components/morphing-nav/scss/index.scss +2 -0
- package/build/components/multi-step-form/index.d.ts +32 -0
- package/build/components/multi-step-form/index.js +305 -0
- package/build/components/multi-step-form/scss/index.scss +2 -0
- package/build/components/nested-menu/index.d.ts +27 -0
- package/build/components/nested-menu/index.js +374 -0
- package/build/components/nested-menu/scss/index.scss +2 -0
- package/build/components/notification-bell/index.d.ts +13 -0
- package/build/components/notification-bell/index.js +87 -0
- package/build/components/notification-bell/scss/index.scss +2 -0
- package/build/components/notification-bell/svg/bell.svg +1 -0
- package/build/components/onboarding-checklist/index.d.ts +29 -0
- package/build/components/onboarding-checklist/index.js +196 -0
- package/build/components/onboarding-checklist/scss/index.scss +2 -0
- package/build/components/overlay/index.d.ts +11 -2
- package/build/components/overlay/index.js +7 -7
- package/build/components/page-dots/index.d.ts +24 -0
- package/build/components/page-dots/index.js +116 -0
- package/build/components/page-dots/scss/index.scss +2 -0
- package/build/components/pagination/index.d.ts +11 -0
- package/build/components/pagination/index.js +109 -0
- package/build/components/pagination/scss/index.scss +2 -0
- package/build/components/pagination/svg/arrow-left.svg +1 -0
- package/build/components/pagination/svg/arrow-right.svg +1 -0
- package/build/components/password/constants.d.ts +2 -0
- package/build/components/password/constants.js +2 -0
- package/build/components/password/index.d.ts +22 -0
- package/build/components/password/index.js +74 -0
- package/build/components/password/scss/index.scss +2 -0
- package/build/components/progress/index.d.ts +15 -0
- package/build/components/progress/index.js +37 -0
- package/build/components/progress/scss/index.scss +2 -0
- package/build/components/pull-to-refresh/index.d.ts +26 -0
- package/build/components/pull-to-refresh/index.js +260 -0
- package/build/components/pull-to-refresh/scss/index.scss +2 -0
- package/build/components/radio-cards/index.d.ts +36 -0
- package/build/components/radio-cards/index.js +106 -0
- package/build/components/radio-cards/scss/index.scss +2 -0
- package/build/components/range/index.js +13 -13
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/range-filter/index.d.ts +20 -0
- package/build/components/range-filter/index.js +216 -0
- package/build/components/range-filter/scss/index.scss +2 -0
- package/build/components/range-slider/index.d.ts +30 -0
- package/build/components/range-slider/index.js +287 -0
- package/build/components/range-slider/scss/index.scss +2 -0
- package/build/components/reading-progress/index.d.ts +13 -0
- package/build/components/reading-progress/index.js +106 -0
- package/build/components/reading-progress/scss/index.scss +2 -0
- package/build/components/relative-time/index.d.ts +25 -0
- package/build/components/relative-time/index.js +283 -0
- package/build/components/relative-time/scss/index.scss +2 -0
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/scroll-fade/index.d.ts +39 -0
- package/build/components/scroll-fade/index.js +104 -0
- package/build/components/scroll-fade/scss/index.scss +2 -0
- package/build/components/scroll-spine/index.d.ts +26 -0
- package/build/components/scroll-spine/index.js +204 -0
- package/build/components/scroll-spine/scss/index.scss +2 -0
- package/build/components/scroll-velocity/index.d.ts +22 -0
- package/build/components/scroll-velocity/index.js +160 -0
- package/build/components/scroll-velocity/scss/index.scss +2 -0
- package/build/components/scrub-input/index.d.ts +39 -0
- package/build/components/scrub-input/index.js +221 -0
- package/build/components/scrub-input/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +7 -5
- package/build/components/select/index.js +40 -38
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/select-menu/index.d.ts +34 -0
- package/build/components/select-menu/index.js +329 -0
- package/build/components/select-menu/scss/index.scss +2 -0
- package/build/components/selection-toolbar/index.d.ts +36 -0
- package/build/components/selection-toolbar/index.js +442 -0
- package/build/components/selection-toolbar/scss/index.scss +2 -0
- package/build/components/settings/index.d.ts +43 -0
- package/build/components/settings/index.js +147 -0
- package/build/components/settings/scss/index.scss +2 -0
- package/build/components/settings/svg/close.svg +1 -0
- package/build/components/settings/svg/saved.svg +1 -0
- package/build/components/share-button/index.d.ts +29 -0
- package/build/components/share-button/index.js +191 -0
- package/build/components/share-button/scss/index.scss +2 -0
- package/build/components/sheet/index.d.ts +33 -0
- package/build/components/sheet/index.js +110 -0
- package/build/components/sheet/scss/index.scss +2 -0
- package/build/components/shiny-text/index.d.ts +17 -0
- package/build/components/shiny-text/index.js +14 -0
- package/build/components/shiny-text/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +12 -0
- package/build/components/shortcut-recorder/index.js +230 -0
- package/build/components/shortcut-recorder/scss/index.scss +2 -0
- package/build/components/shortcut-sheet/index.d.ts +48 -0
- package/build/components/shortcut-sheet/index.js +304 -0
- package/build/components/shortcut-sheet/scss/index.scss +2 -0
- package/build/components/sidebar/index.d.ts +11 -2
- package/build/components/sidebar/index.js +7 -7
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/slider/index.d.ts +25 -0
- package/build/components/slider/index.js +188 -0
- package/build/components/slider/scss/index.scss +2 -0
- package/build/components/sliding-tabs/index.d.ts +28 -0
- package/build/components/sliding-tabs/index.js +188 -0
- package/build/components/sliding-tabs/scss/index.scss +2 -0
- package/build/components/snap-carousel/index.d.ts +30 -0
- package/build/components/snap-carousel/index.js +233 -0
- package/build/components/snap-carousel/scss/index.scss +2 -0
- package/build/components/sortable/index.d.ts +9 -0
- package/build/components/sortable/index.js +302 -0
- package/build/components/sortable/scss/index.scss +2 -0
- package/build/components/sparkline/index.d.ts +26 -0
- package/build/components/sparkline/index.js +173 -0
- package/build/components/sparkline/scss/index.scss +2 -0
- package/build/components/stacked-drawer/index.d.ts +24 -0
- package/build/components/stacked-drawer/index.js +211 -0
- package/build/components/stacked-drawer/scss/index.scss +2 -0
- package/build/components/stat-counter/index.d.ts +32 -0
- package/build/components/stat-counter/index.js +216 -0
- package/build/components/stat-counter/scss/index.scss +2 -0
- package/build/components/status-picker/index.d.ts +32 -0
- package/build/components/status-picker/index.js +198 -0
- package/build/components/status-picker/scss/index.scss +2 -0
- package/build/components/sticky-header/index.d.ts +2159 -0
- package/build/components/sticky-header/index.js +98 -0
- package/build/components/sticky-header/scss/index.scss +2 -0
- package/build/components/sticky-stack/index.d.ts +33 -0
- package/build/components/sticky-stack/index.js +184 -0
- package/build/components/sticky-stack/scss/index.scss +2 -0
- package/build/components/story-progress/index.d.ts +26 -0
- package/build/components/story-progress/index.js +196 -0
- package/build/components/story-progress/scss/index.scss +2 -0
- package/build/components/surface-field/index.d.ts +2200 -0
- package/build/components/surface-field/index.js +474 -0
- package/build/components/surface-field/scss/index.scss +2 -0
- package/build/components/swipe-deck/index.d.ts +19 -0
- package/build/components/swipe-deck/index.js +300 -0
- package/build/components/swipe-deck/scss/index.scss +2 -0
- package/build/components/tabs/scss/index.scss +1 -1
- package/build/components/tag-input/index.d.ts +27 -0
- package/build/components/tag-input/index.js +309 -0
- package/build/components/tag-input/scss/index.scss +2 -0
- package/build/components/task-list/index.d.ts +28 -0
- package/build/components/task-list/index.js +107 -0
- package/build/components/task-list/scss/index.scss +2 -0
- package/build/components/tasklist/constants.d.ts +2 -0
- package/build/components/tasklist/constants.js +2 -0
- package/build/components/tasklist/index.d.ts +730 -0
- package/build/components/tasklist/index.js +116 -0
- package/build/components/tasklist/scss/index.scss +2 -0
- package/build/components/text-animate/index.d.ts +30 -0
- package/build/components/text-animate/index.js +97 -0
- package/build/components/text-animate/scss/index.scss +2 -0
- package/build/components/text-progress/index.d.ts +13 -0
- package/build/components/text-progress/index.js +114 -0
- package/build/components/text-progress/scss/index.scss +2 -0
- package/build/components/textarea/index.d.ts +2159 -715
- package/build/components/textarea/index.js +14 -13
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/thumbnail/scss/index.scss +1 -1
- package/build/components/toast/index.js +53 -43
- package/build/components/toast/manager.d.ts +4 -0
- package/build/components/toast/manager.js +19 -1
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/context.d.ts +22 -0
- package/build/components/tooltip/context.js +66 -0
- package/build/components/tooltip/group.d.ts +29 -0
- package/build/components/tooltip/group.js +128 -0
- package/build/components/tooltip/index.d.ts +4 -0
- package/build/components/tooltip/index.js +3 -1
- package/build/components/tooltip/menu.d.ts +17 -8
- package/build/components/tooltip/menu.js +14 -31
- package/build/components/tooltip/onclick.d.ts +22 -713
- package/build/components/tooltip/onclick.js +38 -18
- package/build/components/tooltip/onhover.d.ts +23 -713
- package/build/components/tooltip/onhover.js +89 -13
- package/build/components/tooltip/options.d.ts +7 -0
- package/build/components/tooltip/options.js +21 -0
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/utilities.d.ts +4 -0
- package/build/components/tooltip/utilities.js +58 -0
- package/build/components/tree/index.d.ts +28 -0
- package/build/components/tree/index.js +182 -0
- package/build/components/tree/scss/index.scss +2 -0
- package/build/components/tree-view/index.d.ts +25 -0
- package/build/components/tree-view/index.js +205 -0
- package/build/components/tree-view/scss/index.scss +2 -0
- package/build/components/typewriter/index.d.ts +11 -2
- package/build/components/typewriter/index.js +16 -12
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/typewriter-retype/index.d.ts +8 -0
- package/build/components/typewriter-retype/index.js +122 -0
- package/build/components/typewriter-retype/scss/index.scss +2 -0
- package/build/components/undo-toast/index.d.ts +30 -0
- package/build/components/undo-toast/index.js +262 -0
- package/build/components/undo-toast/scss/index.scss +2 -0
- package/build/components/uptime/index.d.ts +21 -0
- package/build/components/uptime/index.js +210 -0
- package/build/components/uptime/scss/index.scss +2 -0
- package/build/components/usage-meter/index.d.ts +2159 -0
- package/build/components/usage-meter/index.js +30 -0
- package/build/components/usage-meter/scss/index.scss +2 -0
- package/build/components/value-flash/index.d.ts +12 -0
- package/build/components/value-flash/index.js +106 -0
- package/build/components/value-flash/scss/index.scss +2 -0
- package/build/components/waitlist-join/index.d.ts +34 -0
- package/build/components/waitlist-join/index.js +402 -0
- package/build/components/waitlist-join/scss/index.scss +2 -0
- package/build/components/web-search/brands.d.ts +121 -0
- package/build/components/web-search/brands.js +138 -0
- package/build/components/web-search/index.d.ts +31 -0
- package/build/components/web-search/index.js +245 -0
- package/build/components/web-search/scss/index.scss +2 -0
- package/build/components/word-rotator/index.d.ts +14 -0
- package/build/components/word-rotator/index.js +196 -0
- package/build/components/word-rotator/scss/index.scss +2 -0
- package/build/css-utilities/absolute/scss/index.scss +1 -1
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/themes/dark/input.d.ts +6 -2
- package/build/themes/dark/select.js +2 -2
- package/build/themes/dark/textarea.d.ts +2172 -718
- package/package.json +6 -6
- package/pnpm-workspace.yaml +5 -5
- package/src/components/accordion/index.ts +7 -1
- package/src/components/accordion/more.ts +97 -0
- package/src/components/accordion/scss/index.scss +141 -0
- package/src/components/anchor/scss/index.scss +2 -2
- package/src/components/announcement-banner/index.ts +81 -0
- package/src/components/announcement-banner/scss/index.scss +183 -0
- package/src/components/announcement-banner/scss/variables.scss +18 -0
- package/src/components/autosave/index.ts +113 -0
- package/src/components/autosave/scss/index.scss +155 -0
- package/src/components/autosave/scss/variables.scss +22 -0
- package/src/components/back-to-top/index.ts +293 -0
- package/src/components/back-to-top/scss/index.scss +111 -0
- package/src/components/back-to-top/scss/variables.scss +30 -0
- package/src/components/banner/scss/variables.scss +1 -1
- package/src/components/bento-grid/index.ts +63 -0
- package/src/components/bento-grid/scss/index.scss +174 -0
- package/src/components/bento-grid/scss/variables.scss +19 -0
- package/src/components/bento-grid-spotlight/index.ts +133 -0
- package/src/components/bento-grid-spotlight/scss/index.scss +226 -0
- package/src/components/bento-grid-spotlight/scss/variables.scss +36 -0
- package/src/components/bookmark-button/index.ts +174 -0
- package/src/components/bookmark-button/scss/index.scss +162 -0
- package/src/components/bookmark-button/scss/variables.scss +28 -0
- package/src/components/breadcrumb/ellipsis.ts +17 -0
- package/src/components/breadcrumb/index.ts +32 -0
- package/src/components/breadcrumb/item.ts +10 -0
- package/src/components/breadcrumb/link.ts +21 -0
- package/src/components/breadcrumb/list.ts +10 -0
- package/src/components/breadcrumb/menu.ts +20 -0
- package/src/components/breadcrumb/page.ts +16 -0
- package/src/components/breadcrumb/scss/index.scss +74 -0
- package/src/components/breadcrumb/scss/variables.scss +17 -0
- package/src/components/breadcrumb/separator.ts +17 -0
- package/src/components/breadcrumb/svg/caret.svg +1 -0
- package/src/components/breadcrumb/svg/chevron.svg +1 -0
- package/src/components/breadcrumb/svg/more.svg +1 -0
- package/src/components/breadcrumbs/index.ts +479 -0
- package/src/components/breadcrumbs/scss/index.scss +235 -0
- package/src/components/breadcrumbs/scss/variables.scss +30 -0
- package/src/components/button/copy.ts +59 -0
- package/src/components/button/faces.ts +29 -0
- package/src/components/button/fan.ts +173 -0
- package/src/components/button/hold.ts +154 -0
- package/src/components/button/icons.ts +38 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button/kbd.ts +156 -0
- package/src/components/button/loading.ts +77 -0
- package/src/components/button/scss/_fan.scss +125 -0
- package/src/components/button/scss/_kbd.scss +10 -0
- package/src/components/button/scss/index.scss +117 -5
- package/src/components/button/scss/variables.scss +81 -0
- package/src/components/button/svg/plus.svg +1 -0
- package/src/components/card/scss/index.scss +2 -3
- package/src/components/card-input/index.ts +594 -0
- package/src/components/card-input/scss/index.scss +512 -0
- package/src/components/card-input/scss/variables.scss +29 -0
- package/src/components/carousel-3d/index.ts +405 -0
- package/src/components/carousel-3d/scss/index.scss +155 -0
- package/src/components/carousel-3d/scss/variables.scss +25 -0
- package/src/components/checkbox/index.ts +16 -13
- package/src/components/checkbox/scss/index.scss +6 -3
- package/src/components/checkbox-group/index.ts +171 -0
- package/src/components/checkbox-group/scss/index.scss +229 -0
- package/src/components/checkbox-group/scss/variables.scss +28 -0
- package/src/components/clipboard/copy.ts +19 -25
- package/src/components/clipboard/index.ts +2 -3
- package/src/components/code-morph/index.ts +459 -0
- package/src/components/code-morph/scss/index.scss +384 -0
- package/src/components/code-morph/scss/variables.scss +33 -0
- package/src/components/collapsible-sidebar/index.ts +193 -0
- package/src/components/collapsible-sidebar/scss/index.scss +220 -0
- package/src/components/collapsible-sidebar/scss/variables.scss +42 -0
- package/src/components/color-picker/index.ts +650 -0
- package/src/components/color-picker/scss/index.scss +345 -0
- package/src/components/color-picker/scss/variables.scss +33 -0
- package/src/components/command/constants.ts +6 -0
- package/src/components/command/index.ts +282 -0
- package/src/components/command/scss/index.scss +213 -0
- package/src/components/command/scss/variables.scss +35 -0
- package/src/components/command-palette/index.ts +456 -0
- package/src/components/command-palette/scss/index.scss +235 -0
- package/src/components/command-palette/scss/variables.scss +42 -0
- package/src/components/composer/index.ts +117 -0
- package/src/components/composer/scss/index.scss +105 -0
- package/src/components/composer/scss/variables.scss +82 -0
- package/src/components/composer/svg/arrow-up.svg +1 -0
- package/src/components/container/scss/index.scss +2 -1
- package/src/components/contribution-heatmap/index.ts +348 -0
- package/src/components/contribution-heatmap/scss/index.scss +151 -0
- package/src/components/contribution-heatmap/scss/variables.scss +39 -0
- package/src/components/counter/index.ts +56 -9
- package/src/components/counter/scss/index.scss +56 -2
- package/src/components/counter/scss/variables.scss +38 -2
- package/src/components/datalist/index.ts +236 -0
- package/src/components/datalist/scss/index.scss +84 -0
- package/src/components/datalist/scss/variables.scss +26 -0
- package/src/components/date-range-picker/index.ts +641 -0
- package/src/components/date-range-picker/scss/index.scss +380 -0
- package/src/components/date-range-picker/scss/variables.scss +22 -0
- package/src/components/dock/index.ts +265 -0
- package/src/components/dock/scss/index.scss +102 -0
- package/src/components/dock/scss/variables.scss +30 -0
- package/src/components/dynamic-island/index.ts +161 -0
- package/src/components/dynamic-island/scss/index.scss +278 -0
- package/src/components/dynamic-island/scss/variables.scss +39 -0
- package/src/components/email-typo-fix/index.ts +615 -0
- package/src/components/email-typo-fix/scss/index.scss +213 -0
- package/src/components/email-typo-fix/scss/variables.scss +18 -0
- package/src/components/expanding-card/index.ts +377 -0
- package/src/components/expanding-card/scss/index.scss +232 -0
- package/src/components/expanding-card/scss/variables.scss +22 -0
- package/src/components/feature-spotlight/index.ts +437 -0
- package/src/components/feature-spotlight/scss/index.scss +254 -0
- package/src/components/feature-spotlight/scss/variables.scss +36 -0
- package/src/components/file-tree/index.ts +319 -0
- package/src/components/file-tree/scss/index.scss +138 -0
- package/src/components/file-tree/scss/variables.scss +18 -0
- package/src/components/filter-grid/index.ts +344 -0
- package/src/components/filter-grid/scss/index.scss +142 -0
- package/src/components/filter-grid/scss/variables.scss +41 -0
- package/src/components/form/scss/index.scss +2 -1
- package/src/components/gradient-text/index.ts +26 -0
- package/src/components/gradient-text/scss/index.scss +20 -0
- package/src/components/gradient-text/scss/variables.scss +6 -0
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/header/index.ts +318 -0
- package/src/components/header/scss/index.scss +508 -0
- package/src/components/header/scss/variables.scss +21 -0
- package/src/components/highlight/index.ts +239 -0
- package/src/components/highlight/scss/index.scss +48 -0
- package/src/components/highlight/scss/variables.scss +26 -0
- package/src/components/hover-card/index.ts +319 -0
- package/src/components/hover-card/scss/index.scss +117 -0
- package/src/components/hover-card/scss/variables.scss +25 -0
- package/src/components/image/index.ts +79 -0
- package/src/components/image/scss/index.scss +82 -0
- package/src/components/image/scss/variables.scss +15 -0
- package/src/components/index.ts +97 -1
- package/src/components/inline-edit/index.ts +177 -0
- package/src/components/inline-edit/scss/index.scss +152 -0
- package/src/components/inline-edit/scss/variables.scss +17 -0
- package/src/components/input/index.ts +9 -2
- package/src/components/input/scss/index.scss +2 -3
- package/src/components/kanban-board/index.ts +326 -0
- package/src/components/kanban-board/scss/index.scss +126 -0
- package/src/components/kanban-board/scss/variables.scss +39 -0
- package/src/components/lightbox/index.ts +594 -0
- package/src/components/lightbox/scss/index.scss +194 -0
- package/src/components/lightbox/scss/variables.scss +24 -0
- package/src/components/lightbox/spring.ts +118 -0
- package/src/components/line-shadow-text/index.ts +24 -0
- package/src/components/line-shadow-text/scss/index.scss +45 -0
- package/src/components/line-shadow-text/scss/variables.scss +6 -0
- package/src/components/link/scss/index.scss +2 -3
- package/src/components/loading/index.ts +3 -10
- package/src/components/loading/scss/index.scss +55 -4
- package/src/components/loading/scss/variables.scss +15 -1
- package/src/components/log/index.ts +156 -0
- package/src/components/log/scss/index.scss +269 -0
- package/src/components/log/scss/variables.scss +19 -0
- package/src/components/long-press/bind.ts +159 -0
- package/src/components/long-press/button.ts +46 -0
- package/src/components/long-press/index.ts +6 -0
- package/src/components/long-press/scss/index.scss +60 -0
- package/src/components/long-press/scss/variables.scss +9 -0
- package/src/components/marquee/index.ts +300 -0
- package/src/components/marquee/scss/index.scss +109 -0
- package/src/components/marquee/scss/variables.scss +18 -0
- package/src/components/modal/index.ts +91 -0
- package/src/components/modal/scss/index.scss +51 -4
- package/src/components/modal/scss/variables.scss +36 -0
- package/src/components/morphing-button/index.ts +188 -0
- package/src/components/morphing-button/scss/index.scss +154 -0
- package/src/components/morphing-button/scss/variables.scss +21 -0
- package/src/components/morphing-nav/index.ts +496 -0
- package/src/components/morphing-nav/scss/index.scss +284 -0
- package/src/components/morphing-nav/scss/variables.scss +36 -0
- package/src/components/multi-step-form/index.ts +368 -0
- package/src/components/multi-step-form/scss/index.scss +397 -0
- package/src/components/multi-step-form/scss/variables.scss +22 -0
- package/src/components/nested-menu/index.ts +446 -0
- package/src/components/nested-menu/scss/index.scss +219 -0
- package/src/components/nested-menu/scss/variables.scss +26 -0
- package/src/components/notification-bell/index.ts +102 -0
- package/src/components/notification-bell/scss/index.scss +132 -0
- package/src/components/notification-bell/scss/variables.scss +41 -0
- package/src/components/notification-bell/svg/bell.svg +1 -0
- package/src/components/onboarding-checklist/index.ts +252 -0
- package/src/components/onboarding-checklist/scss/index.scss +414 -0
- package/src/components/onboarding-checklist/scss/variables.scss +17 -0
- package/src/components/page-dots/index.ts +137 -0
- package/src/components/page-dots/scss/index.scss +95 -0
- package/src/components/page-dots/scss/variables.scss +26 -0
- package/src/components/pagination/index.ts +129 -0
- package/src/components/pagination/scss/index.scss +46 -0
- package/src/components/pagination/scss/variables.scss +40 -0
- package/src/components/pagination/svg/arrow-left.svg +1 -0
- package/src/components/pagination/svg/arrow-right.svg +1 -0
- package/src/components/password/constants.ts +4 -0
- package/src/components/password/index.ts +97 -0
- package/src/components/password/scss/index.scss +188 -0
- package/src/components/password/scss/variables.scss +50 -0
- package/src/components/progress/index.ts +57 -0
- package/src/components/progress/scss/index.scss +49 -0
- package/src/components/progress/scss/variables.scss +11 -0
- package/src/components/pull-to-refresh/index.ts +438 -0
- package/src/components/pull-to-refresh/scss/index.scss +91 -0
- package/src/components/pull-to-refresh/scss/variables.scss +10 -0
- package/src/components/radio-cards/index.ts +145 -0
- package/src/components/radio-cards/scss/index.scss +232 -0
- package/src/components/radio-cards/scss/variables.scss +32 -0
- package/src/components/range/scss/index.scss +2 -1
- package/src/components/range-filter/index.ts +295 -0
- package/src/components/range-filter/scss/index.scss +257 -0
- package/src/components/range-filter/scss/variables.scss +20 -0
- package/src/components/range-slider/index.ts +277 -0
- package/src/components/range-slider/scss/index.scss +234 -0
- package/src/components/range-slider/scss/variables.scss +26 -0
- package/src/components/reading-progress/index.ts +160 -0
- package/src/components/reading-progress/scss/index.scss +115 -0
- package/src/components/reading-progress/scss/variables.scss +31 -0
- package/src/components/relative-time/index.ts +410 -0
- package/src/components/relative-time/scss/index.scss +88 -0
- package/src/components/relative-time/scss/variables.scss +19 -0
- package/src/components/root/scss/index.scss +2 -2
- package/src/components/scroll-fade/index.ts +131 -0
- package/src/components/scroll-fade/scss/index.scss +104 -0
- package/src/components/scroll-fade/scss/variables.scss +10 -0
- package/src/components/scroll-spine/index.ts +355 -0
- package/src/components/scroll-spine/scss/index.scss +209 -0
- package/src/components/scroll-spine/scss/variables.scss +22 -0
- package/src/components/scroll-velocity/index.ts +269 -0
- package/src/components/scroll-velocity/scss/index.scss +29 -0
- package/src/components/scroll-velocity/scss/variables.scss +3 -0
- package/src/components/scrub-input/index.ts +339 -0
- package/src/components/scrub-input/scss/index.scss +105 -0
- package/src/components/scrub-input/scss/variables.scss +23 -0
- package/src/components/select/index.ts +12 -5
- package/src/components/select/scss/index.scss +15 -10
- package/src/components/select-menu/index.ts +499 -0
- package/src/components/select-menu/scss/index.scss +192 -0
- package/src/components/select-menu/scss/variables.scss +41 -0
- package/src/components/selection-toolbar/index.ts +510 -0
- package/src/components/selection-toolbar/scss/index.scss +221 -0
- package/src/components/selection-toolbar/scss/variables.scss +24 -0
- package/src/components/settings/index.ts +184 -0
- package/src/components/settings/scss/index.scss +327 -0
- package/src/components/settings/scss/variables.scss +50 -0
- package/src/components/settings/svg/close.svg +1 -0
- package/src/components/settings/svg/saved.svg +1 -0
- package/src/components/share-button/index.ts +328 -0
- package/src/components/share-button/scss/index.scss +191 -0
- package/src/components/share-button/scss/variables.scss +24 -0
- package/src/components/sheet/index.ts +170 -0
- package/src/components/sheet/scss/index.scss +65 -0
- package/src/components/sheet/scss/variables.scss +27 -0
- package/src/components/shiny-text/index.ts +19 -0
- package/src/components/shiny-text/scss/index.scss +32 -0
- package/src/components/shiny-text/scss/variables.scss +7 -0
- package/src/components/shortcut-recorder/index.ts +284 -0
- package/src/components/shortcut-recorder/scss/index.scss +198 -0
- package/src/components/shortcut-recorder/scss/variables.scss +54 -0
- package/src/components/shortcut-sheet/index.ts +454 -0
- package/src/components/shortcut-sheet/scss/index.scss +306 -0
- package/src/components/shortcut-sheet/scss/variables.scss +36 -0
- package/src/components/sidebar/scss/index.scss +3 -3
- package/src/components/slider/index.ts +232 -0
- package/src/components/slider/scss/index.scss +182 -0
- package/src/components/slider/scss/variables.scss +15 -0
- package/src/components/sliding-tabs/index.ts +291 -0
- package/src/components/sliding-tabs/scss/index.scss +174 -0
- package/src/components/sliding-tabs/scss/variables.scss +34 -0
- package/src/components/snap-carousel/index.ts +324 -0
- package/src/components/snap-carousel/scss/index.scss +174 -0
- package/src/components/snap-carousel/scss/variables.scss +31 -0
- package/src/components/sortable/index.ts +483 -0
- package/src/components/sortable/scss/index.scss +282 -0
- package/src/components/sortable/scss/variables.scss +59 -0
- package/src/components/sparkline/index.ts +234 -0
- package/src/components/sparkline/scss/index.scss +169 -0
- package/src/components/sparkline/scss/variables.scss +30 -0
- package/src/components/stacked-drawer/index.ts +272 -0
- package/src/components/stacked-drawer/scss/index.scss +122 -0
- package/src/components/stacked-drawer/scss/variables.scss +20 -0
- package/src/components/stat-counter/index.ts +337 -0
- package/src/components/stat-counter/scss/index.scss +246 -0
- package/src/components/stat-counter/scss/variables.scss +24 -0
- package/src/components/status-picker/index.ts +323 -0
- package/src/components/status-picker/scss/index.scss +290 -0
- package/src/components/status-picker/scss/variables.scss +29 -0
- package/src/components/sticky-header/index.ts +127 -0
- package/src/components/sticky-header/scss/index.scss +149 -0
- package/src/components/sticky-header/scss/variables.scss +22 -0
- package/src/components/sticky-stack/index.ts +313 -0
- package/src/components/sticky-stack/scss/index.scss +167 -0
- package/src/components/sticky-stack/scss/variables.scss +50 -0
- package/src/components/story-progress/index.ts +247 -0
- package/src/components/story-progress/scss/index.scss +205 -0
- package/src/components/story-progress/scss/variables.scss +21 -0
- package/src/components/surface-field/index.ts +816 -0
- package/src/components/surface-field/scss/index.scss +115 -0
- package/src/components/surface-field/scss/variables.scss +11 -0
- package/src/components/swipe-deck/index.ts +438 -0
- package/src/components/swipe-deck/scss/index.scss +275 -0
- package/src/components/swipe-deck/scss/variables.scss +24 -0
- package/src/components/tabs/scss/index.scss +3 -3
- package/src/components/tag-input/index.ts +415 -0
- package/src/components/tag-input/scss/index.scss +186 -0
- package/src/components/tag-input/scss/variables.scss +30 -0
- package/src/components/task-list/index.ts +137 -0
- package/src/components/task-list/scss/index.scss +171 -0
- package/src/components/task-list/scss/variables.scss +8 -0
- package/src/components/tasklist/constants.ts +4 -0
- package/src/components/tasklist/index.ts +174 -0
- package/src/components/tasklist/scss/index.scss +184 -0
- package/src/components/tasklist/scss/variables.scss +83 -0
- package/src/components/text-animate/index.ts +142 -0
- package/src/components/text-animate/scss/index.scss +106 -0
- package/src/components/text-animate/scss/variables.scss +17 -0
- package/src/components/text-progress/index.ts +170 -0
- package/src/components/text-progress/scss/index.scss +148 -0
- package/src/components/text-progress/scss/variables.scss +26 -0
- package/src/components/textarea/index.ts +6 -3
- package/src/components/textarea/scss/index.scss +2 -3
- package/src/components/thumbnail/scss/index.scss +51 -0
- package/src/components/thumbnail/scss/variables.scss +12 -0
- package/src/components/toast/index.ts +11 -1
- package/src/components/toast/manager.ts +31 -1
- package/src/components/toast/scss/index.scss +66 -18
- package/src/components/toast/scss/variables.scss +2 -0
- package/src/components/tooltip/context.ts +96 -0
- package/src/components/tooltip/group.ts +162 -0
- package/src/components/tooltip/index.ts +3 -1
- package/src/components/tooltip/menu.ts +25 -31
- package/src/components/tooltip/onclick.ts +62 -24
- package/src/components/tooltip/onhover.ts +148 -18
- package/src/components/tooltip/options.ts +33 -0
- package/src/components/tooltip/scss/_center.scss +1 -5
- package/src/components/tooltip/scss/_east.scss +5 -5
- package/src/components/tooltip/scss/_group.scss +164 -0
- package/src/components/tooltip/scss/_north.scss +5 -5
- package/src/components/tooltip/scss/_south.scss +5 -5
- package/src/components/tooltip/scss/_west.scss +5 -5
- package/src/components/tooltip/scss/index.scss +230 -17
- package/src/components/tooltip/scss/variables.scss +105 -0
- package/src/components/tooltip/utilities.ts +103 -0
- package/src/components/tree/index.ts +259 -0
- package/src/components/tree/scss/index.scss +105 -0
- package/src/components/tree/scss/variables.scss +48 -0
- package/src/components/tree-view/index.ts +285 -0
- package/src/components/tree-view/scss/index.scss +169 -0
- package/src/components/tree-view/scss/variables.scss +18 -0
- package/src/components/typewriter/index.ts +10 -6
- package/src/components/typewriter/scss/index.scss +30 -11
- package/src/components/typewriter/scss/variables.scss +24 -0
- package/src/components/typewriter-retype/index.ts +164 -0
- package/src/components/typewriter-retype/scss/index.scss +142 -0
- package/src/components/typewriter-retype/scss/variables.scss +46 -0
- package/src/components/undo-toast/index.ts +359 -0
- package/src/components/undo-toast/scss/index.scss +216 -0
- package/src/components/undo-toast/scss/variables.scss +20 -0
- package/src/components/uptime/index.ts +271 -0
- package/src/components/uptime/scss/index.scss +163 -0
- package/src/components/uptime/scss/variables.scss +56 -0
- package/src/components/usage-meter/index.ts +63 -0
- package/src/components/usage-meter/scss/index.scss +94 -0
- package/src/components/usage-meter/scss/variables.scss +43 -0
- package/src/components/value-flash/index.ts +121 -0
- package/src/components/value-flash/scss/index.scss +193 -0
- package/src/components/value-flash/scss/variables.scss +47 -0
- package/src/components/waitlist-join/index.ts +545 -0
- package/src/components/waitlist-join/scss/index.scss +401 -0
- package/src/components/waitlist-join/scss/variables.scss +23 -0
- package/src/components/web-search/brands.ts +155 -0
- package/src/components/web-search/index.ts +316 -0
- package/src/components/web-search/scss/index.scss +270 -0
- package/src/components/web-search/scss/variables.scss +8 -0
- package/src/components/word-rotator/index.ts +296 -0
- package/src/components/word-rotator/scss/index.scss +33 -0
- package/src/components/word-rotator/scss/variables.scss +7 -0
- package/src/css-utilities/scrollbar/scss/index.scss +6 -1
- package/src/lib/scss/position.scss +3 -3
- package/src/themes/dark/select.ts +2 -2
- package/storage/svg/settings/add-line.svg +1 -0
- package/storage/svg/settings/arrow-down-s-line.svg +1 -0
- package/storage/svg/settings/arrow-left-s-line.svg +1 -0
- package/storage/svg/settings/arrow-right-s-line.svg +1 -0
- package/storage/svg/settings/bank-card-line.svg +1 -0
- package/storage/svg/settings/book-open-line.svg +1 -0
- package/storage/svg/settings/calendar-line.svg +1 -0
- package/storage/svg/settings/code-block.svg +1 -0
- package/storage/svg/settings/database-2-line.svg +1 -0
- package/storage/svg/settings/delete-bin-6-line.svg +1 -0
- package/storage/svg/settings/download-2-line.svg +1 -0
- package/storage/svg/settings/edit-line.svg +1 -0
- package/storage/svg/settings/expand-up-down-line.svg +1 -0
- package/storage/svg/settings/external-link-line.svg +1 -0
- package/storage/svg/settings/file-copy-line.svg +1 -0
- package/storage/svg/settings/file-excel-2-fill.svg +1 -0
- package/storage/svg/settings/file-text-fill.svg +1 -0
- package/storage/svg/settings/film-fill.svg +1 -0
- package/storage/svg/settings/git-merge-line.svg +1 -0
- package/storage/svg/settings/logout-circle-line.svg +1 -0
- package/storage/svg/settings/mail-line.svg +1 -0
- package/storage/svg/settings/more-2-fill.svg +1 -0
- package/storage/svg/settings/more-fill.svg +1 -0
- package/storage/svg/settings/organization-chart.svg +1 -0
- package/storage/svg/settings/palette-line.svg +1 -0
- package/storage/svg/settings/plug-line.svg +1 -0
- package/storage/svg/settings/school-line.svg +1 -0
- package/storage/svg/settings/search-line.svg +1 -0
- package/storage/svg/settings/settings-6-line.svg +1 -0
- package/storage/svg/settings/settings-line.svg +1 -0
- package/storage/svg/settings/tools-fill.svg +1 -0
- package/storage/svg/settings/upload-cloud-2-line.svg +1 -0
- package/build/components/border/scss/index.scss +0 -2
- package/build/components/checkbox/constants.d.ts +0 -2
- package/build/components/checkbox/constants.js +0 -2
- package/build/components/clipboard/onclick.d.ts +0 -10
- package/build/components/clipboard/onclick.js +0 -36
- package/build/components/select/constants.d.ts +0 -4
- package/build/components/select/constants.js +0 -4
- package/build/components/tooltip/constants.d.ts +0 -3
- package/build/components/tooltip/constants.js +0 -3
- package/src/components/border/scss/index.scss +0 -17
- package/src/components/border/scss/variables.scss +0 -6
- package/src/components/checkbox/constants.ts +0 -4
- package/src/components/clipboard/onclick.ts +0 -35
- package/src/components/select/constants.ts +0 -8
- package/src/components/tooltip/constants.ts +0 -6
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use '/tokens';
|
|
2
|
+
|
|
3
|
+
.tooltip-group {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 0;
|
|
7
|
+
|
|
8
|
+
@include tokens.state(active) {
|
|
9
|
+
z-index: 9;
|
|
10
|
+
|
|
11
|
+
> .tooltip-group-content > .tooltip-group-box {
|
|
12
|
+
filter: blur(0);
|
|
13
|
+
opacity: 1;
|
|
14
|
+
scale: 1;
|
|
15
|
+
transition:
|
|
16
|
+
filter var(--group-open-duration) var(--group-timing-function) var(--group-delay),
|
|
17
|
+
opacity var(--group-open-duration) var(--group-timing-function) var(--group-delay),
|
|
18
|
+
scale var(--group-open-duration) var(--group-timing-function) var(--group-delay),
|
|
19
|
+
translate var(--group-open-duration) var(--group-timing-function) var(--group-delay);
|
|
20
|
+
translate: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.--gliding {
|
|
25
|
+
> .tooltip-group-content {
|
|
26
|
+
transition:
|
|
27
|
+
height var(--group-glide-duration) var(--group-glide-timing-function),
|
|
28
|
+
translate var(--group-glide-duration) var(--group-glide-timing-function),
|
|
29
|
+
width var(--group-glide-duration) var(--group-glide-timing-function);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tooltip-group-layer {
|
|
33
|
+
transition:
|
|
34
|
+
filter var(--group-swap-duration) var(--group-timing-function),
|
|
35
|
+
opacity var(--group-swap-duration) var(--group-timing-function),
|
|
36
|
+
translate var(--group-swap-duration) var(--group-timing-function);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
&-box {
|
|
42
|
+
background: var(--background);
|
|
43
|
+
border-radius: var(--border-radius);
|
|
44
|
+
box-shadow: var(--box-shadow);
|
|
45
|
+
color: var(--color);
|
|
46
|
+
filter: blur(var(--group-blur));
|
|
47
|
+
font-size: var(--font-size);
|
|
48
|
+
font-weight: var(--font-weight);
|
|
49
|
+
inset: 0;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
position: absolute;
|
|
53
|
+
scale: var(--group-scale);
|
|
54
|
+
transition:
|
|
55
|
+
filter var(--group-close-duration) var(--group-timing-function),
|
|
56
|
+
opacity var(--group-close-duration) var(--group-timing-function),
|
|
57
|
+
scale var(--group-close-duration) var(--group-timing-function),
|
|
58
|
+
translate var(--group-close-duration) var(--group-timing-function);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Physical insets: the anchor comes from 'offsetLeft/offsetTop', which are physical too.
|
|
62
|
+
&-content {
|
|
63
|
+
height: var(--group-height);
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
position: absolute;
|
|
66
|
+
transition: none;
|
|
67
|
+
width: var(--group-width);
|
|
68
|
+
z-index: 9;
|
|
69
|
+
|
|
70
|
+
&--e,
|
|
71
|
+
&--w {
|
|
72
|
+
--group-axis-x: 0;
|
|
73
|
+
--group-axis-y: 1;
|
|
74
|
+
top: 0;
|
|
75
|
+
translate: 0 calc(var(--group-y) - 50%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&--n,
|
|
79
|
+
&--s {
|
|
80
|
+
--group-axis-x: 1;
|
|
81
|
+
--group-axis-y: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
translate: calc(var(--group-x) - 50%) 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&--e {
|
|
87
|
+
left: calc(100% + var(--spacer));
|
|
88
|
+
|
|
89
|
+
> .tooltip-group-box {
|
|
90
|
+
transform-origin: left center;
|
|
91
|
+
translate: calc(var(--group-rise) * -1) 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--n {
|
|
96
|
+
bottom: calc(100% + var(--spacer));
|
|
97
|
+
|
|
98
|
+
> .tooltip-group-box {
|
|
99
|
+
transform-origin: center bottom;
|
|
100
|
+
translate: 0 var(--group-rise);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&--s {
|
|
105
|
+
top: calc(100% + var(--spacer));
|
|
106
|
+
|
|
107
|
+
> .tooltip-group-box {
|
|
108
|
+
transform-origin: center top;
|
|
109
|
+
translate: 0 calc(var(--group-rise) * -1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&--w {
|
|
114
|
+
right: calc(100% + var(--spacer));
|
|
115
|
+
|
|
116
|
+
> .tooltip-group-box {
|
|
117
|
+
transform-origin: right center;
|
|
118
|
+
translate: var(--group-rise) 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Root 'transition: inherit' would hand layers the pop transition and slide them in on open.
|
|
124
|
+
&-layer {
|
|
125
|
+
--group-shift: var(--group-swap-shift);
|
|
126
|
+
filter: blur(var(--group-swap-blur));
|
|
127
|
+
left: 50%;
|
|
128
|
+
max-width: var(--max-width);
|
|
129
|
+
opacity: 0;
|
|
130
|
+
padding-block: var(--padding-vertical);
|
|
131
|
+
padding-inline: var(--padding-horizontal);
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 50%;
|
|
134
|
+
transition: none;
|
|
135
|
+
translate:
|
|
136
|
+
calc(-50% + var(--group-shift) * var(--group-axis-x))
|
|
137
|
+
calc(-50% + var(--group-shift) * var(--group-axis-y));
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
width: max-content;
|
|
140
|
+
|
|
141
|
+
&.--active {
|
|
142
|
+
--group-shift: 0px;
|
|
143
|
+
filter: blur(0);
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.--before {
|
|
148
|
+
--group-shift: calc(var(--group-swap-shift) * -1);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
// Only the fades remain. The extra specificity beats the defaults in 'variables.scss'.
|
|
155
|
+
@media (prefers-reduced-motion: reduce) {
|
|
156
|
+
.tooltip-group > .tooltip-group-content {
|
|
157
|
+
--group-blur: 0px;
|
|
158
|
+
--group-glide-duration: 0s;
|
|
159
|
+
--group-rise: 0px;
|
|
160
|
+
--group-scale: 1;
|
|
161
|
+
--group-swap-blur: 0px;
|
|
162
|
+
--group-swap-shift: 0px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
@mixin north($active) {
|
|
2
2
|
&--ne,
|
|
3
3
|
&--nw {
|
|
4
|
-
bottom: calc(100%
|
|
4
|
+
bottom: calc(100% + var(--spacer) - var(--offset));
|
|
5
5
|
position: absolute;
|
|
6
6
|
|
|
7
7
|
#{$active} {
|
|
8
|
-
|
|
8
|
+
translate: 0 calc(var(--offset) * -1);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&--n {
|
|
13
|
-
bottom: calc(100%
|
|
13
|
+
bottom: calc(100% + var(--spacer) - var(--offset));
|
|
14
14
|
position: absolute;
|
|
15
15
|
right: 50%;
|
|
16
|
-
transform: translateX(50%);
|
|
17
16
|
transform-origin: center bottom;
|
|
17
|
+
translate: 50%;
|
|
18
18
|
|
|
19
19
|
#{$active} {
|
|
20
|
-
|
|
20
|
+
translate: 50% calc(var(--offset) * -1);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
&--se,
|
|
3
3
|
&--sw {
|
|
4
4
|
position: absolute;
|
|
5
|
-
top: calc(100%
|
|
5
|
+
top: calc(100% + var(--spacer) - var(--offset));
|
|
6
6
|
|
|
7
7
|
#{$active} {
|
|
8
|
-
|
|
8
|
+
translate: 0 var(--offset);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&--s {
|
|
13
13
|
position: absolute;
|
|
14
14
|
right: 50%;
|
|
15
|
-
top: calc(100%
|
|
16
|
-
transform: translateX(50%);
|
|
15
|
+
top: calc(100% + var(--spacer) - var(--offset));
|
|
17
16
|
transform-origin: center top;
|
|
17
|
+
translate: 50%;
|
|
18
18
|
|
|
19
19
|
#{$active} {
|
|
20
|
-
|
|
20
|
+
translate: 50% var(--offset);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
&--wn,
|
|
3
3
|
&--ws {
|
|
4
4
|
position: absolute;
|
|
5
|
-
right: calc(100%
|
|
5
|
+
right: calc(100% + var(--spacer) - var(--offset));
|
|
6
6
|
|
|
7
7
|
#{$active} {
|
|
8
|
-
|
|
8
|
+
translate: calc(var(--offset) * -1);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&--w {
|
|
13
13
|
bottom: 50%;
|
|
14
14
|
position: absolute;
|
|
15
|
-
right: calc(100%
|
|
16
|
-
transform: translateY(50%);
|
|
15
|
+
right: calc(100% + var(--spacer) - var(--offset));
|
|
17
16
|
transform-origin: center right;
|
|
17
|
+
translate: 0 50%;
|
|
18
18
|
|
|
19
19
|
#{$active} {
|
|
20
|
-
|
|
20
|
+
translate: calc(var(--offset) * -1) 50%;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '/tokens';
|
|
3
3
|
@use 'center' as *;
|
|
4
4
|
@use 'east' as *;
|
|
5
|
+
@use 'group';
|
|
5
6
|
@use 'north' as *;
|
|
6
7
|
@use 'south' as *;
|
|
7
8
|
@use 'west' as *;
|
|
@@ -13,23 +14,26 @@
|
|
|
13
14
|
z-index: 0;
|
|
14
15
|
|
|
15
16
|
@include tokens.state(active) {
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
// Cone from the pointer to the tooltip, computed by 'tooltip.onhover'; other
|
|
18
|
+
// tooltips never set the variables, so the pseudo-element stays empty.
|
|
19
|
+
// clip-path also clips hit-testing, so only the cone keeps it open. Lowest layer
|
|
20
|
+
// so it never intercepts clicks meant for the tooltip, including morph (-2).
|
|
21
|
+
&::before {
|
|
22
|
+
background: var(--safe-color);
|
|
23
|
+
clip-path: var(--safe-area);
|
|
24
|
+
content: '';
|
|
25
|
+
height: var(--safe-height);
|
|
26
|
+
left: var(--safe-left);
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: var(--safe-top);
|
|
29
|
+
width: var(--safe-width);
|
|
30
|
+
z-index: -3;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
// Rotate arrow only if parent tooltip is active
|
|
30
34
|
:not(.tooltip) .tooltip-arrow,
|
|
31
35
|
> .tooltip-arrow {
|
|
32
|
-
|
|
36
|
+
scale: -1 1;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
|
|
@@ -37,12 +41,35 @@
|
|
|
37
41
|
z-index: 9;
|
|
38
42
|
}
|
|
39
43
|
|
|
44
|
+
&--context {
|
|
45
|
+
cursor: inherit;
|
|
46
|
+
}
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
// Morph tooltips (-2) sit behind the trigger. A child can't paint under its parent's own
|
|
49
|
+
// background, so repaint that background above them; the label still paints on top.
|
|
50
|
+
// Shares '.button::after' (its shadow layer) when the trigger is a button.
|
|
51
|
+
// Gooey join between trigger and tooltip while the morph runs; 'morph()' injects the filter
|
|
52
|
+
// and toggles the class.
|
|
53
|
+
&.--morphing {
|
|
54
|
+
filter: url(#tooltip-morph-goo);
|
|
44
55
|
}
|
|
45
56
|
|
|
57
|
+
&:has(> .tooltip-content--morph, > .tooltip-message--morph, > :not(.tooltip) > .tooltip-content--morph, > :not(.tooltip) > .tooltip-message--morph)::after {
|
|
58
|
+
background: inherit;
|
|
59
|
+
border-radius: inherit;
|
|
60
|
+
content: '';
|
|
61
|
+
display: block;
|
|
62
|
+
inset: 0;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
position: absolute;
|
|
65
|
+
z-index: -1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
&-arrow {
|
|
70
|
+
margin-inline: -1px;
|
|
71
|
+
rotate: var(--rotate);
|
|
72
|
+
}
|
|
46
73
|
|
|
47
74
|
&-content,
|
|
48
75
|
&-message {
|
|
@@ -53,9 +80,11 @@
|
|
|
53
80
|
min-width: var(--min-width);
|
|
54
81
|
opacity: 0;
|
|
55
82
|
overflow: hidden;
|
|
83
|
+
scale: var(--scale);
|
|
56
84
|
transition:
|
|
57
85
|
opacity var(--transition-duration) var(--transition-timing-function),
|
|
58
|
-
|
|
86
|
+
scale var(--transition-duration) var(--transition-timing-function),
|
|
87
|
+
translate var(--transition-duration) var(--transition-timing-function);
|
|
59
88
|
width: var(--width);
|
|
60
89
|
z-index: 9;
|
|
61
90
|
|
|
@@ -66,6 +95,7 @@
|
|
|
66
95
|
|
|
67
96
|
#{$active} {
|
|
68
97
|
opacity: 1;
|
|
98
|
+
scale: 1;
|
|
69
99
|
}
|
|
70
100
|
|
|
71
101
|
#{$not-active} {
|
|
@@ -75,11 +105,159 @@
|
|
|
75
105
|
}
|
|
76
106
|
|
|
77
107
|
|
|
108
|
+
&--context {
|
|
109
|
+
position: absolute;
|
|
110
|
+
}
|
|
111
|
+
|
|
78
112
|
@include center($active);
|
|
79
113
|
@include east($active);
|
|
80
114
|
@include north($active);
|
|
81
115
|
@include south($active);
|
|
82
116
|
@include west($active);
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// Opening reveals from the corner slightly ahead of the scale settling; closing runs both
|
|
120
|
+
// back on one shorter duration. The open state swaps durations through variables rather
|
|
121
|
+
// than redeclaring 'transition', so the reduced-motion override below still wins.
|
|
122
|
+
&--corner {
|
|
123
|
+
--corner-clip-duration: var(--corner-close-duration);
|
|
124
|
+
--corner-duration: var(--corner-close-duration);
|
|
125
|
+
clip-path: inset(var(--corner-inset) round var(--border-radius));
|
|
126
|
+
transition:
|
|
127
|
+
clip-path var(--corner-clip-duration) var(--corner-clip-timing-function),
|
|
128
|
+
opacity var(--corner-duration) var(--transition-timing-function),
|
|
129
|
+
scale var(--corner-duration) var(--transition-timing-function),
|
|
130
|
+
translate var(--corner-duration) var(--transition-timing-function);
|
|
131
|
+
|
|
132
|
+
#{$active} {
|
|
133
|
+
--corner-clip-duration: var(--corner-open-clip-duration);
|
|
134
|
+
--corner-duration: var(--corner-open-duration);
|
|
135
|
+
clip-path: inset(calc(var(--corner-bleed) * -1) round calc(var(--border-radius) + var(--corner-bleed)));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Closing drops the delays so items leave together.
|
|
140
|
+
&--stagger {
|
|
141
|
+
> * {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transition:
|
|
144
|
+
opacity var(--transition-duration) var(--transition-timing-function),
|
|
145
|
+
translate var(--transition-duration) var(--transition-timing-function);
|
|
146
|
+
translate: 0 calc(var(--stagger-offset) * -1);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#{$active} {
|
|
150
|
+
> * {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
transition-delay: calc(var(--stagger-index, 0) * var(--stagger-delay));
|
|
153
|
+
translate: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@for $i from 1 through 12 {
|
|
158
|
+
> :nth-child(#{$i}) {
|
|
159
|
+
--stagger-index: #{$i - 1};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (prefers-reduced-motion: reduce) {
|
|
165
|
+
&--corner,
|
|
166
|
+
&--grow,
|
|
167
|
+
&--stagger,
|
|
168
|
+
&--stagger > *,
|
|
169
|
+
&--zoom {
|
|
170
|
+
transition-duration: 0s;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
// Grows out of the trigger: 'morph()' seeds the trigger's box as clip-path insets, then the
|
|
176
|
+
// clip springs out to the tooltip's own box. Content never moves; the shape reveals it.
|
|
177
|
+
&--morph {
|
|
178
|
+
// Closing: collapse onto the trigger, overshoot it as a blob, settle to its exact box.
|
|
179
|
+
animation: tooltip-morph-close var(--morph-close-duration) linear;
|
|
180
|
+
background: transparent;
|
|
181
|
+
// The overshooting clip would reveal the shadow around the box mid-spring.
|
|
182
|
+
box-shadow: none;
|
|
183
|
+
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
184
|
+
// Lets the background layer reach back to the trigger; clip-path does the clipping.
|
|
185
|
+
overflow: visible;
|
|
186
|
+
// Blurs the content. The background layer is one flat colour overhanging the clip by three
|
|
187
|
+
// blur radii, so within the clip only text and media visibly blur; the container stays
|
|
188
|
+
// crisp and flat. (A backdrop-filter overlay instead paints its blur as an unclipped
|
|
189
|
+
// rectangle, squaring the corners mid-morph.)
|
|
190
|
+
filter: blur(var(--morph-blur));
|
|
191
|
+
// Always fully opaque; only blur animates. Visibility hides it at rest instead (behind
|
|
192
|
+
// a transparent trigger, or before the first open when there's no clip yet), switching
|
|
193
|
+
// off only once the close has finished.
|
|
194
|
+
opacity: 1;
|
|
195
|
+
// Closing: content blurs quickly as the shape starts to shrink.
|
|
196
|
+
transition:
|
|
197
|
+
filter var(--morph-close-duration) cubic-bezier(0.16, 1, 0.3, 1),
|
|
198
|
+
visibility 0s linear var(--morph-close-duration);
|
|
199
|
+
visibility: hidden;
|
|
200
|
+
// Below the trigger's repainted background, see '.tooltip:has(...)::after'.
|
|
201
|
+
z-index: -2;
|
|
202
|
+
|
|
203
|
+
// Background spanning the tooltip, the trigger and the close's landing overshoot, so the
|
|
204
|
+
// clip has something to show wherever it goes. It also overhangs every side by three blur
|
|
205
|
+
// radii: the content blur samples past the tooltip's edge, and reading transparency there
|
|
206
|
+
// would soften and lighten the edges until the blur settles. The overhang is clipped away.
|
|
207
|
+
&::before {
|
|
208
|
+
background: var(--background);
|
|
209
|
+
content: '';
|
|
210
|
+
inset:
|
|
211
|
+
min(calc(var(--morph-blur) * -3), calc(var(--morph-top) - var(--morph-land)))
|
|
212
|
+
min(calc(var(--morph-blur) * -3), calc(var(--morph-right) - var(--morph-land)))
|
|
213
|
+
min(calc(var(--morph-blur) * -3), calc(var(--morph-bottom) - var(--morph-land)))
|
|
214
|
+
min(calc(var(--morph-blur) * -3), calc(var(--morph-left) - var(--morph-land)));
|
|
215
|
+
position: absolute;
|
|
216
|
+
z-index: -1;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
#{$active} {
|
|
220
|
+
animation: none;
|
|
221
|
+
clip-path: inset(0 round var(--border-radius));
|
|
222
|
+
filter: none;
|
|
223
|
+
// Visibility isn't transitioned here so the shape shows instantly; it starts hidden
|
|
224
|
+
// behind the trigger, so there's nothing to fade in. Content starts focusing as it
|
|
225
|
+
// emerges and is sharp as the menu settles.
|
|
226
|
+
transition:
|
|
227
|
+
clip-path var(--morph-open-duration) var(--morph-timing-function),
|
|
228
|
+
filter var(--morph-open-duration) var(--morph-focus-timing-function);
|
|
229
|
+
visibility: visible;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Grow unfolds away from the trigger, so its axis follows the direction: vertical for
|
|
235
|
+
// north/south (the default), horizontal for east/west. Corner collapses onto the edge or
|
|
236
|
+
// corner nearest the trigger, matching each direction's 'transform-origin'.
|
|
237
|
+
@each $base in 'content', 'message' {
|
|
238
|
+
@each $direction, $inset in (
|
|
239
|
+
'c': 46%,
|
|
240
|
+
'e': 46% 92% 46% 0,
|
|
241
|
+
'en': 0 92% 92% 0,
|
|
242
|
+
'es': 92% 92% 0 0,
|
|
243
|
+
'n': 92% 46% 0 46%,
|
|
244
|
+
'ne': 92% 0 0 92%,
|
|
245
|
+
'nw': 92% 92% 0 0,
|
|
246
|
+
's': 0 46% 92% 46%,
|
|
247
|
+
'se': 0 0 92% 92%,
|
|
248
|
+
'sw': 0 92% 92% 0,
|
|
249
|
+
'w': 46% 0 46% 92%,
|
|
250
|
+
'wn': 0 0 92% 92%,
|
|
251
|
+
'ws': 92% 0 0 92%
|
|
252
|
+
) {
|
|
253
|
+
&-#{$base}--corner.tooltip-#{$base}--#{$direction} {
|
|
254
|
+
--corner-inset: #{$inset};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&-#{$base}--grow:is(.tooltip-#{$base}--e, .tooltip-#{$base}--en, .tooltip-#{$base}--es, .tooltip-#{$base}--w, .tooltip-#{$base}--wn, .tooltip-#{$base}--ws) {
|
|
259
|
+
--scale: 0 1;
|
|
260
|
+
}
|
|
83
261
|
}
|
|
84
262
|
|
|
85
263
|
&-message {
|
|
@@ -88,8 +266,43 @@
|
|
|
88
266
|
cursor: auto;
|
|
89
267
|
font-size: var(--font-size);
|
|
90
268
|
font-weight: var(--font-weight);
|
|
91
|
-
padding: var(--padding-vertical)
|
|
269
|
+
padding-block: var(--padding-vertical);
|
|
270
|
+
padding-inline: var(--padding-horizontal);
|
|
92
271
|
pointer-events: none;
|
|
93
272
|
white-space: nowrap;
|
|
94
273
|
}
|
|
95
274
|
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
// Shrinks straight onto the trigger (every edge together) until it's a blob '--morph-land'
|
|
278
|
+
// larger than the trigger on every side, holds there, then settles into the trigger's exact box.
|
|
279
|
+
// The hold matters: without it, edges still arriving (the travel differs per direction) overlap
|
|
280
|
+
// with the final shrink, so it never reads as having landed.
|
|
281
|
+
@keyframes tooltip-morph-close {
|
|
282
|
+
0% {
|
|
283
|
+
animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
|
|
284
|
+
clip-path: inset(0 round var(--border-radius));
|
|
285
|
+
}
|
|
286
|
+
55% {
|
|
287
|
+
clip-path: inset(
|
|
288
|
+
calc(var(--morph-top) - var(--morph-land))
|
|
289
|
+
calc(var(--morph-right) - var(--morph-land))
|
|
290
|
+
calc(var(--morph-bottom) - var(--morph-land))
|
|
291
|
+
calc(var(--morph-left) - var(--morph-land))
|
|
292
|
+
round calc(var(--morph-radius) + var(--morph-land))
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
80% {
|
|
296
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
297
|
+
clip-path: inset(
|
|
298
|
+
calc(var(--morph-top) - var(--morph-land))
|
|
299
|
+
calc(var(--morph-right) - var(--morph-land))
|
|
300
|
+
calc(var(--morph-bottom) - var(--morph-land))
|
|
301
|
+
calc(var(--morph-left) - var(--morph-land))
|
|
302
|
+
round calc(var(--morph-radius) + var(--morph-land))
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
100% {
|
|
306
|
+
clip-path: inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
.tooltip {
|
|
2
|
+
// Set a translucent color to review the safe area shape.
|
|
3
|
+
--safe-color: transparent;
|
|
4
|
+
|
|
2
5
|
&-content,
|
|
3
6
|
&-message {
|
|
4
7
|
--background: var(--background-default);
|
|
@@ -7,8 +10,84 @@
|
|
|
7
10
|
--box-shadow: var(--box-shadow-400);
|
|
8
11
|
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
9
12
|
--min-width: auto;
|
|
13
|
+
--offset: calc(var(--spacer) * 2);
|
|
14
|
+
--scale: 1;
|
|
10
15
|
--spacer: var(--size-300);
|
|
11
16
|
--width: auto;
|
|
17
|
+
|
|
18
|
+
// Unfolds out of the trigger-side corner while scaling up (beUI's animated dropdown); the
|
|
19
|
+
// corner follows the direction, see the direction overrides in 'index.scss'.
|
|
20
|
+
&--corner {
|
|
21
|
+
// Covers the '--box-shadow-400' extent so the resting clip doesn't cut the shadow.
|
|
22
|
+
--corner-bleed: 24px;
|
|
23
|
+
--corner-clip-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
24
|
+
--corner-close-duration: 0.26s;
|
|
25
|
+
--corner-open-clip-duration: 0.32s;
|
|
26
|
+
--corner-open-duration: 0.36s;
|
|
27
|
+
--offset: 0px;
|
|
28
|
+
--scale: 0.96;
|
|
29
|
+
--transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Unfolds away from the trigger along one axis with a slight overshoot (Material menus,
|
|
33
|
+
// Codinhood's 'growDown'); the axis follows the direction.
|
|
34
|
+
&--grow {
|
|
35
|
+
--offset: 0px;
|
|
36
|
+
--scale: 1 0;
|
|
37
|
+
--transition-duration: 0.24s;
|
|
38
|
+
--transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--morph {
|
|
42
|
+
--morph-blur: 4px;
|
|
43
|
+
--morph-close-duration: 0.16s;
|
|
44
|
+
// Starts clearing as soon as content emerges from behind the trigger, settling with the shape.
|
|
45
|
+
--morph-focus-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
46
|
+
--morph-land:2px;
|
|
47
|
+
--morph-open-duration: 0.12s;
|
|
48
|
+
--morph-timing-function: cubic-bezier(0.2, 0, 0, 1);
|
|
49
|
+
// Motion comes from the morph, not the slide/scale.
|
|
50
|
+
--offset: 0px;
|
|
51
|
+
--scale: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--scale {
|
|
55
|
+
--offset: var(--spacer);
|
|
56
|
+
--scale: 0.88;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--scale-spring {
|
|
60
|
+
--offset: var(--spacer);
|
|
61
|
+
--scale: 0.88;
|
|
62
|
+
--transition-duration: 0.24s;
|
|
63
|
+
--transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--spring {
|
|
67
|
+
--offset: calc(var(--spacer) * 3);
|
|
68
|
+
--scale: 0.96;
|
|
69
|
+
--transition-duration: 0.24s;
|
|
70
|
+
--transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Options cascade in one after another (select and command menus).
|
|
74
|
+
&--stagger {
|
|
75
|
+
--offset: 4px;
|
|
76
|
+
--scale: 0.98;
|
|
77
|
+
--stagger-delay: 0.025s;
|
|
78
|
+
--stagger-offset: 6px;
|
|
79
|
+
--transition-duration: 0.15s;
|
|
80
|
+
--transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// The Radix / shadcn / Headless UI dropdown and select default: fade, 95% scale and an 8px slide
|
|
84
|
+
// from the trigger side, quick in and quicker out.
|
|
85
|
+
&--zoom {
|
|
86
|
+
--offset: 8px;
|
|
87
|
+
--scale: 0.95;
|
|
88
|
+
--transition-duration: 0.15s;
|
|
89
|
+
--transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
90
|
+
}
|
|
12
91
|
}
|
|
13
92
|
|
|
14
93
|
&-arrow {
|
|
@@ -24,3 +103,29 @@
|
|
|
24
103
|
--padding-vertical: var(--size-300);
|
|
25
104
|
}
|
|
26
105
|
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
.tooltip-group-content {
|
|
109
|
+
--background: var(--color-black-400);
|
|
110
|
+
--border-radius: var(--border-radius-400);
|
|
111
|
+
--box-shadow: var(--box-shadow-400);
|
|
112
|
+
--color: var(--color-white-400);
|
|
113
|
+
--font-size: var(--font-size-300);
|
|
114
|
+
--font-weight: var(--font-weight-400);
|
|
115
|
+
--group-blur: 7px;
|
|
116
|
+
--group-close-duration: 0.128s;
|
|
117
|
+
--group-delay: 0s;
|
|
118
|
+
--group-glide-duration: 0.4s;
|
|
119
|
+
--group-glide-timing-function: cubic-bezier(0.22, 1.12, 0.36, 1);
|
|
120
|
+
--group-open-duration: 0.16s;
|
|
121
|
+
--group-rise: 4px;
|
|
122
|
+
--group-scale: 0.94;
|
|
123
|
+
--group-swap-blur: 3px;
|
|
124
|
+
--group-swap-duration: 0.14s;
|
|
125
|
+
--group-swap-shift: 10px;
|
|
126
|
+
--group-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
127
|
+
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
128
|
+
--padding-horizontal: var(--size-300);
|
|
129
|
+
--padding-vertical: var(--size-300);
|
|
130
|
+
--spacer: var(--size-300);
|
|
131
|
+
}
|