@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/checkbox/index.ts"],"sourcesContent":["export {\n Checkbox,\n CheckboxGroup,\n checkboxVariants,\n type CheckboxProps,\n type CheckboxGroupProps,\n} from \"./checkbox.mjs\"\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;","names":[]}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Checkbox as CheckboxPrimitive, Slot } from "radix-ui";
|
|
5
|
+
import { Check } from "atoms-icons";
|
|
6
|
+
import { AnimatedNumber } from "../animated-number/index.mjs";
|
|
7
|
+
import { useControllableState } from "../input/use-controllable-state.mjs";
|
|
8
|
+
import { useDensity } from "../../../lib/density.mjs";
|
|
9
|
+
import { inFlowFill, tv } from "../../../lib/tv.mjs";
|
|
10
|
+
const checklistVariants = tv({
|
|
11
|
+
slots: {
|
|
12
|
+
root: "text-card-foreground",
|
|
13
|
+
header: "flex flex-col gap-1.5",
|
|
14
|
+
title: "text-balance text-base font-semibold text-foreground",
|
|
15
|
+
description: "text-pretty text-sm text-muted-foreground",
|
|
16
|
+
progress: "mt-4 flex flex-col gap-2 first:mt-0",
|
|
17
|
+
progressLabel: "flex items-center justify-between gap-3 text-sm transition-opacity duration-base ease-out",
|
|
18
|
+
progressCount: "flex items-center gap-1.5 font-medium tabular-nums text-foreground [&_svg]:size-4 [&_svg]:text-success",
|
|
19
|
+
progressPercent: "tabular-nums text-muted-foreground",
|
|
20
|
+
track: "relative h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
21
|
+
bar: "h-full rounded-full transition-[width,background-color] duration-slow ease-out motion-reduce:transition-none",
|
|
22
|
+
items: "flex flex-col gap-1",
|
|
23
|
+
item: "group/item relative flex items-start transition-colors duration-base ease-out gap-3",
|
|
24
|
+
content: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
25
|
+
itemTitle: [
|
|
26
|
+
"text-pretty text-sm font-medium text-foreground transition-colors duration-base ease-out",
|
|
27
|
+
"group-data-[status=complete]/item:text-muted-foreground",
|
|
28
|
+
"group-data-[state]/item:line-through group-data-[state=unchecked]/item:decoration-transparent group-data-[state=checked]/item:decoration-muted-foreground"
|
|
29
|
+
],
|
|
30
|
+
itemDescription: "text-pretty text-sm text-muted-foreground",
|
|
31
|
+
action: "ml-auto flex shrink-0 items-center self-center pl-3 group-data-[state]/item:relative"
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
card: { root: ["rounded-2xl shadow-xs ring-1 ring-edge", inFlowFill], item: "rounded-xl" },
|
|
36
|
+
plain: { header: "px-0 pt-0", items: "px-0 pb-0", item: "rounded-lg" }
|
|
37
|
+
},
|
|
38
|
+
density: {
|
|
39
|
+
compact: { header: "pb-4", item: "p-2.5" },
|
|
40
|
+
comfortable: { header: "pb-5", item: "p-3" }
|
|
41
|
+
},
|
|
42
|
+
tickable: {
|
|
43
|
+
true: {
|
|
44
|
+
item: [
|
|
45
|
+
"hover:bg-muted/60 active:bg-muted",
|
|
46
|
+
"has-[[data-slot=checklist-indicator]:focus-visible]:ring-2 has-[[data-slot=checklist-indicator]:focus-visible]:ring-focus"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
compoundVariants: [
|
|
52
|
+
{ variant: "card", density: "compact", class: { header: "px-5 pt-5", items: "px-2.5 pb-2.5" } },
|
|
53
|
+
{ variant: "card", density: "comfortable", class: { header: "px-6 pt-6", items: "px-3 pb-3" } },
|
|
54
|
+
// Plain rows bleed into the host's padding, so the marks line up with its heading.
|
|
55
|
+
{ variant: "plain", density: "compact", class: { item: "-mx-2.5" } },
|
|
56
|
+
{ variant: "plain", density: "comfortable", class: { item: "-mx-3" } }
|
|
57
|
+
],
|
|
58
|
+
defaultVariants: { variant: "card", density: "compact" }
|
|
59
|
+
});
|
|
60
|
+
const checklistMarkVariants = tv({
|
|
61
|
+
base: [
|
|
62
|
+
"mt-0.5 grid size-4 shrink-0 place-items-center rounded-full border border-input bg-[var(--surface,var(--background))]",
|
|
63
|
+
"text-[var(--surface,var(--background))] shadow-xs [&_svg]:size-3 transition-colors duration-fast ease-out",
|
|
64
|
+
"data-[status=active]:border-primary data-[state=checked]:border-primary data-[state=checked]:bg-primary"
|
|
65
|
+
],
|
|
66
|
+
variants: {
|
|
67
|
+
interactive: {
|
|
68
|
+
// The row is the hit area: the box's ::after covers the whole (relative) row.
|
|
69
|
+
true: "static cursor-pointer outline-none after:absolute after:inset-0 after:content-['']"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
const STATUS_TEXT = {
|
|
74
|
+
todo: "Not started",
|
|
75
|
+
active: "In progress",
|
|
76
|
+
complete: "Completed"
|
|
77
|
+
};
|
|
78
|
+
function createRowStore() {
|
|
79
|
+
const rows = /* @__PURE__ */ new Map();
|
|
80
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
81
|
+
let snapshot = null;
|
|
82
|
+
const emit = () => {
|
|
83
|
+
let done = 0;
|
|
84
|
+
for (const value of rows.values()) if (value) done++;
|
|
85
|
+
snapshot = rows.size ? { done, total: rows.size } : null;
|
|
86
|
+
for (const listener of listeners) listener();
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
set(id, done) {
|
|
90
|
+
if (rows.get(id) === done) return;
|
|
91
|
+
rows.set(id, done);
|
|
92
|
+
emit();
|
|
93
|
+
},
|
|
94
|
+
remove(id) {
|
|
95
|
+
if (rows.delete(id)) emit();
|
|
96
|
+
},
|
|
97
|
+
subscribe(listener) {
|
|
98
|
+
listeners.add(listener);
|
|
99
|
+
return () => listeners.delete(listener);
|
|
100
|
+
},
|
|
101
|
+
snapshot: () => snapshot
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
const serverSnapshot = () => null;
|
|
105
|
+
function countRows(node, count = { done: 0, total: 0 }) {
|
|
106
|
+
React.Children.forEach(node, (child) => {
|
|
107
|
+
if (!React.isValidElement(child)) return;
|
|
108
|
+
const props = child.props;
|
|
109
|
+
if (resolveType(child.type) === ChecklistItem) {
|
|
110
|
+
const p = props;
|
|
111
|
+
const tickable = isTickable(p);
|
|
112
|
+
count.total++;
|
|
113
|
+
if (tickable ? p.checked ?? p.defaultChecked ?? false : p.status === "complete") count.done++;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (props && "children" in props) countRows(props.children, count);
|
|
117
|
+
});
|
|
118
|
+
return count;
|
|
119
|
+
}
|
|
120
|
+
const LAZY = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
121
|
+
function resolveType(type) {
|
|
122
|
+
const lazy = type;
|
|
123
|
+
if (lazy?.$$typeof !== LAZY || !lazy._init) return type;
|
|
124
|
+
try {
|
|
125
|
+
return lazy._init(lazy._payload);
|
|
126
|
+
} catch {
|
|
127
|
+
return void 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function isTickable(p) {
|
|
131
|
+
return p.checked !== void 0 || p.defaultChecked !== void 0 || p.onCheckedChange !== void 0;
|
|
132
|
+
}
|
|
133
|
+
const ChecklistContext = React.createContext(null);
|
|
134
|
+
function useChecklist(name) {
|
|
135
|
+
const context = React.useContext(ChecklistContext);
|
|
136
|
+
if (!context) throw new Error(`\`${name}\` must be used within \`Checklist\``);
|
|
137
|
+
return context;
|
|
138
|
+
}
|
|
139
|
+
function useSlots(name, tickable = false) {
|
|
140
|
+
const { variant, density } = useChecklist(name);
|
|
141
|
+
return checklistVariants({ variant, density, tickable });
|
|
142
|
+
}
|
|
143
|
+
const ItemContext = React.createContext(null);
|
|
144
|
+
function Checklist({
|
|
145
|
+
value,
|
|
146
|
+
total,
|
|
147
|
+
variant = "card",
|
|
148
|
+
density,
|
|
149
|
+
asChild = false,
|
|
150
|
+
className,
|
|
151
|
+
children,
|
|
152
|
+
...props
|
|
153
|
+
}) {
|
|
154
|
+
const resolvedDensity = useDensity(density);
|
|
155
|
+
const [store] = React.useState(createRowStore);
|
|
156
|
+
const live = React.useSyncExternalStore(store.subscribe, store.snapshot, serverSnapshot);
|
|
157
|
+
const walked = countRows(children);
|
|
158
|
+
const counted = live ?? walked;
|
|
159
|
+
const ready = live !== null || walked.total > 0 || total !== void 0;
|
|
160
|
+
const all = Math.max(0, Math.round(total ?? counted.total));
|
|
161
|
+
const done = Math.min(all, Math.max(0, Math.round(value ?? counted.done)));
|
|
162
|
+
const slots = checklistVariants({ variant, density: resolvedDensity });
|
|
163
|
+
const Comp = asChild ? Slot.Root : "div";
|
|
164
|
+
const context = React.useMemo(
|
|
165
|
+
() => ({ variant: variant ?? "card", density: resolvedDensity, done, total: all, ready, store }),
|
|
166
|
+
[variant, resolvedDensity, done, all, ready, store]
|
|
167
|
+
);
|
|
168
|
+
return /* @__PURE__ */ jsx(ChecklistContext.Provider, { value: context, children: /* @__PURE__ */ jsx(Comp, { "data-slot": "checklist", className: slots.root({ className }), ...props, children }) });
|
|
169
|
+
}
|
|
170
|
+
function ChecklistHeader({ className, ...props }) {
|
|
171
|
+
const slots = useSlots("ChecklistHeader");
|
|
172
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "checklist-header", className: slots.header({ className }), ...props });
|
|
173
|
+
}
|
|
174
|
+
function ChecklistTitle({ asChild = false, className, ...props }) {
|
|
175
|
+
const slots = useSlots("ChecklistTitle");
|
|
176
|
+
const Comp = asChild ? Slot.Root : "h3";
|
|
177
|
+
return /* @__PURE__ */ jsx(Comp, { "data-slot": "checklist-title", className: slots.title({ className }), ...props });
|
|
178
|
+
}
|
|
179
|
+
function ChecklistDescription({ className, ...props }) {
|
|
180
|
+
const slots = useSlots("ChecklistDescription");
|
|
181
|
+
return /* @__PURE__ */ jsx("p", { "data-slot": "checklist-description", className: slots.description({ className }), ...props });
|
|
182
|
+
}
|
|
183
|
+
function ChecklistProgress({ label, className, ...props }) {
|
|
184
|
+
const { done, total, ready } = useChecklist("ChecklistProgress");
|
|
185
|
+
const slots = useSlots("ChecklistProgress");
|
|
186
|
+
const percent = total > 0 ? Math.round(done / total * 100) : 0;
|
|
187
|
+
const complete = total > 0 && done === total;
|
|
188
|
+
const text = `${done} of ${total} complete`;
|
|
189
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "checklist-progress", className: slots.progress({ className }), ...props, children: [
|
|
190
|
+
/* @__PURE__ */ jsxs("div", { className: slots.progressLabel({ className: ready ? void 0 : "opacity-0" }), children: [
|
|
191
|
+
/* @__PURE__ */ jsx("span", { className: slots.progressCount(), children: label ?? (complete ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
192
|
+
/* @__PURE__ */ jsx(Check, { "aria-hidden": "true" }),
|
|
193
|
+
"All steps complete"
|
|
194
|
+
] }) : /* @__PURE__ */ jsxs("span", { children: [
|
|
195
|
+
/* @__PURE__ */ jsx(AnimatedNumber, { value: done }),
|
|
196
|
+
" of ",
|
|
197
|
+
total,
|
|
198
|
+
" complete"
|
|
199
|
+
] })) }),
|
|
200
|
+
/* @__PURE__ */ jsx("span", { className: slots.progressPercent(), children: /* @__PURE__ */ jsx(AnimatedNumber, { value: percent, format: (n) => `${n}%` }) })
|
|
201
|
+
] }),
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
role: "progressbar",
|
|
206
|
+
"aria-label": "Progress",
|
|
207
|
+
"aria-valuemin": 0,
|
|
208
|
+
"aria-valuemax": 100,
|
|
209
|
+
"aria-valuenow": percent,
|
|
210
|
+
"aria-valuetext": text,
|
|
211
|
+
className: slots.track(),
|
|
212
|
+
children: /* @__PURE__ */ jsx(
|
|
213
|
+
"div",
|
|
214
|
+
{
|
|
215
|
+
"data-slot": "checklist-bar",
|
|
216
|
+
className: slots.bar({ className: complete ? "bg-success" : "bg-primary" }),
|
|
217
|
+
style: { width: `${percent}%` }
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
] });
|
|
223
|
+
}
|
|
224
|
+
function ChecklistItems({ className, ...props }) {
|
|
225
|
+
const slots = useSlots("ChecklistItems");
|
|
226
|
+
return /* @__PURE__ */ jsx("ul", { "data-slot": "checklist-items", className: slots.items({ className }), ...props });
|
|
227
|
+
}
|
|
228
|
+
function ChecklistItem({
|
|
229
|
+
status = "todo",
|
|
230
|
+
checked: checkedProp,
|
|
231
|
+
defaultChecked,
|
|
232
|
+
onCheckedChange,
|
|
233
|
+
disabled,
|
|
234
|
+
className,
|
|
235
|
+
children,
|
|
236
|
+
...props
|
|
237
|
+
}) {
|
|
238
|
+
const { store } = useChecklist("ChecklistItem");
|
|
239
|
+
const tickable = isTickable({ checked: checkedProp, defaultChecked, onCheckedChange });
|
|
240
|
+
const slots = useSlots("ChecklistItem", tickable);
|
|
241
|
+
const id = React.useId();
|
|
242
|
+
const titleId = `${id}-title`;
|
|
243
|
+
const [checked = false, setChecked] = useControllableState({
|
|
244
|
+
prop: checkedProp,
|
|
245
|
+
defaultProp: defaultChecked ?? false,
|
|
246
|
+
onChange: onCheckedChange
|
|
247
|
+
});
|
|
248
|
+
const resolved = tickable ? checked ? "complete" : status === "complete" ? "todo" : status : status;
|
|
249
|
+
const done = resolved === "complete";
|
|
250
|
+
React.useLayoutEffect(() => {
|
|
251
|
+
store.set(id, done);
|
|
252
|
+
}, [store, id, done]);
|
|
253
|
+
React.useLayoutEffect(() => () => store.remove(id), [store, id]);
|
|
254
|
+
const itemContext = React.useMemo(() => ({ titleId }), [titleId]);
|
|
255
|
+
return /* @__PURE__ */ jsx(ItemContext.Provider, { value: itemContext, children: /* @__PURE__ */ jsxs(
|
|
256
|
+
"li",
|
|
257
|
+
{
|
|
258
|
+
"data-slot": "checklist-item",
|
|
259
|
+
"data-status": resolved,
|
|
260
|
+
"data-state": tickable ? checked ? "checked" : "unchecked" : void 0,
|
|
261
|
+
className: slots.item({ className }),
|
|
262
|
+
...props,
|
|
263
|
+
children: [
|
|
264
|
+
tickable ? /* @__PURE__ */ jsx(
|
|
265
|
+
CheckboxPrimitive.Root,
|
|
266
|
+
{
|
|
267
|
+
"data-slot": "checklist-indicator",
|
|
268
|
+
"data-status": resolved,
|
|
269
|
+
checked,
|
|
270
|
+
onCheckedChange: (next) => setChecked(next === true),
|
|
271
|
+
disabled,
|
|
272
|
+
"aria-labelledby": titleId,
|
|
273
|
+
className: checklistMarkVariants({ interactive: true }),
|
|
274
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: "flex", children: /* @__PURE__ */ jsx(Tick, { draw: true }) })
|
|
275
|
+
}
|
|
276
|
+
) : /* @__PURE__ */ jsx(MarkGlyph, { slot: "checklist-indicator", status: resolved }),
|
|
277
|
+
children,
|
|
278
|
+
tickable ? null : /* @__PURE__ */ jsx("span", { className: "sr-only", children: STATUS_TEXT[resolved] })
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
) });
|
|
282
|
+
}
|
|
283
|
+
function ChecklistItemContent({ className, ...props }) {
|
|
284
|
+
const slots = useSlots("ChecklistItemContent");
|
|
285
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "checklist-item-content", className: slots.content({ className }), ...props });
|
|
286
|
+
}
|
|
287
|
+
function ChecklistItemTitle({ className, id, ...props }) {
|
|
288
|
+
const slots = useSlots("ChecklistItemTitle");
|
|
289
|
+
const item = React.useContext(ItemContext);
|
|
290
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "checklist-item-title", id: id ?? item?.titleId, className: slots.itemTitle({ className }), ...props });
|
|
291
|
+
}
|
|
292
|
+
function ChecklistItemDescription({ className, ...props }) {
|
|
293
|
+
const slots = useSlots("ChecklistItemDescription");
|
|
294
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "checklist-item-description", className: slots.itemDescription({ className }), ...props });
|
|
295
|
+
}
|
|
296
|
+
function ChecklistItemAction({ className, ...props }) {
|
|
297
|
+
const slots = useSlots("ChecklistItemAction");
|
|
298
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "checklist-item-action", className: slots.action({ className }), ...props });
|
|
299
|
+
}
|
|
300
|
+
function Tick({ draw = false }) {
|
|
301
|
+
return /* @__PURE__ */ jsx(
|
|
302
|
+
"svg",
|
|
303
|
+
{
|
|
304
|
+
viewBox: "0 0 24 24",
|
|
305
|
+
fill: "none",
|
|
306
|
+
stroke: "currentColor",
|
|
307
|
+
strokeWidth: "3",
|
|
308
|
+
strokeLinecap: "round",
|
|
309
|
+
strokeLinejoin: "round",
|
|
310
|
+
"aria-hidden": "true",
|
|
311
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", pathLength: 1, className: draw ? "animate-check-draw [stroke-dasharray:1]" : void 0 })
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
function MarkGlyph({
|
|
316
|
+
slot,
|
|
317
|
+
status,
|
|
318
|
+
className,
|
|
319
|
+
...props
|
|
320
|
+
}) {
|
|
321
|
+
return /* @__PURE__ */ jsx(
|
|
322
|
+
"span",
|
|
323
|
+
{
|
|
324
|
+
"data-slot": slot,
|
|
325
|
+
"data-status": status,
|
|
326
|
+
"data-state": status === "complete" ? "checked" : "unchecked",
|
|
327
|
+
"aria-hidden": "true",
|
|
328
|
+
className: checklistMarkVariants({ className }),
|
|
329
|
+
...props,
|
|
330
|
+
children: status === "complete" ? /* @__PURE__ */ jsx(Tick, {}) : status === "active" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 12 12", "aria-hidden": "true", className: "fill-primary animate-in fade-in zoom-in-50 duration-base ease-out", children: /* @__PURE__ */ jsx("path", { d: "M6 2a4 4 0 0 1 0 8z" }) }) : null
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
function ChecklistMark({ status = "todo", ...props }) {
|
|
335
|
+
return /* @__PURE__ */ jsx(MarkGlyph, { slot: "checklist-mark", status, ...props });
|
|
336
|
+
}
|
|
337
|
+
export {
|
|
338
|
+
Checklist,
|
|
339
|
+
ChecklistDescription,
|
|
340
|
+
ChecklistHeader,
|
|
341
|
+
ChecklistItem,
|
|
342
|
+
ChecklistItemAction,
|
|
343
|
+
ChecklistItemContent,
|
|
344
|
+
ChecklistItemDescription,
|
|
345
|
+
ChecklistItemTitle,
|
|
346
|
+
ChecklistItems,
|
|
347
|
+
ChecklistMark,
|
|
348
|
+
ChecklistProgress,
|
|
349
|
+
ChecklistTitle,
|
|
350
|
+
checklistMarkVariants,
|
|
351
|
+
checklistVariants
|
|
352
|
+
};
|
|
353
|
+
//# sourceMappingURL=checklist.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/checklist/checklist.tsx"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport { Checkbox as CheckboxPrimitive, Slot } from \"radix-ui\"\r\nimport { Check } from \"atoms-icons\"\r\n\r\nimport { AnimatedNumber } from \"../animated-number/index.mjs\"\r\nimport { useControllableState } from \"../input/use-controllable-state.mjs\"\r\nimport { useDensity, type Density } from \"../../../lib/density.mjs\"\r\nimport { inFlowFill, tv, type VariantProps } from \"../../../lib/tv.mjs\"\r\n\r\n/*\r\n * The onboarding panel. The root owns the progress: from `value` and `total` when given, else by\r\n * counting its own rows. The count is read from the element tree during render, so the server HTML\r\n * already says \"2 of 6 complete\"; rows that tree walk can't see (rendered through a wrapper\r\n * component) report in once mounted, and the read-out waits for them.\r\n */\r\n\r\nexport const checklistVariants = tv({\r\n slots: {\r\n root: \"text-card-foreground\",\r\n header: \"flex flex-col gap-1.5\",\r\n title: \"text-balance text-base font-semibold text-foreground\",\r\n description: \"text-pretty text-sm text-muted-foreground\",\r\n progress: \"mt-4 flex flex-col gap-2 first:mt-0\",\r\n progressLabel: \"flex items-center justify-between gap-3 text-sm transition-opacity duration-base ease-out\",\r\n progressCount: \"flex items-center gap-1.5 font-medium tabular-nums text-foreground [&_svg]:size-4 [&_svg]:text-success\",\r\n progressPercent: \"tabular-nums text-muted-foreground\",\r\n track: \"relative h-2 w-full overflow-hidden rounded-full bg-muted\",\r\n bar: \"h-full rounded-full transition-[width,background-color] duration-slow ease-out motion-reduce:transition-none\",\r\n items: \"flex flex-col gap-1\",\r\n item: \"group/item relative flex items-start transition-colors duration-base ease-out gap-3\",\r\n content: \"flex min-w-0 flex-1 flex-col gap-0.5\",\r\n itemTitle: [\r\n \"text-pretty text-sm font-medium text-foreground transition-colors duration-base ease-out\",\r\n \"group-data-[status=complete]/item:text-muted-foreground\",\r\n \"group-data-[state]/item:line-through group-data-[state=unchecked]/item:decoration-transparent group-data-[state=checked]/item:decoration-muted-foreground\",\r\n ],\r\n itemDescription: \"text-pretty text-sm text-muted-foreground\",\r\n action: \"ml-auto flex shrink-0 items-center self-center pl-3 group-data-[state]/item:relative\",\r\n },\r\n variants: {\r\n variant: {\r\n card: { root: [\"rounded-2xl shadow-xs ring-1 ring-edge\", inFlowFill], item: \"rounded-xl\" },\r\n plain: { header: \"px-0 pt-0\", items: \"px-0 pb-0\", item: \"rounded-lg\" },\r\n },\r\n density: {\r\n compact: { header: \"pb-4\", item: \"p-2.5\" },\r\n comfortable: { header: \"pb-5\", item: \"p-3\" },\r\n },\r\n tickable: {\r\n true: {\r\n item: [\r\n \"hover:bg-muted/60 active:bg-muted\",\r\n \"has-[[data-slot=checklist-indicator]:focus-visible]:ring-2 has-[[data-slot=checklist-indicator]:focus-visible]:ring-focus\",\r\n ],\r\n },\r\n },\r\n },\r\n compoundVariants: [\r\n { variant: \"card\", density: \"compact\", class: { header: \"px-5 pt-5\", items: \"px-2.5 pb-2.5\" } },\r\n { variant: \"card\", density: \"comfortable\", class: { header: \"px-6 pt-6\", items: \"px-3 pb-3\" } },\r\n // Plain rows bleed into the host's padding, so the marks line up with its heading.\r\n { variant: \"plain\", density: \"compact\", class: { item: \"-mx-2.5\" } },\r\n { variant: \"plain\", density: \"comfortable\", class: { item: \"-mx-3\" } },\r\n ],\r\n defaultVariants: { variant: \"card\", density: \"compact\" },\r\n})\r\n\r\n/** The one task mark: an empty ring, an ink ring half filled, or the ink fill with a tick. */\r\nexport const checklistMarkVariants = tv({\r\n base: [\r\n \"mt-0.5 grid size-4 shrink-0 place-items-center rounded-full border border-input bg-[var(--surface,var(--background))]\",\r\n \"text-[var(--surface,var(--background))] shadow-xs [&_svg]:size-3 transition-colors duration-fast ease-out\",\r\n \"data-[status=active]:border-primary data-[state=checked]:border-primary data-[state=checked]:bg-primary\",\r\n ],\r\n variants: {\r\n interactive: {\r\n // The row is the hit area: the box's ::after covers the whole (relative) row.\r\n true: \"static cursor-pointer outline-none after:absolute after:inset-0 after:content-['']\",\r\n },\r\n },\r\n})\r\n\r\nexport type ChecklistStatus = \"todo\" | \"active\" | \"complete\"\r\n\r\nconst STATUS_TEXT: Record<ChecklistStatus, string> = {\r\n todo: \"Not started\",\r\n active: \"In progress\",\r\n complete: \"Completed\",\r\n}\r\n\r\n/* ─── Counting ──────────────────────────────────────────────────────────── */\r\n\r\ninterface Count {\r\n done: number\r\n total: number\r\n}\r\n\r\n/** Rows report here once mounted; the root reads the snapshot. */\r\nfunction createRowStore() {\r\n const rows = new Map<string, boolean>()\r\n const listeners = new Set<() => void>()\r\n let snapshot: Count | null = null\r\n const emit = () => {\r\n let done = 0\r\n for (const value of rows.values()) if (value) done++\r\n snapshot = rows.size ? { done, total: rows.size } : null\r\n for (const listener of listeners) listener()\r\n }\r\n return {\r\n set(id: string, done: boolean) {\r\n if (rows.get(id) === done) return\r\n rows.set(id, done)\r\n emit()\r\n },\r\n remove(id: string) {\r\n if (rows.delete(id)) emit()\r\n },\r\n subscribe(listener: () => void) {\r\n listeners.add(listener)\r\n return () => listeners.delete(listener)\r\n },\r\n snapshot: () => snapshot,\r\n }\r\n}\r\n\r\ntype RowStore = ReturnType<typeof createRowStore>\r\n\r\nconst serverSnapshot = () => null\r\n\r\n/** Counts the ChecklistItems the element tree shows, without rendering anything. */\r\nfunction countRows(node: React.ReactNode, count: Count = { done: 0, total: 0 }): Count {\r\n React.Children.forEach(node, (child) => {\r\n if (!React.isValidElement(child)) return\r\n const props = child.props as Record<string, unknown>\r\n if (resolveType(child.type) === ChecklistItem) {\r\n const p = props as ChecklistItemProps\r\n const tickable = isTickable(p)\r\n count.total++\r\n if (tickable ? (p.checked ?? p.defaultChecked ?? false) : p.status === \"complete\") count.done++\r\n return\r\n }\r\n if (props && \"children\" in props) countRows(props.children as React.ReactNode, count)\r\n })\r\n return count\r\n}\r\n\r\nconst LAZY = Symbol.for(\"react.lazy\")\r\n\r\n/**\r\n * Elements a server component hands to this client component arrive with lazy client-reference\r\n * types. Resolve them as React would; one that hasn't loaded yet is left to mount-time counting.\r\n */\r\nfunction resolveType(type: unknown): unknown {\r\n const lazy = type as { $$typeof?: symbol; _init?: (payload: unknown) => unknown; _payload?: unknown }\r\n if (lazy?.$$typeof !== LAZY || !lazy._init) return type\r\n try {\r\n return lazy._init(lazy._payload)\r\n } catch {\r\n return undefined\r\n }\r\n}\r\n\r\nfunction isTickable(p: Pick<ChecklistItemProps, \"checked\" | \"defaultChecked\" | \"onCheckedChange\">) {\r\n return p.checked !== undefined || p.defaultChecked !== undefined || p.onCheckedChange !== undefined\r\n}\r\n\r\n/* ─── Contexts ──────────────────────────────────────────────────────────── */\r\n\r\ntype Slots = ReturnType<typeof checklistVariants>\r\n\r\ninterface ChecklistContextValue {\r\n variant: \"card\" | \"plain\"\r\n density: Density\r\n done: number\r\n total: number\r\n /** False while rows the tree walk missed have yet to report in. */\r\n ready: boolean\r\n store: RowStore\r\n}\r\n\r\nconst ChecklistContext = React.createContext<ChecklistContextValue | null>(null)\r\n\r\nfunction useChecklist(name: string) {\r\n const context = React.useContext(ChecklistContext)\r\n if (!context) throw new Error(`\\`${name}\\` must be used within \\`Checklist\\``)\r\n return context\r\n}\r\n\r\nfunction useSlots(name: string, tickable = false): Slots {\r\n const { variant, density } = useChecklist(name)\r\n return checklistVariants({ variant, density, tickable })\r\n}\r\n\r\nconst ItemContext = React.createContext<{ titleId: string } | null>(null)\r\n\r\n/* ─── Checklist ─────────────────────────────────────────────────────────── */\r\n\r\nexport interface ChecklistProps extends React.ComponentProps<\"div\">, Omit<VariantProps<typeof checklistVariants>, \"tickable\"> {\r\n /** Completed tasks. Leave it out and the Checklist counts its complete rows. Clamped to total. */\r\n value?: number\r\n /** All tasks. Leave it out and the Checklist counts its rows. */\r\n total?: number\r\n /** Card and row padding; the mark stays put. Falls back to the nearest DensityProvider. */\r\n density?: Density\r\n /** Renders the panel onto its single child. */\r\n asChild?: boolean\r\n}\r\n\r\nexport function Checklist({\r\n value,\r\n total,\r\n variant = \"card\",\r\n density,\r\n asChild = false,\r\n className,\r\n children,\r\n ...props\r\n}: ChecklistProps) {\r\n const resolvedDensity = useDensity(density)\r\n const [store] = React.useState(createRowStore)\r\n const live = React.useSyncExternalStore(store.subscribe, store.snapshot, serverSnapshot)\r\n const walked = countRows(children)\r\n\r\n // Mounted rows are the truth once they have reported; before that (on the server and while\r\n // hydrating) the tree walk stands in. If the walk found nothing, a wrapper hides the rows.\r\n const counted = live ?? walked\r\n const ready = live !== null || walked.total > 0 || total !== undefined\r\n\r\n const all = Math.max(0, Math.round(total ?? counted.total))\r\n const done = Math.min(all, Math.max(0, Math.round(value ?? counted.done)))\r\n\r\n const slots = checklistVariants({ variant, density: resolvedDensity })\r\n const Comp = asChild ? Slot.Root : \"div\"\r\n const context = React.useMemo(\r\n () => ({ variant: variant ?? \"card\", density: resolvedDensity, done, total: all, ready, store }),\r\n [variant, resolvedDensity, done, all, ready, store],\r\n )\r\n\r\n return (\r\n <ChecklistContext.Provider value={context}>\r\n <Comp data-slot=\"checklist\" className={slots.root({ className })} {...props}>\r\n {children}\r\n </Comp>\r\n </ChecklistContext.Provider>\r\n )\r\n}\r\n\r\n/* ─── Header ────────────────────────────────────────────────────────────── */\r\n\r\nexport function ChecklistHeader({ className, ...props }: React.ComponentProps<\"div\">) {\r\n const slots = useSlots(\"ChecklistHeader\")\r\n return <div data-slot=\"checklist-header\" className={slots.header({ className })} {...props} />\r\n}\r\n\r\nexport interface ChecklistTitleProps extends React.ComponentProps<\"h3\"> {\r\n /** Renders onto its single child, to change the heading level. */\r\n asChild?: boolean\r\n}\r\n\r\nexport function ChecklistTitle({ asChild = false, className, ...props }: ChecklistTitleProps) {\r\n const slots = useSlots(\"ChecklistTitle\")\r\n const Comp = asChild ? Slot.Root : \"h3\"\r\n return <Comp data-slot=\"checklist-title\" className={slots.title({ className })} {...props} />\r\n}\r\n\r\nexport function ChecklistDescription({ className, ...props }: React.ComponentProps<\"p\">) {\r\n const slots = useSlots(\"ChecklistDescription\")\r\n return <p data-slot=\"checklist-description\" className={slots.description({ className })} {...props} />\r\n}\r\n\r\nexport interface ChecklistProgressProps extends React.ComponentProps<\"div\"> {\r\n /** The leading label. Defaults to \"{done} of {total} complete\", then \"All steps complete\". */\r\n label?: React.ReactNode\r\n}\r\n\r\nexport function ChecklistProgress({ label, className, ...props }: ChecklistProgressProps) {\r\n const { done, total, ready } = useChecklist(\"ChecklistProgress\")\r\n const slots = useSlots(\"ChecklistProgress\")\r\n const percent = total > 0 ? Math.round((done / total) * 100) : 0\r\n const complete = total > 0 && done === total\r\n const text = `${done} of ${total} complete`\r\n\r\n return (\r\n <div data-slot=\"checklist-progress\" className={slots.progress({ className })} {...props}>\r\n <div className={slots.progressLabel({ className: ready ? undefined : \"opacity-0\" })}>\r\n <span className={slots.progressCount()}>\r\n {label ??\r\n (complete ? (\r\n <>\r\n <Check aria-hidden=\"true\" />\r\n All steps complete\r\n </>\r\n ) : (\r\n <span>\r\n <AnimatedNumber value={done} /> of {total} complete\r\n </span>\r\n ))}\r\n </span>\r\n <span className={slots.progressPercent()}>\r\n <AnimatedNumber value={percent} format={(n) => `${n}%`} />\r\n </span>\r\n </div>\r\n <div\r\n role=\"progressbar\"\r\n aria-label=\"Progress\"\r\n aria-valuemin={0}\r\n aria-valuemax={100}\r\n aria-valuenow={percent}\r\n aria-valuetext={text}\r\n className={slots.track()}\r\n >\r\n <div\r\n data-slot=\"checklist-bar\"\r\n className={slots.bar({ className: complete ? \"bg-success\" : \"bg-primary\" })}\r\n style={{ width: `${percent}%` }}\r\n />\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\n/* ─── Items ─────────────────────────────────────────────────────────────── */\r\n\r\nexport function ChecklistItems({ className, ...props }: React.ComponentProps<\"ul\">) {\r\n const slots = useSlots(\"ChecklistItems\")\r\n return <ul data-slot=\"checklist-items\" className={slots.items({ className })} {...props} />\r\n}\r\n\r\nexport interface ChecklistItemProps extends React.ComponentProps<\"li\"> {\r\n /** The task state. On a row the reader ticks, `checked` decides complete. */\r\n status?: ChecklistStatus\r\n /** Ticked, controlled. The mark becomes a checkbox named by the title; the whole row toggles it. */\r\n checked?: boolean\r\n /** Ticked on first render, uncontrolled. */\r\n defaultChecked?: boolean\r\n /** Called when the reader ticks or unticks the row. */\r\n onCheckedChange?: (checked: boolean) => void\r\n /** Disables the checkbox on a row the reader ticks. */\r\n disabled?: boolean\r\n}\r\n\r\nexport function ChecklistItem({\r\n status = \"todo\",\r\n checked: checkedProp,\r\n defaultChecked,\r\n onCheckedChange,\r\n disabled,\r\n className,\r\n children,\r\n ...props\r\n}: ChecklistItemProps) {\r\n const { store } = useChecklist(\"ChecklistItem\")\r\n const tickable = isTickable({ checked: checkedProp, defaultChecked, onCheckedChange })\r\n const slots = useSlots(\"ChecklistItem\", tickable)\r\n const id = React.useId()\r\n const titleId = `${id}-title`\r\n\r\n const [checked = false, setChecked] = useControllableState<boolean>({\r\n prop: checkedProp,\r\n defaultProp: defaultChecked ?? false,\r\n onChange: onCheckedChange,\r\n })\r\n\r\n const resolved: ChecklistStatus = tickable ? (checked ? \"complete\" : status === \"complete\" ? \"todo\" : status) : status\r\n const done = resolved === \"complete\"\r\n\r\n React.useLayoutEffect(() => {\r\n store.set(id, done)\r\n }, [store, id, done])\r\n React.useLayoutEffect(() => () => store.remove(id), [store, id])\r\n\r\n const itemContext = React.useMemo(() => ({ titleId }), [titleId])\r\n\r\n return (\r\n <ItemContext.Provider value={itemContext}>\r\n <li\r\n data-slot=\"checklist-item\"\r\n data-status={resolved}\r\n data-state={tickable ? (checked ? \"checked\" : \"unchecked\") : undefined}\r\n className={slots.item({ className })}\r\n {...props}\r\n >\r\n {tickable ? (\r\n <CheckboxPrimitive.Root\r\n data-slot=\"checklist-indicator\"\r\n data-status={resolved}\r\n checked={checked}\r\n onCheckedChange={(next) => setChecked(next === true)}\r\n disabled={disabled}\r\n aria-labelledby={titleId}\r\n className={checklistMarkVariants({ interactive: true })}\r\n >\r\n <CheckboxPrimitive.Indicator className=\"flex\">\r\n <Tick draw />\r\n </CheckboxPrimitive.Indicator>\r\n </CheckboxPrimitive.Root>\r\n ) : (\r\n <MarkGlyph slot=\"checklist-indicator\" status={resolved} />\r\n )}\r\n {children}\r\n {tickable ? null : <span className=\"sr-only\">{STATUS_TEXT[resolved]}</span>}\r\n </li>\r\n </ItemContext.Provider>\r\n )\r\n}\r\n\r\nexport function ChecklistItemContent({ className, ...props }: React.ComponentProps<\"div\">) {\r\n const slots = useSlots(\"ChecklistItemContent\")\r\n return <div data-slot=\"checklist-item-content\" className={slots.content({ className })} {...props} />\r\n}\r\n\r\nexport function ChecklistItemTitle({ className, id, ...props }: React.ComponentProps<\"div\">) {\r\n const slots = useSlots(\"ChecklistItemTitle\")\r\n const item = React.useContext(ItemContext)\r\n return <div data-slot=\"checklist-item-title\" id={id ?? item?.titleId} className={slots.itemTitle({ className })} {...props} />\r\n}\r\n\r\nexport function ChecklistItemDescription({ className, ...props }: React.ComponentProps<\"div\">) {\r\n const slots = useSlots(\"ChecklistItemDescription\")\r\n return <div data-slot=\"checklist-item-description\" className={slots.itemDescription({ className })} {...props} />\r\n}\r\n\r\nexport function ChecklistItemAction({ className, ...props }: React.ComponentProps<\"div\">) {\r\n const slots = useSlots(\"ChecklistItemAction\")\r\n return <div data-slot=\"checklist-item-action\" className={slots.action({ className })} {...props} />\r\n}\r\n\r\n/* ─── The mark ──────────────────────────────────────────────────────────── */\r\n\r\nfunction Tick({ draw = false }: { draw?: boolean }) {\r\n return (\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n strokeWidth=\"3\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n aria-hidden=\"true\"\r\n >\r\n <path d=\"M5 12.5l4.5 4.5L19 7.5\" pathLength={1} className={draw ? \"animate-check-draw [stroke-dasharray:1]\" : undefined} />\r\n </svg>\r\n )\r\n}\r\n\r\nfunction MarkGlyph({\r\n slot,\r\n status,\r\n className,\r\n ...props\r\n}: { slot: string; status: ChecklistStatus } & React.ComponentProps<\"span\">) {\r\n return (\r\n <span\r\n data-slot={slot}\r\n data-status={status}\r\n data-state={status === \"complete\" ? \"checked\" : \"unchecked\"}\r\n aria-hidden=\"true\"\r\n className={checklistMarkVariants({ className })}\r\n {...props}\r\n >\r\n {status === \"complete\" ? (\r\n <Tick />\r\n ) : status === \"active\" ? (\r\n <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\" className=\"fill-primary animate-in fade-in zoom-in-50 duration-base ease-out\">\r\n <path d=\"M6 2a4 4 0 0 1 0 8z\" />\r\n </svg>\r\n ) : null}\r\n </span>\r\n )\r\n}\r\n\r\nexport interface ChecklistMarkProps extends React.ComponentProps<\"span\"> {\r\n /** An empty ring, an ink ring half filled, or the ink fill with a tick. */\r\n status?: ChecklistStatus\r\n}\r\n\r\n/** The task mark alone, for task lists the Checklist does not lay out. Decoration: say the state in words. */\r\nexport function ChecklistMark({ status = \"todo\", ...props }: ChecklistMarkProps) {\r\n return <MarkGlyph slot=\"checklist-mark\" status={status} {...props} />\r\n}\r\n"],"mappings":";AAkPM,SAgDQ,UAhDR,KAgDQ,YAhDR;AAhPN,YAAY,WAAW;AACvB,SAAS,YAAY,mBAAmB,YAAY;AACpD,SAAS,aAAa;AAEtB,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AACrC,SAAS,kBAAgC;AACzC,SAAS,YAAY,UAA6B;AAS3C,MAAM,oBAAoB,GAAG;AAAA,EAClC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU;AAAA,IACV,eAAe;AAAA,IACf,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,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,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,eAAY;AAAA,MAEZ,8BAAC,UAAK,GAAE,0BAAyB,YAAY,GAAG,WAAW,OAAO,4CAA4C,QAAW;AAAA;AAAA,EAC3H;AAEJ;AAEA,SAAS,UAAU;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6E;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAW;AAAA,MACX,eAAa;AAAA,MACb,cAAY,WAAW,aAAa,YAAY;AAAA,MAChD,eAAY;AAAA,MACZ,WAAW,sBAAsB,EAAE,UAAU,CAAC;AAAA,MAC7C,GAAG;AAAA,MAEH,qBAAW,aACV,oBAAC,QAAK,IACJ,WAAW,WACb,oBAAC,SAAI,SAAQ,aAAY,eAAY,QAAO,WAAU,qEACpD,8BAAC,UAAK,GAAE,uBAAsB,GAChC,IACE;AAAA;AAAA,EACN;AAEJ;AAQO,SAAS,cAAc,EAAE,SAAS,QAAQ,GAAG,MAAM,GAAuB;AAC/E,SAAO,oBAAC,aAAU,MAAK,kBAAiB,QAAiB,GAAG,OAAO;AACrE;","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Checklist,
|
|
3
|
+
ChecklistHeader,
|
|
4
|
+
ChecklistTitle,
|
|
5
|
+
ChecklistDescription,
|
|
6
|
+
ChecklistProgress,
|
|
7
|
+
ChecklistItems,
|
|
8
|
+
ChecklistItem,
|
|
9
|
+
ChecklistItemContent,
|
|
10
|
+
ChecklistItemTitle,
|
|
11
|
+
ChecklistItemDescription,
|
|
12
|
+
ChecklistItemAction,
|
|
13
|
+
ChecklistMark,
|
|
14
|
+
checklistVariants,
|
|
15
|
+
checklistMarkVariants
|
|
16
|
+
} from "./checklist.mjs";
|
|
17
|
+
export {
|
|
18
|
+
Checklist,
|
|
19
|
+
ChecklistDescription,
|
|
20
|
+
ChecklistHeader,
|
|
21
|
+
ChecklistItem,
|
|
22
|
+
ChecklistItemAction,
|
|
23
|
+
ChecklistItemContent,
|
|
24
|
+
ChecklistItemDescription,
|
|
25
|
+
ChecklistItemTitle,
|
|
26
|
+
ChecklistItems,
|
|
27
|
+
ChecklistMark,
|
|
28
|
+
ChecklistProgress,
|
|
29
|
+
ChecklistTitle,
|
|
30
|
+
checklistMarkVariants,
|
|
31
|
+
checklistVariants
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/checklist/index.ts"],"sourcesContent":["export {\n Checklist,\n ChecklistHeader,\n ChecklistTitle,\n ChecklistDescription,\n ChecklistProgress,\n ChecklistItems,\n ChecklistItem,\n ChecklistItemContent,\n ChecklistItemTitle,\n ChecklistItemDescription,\n ChecklistItemAction,\n ChecklistMark,\n checklistVariants,\n checklistMarkVariants,\n type ChecklistProps,\n type ChecklistTitleProps,\n type ChecklistProgressProps,\n type ChecklistItemProps,\n type ChecklistMarkProps,\n type ChecklistStatus,\n} from \"./checklist.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,OAOK;","names":[]}
|