@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,350 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Toolbar as ToolbarPrimitive } from "radix-ui";
|
|
5
|
+
import { ColorPicker, ColorPickerContent, ColorPickerPopover, ColorPickerTrigger } from "../color-picker/index.mjs";
|
|
6
|
+
import { Kbd } from "../kbd/index.mjs";
|
|
7
|
+
import { Tooltip } from "../tooltip/index.mjs";
|
|
8
|
+
import { useControllableState } from "../input/use-controllable-state.mjs";
|
|
9
|
+
import { createContext } from "../../../lib/create-context.mjs";
|
|
10
|
+
import { hitY } from "../../../lib/hit-area.mjs";
|
|
11
|
+
import { tv } from "../../../lib/tv.mjs";
|
|
12
|
+
import { InkTrayArt } from "./ink-tray-art.mjs";
|
|
13
|
+
const swatch = [
|
|
14
|
+
"relative inline-flex shrink-0 cursor-pointer items-center justify-center",
|
|
15
|
+
"[--swatch-ring:color-mix(in_oklch,var(--swatch),black_22%)] dark:[--swatch-ring:color-mix(in_oklch,var(--swatch),white_22%)]",
|
|
16
|
+
"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:ring-1 after:ring-inset after:ring-media-edge",
|
|
17
|
+
"[--swatch-gap:var(--surface,var(--background))] motion-reduce-fade",
|
|
18
|
+
"data-[state=off]:hover:shadow-[inset_0_0_0_2px_color-mix(in_oklch,var(--swatch-ring)_50%,transparent)]",
|
|
19
|
+
"data-[state=on]:shadow-[inset_0_0_0_2px_var(--swatch-ring),inset_0_0_0_4px_var(--swatch-gap)]",
|
|
20
|
+
"outline-none focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-[0.3125rem] focus-visible:outline-focus",
|
|
21
|
+
"disabled:cursor-not-allowed disabled:opacity-40",
|
|
22
|
+
"bg-[var(--swatch)] size-6 rounded-full before:absolute before:-inset-2",
|
|
23
|
+
"active:scale-100 transition-[box-shadow,opacity,scale] duration-base ease-lift data-[state=on]:scale-[1.06]",
|
|
24
|
+
"motion-reduce:transition-[box-shadow,opacity] motion-reduce:data-[state=on]:scale-100"
|
|
25
|
+
];
|
|
26
|
+
const inkTrayVariants = tv({
|
|
27
|
+
slots: {
|
|
28
|
+
root: [
|
|
29
|
+
"relative isolate inline-flex max-w-full flex-col items-stretch",
|
|
30
|
+
"max-sm:max-w-full max-sm:overflow-x-auto max-sm:overflow-y-hidden max-sm:scroll-fade-x max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"
|
|
31
|
+
],
|
|
32
|
+
tools: "relative -mb-2.5 flex h-20 items-start gap-1.5 self-start overflow-clip px-3",
|
|
33
|
+
tool: [
|
|
34
|
+
"relative h-28 w-12 shrink-0 cursor-pointer rounded-t-lg outline-none translate-y-6 drop-shadow-xs",
|
|
35
|
+
"transition-[translate,filter] duration-base ease-lift motion-reduce:transition-[filter] motion-reduce:duration-fast motion-reduce:ease-linear",
|
|
36
|
+
"data-[state=off]:hover:translate-y-5.5 data-[state=on]:translate-y-1 data-[state=on]:drop-shadow-md",
|
|
37
|
+
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus disabled:pointer-events-none disabled:opacity-40",
|
|
38
|
+
"[&>svg]:pointer-events-none [&>svg]:size-full"
|
|
39
|
+
],
|
|
40
|
+
bar: [
|
|
41
|
+
"isolate inline-flex items-center bg-popover text-popover-foreground shadow-lg ring-1 ring-inset ring-border [--surface:var(--popover)]",
|
|
42
|
+
"relative z-10 max-w-full flex-row gap-1 rounded-lg p-2",
|
|
43
|
+
"overflow-x-auto overscroll-x-contain scroll-fade-x [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
44
|
+
"max-sm:max-w-full max-sm:overflow-x-auto max-sm:overflow-y-hidden max-sm:scroll-fade-x"
|
|
45
|
+
],
|
|
46
|
+
sizes: "flex items-center gap-1",
|
|
47
|
+
size: [
|
|
48
|
+
"inline-flex shrink-0 cursor-pointer select-none items-center justify-center text-muted-foreground",
|
|
49
|
+
hitY,
|
|
50
|
+
"transition-[background-color,color,scale] duration-fast ease-out hover:bg-foreground/9 hover:text-foreground motion-reduce-fade",
|
|
51
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background",
|
|
52
|
+
"disabled:pointer-events-none disabled:opacity-40 [&_svg]:shrink-0 [&_svg]:pointer-events-none rounded-sm",
|
|
53
|
+
"data-[state=on]:bg-foreground/13 data-[state=on]:text-foreground",
|
|
54
|
+
"h-9 w-9 [&_svg:not([class*='size-'])]:size-6 max-sm:focus-visible:ring-inset max-sm:focus-visible:ring-offset-0 active:scale-100"
|
|
55
|
+
],
|
|
56
|
+
separator: "shrink-0 rounded-full bg-border w-px mx-1.5 h-6",
|
|
57
|
+
colors: "flex items-center gap-2.5 px-2",
|
|
58
|
+
color: [...swatch, "p-0"],
|
|
59
|
+
custom: [
|
|
60
|
+
...swatch,
|
|
61
|
+
"not-data-[pressed]:hover:ring-[1.5px] not-data-[pressed]:hover:ring-foreground/50 data-[pressed]:ring-2 data-[pressed]:ring-foreground",
|
|
62
|
+
"[background-image:conic-gradient(in_hsl_longer_hue,var(--destructive),var(--destructive))] p-0.75"
|
|
63
|
+
],
|
|
64
|
+
customDot: [
|
|
65
|
+
"size-full rounded-full ring-2 ring-[var(--surface)] transition-[scale,opacity] duration-base ease-lift motion-reduce:transition-[opacity]",
|
|
66
|
+
"scale-0 opacity-0 motion-reduce:scale-100 group-data-[pressed]/custom:scale-100 group-data-[pressed]/custom:opacity-100"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const [InkTrayProvider, useInkTray] = createContext("InkTray");
|
|
71
|
+
const NO_INKS = {};
|
|
72
|
+
function InkTray({
|
|
73
|
+
className,
|
|
74
|
+
tool: toolProp,
|
|
75
|
+
defaultTool = "",
|
|
76
|
+
onToolChange,
|
|
77
|
+
inks: inksProp,
|
|
78
|
+
defaultInks = NO_INKS,
|
|
79
|
+
onInksChange,
|
|
80
|
+
children,
|
|
81
|
+
...props
|
|
82
|
+
}) {
|
|
83
|
+
const [tool, setTool] = useControllableState({ prop: toolProp, defaultProp: defaultTool, onChange: onToolChange });
|
|
84
|
+
const [inks, setInks] = useControllableState({ prop: inksProp, defaultProp: defaultInks, onChange: onInksChange });
|
|
85
|
+
const [inklessTools, setInkless] = React.useState({});
|
|
86
|
+
const [presetColors, setPresetColors] = React.useState([]);
|
|
87
|
+
const register = React.useCallback((value, inkless) => {
|
|
88
|
+
setInkless((current) => current[value] === inkless ? current : { ...current, [value]: inkless });
|
|
89
|
+
return () => setInkless((current) => {
|
|
90
|
+
const next = { ...current };
|
|
91
|
+
delete next[value];
|
|
92
|
+
return next;
|
|
93
|
+
});
|
|
94
|
+
}, []);
|
|
95
|
+
const registerColor = React.useCallback((color) => {
|
|
96
|
+
setPresetColors((current) => current.includes(color) ? current : [...current, color]);
|
|
97
|
+
return () => setPresetColors((current) => current.filter((c) => c !== color));
|
|
98
|
+
}, []);
|
|
99
|
+
const setInk = React.useCallback(
|
|
100
|
+
(patch) => {
|
|
101
|
+
if (!tool) return;
|
|
102
|
+
setInks({ ...inks, [tool]: { ...inks[tool], ...patch } });
|
|
103
|
+
},
|
|
104
|
+
[tool, inks, setInks]
|
|
105
|
+
);
|
|
106
|
+
return /* @__PURE__ */ jsx(
|
|
107
|
+
InkTrayProvider,
|
|
108
|
+
{
|
|
109
|
+
tool,
|
|
110
|
+
setTool,
|
|
111
|
+
inks,
|
|
112
|
+
setInk,
|
|
113
|
+
inkless: Boolean(inklessTools[tool]),
|
|
114
|
+
register,
|
|
115
|
+
registerColor,
|
|
116
|
+
presetColors,
|
|
117
|
+
children: /* @__PURE__ */ jsx(
|
|
118
|
+
ToolbarPrimitive.Root,
|
|
119
|
+
{
|
|
120
|
+
"data-slot": "ink-tray",
|
|
121
|
+
orientation: "horizontal",
|
|
122
|
+
className: inkTrayVariants().root({ className }),
|
|
123
|
+
...props,
|
|
124
|
+
children
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
function InkTrayTools({
|
|
131
|
+
className,
|
|
132
|
+
"aria-label": ariaLabel = "Tool",
|
|
133
|
+
...props
|
|
134
|
+
}) {
|
|
135
|
+
const { tool, setTool } = useInkTray("InkTrayTools");
|
|
136
|
+
return /* @__PURE__ */ jsx(
|
|
137
|
+
ToolbarPrimitive.ToggleGroup,
|
|
138
|
+
{
|
|
139
|
+
type: "single",
|
|
140
|
+
"data-slot": "ink-tray-tools",
|
|
141
|
+
"aria-label": ariaLabel,
|
|
142
|
+
value: tool,
|
|
143
|
+
onValueChange: (value) => value && setTool(value),
|
|
144
|
+
className: inkTrayVariants().tools({ className }),
|
|
145
|
+
...props
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function withTooltip(label, shortcut, node) {
|
|
150
|
+
return /* @__PURE__ */ jsx(
|
|
151
|
+
Tooltip,
|
|
152
|
+
{
|
|
153
|
+
content: shortcut ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
154
|
+
label,
|
|
155
|
+
" ",
|
|
156
|
+
/* @__PURE__ */ jsx(Kbd, { children: shortcut })
|
|
157
|
+
] }) : label,
|
|
158
|
+
children: node
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
function InkTrayTool({
|
|
163
|
+
className,
|
|
164
|
+
value,
|
|
165
|
+
label,
|
|
166
|
+
kind = "pen",
|
|
167
|
+
inkless,
|
|
168
|
+
shortcut,
|
|
169
|
+
style,
|
|
170
|
+
children,
|
|
171
|
+
...props
|
|
172
|
+
}) {
|
|
173
|
+
const { inks, register } = useInkTray("InkTrayTool");
|
|
174
|
+
const isInkless = inkless ?? kind === "eraser";
|
|
175
|
+
React.useEffect(() => register(value, isInkless), [register, value, isInkless]);
|
|
176
|
+
return withTooltip(
|
|
177
|
+
label,
|
|
178
|
+
shortcut,
|
|
179
|
+
/* @__PURE__ */ jsx(
|
|
180
|
+
ToolbarPrimitive.ToggleItem,
|
|
181
|
+
{
|
|
182
|
+
value,
|
|
183
|
+
"data-slot": "ink-tray-tool",
|
|
184
|
+
"data-kind": kind,
|
|
185
|
+
"aria-label": label,
|
|
186
|
+
className: inkTrayVariants().tool({ className }),
|
|
187
|
+
style: { "--ink": inks[value]?.color ?? "var(--foreground)", ...style },
|
|
188
|
+
...props,
|
|
189
|
+
children: children ?? /* @__PURE__ */ jsx(InkTrayArt, { kind })
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
function InkTrayBar({ className, ...props }) {
|
|
195
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "ink-tray-bar", className: inkTrayVariants().bar({ className }), ...props });
|
|
196
|
+
}
|
|
197
|
+
function InkTraySizes({
|
|
198
|
+
className,
|
|
199
|
+
"aria-label": ariaLabel = "Stroke size",
|
|
200
|
+
...props
|
|
201
|
+
}) {
|
|
202
|
+
const { tool, inks, setInk } = useInkTray("InkTraySizes");
|
|
203
|
+
return /* @__PURE__ */ jsx(
|
|
204
|
+
ToolbarPrimitive.ToggleGroup,
|
|
205
|
+
{
|
|
206
|
+
type: "single",
|
|
207
|
+
"data-slot": "ink-tray-sizes",
|
|
208
|
+
"aria-label": ariaLabel,
|
|
209
|
+
value: inks[tool]?.size ?? "",
|
|
210
|
+
onValueChange: (size) => size && setInk({ size }),
|
|
211
|
+
disabled: !tool,
|
|
212
|
+
className: inkTrayVariants().sizes({ className }),
|
|
213
|
+
...props
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function InkTraySize({ className, value, weight, label, ...props }) {
|
|
218
|
+
return withTooltip(
|
|
219
|
+
label,
|
|
220
|
+
void 0,
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
ToolbarPrimitive.ToggleItem,
|
|
223
|
+
{
|
|
224
|
+
value,
|
|
225
|
+
"data-slot": "ink-tray-size",
|
|
226
|
+
"aria-label": label,
|
|
227
|
+
className: inkTrayVariants().size({ className }),
|
|
228
|
+
...props,
|
|
229
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": true, className: "size-6", children: /* @__PURE__ */ jsx(
|
|
230
|
+
"path",
|
|
231
|
+
{
|
|
232
|
+
d: "M4 15c2.5-5 5-7 7.5-4s5 2.5 8.5-3",
|
|
233
|
+
stroke: "currentColor",
|
|
234
|
+
strokeWidth: weight,
|
|
235
|
+
strokeLinecap: "round",
|
|
236
|
+
strokeLinejoin: "round"
|
|
237
|
+
}
|
|
238
|
+
) })
|
|
239
|
+
}
|
|
240
|
+
)
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
function InkTraySeparator({ className, ...props }) {
|
|
244
|
+
return /* @__PURE__ */ jsx(
|
|
245
|
+
ToolbarPrimitive.Separator,
|
|
246
|
+
{
|
|
247
|
+
"data-slot": "ink-tray-separator",
|
|
248
|
+
orientation: "vertical",
|
|
249
|
+
className: inkTrayVariants().separator({ className }),
|
|
250
|
+
...props
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
function InkTrayColors({
|
|
255
|
+
className,
|
|
256
|
+
"aria-label": ariaLabel = "Ink colour",
|
|
257
|
+
...props
|
|
258
|
+
}) {
|
|
259
|
+
const { tool, inks, setInk, inkless } = useInkTray("InkTrayColors");
|
|
260
|
+
return /* @__PURE__ */ jsx(
|
|
261
|
+
ToolbarPrimitive.ToggleGroup,
|
|
262
|
+
{
|
|
263
|
+
type: "single",
|
|
264
|
+
"data-slot": "ink-tray-colors",
|
|
265
|
+
"aria-label": ariaLabel,
|
|
266
|
+
value: inks[tool]?.color ?? "",
|
|
267
|
+
onValueChange: (color) => color && setInk({ color }),
|
|
268
|
+
disabled: !tool || inkless,
|
|
269
|
+
className: inkTrayVariants().colors({ className }),
|
|
270
|
+
...props
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
function InkTrayColor({ className, color, label, style, ...props }) {
|
|
275
|
+
const { registerColor } = useInkTray("InkTrayColor");
|
|
276
|
+
React.useEffect(() => registerColor(color), [registerColor, color]);
|
|
277
|
+
return withTooltip(
|
|
278
|
+
label,
|
|
279
|
+
void 0,
|
|
280
|
+
/* @__PURE__ */ jsx(
|
|
281
|
+
ToolbarPrimitive.ToggleItem,
|
|
282
|
+
{
|
|
283
|
+
value: color,
|
|
284
|
+
"data-slot": "ink-tray-color",
|
|
285
|
+
"aria-label": label,
|
|
286
|
+
className: inkTrayVariants().color({ className }),
|
|
287
|
+
style: { "--swatch": color, ...style },
|
|
288
|
+
...props
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
const HEX = /^#[0-9a-f]{6}([0-9a-f]{2})?$/i;
|
|
294
|
+
function InkTrayCustomColor({
|
|
295
|
+
className,
|
|
296
|
+
label = "Custom colour"
|
|
297
|
+
}) {
|
|
298
|
+
const { tool, inks, setInk, inkless, presetColors } = useInkTray("InkTrayCustomColor");
|
|
299
|
+
const current = inks[tool]?.color;
|
|
300
|
+
const custom = current && !presetColors.includes(current) ? current : void 0;
|
|
301
|
+
return /* @__PURE__ */ jsxs(ColorPickerPopover, { children: [
|
|
302
|
+
withTooltip(
|
|
303
|
+
label,
|
|
304
|
+
void 0,
|
|
305
|
+
/* @__PURE__ */ jsx(ColorPickerTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
306
|
+
ToolbarPrimitive.Button,
|
|
307
|
+
{
|
|
308
|
+
"data-slot": "ink-tray-custom-color",
|
|
309
|
+
"data-pressed": custom ? "" : void 0,
|
|
310
|
+
"aria-pressed": Boolean(custom),
|
|
311
|
+
"aria-label": label,
|
|
312
|
+
disabled: !tool || inkless,
|
|
313
|
+
className: inkTrayVariants().custom({ className: ["group/custom", className] }),
|
|
314
|
+
children: /* @__PURE__ */ jsx(
|
|
315
|
+
"span",
|
|
316
|
+
{
|
|
317
|
+
"aria-hidden": true,
|
|
318
|
+
className: inkTrayVariants().customDot(),
|
|
319
|
+
style: custom ? { backgroundColor: custom } : void 0
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
) })
|
|
324
|
+
),
|
|
325
|
+
/* @__PURE__ */ jsx(ColorPickerContent, { side: "top", align: "center", children: /* @__PURE__ */ jsx(
|
|
326
|
+
ColorPicker,
|
|
327
|
+
{
|
|
328
|
+
size: "sm",
|
|
329
|
+
showAlpha: false,
|
|
330
|
+
defaultValue: custom && HEX.test(custom) ? custom : void 0,
|
|
331
|
+
onValueChange: (hex) => setInk({ color: hex })
|
|
332
|
+
},
|
|
333
|
+
tool
|
|
334
|
+
) })
|
|
335
|
+
] });
|
|
336
|
+
}
|
|
337
|
+
export {
|
|
338
|
+
InkTray,
|
|
339
|
+
InkTrayBar,
|
|
340
|
+
InkTrayColor,
|
|
341
|
+
InkTrayColors,
|
|
342
|
+
InkTrayCustomColor,
|
|
343
|
+
InkTraySeparator,
|
|
344
|
+
InkTraySize,
|
|
345
|
+
InkTraySizes,
|
|
346
|
+
InkTrayTool,
|
|
347
|
+
InkTrayTools,
|
|
348
|
+
inkTrayVariants
|
|
349
|
+
};
|
|
350
|
+
//# sourceMappingURL=ink-tray.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/ink-tray/ink-tray.tsx"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport { Toolbar as ToolbarPrimitive } from \"radix-ui\"\r\n\r\nimport { ColorPicker, ColorPickerContent, ColorPickerPopover, ColorPickerTrigger } from \"../color-picker/index.mjs\"\r\nimport { Kbd } from \"../kbd/index.mjs\"\r\nimport { Tooltip } from \"../tooltip/index.mjs\"\r\nimport { useControllableState } from \"../input/use-controllable-state.mjs\"\r\nimport { createContext } from \"../../../lib/create-context.mjs\"\r\nimport { hitY } from \"../../../lib/hit-area.mjs\"\r\nimport { tv } from \"../../../lib/tv.mjs\"\r\n\r\nimport { InkTrayArt, type InkTrayToolKind } from \"./ink-tray-art.mjs\"\r\n\r\n/*\r\n * A whiteboard's pen tray. The tools stand in a pocket tucked behind the bar's top edge: at rest\r\n * only their tips show, a hover lifts one a little, and the tool in hand stands tall wearing its\r\n * ink. Colour and size belong to the tool, not the tray, so each comes back with its own ink.\r\n * One Radix Toolbar holds everything: a single Tab stop, and the arrows walk every item.\r\n */\r\nconst swatch = [\r\n \"relative inline-flex shrink-0 cursor-pointer items-center justify-center\",\r\n \"[--swatch-ring:color-mix(in_oklch,var(--swatch),black_22%)] dark:[--swatch-ring:color-mix(in_oklch,var(--swatch),white_22%)]\",\r\n \"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:ring-1 after:ring-inset after:ring-media-edge\",\r\n \"[--swatch-gap:var(--surface,var(--background))] motion-reduce-fade\",\r\n \"data-[state=off]:hover:shadow-[inset_0_0_0_2px_color-mix(in_oklch,var(--swatch-ring)_50%,transparent)]\",\r\n \"data-[state=on]:shadow-[inset_0_0_0_2px_var(--swatch-ring),inset_0_0_0_4px_var(--swatch-gap)]\",\r\n \"outline-none focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-[0.3125rem] focus-visible:outline-focus\",\r\n \"disabled:cursor-not-allowed disabled:opacity-40\",\r\n \"bg-[var(--swatch)] size-6 rounded-full before:absolute before:-inset-2\",\r\n \"active:scale-100 transition-[box-shadow,opacity,scale] duration-base ease-lift data-[state=on]:scale-[1.06]\",\r\n \"motion-reduce:transition-[box-shadow,opacity] motion-reduce:data-[state=on]:scale-100\",\r\n]\r\n\r\nexport const inkTrayVariants = tv({\r\n slots: {\r\n root: [\r\n \"relative isolate inline-flex max-w-full flex-col items-stretch\",\r\n \"max-sm:max-w-full max-sm:overflow-x-auto max-sm:overflow-y-hidden max-sm:scroll-fade-x max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden\",\r\n ],\r\n tools: \"relative -mb-2.5 flex h-20 items-start gap-1.5 self-start overflow-clip px-3\",\r\n tool: [\r\n \"relative h-28 w-12 shrink-0 cursor-pointer rounded-t-lg outline-none translate-y-6 drop-shadow-xs\",\r\n \"transition-[translate,filter] duration-base ease-lift motion-reduce:transition-[filter] motion-reduce:duration-fast motion-reduce:ease-linear\",\r\n \"data-[state=off]:hover:translate-y-5.5 data-[state=on]:translate-y-1 data-[state=on]:drop-shadow-md\",\r\n \"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus disabled:pointer-events-none disabled:opacity-40\",\r\n \"[&>svg]:pointer-events-none [&>svg]:size-full\",\r\n ],\r\n bar: [\r\n \"isolate inline-flex items-center bg-popover text-popover-foreground shadow-lg ring-1 ring-inset ring-border [--surface:var(--popover)]\",\r\n \"relative z-10 max-w-full flex-row gap-1 rounded-lg p-2\",\r\n \"overflow-x-auto overscroll-x-contain scroll-fade-x [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\",\r\n \"max-sm:max-w-full max-sm:overflow-x-auto max-sm:overflow-y-hidden max-sm:scroll-fade-x\",\r\n ],\r\n sizes: \"flex items-center gap-1\",\r\n size: [\r\n \"inline-flex shrink-0 cursor-pointer select-none items-center justify-center text-muted-foreground\",\r\n hitY,\r\n \"transition-[background-color,color,scale] duration-fast ease-out hover:bg-foreground/9 hover:text-foreground motion-reduce-fade\",\r\n \"outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background\",\r\n \"disabled:pointer-events-none disabled:opacity-40 [&_svg]:shrink-0 [&_svg]:pointer-events-none rounded-sm\",\r\n \"data-[state=on]:bg-foreground/13 data-[state=on]:text-foreground\",\r\n \"h-9 w-9 [&_svg:not([class*='size-'])]:size-6 max-sm:focus-visible:ring-inset max-sm:focus-visible:ring-offset-0 active:scale-100\",\r\n ],\r\n separator: \"shrink-0 rounded-full bg-border w-px mx-1.5 h-6\",\r\n colors: \"flex items-center gap-2.5 px-2\",\r\n color: [...swatch, \"p-0\"],\r\n custom: [\r\n ...swatch,\r\n \"not-data-[pressed]:hover:ring-[1.5px] not-data-[pressed]:hover:ring-foreground/50 data-[pressed]:ring-2 data-[pressed]:ring-foreground\",\r\n \"[background-image:conic-gradient(in_hsl_longer_hue,var(--destructive),var(--destructive))] p-0.75\",\r\n ],\r\n customDot: [\r\n \"size-full rounded-full ring-2 ring-[var(--surface)] transition-[scale,opacity] duration-base ease-lift motion-reduce:transition-[opacity]\",\r\n \"scale-0 opacity-0 motion-reduce:scale-100 group-data-[pressed]/custom:scale-100 group-data-[pressed]/custom:opacity-100\",\r\n ],\r\n },\r\n})\r\n\r\nexport type InkTrayInk = { color?: string; size?: string }\r\nexport type InkTrayInks = Record<string, InkTrayInk>\r\n\r\nconst [InkTrayProvider, useInkTray] = createContext<{\r\n tool: string\r\n setTool: (tool: string) => void\r\n inks: InkTrayInks\r\n setInk: (patch: InkTrayInk) => void\r\n inkless: boolean\r\n register: (value: string, inkless: boolean) => () => void\r\n registerColor: (color: string) => () => void\r\n presetColors: string[]\r\n}>(\"InkTray\")\r\n\r\nconst NO_INKS: InkTrayInks = {}\r\n\r\nexport interface InkTrayProps extends Omit<React.ComponentProps<typeof ToolbarPrimitive.Root>, \"dir\" | \"orientation\"> {\r\n /** The tool in hand, controlled. */\r\n tool?: string\r\n /** The tool in hand when uncontrolled. */\r\n defaultTool?: string\r\n onToolChange?: (tool: string) => void\r\n /** Each tool's colour and size, keyed by the tool's value, controlled. */\r\n inks?: InkTrayInks\r\n defaultInks?: InkTrayInks\r\n /** Called with every tool's ink when the tool in hand changes colour or size. */\r\n onInksChange?: (inks: InkTrayInks) => void\r\n}\r\n\r\nexport function InkTray({\r\n className,\r\n tool: toolProp,\r\n defaultTool = \"\",\r\n onToolChange,\r\n inks: inksProp,\r\n defaultInks = NO_INKS,\r\n onInksChange,\r\n children,\r\n ...props\r\n}: InkTrayProps) {\r\n const [tool, setTool] = useControllableState({ prop: toolProp, defaultProp: defaultTool, onChange: onToolChange })\r\n const [inks, setInks] = useControllableState({ prop: inksProp, defaultProp: defaultInks, onChange: onInksChange })\r\n const [inklessTools, setInkless] = React.useState<Record<string, boolean>>({})\r\n const [presetColors, setPresetColors] = React.useState<string[]>([])\r\n\r\n const register = React.useCallback((value: string, inkless: boolean) => {\r\n setInkless((current) => (current[value] === inkless ? current : { ...current, [value]: inkless }))\r\n return () =>\r\n setInkless((current) => {\r\n const next = { ...current }\r\n delete next[value]\r\n return next\r\n })\r\n }, [])\r\n\r\n const registerColor = React.useCallback((color: string) => {\r\n setPresetColors((current) => (current.includes(color) ? current : [...current, color]))\r\n return () => setPresetColors((current) => current.filter((c) => c !== color))\r\n }, [])\r\n\r\n const setInk = React.useCallback(\r\n (patch: InkTrayInk) => {\r\n if (!tool) return\r\n setInks({ ...inks, [tool]: { ...inks[tool], ...patch } })\r\n },\r\n [tool, inks, setInks],\r\n )\r\n\r\n return (\r\n <InkTrayProvider\r\n tool={tool}\r\n setTool={setTool}\r\n inks={inks}\r\n setInk={setInk}\r\n inkless={Boolean(inklessTools[tool])}\r\n register={register}\r\n registerColor={registerColor}\r\n presetColors={presetColors}\r\n >\r\n <ToolbarPrimitive.Root\r\n data-slot=\"ink-tray\"\r\n orientation=\"horizontal\"\r\n className={inkTrayVariants().root({ className })}\r\n {...props}\r\n >\r\n {children}\r\n </ToolbarPrimitive.Root>\r\n </InkTrayProvider>\r\n )\r\n}\r\n\r\n/** The pocket the tools stand in, behind the bar's top edge. A single choice: one tool in hand. */\r\nexport function InkTrayTools({\r\n className,\r\n \"aria-label\": ariaLabel = \"Tool\",\r\n ...props\r\n}: Omit<React.ComponentProps<\"div\">, \"dir\" | \"defaultValue\">) {\r\n const { tool, setTool } = useInkTray(\"InkTrayTools\")\r\n return (\r\n <ToolbarPrimitive.ToggleGroup\r\n type=\"single\"\r\n data-slot=\"ink-tray-tools\"\r\n aria-label={ariaLabel}\r\n value={tool}\r\n // Picking up a tool never puts the last one down with nothing in hand.\r\n onValueChange={(value) => value && setTool(value)}\r\n className={inkTrayVariants().tools({ className })}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nfunction withTooltip(label: string, shortcut: string | undefined, node: React.ReactElement) {\r\n return (\r\n <Tooltip\r\n content={\r\n shortcut ? (\r\n <>\r\n {label} <Kbd>{shortcut}</Kbd>\r\n </>\r\n ) : (\r\n label\r\n )\r\n }\r\n >\r\n {node}\r\n </Tooltip>\r\n )\r\n}\r\n\r\nexport interface InkTrayToolProps extends Omit<React.ComponentProps<\"button\">, \"value\"> {\r\n /** The tool's key in `tool` and `inks`. */\r\n value: string\r\n /** Accessible name and tooltip. */\r\n label: string\r\n /** Which built-in drawing to show. */\r\n kind?: InkTrayToolKind\r\n /** Disables the colours while this tool is in hand. Defaults to true for the eraser. */\r\n inkless?: boolean\r\n /** Shown beside the label in the tooltip. Bind the key yourself. */\r\n shortcut?: string\r\n}\r\n\r\n/** One tool, drawn with its ink. Children replace the built-in drawing. */\r\nexport function InkTrayTool({\r\n className,\r\n value,\r\n label,\r\n kind = \"pen\",\r\n inkless,\r\n shortcut,\r\n style,\r\n children,\r\n ...props\r\n}: InkTrayToolProps) {\r\n const { inks, register } = useInkTray(\"InkTrayTool\")\r\n const isInkless = inkless ?? kind === \"eraser\"\r\n React.useEffect(() => register(value, isInkless), [register, value, isInkless])\r\n return withTooltip(\r\n label,\r\n shortcut,\r\n <ToolbarPrimitive.ToggleItem\r\n value={value}\r\n data-slot=\"ink-tray-tool\"\r\n data-kind={kind}\r\n aria-label={label}\r\n className={inkTrayVariants().tool({ className })}\r\n style={{ \"--ink\": inks[value]?.color ?? \"var(--foreground)\", ...style } as React.CSSProperties}\r\n {...props}\r\n >\r\n {children ?? <InkTrayArt kind={kind} />}\r\n </ToolbarPrimitive.ToggleItem>,\r\n )\r\n}\r\n\r\n/** The floating bar: the lid of the tray. Scrolls sideways when the viewport is narrower. */\r\nexport function InkTrayBar({ className, ...props }: React.ComponentProps<\"div\">) {\r\n return <div data-slot=\"ink-tray-bar\" className={inkTrayVariants().bar({ className })} {...props} />\r\n}\r\n\r\n/** The stroke sizes of the tool in hand. */\r\nexport function InkTraySizes({\r\n className,\r\n \"aria-label\": ariaLabel = \"Stroke size\",\r\n ...props\r\n}: Omit<React.ComponentProps<\"div\">, \"dir\" | \"defaultValue\">) {\r\n const { tool, inks, setInk } = useInkTray(\"InkTraySizes\")\r\n return (\r\n <ToolbarPrimitive.ToggleGroup\r\n type=\"single\"\r\n data-slot=\"ink-tray-sizes\"\r\n aria-label={ariaLabel}\r\n value={inks[tool]?.size ?? \"\"}\r\n onValueChange={(size) => size && setInk({ size })}\r\n disabled={!tool}\r\n className={inkTrayVariants().sizes({ className })}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport interface InkTraySizeProps extends Omit<React.ComponentProps<\"button\">, \"value\"> {\r\n /** The size's key, stored in the tool's ink. */\r\n value: string\r\n /** Stroke width of the squiggle, in a 24px box. */\r\n weight: number\r\n /** Accessible name and tooltip. */\r\n label: string\r\n}\r\n\r\n/** One stroke size, shown as a squiggle drawn at its own weight. */\r\nexport function InkTraySize({ className, value, weight, label, ...props }: InkTraySizeProps) {\r\n return withTooltip(\r\n label,\r\n undefined,\r\n <ToolbarPrimitive.ToggleItem\r\n value={value}\r\n data-slot=\"ink-tray-size\"\r\n aria-label={label}\r\n className={inkTrayVariants().size({ className })}\r\n {...props}\r\n >\r\n <svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden className=\"size-6\">\r\n <path\r\n d=\"M4 15c2.5-5 5-7 7.5-4s5 2.5 8.5-3\"\r\n stroke=\"currentColor\"\r\n strokeWidth={weight}\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n </svg>\r\n </ToolbarPrimitive.ToggleItem>,\r\n )\r\n}\r\n\r\nexport function InkTraySeparator({ className, ...props }: React.ComponentProps<typeof ToolbarPrimitive.Separator>) {\r\n return (\r\n <ToolbarPrimitive.Separator\r\n data-slot=\"ink-tray-separator\"\r\n orientation=\"vertical\"\r\n className={inkTrayVariants().separator({ className })}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/** The ink colours of the tool in hand; disabled while an inkless tool is in hand. */\r\nexport function InkTrayColors({\r\n className,\r\n \"aria-label\": ariaLabel = \"Ink colour\",\r\n ...props\r\n}: Omit<React.ComponentProps<\"div\">, \"dir\" | \"defaultValue\">) {\r\n const { tool, inks, setInk, inkless } = useInkTray(\"InkTrayColors\")\r\n return (\r\n <ToolbarPrimitive.ToggleGroup\r\n type=\"single\"\r\n data-slot=\"ink-tray-colors\"\r\n aria-label={ariaLabel}\r\n value={inks[tool]?.color ?? \"\"}\r\n onValueChange={(color) => color && setInk({ color })}\r\n disabled={!tool || inkless}\r\n className={inkTrayVariants().colors({ className })}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport interface InkTrayColorProps extends Omit<React.ComponentProps<\"button\">, \"value\" | \"color\"> {\r\n /** Any CSS colour; also the value stored in the tool's ink. */\r\n color: string\r\n /** Accessible name and tooltip. */\r\n label: string\r\n}\r\n\r\n/** One round swatch with a selection ring. */\r\nexport function InkTrayColor({ className, color, label, style, ...props }: InkTrayColorProps) {\r\n const { registerColor } = useInkTray(\"InkTrayColor\")\r\n React.useEffect(() => registerColor(color), [registerColor, color])\r\n return withTooltip(\r\n label,\r\n undefined,\r\n <ToolbarPrimitive.ToggleItem\r\n value={color}\r\n data-slot=\"ink-tray-color\"\r\n aria-label={label}\r\n className={inkTrayVariants().color({ className })}\r\n style={{ \"--swatch\": color, ...style } as React.CSSProperties}\r\n {...props}\r\n />,\r\n )\r\n}\r\n\r\nconst HEX = /^#[0-9a-f]{6}([0-9a-f]{2})?$/i\r\n\r\n/** A colour-wheel swatch that opens a Color Picker above the bar; the colour becomes the tool's ink. */\r\nexport function InkTrayCustomColor({\r\n className,\r\n label = \"Custom colour\",\r\n}: {\r\n className?: string\r\n label?: string\r\n}) {\r\n const { tool, inks, setInk, inkless, presetColors } = useInkTray(\"InkTrayCustomColor\")\r\n const current = inks[tool]?.color\r\n const custom = current && !presetColors.includes(current) ? current : undefined\r\n return (\r\n <ColorPickerPopover>\r\n {withTooltip(\r\n label,\r\n undefined,\r\n <ColorPickerTrigger asChild>\r\n <ToolbarPrimitive.Button\r\n data-slot=\"ink-tray-custom-color\"\r\n data-pressed={custom ? \"\" : undefined}\r\n aria-pressed={Boolean(custom)}\r\n aria-label={label}\r\n disabled={!tool || inkless}\r\n className={inkTrayVariants().custom({ className: [\"group/custom\", className] })}\r\n >\r\n <span\r\n aria-hidden\r\n className={inkTrayVariants().customDot()}\r\n style={custom ? { backgroundColor: custom } : undefined}\r\n />\r\n </ToolbarPrimitive.Button>\r\n </ColorPickerTrigger>,\r\n )}\r\n <ColorPickerContent side=\"top\" align=\"center\">\r\n <ColorPicker\r\n // Each tool opens on its own custom ink, or the picker's default when it has none.\r\n key={tool}\r\n size=\"sm\"\r\n showAlpha={false}\r\n defaultValue={custom && HEX.test(custom) ? custom : undefined}\r\n onValueChange={(hex) => setInk({ color: hex })}\r\n />\r\n </ColorPickerContent>\r\n </ColorPickerPopover>\r\n )\r\n}\r\n"],"mappings":";AA+JM,SAsCI,UAtCJ,KAsCI,YAtCJ;AA7JN,YAAY,WAAW;AACvB,SAAS,WAAW,wBAAwB;AAE5C,SAAS,aAAa,oBAAoB,oBAAoB,0BAA0B;AACxF,SAAS,WAAW;AACpB,SAAS,eAAe;AACxB,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AACrB,SAAS,UAAU;AAEnB,SAAS,kBAAwC;AAQjD,MAAM,SAAS;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,kBAAkB,GAAG;AAAA,EAChC,OAAO;AAAA,IACL,MAAM;AAAA,MACJ;AAAA,MACA;AAAA,IACF;AAAA,IACA,OAAO;AAAA,IACP,MAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,OAAO;AAAA,IACP,MAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,W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AAO,IAAI;AAAA;AAAA,UAChD;AAAA;AAAA,MACF,GACF;AAAA,IACF;AAAA,IACA,oBAAC,sBAAmB,MAAK,OAAM,OAAM,UACnC;AAAA,MAAC;AAAA;AAAA,QAGC,MAAK;AAAA,QACL,WAAW;AAAA,QACX,cAAc,UAAU,IAAI,KAAK,MAAM,IAAI,SAAS;AAAA,QACpD,eAAe,CAAC,QAAQ,OAAO,EAAE,OAAO,IAAI,CAAC;AAAA;AAAA,MAJxC;AAAA,IAKP,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InputRoot,
|
|
3
|
+
InputField,
|
|
4
|
+
InputFloatingField,
|
|
5
|
+
InputLabel,
|
|
6
|
+
InputHint,
|
|
7
|
+
InputPrefix,
|
|
8
|
+
InputSuffix,
|
|
9
|
+
InputPrefixLabel,
|
|
10
|
+
InputSuffixButton,
|
|
11
|
+
inputVariants
|
|
12
|
+
} from "./input.mjs";
|
|
13
|
+
import { PasswordInput } from "./password-input.mjs";
|
|
14
|
+
import { NumberInput, numberInputVariants } from "./number-input.mjs";
|
|
15
|
+
import { useHoldRepeat } from "./use-hold-repeat.mjs";
|
|
16
|
+
import {
|
|
17
|
+
PhoneInput,
|
|
18
|
+
phoneInputVariants
|
|
19
|
+
} from "./phone-input.mjs";
|
|
20
|
+
import { phoneCountries, findPhoneCountry } from "./phone-input-countries.mjs";
|
|
21
|
+
export {
|
|
22
|
+
InputField,
|
|
23
|
+
InputFloatingField,
|
|
24
|
+
InputHint,
|
|
25
|
+
InputLabel,
|
|
26
|
+
InputPrefix,
|
|
27
|
+
InputPrefixLabel,
|
|
28
|
+
InputRoot,
|
|
29
|
+
InputSuffix,
|
|
30
|
+
InputSuffixButton,
|
|
31
|
+
NumberInput,
|
|
32
|
+
PasswordInput,
|
|
33
|
+
PhoneInput,
|
|
34
|
+
findPhoneCountry,
|
|
35
|
+
inputVariants,
|
|
36
|
+
numberInputVariants,
|
|
37
|
+
phoneCountries,
|
|
38
|
+
phoneInputVariants,
|
|
39
|
+
useHoldRepeat
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/input/index.ts"],"sourcesContent":["export {\n InputRoot,\n InputField,\n InputFloatingField,\n InputLabel,\n InputHint,\n InputPrefix,\n InputSuffix,\n InputPrefixLabel,\n InputSuffixButton,\n inputVariants,\n type InputRootProps,\n type InputFieldProps,\n type InputFloatingFieldProps,\n type InputLabelProps,\n type InputHintProps,\n type InputPrefixProps,\n type InputSuffixProps,\n type InputPrefixLabelProps,\n type InputSuffixButtonProps,\n} from \"./input.mjs\"\nexport { PasswordInput, type PasswordInputProps } from \"./password-input.mjs\"\nexport { NumberInput, numberInputVariants, type NumberInputProps } from \"./number-input.mjs\"\nexport { useHoldRepeat } from \"./use-hold-repeat.mjs\"\nexport {\n PhoneInput,\n phoneInputVariants,\n type PhoneInputProps,\n type PhoneChangePayload,\n} from \"./phone-input.mjs\"\nexport { phoneCountries, findPhoneCountry, type PhoneCountry } from \"./phone-input-countries.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,OAUK;AACP,SAAS,qBAA8C;AACvD,SAAS,aAAa,2BAAkD;AACxE,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,gBAAgB,wBAA2C;","names":[]}
|