@thalavaisankar/atoms 0.0.0-stage → 0.2.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 +196 -2
- package/THIRD_PARTY_NOTICES.md +275 -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/theme-provider/index.mjs +6 -0
- package/dist/components/ui/theme-provider/index.mjs.map +1 -0
- package/dist/components/ui/theme-provider/theme-provider.mjs +70 -0
- package/dist/components/ui/theme-provider/theme-provider.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 +19397 -0
- package/dist/index.mjs +157 -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/theme.mjs +67 -0
- package/dist/lib/theme.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/components/ui/tabs/use-tabs-indicator.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\n\nimport { prefersReducedMotion } from \"../../../lib/motion.mjs\"\n\nconst ITEM_SELECTOR = \"[data-slot=tabs-trigger], [data-slot=tab-nav-link]\"\nconst ACTIVE_SELECTOR =\n \"[data-slot=tabs-trigger][data-state=active], [data-slot=tab-nav-link][data-state=active]\"\n\n/** Writes the active item's offset box to the indicator as CSS variables. */\nfunction place(indicator: HTMLElement, item: HTMLElement) {\n indicator.style.setProperty(\"--tabs-indicator-x\", `${item.offsetLeft}px`)\n indicator.style.setProperty(\"--tabs-indicator-y\", `${item.offsetTop}px`)\n indicator.style.setProperty(\"--tabs-indicator-w\", `${item.offsetWidth}px`)\n indicator.style.setProperty(\"--tabs-indicator-h\", `${item.offsetHeight}px`)\n}\n\n/**\n * Scrolls an overflowing list sideways so `item` is fully in view, without moving the page\n * (`scrollIntoView` would also scroll every scrolling ancestor). Left-to-right only: RTL scroll\n * offsets are negative and differ by engine, so an RTL list is left where it is.\n */\nfunction reveal(list: HTMLElement, item: HTMLElement, behavior: ScrollBehavior) {\n if (list.scrollWidth <= list.clientWidth) return\n if (getComputedStyle(list).direction === \"rtl\") return\n const start = item.offsetLeft\n const end = start + item.offsetWidth\n const viewStart = list.scrollLeft\n const viewEnd = viewStart + list.clientWidth\n const margin = Math.min(item.offsetWidth, list.clientWidth / 4)\n let left: number | null = null\n if (start < viewStart) left = Math.max(0, start - margin)\n else if (end > viewEnd) left = end - list.clientWidth + margin\n if (left !== null) list.scrollTo({ left, behavior })\n}\n\n/**\n * The sliding indicator: measures the active trigger (or nav link) inside `listRef` and moves the\n * indicator to it with a transform. Re-measures when the selection changes (a `data-state` flip,\n * however the value was set), when the list or any item resizes, and once web fonts settle. The\n * transition is armed one frame after the first placement (`data-ready`), so the indicator never\n * slides in from the origin on load. The active item is also scrolled into view in an overflowing\n * list: instantly on mount, smoothly afterwards (instantly under reduced motion).\n */\nexport function useTabsIndicator(\n listRef: React.RefObject<HTMLElement | null>,\n indicatorRef: React.RefObject<HTMLElement | null>,\n) {\n React.useLayoutEffect(() => {\n const list = listRef.current\n const indicator = indicatorRef.current\n if (!list || !indicator) return\n\n let active: HTMLElement | null = null\n let frame = 0\n let armed = false\n let disposed = false\n\n const measure = () => {\n const item = list.querySelector<HTMLElement>(ACTIVE_SELECTOR)\n if (!item) {\n indicator.removeAttribute(\"data-measured\")\n active = null\n return\n }\n place(indicator, item)\n indicator.setAttribute(\"data-measured\", \"\")\n if (item !== active) {\n const behavior: ScrollBehavior =\n active === null || prefersReducedMotion() ? \"instant\" : \"smooth\"\n active = item\n reveal(list, item, behavior)\n }\n if (!armed) {\n armed = true\n frame = requestAnimationFrame(() => indicator.setAttribute(\"data-ready\", \"\"))\n }\n }\n\n const resize = new ResizeObserver(measure)\n const observeItems = () => {\n resize.disconnect()\n resize.observe(list)\n list.querySelectorAll<HTMLElement>(ITEM_SELECTOR).forEach((item) => resize.observe(item))\n }\n\n const mutation = new MutationObserver((records) => {\n if (records.some((record) => record.type === \"childList\")) observeItems()\n measure()\n })\n\n measure()\n observeItems()\n mutation.observe(list, {\n attributes: true,\n attributeFilter: [\"data-state\"],\n childList: true,\n subtree: true,\n })\n document.fonts?.ready.then(() => {\n if (!disposed) measure()\n })\n\n return () => {\n disposed = true\n cancelAnimationFrame(frame)\n resize.disconnect()\n mutation.disconnect()\n }\n }, [listRef, indicatorRef])\n}\n\n/** Points a forwarded ref (callback or object) at `value`. */\nexport function assignRef<T>(ref: React.Ref<T> | undefined, value: T | null) {\n if (typeof ref === \"function\") ref(value)\n else if (ref) (ref as React.RefObject<T | null>).current = value\n}\n"],"mappings":";AAEA,YAAY,WAAW;AAEvB,SAAS,4BAA4B;AAErC,MAAM,gBAAgB;AACtB,MAAM,kBACJ;AAGF,SAAS,MAAM,WAAwB,MAAmB;AACxD,YAAU,MAAM,YAAY,sBAAsB,GAAG,KAAK,UAAU,IAAI;AACxE,YAAU,MAAM,YAAY,sBAAsB,GAAG,KAAK,SAAS,IAAI;AACvE,YAAU,MAAM,YAAY,sBAAsB,GAAG,KAAK,WAAW,IAAI;AACzE,YAAU,MAAM,YAAY,sBAAsB,GAAG,KAAK,YAAY,IAAI;AAC5E;AAOA,SAAS,OAAO,MAAmB,MAAmB,UAA0B;AAC9E,MAAI,KAAK,eAAe,KAAK,YAA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,CAAC,SAAS,OAAO,QAAQ,IAAI,CAAC;AAAA,IAC1F;AAEA,UAAM,WAAW,IAAI,iBAAiB,CAAC,YAAY;AACjD,UAAI,QAAQ,KAAK,CAAC,WAAW,OAAO,SAAS,WAAW,EAAG,cAAa;AACxE,cAAQ;AAAA,IACV,CAAC;AAED,YAAQ;AACR,iBAAa;AACb,aAAS,QAAQ,MAAM;AAAA,MACrB,YAAY;AAAA,MACZ,iBAAiB,CAAC,YAAY;AAAA,MAC9B,WAAW;AAAA,MACX,SAAS;AAAA,IACX,CAAC;AACD,aAAS,OAAO,MAAM,KAAK,MAAM;AAC/B,UAAI,CAAC,SAAU,SAAQ;AAAA,IACzB,CAAC;AAED,WAAO,MAAM;AACX,iBAAW;AACX,2BAAqB,KAAK;AAC1B,aAAO,WAAW;AAClB,eAAS,WAAW;AAAA,IACtB;AAAA,EACF,GAAG,CAAC,SAAS,YAAY,CAAC;AAC5B;AAGO,SAAS,UAAa,KAA+B,OAAiB;AAC3E,MAAI,OAAO,QAAQ,WAAY,KAAI,KAAK;AAAA,WAC/B,IAAK,CAAC,IAAkC,UAAU;AAC7D;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/tags-input/index.ts"],"sourcesContent":["export { TagsInput, tagsInputVariants, type TagsInputProps } from \"./tags-input.mjs\"\nexport { splitTags, commitTags, type TagRejectReason, type TagVerdict, type TagValidate } from \"./split.mjs\"\n"],"mappings":"AAAA,SAAS,WAAW,yBAA8C;AAClE,SAAS,WAAW,kBAA2E;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const characterDelimiters = (delimiters) => delimiters.filter((d) => d.length === 1);
|
|
2
|
+
const escape = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3
|
+
function splitTags(text, delimiters) {
|
|
4
|
+
const chars = characterDelimiters(delimiters).map(escape);
|
|
5
|
+
const pattern = new RegExp(`(?:${["\\r\\n", "\\n", "\\r", ...chars].join("|")})`);
|
|
6
|
+
return text.split(pattern);
|
|
7
|
+
}
|
|
8
|
+
function commitTags(parts, {
|
|
9
|
+
tags,
|
|
10
|
+
normalize = (raw) => raw.trim(),
|
|
11
|
+
allowDuplicates = false,
|
|
12
|
+
max,
|
|
13
|
+
validate
|
|
14
|
+
}) {
|
|
15
|
+
const added = [];
|
|
16
|
+
const rejected = [];
|
|
17
|
+
for (const part of parts) {
|
|
18
|
+
const tag = normalize(part);
|
|
19
|
+
if (!tag) continue;
|
|
20
|
+
const next = [...tags, ...added];
|
|
21
|
+
if (!allowDuplicates && next.includes(tag)) {
|
|
22
|
+
rejected.push({ tag, reason: "duplicate" });
|
|
23
|
+
} else if (max !== void 0 && next.length >= max) {
|
|
24
|
+
rejected.push({ tag, reason: "max" });
|
|
25
|
+
} else if (validate?.(tag, { tags: [...next, tag], index: next.length }) === false) {
|
|
26
|
+
rejected.push({ tag, reason: "invalid" });
|
|
27
|
+
} else {
|
|
28
|
+
added.push(tag);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return { added, rejected };
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
characterDelimiters,
|
|
35
|
+
commitTags,
|
|
36
|
+
splitTags
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=split.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/tags-input/split.ts"],"sourcesContent":["export type TagRejectReason = \"invalid\" | \"duplicate\" | \"max\"\nexport type TagVerdict = boolean | \"invalid\" | undefined\nexport type TagValidate = (tag: string, context: { tags: string[]; index: number }) => TagVerdict\n\n/** The single-character delimiters (\",\", \";\", \" \"), as opposed to key names (\"Enter\", \"Tab\"). */\nexport const characterDelimiters = (delimiters: string[]) => delimiters.filter((d) => d.length === 1)\n\nconst escape = (value: string) => value.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")\n\n/**\n * Splits text on the character delimiters and on line breaks, so a column pasted from a\n * spreadsheet arrives as one part per row.\n */\nexport function splitTags(text: string, delimiters: string[]): string[] {\n const chars = characterDelimiters(delimiters).map(escape)\n const pattern = new RegExp(`(?:${[\"\\\\r\\\\n\", \"\\\\n\", \"\\\\r\", ...chars].join(\"|\")})`)\n return text.split(pattern)\n}\n\n/**\n * Runs parts through normalize, then the duplicate, max and validate checks, in order. Returns\n * the tags to add and each rejection with its reason. An empty part is skipped silently.\n */\nexport function commitTags(\n parts: string[],\n {\n tags,\n normalize = (raw) => raw.trim(),\n allowDuplicates = false,\n max,\n validate,\n }: {\n tags: string[]\n normalize?: (raw: string) => string\n allowDuplicates?: boolean\n max?: number\n validate?: TagValidate\n },\n) {\n const added: string[] = []\n const rejected: { tag: string; reason: TagRejectReason }[] = []\n for (const part of parts) {\n const tag = normalize(part)\n if (!tag) continue\n const next = [...tags, ...added]\n if (!allowDuplicates && next.includes(tag)) {\n rejected.push({ tag, reason: \"duplicate\" })\n } else if (max !== undefined && next.length >= max) {\n rejected.push({ tag, reason: \"max\" })\n } else if (validate?.(tag, { tags: [...next, tag], index: next.length }) === false) {\n rejected.push({ tag, reason: \"invalid\" })\n } else {\n added.push(tag)\n }\n }\n return { added, rejected }\n}\n"],"mappings":"AAKO,MAAM,sBAAsB,CAAC,eAAyB,WAAW,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC;AAEpG,MAAM,SAAS,CAAC,UAAkB,MAAM,QAAQ,uBAAuB,MAAM;AAMtE,SAAS,UAAU,MAAc,YAAgC;AACtE,QAAM,QAAQ,oBAAoB,UAAU,EAAE,IAAI,MAAM;AACxD,QAAM,UAAU,IAAI,OAAO,MAAM,CAAC,UAAU,OAAO,OAAO,GAAG,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG;AAChF,SAAO,KAAK,MAAM,OAAO;AAC3B;AAMO,SAAS,WACd,OACA;AAAA,EACE;AAAA,EACA,YAAY,CAAC,QAAQ,IAAI,KAAK;AAAA,EAC9B,kBAAkB;AAAA,EAClB;AAAA,EACA;AACF,GAOA;AACA,QAAM,QAAkB,CAAC;AACzB,QAAM,WAAuD,CAAC;AAC9D,aAAW,QAAQ,OAAO;AACxB,UAAM,MAAM,UAAU,IAAI;AAC1B,QAAI,CAAC,IAAK;AACV,UAAM,OAAO,CAAC,GAAG,MAAM,GAAG,KAAK;AAC/B,QAAI,CAAC,mBAAmB,KAAK,SAAS,GAAG,GAAG;AAC1C,eAAS,KAAK,EAAE,KAAK,QAAQ,YAAY,CAAC;AAAA,IAC5C,WAAW,QAAQ,UAAa,KAAK,UAAU,KAAK;AAClD,eAAS,KAAK,EAAE,KAAK,QAAQ,MAAM,CAAC;AAAA,IACtC,WAAW,WAAW,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,GAAG,OAAO,KAAK,OAAO,CAAC,MAAM,OAAO;AAClF,eAAS,KAAK,EAAE,KAAK,QAAQ,UAAU,CAAC;AAAA,IAC1C,OAAO;AACL,YAAM,KAAK,GAAG;AAAA,IAChB;AAAA,EACF;AACA,SAAO,EAAE,OAAO,SAAS;AAC3B;","names":[]}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Chip, ChipRemove } from "../chip/index.mjs";
|
|
5
|
+
import { InputField, InputRoot } from "../input/index.mjs";
|
|
6
|
+
import { useControlSize } from "../../../lib/density.mjs";
|
|
7
|
+
import { useFieldContext } from "../../../lib/field-context.mjs";
|
|
8
|
+
import { useLabels } from "../../../lib/labels.mjs";
|
|
9
|
+
import { tv } from "../../../lib/tv.mjs";
|
|
10
|
+
import { cn } from "../../../lib/utils.mjs";
|
|
11
|
+
import {
|
|
12
|
+
characterDelimiters,
|
|
13
|
+
commitTags,
|
|
14
|
+
splitTags
|
|
15
|
+
} from "./split.mjs";
|
|
16
|
+
const tagsInputVariants = tv({
|
|
17
|
+
slots: {
|
|
18
|
+
root: "h-auto flex-wrap cursor-text gap-1 overflow-visible",
|
|
19
|
+
input: "min-w-16 grow basis-16 read-only:cursor-default",
|
|
20
|
+
tag: [
|
|
21
|
+
"min-w-0 cursor-default select-none focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
22
|
+
"data-fresh:animate-in data-fresh:fade-in-0 data-fresh:zoom-in-95 data-fresh:duration-fast data-fresh:ease-out motion-reduce:data-fresh:animate-none"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
variants: {
|
|
26
|
+
size: {
|
|
27
|
+
sm: {
|
|
28
|
+
root: "min-h-control-sm py-1.25 has-[[data-slot=tags-input-tag]]:pl-1.25 [--shake-distance:2px]",
|
|
29
|
+
input: "h-5"
|
|
30
|
+
},
|
|
31
|
+
md: {
|
|
32
|
+
root: "min-h-control-md py-1.25 has-[[data-slot=tags-input-tag]]:pl-1.25 [--shake-distance:3px]",
|
|
33
|
+
input: "h-6"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
root: "min-h-control-lg py-1.75 has-[[data-slot=tags-input-tag]]:pl-1.75 [--shake-distance:4px]",
|
|
37
|
+
input: "h-6"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: { size: "sm" }
|
|
42
|
+
});
|
|
43
|
+
const chipSize = { sm: "xs", md: "sm", lg: "sm" };
|
|
44
|
+
const removeSize = { xs: "-me-1 size-4", sm: "-me-1.5 size-5 [&>svg:not([class*='size-'])]:size-3" };
|
|
45
|
+
function useControllable(value, defaultValue, onChange) {
|
|
46
|
+
const [own, setOwn] = React.useState(defaultValue);
|
|
47
|
+
const current = value !== void 0 ? value : own;
|
|
48
|
+
const set = React.useCallback(
|
|
49
|
+
(next) => {
|
|
50
|
+
if (value === void 0) setOwn(next);
|
|
51
|
+
onChange?.(next);
|
|
52
|
+
},
|
|
53
|
+
[value, onChange]
|
|
54
|
+
);
|
|
55
|
+
return [current, set];
|
|
56
|
+
}
|
|
57
|
+
function TagsInput({
|
|
58
|
+
value: valueProp,
|
|
59
|
+
defaultValue = [],
|
|
60
|
+
onValueChange,
|
|
61
|
+
inputValue: inputValueProp,
|
|
62
|
+
onInputValueChange,
|
|
63
|
+
delimiters = [",", "Enter"],
|
|
64
|
+
addOnPaste = true,
|
|
65
|
+
addOnBlur = false,
|
|
66
|
+
allowDuplicates = false,
|
|
67
|
+
max,
|
|
68
|
+
normalize,
|
|
69
|
+
validate,
|
|
70
|
+
onReject,
|
|
71
|
+
size: sizeProp,
|
|
72
|
+
density,
|
|
73
|
+
hasError,
|
|
74
|
+
disabled = false,
|
|
75
|
+
readOnly = false,
|
|
76
|
+
placeholder,
|
|
77
|
+
name,
|
|
78
|
+
removeLabel,
|
|
79
|
+
className,
|
|
80
|
+
inputClassName,
|
|
81
|
+
onKeyDown,
|
|
82
|
+
onPaste,
|
|
83
|
+
onBlur,
|
|
84
|
+
"aria-label": ariaLabel,
|
|
85
|
+
"aria-labelledby": ariaLabelledBy,
|
|
86
|
+
ref,
|
|
87
|
+
...inputProps
|
|
88
|
+
}) {
|
|
89
|
+
const labels = useLabels();
|
|
90
|
+
const field = useFieldContext();
|
|
91
|
+
const size = useControlSize(sizeProp, density);
|
|
92
|
+
const slots = tagsInputVariants({ size });
|
|
93
|
+
const listId = React.useId();
|
|
94
|
+
const [tags, setTags] = useControllable(valueProp, defaultValue, onValueChange);
|
|
95
|
+
const [text, setText] = useControllable(inputValueProp, "", onInputValueChange);
|
|
96
|
+
const [selected, setSelected] = React.useState(null);
|
|
97
|
+
const [fresh, setFresh] = React.useState([]);
|
|
98
|
+
const [shake, setShake] = React.useState({ count: 0, active: false });
|
|
99
|
+
const [announcement, setAnnouncement] = React.useState("");
|
|
100
|
+
const inputRef = React.useRef(null);
|
|
101
|
+
const listRef = React.useRef(null);
|
|
102
|
+
const chars = characterDelimiters(delimiters);
|
|
103
|
+
const keys = delimiters.filter((d) => d.length > 1);
|
|
104
|
+
const editable = !disabled && !readOnly;
|
|
105
|
+
const verdicts = tags.map((tag, index) => validate ? validate(tag, { tags, index }) : true);
|
|
106
|
+
const anyInvalid = verdicts.some((v) => v === "invalid");
|
|
107
|
+
const nameLabel = ariaLabel ?? (ariaLabelledBy || field?.labelledBy ? void 0 : labels.tags);
|
|
108
|
+
const labelledBy = ariaLabelledBy ?? (ariaLabel ? void 0 : field?.labelledBy);
|
|
109
|
+
const setInputRef = React.useCallback(
|
|
110
|
+
(node) => {
|
|
111
|
+
inputRef.current = node;
|
|
112
|
+
if (typeof ref === "function") ref(node);
|
|
113
|
+
else if (ref) ref.current = node;
|
|
114
|
+
},
|
|
115
|
+
[ref]
|
|
116
|
+
);
|
|
117
|
+
const chip = (index) => listRef.current?.querySelectorAll("[data-slot=tags-input-tag]")[index] ?? null;
|
|
118
|
+
const focusInput = () => inputRef.current?.focus();
|
|
119
|
+
const focusChip = (index) => chip(index)?.focus();
|
|
120
|
+
const commit = (parts) => {
|
|
121
|
+
const { added, rejected } = commitTags(parts, { tags, normalize, allowDuplicates, max, validate });
|
|
122
|
+
if (added.length) {
|
|
123
|
+
setTags([...tags, ...added]);
|
|
124
|
+
setFresh(added.map((_, i) => tags.length + i));
|
|
125
|
+
setAnnouncement(added.map(labels.tagAdded).join(". "));
|
|
126
|
+
}
|
|
127
|
+
if (rejected.length) {
|
|
128
|
+
for (const { tag, reason } of rejected) onReject?.(tag, reason);
|
|
129
|
+
setShake((s) => ({ count: s.count + 1, active: true }));
|
|
130
|
+
setAnnouncement(rejected.map(({ tag, reason }) => labels.tagRejected(tag, reason)).join(". "));
|
|
131
|
+
}
|
|
132
|
+
return rejected.map((r) => r.tag);
|
|
133
|
+
};
|
|
134
|
+
const remove = (index) => {
|
|
135
|
+
const tag = tags[index];
|
|
136
|
+
setTags(tags.filter((_, i) => i !== index));
|
|
137
|
+
setAnnouncement(labels.tagRemoved(tag));
|
|
138
|
+
setSelected(null);
|
|
139
|
+
};
|
|
140
|
+
const commitText = () => {
|
|
141
|
+
if (!text.trim()) return false;
|
|
142
|
+
const left = commit([text]);
|
|
143
|
+
setText(left.join(", "));
|
|
144
|
+
return true;
|
|
145
|
+
};
|
|
146
|
+
const handleChange = (next) => {
|
|
147
|
+
if (chars.length && chars.some((c) => next.includes(c))) {
|
|
148
|
+
const parts = splitTags(next, chars);
|
|
149
|
+
const last = parts.pop() ?? "";
|
|
150
|
+
const left = commit(parts);
|
|
151
|
+
setText([...left, last].filter(Boolean).join(", ") || last);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
setText(next);
|
|
155
|
+
};
|
|
156
|
+
const onChipKeyDown = (event, index) => {
|
|
157
|
+
const last = tags.length - 1;
|
|
158
|
+
switch (event.key) {
|
|
159
|
+
case "ArrowLeft":
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
focusChip(Math.max(0, index - 1));
|
|
162
|
+
return;
|
|
163
|
+
case "ArrowRight":
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
if (index >= last) focusInput();
|
|
166
|
+
else focusChip(index + 1);
|
|
167
|
+
return;
|
|
168
|
+
case "Home":
|
|
169
|
+
event.preventDefault();
|
|
170
|
+
focusChip(0);
|
|
171
|
+
return;
|
|
172
|
+
case "End":
|
|
173
|
+
case "Escape":
|
|
174
|
+
event.preventDefault();
|
|
175
|
+
focusInput();
|
|
176
|
+
return;
|
|
177
|
+
case "Backspace":
|
|
178
|
+
case "Delete": {
|
|
179
|
+
event.preventDefault();
|
|
180
|
+
if (!editable) return;
|
|
181
|
+
remove(index);
|
|
182
|
+
const next = event.key === "Backspace" ? index - 1 : index;
|
|
183
|
+
setTimeout(() => next >= 0 && next < last ? focusChip(next) : focusInput(), 0);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
default:
|
|
187
|
+
if (event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey) focusInput();
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const shakeClass = shake.active ? cn(shake.count % 2 ? "animate-shake-a" : "animate-shake-b", "motion-reduce:animate-none") : void 0;
|
|
191
|
+
return /* @__PURE__ */ jsxs(
|
|
192
|
+
InputRoot,
|
|
193
|
+
{
|
|
194
|
+
size,
|
|
195
|
+
hasError: hasError ?? (anyInvalid ? true : void 0),
|
|
196
|
+
disabled,
|
|
197
|
+
"data-readonly": readOnly || void 0,
|
|
198
|
+
className: slots.root({ className: [shakeClass, className] }),
|
|
199
|
+
onAnimationEnd: (event) => {
|
|
200
|
+
if (event.target === event.currentTarget) setShake((s) => ({ ...s, active: false }));
|
|
201
|
+
},
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
ref: listRef,
|
|
207
|
+
id: listId,
|
|
208
|
+
role: "grid",
|
|
209
|
+
"aria-label": nameLabel,
|
|
210
|
+
"aria-labelledby": labelledBy,
|
|
211
|
+
"data-slot": "tags-input-list",
|
|
212
|
+
className: "contents",
|
|
213
|
+
children: tags.map((tag, index) => {
|
|
214
|
+
const invalid = verdicts[index] === "invalid";
|
|
215
|
+
const isSelected = selected === index;
|
|
216
|
+
return /* @__PURE__ */ jsx(
|
|
217
|
+
Chip,
|
|
218
|
+
{
|
|
219
|
+
asChild: true,
|
|
220
|
+
size: chipSize[size],
|
|
221
|
+
tone: invalid ? "destructive" : "neutral",
|
|
222
|
+
variant: invalid ? "outline" : "soft",
|
|
223
|
+
selected: isSelected,
|
|
224
|
+
className: slots.tag(),
|
|
225
|
+
children: /* @__PURE__ */ jsx(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
role: "row",
|
|
229
|
+
"aria-selected": isSelected,
|
|
230
|
+
tabIndex: -1,
|
|
231
|
+
"data-slot": "tags-input-tag",
|
|
232
|
+
"data-invalid": invalid || void 0,
|
|
233
|
+
"data-fresh": fresh.includes(index) || void 0,
|
|
234
|
+
onFocus: () => setSelected(index),
|
|
235
|
+
onBlur: () => setSelected((s) => s === index ? null : s),
|
|
236
|
+
onKeyDown: (event) => onChipKeyDown(event, index),
|
|
237
|
+
onAnimationEnd: () => setFresh((f) => f.filter((i) => i !== index)),
|
|
238
|
+
children: /* @__PURE__ */ jsxs("span", { role: "gridcell", className: "contents", children: [
|
|
239
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "tags-input-tag-label", className: "min-w-0 truncate", children: tag }),
|
|
240
|
+
invalid ? /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
241
|
+
", ",
|
|
242
|
+
labels.invalidTag
|
|
243
|
+
] }) : null,
|
|
244
|
+
editable ? /* @__PURE__ */ jsx(
|
|
245
|
+
ChipRemove,
|
|
246
|
+
{
|
|
247
|
+
tabIndex: -1,
|
|
248
|
+
className: removeSize[chipSize[size]],
|
|
249
|
+
label: (removeLabel ?? labels.removeTag)(tag),
|
|
250
|
+
onClick: (event) => {
|
|
251
|
+
event.stopPropagation();
|
|
252
|
+
remove(index);
|
|
253
|
+
focusInput();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
) : null
|
|
257
|
+
] })
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
},
|
|
261
|
+
`${tag}-${index}`
|
|
262
|
+
);
|
|
263
|
+
})
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ jsx(
|
|
267
|
+
InputField,
|
|
268
|
+
{
|
|
269
|
+
ref: setInputRef,
|
|
270
|
+
type: "text",
|
|
271
|
+
autoComplete: "off",
|
|
272
|
+
"aria-controls": listId,
|
|
273
|
+
"aria-labelledby": labelledBy,
|
|
274
|
+
"aria-label": ariaLabel,
|
|
275
|
+
value: text,
|
|
276
|
+
placeholder: tags.length ? void 0 : placeholder,
|
|
277
|
+
readOnly,
|
|
278
|
+
disabled,
|
|
279
|
+
className: slots.input({ className: inputClassName }),
|
|
280
|
+
onChange: (event) => handleChange(event.target.value),
|
|
281
|
+
onKeyDown: (event) => {
|
|
282
|
+
onKeyDown?.(event);
|
|
283
|
+
if (event.defaultPrevented || !editable) {
|
|
284
|
+
if (!editable && event.key === "ArrowLeft" && tags.length) focusChip(tags.length - 1);
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
const atStart = event.currentTarget.selectionStart === 0 && event.currentTarget.selectionEnd === 0;
|
|
288
|
+
if (keys.includes(event.key)) {
|
|
289
|
+
if (commitText()) event.preventDefault();
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
if (event.key === "Backspace" && text === "" && tags.length) {
|
|
293
|
+
event.preventDefault();
|
|
294
|
+
focusChip(tags.length - 1);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (event.key === "ArrowLeft" && atStart && tags.length) {
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
focusChip(tags.length - 1);
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
onPaste: (event) => {
|
|
303
|
+
onPaste?.(event);
|
|
304
|
+
if (event.defaultPrevented || !addOnPaste || !editable) return;
|
|
305
|
+
const pasted = event.clipboardData.getData("text");
|
|
306
|
+
const parts = splitTags(text + pasted, chars);
|
|
307
|
+
if (parts.length < 2) return;
|
|
308
|
+
event.preventDefault();
|
|
309
|
+
setText(commit(parts).join(", "));
|
|
310
|
+
},
|
|
311
|
+
onBlur: (event) => {
|
|
312
|
+
onBlur?.(event);
|
|
313
|
+
if (addOnBlur && editable) commitText();
|
|
314
|
+
},
|
|
315
|
+
...inputProps
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
/* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: announcement }),
|
|
319
|
+
name ? tags.map((tag, index) => /* @__PURE__ */ jsx("input", { type: "hidden", name, value: tag }, `${tag}-${index}`)) : null
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
export {
|
|
325
|
+
TagsInput,
|
|
326
|
+
tagsInputVariants
|
|
327
|
+
};
|
|
328
|
+
//# sourceMappingURL=tags-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/tags-input/tags-input.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\n\nimport { Chip, ChipRemove } from \"../chip/index.mjs\"\nimport { InputField, InputRoot } from \"../input/index.mjs\"\nimport { useControlSize, type ControlSize, type Density } from \"../../../lib/density.mjs\"\nimport { useFieldContext } from \"../../../lib/field-context.mjs\"\nimport { useLabels } from \"../../../lib/labels.mjs\"\nimport { tv } from \"../../../lib/tv.mjs\"\nimport { cn } from \"../../../lib/utils.mjs\"\nimport {\n characterDelimiters,\n commitTags,\n splitTags,\n type TagRejectReason,\n type TagValidate,\n} from \"./split.mjs\"\n\n/*\n * A text field that turns what you type into chips inside the field. The frame is Input's (border,\n * focus ring, destructive state, size ladder) with a minimum height instead of a fixed one, so a\n * second row of chips grows it. The chips follow the tag-group pattern: a grid named by the label,\n * one row per chip with its text and remove button in one cell. The text input is the only tab stop.\n */\nexport const tagsInputVariants = tv({\n slots: {\n root: \"h-auto flex-wrap cursor-text gap-1 overflow-visible\",\n input: \"min-w-16 grow basis-16 read-only:cursor-default\",\n tag: [\n \"min-w-0 cursor-default select-none focus-visible:ring-0 focus-visible:ring-offset-0\",\n \"data-fresh:animate-in data-fresh:fade-in-0 data-fresh:zoom-in-95 data-fresh:duration-fast data-fresh:ease-out motion-reduce:data-fresh:animate-none\",\n ],\n },\n variants: {\n size: {\n sm: {\n root: \"min-h-control-sm py-1.25 has-[[data-slot=tags-input-tag]]:pl-1.25 [--shake-distance:2px]\",\n input: \"h-5\",\n },\n md: {\n root: \"min-h-control-md py-1.25 has-[[data-slot=tags-input-tag]]:pl-1.25 [--shake-distance:3px]\",\n input: \"h-6\",\n },\n lg: {\n root: \"min-h-control-lg py-1.75 has-[[data-slot=tags-input-tag]]:pl-1.75 [--shake-distance:4px]\",\n input: \"h-6\",\n },\n },\n },\n defaultVariants: { size: \"sm\" },\n})\n\n// Chips step with the field: 20px in a small field, 24px above, so the inset stays even.\nconst chipSize: Record<ControlSize, \"xs\" | \"sm\"> = { sm: \"xs\", md: \"sm\", lg: \"sm\" }\n// The remove button sits inside the row cell, out of the chip's own child selectors, so it takes them here.\nconst removeSize = { xs: \"-me-1 size-4\", sm: \"-me-1.5 size-5 [&>svg:not([class*='size-'])]:size-3\" }\n\nfunction useControllable<T>(value: T | undefined, defaultValue: T, onChange?: (next: T) => void) {\n const [own, setOwn] = React.useState(defaultValue)\n const current = value !== undefined ? value : own\n const set = React.useCallback(\n (next: T) => {\n if (value === undefined) setOwn(next)\n onChange?.(next)\n },\n [value, onChange],\n )\n return [current, set] as const\n}\n\nexport interface TagsInputProps\n extends Omit<React.ComponentProps<\"input\">, \"value\" | \"defaultValue\" | \"size\" | \"onChange\"> {\n value?: string[]\n defaultValue?: string[]\n onValueChange?: (value: string[]) => void\n inputValue?: string\n onInputValueChange?: (value: string) => void\n /** What ends a tag: one character splits typed and pasted text; a key name commits on that key. */\n delimiters?: string[]\n /** Splits pasted text on the character delimiters and on line breaks. */\n addOnPaste?: boolean\n /** Commits the typed text when focus leaves the field. */\n addOnBlur?: boolean\n allowDuplicates?: boolean\n /** The most tags the field holds. */\n max?: number\n /** Runs on every part before it's checked. An empty result is ignored. */\n normalize?: (raw: string) => string\n /** false rejects a tag; \"invalid\" keeps it as a destructive chip. Also runs on every render. */\n validate?: TagValidate\n onReject?: (tag: string, reason: TagRejectReason) => void\n size?: ControlSize\n density?: Density\n /** Destructive frame. Unset, it turns on while any chip is invalid, then follows a Field. */\n hasError?: boolean\n disabled?: boolean\n readOnly?: boolean\n placeholder?: string\n /** Renders a hidden input per tag under this name, so the list posts with a native form. */\n name?: string\n /** The remove button's accessible name. Overrides the labels provider. */\n removeLabel?: (tag: string) => string\n /** Merged onto the text input; className goes to the frame. */\n inputClassName?: string\n}\n\nexport function TagsInput({\n value: valueProp,\n defaultValue = [],\n onValueChange,\n inputValue: inputValueProp,\n onInputValueChange,\n delimiters = [\",\", \"Enter\"],\n addOnPaste = true,\n addOnBlur = false,\n allowDuplicates = false,\n max,\n normalize,\n validate,\n onReject,\n size: sizeProp,\n density,\n hasError,\n disabled = false,\n readOnly = false,\n placeholder,\n name,\n removeLabel,\n className,\n inputClassName,\n onKeyDown,\n onPaste,\n onBlur,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n ref,\n ...inputProps\n}: TagsInputProps) {\n const labels = useLabels()\n const field = useFieldContext()\n const size = useControlSize(sizeProp, density)\n const slots = tagsInputVariants({ size })\n const listId = React.useId()\n const [tags, setTags] = useControllable(valueProp, defaultValue, onValueChange)\n const [text, setText] = useControllable(inputValueProp, \"\", onInputValueChange)\n const [selected, setSelected] = React.useState<number | null>(null)\n const [fresh, setFresh] = React.useState<number[]>([])\n const [shake, setShake] = React.useState({ count: 0, active: false })\n const [announcement, setAnnouncement] = React.useState(\"\")\n const inputRef = React.useRef<HTMLInputElement | null>(null)\n const listRef = React.useRef<HTMLDivElement | null>(null)\n const chars = characterDelimiters(delimiters)\n const keys = delimiters.filter((d) => d.length > 1)\n const editable = !disabled && !readOnly\n\n const verdicts = tags.map((tag, index) => (validate ? validate(tag, { tags, index }) : true))\n const anyInvalid = verdicts.some((v) => v === \"invalid\")\n const nameLabel = ariaLabel ?? (ariaLabelledBy || field?.labelledBy ? undefined : labels.tags)\n const labelledBy = ariaLabelledBy ?? (ariaLabel ? undefined : field?.labelledBy)\n\n const setInputRef = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof ref === \"function\") ref(node)\n else if (ref) ref.current = node\n },\n [ref],\n )\n\n const chip = (index: number) =>\n listRef.current?.querySelectorAll<HTMLElement>(\"[data-slot=tags-input-tag]\")[index] ?? null\n const focusInput = () => inputRef.current?.focus()\n const focusChip = (index: number) => chip(index)?.focus()\n\n /** Adds what passes, rejects the rest, and returns the rejected text to keep in the input. */\n const commit = (parts: string[]) => {\n const { added, rejected } = commitTags(parts, { tags, normalize, allowDuplicates, max, validate })\n if (added.length) {\n setTags([...tags, ...added])\n setFresh(added.map((_, i) => tags.length + i))\n setAnnouncement(added.map(labels.tagAdded).join(\". \"))\n }\n if (rejected.length) {\n for (const { tag, reason } of rejected) onReject?.(tag, reason)\n setShake((s) => ({ count: s.count + 1, active: true }))\n setAnnouncement(rejected.map(({ tag, reason }) => labels.tagRejected(tag, reason)).join(\". \"))\n }\n return rejected.map((r) => r.tag)\n }\n\n const remove = (index: number) => {\n const tag = tags[index]\n setTags(tags.filter((_, i) => i !== index))\n setAnnouncement(labels.tagRemoved(tag))\n setSelected(null)\n }\n\n const commitText = () => {\n if (!text.trim()) return false\n const left = commit([text])\n setText(left.join(\", \"))\n return true\n }\n\n const handleChange = (next: string) => {\n if (chars.length && chars.some((c) => next.includes(c))) {\n const parts = splitTags(next, chars)\n const last = parts.pop() ?? \"\"\n const left = commit(parts)\n setText([...left, last].filter(Boolean).join(\", \") || last)\n return\n }\n setText(next)\n }\n\n const onChipKeyDown = (event: React.KeyboardEvent<HTMLDivElement>, index: number) => {\n const last = tags.length - 1\n switch (event.key) {\n case \"ArrowLeft\":\n event.preventDefault()\n focusChip(Math.max(0, index - 1))\n return\n case \"ArrowRight\":\n event.preventDefault()\n if (index >= last) focusInput()\n else focusChip(index + 1)\n return\n case \"Home\":\n event.preventDefault()\n focusChip(0)\n return\n case \"End\":\n case \"Escape\":\n event.preventDefault()\n focusInput()\n return\n case \"Backspace\":\n case \"Delete\": {\n event.preventDefault()\n if (!editable) return\n remove(index)\n // Focus moves to the neighbour that slides into place, or back to the input.\n const next = event.key === \"Backspace\" ? index - 1 : index\n setTimeout(() => (next >= 0 && next < last ? focusChip(next) : focusInput()), 0)\n return\n }\n default:\n // Typing a letter on a chip goes back to the input, which takes the key.\n if (event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey) focusInput()\n }\n }\n\n const shakeClass = shake.active\n ? cn(shake.count % 2 ? \"animate-shake-a\" : \"animate-shake-b\", \"motion-reduce:animate-none\")\n : undefined\n\n return (\n <InputRoot\n size={size}\n hasError={hasError ?? (anyInvalid ? true : undefined)}\n disabled={disabled}\n data-readonly={readOnly || undefined}\n className={slots.root({ className: [shakeClass, className] })}\n onAnimationEnd={(event) => {\n if (event.target === event.currentTarget) setShake((s) => ({ ...s, active: false }))\n }}\n >\n <div\n ref={listRef}\n id={listId}\n role=\"grid\"\n aria-label={nameLabel}\n aria-labelledby={labelledBy}\n data-slot=\"tags-input-list\"\n className=\"contents\"\n >\n {tags.map((tag, index) => {\n const invalid = verdicts[index] === \"invalid\"\n const isSelected = selected === index\n return (\n <Chip\n key={`${tag}-${index}`}\n asChild\n size={chipSize[size]}\n tone={invalid ? \"destructive\" : \"neutral\"}\n variant={invalid ? \"outline\" : \"soft\"}\n selected={isSelected}\n className={slots.tag()}\n >\n <div\n role=\"row\"\n aria-selected={isSelected}\n tabIndex={-1}\n data-slot=\"tags-input-tag\"\n data-invalid={invalid || undefined}\n data-fresh={fresh.includes(index) || undefined}\n onFocus={() => setSelected(index)}\n onBlur={() => setSelected((s) => (s === index ? null : s))}\n onKeyDown={(event) => onChipKeyDown(event, index)}\n onAnimationEnd={() => setFresh((f) => f.filter((i) => i !== index))}\n >\n <span role=\"gridcell\" className=\"contents\">\n <span data-slot=\"tags-input-tag-label\" className=\"min-w-0 truncate\">\n {tag}\n </span>\n {invalid ? <span className=\"sr-only\">, {labels.invalidTag}</span> : null}\n {editable ? (\n <ChipRemove\n tabIndex={-1}\n className={removeSize[chipSize[size]]}\n label={(removeLabel ?? labels.removeTag)(tag)}\n onClick={(event) => {\n event.stopPropagation()\n remove(index)\n focusInput()\n }}\n />\n ) : null}\n </span>\n </div>\n </Chip>\n )\n })}\n </div>\n <InputField\n ref={setInputRef}\n type=\"text\"\n autoComplete=\"off\"\n aria-controls={listId}\n aria-labelledby={labelledBy}\n aria-label={ariaLabel}\n value={text}\n placeholder={tags.length ? undefined : placeholder}\n readOnly={readOnly}\n disabled={disabled}\n className={slots.input({ className: inputClassName })}\n onChange={(event) => handleChange(event.target.value)}\n onKeyDown={(event) => {\n onKeyDown?.(event)\n if (event.defaultPrevented || !editable) {\n if (!editable && event.key === \"ArrowLeft\" && tags.length) focusChip(tags.length - 1)\n return\n }\n const atStart = event.currentTarget.selectionStart === 0 && event.currentTarget.selectionEnd === 0\n if (keys.includes(event.key)) {\n // Enter on an empty input still submits the form; Tab with nothing typed moves on.\n if (commitText()) event.preventDefault()\n return\n }\n if (event.key === \"Backspace\" && text === \"\" && tags.length) {\n // The first Backspace selects the last chip; a second one on it removes it.\n event.preventDefault()\n focusChip(tags.length - 1)\n return\n }\n if (event.key === \"ArrowLeft\" && atStart && tags.length) {\n event.preventDefault()\n focusChip(tags.length - 1)\n }\n }}\n onPaste={(event) => {\n onPaste?.(event)\n if (event.defaultPrevented || !addOnPaste || !editable) return\n const pasted = event.clipboardData.getData(\"text\")\n const parts = splitTags(text + pasted, chars)\n if (parts.length < 2) return\n event.preventDefault()\n setText(commit(parts).join(\", \"))\n }}\n onBlur={(event) => {\n onBlur?.(event)\n if (addOnBlur && editable) commitText()\n }}\n {...inputProps}\n />\n <span role=\"status\" aria-live=\"polite\" className=\"sr-only\">\n {announcement}\n </span>\n {name ? tags.map((tag, index) => <input key={`${tag}-${index}`} type=\"hidden\" name={name} value={tag} />) : null}\n </InputRoot>\n )\n}\n"],"mappings":";AA+SkB,cAGW,YAHX;AA7SlB,YAAY,WAAW;AAEvB,SAAS,MAAM,kBAAkB;AACjC,SAAS,YAAY,iBAAiB;AACtC,SAAS,sBAAsD;AAC/D,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,UAAU;AACnB,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AAQA,MAAM,oBAAoB,GAAG;AAAA,EAClC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,MACH;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA,IACR,MAA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SAAS,CAAC;AACzB;AAAA,cACF;AACA,kBAAI,MAAM,QAAQ,eAAe,WAAW,KAAK,QAAQ;AACvD,sBAAM,eAAe;AACrB,0BAAU,KAAK,SAAS,CAAC;AAAA,cAC3B;AAAA,YACF;AAAA,YACA,SAAS,CAAC,UAAU;AAClB,wBAAU,KAAK;AACf,kBAAI,MAAM,oBAAoB,CAAC,cAAc,CAAC,SAAU;AACxD,oBAAM,SAAS,MAAM,cAAc,QAAQ,MAAM;AACjD,oBAAM,QAAQ,UAAU,OAAO,QAAQ,KAAK;AAC5C,kBAAI,MAAM,SAAS,EAAG;AACtB,oBAAM,eAAe;AACrB,sBAAQ,OAAO,KAAK,EAAE,KAAK,IAAI,CAAC;AAAA,YAClC;AAAA,YACA,QAAQ,CAAC,UAAU;AACjB,uBAAS,KAAK;AACd,kBAAI,aAAa,SAAU,YAAW;AAAA,YACxC;AAAA,YACC,GAAG;AAAA;AAAA,QACN;AAAA,QACA,oBAAC,UAAK,MAAK,UAAS,aAAU,UAAS,WAAU,WAC9C,wBACH;AAAA,QACC,OAAO,KAAK,IAAI,CAAC,KAAK,UAAU,oBAAC,WAA8B,MAAK,UAAS,MAAY,OAAO,OAApD,GAAG,GAAG,IAAI,KAAK,EAA0C,CAAE,IAAI;AAAA;AAAA;AAAA,EAC9G;AAEJ;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Terminal,
|
|
3
|
+
TerminalBar,
|
|
4
|
+
TerminalTab,
|
|
5
|
+
TerminalIndicator,
|
|
6
|
+
TerminalTitle,
|
|
7
|
+
TerminalTitleTag,
|
|
8
|
+
TerminalControls,
|
|
9
|
+
TerminalCaption,
|
|
10
|
+
TerminalCaptionButton,
|
|
11
|
+
TerminalScreen,
|
|
12
|
+
TerminalWatermark,
|
|
13
|
+
TerminalLine,
|
|
14
|
+
TerminalInputLine,
|
|
15
|
+
TerminalPrompt,
|
|
16
|
+
TerminalField,
|
|
17
|
+
TerminalTray,
|
|
18
|
+
terminalVariants,
|
|
19
|
+
terminalLineVariants
|
|
20
|
+
} from "./terminal.mjs";
|
|
21
|
+
export {
|
|
22
|
+
Terminal,
|
|
23
|
+
TerminalBar,
|
|
24
|
+
TerminalCaption,
|
|
25
|
+
TerminalCaptionButton,
|
|
26
|
+
TerminalControls,
|
|
27
|
+
TerminalField,
|
|
28
|
+
TerminalIndicator,
|
|
29
|
+
TerminalInputLine,
|
|
30
|
+
TerminalLine,
|
|
31
|
+
TerminalPrompt,
|
|
32
|
+
TerminalScreen,
|
|
33
|
+
TerminalTab,
|
|
34
|
+
TerminalTitle,
|
|
35
|
+
TerminalTitleTag,
|
|
36
|
+
TerminalTray,
|
|
37
|
+
TerminalWatermark,
|
|
38
|
+
terminalLineVariants,
|
|
39
|
+
terminalVariants
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/terminal/index.ts"],"sourcesContent":["export {\n Terminal,\n TerminalBar,\n TerminalTab,\n TerminalIndicator,\n TerminalTitle,\n TerminalTitleTag,\n TerminalControls,\n TerminalCaption,\n TerminalCaptionButton,\n TerminalScreen,\n TerminalWatermark,\n TerminalLine,\n TerminalInputLine,\n TerminalPrompt,\n TerminalField,\n TerminalTray,\n terminalVariants,\n terminalLineVariants,\n type TerminalProps,\n type TerminalTabProps,\n type TerminalCaptionButtonProps,\n type TerminalCaptionAction,\n type TerminalScreenProps,\n type TerminalLineProps,\n type TerminalPromptProps,\n type TerminalFieldProps,\n type TerminalTone,\n} from \"./terminal.mjs\"\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAUK;","names":[]}
|