@thalavaisankar/atoms 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +142 -2
- package/THIRD_PARTY_NOTICES.md +246 -0
- package/dist/blocks/index.d.mts +2 -0
- package/dist/blocks/index.mjs +1 -0
- package/dist/blocks/index.mjs.map +1 -0
- package/dist/components/ui/accordion/accordion.mjs +194 -0
- package/dist/components/ui/accordion/accordion.mjs.map +1 -0
- package/dist/components/ui/accordion/index.mjs +15 -0
- package/dist/components/ui/accordion/index.mjs.map +1 -0
- package/dist/components/ui/activity-feed/activity-feed.mjs +287 -0
- package/dist/components/ui/activity-feed/activity-feed.mjs.map +1 -0
- package/dist/components/ui/activity-feed/index.mjs +39 -0
- package/dist/components/ui/activity-feed/index.mjs.map +1 -0
- package/dist/components/ui/alert/alert.mjs +128 -0
- package/dist/components/ui/alert/alert.mjs.map +1 -0
- package/dist/components/ui/alert/index.mjs +17 -0
- package/dist/components/ui/alert/index.mjs.map +1 -0
- package/dist/components/ui/animated-label/animated-label.mjs +89 -0
- package/dist/components/ui/animated-label/animated-label.mjs.map +1 -0
- package/dist/components/ui/animated-label/index.mjs +9 -0
- package/dist/components/ui/animated-label/index.mjs.map +1 -0
- package/dist/components/ui/animated-number/animated-number.mjs +101 -0
- package/dist/components/ui/animated-number/animated-number.mjs.map +1 -0
- package/dist/components/ui/animated-number/index.mjs +5 -0
- package/dist/components/ui/animated-number/index.mjs.map +1 -0
- package/dist/components/ui/avatar/avatar.mjs +130 -0
- package/dist/components/ui/avatar/avatar.mjs.map +1 -0
- package/dist/components/ui/avatar/index.mjs +17 -0
- package/dist/components/ui/avatar/index.mjs.map +1 -0
- package/dist/components/ui/avatar-group/avatar-group.mjs +49 -0
- package/dist/components/ui/avatar-group/avatar-group.mjs.map +1 -0
- package/dist/components/ui/avatar-group/index.mjs +5 -0
- package/dist/components/ui/avatar-group/index.mjs.map +1 -0
- package/dist/components/ui/badge/badge-motion.mjs +108 -0
- package/dist/components/ui/badge/badge-motion.mjs.map +1 -0
- package/dist/components/ui/badge/badge.mjs +314 -0
- package/dist/components/ui/badge/badge.mjs.map +1 -0
- package/dist/components/ui/badge/index.mjs +27 -0
- package/dist/components/ui/badge/index.mjs.map +1 -0
- package/dist/components/ui/badge/readable-ink.mjs +36 -0
- package/dist/components/ui/badge/readable-ink.mjs.map +1 -0
- package/dist/components/ui/badge-group/badge-group.mjs +132 -0
- package/dist/components/ui/badge-group/badge-group.mjs.map +1 -0
- package/dist/components/ui/badge-group/index.mjs +5 -0
- package/dist/components/ui/badge-group/index.mjs.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.mjs +108 -0
- package/dist/components/ui/breadcrumb/breadcrumb.mjs.map +1 -0
- package/dist/components/ui/breadcrumb/index.mjs +19 -0
- package/dist/components/ui/breadcrumb/index.mjs.map +1 -0
- package/dist/components/ui/button/button-variants.mjs +80 -0
- package/dist/components/ui/button/button-variants.mjs.map +1 -0
- package/dist/components/ui/button/button.mjs +74 -0
- package/dist/components/ui/button/button.mjs.map +1 -0
- package/dist/components/ui/button/index.mjs +17 -0
- package/dist/components/ui/button/index.mjs.map +1 -0
- package/dist/components/ui/button/social-button.mjs +45 -0
- package/dist/components/ui/button/social-button.mjs.map +1 -0
- package/dist/components/ui/button/social-logos.mjs +179 -0
- package/dist/components/ui/button/social-logos.mjs.map +1 -0
- package/dist/components/ui/button/split-button.mjs +72 -0
- package/dist/components/ui/button/split-button.mjs.map +1 -0
- package/dist/components/ui/button-group/button-group.mjs +58 -0
- package/dist/components/ui/button-group/button-group.mjs.map +1 -0
- package/dist/components/ui/button-group/index.mjs +11 -0
- package/dist/components/ui/button-group/index.mjs.map +1 -0
- package/dist/components/ui/card/card.mjs +131 -0
- package/dist/components/ui/card/card.mjs.map +1 -0
- package/dist/components/ui/card/index.mjs +23 -0
- package/dist/components/ui/card/index.mjs.map +1 -0
- package/dist/components/ui/chart/bar-list.mjs +87 -0
- package/dist/components/ui/chart/bar-list.mjs.map +1 -0
- package/dist/components/ui/chart/chart-colors.mjs +68 -0
- package/dist/components/ui/chart/chart-colors.mjs.map +1 -0
- package/dist/components/ui/chart/chart-geometry.mjs +152 -0
- package/dist/components/ui/chart/chart-geometry.mjs.map +1 -0
- package/dist/components/ui/chart/chart-specialized.mjs +194 -0
- package/dist/components/ui/chart/chart-specialized.mjs.map +1 -0
- package/dist/components/ui/chart/chart.mjs +648 -0
- package/dist/components/ui/chart/chart.mjs.map +1 -0
- package/dist/components/ui/chart/index.mjs +88 -0
- package/dist/components/ui/chart/index.mjs.map +1 -0
- package/dist/components/ui/chart/radial-meter.mjs +142 -0
- package/dist/components/ui/chart/radial-meter.mjs.map +1 -0
- package/dist/components/ui/chart/types.mjs +1 -0
- package/dist/components/ui/chart/types.mjs.map +1 -0
- package/dist/components/ui/checkbox/checkbox.mjs +183 -0
- package/dist/components/ui/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/ui/checkbox/index.mjs +11 -0
- package/dist/components/ui/checkbox/index.mjs.map +1 -0
- package/dist/components/ui/checklist/checklist.mjs +353 -0
- package/dist/components/ui/checklist/checklist.mjs.map +1 -0
- package/dist/components/ui/checklist/index.mjs +33 -0
- package/dist/components/ui/checklist/index.mjs.map +1 -0
- package/dist/components/ui/chip/chip.mjs +202 -0
- package/dist/components/ui/chip/chip.mjs.map +1 -0
- package/dist/components/ui/chip/index.mjs +13 -0
- package/dist/components/ui/chip/index.mjs.map +1 -0
- package/dist/components/ui/chip-group/chip-group.mjs +204 -0
- package/dist/components/ui/chip-group/chip-group.mjs.map +1 -0
- package/dist/components/ui/chip-group/index.mjs +11 -0
- package/dist/components/ui/chip-group/index.mjs.map +1 -0
- package/dist/components/ui/code-snippet/code-highlighter.mjs +16 -0
- package/dist/components/ui/code-snippet/code-highlighter.mjs.map +1 -0
- package/dist/components/ui/code-snippet/code-snippet.mjs +437 -0
- package/dist/components/ui/code-snippet/code-snippet.mjs.map +1 -0
- package/dist/components/ui/code-snippet/index.mjs +17 -0
- package/dist/components/ui/code-snippet/index.mjs.map +1 -0
- package/dist/components/ui/code-snippet/labels.mjs +16 -0
- package/dist/components/ui/code-snippet/labels.mjs.map +1 -0
- package/dist/components/ui/code-snippet/tokenize.mjs +715 -0
- package/dist/components/ui/code-snippet/tokenize.mjs.map +1 -0
- package/dist/components/ui/code-snippet/types.mjs +1 -0
- package/dist/components/ui/code-snippet/types.mjs.map +1 -0
- package/dist/components/ui/collapsible/collapsible.mjs +85 -0
- package/dist/components/ui/collapsible/collapsible.mjs.map +1 -0
- package/dist/components/ui/collapsible/index.mjs +15 -0
- package/dist/components/ui/collapsible/index.mjs.map +1 -0
- package/dist/components/ui/color-picker/color-picker.mjs +852 -0
- package/dist/components/ui/color-picker/color-picker.mjs.map +1 -0
- package/dist/components/ui/color-picker/index.mjs +47 -0
- package/dist/components/ui/color-picker/index.mjs.map +1 -0
- package/dist/components/ui/combobox/combobox.mjs +745 -0
- package/dist/components/ui/combobox/combobox.mjs.map +1 -0
- package/dist/components/ui/combobox/index.mjs +27 -0
- package/dist/components/ui/combobox/index.mjs.map +1 -0
- package/dist/components/ui/command/command.mjs +439 -0
- package/dist/components/ui/command/command.mjs.map +1 -0
- package/dist/components/ui/command/index.mjs +31 -0
- package/dist/components/ui/command/index.mjs.map +1 -0
- package/dist/components/ui/compare-slider/compare-slider.mjs +335 -0
- package/dist/components/ui/compare-slider/compare-slider.mjs.map +1 -0
- package/dist/components/ui/compare-slider/index.mjs +17 -0
- package/dist/components/ui/compare-slider/index.mjs.map +1 -0
- package/dist/components/ui/context-menu/context-menu.mjs +184 -0
- package/dist/components/ui/context-menu/context-menu.mjs.map +1 -0
- package/dist/components/ui/context-menu/index.mjs +37 -0
- package/dist/components/ui/context-menu/index.mjs.map +1 -0
- package/dist/components/ui/data-table/active-filters.mjs +69 -0
- package/dist/components/ui/data-table/active-filters.mjs.map +1 -0
- package/dist/components/ui/data-table/body-row.mjs +118 -0
- package/dist/components/ui/data-table/body-row.mjs.map +1 -0
- package/dist/components/ui/data-table/cards.mjs +76 -0
- package/dist/components/ui/data-table/cards.mjs.map +1 -0
- package/dist/components/ui/data-table/data-table.mjs +680 -0
- package/dist/components/ui/data-table/data-table.mjs.map +1 -0
- package/dist/components/ui/data-table/empty.mjs +26 -0
- package/dist/components/ui/data-table/empty.mjs.map +1 -0
- package/dist/components/ui/data-table/expand.mjs +70 -0
- package/dist/components/ui/data-table/expand.mjs.map +1 -0
- package/dist/components/ui/data-table/faceted-filter.mjs +112 -0
- package/dist/components/ui/data-table/faceted-filter.mjs.map +1 -0
- package/dist/components/ui/data-table/features.mjs +96 -0
- package/dist/components/ui/data-table/features.mjs.map +1 -0
- package/dist/components/ui/data-table/grip.mjs +37 -0
- package/dist/components/ui/data-table/grip.mjs.map +1 -0
- package/dist/components/ui/data-table/header-cell.mjs +85 -0
- package/dist/components/ui/data-table/header-cell.mjs.map +1 -0
- package/dist/components/ui/data-table/index.mjs +55 -0
- package/dist/components/ui/data-table/index.mjs.map +1 -0
- package/dist/components/ui/data-table/labels.mjs +55 -0
- package/dist/components/ui/data-table/labels.mjs.map +1 -0
- package/dist/components/ui/data-table/load-more.mjs +56 -0
- package/dist/components/ui/data-table/load-more.mjs.map +1 -0
- package/dist/components/ui/data-table/move-item.mjs +11 -0
- package/dist/components/ui/data-table/move-item.mjs.map +1 -0
- package/dist/components/ui/data-table/persist.mjs +65 -0
- package/dist/components/ui/data-table/persist.mjs.map +1 -0
- package/dist/components/ui/data-table/selection-bar.mjs +51 -0
- package/dist/components/ui/data-table/selection-bar.mjs.map +1 -0
- package/dist/components/ui/data-table/tabs.mjs +48 -0
- package/dist/components/ui/data-table/tabs.mjs.map +1 -0
- package/dist/components/ui/data-table/toolbar.mjs +92 -0
- package/dist/components/ui/data-table/toolbar.mjs.map +1 -0
- package/dist/components/ui/data-table/use-reorder.mjs +239 -0
- package/dist/components/ui/data-table/use-reorder.mjs.map +1 -0
- package/dist/components/ui/data-table/use-reveal.mjs +24 -0
- package/dist/components/ui/data-table/use-reveal.mjs.map +1 -0
- package/dist/components/ui/data-table/use-table-state.mjs +38 -0
- package/dist/components/ui/data-table/use-table-state.mjs.map +1 -0
- package/dist/components/ui/data-table/view-options.mjs +66 -0
- package/dist/components/ui/data-table/view-options.mjs.map +1 -0
- package/dist/components/ui/date-picker/calendar.mjs +466 -0
- package/dist/components/ui/date-picker/calendar.mjs.map +1 -0
- package/dist/components/ui/date-picker/date-picker.mjs +366 -0
- package/dist/components/ui/date-picker/date-picker.mjs.map +1 -0
- package/dist/components/ui/date-picker/index.mjs +17 -0
- package/dist/components/ui/date-picker/index.mjs.map +1 -0
- package/dist/components/ui/date-picker/presets.mjs +49 -0
- package/dist/components/ui/date-picker/presets.mjs.map +1 -0
- package/dist/components/ui/description-list/description-list.mjs +40 -0
- package/dist/components/ui/description-list/description-list.mjs.map +1 -0
- package/dist/components/ui/description-list/index.mjs +15 -0
- package/dist/components/ui/description-list/index.mjs.map +1 -0
- package/dist/components/ui/dialog/dialog-stepper.mjs +23 -0
- package/dist/components/ui/dialog/dialog-stepper.mjs.map +1 -0
- package/dist/components/ui/dialog/dialog.mjs +343 -0
- package/dist/components/ui/dialog/dialog.mjs.map +1 -0
- package/dist/components/ui/dialog/focus-return.mjs +21 -0
- package/dist/components/ui/dialog/focus-return.mjs.map +1 -0
- package/dist/components/ui/dialog/index.mjs +33 -0
- package/dist/components/ui/dialog/index.mjs.map +1 -0
- package/dist/components/ui/divider/divider.mjs +130 -0
- package/dist/components/ui/divider/divider.mjs.map +1 -0
- package/dist/components/ui/divider/index.mjs +6 -0
- package/dist/components/ui/divider/index.mjs.map +1 -0
- package/dist/components/ui/dock/dock.mjs +444 -0
- package/dist/components/ui/dock/dock.mjs.map +1 -0
- package/dist/components/ui/dock/index.mjs +19 -0
- package/dist/components/ui/dock/index.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-actions.mjs +118 -0
- package/dist/components/ui/document-editor/block-actions.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-commands.mjs +182 -0
- package/dist/components/ui/document-editor/block-commands.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-handle.mjs +387 -0
- package/dist/components/ui/document-editor/block-handle.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-morph.mjs +95 -0
- package/dist/components/ui/document-editor/block-morph.mjs.map +1 -0
- package/dist/components/ui/document-editor/block-selection.mjs +81 -0
- package/dist/components/ui/document-editor/block-selection.mjs.map +1 -0
- package/dist/components/ui/document-editor/blocks.mjs +30 -0
- package/dist/components/ui/document-editor/blocks.mjs.map +1 -0
- package/dist/components/ui/document-editor/bubble-menu.mjs +120 -0
- package/dist/components/ui/document-editor/bubble-menu.mjs.map +1 -0
- package/dist/components/ui/document-editor/code-block.mjs +89 -0
- package/dist/components/ui/document-editor/code-block.mjs.map +1 -0
- package/dist/components/ui/document-editor/collaboration-types.mjs +9 -0
- package/dist/components/ui/document-editor/collaboration-types.mjs.map +1 -0
- package/dist/components/ui/document-editor/collaboration.mjs +198 -0
- package/dist/components/ui/document-editor/collaboration.mjs.map +1 -0
- package/dist/components/ui/document-editor/columns.mjs +52 -0
- package/dist/components/ui/document-editor/columns.mjs.map +1 -0
- package/dist/components/ui/document-editor/contents.mjs +60 -0
- package/dist/components/ui/document-editor/contents.mjs.map +1 -0
- package/dist/components/ui/document-editor/date-chip.mjs +115 -0
- package/dist/components/ui/document-editor/date-chip.mjs.map +1 -0
- package/dist/components/ui/document-editor/date-words.mjs +101 -0
- package/dist/components/ui/document-editor/date-words.mjs.map +1 -0
- package/dist/components/ui/document-editor/doc-labels.mjs +19 -0
- package/dist/components/ui/document-editor/doc-labels.mjs.map +1 -0
- package/dist/components/ui/document-editor/document-editor.mjs +496 -0
- package/dist/components/ui/document-editor/document-editor.mjs.map +1 -0
- package/dist/components/ui/document-editor/emoji-suggest.mjs +81 -0
- package/dist/components/ui/document-editor/emoji-suggest.mjs.map +1 -0
- package/dist/components/ui/document-editor/focus-mode.mjs +32 -0
- package/dist/components/ui/document-editor/focus-mode.mjs.map +1 -0
- package/dist/components/ui/document-editor/geometry.mjs +35 -0
- package/dist/components/ui/document-editor/geometry.mjs.map +1 -0
- package/dist/components/ui/document-editor/ghost-text.mjs +154 -0
- package/dist/components/ui/document-editor/ghost-text.mjs.map +1 -0
- package/dist/components/ui/document-editor/gliding-caret.mjs +118 -0
- package/dist/components/ui/document-editor/gliding-caret.mjs.map +1 -0
- package/dist/components/ui/document-editor/headings.mjs +64 -0
- package/dist/components/ui/document-editor/headings.mjs.map +1 -0
- package/dist/components/ui/document-editor/image.mjs +318 -0
- package/dist/components/ui/document-editor/image.mjs.map +1 -0
- package/dist/components/ui/document-editor/index.mjs +131 -0
- package/dist/components/ui/document-editor/index.mjs.map +1 -0
- package/dist/components/ui/document-editor/labels.mjs +96 -0
- package/dist/components/ui/document-editor/labels.mjs.map +1 -0
- package/dist/components/ui/document-editor/link-card.mjs +138 -0
- package/dist/components/ui/document-editor/link-card.mjs.map +1 -0
- package/dist/components/ui/document-editor/mentions.mjs +105 -0
- package/dist/components/ui/document-editor/mentions.mjs.map +1 -0
- package/dist/components/ui/document-editor/outline.mjs +138 -0
- package/dist/components/ui/document-editor/outline.mjs.map +1 -0
- package/dist/components/ui/document-editor/section-fold.mjs +124 -0
- package/dist/components/ui/document-editor/section-fold.mjs.map +1 -0
- package/dist/components/ui/document-editor/slash-command.mjs +210 -0
- package/dist/components/ui/document-editor/slash-command.mjs.map +1 -0
- package/dist/components/ui/document-editor/suggest-list.mjs +187 -0
- package/dist/components/ui/document-editor/suggest-list.mjs.map +1 -0
- package/dist/components/ui/document-editor/table.mjs +242 -0
- package/dist/components/ui/document-editor/table.mjs.map +1 -0
- package/dist/components/ui/document-editor/templates.mjs +66 -0
- package/dist/components/ui/document-editor/templates.mjs.map +1 -0
- package/dist/components/ui/document-editor/toggle.mjs +176 -0
- package/dist/components/ui/document-editor/toggle.mjs.map +1 -0
- package/dist/components/ui/document-editor/typography-rules.mjs +8 -0
- package/dist/components/ui/document-editor/typography-rules.mjs.map +1 -0
- package/dist/components/ui/document-editor/use-editor-value.mjs +34 -0
- package/dist/components/ui/document-editor/use-editor-value.mjs.map +1 -0
- package/dist/components/ui/drawer/drawer-nav.mjs +153 -0
- package/dist/components/ui/drawer/drawer-nav.mjs.map +1 -0
- package/dist/components/ui/drawer/drawer.mjs +334 -0
- package/dist/components/ui/drawer/drawer.mjs.map +1 -0
- package/dist/components/ui/drawer/index.mjs +37 -0
- package/dist/components/ui/drawer/index.mjs.map +1 -0
- package/dist/components/ui/drawer/use-swipe-to-close.mjs +77 -0
- package/dist/components/ui/drawer/use-swipe-to-close.mjs.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.mjs +567 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.mjs.map +1 -0
- package/dist/components/ui/dropdown-menu/index.mjs +43 -0
- package/dist/components/ui/dropdown-menu/index.mjs.map +1 -0
- package/dist/components/ui/editable-text/editable-text.mjs +148 -0
- package/dist/components/ui/editable-text/editable-text.mjs.map +1 -0
- package/dist/components/ui/editable-text/index.mjs +6 -0
- package/dist/components/ui/editable-text/index.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/emoji-data.mjs +469 -0
- package/dist/components/ui/emoji-picker/emoji-data.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/emoji-picker.mjs +464 -0
- package/dist/components/ui/emoji-picker/emoji-picker.mjs.map +1 -0
- package/dist/components/ui/emoji-picker/index.mjs +19 -0
- package/dist/components/ui/emoji-picker/index.mjs.map +1 -0
- package/dist/components/ui/empty-state/empty-state.mjs +110 -0
- package/dist/components/ui/empty-state/empty-state.mjs.map +1 -0
- package/dist/components/ui/empty-state/index.mjs +17 -0
- package/dist/components/ui/empty-state/index.mjs.map +1 -0
- package/dist/components/ui/event-calendar/calendar-math.mjs +256 -0
- package/dist/components/ui/event-calendar/calendar-math.mjs.map +1 -0
- package/dist/components/ui/event-calendar/context.mjs +51 -0
- package/dist/components/ui/event-calendar/context.mjs.map +1 -0
- package/dist/components/ui/event-calendar/editor.mjs +292 -0
- package/dist/components/ui/event-calendar/editor.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-block.mjs +55 -0
- package/dist/components/ui/event-calendar/event-block.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-calendar.mjs +438 -0
- package/dist/components/ui/event-calendar/event-calendar.mjs.map +1 -0
- package/dist/components/ui/event-calendar/event-keys.mjs +41 -0
- package/dist/components/ui/event-calendar/event-keys.mjs.map +1 -0
- package/dist/components/ui/event-calendar/index.mjs +37 -0
- package/dist/components/ui/event-calendar/index.mjs.map +1 -0
- package/dist/components/ui/event-calendar/month-grid.mjs +207 -0
- package/dist/components/ui/event-calendar/month-grid.mjs.map +1 -0
- package/dist/components/ui/event-calendar/narrow.mjs +193 -0
- package/dist/components/ui/event-calendar/narrow.mjs.map +1 -0
- package/dist/components/ui/event-calendar/time-grid.mjs +534 -0
- package/dist/components/ui/event-calendar/time-grid.mjs.map +1 -0
- package/dist/components/ui/expandable-search/expandable-search.mjs +174 -0
- package/dist/components/ui/expandable-search/expandable-search.mjs.map +1 -0
- package/dist/components/ui/expandable-search/index.mjs +6 -0
- package/dist/components/ui/expandable-search/index.mjs.map +1 -0
- package/dist/components/ui/field/field.mjs +444 -0
- package/dist/components/ui/field/field.mjs.map +1 -0
- package/dist/components/ui/field/index.mjs +21 -0
- package/dist/components/ui/field/index.mjs.map +1 -0
- package/dist/components/ui/file-card/file-card.mjs +198 -0
- package/dist/components/ui/file-card/file-card.mjs.map +1 -0
- package/dist/components/ui/file-card/file-icon.mjs +66 -0
- package/dist/components/ui/file-card/file-icon.mjs.map +1 -0
- package/dist/components/ui/file-card/file-types.mjs +70 -0
- package/dist/components/ui/file-card/file-types.mjs.map +1 -0
- package/dist/components/ui/file-card/index.mjs +32 -0
- package/dist/components/ui/file-card/index.mjs.map +1 -0
- package/dist/components/ui/file-preview/context.mjs +77 -0
- package/dist/components/ui/file-preview/context.mjs.map +1 -0
- package/dist/components/ui/file-preview/file-preview.mjs +865 -0
- package/dist/components/ui/file-preview/file-preview.mjs.map +1 -0
- package/dist/components/ui/file-preview/index.mjs +56 -0
- package/dist/components/ui/file-preview/index.mjs.map +1 -0
- package/dist/components/ui/file-preview/pdf.mjs +250 -0
- package/dist/components/ui/file-preview/pdf.mjs.map +1 -0
- package/dist/components/ui/file-preview/renderers.mjs +257 -0
- package/dist/components/ui/file-preview/renderers.mjs.map +1 -0
- package/dist/components/ui/file-upload/file-upload.mjs +633 -0
- package/dist/components/ui/file-upload/file-upload.mjs.map +1 -0
- package/dist/components/ui/file-upload/index.mjs +42 -0
- package/dist/components/ui/file-upload/index.mjs.map +1 -0
- package/dist/components/ui/file-upload/validate.mjs +111 -0
- package/dist/components/ui/file-upload/validate.mjs.map +1 -0
- package/dist/components/ui/flag/flag.mjs +39 -0
- package/dist/components/ui/flag/flag.mjs.map +1 -0
- package/dist/components/ui/flag/index.mjs +7 -0
- package/dist/components/ui/flag/index.mjs.map +1 -0
- package/dist/components/ui/floating-window/floating-window.mjs +255 -0
- package/dist/components/ui/floating-window/floating-window.mjs.map +1 -0
- package/dist/components/ui/floating-window/index.mjs +11 -0
- package/dist/components/ui/floating-window/index.mjs.map +1 -0
- package/dist/components/ui/form/form-section.mjs +87 -0
- package/dist/components/ui/form/form-section.mjs.map +1 -0
- package/dist/components/ui/form/form.mjs +205 -0
- package/dist/components/ui/form/form.mjs.map +1 -0
- package/dist/components/ui/form/index.mjs +29 -0
- package/dist/components/ui/form/index.mjs.map +1 -0
- package/dist/components/ui/globe/globe-data.mjs +9 -0
- package/dist/components/ui/globe/globe-data.mjs.map +1 -0
- package/dist/components/ui/globe/globe-math.mjs +269 -0
- package/dist/components/ui/globe/globe-math.mjs.map +1 -0
- package/dist/components/ui/globe/globe.mjs +719 -0
- package/dist/components/ui/globe/globe.mjs.map +1 -0
- package/dist/components/ui/globe/index.mjs +13 -0
- package/dist/components/ui/globe/index.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-children.mjs +13 -0
- package/dist/components/ui/highlight-match/highlight-children.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-match-variants.mjs +17 -0
- package/dist/components/ui/highlight-match/highlight-match-variants.mjs.map +1 -0
- package/dist/components/ui/highlight-match/highlight-match.mjs +37 -0
- package/dist/components/ui/highlight-match/highlight-match.mjs.map +1 -0
- package/dist/components/ui/highlight-match/index.mjs +15 -0
- package/dist/components/ui/highlight-match/index.mjs.map +1 -0
- package/dist/components/ui/highlight-match/match-ranges.mjs +50 -0
- package/dist/components/ui/highlight-match/match-ranges.mjs.map +1 -0
- package/dist/components/ui/histogram-slider/histogram-slider.mjs +83 -0
- package/dist/components/ui/histogram-slider/histogram-slider.mjs.map +1 -0
- package/dist/components/ui/histogram-slider/index.mjs +6 -0
- package/dist/components/ui/histogram-slider/index.mjs.map +1 -0
- package/dist/components/ui/hold-button/hold-button.mjs +258 -0
- package/dist/components/ui/hold-button/hold-button.mjs.map +1 -0
- package/dist/components/ui/hold-button/index.mjs +6 -0
- package/dist/components/ui/hold-button/index.mjs.map +1 -0
- package/dist/components/ui/hover-card/hover-card.mjs +111 -0
- package/dist/components/ui/hover-card/hover-card.mjs.map +1 -0
- package/dist/components/ui/hover-card/index.mjs +21 -0
- package/dist/components/ui/hover-card/index.mjs.map +1 -0
- package/dist/components/ui/ink-tray/index.mjs +29 -0
- package/dist/components/ui/ink-tray/index.mjs.map +1 -0
- package/dist/components/ui/ink-tray/ink-tray-art.mjs +68 -0
- package/dist/components/ui/ink-tray/ink-tray-art.mjs.map +1 -0
- package/dist/components/ui/ink-tray/ink-tray.mjs +350 -0
- package/dist/components/ui/ink-tray/ink-tray.mjs.map +1 -0
- package/dist/components/ui/input/index.mjs +41 -0
- package/dist/components/ui/input/index.mjs.map +1 -0
- package/dist/components/ui/input/input.mjs +268 -0
- package/dist/components/ui/input/input.mjs.map +1 -0
- package/dist/components/ui/input/number-input.mjs +272 -0
- package/dist/components/ui/input/number-input.mjs.map +1 -0
- package/dist/components/ui/input/password-input.mjs +49 -0
- package/dist/components/ui/input/password-input.mjs.map +1 -0
- package/dist/components/ui/input/phone-input-countries.mjs +216 -0
- package/dist/components/ui/input/phone-input-countries.mjs.map +1 -0
- package/dist/components/ui/input/phone-input.mjs +326 -0
- package/dist/components/ui/input/phone-input.mjs.map +1 -0
- package/dist/components/ui/input/use-controllable-state.mjs +24 -0
- package/dist/components/ui/input/use-controllable-state.mjs.map +1 -0
- package/dist/components/ui/input/use-hold-repeat.mjs +35 -0
- package/dist/components/ui/input/use-hold-repeat.mjs.map +1 -0
- package/dist/components/ui/input-group/index.mjs +11 -0
- package/dist/components/ui/input-group/index.mjs.map +1 -0
- package/dist/components/ui/input-group/input-group.mjs +78 -0
- package/dist/components/ui/input-group/input-group.mjs.map +1 -0
- package/dist/components/ui/island/index.mjs +23 -0
- package/dist/components/ui/island/index.mjs.map +1 -0
- package/dist/components/ui/island/island.mjs +328 -0
- package/dist/components/ui/island/island.mjs.map +1 -0
- package/dist/components/ui/kbd/index.mjs +6 -0
- package/dist/components/ui/kbd/index.mjs.map +1 -0
- package/dist/components/ui/kbd/kbd.mjs +73 -0
- package/dist/components/ui/kbd/kbd.mjs.map +1 -0
- package/dist/components/ui/keypad/index.mjs +23 -0
- package/dist/components/ui/keypad/index.mjs.map +1 -0
- package/dist/components/ui/keypad/keypad.mjs +345 -0
- package/dist/components/ui/keypad/keypad.mjs.map +1 -0
- package/dist/components/ui/label/index.mjs +7 -0
- package/dist/components/ui/label/index.mjs.map +1 -0
- package/dist/components/ui/label/label.mjs +117 -0
- package/dist/components/ui/label/label.mjs.map +1 -0
- package/dist/components/ui/lightbox/index.mjs +47 -0
- package/dist/components/ui/lightbox/index.mjs.map +1 -0
- package/dist/components/ui/lightbox/labels.mjs +23 -0
- package/dist/components/ui/lightbox/labels.mjs.map +1 -0
- package/dist/components/ui/lightbox/lightbox.mjs +1359 -0
- package/dist/components/ui/lightbox/lightbox.mjs.map +1 -0
- package/dist/components/ui/link/index.mjs +6 -0
- package/dist/components/ui/link/index.mjs.map +1 -0
- package/dist/components/ui/link/link.mjs +64 -0
- package/dist/components/ui/link/link.mjs.map +1 -0
- package/dist/components/ui/list/index.mjs +35 -0
- package/dist/components/ui/list/index.mjs.map +1 -0
- package/dist/components/ui/list/list.mjs +505 -0
- package/dist/components/ui/list/list.mjs.map +1 -0
- package/dist/components/ui/load-more/index.mjs +23 -0
- package/dist/components/ui/load-more/index.mjs.map +1 -0
- package/dist/components/ui/load-more/load-more.mjs +409 -0
- package/dist/components/ui/load-more/load-more.mjs.map +1 -0
- package/dist/components/ui/map/index.mjs +27 -0
- package/dist/components/ui/map/index.mjs.map +1 -0
- package/dist/components/ui/map/map-style.mjs +169 -0
- package/dist/components/ui/map/map-style.mjs.map +1 -0
- package/dist/components/ui/map/map.mjs +624 -0
- package/dist/components/ui/map/map.mjs.map +1 -0
- package/dist/components/ui/map-pin/index.mjs +6 -0
- package/dist/components/ui/map-pin/index.mjs.map +1 -0
- package/dist/components/ui/map-pin/map-pin.mjs +55 -0
- package/dist/components/ui/map-pin/map-pin.mjs.map +1 -0
- package/dist/components/ui/mention/index.mjs +29 -0
- package/dist/components/ui/mention/index.mjs.map +1 -0
- package/dist/components/ui/mention/mention.mjs +262 -0
- package/dist/components/ui/mention/mention.mjs.map +1 -0
- package/dist/components/ui/mention/split-mentions.mjs +24 -0
- package/dist/components/ui/mention/split-mentions.mjs.map +1 -0
- package/dist/components/ui/menubar/index.mjs +39 -0
- package/dist/components/ui/menubar/index.mjs.map +1 -0
- package/dist/components/ui/menubar/menubar.mjs +222 -0
- package/dist/components/ui/menubar/menubar.mjs.map +1 -0
- package/dist/components/ui/meter/index.mjs +21 -0
- package/dist/components/ui/meter/index.mjs.map +1 -0
- package/dist/components/ui/meter/meter.mjs +167 -0
- package/dist/components/ui/meter/meter.mjs.map +1 -0
- package/dist/components/ui/multi-select/index.mjs +25 -0
- package/dist/components/ui/multi-select/index.mjs.map +1 -0
- package/dist/components/ui/multi-select/multi-select.mjs +285 -0
- package/dist/components/ui/multi-select/multi-select.mjs.map +1 -0
- package/dist/components/ui/navigation-menu/index.mjs +41 -0
- package/dist/components/ui/navigation-menu/index.mjs.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.mjs +396 -0
- package/dist/components/ui/navigation-menu/navigation-menu.mjs.map +1 -0
- package/dist/components/ui/notebook-page/index.mjs +15 -0
- package/dist/components/ui/notebook-page/index.mjs.map +1 -0
- package/dist/components/ui/notebook-page/notebook-page.mjs +162 -0
- package/dist/components/ui/notebook-page/notebook-page.mjs.map +1 -0
- package/dist/components/ui/notification-inbox/index.mjs +47 -0
- package/dist/components/ui/notification-inbox/index.mjs.map +1 -0
- package/dist/components/ui/notification-inbox/notification-inbox.mjs +422 -0
- package/dist/components/ui/notification-inbox/notification-inbox.mjs.map +1 -0
- package/dist/components/ui/number-field/index.mjs +24 -0
- package/dist/components/ui/number-field/index.mjs.map +1 -0
- package/dist/components/ui/number-field/number-field.mjs +460 -0
- package/dist/components/ui/number-field/number-field.mjs.map +1 -0
- package/dist/components/ui/number-field/number-format.mjs +48 -0
- package/dist/components/ui/number-field/number-format.mjs.map +1 -0
- package/dist/components/ui/otp-input/index.mjs +9 -0
- package/dist/components/ui/otp-input/index.mjs.map +1 -0
- package/dist/components/ui/otp-input/otp-input.mjs +285 -0
- package/dist/components/ui/otp-input/otp-input.mjs.map +1 -0
- package/dist/components/ui/pager/index.mjs +7 -0
- package/dist/components/ui/pager/index.mjs.map +1 -0
- package/dist/components/ui/pager/pager.mjs +86 -0
- package/dist/components/ui/pager/pager.mjs.map +1 -0
- package/dist/components/ui/pagination/index.mjs +23 -0
- package/dist/components/ui/pagination/index.mjs.map +1 -0
- package/dist/components/ui/pagination/pagination.mjs +210 -0
- package/dist/components/ui/pagination/pagination.mjs.map +1 -0
- package/dist/components/ui/password-strength/index.mjs +21 -0
- package/dist/components/ui/password-strength/index.mjs.map +1 -0
- package/dist/components/ui/password-strength/password-rules.mjs +25 -0
- package/dist/components/ui/password-strength/password-rules.mjs.map +1 -0
- package/dist/components/ui/password-strength/password-strength.mjs +125 -0
- package/dist/components/ui/password-strength/password-strength.mjs.map +1 -0
- package/dist/components/ui/popover/index.mjs +31 -0
- package/dist/components/ui/popover/index.mjs.map +1 -0
- package/dist/components/ui/popover/popover.mjs +574 -0
- package/dist/components/ui/popover/popover.mjs.map +1 -0
- package/dist/components/ui/progress/index.mjs +15 -0
- package/dist/components/ui/progress/index.mjs.map +1 -0
- package/dist/components/ui/progress/progress.mjs +224 -0
- package/dist/components/ui/progress/progress.mjs.map +1 -0
- package/dist/components/ui/prose/index.mjs +6 -0
- package/dist/components/ui/prose/index.mjs.map +1 -0
- package/dist/components/ui/prose/prose.mjs +89 -0
- package/dist/components/ui/prose/prose.mjs.map +1 -0
- package/dist/components/ui/radio-group/index.mjs +15 -0
- package/dist/components/ui/radio-group/index.mjs.map +1 -0
- package/dist/components/ui/radio-group/radio-group.mjs +88 -0
- package/dist/components/ui/radio-group/radio-group.mjs.map +1 -0
- package/dist/components/ui/rating/index.mjs +6 -0
- package/dist/components/ui/rating/index.mjs.map +1 -0
- package/dist/components/ui/rating/rating.mjs +119 -0
- package/dist/components/ui/rating/rating.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/bubble-menu.mjs +120 -0
- package/dist/components/ui/rich-text-editor/bubble-menu.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/image-links.mjs +63 -0
- package/dist/components/ui/rich-text-editor/image-links.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/index.mjs +37 -0
- package/dist/components/ui/rich-text-editor/index.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/labels.mjs +27 -0
- package/dist/components/ui/rich-text-editor/labels.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.mjs +149 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.mjs.map +1 -0
- package/dist/components/ui/rich-text-editor/toolbar.mjs +325 -0
- package/dist/components/ui/rich-text-editor/toolbar.mjs.map +1 -0
- package/dist/components/ui/save-bar/index.mjs +13 -0
- package/dist/components/ui/save-bar/index.mjs.map +1 -0
- package/dist/components/ui/save-bar/save-bar.mjs +59 -0
- package/dist/components/ui/save-bar/save-bar.mjs.map +1 -0
- package/dist/components/ui/scroll-area/index.mjs +6 -0
- package/dist/components/ui/scroll-area/index.mjs.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.mjs +148 -0
- package/dist/components/ui/scroll-area/scroll-area.mjs.map +1 -0
- package/dist/components/ui/scroll-area/use-drag-scroll.mjs +134 -0
- package/dist/components/ui/scroll-area/use-drag-scroll.mjs.map +1 -0
- package/dist/components/ui/select/index.mjs +23 -0
- package/dist/components/ui/select/index.mjs.map +1 -0
- package/dist/components/ui/select/select.mjs +216 -0
- package/dist/components/ui/select/select.mjs.map +1 -0
- package/dist/components/ui/sheet/index.mjs +23 -0
- package/dist/components/ui/sheet/index.mjs.map +1 -0
- package/dist/components/ui/sheet/sheet.mjs +292 -0
- package/dist/components/ui/sheet/sheet.mjs.map +1 -0
- package/dist/components/ui/sidebar/index.mjs +122 -0
- package/dist/components/ui/sidebar/index.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-group.mjs +75 -0
- package/dist/components/ui/sidebar/sidebar-group.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-item.mjs +199 -0
- package/dist/components/ui/sidebar/sidebar-item.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-panels.mjs +182 -0
- package/dist/components/ui/sidebar/sidebar-panels.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-peek.mjs +324 -0
- package/dist/components/ui/sidebar/sidebar-peek.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-rich.mjs +65 -0
- package/dist/components/ui/sidebar/sidebar-rich.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar-tree.mjs +224 -0
- package/dist/components/ui/sidebar/sidebar-tree.mjs.map +1 -0
- package/dist/components/ui/sidebar/sidebar.mjs +205 -0
- package/dist/components/ui/sidebar/sidebar.mjs.map +1 -0
- package/dist/components/ui/sidebar/variants.mjs +396 -0
- package/dist/components/ui/sidebar/variants.mjs.map +1 -0
- package/dist/components/ui/signature/index.mjs +6 -0
- package/dist/components/ui/signature/index.mjs.map +1 -0
- package/dist/components/ui/signature/signature.mjs +145 -0
- package/dist/components/ui/signature/signature.mjs.map +1 -0
- package/dist/components/ui/signature-pad/index.mjs +19 -0
- package/dist/components/ui/signature-pad/index.mjs.map +1 -0
- package/dist/components/ui/signature-pad/signature-pad.mjs +210 -0
- package/dist/components/ui/signature-pad/signature-pad.mjs.map +1 -0
- package/dist/components/ui/signature-pad/strokes.mjs +68 -0
- package/dist/components/ui/signature-pad/strokes.mjs.map +1 -0
- package/dist/components/ui/skeleton/index.mjs +9 -0
- package/dist/components/ui/skeleton/index.mjs.map +1 -0
- package/dist/components/ui/skeleton/skeleton.mjs +58 -0
- package/dist/components/ui/skeleton/skeleton.mjs.map +1 -0
- package/dist/components/ui/slide/index.mjs +25 -0
- package/dist/components/ui/slide/index.mjs.map +1 -0
- package/dist/components/ui/slide/slide.mjs +159 -0
- package/dist/components/ui/slide/slide.mjs.map +1 -0
- package/dist/components/ui/slider/index.mjs +21 -0
- package/dist/components/ui/slider/index.mjs.map +1 -0
- package/dist/components/ui/slider/slider-input.mjs +449 -0
- package/dist/components/ui/slider/slider-input.mjs.map +1 -0
- package/dist/components/ui/slider/slider.mjs +235 -0
- package/dist/components/ui/slider/slider.mjs.map +1 -0
- package/dist/components/ui/slides/index.mjs +31 -0
- package/dist/components/ui/slides/index.mjs.map +1 -0
- package/dist/components/ui/slides/slides.mjs +890 -0
- package/dist/components/ui/slides/slides.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/index.mjs +17 -0
- package/dist/components/ui/smooth-anchors/index.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/smooth-anchors.mjs +75 -0
- package/dist/components/ui/smooth-anchors/smooth-anchors.mjs.map +1 -0
- package/dist/components/ui/smooth-anchors/smooth-scroll.mjs +87 -0
- package/dist/components/ui/smooth-anchors/smooth-scroll.mjs.map +1 -0
- package/dist/components/ui/spinner/index.mjs +6 -0
- package/dist/components/ui/spinner/index.mjs.map +1 -0
- package/dist/components/ui/spinner/spinner.mjs +49 -0
- package/dist/components/ui/spinner/spinner.mjs.map +1 -0
- package/dist/components/ui/stat/index.mjs +29 -0
- package/dist/components/ui/stat/index.mjs.map +1 -0
- package/dist/components/ui/stat/stat.mjs +226 -0
- package/dist/components/ui/stat/stat.mjs.map +1 -0
- package/dist/components/ui/status-bar/index.mjs +17 -0
- package/dist/components/ui/status-bar/index.mjs.map +1 -0
- package/dist/components/ui/status-bar/status-bar.mjs +96 -0
- package/dist/components/ui/status-bar/status-bar.mjs.map +1 -0
- package/dist/components/ui/stepper/index.mjs +25 -0
- package/dist/components/ui/stepper/index.mjs.map +1 -0
- package/dist/components/ui/stepper/stepper.mjs +235 -0
- package/dist/components/ui/stepper/stepper.mjs.map +1 -0
- package/dist/components/ui/steps/index.mjs +9 -0
- package/dist/components/ui/steps/index.mjs.map +1 -0
- package/dist/components/ui/steps/steps.mjs +70 -0
- package/dist/components/ui/steps/steps.mjs.map +1 -0
- package/dist/components/ui/swatch-grid/index.mjs +7 -0
- package/dist/components/ui/swatch-grid/index.mjs.map +1 -0
- package/dist/components/ui/swatch-grid/swatch-grid.mjs +110 -0
- package/dist/components/ui/swatch-grid/swatch-grid.mjs.map +1 -0
- package/dist/components/ui/switch/index.mjs +7 -0
- package/dist/components/ui/switch/index.mjs.map +1 -0
- package/dist/components/ui/switch/switch.mjs +79 -0
- package/dist/components/ui/switch/switch.mjs.map +1 -0
- package/dist/components/ui/tab-strip/index.mjs +13 -0
- package/dist/components/ui/tab-strip/index.mjs.map +1 -0
- package/dist/components/ui/tab-strip/tab-strip.mjs +244 -0
- package/dist/components/ui/tab-strip/tab-strip.mjs.map +1 -0
- package/dist/components/ui/table/index.mjs +27 -0
- package/dist/components/ui/table/index.mjs.map +1 -0
- package/dist/components/ui/table/table.mjs +290 -0
- package/dist/components/ui/table/table.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/index.mjs +20 -0
- package/dist/components/ui/table-of-contents/index.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/scroll-spy.mjs +60 -0
- package/dist/components/ui/table-of-contents/scroll-spy.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/table-of-contents.mjs +371 -0
- package/dist/components/ui/table-of-contents/table-of-contents.mjs.map +1 -0
- package/dist/components/ui/table-of-contents/use-headings.mjs +40 -0
- package/dist/components/ui/table-of-contents/use-headings.mjs.map +1 -0
- package/dist/components/ui/tablet-frame/index.mjs +7 -0
- package/dist/components/ui/tablet-frame/index.mjs.map +1 -0
- package/dist/components/ui/tablet-frame/tablet-frame.mjs +48 -0
- package/dist/components/ui/tablet-frame/tablet-frame.mjs.map +1 -0
- package/dist/components/ui/tabs/index.mjs +25 -0
- package/dist/components/ui/tabs/index.mjs.map +1 -0
- package/dist/components/ui/tabs/tabs.mjs +382 -0
- package/dist/components/ui/tabs/tabs.mjs.map +1 -0
- package/dist/components/ui/tabs/use-tabs-indicator.mjs +90 -0
- package/dist/components/ui/tabs/use-tabs-indicator.mjs.map +1 -0
- package/dist/components/ui/tags-input/index.mjs +9 -0
- package/dist/components/ui/tags-input/index.mjs.map +1 -0
- package/dist/components/ui/tags-input/split.mjs +38 -0
- package/dist/components/ui/tags-input/split.mjs.map +1 -0
- package/dist/components/ui/tags-input/tags-input.mjs +328 -0
- package/dist/components/ui/tags-input/tags-input.mjs.map +1 -0
- package/dist/components/ui/terminal/index.mjs +41 -0
- package/dist/components/ui/terminal/index.mjs.map +1 -0
- package/dist/components/ui/terminal/terminal.mjs +287 -0
- package/dist/components/ui/terminal/terminal.mjs.map +1 -0
- package/dist/components/ui/textarea/index.mjs +21 -0
- package/dist/components/ui/textarea/index.mjs.map +1 -0
- package/dist/components/ui/textarea/textarea.mjs +244 -0
- package/dist/components/ui/textarea/textarea.mjs.map +1 -0
- package/dist/components/ui/toast/index.mjs +19 -0
- package/dist/components/ui/toast/index.mjs.map +1 -0
- package/dist/components/ui/toast/store.mjs +96 -0
- package/dist/components/ui/toast/store.mjs.map +1 -0
- package/dist/components/ui/toast/toast.mjs +395 -0
- package/dist/components/ui/toast/toast.mjs.map +1 -0
- package/dist/components/ui/toggle/index.mjs +13 -0
- package/dist/components/ui/toggle/index.mjs.map +1 -0
- package/dist/components/ui/toggle/toggle.mjs +123 -0
- package/dist/components/ui/toggle/toggle.mjs.map +1 -0
- package/dist/components/ui/toggle-group/index.mjs +11 -0
- package/dist/components/ui/toggle-group/index.mjs.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.mjs +243 -0
- package/dist/components/ui/toggle-group/toggle-group.mjs.map +1 -0
- package/dist/components/ui/toggletip/index.mjs +6 -0
- package/dist/components/ui/toggletip/index.mjs.map +1 -0
- package/dist/components/ui/toggletip/toggletip.mjs +95 -0
- package/dist/components/ui/toggletip/toggletip.mjs.map +1 -0
- package/dist/components/ui/toolbar/index.mjs +21 -0
- package/dist/components/ui/toolbar/index.mjs.map +1 -0
- package/dist/components/ui/toolbar/toolbar.mjs +130 -0
- package/dist/components/ui/toolbar/toolbar.mjs.map +1 -0
- package/dist/components/ui/tooltip/index.mjs +29 -0
- package/dist/components/ui/tooltip/index.mjs.map +1 -0
- package/dist/components/ui/tooltip/tooltip.mjs +640 -0
- package/dist/components/ui/tooltip/tooltip.mjs.map +1 -0
- package/dist/components/ui/tree/index.mjs +11 -0
- package/dist/components/ui/tree/index.mjs.map +1 -0
- package/dist/components/ui/tree/tree.mjs +450 -0
- package/dist/components/ui/tree/tree.mjs.map +1 -0
- package/dist/index.d.mts +19332 -0
- package/dist/index.mjs +155 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/color.mjs +78 -0
- package/dist/lib/color.mjs.map +1 -0
- package/dist/lib/create-context.mjs +31 -0
- package/dist/lib/create-context.mjs.map +1 -0
- package/dist/lib/date.mjs +116 -0
- package/dist/lib/date.mjs.map +1 -0
- package/dist/lib/density.mjs +79 -0
- package/dist/lib/density.mjs.map +1 -0
- package/dist/lib/field-context.mjs +13 -0
- package/dist/lib/field-context.mjs.map +1 -0
- package/dist/lib/filter.mjs +28 -0
- package/dist/lib/filter.mjs.map +1 -0
- package/dist/lib/gesture.mjs +38 -0
- package/dist/lib/gesture.mjs.map +1 -0
- package/dist/lib/hit-area.mjs +14 -0
- package/dist/lib/hit-area.mjs.map +1 -0
- package/dist/lib/labels.mjs +27 -0
- package/dist/lib/labels.mjs.map +1 -0
- package/dist/lib/morph-box.mjs +56 -0
- package/dist/lib/morph-box.mjs.map +1 -0
- package/dist/lib/motion.mjs +70 -0
- package/dist/lib/motion.mjs.map +1 -0
- package/dist/lib/pulse.mjs +69 -0
- package/dist/lib/pulse.mjs.map +1 -0
- package/dist/lib/roving-focus.mjs +74 -0
- package/dist/lib/roving-focus.mjs.map +1 -0
- package/dist/lib/tv.mjs +11 -0
- package/dist/lib/tv.mjs.map +1 -0
- package/dist/lib/utils.mjs +82 -0
- package/dist/lib/utils.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +133 -4
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
const GRAMMARS = {
|
|
2
|
+
tsx: "tsx",
|
|
3
|
+
jsx: "tsx",
|
|
4
|
+
js: "tsx",
|
|
5
|
+
javascript: "tsx",
|
|
6
|
+
mjs: "tsx",
|
|
7
|
+
cjs: "tsx",
|
|
8
|
+
ts: "ts",
|
|
9
|
+
typescript: "ts",
|
|
10
|
+
mts: "ts",
|
|
11
|
+
cts: "ts",
|
|
12
|
+
json: "json",
|
|
13
|
+
jsonc: "json",
|
|
14
|
+
json5: "json",
|
|
15
|
+
css: "css",
|
|
16
|
+
bash: "shell",
|
|
17
|
+
sh: "shell",
|
|
18
|
+
shell: "shell",
|
|
19
|
+
zsh: "shell",
|
|
20
|
+
console: "shell",
|
|
21
|
+
terminal: "shell",
|
|
22
|
+
shellsession: "shell"
|
|
23
|
+
};
|
|
24
|
+
const PLAIN_LANGS = /* @__PURE__ */ new Set(["text", "txt", "plain", "plaintext"]);
|
|
25
|
+
function builtInGrammar(lang) {
|
|
26
|
+
return GRAMMARS[lang.toLowerCase()] ?? null;
|
|
27
|
+
}
|
|
28
|
+
function isPlainLang(lang) {
|
|
29
|
+
return PLAIN_LANGS.has(lang.toLowerCase());
|
|
30
|
+
}
|
|
31
|
+
function isShellLang(lang) {
|
|
32
|
+
return builtInGrammar(lang) === "shell";
|
|
33
|
+
}
|
|
34
|
+
function plainLines(code) {
|
|
35
|
+
return code.split("\n").map((line) => line ? [{ value: line }] : []);
|
|
36
|
+
}
|
|
37
|
+
function tokenize(code, lang) {
|
|
38
|
+
const grammar = builtInGrammar(lang);
|
|
39
|
+
if (!grammar) return null;
|
|
40
|
+
return splitLines(tokenizeStream(code, grammar));
|
|
41
|
+
}
|
|
42
|
+
function tokenizeStream(code, grammar) {
|
|
43
|
+
switch (grammar) {
|
|
44
|
+
case "tsx":
|
|
45
|
+
return tokenizeScript(code, true);
|
|
46
|
+
case "ts":
|
|
47
|
+
return tokenizeScript(code, false);
|
|
48
|
+
case "json":
|
|
49
|
+
return tokenizeJson(code);
|
|
50
|
+
case "css":
|
|
51
|
+
return tokenizeCss(code);
|
|
52
|
+
case "shell":
|
|
53
|
+
return tokenizeShell(code);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class Emitter {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.tokens = [];
|
|
59
|
+
}
|
|
60
|
+
push(type, value) {
|
|
61
|
+
if (!value) return;
|
|
62
|
+
const last = this.tokens[this.tokens.length - 1];
|
|
63
|
+
if (last && last.type === type) last.value += value;
|
|
64
|
+
else this.tokens.push(type ? { type, value } : { value });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function splitLines(tokens) {
|
|
68
|
+
const lines = [[]];
|
|
69
|
+
for (const token of tokens) {
|
|
70
|
+
const parts = token.value.split("\n");
|
|
71
|
+
parts.forEach((part, index) => {
|
|
72
|
+
if (index > 0) lines.push([]);
|
|
73
|
+
if (part) lines[lines.length - 1].push(token.type ? { type: token.type, value: part } : { value: part });
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return lines;
|
|
77
|
+
}
|
|
78
|
+
function matchAt(re, code, index) {
|
|
79
|
+
re.lastIndex = index;
|
|
80
|
+
const match = re.exec(code);
|
|
81
|
+
return match ? match[0] : null;
|
|
82
|
+
}
|
|
83
|
+
const WS = /\s+/y;
|
|
84
|
+
const LINE_COMMENT = /\/\/[^\n]*/y;
|
|
85
|
+
const BLOCK_COMMENT = /\/\*[\s\S]*?(?:\*\/|$)/y;
|
|
86
|
+
const DQ_STRING = /"(?:[^"\\\n]|\\.)*"?/y;
|
|
87
|
+
const SQ_STRING = /'(?:[^'\\\n]|\\.)*'?/y;
|
|
88
|
+
const SCRIPT_KEYWORDS = /* @__PURE__ */ new Set([
|
|
89
|
+
"abstract",
|
|
90
|
+
"as",
|
|
91
|
+
"async",
|
|
92
|
+
"await",
|
|
93
|
+
"break",
|
|
94
|
+
"case",
|
|
95
|
+
"catch",
|
|
96
|
+
"class",
|
|
97
|
+
"const",
|
|
98
|
+
"continue",
|
|
99
|
+
"debugger",
|
|
100
|
+
"declare",
|
|
101
|
+
"default",
|
|
102
|
+
"delete",
|
|
103
|
+
"do",
|
|
104
|
+
"else",
|
|
105
|
+
"enum",
|
|
106
|
+
"export",
|
|
107
|
+
"extends",
|
|
108
|
+
"finally",
|
|
109
|
+
"for",
|
|
110
|
+
"from",
|
|
111
|
+
"function",
|
|
112
|
+
"get",
|
|
113
|
+
"if",
|
|
114
|
+
"implements",
|
|
115
|
+
"import",
|
|
116
|
+
"in",
|
|
117
|
+
"infer",
|
|
118
|
+
"instanceof",
|
|
119
|
+
"interface",
|
|
120
|
+
"is",
|
|
121
|
+
"keyof",
|
|
122
|
+
"let",
|
|
123
|
+
"namespace",
|
|
124
|
+
"new",
|
|
125
|
+
"of",
|
|
126
|
+
"override",
|
|
127
|
+
"private",
|
|
128
|
+
"protected",
|
|
129
|
+
"public",
|
|
130
|
+
"readonly",
|
|
131
|
+
"return",
|
|
132
|
+
"satisfies",
|
|
133
|
+
"set",
|
|
134
|
+
"static",
|
|
135
|
+
"super",
|
|
136
|
+
"switch",
|
|
137
|
+
"this",
|
|
138
|
+
"throw",
|
|
139
|
+
"try",
|
|
140
|
+
"type",
|
|
141
|
+
"typeof",
|
|
142
|
+
"unique",
|
|
143
|
+
"var",
|
|
144
|
+
"void",
|
|
145
|
+
"while",
|
|
146
|
+
"with",
|
|
147
|
+
"yield",
|
|
148
|
+
// Primitive types read with the keywords.
|
|
149
|
+
"any",
|
|
150
|
+
"bigint",
|
|
151
|
+
"boolean",
|
|
152
|
+
"never",
|
|
153
|
+
"number",
|
|
154
|
+
"object",
|
|
155
|
+
"string",
|
|
156
|
+
"symbol",
|
|
157
|
+
"unknown"
|
|
158
|
+
]);
|
|
159
|
+
const CONTEXTUAL = /* @__PURE__ */ new Set([
|
|
160
|
+
"as",
|
|
161
|
+
"async",
|
|
162
|
+
"declare",
|
|
163
|
+
"from",
|
|
164
|
+
"get",
|
|
165
|
+
"infer",
|
|
166
|
+
"is",
|
|
167
|
+
"keyof",
|
|
168
|
+
"namespace",
|
|
169
|
+
"of",
|
|
170
|
+
"override",
|
|
171
|
+
"readonly",
|
|
172
|
+
"satisfies",
|
|
173
|
+
"set",
|
|
174
|
+
"type",
|
|
175
|
+
"unique",
|
|
176
|
+
"abstract",
|
|
177
|
+
"any",
|
|
178
|
+
"bigint",
|
|
179
|
+
"boolean",
|
|
180
|
+
"never",
|
|
181
|
+
"number",
|
|
182
|
+
"object",
|
|
183
|
+
"string",
|
|
184
|
+
"symbol",
|
|
185
|
+
"unknown"
|
|
186
|
+
]);
|
|
187
|
+
const SCRIPT_CONSTANTS = /* @__PURE__ */ new Set(["true", "false", "null", "undefined", "NaN", "Infinity"]);
|
|
188
|
+
const JSX_AFTER_KEYWORD = /* @__PURE__ */ new Set(["return", "yield", "default", "case", "await", "else", "do", "in", "of", "?"]);
|
|
189
|
+
const IDENT = /[A-Za-z_$][\w$]*/y;
|
|
190
|
+
const NUMBER = /(?:0[xXbBoO][\da-fA-F_]+n?|\d[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?n?)/y;
|
|
191
|
+
const CALL_AHEAD = /\s*(?:<[\w\s,.[\]|&]*>\s*)?\(/y;
|
|
192
|
+
const KEY_AHEAD = /\s*\??:/y;
|
|
193
|
+
const JSX_TAG = /<([A-Za-z][\w.:-]*)/y;
|
|
194
|
+
const JSX_ATTR = /[A-Za-z_$][\w$.:-]*/y;
|
|
195
|
+
const JSX_TEXT = /[^{<]+/y;
|
|
196
|
+
const TEMPLATE_TEXT = /(?:[^`\\$]|\\[\s\S]|\$(?!\{))+/y;
|
|
197
|
+
function tokenizeScript(code, jsx) {
|
|
198
|
+
const out = new Emitter();
|
|
199
|
+
const stack = [{ kind: "js" }];
|
|
200
|
+
let previous = "";
|
|
201
|
+
let i = 0;
|
|
202
|
+
const canOpenJsx = () => previous === "" || JSX_AFTER_KEYWORD.has(previous) || /[([{,;:?=&|!>]$/.test(previous) && previous !== "jsx";
|
|
203
|
+
while (i < code.length) {
|
|
204
|
+
const frame = stack[stack.length - 1];
|
|
205
|
+
const ch = code[i];
|
|
206
|
+
if (frame.kind === "template") {
|
|
207
|
+
if (ch === "`") {
|
|
208
|
+
out.push("string", "`");
|
|
209
|
+
stack.pop();
|
|
210
|
+
previous = "`";
|
|
211
|
+
i++;
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
if (code.startsWith("${", i)) {
|
|
215
|
+
out.push("punctuation", "${");
|
|
216
|
+
stack.push({ kind: "js" });
|
|
217
|
+
previous = "{";
|
|
218
|
+
i += 2;
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
const text = matchAt(TEMPLATE_TEXT, code, i) ?? ch;
|
|
222
|
+
out.push("string", text);
|
|
223
|
+
i += text.length;
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if (frame.kind === "children") {
|
|
227
|
+
if (ch === "{") {
|
|
228
|
+
out.push("punctuation", "{");
|
|
229
|
+
stack.push({ kind: "js" });
|
|
230
|
+
previous = "{";
|
|
231
|
+
i++;
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (ch === "<") {
|
|
235
|
+
if (code.startsWith("</>", i)) {
|
|
236
|
+
out.push("punctuation", "</>");
|
|
237
|
+
stack.pop();
|
|
238
|
+
previous = "jsx";
|
|
239
|
+
i += 3;
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
if (code[i + 1] === "/") {
|
|
243
|
+
stack.pop();
|
|
244
|
+
out.push("punctuation", "</");
|
|
245
|
+
i += 2;
|
|
246
|
+
const name = matchAt(JSX_ATTR, code, i);
|
|
247
|
+
if (name) {
|
|
248
|
+
out.push("tag", name);
|
|
249
|
+
i += name.length;
|
|
250
|
+
}
|
|
251
|
+
stack.push({ kind: "tag", closing: true });
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
if (code[i + 1] === ">") {
|
|
255
|
+
out.push("punctuation", "<>");
|
|
256
|
+
stack.push({ kind: "children" });
|
|
257
|
+
i += 2;
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
const open = matchAt(JSX_TAG, code, i);
|
|
261
|
+
if (open) {
|
|
262
|
+
out.push("punctuation", "<");
|
|
263
|
+
out.push("tag", open.slice(1));
|
|
264
|
+
stack.push({ kind: "tag", closing: false });
|
|
265
|
+
i += open.length;
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
const text = matchAt(JSX_TEXT, code, i) ?? ch;
|
|
270
|
+
out.push(void 0, text);
|
|
271
|
+
i += text.length;
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
if (frame.kind === "tag") {
|
|
275
|
+
const space2 = matchAt(WS, code, i);
|
|
276
|
+
if (space2) {
|
|
277
|
+
out.push(void 0, space2);
|
|
278
|
+
i += space2.length;
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
if (code.startsWith("/>", i)) {
|
|
282
|
+
out.push("punctuation", "/>");
|
|
283
|
+
stack.pop();
|
|
284
|
+
previous = "jsx";
|
|
285
|
+
i += 2;
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
if (ch === ">") {
|
|
289
|
+
out.push("punctuation", ">");
|
|
290
|
+
stack.pop();
|
|
291
|
+
if (frame.closing) previous = "jsx";
|
|
292
|
+
else stack.push({ kind: "children" });
|
|
293
|
+
i++;
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if (ch === "{") {
|
|
297
|
+
out.push("punctuation", "{");
|
|
298
|
+
stack.push({ kind: "js" });
|
|
299
|
+
previous = "{";
|
|
300
|
+
i++;
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
if (ch === '"' || ch === "'") {
|
|
304
|
+
const text = matchAt(ch === '"' ? DQ_STRING : SQ_STRING, code, i) ?? ch;
|
|
305
|
+
out.push("string", text);
|
|
306
|
+
i += text.length;
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
const attr = matchAt(JSX_ATTR, code, i);
|
|
310
|
+
if (attr) {
|
|
311
|
+
out.push("attribute", attr);
|
|
312
|
+
i += attr.length;
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
out.push("punctuation", ch);
|
|
316
|
+
i++;
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
const space = matchAt(WS, code, i);
|
|
320
|
+
if (space) {
|
|
321
|
+
out.push(void 0, space);
|
|
322
|
+
i += space.length;
|
|
323
|
+
continue;
|
|
324
|
+
}
|
|
325
|
+
const comment = matchAt(LINE_COMMENT, code, i) ?? matchAt(BLOCK_COMMENT, code, i);
|
|
326
|
+
if (comment) {
|
|
327
|
+
out.push("comment", comment);
|
|
328
|
+
i += comment.length;
|
|
329
|
+
continue;
|
|
330
|
+
}
|
|
331
|
+
if (ch === '"' || ch === "'") {
|
|
332
|
+
const text = matchAt(ch === '"' ? DQ_STRING : SQ_STRING, code, i) ?? ch;
|
|
333
|
+
out.push("string", text);
|
|
334
|
+
previous = "str";
|
|
335
|
+
i += text.length;
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
if (ch === "`") {
|
|
339
|
+
out.push("string", "`");
|
|
340
|
+
stack.push({ kind: "template" });
|
|
341
|
+
i++;
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
if (/\d/.test(ch)) {
|
|
345
|
+
const number = matchAt(NUMBER, code, i) ?? ch;
|
|
346
|
+
out.push("number", number);
|
|
347
|
+
previous = "num";
|
|
348
|
+
i += number.length;
|
|
349
|
+
continue;
|
|
350
|
+
}
|
|
351
|
+
const ident = matchAt(IDENT, code, i);
|
|
352
|
+
if (ident) {
|
|
353
|
+
const end = i + ident.length;
|
|
354
|
+
const afterDot = previous === ".";
|
|
355
|
+
const isKey = matchAt(KEY_AHEAD, code, end) !== null;
|
|
356
|
+
let type;
|
|
357
|
+
if (afterDot) {
|
|
358
|
+
type = matchAt(CALL_AHEAD, code, end) !== null ? "function" : void 0;
|
|
359
|
+
} else if (SCRIPT_CONSTANTS.has(ident)) {
|
|
360
|
+
type = "number";
|
|
361
|
+
} else if (SCRIPT_KEYWORDS.has(ident) && !(CONTEXTUAL.has(ident) && isKey)) {
|
|
362
|
+
type = "keyword";
|
|
363
|
+
} else if (previous === "function" || matchAt(CALL_AHEAD, code, end) !== null) {
|
|
364
|
+
type = "function";
|
|
365
|
+
}
|
|
366
|
+
out.push(type, ident);
|
|
367
|
+
previous = type === "keyword" ? ident : "id";
|
|
368
|
+
i = end;
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
if (jsx && ch === "<" && canOpenJsx()) {
|
|
372
|
+
if (code[i + 1] === ">") {
|
|
373
|
+
out.push("punctuation", "<>");
|
|
374
|
+
stack.push({ kind: "children" });
|
|
375
|
+
i += 2;
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
const open = matchAt(JSX_TAG, code, i);
|
|
379
|
+
if (open) {
|
|
380
|
+
out.push("punctuation", "<");
|
|
381
|
+
out.push("tag", open.slice(1));
|
|
382
|
+
stack.push({ kind: "tag", closing: false });
|
|
383
|
+
i += open.length;
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (ch === "{") {
|
|
388
|
+
out.push("punctuation", "{");
|
|
389
|
+
stack.push({ kind: "js" });
|
|
390
|
+
previous = "{";
|
|
391
|
+
i++;
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
if (ch === "}") {
|
|
395
|
+
out.push("punctuation", "}");
|
|
396
|
+
if (stack.length > 1) stack.pop();
|
|
397
|
+
previous = "}";
|
|
398
|
+
i++;
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
out.push("punctuation", ch);
|
|
402
|
+
previous = /[=!<>&|?:+\-*/%]/.test(ch) && /[=!<>&|?:+\-*/%]$/.test(previous) ? previous + ch : ch;
|
|
403
|
+
i++;
|
|
404
|
+
}
|
|
405
|
+
return out.tokens;
|
|
406
|
+
}
|
|
407
|
+
const JSON_NUMBER = /-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/y;
|
|
408
|
+
const JSON_WORD = /[A-Za-z_$][\w$]*/y;
|
|
409
|
+
function tokenizeJson(code) {
|
|
410
|
+
const out = new Emitter();
|
|
411
|
+
let i = 0;
|
|
412
|
+
while (i < code.length) {
|
|
413
|
+
const ch = code[i];
|
|
414
|
+
const space = matchAt(WS, code, i);
|
|
415
|
+
if (space) {
|
|
416
|
+
out.push(void 0, space);
|
|
417
|
+
i += space.length;
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
const comment = matchAt(LINE_COMMENT, code, i) ?? matchAt(BLOCK_COMMENT, code, i);
|
|
421
|
+
if (comment) {
|
|
422
|
+
out.push("comment", comment);
|
|
423
|
+
i += comment.length;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (ch === '"' || ch === "'") {
|
|
427
|
+
const text = matchAt(ch === '"' ? DQ_STRING : SQ_STRING, code, i) ?? ch;
|
|
428
|
+
const isKey = matchAt(KEY_AHEAD, code, i + text.length) !== null;
|
|
429
|
+
out.push(isKey ? "attribute" : "string", text);
|
|
430
|
+
i += text.length;
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
const number = matchAt(JSON_NUMBER, code, i);
|
|
434
|
+
if (number) {
|
|
435
|
+
out.push("number", number);
|
|
436
|
+
i += number.length;
|
|
437
|
+
continue;
|
|
438
|
+
}
|
|
439
|
+
const word = matchAt(JSON_WORD, code, i);
|
|
440
|
+
if (word) {
|
|
441
|
+
const isKey = matchAt(KEY_AHEAD, code, i + word.length) !== null;
|
|
442
|
+
out.push(isKey ? "attribute" : SCRIPT_CONSTANTS.has(word) ? "number" : void 0, word);
|
|
443
|
+
i += word.length;
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
out.push("punctuation", ch);
|
|
447
|
+
i++;
|
|
448
|
+
}
|
|
449
|
+
return out.tokens;
|
|
450
|
+
}
|
|
451
|
+
const CSS_AT_RULE = /@[\w-]+/y;
|
|
452
|
+
const CSS_PROPERTY = /-{0,2}[A-Za-z][\w-]*(?=\s*:[^;{}]*(?:[;}]|$))/y;
|
|
453
|
+
const CSS_NUMBER = /-?(?:\d+\.?\d*|\.\d+)(?:%|[A-Za-z]+)?/y;
|
|
454
|
+
const CSS_HEX = /#[\da-fA-F]{3,8}\b/y;
|
|
455
|
+
const CSS_IDENT = /-{0,2}[A-Za-z_][\w-]*/y;
|
|
456
|
+
const CSS_SELECTOR = /[.#][A-Za-z_-][\w-]*/y;
|
|
457
|
+
const CSS_PSEUDO = /::?[A-Za-z-][\w-]*/y;
|
|
458
|
+
const CSS_IMPORTANT = /!important\b/y;
|
|
459
|
+
function tokenizeCss(code) {
|
|
460
|
+
const out = new Emitter();
|
|
461
|
+
let inValue = false;
|
|
462
|
+
let i = 0;
|
|
463
|
+
while (i < code.length) {
|
|
464
|
+
const ch = code[i];
|
|
465
|
+
const space = matchAt(WS, code, i);
|
|
466
|
+
if (space) {
|
|
467
|
+
out.push(void 0, space);
|
|
468
|
+
i += space.length;
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
const comment = matchAt(BLOCK_COMMENT, code, i);
|
|
472
|
+
if (comment) {
|
|
473
|
+
out.push("comment", comment);
|
|
474
|
+
i += comment.length;
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if (ch === '"' || ch === "'") {
|
|
478
|
+
const text = matchAt(ch === '"' ? DQ_STRING : SQ_STRING, code, i) ?? ch;
|
|
479
|
+
out.push("string", text);
|
|
480
|
+
i += text.length;
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
const atRule = matchAt(CSS_AT_RULE, code, i);
|
|
484
|
+
if (atRule) {
|
|
485
|
+
out.push("keyword", atRule);
|
|
486
|
+
i += atRule.length;
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (inValue) {
|
|
490
|
+
if (ch === ";" || ch === "}" || ch === "{") inValue = false;
|
|
491
|
+
const important = matchAt(CSS_IMPORTANT, code, i);
|
|
492
|
+
if (important) {
|
|
493
|
+
out.push("keyword", important);
|
|
494
|
+
i += important.length;
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
const value = matchAt(CSS_HEX, code, i) ?? matchAt(CSS_NUMBER, code, i);
|
|
498
|
+
if (value) {
|
|
499
|
+
out.push("number", value);
|
|
500
|
+
i += value.length;
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
const ident = matchAt(CSS_IDENT, code, i);
|
|
504
|
+
if (ident) {
|
|
505
|
+
const isCall = code[i + ident.length] === "(";
|
|
506
|
+
out.push(isCall ? "function" : ident.startsWith("--") ? "attribute" : void 0, ident);
|
|
507
|
+
i += ident.length;
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
out.push("punctuation", ch);
|
|
511
|
+
i++;
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
const property = matchAt(CSS_PROPERTY, code, i);
|
|
515
|
+
if (property) {
|
|
516
|
+
out.push("attribute", property);
|
|
517
|
+
i += property.length;
|
|
518
|
+
const colon = matchAt(/\s*:/y, code, i);
|
|
519
|
+
if (colon) {
|
|
520
|
+
out.push("punctuation", colon);
|
|
521
|
+
i += colon.length;
|
|
522
|
+
inValue = true;
|
|
523
|
+
}
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
const pseudo = matchAt(CSS_PSEUDO, code, i);
|
|
527
|
+
if (pseudo) {
|
|
528
|
+
out.push("keyword", pseudo);
|
|
529
|
+
i += pseudo.length;
|
|
530
|
+
continue;
|
|
531
|
+
}
|
|
532
|
+
const selector = matchAt(CSS_SELECTOR, code, i) ?? matchAt(CSS_IDENT, code, i);
|
|
533
|
+
if (selector) {
|
|
534
|
+
out.push("tag", selector);
|
|
535
|
+
i += selector.length;
|
|
536
|
+
continue;
|
|
537
|
+
}
|
|
538
|
+
if (ch === "[") {
|
|
539
|
+
const attr = matchAt(/\[[^\]\n]*\]?/y, code, i) ?? ch;
|
|
540
|
+
out.push("attribute", attr);
|
|
541
|
+
i += attr.length;
|
|
542
|
+
continue;
|
|
543
|
+
}
|
|
544
|
+
out.push("punctuation", ch);
|
|
545
|
+
i++;
|
|
546
|
+
}
|
|
547
|
+
return out.tokens;
|
|
548
|
+
}
|
|
549
|
+
const SHELL_KEYWORDS = /* @__PURE__ */ new Set([
|
|
550
|
+
"if",
|
|
551
|
+
"then",
|
|
552
|
+
"else",
|
|
553
|
+
"elif",
|
|
554
|
+
"fi",
|
|
555
|
+
"for",
|
|
556
|
+
"while",
|
|
557
|
+
"until",
|
|
558
|
+
"do",
|
|
559
|
+
"done",
|
|
560
|
+
"case",
|
|
561
|
+
"esac",
|
|
562
|
+
"in",
|
|
563
|
+
"function",
|
|
564
|
+
"select",
|
|
565
|
+
"time",
|
|
566
|
+
"export",
|
|
567
|
+
"local",
|
|
568
|
+
"readonly",
|
|
569
|
+
"return",
|
|
570
|
+
"unset"
|
|
571
|
+
]);
|
|
572
|
+
const SHELL_LEADS = /* @__PURE__ */ new Set(["if", "then", "else", "elif", "do", "while", "until", "time", "sudo", "!"]);
|
|
573
|
+
const SHELL_VARIABLE = /\$(?:\{[^}\n]*\}?|[A-Za-z_]\w*|[0-9@#?$!*-])/y;
|
|
574
|
+
const SHELL_FLAG = /--?[A-Za-z0-9][\w-]*/y;
|
|
575
|
+
const SHELL_ASSIGN = /[A-Za-z_]\w*=/y;
|
|
576
|
+
const SHELL_WORD = /(?:[^\s|;&<>()"'`$\\]|\\[\s\S])+/y;
|
|
577
|
+
const SHELL_DQ = /"(?:[^"\\]|\\[\s\S])*"?/y;
|
|
578
|
+
const SHELL_SQ = /'[^']*'?/y;
|
|
579
|
+
const SHELL_OPERATOR = /&&|\|\||;;|[|;&<>()]/y;
|
|
580
|
+
function tokenizeShell(code) {
|
|
581
|
+
const out = new Emitter();
|
|
582
|
+
let commandStart = true;
|
|
583
|
+
let i = 0;
|
|
584
|
+
while (i < code.length) {
|
|
585
|
+
const ch = code[i];
|
|
586
|
+
if (ch === "\n") {
|
|
587
|
+
out.push(void 0, ch);
|
|
588
|
+
commandStart = true;
|
|
589
|
+
i++;
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
if (ch === "\\" && code[i + 1] === "\n") {
|
|
593
|
+
out.push("punctuation", "\\");
|
|
594
|
+
out.push(void 0, "\n");
|
|
595
|
+
i += 2;
|
|
596
|
+
continue;
|
|
597
|
+
}
|
|
598
|
+
const space = matchAt(/[^\S\n]+/y, code, i);
|
|
599
|
+
if (space) {
|
|
600
|
+
out.push(void 0, space);
|
|
601
|
+
i += space.length;
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
const atBoundary = i === 0 || /\s/.test(code[i - 1]);
|
|
605
|
+
if (ch === "#" && atBoundary) {
|
|
606
|
+
const comment = matchAt(/#[^\n]*/y, code, i) ?? ch;
|
|
607
|
+
out.push("comment", comment);
|
|
608
|
+
i += comment.length;
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
if (ch === '"' || ch === "'") {
|
|
612
|
+
const text = matchAt(ch === '"' ? SHELL_DQ : SHELL_SQ, code, i) ?? ch;
|
|
613
|
+
out.push("string", text);
|
|
614
|
+
commandStart = false;
|
|
615
|
+
i += text.length;
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
if (code.startsWith("$(", i)) {
|
|
619
|
+
out.push("punctuation", "$(");
|
|
620
|
+
commandStart = true;
|
|
621
|
+
i += 2;
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
const variable = matchAt(SHELL_VARIABLE, code, i);
|
|
625
|
+
if (variable) {
|
|
626
|
+
out.push("attribute", variable);
|
|
627
|
+
commandStart = false;
|
|
628
|
+
i += variable.length;
|
|
629
|
+
continue;
|
|
630
|
+
}
|
|
631
|
+
const operator = matchAt(SHELL_OPERATOR, code, i);
|
|
632
|
+
if (operator) {
|
|
633
|
+
out.push("punctuation", operator);
|
|
634
|
+
commandStart = operator !== ")" && operator !== ">" && operator !== "<";
|
|
635
|
+
i += operator.length;
|
|
636
|
+
continue;
|
|
637
|
+
}
|
|
638
|
+
if (commandStart) {
|
|
639
|
+
const assign = matchAt(SHELL_ASSIGN, code, i);
|
|
640
|
+
if (assign) {
|
|
641
|
+
out.push("attribute", assign.slice(0, -1));
|
|
642
|
+
out.push("punctuation", "=");
|
|
643
|
+
i += assign.length;
|
|
644
|
+
const quote = code[i];
|
|
645
|
+
const value = quote === '"' || quote === "'" ? matchAt(quote === '"' ? SHELL_DQ : SHELL_SQ, code, i) : matchAt(SHELL_WORD, code, i);
|
|
646
|
+
if (value) {
|
|
647
|
+
out.push("string", value);
|
|
648
|
+
i += value.length;
|
|
649
|
+
}
|
|
650
|
+
continue;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
if (!commandStart && atBoundary) {
|
|
654
|
+
const flag = matchAt(SHELL_FLAG, code, i);
|
|
655
|
+
if (flag) {
|
|
656
|
+
out.push("attribute", flag);
|
|
657
|
+
i += flag.length;
|
|
658
|
+
continue;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
const word = matchAt(SHELL_WORD, code, i);
|
|
662
|
+
if (word) {
|
|
663
|
+
if (SHELL_KEYWORDS.has(word)) {
|
|
664
|
+
out.push("keyword", word);
|
|
665
|
+
commandStart = SHELL_LEADS.has(word);
|
|
666
|
+
} else if (commandStart) {
|
|
667
|
+
out.push(word === "sudo" ? "keyword" : "function", word);
|
|
668
|
+
commandStart = SHELL_LEADS.has(word);
|
|
669
|
+
} else if (/^\d+$/.test(word)) {
|
|
670
|
+
out.push("number", word);
|
|
671
|
+
} else {
|
|
672
|
+
out.push(void 0, word);
|
|
673
|
+
}
|
|
674
|
+
i += word.length;
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
out.push("punctuation", ch);
|
|
678
|
+
i++;
|
|
679
|
+
}
|
|
680
|
+
return out.tokens;
|
|
681
|
+
}
|
|
682
|
+
const PROMPT = /^(\s*\$(?:\s|$))/;
|
|
683
|
+
function parseShellSession(code) {
|
|
684
|
+
const raw = code.split("\n");
|
|
685
|
+
if (!raw.some((line) => PROMPT.test(line))) return null;
|
|
686
|
+
const lines = [];
|
|
687
|
+
const commands = [];
|
|
688
|
+
let continued = false;
|
|
689
|
+
for (const line of raw) {
|
|
690
|
+
const prompt = PROMPT.exec(line)?.[1];
|
|
691
|
+
if (prompt !== void 0 || continued) {
|
|
692
|
+
const command = prompt !== void 0 ? line.slice(prompt.length) : line;
|
|
693
|
+
lines.push({
|
|
694
|
+
kind: "command",
|
|
695
|
+
prompt: prompt ?? "",
|
|
696
|
+
tokens: splitLines(tokenizeShell(command))[0] ?? []
|
|
697
|
+
});
|
|
698
|
+
commands.push(command);
|
|
699
|
+
continued = /\\$/.test(command);
|
|
700
|
+
} else {
|
|
701
|
+
lines.push({ kind: "output", text: line });
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return { lines, commands: commands.join("\n") };
|
|
705
|
+
}
|
|
706
|
+
export {
|
|
707
|
+
builtInGrammar,
|
|
708
|
+
isPlainLang,
|
|
709
|
+
isShellLang,
|
|
710
|
+
parseShellSession,
|
|
711
|
+
plainLines,
|
|
712
|
+
splitLines,
|
|
713
|
+
tokenize
|
|
714
|
+
};
|
|
715
|
+
//# sourceMappingURL=tokenize.mjs.map
|