@neynar/ui 0.1.1 → 0.1.3
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/dist/components/ui/accordion.d.ts +1 -25
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +240 -46
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +73 -11
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +44 -10
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +117 -33
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +50 -71
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +231 -49
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +189 -71
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +197 -40
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -22
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +369 -99
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +110 -38
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +246 -61
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts +207 -159
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +336 -67
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +159 -64
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +321 -39
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +113 -86
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +106 -25
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +388 -59
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +521 -74
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/empty-state.d.ts +148 -76
- package/dist/components/ui/empty-state.d.ts.map +1 -1
- package/dist/components/ui/hover-card.d.ts +253 -34
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +143 -44
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +0 -8
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts +288 -46
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +444 -127
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +342 -66
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +0 -8
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +88 -30
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts +189 -45
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/resizable.d.ts +178 -62
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +180 -21
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +382 -60
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +52 -39
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +144 -27
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +81 -31
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts +94 -32
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +37 -31
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +280 -46
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +289 -148
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/stories/aspect-ratio.stories.d.ts +1 -2
- package/dist/components/ui/stories/aspect-ratio.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/container.stories.d.ts +2 -3
- package/dist/components/ui/stories/container.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/empty-state.stories.d.ts +2 -2
- package/dist/components/ui/stories/scroll-area.stories.d.ts +1 -2
- package/dist/components/ui/stories/scroll-area.stories.d.ts.map +1 -1
- package/dist/components/ui/stories/stack.stories.d.ts +1 -1
- package/dist/components/ui/stories/text-field.stories.d.ts +7 -1
- package/dist/components/ui/stories/text-field.stories.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +44 -38
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +33 -0
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -22
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/text-field.d.ts +170 -84
- package/dist/components/ui/text-field.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +106 -29
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/theme-toggle.d.ts +190 -65
- package/dist/components/ui/theme-toggle.d.ts.map +1 -1
- package/dist/components/ui/theme.d.ts +107 -23
- package/dist/components/ui/theme.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +143 -67
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle.d.ts +118 -30
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +152 -28
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +452 -134
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.js +9388 -8281
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/llm-docs/a.llm.md +145 -0
- package/llm-docs/accordion-content.llm.md +67 -0
- package/llm-docs/accordion-item.llm.md +61 -0
- package/llm-docs/accordion-trigger.llm.md +69 -0
- package/llm-docs/accordion.llm.md +88 -0
- package/llm-docs/alert-description.llm.md +78 -0
- package/llm-docs/alert-dialog-action.llm.md +51 -0
- package/llm-docs/alert-dialog-cancel.llm.md +48 -0
- package/llm-docs/alert-dialog-content.llm.md +88 -0
- package/llm-docs/alert-dialog-description.llm.md +53 -0
- package/llm-docs/alert-dialog-footer.llm.md +41 -0
- package/llm-docs/alert-dialog-header.llm.md +39 -0
- package/llm-docs/alert-dialog-overlay.llm.md +44 -0
- package/llm-docs/alert-dialog-portal.llm.md +41 -0
- package/llm-docs/alert-dialog-title.llm.md +46 -0
- package/llm-docs/alert-dialog-trigger.llm.md +40 -0
- package/llm-docs/alert-dialog.llm.md +80 -0
- package/llm-docs/alert-title.llm.md +48 -0
- package/llm-docs/alert.llm.md +92 -0
- package/llm-docs/aspect-ratio.llm.md +41 -0
- package/llm-docs/avatar-fallback.llm.md +41 -0
- package/llm-docs/avatar-image.llm.md +48 -0
- package/llm-docs/avatar.llm.md +35 -0
- package/llm-docs/badge.llm.md +108 -0
- package/llm-docs/blockquote.llm.md +122 -0
- package/llm-docs/breadcrumb-ellipsis.llm.md +73 -0
- package/llm-docs/breadcrumb-item.llm.md +53 -0
- package/llm-docs/breadcrumb-link.llm.md +84 -0
- package/llm-docs/breadcrumb-list.llm.md +54 -0
- package/llm-docs/breadcrumb-page.llm.md +52 -0
- package/llm-docs/breadcrumb-separator.llm.md +60 -0
- package/llm-docs/breadcrumb.llm.md +110 -0
- package/llm-docs/button.llm.md +281 -0
- package/llm-docs/calendar-day-button.llm.md +57 -0
- package/llm-docs/calendar.llm.md +340 -0
- package/llm-docs/card-action.llm.md +64 -0
- package/llm-docs/card-content.llm.md +48 -0
- package/llm-docs/card-description.llm.md +46 -0
- package/llm-docs/card-footer.llm.md +56 -0
- package/llm-docs/card-header.llm.md +53 -0
- package/llm-docs/card-title.llm.md +43 -0
- package/llm-docs/card.llm.md +100 -0
- package/llm-docs/carousel-content.llm.md +77 -0
- package/llm-docs/carousel-item.llm.md +96 -0
- package/llm-docs/carousel-next.llm.md +95 -0
- package/llm-docs/carousel-previous.llm.md +95 -0
- package/llm-docs/carousel.llm.md +211 -0
- package/llm-docs/chart-config.llm.md +71 -0
- package/llm-docs/chart-container.llm.md +148 -0
- package/llm-docs/chart-legend-content.llm.md +85 -0
- package/llm-docs/chart-legend.llm.md +144 -0
- package/llm-docs/chart-style.llm.md +28 -0
- package/llm-docs/chart-tooltip-content.llm.md +149 -0
- package/llm-docs/chart-tooltip.llm.md +184 -0
- package/llm-docs/checkbox.llm.md +100 -0
- package/llm-docs/cn.llm.md +46 -0
- package/llm-docs/code.llm.md +108 -0
- package/llm-docs/collapsible-content.llm.md +109 -0
- package/llm-docs/collapsible-trigger.llm.md +75 -0
- package/llm-docs/collapsible.llm.md +109 -0
- package/llm-docs/combobox-option.llm.md +53 -0
- package/llm-docs/combobox.llm.md +208 -0
- package/llm-docs/command-dialog.llm.md +112 -0
- package/llm-docs/command-empty.llm.md +63 -0
- package/llm-docs/command-group.llm.md +83 -0
- package/llm-docs/command-input.llm.md +82 -0
- package/llm-docs/command-item.llm.md +97 -0
- package/llm-docs/command-list.llm.md +53 -0
- package/llm-docs/command-loading.llm.md +48 -0
- package/llm-docs/command-separator.llm.md +44 -0
- package/llm-docs/command-shortcut.llm.md +63 -0
- package/llm-docs/command.llm.md +147 -0
- package/llm-docs/container.llm.md +236 -0
- package/llm-docs/context-menu-checkbox-item.llm.md +97 -0
- package/llm-docs/context-menu-content.llm.md +91 -0
- package/llm-docs/context-menu-group.llm.md +61 -0
- package/llm-docs/context-menu-item.llm.md +94 -0
- package/llm-docs/context-menu-label.llm.md +60 -0
- package/llm-docs/context-menu-portal.llm.md +49 -0
- package/llm-docs/context-menu-radio-group.llm.md +66 -0
- package/llm-docs/context-menu-radio-item.llm.md +76 -0
- package/llm-docs/context-menu-separator.llm.md +51 -0
- package/llm-docs/context-menu-shortcut.llm.md +57 -0
- package/llm-docs/context-menu-sub-content.llm.md +90 -0
- package/llm-docs/context-menu-sub-trigger.llm.md +73 -0
- package/llm-docs/context-menu-sub.llm.md +61 -0
- package/llm-docs/context-menu-trigger.llm.md +53 -0
- package/llm-docs/context-menu.llm.md +103 -0
- package/llm-docs/date-picker.llm.md +90 -0
- package/llm-docs/dialog-close.llm.md +61 -0
- package/llm-docs/dialog-content.llm.md +128 -0
- package/llm-docs/dialog-description.llm.md +44 -0
- package/llm-docs/dialog-footer.llm.md +38 -0
- package/llm-docs/dialog-header.llm.md +40 -0
- package/llm-docs/dialog-overlay.llm.md +57 -0
- package/llm-docs/dialog-portal.llm.md +47 -0
- package/llm-docs/dialog-title.llm.md +41 -0
- package/llm-docs/dialog-trigger.llm.md +51 -0
- package/llm-docs/dialog.llm.md +113 -0
- package/llm-docs/drawer-close.llm.md +53 -0
- package/llm-docs/drawer-content.llm.md +58 -0
- package/llm-docs/drawer-description.llm.md +54 -0
- package/llm-docs/drawer-footer.llm.md +67 -0
- package/llm-docs/drawer-header.llm.md +60 -0
- package/llm-docs/drawer-overlay.llm.md +40 -0
- package/llm-docs/drawer-portal.llm.md +42 -0
- package/llm-docs/drawer-title.llm.md +51 -0
- package/llm-docs/drawer-trigger.llm.md +44 -0
- package/llm-docs/drawer.llm.md +194 -0
- package/llm-docs/dropdown-menu-checkbox-item.llm.md +111 -0
- package/llm-docs/dropdown-menu-content.llm.md +109 -0
- package/llm-docs/dropdown-menu-group.llm.md +38 -0
- package/llm-docs/dropdown-menu-item.llm.md +94 -0
- package/llm-docs/dropdown-menu-label.llm.md +66 -0
- package/llm-docs/dropdown-menu-portal.llm.md +32 -0
- package/llm-docs/dropdown-menu-radio-group.llm.md +73 -0
- package/llm-docs/dropdown-menu-radio-item.llm.md +92 -0
- package/llm-docs/dropdown-menu-separator.llm.md +55 -0
- package/llm-docs/dropdown-menu-shortcut.llm.md +74 -0
- package/llm-docs/dropdown-menu-sub-content.llm.md +80 -0
- package/llm-docs/dropdown-menu-sub-trigger.llm.md +84 -0
- package/llm-docs/dropdown-menu-sub.llm.md +74 -0
- package/llm-docs/dropdown-menu-trigger.llm.md +48 -0
- package/llm-docs/dropdown-menu.llm.md +120 -0
- package/llm-docs/empty-state.llm.md +174 -0
- package/llm-docs/h1.llm.md +113 -0
- package/llm-docs/h2.llm.md +113 -0
- package/llm-docs/h3.llm.md +111 -0
- package/llm-docs/h4.llm.md +109 -0
- package/llm-docs/h5.llm.md +110 -0
- package/llm-docs/h6.llm.md +110 -0
- package/llm-docs/hover-card-content.llm.md +167 -0
- package/llm-docs/hover-card-trigger.llm.md +65 -0
- package/llm-docs/hover-card.llm.md +121 -0
- package/llm-docs/input.llm.md +319 -0
- package/llm-docs/label.llm.md +145 -0
- package/llm-docs/lead.llm.md +119 -0
- package/llm-docs/menubar-checkbox-item.llm.md +66 -0
- package/llm-docs/menubar-content.llm.md +128 -0
- package/llm-docs/menubar-group.llm.md +40 -0
- package/llm-docs/menubar-item.llm.md +62 -0
- package/llm-docs/menubar-label.llm.md +40 -0
- package/llm-docs/menubar-menu.llm.md +32 -0
- package/llm-docs/menubar-portal.llm.md +38 -0
- package/llm-docs/menubar-radio-group.llm.md +39 -0
- package/llm-docs/menubar-radio-item.llm.md +59 -0
- package/llm-docs/menubar-separator.llm.md +35 -0
- package/llm-docs/menubar-shortcut.llm.md +37 -0
- package/llm-docs/menubar-sub-content.llm.md +127 -0
- package/llm-docs/menubar-sub-trigger.llm.md +51 -0
- package/llm-docs/menubar-sub.llm.md +53 -0
- package/llm-docs/menubar-trigger.llm.md +37 -0
- package/llm-docs/menubar.llm.md +115 -0
- package/llm-docs/navigation-menu-content.llm.md +116 -0
- package/llm-docs/navigation-menu-indicator.llm.md +68 -0
- package/llm-docs/navigation-menu-item.llm.md +62 -0
- package/llm-docs/navigation-menu-link.llm.md +109 -0
- package/llm-docs/navigation-menu-list.llm.md +52 -0
- package/llm-docs/navigation-menu-trigger-style.llm.md +22 -0
- package/llm-docs/navigation-menu-trigger.llm.md +57 -0
- package/llm-docs/navigation-menu-viewport.llm.md +51 -0
- package/llm-docs/navigation-menu.llm.md +184 -0
- package/llm-docs/p.llm.md +115 -0
- package/llm-docs/pagination-content.llm.md +60 -0
- package/llm-docs/pagination-ellipsis.llm.md +107 -0
- package/llm-docs/pagination-item.llm.md +59 -0
- package/llm-docs/pagination-link.llm.md +150 -0
- package/llm-docs/pagination-next.llm.md +115 -0
- package/llm-docs/pagination-previous.llm.md +115 -0
- package/llm-docs/pagination.llm.md +190 -0
- package/llm-docs/popover-anchor.llm.md +53 -0
- package/llm-docs/popover-content.llm.md +109 -0
- package/llm-docs/popover-trigger.llm.md +54 -0
- package/llm-docs/popover.llm.md +116 -0
- package/llm-docs/progress.llm.md +76 -0
- package/llm-docs/radio-group-indicator.llm.md +28 -0
- package/llm-docs/radio-group-item.llm.md +40 -0
- package/llm-docs/radio-group.llm.md +76 -0
- package/llm-docs/resizable-handle.llm.md +156 -0
- package/llm-docs/resizable-panel-group.llm.md +149 -0
- package/llm-docs/resizable-panel.llm.md +157 -0
- package/llm-docs/scroll-area-corner.llm.md +41 -0
- package/llm-docs/scroll-area-thumb.llm.md +39 -0
- package/llm-docs/scroll-area-viewport.llm.md +60 -0
- package/llm-docs/scroll-area.llm.md +125 -0
- package/llm-docs/scroll-bar.llm.md +78 -0
- package/llm-docs/sdk-items-registry.json +2638 -0
- package/llm-docs/select-content.llm.md +139 -0
- package/llm-docs/select-group.llm.md +60 -0
- package/llm-docs/select-item.llm.md +75 -0
- package/llm-docs/select-label.llm.md +62 -0
- package/llm-docs/select-scroll-down-button.llm.md +45 -0
- package/llm-docs/select-scroll-up-button.llm.md +45 -0
- package/llm-docs/select-separator.llm.md +59 -0
- package/llm-docs/select-trigger.llm.md +66 -0
- package/llm-docs/select-value.llm.md +67 -0
- package/llm-docs/select.llm.md +159 -0
- package/llm-docs/separator.llm.md +129 -0
- package/llm-docs/sheet-close.llm.md +49 -0
- package/llm-docs/sheet-content.llm.md +115 -0
- package/llm-docs/sheet-description.llm.md +62 -0
- package/llm-docs/sheet-footer.llm.md +64 -0
- package/llm-docs/sheet-header.llm.md +52 -0
- package/llm-docs/sheet-title.llm.md +53 -0
- package/llm-docs/sheet-trigger.llm.md +46 -0
- package/llm-docs/sheet.llm.md +126 -0
- package/llm-docs/sidebar-content.llm.md +63 -0
- package/llm-docs/sidebar-footer.llm.md +50 -0
- package/llm-docs/sidebar-group-action.llm.md +60 -0
- package/llm-docs/sidebar-group-content.llm.md +64 -0
- package/llm-docs/sidebar-group-label.llm.md +53 -0
- package/llm-docs/sidebar-group.llm.md +56 -0
- package/llm-docs/sidebar-header.llm.md +67 -0
- package/llm-docs/sidebar-input.llm.md +50 -0
- package/llm-docs/sidebar-inset.llm.md +52 -0
- package/llm-docs/sidebar-menu-action.llm.md +84 -0
- package/llm-docs/sidebar-menu-badge.llm.md +60 -0
- package/llm-docs/sidebar-menu-button.llm.md +103 -0
- package/llm-docs/sidebar-menu-item.llm.md +75 -0
- package/llm-docs/sidebar-menu-skeleton.llm.md +76 -0
- package/llm-docs/sidebar-menu-sub-button.llm.md +85 -0
- package/llm-docs/sidebar-menu-sub-item.llm.md +54 -0
- package/llm-docs/sidebar-menu-sub.llm.md +74 -0
- package/llm-docs/sidebar-menu.llm.md +65 -0
- package/llm-docs/sidebar-provider.llm.md +79 -0
- package/llm-docs/sidebar-rail.llm.md +34 -0
- package/llm-docs/sidebar-separator.llm.md +57 -0
- package/llm-docs/sidebar-trigger.llm.md +49 -0
- package/llm-docs/sidebar.llm.md +129 -0
- package/llm-docs/skeleton.llm.md +134 -0
- package/llm-docs/slider.llm.md +173 -0
- package/llm-docs/small.llm.md +115 -0
- package/llm-docs/span.llm.md +132 -0
- package/llm-docs/stack.llm.md +28 -0
- package/llm-docs/strong.llm.md +115 -0
- package/llm-docs/switch.llm.md +76 -0
- package/llm-docs/table-body.llm.md +36 -0
- package/llm-docs/table-caption.llm.md +48 -0
- package/llm-docs/table-cell.llm.md +53 -0
- package/llm-docs/table-footer.llm.md +41 -0
- package/llm-docs/table-head.llm.md +69 -0
- package/llm-docs/table-header.llm.md +41 -0
- package/llm-docs/table-row.llm.md +42 -0
- package/llm-docs/table.llm.md +123 -0
- package/llm-docs/tabs-content.llm.md +47 -0
- package/llm-docs/tabs-list.llm.md +41 -0
- package/llm-docs/tabs-trigger.llm.md +47 -0
- package/llm-docs/tabs.llm.md +71 -0
- package/llm-docs/text-field.llm.md +327 -0
- package/llm-docs/textarea.llm.md +311 -0
- package/llm-docs/theme-preference.llm.md +25 -0
- package/llm-docs/theme-toggle.llm.md +57 -0
- package/llm-docs/theme.llm.md +14 -0
- package/llm-docs/toast.llm.md +32 -0
- package/llm-docs/toaster.llm.md +193 -0
- package/llm-docs/toggle-group-item.llm.md +59 -0
- package/llm-docs/toggle-group.llm.md +101 -0
- package/llm-docs/toggle.llm.md +40 -0
- package/llm-docs/tooltip-content.llm.md +185 -0
- package/llm-docs/tooltip-provider.llm.md +68 -0
- package/llm-docs/tooltip-trigger.llm.md +70 -0
- package/llm-docs/tooltip.llm.md +129 -0
- package/llm-docs/typography.llm.md +175 -0
- package/llm-docs/use-carousel.llm.md +55 -0
- package/llm-docs/use-command-state.llm.md +32 -0
- package/llm-docs/use-is-mobile.llm.md +73 -0
- package/llm-docs/use-sidebar.llm.md +61 -0
- package/llms.txt +173 -3
- package/package.json +7 -3
- package/src/components/ui/accordion.tsx +112 -27
- package/src/components/ui/alert-dialog.tsx +401 -46
- package/src/components/ui/alert.tsx +114 -11
- package/src/components/ui/aspect-ratio.tsx +69 -14
- package/src/components/ui/avatar.tsx +179 -33
- package/src/components/ui/badge.tsx +74 -75
- package/src/components/ui/breadcrumb.tsx +335 -50
- package/src/components/ui/button.tsx +198 -90
- package/src/components/ui/calendar.tsx +867 -43
- package/src/components/ui/card.tsx +140 -33
- package/src/components/ui/carousel.tsx +529 -98
- package/src/components/ui/chart.tsx +222 -1
- package/src/components/ui/checkbox.tsx +176 -38
- package/src/components/ui/collapsible.tsx +321 -67
- package/src/components/ui/combobox.tsx +284 -83
- package/src/components/ui/command.tsx +527 -67
- package/src/components/ui/container.tsx +217 -65
- package/src/components/ui/context-menu.tsx +716 -51
- package/src/components/ui/date-picker.tsx +228 -38
- package/src/components/ui/dialog.tsx +270 -33
- package/src/components/ui/drawer.tsx +546 -67
- package/src/components/ui/dropdown-menu.tsx +657 -74
- package/src/components/ui/empty-state.tsx +241 -82
- package/src/components/ui/hover-card.tsx +328 -39
- package/src/components/ui/input.tsx +207 -44
- package/src/components/ui/label.tsx +98 -8
- package/src/components/ui/menubar.tsx +587 -54
- package/src/components/ui/navigation-menu.tsx +557 -128
- package/src/components/ui/pagination.tsx +561 -79
- package/src/components/ui/popover.tsx +119 -8
- package/src/components/ui/progress.tsx +131 -29
- package/src/components/ui/radio-group.tsx +260 -51
- package/src/components/ui/resizable.tsx +289 -63
- package/src/components/ui/scroll-area.tsx +377 -66
- package/src/components/ui/select.tsx +545 -60
- package/src/components/ui/separator.tsx +146 -40
- package/src/components/ui/sheet.tsx +348 -31
- package/src/components/ui/sidebar.tsx +471 -29
- package/src/components/ui/skeleton.tsx +114 -32
- package/src/components/ui/slider.tsx +77 -31
- package/src/components/ui/sonner.tsx +574 -46
- package/src/components/ui/stack.tsx +423 -101
- package/src/components/ui/switch.tsx +78 -39
- package/src/components/ui/table.tsx +170 -4
- package/src/components/ui/tabs.tsx +108 -22
- package/src/components/ui/text-field.tsx +226 -81
- package/src/components/ui/textarea.tsx +180 -29
- package/src/components/ui/theme-toggle.tsx +313 -65
- package/src/components/ui/theme.tsx +117 -23
- package/src/components/ui/toggle-group.tsx +280 -69
- package/src/components/ui/toggle.tsx +124 -35
- package/src/components/ui/tooltip.tsx +239 -29
- package/src/components/ui/typography.tsx +1115 -165
|
@@ -45,6 +45,30 @@ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
|
45
45
|
* </ContextMenu>
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // With checkboxes and radio groups
|
|
51
|
+
* <ContextMenu>
|
|
52
|
+
* <ContextMenuTrigger>Settings Menu</ContextMenuTrigger>
|
|
53
|
+
* <ContextMenuContent>
|
|
54
|
+
* <ContextMenuLabel>Preferences</ContextMenuLabel>
|
|
55
|
+
* <ContextMenuSeparator />
|
|
56
|
+
* <ContextMenuCheckboxItem checked={showToolbar} onCheckedChange={setShowToolbar}>
|
|
57
|
+
* Show Toolbar
|
|
58
|
+
* </ContextMenuCheckboxItem>
|
|
59
|
+
* <ContextMenuCheckboxItem checked={showSidebar} onCheckedChange={setShowSidebar}>
|
|
60
|
+
* Show Sidebar
|
|
61
|
+
* </ContextMenuCheckboxItem>
|
|
62
|
+
* <ContextMenuSeparator />
|
|
63
|
+
* <ContextMenuRadioGroup value={theme} onValueChange={setTheme}>
|
|
64
|
+
* <ContextMenuRadioItem value="light">Light Theme</ContextMenuRadioItem>
|
|
65
|
+
* <ContextMenuRadioItem value="dark">Dark Theme</ContextMenuRadioItem>
|
|
66
|
+
* <ContextMenuRadioItem value="system">System Theme</ContextMenuRadioItem>
|
|
67
|
+
* </ContextMenuRadioGroup>
|
|
68
|
+
* </ContextMenuContent>
|
|
69
|
+
* </ContextMenu>
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
48
72
|
* @accessibility
|
|
49
73
|
* - Triggered by right-click, long-press, or Shift+F10
|
|
50
74
|
* - Full keyboard navigation with arrow keys
|
|
@@ -53,17 +77,23 @@ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
|
53
77
|
* - Tab moves focus outside the menu
|
|
54
78
|
* - Proper ARIA roles and focus management
|
|
55
79
|
* - Screen reader announcements for menu state changes
|
|
80
|
+
* - Supports typeahead navigation by first letter
|
|
81
|
+
* - Focus returns to trigger element when closed
|
|
56
82
|
*
|
|
83
|
+
* @see {@link ContextMenuTrigger} Trigger element component
|
|
84
|
+
* @see {@link ContextMenuContent} Menu content container
|
|
85
|
+
* @see {@link ContextMenuItem} Individual menu items
|
|
57
86
|
* @see {@link https://ui.shadcn.com/docs/components/context-menu} shadcn/ui docs
|
|
58
|
-
* @since 1.0.0
|
|
59
87
|
* @see {@link https://www.radix-ui.com/primitives/docs/components/context-menu} Radix UI docs
|
|
88
|
+
* @since 1.0.0
|
|
60
89
|
*/
|
|
61
|
-
declare function ContextMenu(
|
|
90
|
+
declare function ContextMenu(props: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
62
91
|
/**
|
|
63
92
|
* ContextMenuTrigger - The element that triggers the context menu
|
|
64
93
|
*
|
|
65
94
|
* Wraps any element to make it respond to right-click or long-press events.
|
|
66
95
|
* The trigger element should provide visual feedback about its interactive nature.
|
|
96
|
+
* Uses the `asChild` pattern to merge props with child elements for composition.
|
|
67
97
|
*
|
|
68
98
|
* @example
|
|
69
99
|
* ```tsx
|
|
@@ -72,14 +102,27 @@ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMe
|
|
|
72
102
|
* </ContextMenuTrigger>
|
|
73
103
|
* ```
|
|
74
104
|
*
|
|
75
|
-
* @
|
|
105
|
+
* @example
|
|
106
|
+
* ```tsx
|
|
107
|
+
* // With asChild for direct prop merging
|
|
108
|
+
* <ContextMenuTrigger asChild>
|
|
109
|
+
* <div className="p-4 border rounded cursor-pointer">
|
|
110
|
+
* Right-click target area
|
|
111
|
+
* </div>
|
|
112
|
+
* </ContextMenuTrigger>
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
116
|
+
* @param disabled - Prevents context menu from opening when trigger is activated
|
|
117
|
+
* @param children - The element that should respond to right-click events
|
|
76
118
|
*/
|
|
77
|
-
declare function ContextMenuTrigger(
|
|
119
|
+
declare function ContextMenuTrigger(props: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
78
120
|
/**
|
|
79
121
|
* ContextMenuGroup - Logical grouping for menu items
|
|
80
122
|
*
|
|
81
123
|
* Groups related menu items together for better organization and accessibility.
|
|
82
|
-
* Provides semantic structure without visual changes
|
|
124
|
+
* Provides semantic structure without visual changes but improves screen reader
|
|
125
|
+
* navigation by grouping related actions.
|
|
83
126
|
*
|
|
84
127
|
* @example
|
|
85
128
|
* ```tsx
|
|
@@ -89,13 +132,33 @@ declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof Co
|
|
|
89
132
|
* <ContextMenuItem>Paste</ContextMenuItem>
|
|
90
133
|
* </ContextMenuGroup>
|
|
91
134
|
* ```
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```tsx
|
|
138
|
+
* // Multiple groups with separators
|
|
139
|
+
* <ContextMenuContent>
|
|
140
|
+
* <ContextMenuGroup>
|
|
141
|
+
* <ContextMenuItem>Undo</ContextMenuItem>
|
|
142
|
+
* <ContextMenuItem>Redo</ContextMenuItem>
|
|
143
|
+
* </ContextMenuGroup>
|
|
144
|
+
* <ContextMenuSeparator />
|
|
145
|
+
* <ContextMenuGroup>
|
|
146
|
+
* <ContextMenuItem>Copy</ContextMenuItem>
|
|
147
|
+
* <ContextMenuItem>Paste</ContextMenuItem>
|
|
148
|
+
* </ContextMenuGroup>
|
|
149
|
+
* </ContextMenuContent>
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
153
|
+
* @param children - The menu items to group together logically
|
|
92
154
|
*/
|
|
93
|
-
declare function ContextMenuGroup(
|
|
155
|
+
declare function ContextMenuGroup(props: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
94
156
|
/**
|
|
95
157
|
* ContextMenuPortal - Portal container for menu content
|
|
96
158
|
*
|
|
97
159
|
* Renders menu content in a portal to ensure proper layering and positioning.
|
|
98
|
-
*
|
|
160
|
+
* Useful for controlling where menu content is rendered in the DOM tree,
|
|
161
|
+
* especially important for sub-menus and complex layouts.
|
|
99
162
|
*
|
|
100
163
|
* @example
|
|
101
164
|
* ```tsx
|
|
@@ -106,14 +169,26 @@ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof Cont
|
|
|
106
169
|
* </ContextMenuPortal>
|
|
107
170
|
* ```
|
|
108
171
|
*
|
|
109
|
-
* @
|
|
172
|
+
* @example
|
|
173
|
+
* ```tsx
|
|
174
|
+
* // Portal into specific container
|
|
175
|
+
* <ContextMenuPortal container={document.getElementById('menu-container')}>
|
|
176
|
+
* <ContextMenuContent>
|
|
177
|
+
* <ContextMenuItem>Custom Portal Item</ContextMenuItem>
|
|
178
|
+
* </ContextMenuContent>
|
|
179
|
+
* </ContextMenuPortal>
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @param container - Custom container element to portal content into
|
|
183
|
+
* @param children - The menu content to render in the portal
|
|
110
184
|
*/
|
|
111
|
-
declare function ContextMenuPortal(
|
|
185
|
+
declare function ContextMenuPortal(props: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
112
186
|
/**
|
|
113
187
|
* ContextMenuSub - Container for sub-menu functionality
|
|
114
188
|
*
|
|
115
189
|
* Wraps a sub-menu trigger and its content to create nested menu structures.
|
|
116
|
-
* Enables hierarchical organization of menu items
|
|
190
|
+
* Enables hierarchical organization of menu items with proper state management
|
|
191
|
+
* for opening and closing sub-menus.
|
|
117
192
|
*
|
|
118
193
|
* @example
|
|
119
194
|
* ```tsx
|
|
@@ -125,16 +200,38 @@ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof Con
|
|
|
125
200
|
* </ContextMenuSubContent>
|
|
126
201
|
* </ContextMenuSub>
|
|
127
202
|
* ```
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```tsx
|
|
206
|
+
* // Controlled sub-menu
|
|
207
|
+
* const [subOpen, setSubOpen] = useState(false)
|
|
208
|
+
*
|
|
209
|
+
* <ContextMenuSub open={subOpen} onOpenChange={setSubOpen}>
|
|
210
|
+
* <ContextMenuSubTrigger>More Actions</ContextMenuSubTrigger>
|
|
211
|
+
* <ContextMenuSubContent>
|
|
212
|
+
* <ContextMenuItem onClick={() => setSubOpen(false)}>
|
|
213
|
+
* Archive
|
|
214
|
+
* </ContextMenuItem>
|
|
215
|
+
* </ContextMenuSubContent>
|
|
216
|
+
* </ContextMenuSub>
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
* @param open - Controlled open state of the sub-menu
|
|
220
|
+
* @param onOpenChange - Callback fired when sub-menu open state changes
|
|
221
|
+
* @param children - Sub-menu trigger and content components
|
|
128
222
|
*/
|
|
129
|
-
declare function ContextMenuSub(
|
|
223
|
+
declare function ContextMenuSub(props: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
130
224
|
/**
|
|
131
225
|
* ContextMenuRadioGroup - Container for radio button items
|
|
132
226
|
*
|
|
133
227
|
* Groups radio items together to allow single selection from multiple options.
|
|
134
|
-
* Manages the selected state and ensures only one item can be selected.
|
|
228
|
+
* Manages the selected state and ensures only one item can be selected at a time.
|
|
229
|
+
* Provides controlled state management for radio selections within menus.
|
|
135
230
|
*
|
|
136
231
|
* @example
|
|
137
232
|
* ```tsx
|
|
233
|
+
* const [theme, setTheme] = useState("light")
|
|
234
|
+
*
|
|
138
235
|
* <ContextMenuRadioGroup value={theme} onValueChange={setTheme}>
|
|
139
236
|
* <ContextMenuRadioItem value="light">Light</ContextMenuRadioItem>
|
|
140
237
|
* <ContextMenuRadioItem value="dark">Dark</ContextMenuRadioItem>
|
|
@@ -142,15 +239,31 @@ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof Contex
|
|
|
142
239
|
* </ContextMenuRadioGroup>
|
|
143
240
|
* ```
|
|
144
241
|
*
|
|
145
|
-
* @
|
|
146
|
-
*
|
|
242
|
+
* @example
|
|
243
|
+
* ```tsx
|
|
244
|
+
* // With label and separator
|
|
245
|
+
* <ContextMenuContent>
|
|
246
|
+
* <ContextMenuLabel>Theme Selection</ContextMenuLabel>
|
|
247
|
+
* <ContextMenuSeparator />
|
|
248
|
+
* <ContextMenuRadioGroup value={currentTheme} onValueChange={handleThemeChange}>
|
|
249
|
+
* <ContextMenuRadioItem value="light">Light Mode</ContextMenuRadioItem>
|
|
250
|
+
* <ContextMenuRadioItem value="dark">Dark Mode</ContextMenuRadioItem>
|
|
251
|
+
* <ContextMenuRadioItem value="auto">Auto</ContextMenuRadioItem>
|
|
252
|
+
* </ContextMenuRadioGroup>
|
|
253
|
+
* </ContextMenuContent>
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @param value - The currently selected value that matches a RadioItem's value
|
|
257
|
+
* @param onValueChange - Callback fired when selection changes, receives new value
|
|
258
|
+
* @param children - ContextMenuRadioItem components to group together
|
|
147
259
|
*/
|
|
148
|
-
declare function ContextMenuRadioGroup(
|
|
260
|
+
declare function ContextMenuRadioGroup(props: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
149
261
|
/**
|
|
150
262
|
* ContextMenuSubTrigger - Trigger element for opening sub-menus
|
|
151
263
|
*
|
|
152
264
|
* Menu item that opens a sub-menu on hover or focus. Automatically includes
|
|
153
|
-
* a chevron icon to indicate the presence of a sub-menu.
|
|
265
|
+
* a chevron icon to indicate the presence of a sub-menu. Supports the same
|
|
266
|
+
* interaction patterns as regular menu items with additional sub-menu behavior.
|
|
154
267
|
*
|
|
155
268
|
* @example
|
|
156
269
|
* ```tsx
|
|
@@ -160,18 +273,32 @@ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof
|
|
|
160
273
|
* </ContextMenuSubTrigger>
|
|
161
274
|
* ```
|
|
162
275
|
*
|
|
163
|
-
* @
|
|
276
|
+
* @example
|
|
277
|
+
* ```tsx
|
|
278
|
+
* // With inset alignment for icon consistency
|
|
279
|
+
* <ContextMenuContent>
|
|
280
|
+
* <ContextMenuItem inset>Regular Item</ContextMenuItem>
|
|
281
|
+
* <ContextMenuSubTrigger inset>
|
|
282
|
+
* More Actions
|
|
283
|
+
* </ContextMenuSubTrigger>
|
|
284
|
+
* </ContextMenuContent>
|
|
285
|
+
* ```
|
|
286
|
+
*
|
|
287
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
288
|
+
* @param disabled - Prevents interaction and sub-menu opening
|
|
289
|
+
* @param textValue - Custom text for typeahead navigation
|
|
290
|
+
* @param inset - Whether to indent the trigger for proper visual alignment
|
|
164
291
|
* @param children - Content of the trigger (text, icons, etc.)
|
|
165
292
|
*/
|
|
166
293
|
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
167
|
-
/** Whether to indent the trigger for proper alignment */
|
|
168
294
|
inset?: boolean;
|
|
169
295
|
}): import("react/jsx-runtime").JSX.Element;
|
|
170
296
|
/**
|
|
171
297
|
* ContextMenuSubContent - Container for sub-menu items
|
|
172
298
|
*
|
|
173
299
|
* Contains the items within a sub-menu. Automatically positioned relative
|
|
174
|
-
* to its trigger with collision detection and smooth animations.
|
|
300
|
+
* to its trigger with collision detection and smooth animations. Supports
|
|
301
|
+
* all the same features as main menu content including keyboard navigation.
|
|
175
302
|
*
|
|
176
303
|
* @example
|
|
177
304
|
* ```tsx
|
|
@@ -183,6 +310,26 @@ declare function ContextMenuSubTrigger({ className, inset, children, ...props }:
|
|
|
183
310
|
* </ContextMenuSubContent>
|
|
184
311
|
* ```
|
|
185
312
|
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```tsx
|
|
315
|
+
* // With portal and collision avoidance
|
|
316
|
+
* <ContextMenuSubContent
|
|
317
|
+
* avoidCollisions={true}
|
|
318
|
+
* sideOffset={8}
|
|
319
|
+
* className="min-w-[200px]"
|
|
320
|
+
* >
|
|
321
|
+
* <ContextMenuLabel>Sub Options</ContextMenuLabel>
|
|
322
|
+
* <ContextMenuItem>Action A</ContextMenuItem>
|
|
323
|
+
* <ContextMenuItem>Action B</ContextMenuItem>
|
|
324
|
+
* </ContextMenuSubContent>
|
|
325
|
+
* ```
|
|
326
|
+
*
|
|
327
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
328
|
+
* @param loop - Enable keyboard navigation looping from last to first item
|
|
329
|
+
* @param onCloseAutoFocus - Handle focus return when sub-menu closes
|
|
330
|
+
* @param onEscapeKeyDown - Handle escape key presses
|
|
331
|
+
* @param avoidCollisions - Prevent collisions with viewport boundaries
|
|
332
|
+
* @param sideOffset - Distance in pixels from the trigger anchor
|
|
186
333
|
* @param className - Additional CSS classes for styling
|
|
187
334
|
* @param children - Sub-menu items, separators, and labels
|
|
188
335
|
*/
|
|
@@ -191,7 +338,8 @@ declare function ContextMenuSubContent({ className, ...props }: React.ComponentP
|
|
|
191
338
|
* ContextMenuContent - The container for context menu items
|
|
192
339
|
*
|
|
193
340
|
* Contains all menu items, separators, labels, and sub-menus. Automatically
|
|
194
|
-
* positioned relative to the trigger point with collision detection
|
|
341
|
+
* positioned relative to the trigger point with collision detection and smooth
|
|
342
|
+
* animations. Renders in a portal by default for proper layering.
|
|
195
343
|
*
|
|
196
344
|
* @example
|
|
197
345
|
* ```tsx
|
|
@@ -203,8 +351,29 @@ declare function ContextMenuSubContent({ className, ...props }: React.ComponentP
|
|
|
203
351
|
* </ContextMenuContent>
|
|
204
352
|
* ```
|
|
205
353
|
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```tsx
|
|
356
|
+
* // With event handlers and positioning
|
|
357
|
+
* <ContextMenuContent
|
|
358
|
+
* onCloseAutoFocus={(e) => e.preventDefault()}
|
|
359
|
+
* onEscapeKeyDown={(e) => console.log('Escape pressed')}
|
|
360
|
+
* avoidCollisions={true}
|
|
361
|
+
* sideOffset={4}
|
|
362
|
+
* loop={true}
|
|
363
|
+
* >
|
|
364
|
+
* <ContextMenuItem>Item 1</ContextMenuItem>
|
|
365
|
+
* <ContextMenuItem>Item 2</ContextMenuItem>
|
|
366
|
+
* </ContextMenuContent>
|
|
367
|
+
* ```
|
|
368
|
+
*
|
|
369
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
370
|
+
* @param loop - Enable keyboard navigation looping from last to first item
|
|
371
|
+
* @param onCloseAutoFocus - Handle focus return when menu closes
|
|
372
|
+
* @param onEscapeKeyDown - Handle escape key presses
|
|
373
|
+
* @param avoidCollisions - Prevent collisions with viewport boundaries
|
|
374
|
+
* @param sideOffset - Distance in pixels from the cursor/trigger point
|
|
206
375
|
* @param className - Additional CSS classes for styling
|
|
207
|
-
* @param children - Menu items,
|
|
376
|
+
* @param children - Menu items, labels, separators, and sub-menus to display
|
|
208
377
|
*/
|
|
209
378
|
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
210
379
|
/**
|
|
@@ -212,10 +381,11 @@ declare function ContextMenuContent({ className, ...props }: React.ComponentProp
|
|
|
212
381
|
*
|
|
213
382
|
* Individual menu items that users can interact with. Supports different
|
|
214
383
|
* variants for visual hierarchy and includes automatic icon styling.
|
|
384
|
+
* Items can be clicked, selected via keyboard, and support custom styling.
|
|
215
385
|
*
|
|
216
386
|
* @example
|
|
217
387
|
* ```tsx
|
|
218
|
-
* <ContextMenuItem>
|
|
388
|
+
* <ContextMenuItem onSelect={() => console.log('Edit selected')}>
|
|
219
389
|
* <Edit className="mr-2 h-4 w-4" />
|
|
220
390
|
* Edit
|
|
221
391
|
* <ContextMenuShortcut>⌘E</ContextMenuShortcut>
|
|
@@ -224,28 +394,43 @@ declare function ContextMenuContent({ className, ...props }: React.ComponentProp
|
|
|
224
394
|
*
|
|
225
395
|
* @example
|
|
226
396
|
* ```tsx
|
|
227
|
-
* <ContextMenuItem variant="destructive">
|
|
397
|
+
* <ContextMenuItem variant="destructive" onSelect={handleDelete}>
|
|
228
398
|
* <Trash2 className="mr-2 h-4 w-4" />
|
|
229
399
|
* Delete
|
|
230
400
|
* </ContextMenuItem>
|
|
231
401
|
* ```
|
|
232
402
|
*
|
|
233
|
-
* @
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```tsx
|
|
405
|
+
* // With custom text value for typeahead
|
|
406
|
+
* <ContextMenuItem
|
|
407
|
+
* textValue="Copy to clipboard"
|
|
408
|
+
* onSelect={handleCopy}
|
|
409
|
+
* >
|
|
410
|
+
* <Copy className="mr-2 h-4 w-4" />
|
|
411
|
+
* Copy <span className="text-muted-foreground">to clipboard</span>
|
|
412
|
+
* </ContextMenuItem>
|
|
413
|
+
* ```
|
|
414
|
+
*
|
|
415
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
416
|
+
* @param disabled - Prevents interaction and dims the item visually
|
|
417
|
+
* @param onSelect - Callback fired when item is selected (via mouse or keyboard)
|
|
418
|
+
* @param textValue - Custom text for typeahead navigation when content is complex
|
|
419
|
+
* @param inset - Whether to indent the item for alignment with icon-based items
|
|
420
|
+
* @param variant - Visual variant ("default" for normal actions, "destructive" for dangerous actions)
|
|
421
|
+
* @param className - Additional CSS classes for custom styling
|
|
422
|
+
* @param children - Content of the menu item (text, icons, shortcuts, etc.)
|
|
237
423
|
*/
|
|
238
424
|
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
239
|
-
/** Whether to indent the item for proper alignment */
|
|
240
425
|
inset?: boolean;
|
|
241
|
-
/** Visual variant for the menu item */
|
|
242
426
|
variant?: "default" | "destructive";
|
|
243
427
|
}): import("react/jsx-runtime").JSX.Element;
|
|
244
428
|
/**
|
|
245
429
|
* ContextMenuCheckboxItem - A menu item with checkbox functionality
|
|
246
430
|
*
|
|
247
431
|
* Menu items that can be toggled on/off, useful for binary settings or options.
|
|
248
|
-
* Displays a check mark when selected and supports controlled state management
|
|
432
|
+
* Displays a check mark when selected and supports controlled state management
|
|
433
|
+
* with indeterminate state for partially selected collections.
|
|
249
434
|
*
|
|
250
435
|
* @example
|
|
251
436
|
* ```tsx
|
|
@@ -259,9 +444,35 @@ declare function ContextMenuItem({ className, inset, variant, ...props }: React.
|
|
|
259
444
|
* </ContextMenuCheckboxItem>
|
|
260
445
|
* ```
|
|
261
446
|
*
|
|
262
|
-
* @
|
|
447
|
+
* @example
|
|
448
|
+
* ```tsx
|
|
449
|
+
* // With indeterminate state
|
|
450
|
+
* const [selectedItems, setSelectedItems] = useState(['item1'])
|
|
451
|
+
* const allItems = ['item1', 'item2', 'item3']
|
|
452
|
+
* const checkedState = selectedItems.length === 0
|
|
453
|
+
* ? false
|
|
454
|
+
* : selectedItems.length === allItems.length
|
|
455
|
+
* ? true
|
|
456
|
+
* : "indeterminate"
|
|
457
|
+
*
|
|
458
|
+
* <ContextMenuCheckboxItem
|
|
459
|
+
* checked={checkedState}
|
|
460
|
+
* onCheckedChange={(checked) =>
|
|
461
|
+
* setSelectedItems(checked ? allItems : [])
|
|
462
|
+
* }
|
|
463
|
+
* >
|
|
464
|
+
* Select All
|
|
465
|
+
* </ContextMenuCheckboxItem>
|
|
466
|
+
* ```
|
|
467
|
+
*
|
|
468
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
469
|
+
* @param checked - The checked state (true, false, or "indeterminate")
|
|
263
470
|
* @param onCheckedChange - Callback fired when the checked state changes
|
|
264
|
-
* @param disabled - Whether the item is disabled
|
|
471
|
+
* @param disabled - Whether the item is disabled and non-interactive
|
|
472
|
+
* @param onSelect - Callback fired when the item is selected (before onCheckedChange)
|
|
473
|
+
* @param textValue - Custom text for typeahead navigation
|
|
474
|
+
* @param className - Additional CSS classes for styling
|
|
475
|
+
* @param children - Content of the checkbox item (typically text)
|
|
265
476
|
*/
|
|
266
477
|
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
267
478
|
/**
|
|
@@ -269,18 +480,36 @@ declare function ContextMenuCheckboxItem({ className, children, checked, ...prop
|
|
|
269
480
|
*
|
|
270
481
|
* Menu items that allow single selection from a group of options.
|
|
271
482
|
* Must be used within a ContextMenuRadioGroup for proper functionality.
|
|
483
|
+
* Displays a filled circle indicator when selected.
|
|
272
484
|
*
|
|
273
485
|
* @example
|
|
274
486
|
* ```tsx
|
|
275
487
|
* <ContextMenuRadioGroup value={theme} onValueChange={setTheme}>
|
|
276
|
-
* <ContextMenuRadioItem value="light">Light</ContextMenuRadioItem>
|
|
277
|
-
* <ContextMenuRadioItem value="dark">Dark</ContextMenuRadioItem>
|
|
278
|
-
* <ContextMenuRadioItem value="system">System</ContextMenuRadioItem>
|
|
488
|
+
* <ContextMenuRadioItem value="light">Light Theme</ContextMenuRadioItem>
|
|
489
|
+
* <ContextMenuRadioItem value="dark">Dark Theme</ContextMenuRadioItem>
|
|
490
|
+
* <ContextMenuRadioItem value="system">System Theme</ContextMenuRadioItem>
|
|
491
|
+
* </ContextMenuRadioGroup>
|
|
492
|
+
* ```
|
|
493
|
+
*
|
|
494
|
+
* @example
|
|
495
|
+
* ```tsx
|
|
496
|
+
* // With disabled state and custom text
|
|
497
|
+
* <ContextMenuRadioGroup value={quality} onValueChange={setQuality}>
|
|
498
|
+
* <ContextMenuRadioItem value="low">Low Quality</ContextMenuRadioItem>
|
|
499
|
+
* <ContextMenuRadioItem value="medium">Medium Quality</ContextMenuRadioItem>
|
|
500
|
+
* <ContextMenuRadioItem value="high">High Quality</ContextMenuRadioItem>
|
|
501
|
+
* <ContextMenuRadioItem value="ultra" disabled>
|
|
502
|
+
* Ultra Quality (Premium)
|
|
503
|
+
* </ContextMenuRadioItem>
|
|
279
504
|
* </ContextMenuRadioGroup>
|
|
280
505
|
* ```
|
|
281
506
|
*
|
|
282
|
-
* @param value - The value
|
|
283
|
-
* @param disabled - Whether the item is disabled
|
|
507
|
+
* @param value - The unique value for this radio item (required)
|
|
508
|
+
* @param disabled - Whether the item is disabled and non-interactive
|
|
509
|
+
* @param onSelect - Callback fired when the item is selected (before parent's onValueChange)
|
|
510
|
+
* @param textValue - Custom text for typeahead navigation
|
|
511
|
+
* @param className - Additional CSS classes for styling
|
|
512
|
+
* @param children - Content of the radio item (typically text)
|
|
284
513
|
*/
|
|
285
514
|
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
286
515
|
/**
|
|
@@ -288,6 +517,7 @@ declare function ContextMenuRadioItem({ className, children, ...props }: React.C
|
|
|
288
517
|
*
|
|
289
518
|
* Used to group related menu items and provide context. Labels are not
|
|
290
519
|
* focusable and serve as visual section headers within the menu.
|
|
520
|
+
* Helps organize menu content and improve accessibility.
|
|
291
521
|
*
|
|
292
522
|
* @example
|
|
293
523
|
* ```tsx
|
|
@@ -297,10 +527,22 @@ declare function ContextMenuRadioItem({ className, children, ...props }: React.C
|
|
|
297
527
|
* <ContextMenuItem>Save</ContextMenuItem>
|
|
298
528
|
* ```
|
|
299
529
|
*
|
|
530
|
+
* @example
|
|
531
|
+
* ```tsx
|
|
532
|
+
* // With inset alignment for consistency
|
|
533
|
+
* <ContextMenuContent>
|
|
534
|
+
* <ContextMenuLabel inset>Edit Options</ContextMenuLabel>
|
|
535
|
+
* <ContextMenuItem inset>Copy</ContextMenuItem>
|
|
536
|
+
* <ContextMenuItem inset>Paste</ContextMenuItem>
|
|
537
|
+
* </ContextMenuContent>
|
|
538
|
+
* ```
|
|
539
|
+
*
|
|
540
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
300
541
|
* @param inset - Whether to indent the label to align with inset items
|
|
542
|
+
* @param className - Additional CSS classes for styling
|
|
543
|
+
* @param children - The text content of the label
|
|
301
544
|
*/
|
|
302
545
|
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
303
|
-
/** Whether to indent the label for proper alignment */
|
|
304
546
|
inset?: boolean;
|
|
305
547
|
}): import("react/jsx-runtime").JSX.Element;
|
|
306
548
|
/**
|
|
@@ -308,6 +550,7 @@ declare function ContextMenuLabel({ className, inset, ...props }: React.Componen
|
|
|
308
550
|
*
|
|
309
551
|
* Creates visual separation between groups of related menu items.
|
|
310
552
|
* Typically used after labels or to separate different types of actions.
|
|
553
|
+
* Improves visual hierarchy and content organization in menus.
|
|
311
554
|
*
|
|
312
555
|
* @example
|
|
313
556
|
* ```tsx
|
|
@@ -316,6 +559,23 @@ declare function ContextMenuLabel({ className, inset, ...props }: React.Componen
|
|
|
316
559
|
* <ContextMenuSeparator />
|
|
317
560
|
* <ContextMenuItem variant="destructive">Delete</ContextMenuItem>
|
|
318
561
|
* ```
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* ```tsx
|
|
565
|
+
* // Organizing menu sections
|
|
566
|
+
* <ContextMenuContent>
|
|
567
|
+
* <ContextMenuLabel>Edit</ContextMenuLabel>
|
|
568
|
+
* <ContextMenuItem>Copy</ContextMenuItem>
|
|
569
|
+
* <ContextMenuItem>Paste</ContextMenuItem>
|
|
570
|
+
* <ContextMenuSeparator />
|
|
571
|
+
* <ContextMenuLabel>View</ContextMenuLabel>
|
|
572
|
+
* <ContextMenuItem>Zoom In</ContextMenuItem>
|
|
573
|
+
* <ContextMenuItem>Zoom Out</ContextMenuItem>
|
|
574
|
+
* </ContextMenuContent>
|
|
575
|
+
* ```
|
|
576
|
+
*
|
|
577
|
+
* @param asChild - Merges props with child element instead of rendering wrapper
|
|
578
|
+
* @param className - Additional CSS classes for styling
|
|
319
579
|
*/
|
|
320
580
|
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
321
581
|
/**
|
|
@@ -323,6 +583,7 @@ declare function ContextMenuSeparator({ className, ...props }: React.ComponentPr
|
|
|
323
583
|
*
|
|
324
584
|
* Shows keyboard shortcuts aligned to the right side of menu items.
|
|
325
585
|
* Provides visual indication of available keyboard shortcuts for actions.
|
|
586
|
+
* Improves discoverability of keyboard navigation options.
|
|
326
587
|
*
|
|
327
588
|
* @example
|
|
328
589
|
* ```tsx
|
|
@@ -332,7 +593,28 @@ declare function ContextMenuSeparator({ className, ...props }: React.ComponentPr
|
|
|
332
593
|
* </ContextMenuItem>
|
|
333
594
|
* ```
|
|
334
595
|
*
|
|
335
|
-
* @
|
|
596
|
+
* @example
|
|
597
|
+
* ```tsx
|
|
598
|
+
* // Multiple shortcuts for different platforms
|
|
599
|
+
* <ContextMenuItem>
|
|
600
|
+
* Save
|
|
601
|
+
* <ContextMenuShortcut>
|
|
602
|
+
* {isMac ? '⌘S' : 'Ctrl+S'}
|
|
603
|
+
* </ContextMenuShortcut>
|
|
604
|
+
* </ContextMenuItem>
|
|
605
|
+
* ```
|
|
606
|
+
*
|
|
607
|
+
* @example
|
|
608
|
+
* ```tsx
|
|
609
|
+
* // Complex shortcuts
|
|
610
|
+
* <ContextMenuItem>
|
|
611
|
+
* Find and Replace
|
|
612
|
+
* <ContextMenuShortcut>⌘⌥F</ContextMenuShortcut>
|
|
613
|
+
* </ContextMenuItem>
|
|
614
|
+
* ```
|
|
615
|
+
*
|
|
616
|
+
* @param className - Additional CSS classes for styling
|
|
617
|
+
* @param children - The keyboard shortcut text to display (e.g., "⌘C", "Ctrl+V")
|
|
336
618
|
*/
|
|
337
619
|
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
338
620
|
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"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"}
|