@thalavaisankar/atoms 0.0.0-stage → 0.1.0
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/LICENSE +24 -0
- package/README.md +142 -2
- package/THIRD_PARTY_NOTICES.md +246 -0
- package/dist/blocks/index.d.mts +2 -0
- package/dist/blocks/index.mjs +1 -0
- package/dist/blocks/index.mjs.map +1 -0
- package/dist/components/ui/accordion/accordion.mjs +194 -0
- package/dist/components/ui/accordion/accordion.mjs.map +1 -0
- package/dist/components/ui/accordion/index.mjs +15 -0
- package/dist/components/ui/accordion/index.mjs.map +1 -0
- package/dist/components/ui/activity-feed/activity-feed.mjs +287 -0
- package/dist/components/ui/activity-feed/activity-feed.mjs.map +1 -0
- package/dist/components/ui/activity-feed/index.mjs +39 -0
- package/dist/components/ui/activity-feed/index.mjs.map +1 -0
- package/dist/components/ui/alert/alert.mjs +128 -0
- package/dist/components/ui/alert/alert.mjs.map +1 -0
- package/dist/components/ui/alert/index.mjs +17 -0
- package/dist/components/ui/alert/index.mjs.map +1 -0
- package/dist/components/ui/animated-label/animated-label.mjs +89 -0
- package/dist/components/ui/animated-label/animated-label.mjs.map +1 -0
- package/dist/components/ui/animated-label/index.mjs +9 -0
- package/dist/components/ui/animated-label/index.mjs.map +1 -0
- package/dist/components/ui/animated-number/animated-number.mjs +101 -0
- package/dist/components/ui/animated-number/animated-number.mjs.map +1 -0
- package/dist/components/ui/animated-number/index.mjs +5 -0
- package/dist/components/ui/animated-number/index.mjs.map +1 -0
- package/dist/components/ui/avatar/avatar.mjs +130 -0
- package/dist/components/ui/avatar/avatar.mjs.map +1 -0
- package/dist/components/ui/avatar/index.mjs +17 -0
- package/dist/components/ui/avatar/index.mjs.map +1 -0
- package/dist/components/ui/avatar-group/avatar-group.mjs +49 -0
- package/dist/components/ui/avatar-group/avatar-group.mjs.map +1 -0
- package/dist/components/ui/avatar-group/index.mjs +5 -0
- package/dist/components/ui/avatar-group/index.mjs.map +1 -0
- package/dist/components/ui/badge/badge-motion.mjs +108 -0
- package/dist/components/ui/badge/badge-motion.mjs.map +1 -0
- package/dist/components/ui/badge/badge.mjs +314 -0
- package/dist/components/ui/badge/badge.mjs.map +1 -0
- package/dist/components/ui/badge/index.mjs +27 -0
- package/dist/components/ui/badge/index.mjs.map +1 -0
- package/dist/components/ui/badge/readable-ink.mjs +36 -0
- package/dist/components/ui/badge/readable-ink.mjs.map +1 -0
- package/dist/components/ui/badge-group/badge-group.mjs +132 -0
- package/dist/components/ui/badge-group/badge-group.mjs.map +1 -0
- package/dist/components/ui/badge-group/index.mjs +5 -0
- package/dist/components/ui/badge-group/index.mjs.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.mjs +108 -0
- package/dist/components/ui/breadcrumb/breadcrumb.mjs.map +1 -0
- package/dist/components/ui/breadcrumb/index.mjs +19 -0
- package/dist/components/ui/breadcrumb/index.mjs.map +1 -0
- package/dist/components/ui/button/button-variants.mjs +80 -0
- package/dist/components/ui/button/button-variants.mjs.map +1 -0
- package/dist/components/ui/button/button.mjs +74 -0
- package/dist/components/ui/button/button.mjs.map +1 -0
- package/dist/components/ui/button/index.mjs +17 -0
- package/dist/components/ui/button/index.mjs.map +1 -0
- package/dist/components/ui/button/social-button.mjs +45 -0
- package/dist/components/ui/button/social-button.mjs.map +1 -0
- package/dist/components/ui/button/social-logos.mjs +179 -0
- package/dist/components/ui/button/social-logos.mjs.map +1 -0
- package/dist/components/ui/button/split-button.mjs +72 -0
- package/dist/components/ui/button/split-button.mjs.map +1 -0
- package/dist/components/ui/button-group/button-group.mjs +58 -0
- package/dist/components/ui/button-group/button-group.mjs.map +1 -0
- package/dist/components/ui/button-group/index.mjs +11 -0
- package/dist/components/ui/button-group/index.mjs.map +1 -0
- package/dist/components/ui/card/card.mjs +131 -0
- package/dist/components/ui/card/card.mjs.map +1 -0
- package/dist/components/ui/card/index.mjs +23 -0
- package/dist/components/ui/card/index.mjs.map +1 -0
- package/dist/components/ui/chart/bar-list.mjs +87 -0
- package/dist/components/ui/chart/bar-list.mjs.map +1 -0
- package/dist/components/ui/chart/chart-colors.mjs +68 -0
- package/dist/components/ui/chart/chart-colors.mjs.map +1 -0
- package/dist/components/ui/chart/chart-geometry.mjs +152 -0
- package/dist/components/ui/chart/chart-geometry.mjs.map +1 -0
- package/dist/components/ui/chart/chart-specialized.mjs +194 -0
- package/dist/components/ui/chart/chart-specialized.mjs.map +1 -0
- package/dist/components/ui/chart/chart.mjs +648 -0
- package/dist/components/ui/chart/chart.mjs.map +1 -0
- package/dist/components/ui/chart/index.mjs +88 -0
- package/dist/components/ui/chart/index.mjs.map +1 -0
- package/dist/components/ui/chart/radial-meter.mjs +142 -0
- package/dist/components/ui/chart/radial-meter.mjs.map +1 -0
- package/dist/components/ui/chart/types.mjs +1 -0
- package/dist/components/ui/chart/types.mjs.map +1 -0
- package/dist/components/ui/checkbox/checkbox.mjs +183 -0
- package/dist/components/ui/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/ui/checkbox/index.mjs +11 -0
- package/dist/components/ui/checkbox/index.mjs.map +1 -0
- package/dist/components/ui/checklist/checklist.mjs +353 -0
- package/dist/components/ui/checklist/checklist.mjs.map +1 -0
- package/dist/components/ui/checklist/index.mjs +33 -0
- package/dist/components/ui/checklist/index.mjs.map +1 -0
- package/dist/components/ui/chip/chip.mjs +202 -0
- package/dist/components/ui/chip/chip.mjs.map +1 -0
- package/dist/components/ui/chip/index.mjs +13 -0
- package/dist/components/ui/chip/index.mjs.map +1 -0
- package/dist/components/ui/chip-group/chip-group.mjs +204 -0
- package/dist/components/ui/chip-group/chip-group.mjs.map +1 -0
- package/dist/components/ui/chip-group/index.mjs +11 -0
- package/dist/components/ui/chip-group/index.mjs.map +1 -0
- package/dist/components/ui/code-snippet/code-highlighter.mjs +16 -0
- package/dist/components/ui/code-snippet/code-highlighter.mjs.map +1 -0
- package/dist/components/ui/code-snippet/code-snippet.mjs +437 -0
- package/dist/components/ui/code-snippet/code-snippet.mjs.map +1 -0
- package/dist/components/ui/code-snippet/index.mjs +17 -0
- package/dist/components/ui/code-snippet/index.mjs.map +1 -0
- package/dist/components/ui/code-snippet/labels.mjs +16 -0
- package/dist/components/ui/code-snippet/labels.mjs.map +1 -0
- package/dist/components/ui/code-snippet/tokenize.mjs +715 -0
- package/dist/components/ui/code-snippet/tokenize.mjs.map +1 -0
- package/dist/components/ui/code-snippet/types.mjs +1 -0
- package/dist/components/ui/code-snippet/types.mjs.map +1 -0
- package/dist/components/ui/collapsible/collapsible.mjs +85 -0
- package/dist/components/ui/collapsible/collapsible.mjs.map +1 -0
- package/dist/components/ui/collapsible/index.mjs +15 -0
- package/dist/components/ui/collapsible/index.mjs.map +1 -0
- package/dist/components/ui/color-picker/color-picker.mjs +852 -0
- package/dist/components/ui/color-picker/color-picker.mjs.map +1 -0
- package/dist/components/ui/color-picker/index.mjs +47 -0
- package/dist/components/ui/color-picker/index.mjs.map +1 -0
- package/dist/components/ui/combobox/combobox.mjs +745 -0
- package/dist/components/ui/combobox/combobox.mjs.map +1 -0
- package/dist/components/ui/combobox/index.mjs +27 -0
- package/dist/components/ui/combobox/index.mjs.map +1 -0
- package/dist/components/ui/command/command.mjs +439 -0
- package/dist/components/ui/command/command.mjs.map +1 -0
- package/dist/components/ui/command/index.mjs +31 -0
- package/dist/components/ui/command/index.mjs.map +1 -0
- package/dist/components/ui/compare-slider/compare-slider.mjs +335 -0
- package/dist/components/ui/compare-slider/compare-slider.mjs.map +1 -0
- package/dist/components/ui/compare-slider/index.mjs +17 -0
- package/dist/components/ui/compare-slider/index.mjs.map +1 -0
- package/dist/components/ui/context-menu/context-menu.mjs +184 -0
- package/dist/components/ui/context-menu/context-menu.mjs.map +1 -0
- package/dist/components/ui/context-menu/index.mjs +37 -0
- package/dist/components/ui/context-menu/index.mjs.map +1 -0
- package/dist/components/ui/data-table/active-filters.mjs +69 -0
- package/dist/components/ui/data-table/active-filters.mjs.map +1 -0
- package/dist/components/ui/data-table/body-row.mjs +118 -0
- package/dist/components/ui/data-table/body-row.mjs.map +1 -0
- package/dist/components/ui/data-table/cards.mjs +76 -0
- package/dist/components/ui/data-table/cards.mjs.map +1 -0
- package/dist/components/ui/data-table/data-table.mjs +680 -0
- package/dist/components/ui/data-table/data-table.mjs.map +1 -0
- package/dist/components/ui/data-table/empty.mjs +26 -0
- package/dist/components/ui/data-table/empty.mjs.map +1 -0
- package/dist/components/ui/data-table/expand.mjs +70 -0
- package/dist/components/ui/data-table/expand.mjs.map +1 -0
- package/dist/components/ui/data-table/faceted-filter.mjs +112 -0
- package/dist/components/ui/data-table/faceted-filter.mjs.map +1 -0
- package/dist/components/ui/data-table/features.mjs +96 -0
- package/dist/components/ui/data-table/features.mjs.map +1 -0
- package/dist/components/ui/data-table/grip.mjs +37 -0
- package/dist/components/ui/data-table/grip.mjs.map +1 -0
- package/dist/components/ui/data-table/header-cell.mjs +85 -0
- package/dist/components/ui/data-table/header-cell.mjs.map +1 -0
- package/dist/components/ui/data-table/index.mjs +55 -0
- package/dist/components/ui/data-table/index.mjs.map +1 -0
- package/dist/components/ui/data-table/labels.mjs +55 -0
- package/dist/components/ui/data-table/labels.mjs.map +1 -0
- package/dist/components/ui/data-table/load-more.mjs +56 -0
- package/dist/components/ui/data-table/load-more.mjs.map +1 -0
- package/dist/components/ui/data-table/move-item.mjs +11 -0
- package/dist/components/ui/data-table/move-item.mjs.map +1 -0
- package/dist/components/ui/data-table/persist.mjs +65 -0
- package/dist/components/ui/data-table/persist.mjs.map +1 -0
- package/dist/components/ui/data-table/selection-bar.mjs +51 -0
- package/dist/components/ui/data-table/selection-bar.mjs.map +1 -0
- package/dist/components/ui/data-table/tabs.mjs +48 -0
- package/dist/components/ui/data-table/tabs.mjs.map +1 -0
- package/dist/components/ui/data-table/toolbar.mjs +92 -0
- package/dist/components/ui/data-table/toolbar.mjs.map +1 -0
- package/dist/components/ui/data-table/use-reorder.mjs +239 -0
- package/dist/components/ui/data-table/use-reorder.mjs.map +1 -0
- package/dist/components/ui/data-table/use-reveal.mjs +24 -0
- package/dist/components/ui/data-table/use-reveal.mjs.map +1 -0
- package/dist/components/ui/data-table/use-table-state.mjs +38 -0
- package/dist/components/ui/data-table/use-table-state.mjs.map +1 -0
- package/dist/components/ui/data-table/view-options.mjs +66 -0
- package/dist/components/ui/data-table/view-options.mjs.map +1 -0
- package/dist/components/ui/date-picker/calendar.mjs +466 -0
- package/dist/components/ui/date-picker/calendar.mjs.map +1 -0
- package/dist/components/ui/date-picker/date-picker.mjs +366 -0
- package/dist/components/ui/date-picker/date-picker.mjs.map +1 -0
- package/dist/components/ui/date-picker/index.mjs +17 -0
- package/dist/components/ui/date-picker/index.mjs.map +1 -0
- package/dist/components/ui/date-picker/presets.mjs +49 -0
- package/dist/components/ui/date-picker/presets.mjs.map +1 -0
- package/dist/components/ui/description-list/description-list.mjs +40 -0
- package/dist/components/ui/description-list/description-list.mjs.map +1 -0
- package/dist/components/ui/description-list/index.mjs +15 -0
- package/dist/components/ui/description-list/index.mjs.map +1 -0
- package/dist/components/ui/dialog/dialog-stepper.mjs +23 -0
- package/dist/components/ui/dialog/dialog-stepper.mjs.map +1 -0
- package/dist/components/ui/dialog/dialog.mjs +343 -0
- package/dist/components/ui/dialog/dialog.mjs.map +1 -0
- package/dist/components/ui/dialog/focus-return.mjs +21 -0
- package/dist/components/ui/dialog/focus-return.mjs.map +1 -0
- package/dist/components/ui/dialog/index.mjs +33 -0
- package/dist/components/ui/dialog/index.mjs.map +1 -0
- package/dist/components/ui/divider/divider.mjs +130 -0
- package/dist/components/ui/divider/divider.mjs.map +1 -0
- package/dist/components/ui/divider/index.mjs +6 -0
- package/dist/components/ui/divider/index.mjs.map +1 -0
- package/dist/components/ui/dock/dock.mjs +444 -0
- package/dist/components/ui/dock/dock.mjs.map +1 -0
- package/dist/components/ui/dock/index.mjs +19 -0
- package/dist/components/ui/dock/index.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-actions.mjs +118 -0
- package/dist/components/ui/document-editor/block-actions.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-commands.mjs +182 -0
- package/dist/components/ui/document-editor/block-commands.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-handle.mjs +387 -0
- package/dist/components/ui/document-editor/block-handle.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-morph.mjs +95 -0
- package/dist/components/ui/document-editor/block-morph.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-selection.mjs +81 -0
- package/dist/components/ui/document-editor/block-selection.mjs.map +1 -0
- package/dist/components/ui/document-editor/blocks.mjs +30 -0
- package/dist/components/ui/document-editor/blocks.mjs.map +1 -0
- package/dist/components/ui/document-editor/bubble-menu.mjs +120 -0
- package/dist/components/ui/document-editor/bubble-menu.mjs.map +1 -0
- package/dist/components/ui/document-editor/code-block.mjs +89 -0
- package/dist/components/ui/document-editor/code-block.mjs.map +1 -0
- package/dist/components/ui/document-editor/collaboration-types.mjs +9 -0
- package/dist/components/ui/document-editor/collaboration-types.mjs.map +1 -0
- package/dist/components/ui/document-editor/collaboration.mjs +198 -0
- package/dist/components/ui/document-editor/collaboration.mjs.map +1 -0
- package/dist/components/ui/document-editor/columns.mjs +52 -0
- package/dist/components/ui/document-editor/columns.mjs.map +1 -0
- package/dist/components/ui/document-editor/contents.mjs +60 -0
- package/dist/components/ui/document-editor/contents.mjs.map +1 -0
- package/dist/components/ui/document-editor/date-chip.mjs +115 -0
- package/dist/components/ui/document-editor/date-chip.mjs.map +1 -0
- package/dist/components/ui/document-editor/date-words.mjs +101 -0
- package/dist/components/ui/document-editor/date-words.mjs.map +1 -0
- package/dist/components/ui/document-editor/doc-labels.mjs +19 -0
- package/dist/components/ui/document-editor/doc-labels.mjs.map +1 -0
- package/dist/components/ui/document-editor/document-editor.mjs +496 -0
- package/dist/components/ui/document-editor/document-editor.mjs.map +1 -0
- package/dist/components/ui/document-editor/emoji-suggest.mjs +81 -0
- package/dist/components/ui/document-editor/emoji-suggest.mjs.map +1 -0
- package/dist/components/ui/document-editor/focus-mode.mjs +32 -0
- package/dist/components/ui/document-editor/focus-mode.mjs.map +1 -0
- package/dist/components/ui/document-editor/geometry.mjs +35 -0
- package/dist/components/ui/document-editor/geometry.mjs.map +1 -0
- package/dist/components/ui/document-editor/ghost-text.mjs +154 -0
- package/dist/components/ui/document-editor/ghost-text.mjs.map +1 -0
- package/dist/components/ui/document-editor/gliding-caret.mjs +118 -0
- package/dist/components/ui/document-editor/gliding-caret.mjs.map +1 -0
- package/dist/components/ui/document-editor/headings.mjs +64 -0
- package/dist/components/ui/document-editor/headings.mjs.map +1 -0
- package/dist/components/ui/document-editor/image.mjs +318 -0
- package/dist/components/ui/document-editor/image.mjs.map +1 -0
- package/dist/components/ui/document-editor/index.mjs +131 -0
- package/dist/components/ui/document-editor/index.mjs.map +1 -0
- package/dist/components/ui/document-editor/labels.mjs +96 -0
- package/dist/components/ui/document-editor/labels.mjs.map +1 -0
- package/dist/components/ui/document-editor/link-card.mjs +138 -0
- package/dist/components/ui/document-editor/link-card.mjs.map +1 -0
- package/dist/components/ui/document-editor/mentions.mjs +105 -0
- package/dist/components/ui/document-editor/mentions.mjs.map +1 -0
- package/dist/components/ui/document-editor/outline.mjs +138 -0
- package/dist/components/ui/document-editor/outline.mjs.map +1 -0
- package/dist/components/ui/document-editor/section-fold.mjs +124 -0
- package/dist/components/ui/document-editor/section-fold.mjs.map +1 -0
- package/dist/components/ui/document-editor/slash-command.mjs +210 -0
- package/dist/components/ui/document-editor/slash-command.mjs.map +1 -0
- package/dist/components/ui/document-editor/suggest-list.mjs +187 -0
- package/dist/components/ui/document-editor/suggest-list.mjs.map +1 -0
- package/dist/components/ui/document-editor/table.mjs +242 -0
- package/dist/components/ui/document-editor/table.mjs.map +1 -0
- package/dist/components/ui/document-editor/templates.mjs +66 -0
- package/dist/components/ui/document-editor/templates.mjs.map +1 -0
- package/dist/components/ui/document-editor/toggle.mjs +176 -0
- package/dist/components/ui/document-editor/toggle.mjs.map +1 -0
- package/dist/components/ui/document-editor/typography-rules.mjs +8 -0
- package/dist/components/ui/document-editor/typography-rules.mjs.map +1 -0
- package/dist/components/ui/document-editor/use-editor-value.mjs +34 -0
- package/dist/components/ui/document-editor/use-editor-value.mjs.map +1 -0
- package/dist/components/ui/drawer/drawer-nav.mjs +153 -0
- package/dist/components/ui/drawer/drawer-nav.mjs.map +1 -0
- package/dist/components/ui/drawer/drawer.mjs +334 -0
- package/dist/components/ui/drawer/drawer.mjs.map +1 -0
- package/dist/components/ui/drawer/index.mjs +37 -0
- package/dist/components/ui/drawer/index.mjs.map +1 -0
- package/dist/components/ui/drawer/use-swipe-to-close.mjs +77 -0
- package/dist/components/ui/drawer/use-swipe-to-close.mjs.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.mjs +567 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.mjs.map +1 -0
- package/dist/components/ui/dropdown-menu/index.mjs +43 -0
- package/dist/components/ui/dropdown-menu/index.mjs.map +1 -0
- package/dist/components/ui/editable-text/editable-text.mjs +148 -0
- package/dist/components/ui/editable-text/editable-text.mjs.map +1 -0
- package/dist/components/ui/editable-text/index.mjs +6 -0
- package/dist/components/ui/editable-text/index.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/emoji-data.mjs +469 -0
- package/dist/components/ui/emoji-picker/emoji-data.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/emoji-picker.mjs +464 -0
- package/dist/components/ui/emoji-picker/emoji-picker.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/index.mjs +19 -0
- package/dist/components/ui/emoji-picker/index.mjs.map +1 -0
- package/dist/components/ui/empty-state/empty-state.mjs +110 -0
- package/dist/components/ui/empty-state/empty-state.mjs.map +1 -0
- package/dist/components/ui/empty-state/index.mjs +17 -0
- package/dist/components/ui/empty-state/index.mjs.map +1 -0
- package/dist/components/ui/event-calendar/calendar-math.mjs +256 -0
- package/dist/components/ui/event-calendar/calendar-math.mjs.map +1 -0
- package/dist/components/ui/event-calendar/context.mjs +51 -0
- package/dist/components/ui/event-calendar/context.mjs.map +1 -0
- package/dist/components/ui/event-calendar/editor.mjs +292 -0
- package/dist/components/ui/event-calendar/editor.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-block.mjs +55 -0
- package/dist/components/ui/event-calendar/event-block.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-calendar.mjs +438 -0
- package/dist/components/ui/event-calendar/event-calendar.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-keys.mjs +41 -0
- package/dist/components/ui/event-calendar/event-keys.mjs.map +1 -0
- package/dist/components/ui/event-calendar/index.mjs +37 -0
- package/dist/components/ui/event-calendar/index.mjs.map +1 -0
- package/dist/components/ui/event-calendar/month-grid.mjs +207 -0
- package/dist/components/ui/event-calendar/month-grid.mjs.map +1 -0
- package/dist/components/ui/event-calendar/narrow.mjs +193 -0
- package/dist/components/ui/event-calendar/narrow.mjs.map +1 -0
- package/dist/components/ui/event-calendar/time-grid.mjs +534 -0
- package/dist/components/ui/event-calendar/time-grid.mjs.map +1 -0
- package/dist/components/ui/expandable-search/expandable-search.mjs +174 -0
- package/dist/components/ui/expandable-search/expandable-search.mjs.map +1 -0
- package/dist/components/ui/expandable-search/index.mjs +6 -0
- package/dist/components/ui/expandable-search/index.mjs.map +1 -0
- package/dist/components/ui/field/field.mjs +444 -0
- package/dist/components/ui/field/field.mjs.map +1 -0
- package/dist/components/ui/field/index.mjs +21 -0
- package/dist/components/ui/field/index.mjs.map +1 -0
- package/dist/components/ui/file-card/file-card.mjs +198 -0
- package/dist/components/ui/file-card/file-card.mjs.map +1 -0
- package/dist/components/ui/file-card/file-icon.mjs +66 -0
- package/dist/components/ui/file-card/file-icon.mjs.map +1 -0
- package/dist/components/ui/file-card/file-types.mjs +70 -0
- package/dist/components/ui/file-card/file-types.mjs.map +1 -0
- package/dist/components/ui/file-card/index.mjs +32 -0
- package/dist/components/ui/file-card/index.mjs.map +1 -0
- package/dist/components/ui/file-preview/context.mjs +77 -0
- package/dist/components/ui/file-preview/context.mjs.map +1 -0
- package/dist/components/ui/file-preview/file-preview.mjs +865 -0
- package/dist/components/ui/file-preview/file-preview.mjs.map +1 -0
- package/dist/components/ui/file-preview/index.mjs +56 -0
- package/dist/components/ui/file-preview/index.mjs.map +1 -0
- package/dist/components/ui/file-preview/pdf.mjs +250 -0
- package/dist/components/ui/file-preview/pdf.mjs.map +1 -0
- package/dist/components/ui/file-preview/renderers.mjs +257 -0
- package/dist/components/ui/file-preview/renderers.mjs.map +1 -0
- package/dist/components/ui/file-upload/file-upload.mjs +633 -0
- package/dist/components/ui/file-upload/file-upload.mjs.map +1 -0
- package/dist/components/ui/file-upload/index.mjs +42 -0
- package/dist/components/ui/file-upload/index.mjs.map +1 -0
- package/dist/components/ui/file-upload/validate.mjs +111 -0
- package/dist/components/ui/file-upload/validate.mjs.map +1 -0
- package/dist/components/ui/flag/flag.mjs +39 -0
- package/dist/components/ui/flag/flag.mjs.map +1 -0
- package/dist/components/ui/flag/index.mjs +7 -0
- package/dist/components/ui/flag/index.mjs.map +1 -0
- package/dist/components/ui/floating-window/floating-window.mjs +255 -0
- package/dist/components/ui/floating-window/floating-window.mjs.map +1 -0
- package/dist/components/ui/floating-window/index.mjs +11 -0
- package/dist/components/ui/floating-window/index.mjs.map +1 -0
- package/dist/components/ui/form/form-section.mjs +87 -0
- package/dist/components/ui/form/form-section.mjs.map +1 -0
- package/dist/components/ui/form/form.mjs +205 -0
- package/dist/components/ui/form/form.mjs.map +1 -0
- package/dist/components/ui/form/index.mjs +29 -0
- package/dist/components/ui/form/index.mjs.map +1 -0
- package/dist/components/ui/globe/globe-data.mjs +9 -0
- package/dist/components/ui/globe/globe-data.mjs.map +1 -0
- package/dist/components/ui/globe/globe-math.mjs +269 -0
- package/dist/components/ui/globe/globe-math.mjs.map +1 -0
- package/dist/components/ui/globe/globe.mjs +719 -0
- package/dist/components/ui/globe/globe.mjs.map +1 -0
- package/dist/components/ui/globe/index.mjs +13 -0
- package/dist/components/ui/globe/index.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-children.mjs +13 -0
- package/dist/components/ui/highlight-match/highlight-children.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-match-variants.mjs +17 -0
- package/dist/components/ui/highlight-match/highlight-match-variants.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-match.mjs +37 -0
- package/dist/components/ui/highlight-match/highlight-match.mjs.map +1 -0
- package/dist/components/ui/highlight-match/index.mjs +15 -0
- package/dist/components/ui/highlight-match/index.mjs.map +1 -0
- package/dist/components/ui/highlight-match/match-ranges.mjs +50 -0
- package/dist/components/ui/highlight-match/match-ranges.mjs.map +1 -0
- package/dist/components/ui/histogram-slider/histogram-slider.mjs +83 -0
- package/dist/components/ui/histogram-slider/histogram-slider.mjs.map +1 -0
- package/dist/components/ui/histogram-slider/index.mjs +6 -0
- package/dist/components/ui/histogram-slider/index.mjs.map +1 -0
- package/dist/components/ui/hold-button/hold-button.mjs +258 -0
- package/dist/components/ui/hold-button/hold-button.mjs.map +1 -0
- package/dist/components/ui/hold-button/index.mjs +6 -0
- package/dist/components/ui/hold-button/index.mjs.map +1 -0
- package/dist/components/ui/hover-card/hover-card.mjs +111 -0
- package/dist/components/ui/hover-card/hover-card.mjs.map +1 -0
- package/dist/components/ui/hover-card/index.mjs +21 -0
- package/dist/components/ui/hover-card/index.mjs.map +1 -0
- package/dist/components/ui/ink-tray/index.mjs +29 -0
- package/dist/components/ui/ink-tray/index.mjs.map +1 -0
- package/dist/components/ui/ink-tray/ink-tray-art.mjs +68 -0
- package/dist/components/ui/ink-tray/ink-tray-art.mjs.map +1 -0
- package/dist/components/ui/ink-tray/ink-tray.mjs +350 -0
- package/dist/components/ui/ink-tray/ink-tray.mjs.map +1 -0
- package/dist/components/ui/input/index.mjs +41 -0
- package/dist/components/ui/input/index.mjs.map +1 -0
- package/dist/components/ui/input/input.mjs +268 -0
- package/dist/components/ui/input/input.mjs.map +1 -0
- package/dist/components/ui/input/number-input.mjs +272 -0
- package/dist/components/ui/input/number-input.mjs.map +1 -0
- package/dist/components/ui/input/password-input.mjs +49 -0
- package/dist/components/ui/input/password-input.mjs.map +1 -0
- package/dist/components/ui/input/phone-input-countries.mjs +216 -0
- package/dist/components/ui/input/phone-input-countries.mjs.map +1 -0
- package/dist/components/ui/input/phone-input.mjs +326 -0
- package/dist/components/ui/input/phone-input.mjs.map +1 -0
- package/dist/components/ui/input/use-controllable-state.mjs +24 -0
- package/dist/components/ui/input/use-controllable-state.mjs.map +1 -0
- package/dist/components/ui/input/use-hold-repeat.mjs +35 -0
- package/dist/components/ui/input/use-hold-repeat.mjs.map +1 -0
- package/dist/components/ui/input-group/index.mjs +11 -0
- package/dist/components/ui/input-group/index.mjs.map +1 -0
- package/dist/components/ui/input-group/input-group.mjs +78 -0
- package/dist/components/ui/input-group/input-group.mjs.map +1 -0
- package/dist/components/ui/island/index.mjs +23 -0
- package/dist/components/ui/island/index.mjs.map +1 -0
- package/dist/components/ui/island/island.mjs +328 -0
- package/dist/components/ui/island/island.mjs.map +1 -0
- package/dist/components/ui/kbd/index.mjs +6 -0
- package/dist/components/ui/kbd/index.mjs.map +1 -0
- package/dist/components/ui/kbd/kbd.mjs +73 -0
- package/dist/components/ui/kbd/kbd.mjs.map +1 -0
- package/dist/components/ui/keypad/index.mjs +23 -0
- package/dist/components/ui/keypad/index.mjs.map +1 -0
- package/dist/components/ui/keypad/keypad.mjs +345 -0
- package/dist/components/ui/keypad/keypad.mjs.map +1 -0
- package/dist/components/ui/label/index.mjs +7 -0
- package/dist/components/ui/label/index.mjs.map +1 -0
- package/dist/components/ui/label/label.mjs +117 -0
- package/dist/components/ui/label/label.mjs.map +1 -0
- package/dist/components/ui/lightbox/index.mjs +47 -0
- package/dist/components/ui/lightbox/index.mjs.map +1 -0
- package/dist/components/ui/lightbox/labels.mjs +23 -0
- package/dist/components/ui/lightbox/labels.mjs.map +1 -0
- package/dist/components/ui/lightbox/lightbox.mjs +1359 -0
- package/dist/components/ui/lightbox/lightbox.mjs.map +1 -0
- package/dist/components/ui/link/index.mjs +6 -0
- package/dist/components/ui/link/index.mjs.map +1 -0
- package/dist/components/ui/link/link.mjs +64 -0
- package/dist/components/ui/link/link.mjs.map +1 -0
- package/dist/components/ui/list/index.mjs +35 -0
- package/dist/components/ui/list/index.mjs.map +1 -0
- package/dist/components/ui/list/list.mjs +505 -0
- package/dist/components/ui/list/list.mjs.map +1 -0
- package/dist/components/ui/load-more/index.mjs +23 -0
- package/dist/components/ui/load-more/index.mjs.map +1 -0
- package/dist/components/ui/load-more/load-more.mjs +409 -0
- package/dist/components/ui/load-more/load-more.mjs.map +1 -0
- package/dist/components/ui/map/index.mjs +27 -0
- package/dist/components/ui/map/index.mjs.map +1 -0
- package/dist/components/ui/map/map-style.mjs +169 -0
- package/dist/components/ui/map/map-style.mjs.map +1 -0
- package/dist/components/ui/map/map.mjs +624 -0
- package/dist/components/ui/map/map.mjs.map +1 -0
- package/dist/components/ui/map-pin/index.mjs +6 -0
- package/dist/components/ui/map-pin/index.mjs.map +1 -0
- package/dist/components/ui/map-pin/map-pin.mjs +55 -0
- package/dist/components/ui/map-pin/map-pin.mjs.map +1 -0
- package/dist/components/ui/mention/index.mjs +29 -0
- package/dist/components/ui/mention/index.mjs.map +1 -0
- package/dist/components/ui/mention/mention.mjs +262 -0
- package/dist/components/ui/mention/mention.mjs.map +1 -0
- package/dist/components/ui/mention/split-mentions.mjs +24 -0
- package/dist/components/ui/mention/split-mentions.mjs.map +1 -0
- package/dist/components/ui/menubar/index.mjs +39 -0
- package/dist/components/ui/menubar/index.mjs.map +1 -0
- package/dist/components/ui/menubar/menubar.mjs +222 -0
- package/dist/components/ui/menubar/menubar.mjs.map +1 -0
- package/dist/components/ui/meter/index.mjs +21 -0
- package/dist/components/ui/meter/index.mjs.map +1 -0
- package/dist/components/ui/meter/meter.mjs +167 -0
- package/dist/components/ui/meter/meter.mjs.map +1 -0
- package/dist/components/ui/multi-select/index.mjs +25 -0
- package/dist/components/ui/multi-select/index.mjs.map +1 -0
- package/dist/components/ui/multi-select/multi-select.mjs +285 -0
- package/dist/components/ui/multi-select/multi-select.mjs.map +1 -0
- package/dist/components/ui/navigation-menu/index.mjs +41 -0
- package/dist/components/ui/navigation-menu/index.mjs.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.mjs +396 -0
- package/dist/components/ui/navigation-menu/navigation-menu.mjs.map +1 -0
- package/dist/components/ui/notebook-page/index.mjs +15 -0
- package/dist/components/ui/notebook-page/index.mjs.map +1 -0
- package/dist/components/ui/notebook-page/notebook-page.mjs +162 -0
- package/dist/components/ui/notebook-page/notebook-page.mjs.map +1 -0
- package/dist/components/ui/notification-inbox/index.mjs +47 -0
- package/dist/components/ui/notification-inbox/index.mjs.map +1 -0
- package/dist/components/ui/notification-inbox/notification-inbox.mjs +422 -0
- package/dist/components/ui/notification-inbox/notification-inbox.mjs.map +1 -0
- package/dist/components/ui/number-field/index.mjs +24 -0
- package/dist/components/ui/number-field/index.mjs.map +1 -0
- package/dist/components/ui/number-field/number-field.mjs +460 -0
- package/dist/components/ui/number-field/number-field.mjs.map +1 -0
- package/dist/components/ui/number-field/number-format.mjs +48 -0
- package/dist/components/ui/number-field/number-format.mjs.map +1 -0
- package/dist/components/ui/otp-input/index.mjs +9 -0
- package/dist/components/ui/otp-input/index.mjs.map +1 -0
- package/dist/components/ui/otp-input/otp-input.mjs +285 -0
- package/dist/components/ui/otp-input/otp-input.mjs.map +1 -0
- package/dist/components/ui/pager/index.mjs +7 -0
- package/dist/components/ui/pager/index.mjs.map +1 -0
- package/dist/components/ui/pager/pager.mjs +86 -0
- package/dist/components/ui/pager/pager.mjs.map +1 -0
- package/dist/components/ui/pagination/index.mjs +23 -0
- package/dist/components/ui/pagination/index.mjs.map +1 -0
- package/dist/components/ui/pagination/pagination.mjs +210 -0
- package/dist/components/ui/pagination/pagination.mjs.map +1 -0
- package/dist/components/ui/password-strength/index.mjs +21 -0
- package/dist/components/ui/password-strength/index.mjs.map +1 -0
- package/dist/components/ui/password-strength/password-rules.mjs +25 -0
- package/dist/components/ui/password-strength/password-rules.mjs.map +1 -0
- package/dist/components/ui/password-strength/password-strength.mjs +125 -0
- package/dist/components/ui/password-strength/password-strength.mjs.map +1 -0
- package/dist/components/ui/popover/index.mjs +31 -0
- package/dist/components/ui/popover/index.mjs.map +1 -0
- package/dist/components/ui/popover/popover.mjs +574 -0
- package/dist/components/ui/popover/popover.mjs.map +1 -0
- package/dist/components/ui/progress/index.mjs +15 -0
- package/dist/components/ui/progress/index.mjs.map +1 -0
- package/dist/components/ui/progress/progress.mjs +224 -0
- package/dist/components/ui/progress/progress.mjs.map +1 -0
- package/dist/components/ui/prose/index.mjs +6 -0
- package/dist/components/ui/prose/index.mjs.map +1 -0
- package/dist/components/ui/prose/prose.mjs +89 -0
- package/dist/components/ui/prose/prose.mjs.map +1 -0
- package/dist/components/ui/radio-group/index.mjs +15 -0
- package/dist/components/ui/radio-group/index.mjs.map +1 -0
- package/dist/components/ui/radio-group/radio-group.mjs +88 -0
- package/dist/components/ui/radio-group/radio-group.mjs.map +1 -0
- package/dist/components/ui/rating/index.mjs +6 -0
- package/dist/components/ui/rating/index.mjs.map +1 -0
- package/dist/components/ui/rating/rating.mjs +119 -0
- package/dist/components/ui/rating/rating.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/bubble-menu.mjs +120 -0
- package/dist/components/ui/rich-text-editor/bubble-menu.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/image-links.mjs +63 -0
- package/dist/components/ui/rich-text-editor/image-links.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/index.mjs +37 -0
- package/dist/components/ui/rich-text-editor/index.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/labels.mjs +27 -0
- package/dist/components/ui/rich-text-editor/labels.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.mjs +149 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/toolbar.mjs +325 -0
- package/dist/components/ui/rich-text-editor/toolbar.mjs.map +1 -0
- package/dist/components/ui/save-bar/index.mjs +13 -0
- package/dist/components/ui/save-bar/index.mjs.map +1 -0
- package/dist/components/ui/save-bar/save-bar.mjs +59 -0
- package/dist/components/ui/save-bar/save-bar.mjs.map +1 -0
- package/dist/components/ui/scroll-area/index.mjs +6 -0
- package/dist/components/ui/scroll-area/index.mjs.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.mjs +148 -0
- package/dist/components/ui/scroll-area/scroll-area.mjs.map +1 -0
- package/dist/components/ui/scroll-area/use-drag-scroll.mjs +134 -0
- package/dist/components/ui/scroll-area/use-drag-scroll.mjs.map +1 -0
- package/dist/components/ui/select/index.mjs +23 -0
- package/dist/components/ui/select/index.mjs.map +1 -0
- package/dist/components/ui/select/select.mjs +216 -0
- package/dist/components/ui/select/select.mjs.map +1 -0
- package/dist/components/ui/sheet/index.mjs +23 -0
- package/dist/components/ui/sheet/index.mjs.map +1 -0
- package/dist/components/ui/sheet/sheet.mjs +292 -0
- package/dist/components/ui/sheet/sheet.mjs.map +1 -0
- package/dist/components/ui/sidebar/index.mjs +122 -0
- package/dist/components/ui/sidebar/index.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-group.mjs +75 -0
- package/dist/components/ui/sidebar/sidebar-group.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-item.mjs +199 -0
- package/dist/components/ui/sidebar/sidebar-item.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-panels.mjs +182 -0
- package/dist/components/ui/sidebar/sidebar-panels.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-peek.mjs +324 -0
- package/dist/components/ui/sidebar/sidebar-peek.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-rich.mjs +65 -0
- package/dist/components/ui/sidebar/sidebar-rich.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-tree.mjs +224 -0
- package/dist/components/ui/sidebar/sidebar-tree.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar.mjs +205 -0
- package/dist/components/ui/sidebar/sidebar.mjs.map +1 -0
- package/dist/components/ui/sidebar/variants.mjs +396 -0
- package/dist/components/ui/sidebar/variants.mjs.map +1 -0
- package/dist/components/ui/signature/index.mjs +6 -0
- package/dist/components/ui/signature/index.mjs.map +1 -0
- package/dist/components/ui/signature/signature.mjs +145 -0
- package/dist/components/ui/signature/signature.mjs.map +1 -0
- package/dist/components/ui/signature-pad/index.mjs +19 -0
- package/dist/components/ui/signature-pad/index.mjs.map +1 -0
- package/dist/components/ui/signature-pad/signature-pad.mjs +210 -0
- package/dist/components/ui/signature-pad/signature-pad.mjs.map +1 -0
- package/dist/components/ui/signature-pad/strokes.mjs +68 -0
- package/dist/components/ui/signature-pad/strokes.mjs.map +1 -0
- package/dist/components/ui/skeleton/index.mjs +9 -0
- package/dist/components/ui/skeleton/index.mjs.map +1 -0
- package/dist/components/ui/skeleton/skeleton.mjs +58 -0
- package/dist/components/ui/skeleton/skeleton.mjs.map +1 -0
- package/dist/components/ui/slide/index.mjs +25 -0
- package/dist/components/ui/slide/index.mjs.map +1 -0
- package/dist/components/ui/slide/slide.mjs +159 -0
- package/dist/components/ui/slide/slide.mjs.map +1 -0
- package/dist/components/ui/slider/index.mjs +21 -0
- package/dist/components/ui/slider/index.mjs.map +1 -0
- package/dist/components/ui/slider/slider-input.mjs +449 -0
- package/dist/components/ui/slider/slider-input.mjs.map +1 -0
- package/dist/components/ui/slider/slider.mjs +235 -0
- package/dist/components/ui/slider/slider.mjs.map +1 -0
- package/dist/components/ui/slides/index.mjs +31 -0
- package/dist/components/ui/slides/index.mjs.map +1 -0
- package/dist/components/ui/slides/slides.mjs +890 -0
- package/dist/components/ui/slides/slides.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/index.mjs +17 -0
- package/dist/components/ui/smooth-anchors/index.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/smooth-anchors.mjs +75 -0
- package/dist/components/ui/smooth-anchors/smooth-anchors.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/smooth-scroll.mjs +87 -0
- package/dist/components/ui/smooth-anchors/smooth-scroll.mjs.map +1 -0
- package/dist/components/ui/spinner/index.mjs +6 -0
- package/dist/components/ui/spinner/index.mjs.map +1 -0
- package/dist/components/ui/spinner/spinner.mjs +49 -0
- package/dist/components/ui/spinner/spinner.mjs.map +1 -0
- package/dist/components/ui/stat/index.mjs +29 -0
- package/dist/components/ui/stat/index.mjs.map +1 -0
- package/dist/components/ui/stat/stat.mjs +226 -0
- package/dist/components/ui/stat/stat.mjs.map +1 -0
- package/dist/components/ui/status-bar/index.mjs +17 -0
- package/dist/components/ui/status-bar/index.mjs.map +1 -0
- package/dist/components/ui/status-bar/status-bar.mjs +96 -0
- package/dist/components/ui/status-bar/status-bar.mjs.map +1 -0
- package/dist/components/ui/stepper/index.mjs +25 -0
- package/dist/components/ui/stepper/index.mjs.map +1 -0
- package/dist/components/ui/stepper/stepper.mjs +235 -0
- package/dist/components/ui/stepper/stepper.mjs.map +1 -0
- package/dist/components/ui/steps/index.mjs +9 -0
- package/dist/components/ui/steps/index.mjs.map +1 -0
- package/dist/components/ui/steps/steps.mjs +70 -0
- package/dist/components/ui/steps/steps.mjs.map +1 -0
- package/dist/components/ui/swatch-grid/index.mjs +7 -0
- package/dist/components/ui/swatch-grid/index.mjs.map +1 -0
- package/dist/components/ui/swatch-grid/swatch-grid.mjs +110 -0
- package/dist/components/ui/swatch-grid/swatch-grid.mjs.map +1 -0
- package/dist/components/ui/switch/index.mjs +7 -0
- package/dist/components/ui/switch/index.mjs.map +1 -0
- package/dist/components/ui/switch/switch.mjs +79 -0
- package/dist/components/ui/switch/switch.mjs.map +1 -0
- package/dist/components/ui/tab-strip/index.mjs +13 -0
- package/dist/components/ui/tab-strip/index.mjs.map +1 -0
- package/dist/components/ui/tab-strip/tab-strip.mjs +244 -0
- package/dist/components/ui/tab-strip/tab-strip.mjs.map +1 -0
- package/dist/components/ui/table/index.mjs +27 -0
- package/dist/components/ui/table/index.mjs.map +1 -0
- package/dist/components/ui/table/table.mjs +290 -0
- package/dist/components/ui/table/table.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/index.mjs +20 -0
- package/dist/components/ui/table-of-contents/index.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/scroll-spy.mjs +60 -0
- package/dist/components/ui/table-of-contents/scroll-spy.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/table-of-contents.mjs +371 -0
- package/dist/components/ui/table-of-contents/table-of-contents.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/use-headings.mjs +40 -0
- package/dist/components/ui/table-of-contents/use-headings.mjs.map +1 -0
- package/dist/components/ui/tablet-frame/index.mjs +7 -0
- package/dist/components/ui/tablet-frame/index.mjs.map +1 -0
- package/dist/components/ui/tablet-frame/tablet-frame.mjs +48 -0
- package/dist/components/ui/tablet-frame/tablet-frame.mjs.map +1 -0
- package/dist/components/ui/tabs/index.mjs +25 -0
- package/dist/components/ui/tabs/index.mjs.map +1 -0
- package/dist/components/ui/tabs/tabs.mjs +382 -0
- package/dist/components/ui/tabs/tabs.mjs.map +1 -0
- package/dist/components/ui/tabs/use-tabs-indicator.mjs +90 -0
- package/dist/components/ui/tabs/use-tabs-indicator.mjs.map +1 -0
- package/dist/components/ui/tags-input/index.mjs +9 -0
- package/dist/components/ui/tags-input/index.mjs.map +1 -0
- package/dist/components/ui/tags-input/split.mjs +38 -0
- package/dist/components/ui/tags-input/split.mjs.map +1 -0
- package/dist/components/ui/tags-input/tags-input.mjs +328 -0
- package/dist/components/ui/tags-input/tags-input.mjs.map +1 -0
- package/dist/components/ui/terminal/index.mjs +41 -0
- package/dist/components/ui/terminal/index.mjs.map +1 -0
- package/dist/components/ui/terminal/terminal.mjs +287 -0
- package/dist/components/ui/terminal/terminal.mjs.map +1 -0
- package/dist/components/ui/textarea/index.mjs +21 -0
- package/dist/components/ui/textarea/index.mjs.map +1 -0
- package/dist/components/ui/textarea/textarea.mjs +244 -0
- package/dist/components/ui/textarea/textarea.mjs.map +1 -0
- package/dist/components/ui/toast/index.mjs +19 -0
- package/dist/components/ui/toast/index.mjs.map +1 -0
- package/dist/components/ui/toast/store.mjs +96 -0
- package/dist/components/ui/toast/store.mjs.map +1 -0
- package/dist/components/ui/toast/toast.mjs +395 -0
- package/dist/components/ui/toast/toast.mjs.map +1 -0
- package/dist/components/ui/toggle/index.mjs +13 -0
- package/dist/components/ui/toggle/index.mjs.map +1 -0
- package/dist/components/ui/toggle/toggle.mjs +123 -0
- package/dist/components/ui/toggle/toggle.mjs.map +1 -0
- package/dist/components/ui/toggle-group/index.mjs +11 -0
- package/dist/components/ui/toggle-group/index.mjs.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.mjs +243 -0
- package/dist/components/ui/toggle-group/toggle-group.mjs.map +1 -0
- package/dist/components/ui/toggletip/index.mjs +6 -0
- package/dist/components/ui/toggletip/index.mjs.map +1 -0
- package/dist/components/ui/toggletip/toggletip.mjs +95 -0
- package/dist/components/ui/toggletip/toggletip.mjs.map +1 -0
- package/dist/components/ui/toolbar/index.mjs +21 -0
- package/dist/components/ui/toolbar/index.mjs.map +1 -0
- package/dist/components/ui/toolbar/toolbar.mjs +130 -0
- package/dist/components/ui/toolbar/toolbar.mjs.map +1 -0
- package/dist/components/ui/tooltip/index.mjs +29 -0
- package/dist/components/ui/tooltip/index.mjs.map +1 -0
- package/dist/components/ui/tooltip/tooltip.mjs +640 -0
- package/dist/components/ui/tooltip/tooltip.mjs.map +1 -0
- package/dist/components/ui/tree/index.mjs +11 -0
- package/dist/components/ui/tree/index.mjs.map +1 -0
- package/dist/components/ui/tree/tree.mjs +450 -0
- package/dist/components/ui/tree/tree.mjs.map +1 -0
- package/dist/index.d.mts +19332 -0
- package/dist/index.mjs +155 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/color.mjs +78 -0
- package/dist/lib/color.mjs.map +1 -0
- package/dist/lib/create-context.mjs +31 -0
- package/dist/lib/create-context.mjs.map +1 -0
- package/dist/lib/date.mjs +116 -0
- package/dist/lib/date.mjs.map +1 -0
- package/dist/lib/density.mjs +79 -0
- package/dist/lib/density.mjs.map +1 -0
- package/dist/lib/field-context.mjs +13 -0
- package/dist/lib/field-context.mjs.map +1 -0
- package/dist/lib/filter.mjs +28 -0
- package/dist/lib/filter.mjs.map +1 -0
- package/dist/lib/gesture.mjs +38 -0
- package/dist/lib/gesture.mjs.map +1 -0
- package/dist/lib/hit-area.mjs +14 -0
- package/dist/lib/hit-area.mjs.map +1 -0
- package/dist/lib/labels.mjs +27 -0
- package/dist/lib/labels.mjs.map +1 -0
- package/dist/lib/morph-box.mjs +56 -0
- package/dist/lib/morph-box.mjs.map +1 -0
- package/dist/lib/motion.mjs +70 -0
- package/dist/lib/motion.mjs.map +1 -0
- package/dist/lib/pulse.mjs +69 -0
- package/dist/lib/pulse.mjs.map +1 -0
- package/dist/lib/roving-focus.mjs +74 -0
- package/dist/lib/roving-focus.mjs.map +1 -0
- package/dist/lib/tv.mjs +11 -0
- package/dist/lib/tv.mjs.map +1 -0
- package/dist/lib/utils.mjs +82 -0
- package/dist/lib/utils.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +133 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/gesture.ts"],"sourcesContent":["/*\n * Shared drag physics for panels a finger or pointer moves: the slop that keeps a tap a tap, a\n * release-velocity tracker over the last stretch of a drag, and the projection that turns a flick\n * into a resting place. Drawer's swipe-to-close and Sheet's detents both read from here.\n */\n\n/** Pixels of travel before a press becomes a drag, so taps still register. */\nexport const DRAG_SLOP = 6\n\n/** The stretch of a drag (ms) whose movement sets the release velocity. */\nexport const VELOCITY_WINDOW = 100\n\n/** How far ahead (ms) a release velocity carries the panel when choosing where it settles. */\nexport const PROJECTION_TIME = 200\n\nexport interface VelocityTracker {\n /** Records the drag's position at an event's timestamp. */\n add(time: number, value: number): void\n /** Units per ms between the oldest kept sample and `value` at `time`; 0 without samples. */\n velocity(time: number, value: number): number\n reset(): void\n}\n\n/** Keeps the samples of the last `window` ms of a drag (and never fewer than two). */\nexport function createVelocityTracker(window = VELOCITY_WINDOW): VelocityTracker {\n const samples: Array<{ time: number; value: number }> = []\n return {\n add(time, value) {\n samples.push({ time, value })\n while (samples.length > 2 && time - samples[0].time > window) samples.shift()\n },\n velocity(time, value) {\n const first = samples[0]\n if (!first) return 0\n const elapsed = time - first.time\n return elapsed > 0 ? (value - first.value) / elapsed : 0\n },\n reset() {\n samples.length = 0\n },\n }\n}\n\n/** Where a release at `position` moving at `velocity` (units per ms) would come to rest. */\nexport function projectRelease(position: number, velocity: number, time = PROJECTION_TIME) {\n return position + velocity * time\n}\n\n/** Resistance past an end: each pixel of overshoot moves the panel less, up to `limit`. */\nexport function rubberBand(overshoot: number, limit = 80) {\n const sign = Math.sign(overshoot)\n const distance = Math.abs(overshoot)\n return sign * limit * (1 - 1 / (distance / limit + 1))\n}\n"],"mappings":"AAOO,MAAM,YAAY;AAGlB,MAAM,kBAAkB;AAGxB,MAAM,kBAAkB;AAWxB,SAAS,sBAAsB,SAAS,iBAAkC;AAC/E,QAAM,UAAkD,CAAC;AACzD,SAAO;AAAA,IACL,IAAI,MAAM,OAAO;AACf,cAAQ,KAAK,EAAE,MAAM,MAAM,CAAC;AAC5B,aAAO,QAAQ,SAAS,KAAK,OAAO,QAAQ,CAAC,EAAE,OAAO,OAAQ,SAAQ,MAAM;AAAA,IAC9E;AAAA,IACA,SAAS,MAAM,OAAO;AACpB,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,CAAC,MAAO,QAAO;AACnB,YAAM,UAAU,OAAO,MAAM;AAC7B,aAAO,UAAU,KAAK,QAAQ,MAAM,SAAS,UAAU;AAAA,IACzD;AAAA,IACA,QAAQ;AACN,cAAQ,SAAS;AAAA,IACnB;AAAA,EACF;AACF;AAGO,SAAS,eAAe,UAAkB,UAAkB,OAAO,iBAAiB;AACzF,SAAO,WAAW,WAAW;AAC/B;AAGO,SAAS,WAAW,WAAmB,QAAQ,IAAI;AACxD,QAAM,OAAO,KAAK,KAAK,SAAS;AAChC,QAAM,WAAW,KAAK,IAAI,SAAS;AACnC,SAAO,OAAO,SAAS,IAAI,KAAK,WAAW,QAAQ;AACrD;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const pseudo = "before:absolute before:left-1/2 before:top-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:content-['']";
|
|
2
|
+
const hitBox = `relative ${pseudo} before:size-10 pointer-coarse:before:size-11`;
|
|
3
|
+
const hitX = `relative ${pseudo} before:h-10 before:w-full pointer-coarse:before:h-11 pointer-coarse:before:min-w-11`;
|
|
4
|
+
const hitY = `relative ${pseudo} before:h-10 before:w-full pointer-coarse:before:h-11`;
|
|
5
|
+
const hitCoarse = `relative ${pseudo} before:size-full pointer-coarse:before:min-h-11 pointer-coarse:before:min-w-11`;
|
|
6
|
+
const hitBoxPositioned = `${pseudo} before:size-10 pointer-coarse:before:size-11`;
|
|
7
|
+
export {
|
|
8
|
+
hitBox,
|
|
9
|
+
hitBoxPositioned,
|
|
10
|
+
hitCoarse,
|
|
11
|
+
hitX,
|
|
12
|
+
hitY
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=hit-area.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/hit-area.ts"],"sourcesContent":["const pseudo =\n \"before:absolute before:left-1/2 before:top-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:content-['']\"\n\nexport const hitBox = `relative ${pseudo} before:size-10 pointer-coarse:before:size-11`\n\nexport const hitX = `relative ${pseudo} before:h-10 before:w-full pointer-coarse:before:h-11 pointer-coarse:before:min-w-11`\n\nexport const hitY = `relative ${pseudo} before:h-10 before:w-full pointer-coarse:before:h-11`\n\nexport const hitCoarse = `relative ${pseudo} before:size-full pointer-coarse:before:min-h-11 pointer-coarse:before:min-w-11`\n\nexport const hitBoxPositioned = `${pseudo} before:size-10 pointer-coarse:before:size-11`\n"],"mappings":"AAAA,MAAM,SACJ;AAEK,MAAM,SAAS,YAAY,MAAM;AAEjC,MAAM,OAAO,YAAY,MAAM;AAE/B,MAAM,OAAO,YAAY,MAAM;AAE/B,MAAM,YAAY,YAAY,MAAM;AAEpC,MAAM,mBAAmB,GAAG,MAAM;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
const defaultLabels = {
|
|
5
|
+
tags: "Tags",
|
|
6
|
+
removeTag: (tag) => `Remove ${tag}`,
|
|
7
|
+
invalidTag: "invalid",
|
|
8
|
+
tagAdded: (tag) => `${tag} added`,
|
|
9
|
+
dataTable: {},
|
|
10
|
+
tagRemoved: (tag) => `${tag} removed`,
|
|
11
|
+
tagRejected: (tag, reason) => reason === "duplicate" ? `${tag} is already in the list` : reason === "max" ? `No room for ${tag}` : `${tag} wasn't added`
|
|
12
|
+
};
|
|
13
|
+
const LabelsContext = React.createContext(defaultLabels);
|
|
14
|
+
function LabelsProvider({ labels, children }) {
|
|
15
|
+
const parent = React.useContext(LabelsContext);
|
|
16
|
+
const value = React.useMemo(() => ({ ...parent, ...labels }), [parent, labels]);
|
|
17
|
+
return /* @__PURE__ */ jsx(LabelsContext.Provider, { value, children });
|
|
18
|
+
}
|
|
19
|
+
function useLabels() {
|
|
20
|
+
return React.useContext(LabelsContext);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
LabelsProvider,
|
|
24
|
+
defaultLabels,
|
|
25
|
+
useLabels
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=labels.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/labels.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\n\nimport type { DataTableLabels } from \"../components/ui/data-table/labels.mjs\"\n\n/**\n * The words components say on their own: button names, announcements, fallback names. One\n * provider near the root translates them all; a component's own label props still win.\n */\nexport interface AtomsLabels {\n /** Tags Input: the fallback name of the tag list. */\n tags: string\n /** Tags Input: a remove button's name. */\n removeTag: (tag: string) => string\n /** Tags Input: read after an invalid tag. */\n invalidTag: string\n tagAdded: (tag: string) => string\n tagRemoved: (tag: string) => string\n tagRejected: (tag: string, reason: \"invalid\" | \"duplicate\" | \"max\") => string\n /** Data Table: any of its words. */\n dataTable: Partial<DataTableLabels>\n}\n\nexport const defaultLabels: AtomsLabels = {\n tags: \"Tags\",\n removeTag: (tag) => `Remove ${tag}`,\n invalidTag: \"invalid\",\n tagAdded: (tag) => `${tag} added`,\n dataTable: {},\n tagRemoved: (tag) => `${tag} removed`,\n tagRejected: (tag, reason) =>\n reason === \"duplicate\" ? `${tag} is already in the list` : reason === \"max\" ? `No room for ${tag}` : `${tag} wasn't added`,\n}\n\nconst LabelsContext = React.createContext<AtomsLabels>(defaultLabels)\n\nexport function LabelsProvider({ labels, children }: { labels: Partial<AtomsLabels>; children: React.ReactNode }) {\n const parent = React.useContext(LabelsContext)\n const value = React.useMemo(() => ({ ...parent, ...labels }), [parent, labels])\n return <LabelsContext.Provider value={value}>{children}</LabelsContext.Provider>\n}\n\nexport function useLabels(): AtomsLabels {\n return React.useContext(LabelsContext)\n}\n"],"mappings":";AAwCS;AAtCT,YAAY,WAAW;AAsBhB,MAAM,gBAA6B;AAAA,EACxC,MAAM;AAAA,EACN,WAAW,CAAC,QAAQ,UAAU,GAAG;AAAA,EACjC,YAAY;AAAA,EACZ,UAAU,CAAC,QAAQ,GAAG,GAAG;AAAA,EACzB,WAAW,CAAC;AAAA,EACZ,YAAY,CAAC,QAAQ,GAAG,GAAG;AAAA,EAC3B,aAAa,CAAC,KAAK,WACjB,WAAW,cAAc,GAAG,GAAG,4BAA4B,WAAW,QAAQ,eAAe,GAAG,KAAK,GAAG,GAAG;AAC/G;AAEA,MAAM,gBAAgB,MAAM,cAA2B,aAAa;AAE7D,SAAS,eAAe,EAAE,QAAQ,SAAS,GAAgE;AAChH,QAAM,SAAS,MAAM,WAAW,aAAa;AAC7C,QAAM,QAAQ,MAAM,QAAQ,OAAO,EAAE,GAAG,QAAQ,GAAG,OAAO,IAAI,CAAC,QAAQ,MAAM,CAAC;AAC9E,SAAO,oBAAC,cAAc,UAAd,EAAuB,OAAe,UAAS;AACzD;AAEO,SAAS,YAAyB;AACvC,SAAO,MAAM,WAAW,aAAa;AACvC;","names":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { duration, easing, prefersReducedMotion } from "./motion.mjs";
|
|
4
|
+
function useMorphBox({ box, content, key, order, distance = 24, onChange }) {
|
|
5
|
+
const lastHeight = React.useRef(null);
|
|
6
|
+
const lastOrder = React.useRef(order);
|
|
7
|
+
const lastKey = React.useRef(key);
|
|
8
|
+
const onChangeRef = React.useRef(onChange);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
onChangeRef.current = onChange;
|
|
11
|
+
});
|
|
12
|
+
React.useLayoutEffect(() => {
|
|
13
|
+
const node = content.current;
|
|
14
|
+
if (!node) return;
|
|
15
|
+
lastHeight.current = node.getBoundingClientRect().height;
|
|
16
|
+
const observer = new ResizeObserver(([entry]) => {
|
|
17
|
+
lastHeight.current = entry.borderBoxSize?.[0]?.blockSize ?? entry.contentRect.height;
|
|
18
|
+
});
|
|
19
|
+
observer.observe(node);
|
|
20
|
+
return () => observer.disconnect();
|
|
21
|
+
}, [content]);
|
|
22
|
+
React.useLayoutEffect(() => {
|
|
23
|
+
if (lastKey.current === key) return;
|
|
24
|
+
lastKey.current = key;
|
|
25
|
+
const boxNode = box.current;
|
|
26
|
+
const contentNode = content.current;
|
|
27
|
+
const from = lastHeight.current;
|
|
28
|
+
const to = contentNode?.getBoundingClientRect().height ?? null;
|
|
29
|
+
lastHeight.current = to;
|
|
30
|
+
const direction = order === void 0 || lastOrder.current === void 0 ? 0 : order > lastOrder.current ? 1 : order < lastOrder.current ? -1 : 0;
|
|
31
|
+
lastOrder.current = order;
|
|
32
|
+
onChangeRef.current?.(direction);
|
|
33
|
+
if (!boxNode || !contentNode) return;
|
|
34
|
+
const options = { duration: duration.base, easing: easing.out };
|
|
35
|
+
if (prefersReducedMotion()) {
|
|
36
|
+
contentNode.animate([{ opacity: 0 }, { opacity: 1 }], { duration: duration.fast, easing: "linear" });
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (from !== null && to !== null && Math.abs(from - to) > 0.5) {
|
|
40
|
+
boxNode.animate([{ height: `${from}px` }, { height: `${to}px` }], options);
|
|
41
|
+
}
|
|
42
|
+
if (direction !== 0) {
|
|
43
|
+
contentNode.animate(
|
|
44
|
+
[
|
|
45
|
+
{ transform: `translateX(${direction * distance}px)`, opacity: 0 },
|
|
46
|
+
{ transform: "none", opacity: 1 }
|
|
47
|
+
],
|
|
48
|
+
options
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}, [key, order, box, content, distance]);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
useMorphBox
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=morph-box.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/morph-box.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\n\nimport { duration, easing, prefersReducedMotion } from \"./motion.mjs\"\n\n/*\n * A box that changes size with what it shows keeps one box and morphs it: when `key` changes, the\n * box tweens from its old height to the new content's, and the new content slides in from the side\n * you travelled (by comparing `order` with the last one) on the same duration and curve, so the\n * resize and the slide read as one move. Under reduced motion there's only a short fade.\n */\n\nexport interface MorphBoxOptions {\n /** The box whose height tweens. Give it `overflow-hidden` (or the tween clips nothing). */\n box: React.RefObject<HTMLElement | null>\n /** The content inside the box; its natural height is what the box tweens to. */\n content: React.RefObject<HTMLElement | null>\n /** Changes whenever the box shows something new. */\n key: React.Key\n /** A number that orders the keys (a step index), for the slide direction. Omit for no slide. */\n order?: number\n /** How far the incoming content travels, in px. */\n distance?: number\n /** Called after the new content mounts, with the direction travelled (1 forward, -1 back). */\n onChange?: (direction: 1 | -1 | 0) => void\n}\n\nexport function useMorphBox({ box, content, key, order, distance = 24, onChange }: MorphBoxOptions) {\n const lastHeight = React.useRef<number | null>(null)\n const lastOrder = React.useRef<number | undefined>(order)\n const lastKey = React.useRef<React.Key>(key)\n const onChangeRef = React.useRef(onChange)\n React.useEffect(() => {\n onChangeRef.current = onChange\n })\n\n // Track the content's natural height as it changes for any reason (an error line, a resize).\n React.useLayoutEffect(() => {\n const node = content.current\n if (!node) return\n lastHeight.current = node.getBoundingClientRect().height\n const observer = new ResizeObserver(([entry]) => {\n lastHeight.current = entry.borderBoxSize?.[0]?.blockSize ?? entry.contentRect.height\n })\n observer.observe(node)\n return () => observer.disconnect()\n }, [content])\n\n React.useLayoutEffect(() => {\n if (lastKey.current === key) return\n lastKey.current = key\n const boxNode = box.current\n const contentNode = content.current\n const from = lastHeight.current\n const to = contentNode?.getBoundingClientRect().height ?? null\n lastHeight.current = to\n const direction: 1 | -1 | 0 =\n order === undefined || lastOrder.current === undefined ? 0 : order > lastOrder.current ? 1 : order < lastOrder.current ? -1 : 0\n lastOrder.current = order\n onChangeRef.current?.(direction)\n if (!boxNode || !contentNode) return\n\n const options = { duration: duration.base, easing: easing.out }\n if (prefersReducedMotion()) {\n contentNode.animate([{ opacity: 0 }, { opacity: 1 }], { duration: duration.fast, easing: \"linear\" })\n return\n }\n if (from !== null && to !== null && Math.abs(from - to) > 0.5) {\n boxNode.animate([{ height: `${from}px` }, { height: `${to}px` }], options)\n }\n if (direction !== 0) {\n contentNode.animate(\n [\n { transform: `translateX(${direction * distance}px)`, opacity: 0 },\n { transform: \"none\", opacity: 1 },\n ],\n options,\n )\n }\n }, [key, order, box, content, distance])\n}\n"],"mappings":";AAEA,YAAY,WAAW;AAEvB,SAAS,UAAU,QAAQ,4BAA4B;AAwBhD,SAAS,YAAY,EAAE,KAAK,SAAS,KAAK,OAAO,WAAW,IAAI,SAAS,GAAoB;AAClG,QAAM,aAAa,MAAM,OAAsB,IAAI;AACnD,QAAM,YAAY,MAAM,OAA2B,KAAK;AACxD,QAAM,UAAU,MAAM,OAAkB,GAAG;AAC3C,QAAM,cAAc,MAAM,OAAO,QAAQ;AACzC,QAAM,UAAU,MAAM;AACpB,gBAAY,UAAU;AAAA,EACxB,CAAC;AAGD,QAAM,gBAAgB,MAAM;AAC1B,UAAM,OAAO,QAAQ;AACrB,QAAI,CAAC,KAAM;AACX,eAAW,UAAU,KAAK,sBAAsB,EAAE;AAClD,UAAM,WAAW,IAAI,eAAe,CAAC,CAAC,KAAK,MAAM;AAC/C,iBAAW,UAAU,MAAM,gBAAgB,CAAC,GAAG,aAAa,MAAM,YAAY;AAAA,IAChF,CAAC;AACD,aAAS,QAAQ,IAAI;AACrB,WAAO,MAAM,SAAS,WAAW;AAAA,EACnC,GAAG,CAAC,OAAO,CAAC;AAEZ,QAAM,gBAAgB,MAAM;AAC1B,QAAI,QAAQ,YAAY,IAAK;AAC7B,YAAQ,UAAU;AAClB,UAAM,UAAU,IAAI;AACpB,UAAM,cAAc,QAAQ;AAC5B,UAAM,OAAO,WAAW;AACxB,UAAM,KAAK,aAAa,sBAAsB,EAAE,UAAU;AAC1D,eAAW,UAAU;AACrB,UAAM,YACJ,UAAU,UAAa,UAAU,YAAY,SAAY,IAAI,QAAQ,UAAU,UAAU,IAAI,QAAQ,UAAU,UAAU,KAAK;AAChI,cAAU,UAAU;AACpB,gBAAY,UAAU,SAAS;AAC/B,QAAI,CAAC,WAAW,CAAC,YAAa;AAE9B,UAAM,UAAU,EAAE,UAAU,SAAS,MAAM,QAAQ,OAAO,IAAI;AAC9D,QAAI,qBAAqB,GAAG;AAC1B,kBAAY,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,UAAU,SAAS,MAAM,QAAQ,SAAS,CAAC;AACnG;AAAA,IACF;AACA,QAAI,SAAS,QAAQ,OAAO,QAAQ,KAAK,IAAI,OAAO,EAAE,IAAI,KAAK;AAC7D,cAAQ,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,KAAK,GAAG,EAAE,QAAQ,GAAG,EAAE,KAAK,CAAC,GAAG,OAAO;AAAA,IAC3E;AACA,QAAI,cAAc,GAAG;AACnB,kBAAY;AAAA,QACV;AAAA,UACE,EAAE,WAAW,cAAc,YAAY,QAAQ,OAAO,SAAS,EAAE;AAAA,UACjE,EAAE,WAAW,QAAQ,SAAS,EAAE;AAAA,QAClC;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF,GAAG,CAAC,KAAK,OAAO,KAAK,SAAS,QAAQ,CAAC;AACzC;","names":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const easing = {
|
|
2
|
+
out: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
3
|
+
inOut: "cubic-bezier(0.77, 0, 0.175, 1)",
|
|
4
|
+
drawer: "cubic-bezier(0.32, 0.72, 0, 1)",
|
|
5
|
+
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
6
|
+
lift: "cubic-bezier(0.175, 0.885, 0.32, 1.1)",
|
|
7
|
+
sine: "cubic-bezier(0.37, 0, 0.63, 1)"
|
|
8
|
+
};
|
|
9
|
+
const easingPoints = {
|
|
10
|
+
out: [0.23, 1, 0.32, 1],
|
|
11
|
+
inOut: [0.77, 0, 0.175, 1],
|
|
12
|
+
drawer: [0.32, 0.72, 0, 1],
|
|
13
|
+
spring: [0.34, 1.56, 0.64, 1],
|
|
14
|
+
lift: [0.175, 0.885, 0.32, 1.1],
|
|
15
|
+
sine: [0.37, 0, 0.63, 1]
|
|
16
|
+
};
|
|
17
|
+
const duration = {
|
|
18
|
+
quick: 150,
|
|
19
|
+
fast: 160,
|
|
20
|
+
base: 300,
|
|
21
|
+
slow: 450,
|
|
22
|
+
feed: 2500
|
|
23
|
+
};
|
|
24
|
+
const countUpDuration = 1800;
|
|
25
|
+
const flightDuration = 1800;
|
|
26
|
+
const scrollDuration = 700;
|
|
27
|
+
const signatureDraw = {
|
|
28
|
+
fast: { duration: 900, lift: 80 },
|
|
29
|
+
base: { duration: 1600, lift: 140 },
|
|
30
|
+
slow: { duration: 2800, lift: 220 }
|
|
31
|
+
};
|
|
32
|
+
function cubicBezier([x1, y1, x2, y2]) {
|
|
33
|
+
const cx = 3 * x1;
|
|
34
|
+
const bx = 3 * (x2 - x1) - cx;
|
|
35
|
+
const ax = 1 - cx - bx;
|
|
36
|
+
const cy = 3 * y1;
|
|
37
|
+
const by = 3 * (y2 - y1) - cy;
|
|
38
|
+
const ay = 1 - cy - by;
|
|
39
|
+
const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
|
|
40
|
+
const sampleY = (t) => ((ay * t + by) * t + cy) * t;
|
|
41
|
+
const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
|
|
42
|
+
return (x) => {
|
|
43
|
+
if (x <= 0) return 0;
|
|
44
|
+
if (x >= 1) return 1;
|
|
45
|
+
let t = x;
|
|
46
|
+
for (let i = 0; i < 5; i++) {
|
|
47
|
+
const dx = sampleX(t) - x;
|
|
48
|
+
if (Math.abs(dx) < 1e-4) break;
|
|
49
|
+
const d = slopeX(t);
|
|
50
|
+
if (Math.abs(d) < 1e-6) break;
|
|
51
|
+
t -= dx / d;
|
|
52
|
+
}
|
|
53
|
+
return sampleY(t);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function prefersReducedMotion() {
|
|
57
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
countUpDuration,
|
|
61
|
+
cubicBezier,
|
|
62
|
+
duration,
|
|
63
|
+
easing,
|
|
64
|
+
easingPoints,
|
|
65
|
+
flightDuration,
|
|
66
|
+
prefersReducedMotion,
|
|
67
|
+
scrollDuration,
|
|
68
|
+
signatureDraw
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=motion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/motion.ts"],"sourcesContent":["export const easing = {\n out: \"cubic-bezier(0.23, 1, 0.32, 1)\",\n inOut: \"cubic-bezier(0.77, 0, 0.175, 1)\",\n drawer: \"cubic-bezier(0.32, 0.72, 0, 1)\",\n spring: \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n lift: \"cubic-bezier(0.175, 0.885, 0.32, 1.1)\",\n sine: \"cubic-bezier(0.37, 0, 0.63, 1)\",\n} as const;\n\nexport const easingPoints = {\n out: [0.23, 1, 0.32, 1],\n inOut: [0.77, 0, 0.175, 1],\n drawer: [0.32, 0.72, 0, 1],\n spring: [0.34, 1.56, 0.64, 1],\n lift: [0.175, 0.885, 0.32, 1.1],\n sine: [0.37, 0, 0.63, 1],\n} as const;\n\nexport const duration = {\n quick: 150,\n fast: 160,\n base: 300,\n slow: 450,\n feed: 2500,\n} as const;\n\nexport const countUpDuration = 1800;\n\nexport const flightDuration = 1800;\n\nexport const scrollDuration = 700;\n\nexport const signatureDraw = {\n fast: { duration: 900, lift: 80 },\n base: { duration: 1600, lift: 140 },\n slow: { duration: 2800, lift: 220 },\n} as const;\n\nexport type SignatureSpeed = keyof typeof signatureDraw;\n\nexport function cubicBezier([x1, y1, x2, y2]: readonly [number, number, number, number]) {\n const cx = 3 * x1;\n const bx = 3 * (x2 - x1) - cx;\n const ax = 1 - cx - bx;\n const cy = 3 * y1;\n const by = 3 * (y2 - y1) - cy;\n const ay = 1 - cy - by;\n const sampleX = (t: number) => ((ax * t + bx) * t + cx) * t;\n const sampleY = (t: number) => ((ay * t + by) * t + cy) * t;\n const slopeX = (t: number) => (3 * ax * t + 2 * bx) * t + cx;\n return (x: number) => {\n if (x <= 0) return 0;\n if (x >= 1) return 1;\n let t = x;\n for (let i = 0; i < 5; i++) {\n const dx = sampleX(t) - x;\n if (Math.abs(dx) < 1e-4) break;\n const d = slopeX(t);\n if (Math.abs(d) < 1e-6) break;\n t -= dx / d;\n }\n return sampleY(t);\n };\n}\n\nexport function prefersReducedMotion() {\n return (\n typeof window !== \"undefined\" &&\n typeof window.matchMedia === \"function\" &&\n window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n );\n}\n\nexport type Easing = keyof typeof easing;\nexport type Duration = keyof typeof duration;\n"],"mappings":"AAAO,MAAM,SAAS;AAAA,EACpB,KAAK;AAAA,EACL,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AACR;AAEO,MAAM,eAAe;AAAA,EAC1B,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AAAA,EACtB,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC;AAAA,EACzB,QAAQ,CAAC,MAAM,MAAM,GAAG,CAAC;AAAA,EACzB,QAAQ,CAAC,MAAM,MAAM,MAAM,CAAC;AAAA,EAC5B,MAAM,CAAC,OAAO,OAAO,MAAM,GAAG;AAAA,EAC9B,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB;AAEO,MAAM,WAAW;AAAA,EACtB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;AAEO,MAAM,kBAAkB;AAExB,MAAM,iBAAiB;AAEvB,MAAM,iBAAiB;AAEvB,MAAM,gBAAgB;AAAA,EAC3B,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG;AAAA,EAChC,MAAM,EAAE,UAAU,MAAM,MAAM,IAAI;AAAA,EAClC,MAAM,EAAE,UAAU,MAAM,MAAM,IAAI;AACpC;AAIO,SAAS,YAAY,CAAC,IAAI,IAAI,IAAI,EAAE,GAA8C;AACvF,QAAM,KAAK,IAAI;AACf,QAAM,KAAK,KAAK,KAAK,MAAM;AAC3B,QAAM,KAAK,IAAI,KAAK;AACpB,QAAM,KAAK,IAAI;AACf,QAAM,KAAK,KAAK,KAAK,MAAM;AAC3B,QAAM,KAAK,IAAI,KAAK;AACpB,QAAM,UAAU,CAAC,QAAgB,KAAK,IAAI,MAAM,IAAI,MAAM;AAC1D,QAAM,UAAU,CAAC,QAAgB,KAAK,IAAI,MAAM,IAAI,MAAM;AAC1D,QAAM,SAAS,CAAC,OAAe,IAAI,KAAK,IAAI,IAAI,MAAM,IAAI;AAC1D,SAAO,CAAC,MAAc;AACpB,QAAI,KAAK,EAAG,QAAO;AACnB,QAAI,KAAK,EAAG,QAAO;AACnB,QAAI,IAAI;AACR,aAAS,IAAI,GAAG,IAAI,GAAG,KAAK;AAC1B,YAAM,KAAK,QAAQ,CAAC,IAAI;AACxB,UAAI,KAAK,IAAI,EAAE,IAAI,KAAM;AACzB,YAAM,IAAI,OAAO,CAAC;AAClB,UAAI,KAAK,IAAI,CAAC,IAAI,KAAM;AACxB,WAAK,KAAK;AAAA,IACZ;AACA,WAAO,QAAQ,CAAC;AAAA,EAClB;AACF;AAEO,SAAS,uBAAuB;AACrC,SACE,OAAO,WAAW,eAClB,OAAO,OAAO,eAAe,cAC7B,OAAO,WAAW,kCAAkC,EAAE;AAE1D;","names":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { tv } from "./tv.mjs";
|
|
5
|
+
const ringPulse = tv({
|
|
6
|
+
base: "pointer-events-none absolute rounded-[inherit] animate-ring-pulse motion-reduce:animate-ring-pulse-fade motion-reduce:focus-ring",
|
|
7
|
+
variants: {
|
|
8
|
+
edge: {
|
|
9
|
+
border: "-inset-px",
|
|
10
|
+
flush: "inset-0"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: { edge: "border" }
|
|
14
|
+
});
|
|
15
|
+
function RingPulse({ n, onDone, slot, edge, className }) {
|
|
16
|
+
if (!n) return null;
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
"aria-hidden": true,
|
|
21
|
+
"data-slot": slot,
|
|
22
|
+
"data-pulse": "",
|
|
23
|
+
className: ringPulse({ edge, className }),
|
|
24
|
+
onAnimationEnd: (event) => {
|
|
25
|
+
if (event.target === event.currentTarget) onDone();
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
n
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
const OFF_STATES = /* @__PURE__ */ new Set(["unchecked", "off"]);
|
|
32
|
+
function pulseOnTurnOn(fire, handler) {
|
|
33
|
+
return (event) => {
|
|
34
|
+
handler?.(event);
|
|
35
|
+
if (!event.defaultPrevented && OFF_STATES.has(event.currentTarget.dataset.state ?? "")) fire();
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PressPulse({ slot, edge, className }) {
|
|
39
|
+
const [node, fire] = usePulse({ slot, edge, className });
|
|
40
|
+
const anchor = React.useRef(null);
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
const target = anchor.current?.parentElement;
|
|
43
|
+
if (!target) return;
|
|
44
|
+
const onClick = () => {
|
|
45
|
+
if (target.getAttribute("aria-pressed") === "false" || target.getAttribute("aria-checked") === "false") fire();
|
|
46
|
+
};
|
|
47
|
+
target.addEventListener("click", onClick);
|
|
48
|
+
return () => target.removeEventListener("click", onClick);
|
|
49
|
+
}, [fire]);
|
|
50
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ jsx("span", { ref: anchor, hidden: true, "data-pulse": "" }),
|
|
52
|
+
node
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
55
|
+
function usePulse({ slot, edge, className }) {
|
|
56
|
+
const [n, setN] = React.useState(0);
|
|
57
|
+
const fire = React.useCallback(() => setN((k) => k + 1), []);
|
|
58
|
+
const done = React.useCallback(() => setN(0), []);
|
|
59
|
+
const node = /* @__PURE__ */ jsx(RingPulse, { n, onDone: done, slot, edge, className });
|
|
60
|
+
return [node, fire];
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
PressPulse,
|
|
64
|
+
RingPulse,
|
|
65
|
+
pulseOnTurnOn,
|
|
66
|
+
ringPulse,
|
|
67
|
+
usePulse
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=pulse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/pulse.tsx"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\n\r\nimport { tv, type VariantProps } from \"./tv.mjs\"\r\n\r\nexport const ringPulse = tv({\r\n base: \"pointer-events-none absolute rounded-[inherit] animate-ring-pulse motion-reduce:animate-ring-pulse-fade motion-reduce:focus-ring\",\r\n variants: {\r\n edge: {\r\n border: \"-inset-px\",\r\n flush: \"inset-0\",\r\n },\r\n },\r\n defaultVariants: { edge: \"border\" },\r\n})\r\n\r\nexport type RingPulseEdge = NonNullable<VariantProps<typeof ringPulse>[\"edge\"]>\r\n\r\nexport interface RingPulseProps {\r\n n: number\r\n onDone: () => void\r\n slot: string\r\n edge?: RingPulseEdge\r\n className?: string\r\n}\r\n\r\nexport function RingPulse({ n, onDone, slot, edge, className }: RingPulseProps) {\r\n if (!n) return null\r\n return (\r\n <span\r\n key={n}\r\n aria-hidden\r\n data-slot={slot}\r\n data-pulse=\"\"\r\n className={ringPulse({ edge, className })}\r\n onAnimationEnd={(event) => {\r\n if (event.target === event.currentTarget) onDone()\r\n }}\r\n />\r\n )\r\n}\r\n\r\nconst OFF_STATES = new Set([\"unchecked\", \"off\"])\r\n\r\nexport function pulseOnTurnOn<E extends React.MouseEvent<HTMLElement>>(fire: () => void, handler?: (event: E) => void) {\r\n return (event: E) => {\r\n handler?.(event)\r\n if (!event.defaultPrevented && OFF_STATES.has(event.currentTarget.dataset.state ?? \"\")) fire()\r\n }\r\n}\r\n\r\nexport function PressPulse({ slot, edge, className }: UsePulseOptions) {\r\n const [node, fire] = usePulse({ slot, edge, className })\r\n const anchor = React.useRef<HTMLSpanElement>(null)\r\n React.useEffect(() => {\r\n const target = anchor.current?.parentElement\r\n if (!target) return\r\n const onClick = () => {\r\n // A toggle (aria-pressed) or a radio-style pick (aria-checked) that's about to turn on.\r\n if (target.getAttribute(\"aria-pressed\") === \"false\" || target.getAttribute(\"aria-checked\") === \"false\") fire()\r\n }\r\n target.addEventListener(\"click\", onClick)\r\n return () => target.removeEventListener(\"click\", onClick)\r\n }, [fire])\r\n return (\r\n <>\r\n <span ref={anchor} hidden data-pulse=\"\" />\r\n {node}\r\n </>\r\n )\r\n}\r\n\r\nexport interface UsePulseOptions {\r\n slot: string\r\n edge?: RingPulseEdge\r\n className?: string\r\n}\r\n\r\nexport function usePulse({ slot, edge, className }: UsePulseOptions) {\r\n const [n, setN] = React.useState(0)\r\n const fire = React.useCallback(() => setN((k) => k + 1), [])\r\n const done = React.useCallback(() => setN(0), [])\r\n const node = <RingPulse n={n} onDone={done} slot={slot} edge={edge} className={className} />\r\n return [node, fire] as const\r\n}\r\n"],"mappings":";AA8BI,SAoCA,UApCA,KAoCA,YApCA;AA5BJ,YAAY,WAAW;AAEvB,SAAS,UAA6B;AAE/B,MAAM,YAAY,GAAG;AAAA,EAC1B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,iBAAiB,EAAE,MAAM,SAAS;AACpC,CAAC;AAYM,SAAS,UAAU,EAAE,GAAG,QAAQ,MAAM,MAAM,UAAU,GAAmB;AAC9E,MAAI,CAAC,EAAG,QAAO;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MAEC,eAAW;AAAA,MACX,aAAW;AAAA,MACX,cAAW;AAAA,MACX,WAAW,UAAU,EAAE,MAAM,UAAU,CAAC;AAAA,MACxC,gBAAgB,CAAC,UAAU;AACzB,YAAI,MAAM,WAAW,MAAM,cAAe,QAAO;AAAA,MACnD;AAAA;AAAA,IAPK;AAAA,EAQP;AAEJ;AAEA,MAAM,aAAa,oBAAI,IAAI,CAAC,aAAa,KAAK,CAAC;AAExC,SAAS,cAAuD,MAAkB,SAA8B;AACrH,SAAO,CAAC,UAAa;AACnB,cAAU,KAAK;AACf,QAAI,CAAC,MAAM,oBAAoB,WAAW,IAAI,MAAM,cAAc,QAAQ,SAAS,EAAE,EAAG,MAAK;AAAA,EAC/F;AACF;AAEO,SAAS,WAAW,EAAE,MAAM,MAAM,UAAU,GAAoB;AACrE,QAAM,CAAC,MAAM,IAAI,IAAI,SAAS,EAAE,MAAM,MAAM,UAAU,CAAC;AACvD,QAAM,SAAS,MAAM,OAAwB,IAAI;AACjD,QAAM,UAAU,MAAM;AACpB,UAAM,SAAS,OAAO,SAAS;AAC/B,QAAI,CAAC,OAAQ;AACb,UAAM,UAAU,MAAM;AAEpB,UAAI,OAAO,aAAa,cAAc,MAAM,WAAW,OAAO,aAAa,cAAc,MAAM,QAAS,MAAK;AAAA,IAC/G;AACA,WAAO,iBAAiB,SAAS,OAAO;AACxC,WAAO,MAAM,OAAO,oBAAoB,SAAS,OAAO;AAAA,EAC1D,GAAG,CAAC,IAAI,CAAC;AACT,SACE,iCACE;AAAA,wBAAC,UAAK,KAAK,QAAQ,QAAM,MAAC,cAAW,IAAG;AAAA,IACvC;AAAA,KACH;AAEJ;AAQO,SAAS,SAAS,EAAE,MAAM,MAAM,UAAU,GAAoB;AACnE,QAAM,CAAC,GAAG,IAAI,IAAI,MAAM,SAAS,CAAC;AAClC,QAAM,OAAO,MAAM,YAAY,MAAM,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3D,QAAM,OAAO,MAAM,YAAY,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;AAChD,QAAM,OAAO,oBAAC,aAAU,GAAM,QAAQ,MAAM,MAAY,MAAY,WAAsB;AAC1F,SAAO,CAAC,MAAM,IAAI;AACpB;","names":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
function useRovingFocus({
|
|
4
|
+
item,
|
|
5
|
+
enabled = true,
|
|
6
|
+
loop = false,
|
|
7
|
+
orientation = "vertical",
|
|
8
|
+
initial,
|
|
9
|
+
ref: sharedRef
|
|
10
|
+
}) {
|
|
11
|
+
const ownRef = React.useRef(null);
|
|
12
|
+
const ref = sharedRef ?? ownRef;
|
|
13
|
+
const stop = React.useRef(null);
|
|
14
|
+
const items = React.useCallback(
|
|
15
|
+
() => Array.from(ref.current?.querySelectorAll(item) ?? []).filter((el) => !el.hidden),
|
|
16
|
+
[item, ref]
|
|
17
|
+
);
|
|
18
|
+
const place = React.useCallback(
|
|
19
|
+
(target) => {
|
|
20
|
+
for (const el of items()) el.tabIndex = el === target ? 0 : -1;
|
|
21
|
+
},
|
|
22
|
+
[items]
|
|
23
|
+
);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
if (!enabled) {
|
|
26
|
+
for (const el of items()) el.removeAttribute("tabindex");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const list = items();
|
|
30
|
+
if (list.length === 0) return;
|
|
31
|
+
const current = stop.current && list.includes(stop.current) ? stop.current : initial?.(list) ?? list[0];
|
|
32
|
+
place(current);
|
|
33
|
+
});
|
|
34
|
+
const onFocus = React.useCallback(
|
|
35
|
+
(event) => {
|
|
36
|
+
if (!enabled) return;
|
|
37
|
+
const el = event.target.closest(item);
|
|
38
|
+
if (!el || !ref.current?.contains(el)) return;
|
|
39
|
+
stop.current = el;
|
|
40
|
+
place(el);
|
|
41
|
+
},
|
|
42
|
+
[enabled, item, place, ref]
|
|
43
|
+
);
|
|
44
|
+
const onKeyDown = React.useCallback(
|
|
45
|
+
(event) => {
|
|
46
|
+
if (!enabled || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
47
|
+
const target = event.target;
|
|
48
|
+
if (!target.matches(item)) return;
|
|
49
|
+
const list = items();
|
|
50
|
+
const index = list.indexOf(target);
|
|
51
|
+
if (index < 0) return;
|
|
52
|
+
const rtl = getComputedStyle(target).direction === "rtl";
|
|
53
|
+
const next = orientation === "vertical" ? "ArrowDown" : rtl ? "ArrowLeft" : "ArrowRight";
|
|
54
|
+
const prev = orientation === "vertical" ? "ArrowUp" : rtl ? "ArrowRight" : "ArrowLeft";
|
|
55
|
+
let to = -1;
|
|
56
|
+
if (event.key === next) to = index + 1 < list.length ? index + 1 : loop ? 0 : index;
|
|
57
|
+
else if (event.key === prev) to = index > 0 ? index - 1 : loop ? list.length - 1 : index;
|
|
58
|
+
else if (event.key === "Home") to = 0;
|
|
59
|
+
else if (event.key === "End") to = list.length - 1;
|
|
60
|
+
else return;
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
const el = list[to];
|
|
63
|
+
stop.current = el;
|
|
64
|
+
place(el);
|
|
65
|
+
el.focus();
|
|
66
|
+
},
|
|
67
|
+
[enabled, item, items, loop, orientation, place]
|
|
68
|
+
);
|
|
69
|
+
return { ref, onFocus, onKeyDown };
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
useRovingFocus
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=roving-focus.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/roving-focus.ts"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\n\r\n/*\r\n * One tab stop for a group of items: Tab enters and leaves the group, the arrows move inside it.\r\n * Items are read from the DOM on every move, so rows that a filter adds or removes need no\r\n * bookkeeping. See references/behaviors.md.\r\n */\r\n\r\nexport interface RovingFocusOptions {\r\n /** Selector for the items that take part. Leave disabled ones out of it. */\r\n item: string\r\n /** Off leaves every item in the tab order. */\r\n enabled?: boolean\r\n /** The arrows wrap at the ends. */\r\n loop?: boolean\r\n /** Up/Down, or Left/Right (swapped in right-to-left text). */\r\n orientation?: \"vertical\" | \"horizontal\"\r\n /** The item that holds the stop before any has been focused. */\r\n initial?: (items: HTMLElement[]) => HTMLElement | undefined\r\n}\r\n\r\nexport function useRovingFocus<T extends HTMLElement = HTMLElement>({\r\n item,\r\n enabled = true,\r\n loop = false,\r\n orientation = \"vertical\",\r\n initial,\r\n ref: sharedRef,\r\n}: RovingFocusOptions & {\r\n /** A ref the group already has (the component reads the same element elsewhere). */\r\n ref?: React.RefObject<T | null>\r\n}) {\r\n const ownRef = React.useRef<T>(null)\r\n const ref = sharedRef ?? ownRef\r\n const stop = React.useRef<HTMLElement | null>(null)\r\n\r\n const items = React.useCallback(\r\n () => Array.from(ref.current?.querySelectorAll<HTMLElement>(item) ?? []).filter((el) => !el.hidden),\r\n [item, ref],\r\n )\r\n\r\n const place = React.useCallback(\r\n (target: HTMLElement | null) => {\r\n for (const el of items()) el.tabIndex = el === target ? 0 : -1\r\n },\r\n [items],\r\n )\r\n\r\n // After every render: exactly one item holds the stop (the last focused, while it still exists).\r\n React.useEffect(() => {\r\n if (!enabled) {\r\n for (const el of items()) el.removeAttribute(\"tabindex\")\r\n return\r\n }\r\n const list = items()\r\n if (list.length === 0) return\r\n const current = stop.current && list.includes(stop.current) ? stop.current : (initial?.(list) ?? list[0])\r\n place(current)\r\n })\r\n\r\n const onFocus = React.useCallback(\r\n (event: React.FocusEvent) => {\r\n if (!enabled) return\r\n const el = (event.target as HTMLElement).closest<HTMLElement>(item)\r\n if (!el || !ref.current?.contains(el)) return\r\n stop.current = el\r\n place(el)\r\n },\r\n [enabled, item, place, ref],\r\n )\r\n\r\n const onKeyDown = React.useCallback(\r\n (event: React.KeyboardEvent) => {\r\n if (!enabled || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return\r\n const target = event.target as HTMLElement\r\n if (!target.matches(item)) return\r\n const list = items()\r\n const index = list.indexOf(target)\r\n if (index < 0) return\r\n const rtl = getComputedStyle(target).direction === \"rtl\"\r\n const next = orientation === \"vertical\" ? \"ArrowDown\" : rtl ? \"ArrowLeft\" : \"ArrowRight\"\r\n const prev = orientation === \"vertical\" ? \"ArrowUp\" : rtl ? \"ArrowRight\" : \"ArrowLeft\"\r\n let to = -1\r\n if (event.key === next) to = index + 1 < list.length ? index + 1 : loop ? 0 : index\r\n else if (event.key === prev) to = index > 0 ? index - 1 : loop ? list.length - 1 : index\r\n else if (event.key === \"Home\") to = 0\r\n else if (event.key === \"End\") to = list.length - 1\r\n else return\r\n event.preventDefault()\r\n const el = list[to]\r\n stop.current = el\r\n place(el)\r\n el.focus()\r\n },\r\n [enabled, item, items, loop, orientation, place],\r\n )\r\n\r\n return { ref, onFocus, onKeyDown }\r\n}\r\n"],"mappings":";AAEA,YAAY,WAAW;AAqBhB,SAAS,eAAoD;AAAA,EAClE;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AAAA,EACA,KAAK;AACP,GAGG;AACD,QAAM,SAAS,MAAM,OAAU,IAAI;AACnC,QAAM,MAAM,aAAa;AACzB,QAAM,OAAO,MAAM,OAA2B,IAAI;AAElD,QAAM,QAAQ,MAAM;AAAA,IAClB,MAAM,MAAM,KAAK,IAAI,SAAS,iBAA8B,IAAI,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM;AAAA,IAClG,CAAC,MAAM,GAAG;AAAA,EACZ;AAEA,QAAM,QAAQ,MAAM;AAAA,IAClB,CAAC,WAA+B;AAC9B,iBAAW,MAAM,MAAM,EAAG,IAAG,WAAW,OAAO,SAAS,IAAI;AAAA,IAC9D;AAAA,IACA,CAAC,KAAK;AAAA,EACR;AAGA,QAAM,UAAU,MAAM;AACpB,QAAI,CAAC,SAAS;AACZ,iBAAW,MAAM,MAAM,EAAG,IAAG,gBAAgB,UAAU;AACvD;AAAA,IACF;AACA,UAAM,OAAO,MAAM;AACnB,QAAI,KAAK,WAAW,EAAG;AACvB,UAAM,UAAU,KAAK,WAAW,KAAK,SAAS,KAAK,OAAO,IAAI,KAAK,UAAW,UAAU,IAAI,KAAK,KAAK,CAAC;AACvG,UAAM,OAAO;AAAA,EACf,CAAC;AAED,QAAM,UAAU,MAAM;AAAA,IACpB,CAAC,UAA4B;AAC3B,UAAI,CAAC,QAAS;AACd,YAAM,KAAM,MAAM,OAAuB,QAAqB,IAAI;AAClE,UAAI,CAAC,MAAM,CAAC,IAAI,SAAS,SAAS,EAAE,EAAG;AACvC,WAAK,UAAU;AACf,YAAM,EAAE;AAAA,IACV;AAAA,IACA,CAAC,SAAS,MAAM,OAAO,GAAG;AAAA,EAC5B;AAEA,QAAM,YAAY,MAAM;AAAA,IACtB,CAAC,UAA+B;AAC9B,UAAI,CAAC,WAAW,MAAM,oBAAoB,MAAM,UAAU,MAAM,WAAW,MAAM,QAAS;AAC1F,YAAM,SAAS,MAAM;AACrB,UAAI,CAAC,OAAO,QAAQ,IAAI,EAAG;AAC3B,YAAM,OAAO,MAAM;AACnB,YAAM,QAAQ,KAAK,QAAQ,MAAM;AACjC,UAAI,QAAQ,EAAG;AACf,YAAM,MAAM,iBAAiB,MAAM,EAAE,cAAc;AACnD,YAAM,OAAO,gBAAgB,aAAa,cAAc,MAAM,cAAc;AAC5E,YAAM,OAAO,gBAAgB,aAAa,YAAY,MAAM,eAAe;AAC3E,UAAI,KAAK;AACT,UAAI,MAAM,QAAQ,KAAM,MAAK,QAAQ,IAAI,KAAK,SAAS,QAAQ,IAAI,OAAO,IAAI;AAAA,eACrE,MAAM,QAAQ,KAAM,MAAK,QAAQ,IAAI,QAAQ,IAAI,OAAO,KAAK,SAAS,IAAI;AAAA,eAC1E,MAAM,QAAQ,OAAQ,MAAK;AAAA,eAC3B,MAAM,QAAQ,MAAO,MAAK,KAAK,SAAS;AAAA,UAC5C;AACL,YAAM,eAAe;AACrB,YAAM,KAAK,KAAK,EAAE;AAClB,WAAK,UAAU;AACf,YAAM,EAAE;AACR,SAAG,MAAM;AAAA,IACX;AAAA,IACA,CAAC,SAAS,MAAM,OAAO,MAAM,aAAa,KAAK;AAAA,EACjD;AAEA,SAAO,EAAE,KAAK,SAAS,UAAU;AACnC;","names":[]}
|
package/dist/lib/tv.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createTV } from "tailwind-variants";
|
|
2
|
+
import { twMergeConfig } from "./utils.mjs";
|
|
3
|
+
const tv = createTV({ twMergeConfig });
|
|
4
|
+
const inFlowFill = "bg-(--in-flow-fill) [--in-flow-fill:transparent] [&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--in-flow-fill:var(--card)] [&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--surface:var(--card)]";
|
|
5
|
+
const inFlowSurface = "[&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--surface:var(--card)]";
|
|
6
|
+
export {
|
|
7
|
+
inFlowFill,
|
|
8
|
+
inFlowSurface,
|
|
9
|
+
tv
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=tv.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/tv.ts"],"sourcesContent":["import { createTV } from \"tailwind-variants\"\n\nimport { twMergeConfig } from \"./utils.mjs\"\n\nexport const tv = createTV({ twMergeConfig })\n\nexport type { VariantProps } from \"tailwind-variants\"\n\n/*\n * The dark theme's exception to \"fill is elevation\": its grey ladder reads depth by value, so an\n * in-flow container (Card, Stat, Ranking in their default and outline looks) paints the card step\n * there and declares it as the `--surface` its controls sit on. Light and moonlight stay\n * transparent. The selector follows the nearest theme: `.dark` only, not under `.moonlight` (whose\n * pinned `.dark` chrome takes moonlight's tokens), not inside a light or moonlight scope\n * pinned in a dark page, unless a `.dark` band re-pins it. The fill goes through a variable so a\n * consumer's `bg-*` still replaces it through tailwind-merge.\n */\nexport const inFlowFill =\n \"bg-(--in-flow-fill) [--in-flow-fill:transparent] [&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--in-flow-fill:var(--card)] [&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--surface:var(--card)]\"\n\n/** The surface half alone, for a container whose own paint is its hairlines (StatGroup's `bg-border`). */\nexport const inFlowSurface =\n \"[&:is(.dark_*):not(.moonlight_.dark_*):not(.dark_:is(.light,.moonlight)_*:not(.dark_:is(.light,.moonlight)_.dark_*))]:[--surface:var(--card)]\"\n"],"mappings":"AAAA,SAAS,gBAAgB;AAEzB,SAAS,qBAAqB;AAEvB,MAAM,KAAK,SAAS,EAAE,cAAc,CAAC;AAarC,MAAM,aACX;AAGK,MAAM,gBACX;","names":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { extendTailwindMerge, fromTheme, validators } from "tailwind-merge";
|
|
3
|
+
function isArbitraryFontFamily(value) {
|
|
4
|
+
const match = /^\[(.+)\]$/.exec(value);
|
|
5
|
+
if (!match || /^\w[\w-]*:/.test(match[1])) return false;
|
|
6
|
+
const entries = match[1].split(",").map((part) => part.replace(/^_+/, ""));
|
|
7
|
+
if (entries.some((part) => /^\d/.test(part))) return false;
|
|
8
|
+
return entries.some((part) => !part.startsWith("var("));
|
|
9
|
+
}
|
|
10
|
+
const twMergeConfig = {
|
|
11
|
+
override: {
|
|
12
|
+
classGroups: {
|
|
13
|
+
"font-weight": [
|
|
14
|
+
{
|
|
15
|
+
font: [
|
|
16
|
+
fromTheme("font-weight"),
|
|
17
|
+
validators.isArbitraryVariableWeight,
|
|
18
|
+
(value) => validators.isArbitraryWeight(value) && !isArbitraryFontFamily(value)
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
extend: {
|
|
25
|
+
theme: {
|
|
26
|
+
ease: ["drawer", "spring", "lift", "sine"],
|
|
27
|
+
spacing: ["control-sm", "control-md", "control-lg", "control-xl"],
|
|
28
|
+
"font-weight": ["numeral"],
|
|
29
|
+
tracking: ["figure"]
|
|
30
|
+
},
|
|
31
|
+
classGroups: {
|
|
32
|
+
"font-family": [{ font: ["heading", "figure", isArbitraryFontFamily] }],
|
|
33
|
+
rounded: [{ rounded: ["pill"] }],
|
|
34
|
+
"transition-duration": [{ duration: ["fast", "base", "slow"] }],
|
|
35
|
+
"atoms-animation-fill-mode": [{ "fill-mode": ["none", "forwards", "backwards", "both"] }],
|
|
36
|
+
"font-size": ["section-heading"],
|
|
37
|
+
"atoms-ring": ["focus-ring", "destructive-ring"],
|
|
38
|
+
"atoms-caret": ["caret-turn", "caret-turn-fast"],
|
|
39
|
+
"atoms-eyebrow": ["eyebrow", "eyebrow-mono"],
|
|
40
|
+
"atoms-fade": [
|
|
41
|
+
"fade",
|
|
42
|
+
"fade-x",
|
|
43
|
+
"fade-t",
|
|
44
|
+
"fade-b",
|
|
45
|
+
"fade-l",
|
|
46
|
+
"fade-r",
|
|
47
|
+
"scroll-fade",
|
|
48
|
+
"scroll-fade-x",
|
|
49
|
+
"scroll-fade-t",
|
|
50
|
+
"scroll-fade-b",
|
|
51
|
+
"scroll-fade-l",
|
|
52
|
+
"scroll-fade-r"
|
|
53
|
+
],
|
|
54
|
+
"atoms-conversation-gutter": ["conversation-gutter"],
|
|
55
|
+
"atoms-hero-stage": [
|
|
56
|
+
"hero-stage-track",
|
|
57
|
+
"hero-stage-pin",
|
|
58
|
+
"hero-stage-media",
|
|
59
|
+
"hero-stage-exit",
|
|
60
|
+
"hero-stage-letter",
|
|
61
|
+
"hero-stage-enter"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
// A consumer's inline padding or margin replaces the whole gutter (bleed + padding together).
|
|
65
|
+
conflictingClassGroups: {
|
|
66
|
+
p: ["atoms-conversation-gutter"],
|
|
67
|
+
px: ["atoms-conversation-gutter"],
|
|
68
|
+
m: ["atoms-conversation-gutter"],
|
|
69
|
+
mx: ["atoms-conversation-gutter"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const twMerge = extendTailwindMerge(twMergeConfig);
|
|
74
|
+
function cn(...inputs) {
|
|
75
|
+
return twMerge(clsx(inputs));
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
cn,
|
|
79
|
+
isArbitraryFontFamily,
|
|
80
|
+
twMergeConfig
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\"\r\nimport { extendTailwindMerge, fromTheme, validators, type ConfigExtension } from \"tailwind-merge\"\r\nimport type { TWMergeConfig } from \"tailwind-variants\"\r\n\r\nexport function isArbitraryFontFamily(value: string) {\r\n const match = /^\\[(.+)\\]$/.exec(value)\r\n if (!match || /^\\w[\\w-]*:/.test(match[1])) return false\r\n const entries = match[1].split(\",\").map((part) => part.replace(/^_+/, \"\"))\r\n if (entries.some((part) => /^\\d/.test(part))) return false\r\n return entries.some((part) => !part.startsWith(\"var(\"))\r\n}\r\n\r\n// Annotated so the package's type declarations can name it (the inferred type uses one of\r\n// tailwind-merge's internal types). It satisfies both tailwind-merge and tailwind-variants.\r\nexport const twMergeConfig: ConfigExtension<string, string> & TWMergeConfig = {\r\n override: {\r\n classGroups: {\r\n \"font-weight\": [\r\n {\r\n font: [\r\n fromTheme(\"font-weight\"),\r\n validators.isArbitraryVariableWeight,\r\n (value: string) => validators.isArbitraryWeight(value) && !isArbitraryFontFamily(value),\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n extend: {\r\n theme: {\r\n ease: [\"drawer\", \"spring\", \"lift\", \"sine\"],\r\n spacing: [\"control-sm\", \"control-md\", \"control-lg\", \"control-xl\"],\r\n \"font-weight\": [\"numeral\"],\r\n tracking: [\"figure\"],\r\n },\r\n classGroups: {\r\n \"font-family\": [{ font: [\"heading\", \"figure\", isArbitraryFontFamily] }],\r\n rounded: [{ rounded: [\"pill\"] }],\r\n \"transition-duration\": [{ duration: [\"fast\", \"base\", \"slow\"] }],\r\n \"atoms-animation-fill-mode\": [{ \"fill-mode\": [\"none\", \"forwards\", \"backwards\", \"both\"] }],\r\n \"font-size\": [\"section-heading\"],\r\n \"atoms-ring\": [\"focus-ring\", \"destructive-ring\"],\r\n \"atoms-caret\": [\"caret-turn\", \"caret-turn-fast\"],\r\n \"atoms-eyebrow\": [\"eyebrow\", \"eyebrow-mono\"],\r\n \"atoms-fade\": [\r\n \"fade\",\r\n \"fade-x\",\r\n \"fade-t\",\r\n \"fade-b\",\r\n \"fade-l\",\r\n \"fade-r\",\r\n \"scroll-fade\",\r\n \"scroll-fade-x\",\r\n \"scroll-fade-t\",\r\n \"scroll-fade-b\",\r\n \"scroll-fade-l\",\r\n \"scroll-fade-r\",\r\n ],\r\n \"atoms-conversation-gutter\": [\"conversation-gutter\"],\r\n \"atoms-hero-stage\": [\r\n \"hero-stage-track\",\r\n \"hero-stage-pin\",\r\n \"hero-stage-media\",\r\n \"hero-stage-exit\",\r\n \"hero-stage-letter\",\r\n \"hero-stage-enter\",\r\n ],\r\n },\r\n // A consumer's inline padding or margin replaces the whole gutter (bleed + padding together).\r\n conflictingClassGroups: {\r\n p: [\"atoms-conversation-gutter\"],\r\n px: [\"atoms-conversation-gutter\"],\r\n m: [\"atoms-conversation-gutter\"],\r\n mx: [\"atoms-conversation-gutter\"],\r\n },\r\n },\r\n}\r\n\r\n// The type argument names Atoms' own class groups, which `conflictingClassGroups` refers to.\r\nconst twMerge = extendTailwindMerge<string>(twMergeConfig)\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs))\r\n}\r\n"],"mappings":"AAAA,SAAS,YAA6B;AACtC,SAAS,qBAAqB,WAAW,kBAAwC;AAG1E,SAAS,sBAAsB,OAAe;AACnD,QAAM,QAAQ,aAAa,KAAK,KAAK;AACrC,MAAI,CAAC,SAAS,aAAa,KAAK,MAAM,CAAC,CAAC,EAAG,QAAO;AAClD,QAAM,UAAU,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE,IAAI,CAAC,SAAS,KAAK,QAAQ,OAAO,EAAE,CAAC;AACzE,MAAI,QAAQ,KAAK,CAAC,SAAS,MAAM,KAAK,IAAI,CAAC,EAAG,QAAO;AACrD,SAAO,QAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,WAAW,MAAM,CAAC;AACxD;AAIO,MAAM,gBAAiE;AAAA,EAC5E,UAAU;AAAA,IACR,aAAa;AAAA,MACX,eAAe;AAAA,QACb;AAAA,UACE,MAAM;AAAA,YACJ,UAAU,aAAa;AAAA,YACvB,WAAW;AAAA,YACX,CAAC,UAAkB,WAAW,kBAAkB,KAAK,KAAK,CAAC,sBAAsB,KAAK;AAAA,UACxF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,QAAQ;AAAA,IACN,OAAO;AAAA,MACL,MAAM,CAAC,UAAU,UAAU,QAAQ,MAAM;AAAA,MACzC,SAAS,CAAC,cAAc,cAAc,cAAc,YAAY;AAAA,MAChE,eAAe,CAAC,SAAS;AAAA,MACzB,UAAU,CAAC,QAAQ;AAAA,IACrB;AAAA,IACA,aAAa;AAAA,MACX,eAAe,CAAC,EAAE,MAAM,CAAC,WAAW,UAAU,qBAAqB,EAAE,CAAC;AAAA,MACtE,SAAS,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;AAAA,MAC/B,uBAAuB,CAAC,EAAE,UAAU,CAAC,QAAQ,QAAQ,MAAM,EAAE,CAAC;AAAA,MAC9D,6BAA6B,CAAC,EAAE,aAAa,CAAC,QAAQ,YAAY,aAAa,MAAM,EAAE,CAAC;AAAA,MACxF,aAAa,CAAC,iBAAiB;AAAA,MAC/B,cAAc,CAAC,cAAc,kBAAkB;AAAA,MAC/C,eAAe,CAAC,cAAc,iBAAiB;AAAA,MAC/C,iBAAiB,CAAC,WAAW,cAAc;AAAA,MAC3C,cAAc;AAAA,QACZ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,6BAA6B,CAAC,qBAAqB;AAAA,MACnD,oBAAoB;AAAA,QAClB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA;AAAA,IAEA,wBAAwB;AAAA,MACtB,GAAG,CAAC,2BAA2B;AAAA,MAC/B,IAAI,CAAC,2BAA2B;AAAA,MAChC,GAAG,CAAC,2BAA2B;AAAA,MAC/B,IAAI,CAAC,2BAA2B;AAAA,IAClC;AAAA,EACF;AACF;AAGA,MAAM,UAAU,oBAA4B,aAAa;AAElD,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;","names":[]}
|