@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
|
@@ -3,6 +3,125 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
3
3
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Props for Popover root component (Documentation only - NOT used in component implementation)
|
|
8
|
+
* Controls the open/closed state and behavior of the popover system.
|
|
9
|
+
*/
|
|
10
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
11
|
+
type PopoverDocsProps = {
|
|
12
|
+
/** Whether the popover is open. Use for controlled state management. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Callback fired when the open state changes. Use for controlled state management. */
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
|
+
/** The initial open state for uncontrolled usage @default false */
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
/** Whether the popover should be modal, preventing interaction with elements behind it @default false */
|
|
19
|
+
modal?: boolean;
|
|
20
|
+
/** Direction of text reading for proper positioning @default "ltr" */
|
|
21
|
+
dir?: "ltr" | "rtl";
|
|
22
|
+
/** The children components - typically PopoverTrigger and PopoverContent */
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Props for PopoverTrigger component (Documentation only - NOT used in component implementation)
|
|
28
|
+
* The interactive element that opens/closes the popover when activated.
|
|
29
|
+
*/
|
|
30
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
31
|
+
type PopoverTriggerDocsProps = {
|
|
32
|
+
/**
|
|
33
|
+
* Changes the default rendered element to the one passed as a child, merging their props and behavior.
|
|
34
|
+
* Use this when you want to wrap a custom component instead of rendering a default button element.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
/** The content to display inside the trigger element */
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
/** Additional CSS classes to apply to the trigger */
|
|
41
|
+
className?: string;
|
|
42
|
+
/** Whether the trigger is disabled @default false */
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Props for PopoverContent component (Documentation only - NOT used in component implementation)
|
|
48
|
+
* The container that displays the popover content with positioning and styling.
|
|
49
|
+
*/
|
|
50
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
51
|
+
type PopoverContentDocsProps = {
|
|
52
|
+
/**
|
|
53
|
+
* The preferred side of the trigger to render the popover against
|
|
54
|
+
* @default "bottom"
|
|
55
|
+
*/
|
|
56
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
57
|
+
/**
|
|
58
|
+
* How to align the popover relative to the trigger along the cross axis
|
|
59
|
+
* @default "center"
|
|
60
|
+
*/
|
|
61
|
+
align?: "start" | "center" | "end";
|
|
62
|
+
/**
|
|
63
|
+
* Distance in pixels from the trigger element
|
|
64
|
+
* @default 4
|
|
65
|
+
*/
|
|
66
|
+
sideOffset?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Offset in pixels along the alignment axis
|
|
69
|
+
* @default 0
|
|
70
|
+
*/
|
|
71
|
+
alignOffset?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to automatically reposition to avoid collisions with viewport edges
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
avoidCollisions?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The boundary area to consider for collision detection. Can be an element, array of elements, or boundary descriptor.
|
|
79
|
+
* @default "clippingAncestors"
|
|
80
|
+
*/
|
|
81
|
+
collisionBoundary?: Element | Element[] | null;
|
|
82
|
+
/**
|
|
83
|
+
* The padding between the boundary and the content during collision detection
|
|
84
|
+
* @default 0
|
|
85
|
+
*/
|
|
86
|
+
collisionPadding?:
|
|
87
|
+
| number
|
|
88
|
+
| Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
89
|
+
/**
|
|
90
|
+
* Whether to stick to the boundary edges when repositioning due to collisions
|
|
91
|
+
* @default "partial"
|
|
92
|
+
*/
|
|
93
|
+
sticky?: "partial" | "always";
|
|
94
|
+
/**
|
|
95
|
+
* Whether to hide the content when the trigger is fully occluded
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
hideWhenDetached?: boolean;
|
|
99
|
+
/** The content to display inside the popover */
|
|
100
|
+
children?: React.ReactNode;
|
|
101
|
+
/** Additional CSS classes to apply to the content container */
|
|
102
|
+
className?: string;
|
|
103
|
+
/** Custom inline styles */
|
|
104
|
+
style?: React.CSSProperties;
|
|
105
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Props for PopoverAnchor component (Documentation only - NOT used in component implementation)
|
|
109
|
+
* Optional element to use as positioning reference instead of the trigger.
|
|
110
|
+
*/
|
|
111
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
112
|
+
type PopoverAnchorDocsProps = {
|
|
113
|
+
/**
|
|
114
|
+
* Changes the default rendered element to the one passed as a child, merging their props and behavior.
|
|
115
|
+
* Use this to wrap your own component that should serve as the positioning anchor.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
asChild?: boolean;
|
|
119
|
+
/** The content that will serve as the positioning reference */
|
|
120
|
+
children?: React.ReactNode;
|
|
121
|
+
/** Additional CSS classes to apply to the anchor */
|
|
122
|
+
className?: string;
|
|
123
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
124
|
+
|
|
6
125
|
/**
|
|
7
126
|
* Popover displays rich content in a portal, triggered by a button
|
|
8
127
|
*
|
|
@@ -86,14 +205,6 @@ import { cn } from "@/lib/utils";
|
|
|
86
205
|
* @see {@link https://www.radix-ui.com/primitives/docs/components/popover} Radix Popover Primitive
|
|
87
206
|
* @since 1.0.0
|
|
88
207
|
*/
|
|
89
|
-
/**
|
|
90
|
-
* Root popover component that manages open/closed state
|
|
91
|
-
*
|
|
92
|
-
* @param open - Controls the open state of the popover
|
|
93
|
-
* @param onOpenChange - Event handler called when the open state changes
|
|
94
|
-
* @param defaultOpen - The initial open state for uncontrolled usage
|
|
95
|
-
* @param modal - Whether the popover should be modal (default: false)
|
|
96
|
-
*/
|
|
97
208
|
function Popover({
|
|
98
209
|
...props
|
|
99
210
|
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
@@ -4,67 +4,166 @@ import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Progress component
|
|
7
|
+
* Props for Progress component (Documentation only - NOT used in component implementation)
|
|
8
|
+
* These types are for documentation generation and should not replace Radix inferred types
|
|
9
|
+
*/
|
|
10
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
11
|
+
type ProgressDocsProps = {
|
|
12
|
+
/** The progress value from 0 to 100. When undefined, shows an indeterminate state. */
|
|
13
|
+
value?: number | null;
|
|
14
|
+
/** The maximum progress value. @default 100 */
|
|
15
|
+
max?: number;
|
|
16
|
+
/**
|
|
17
|
+
* A function to get the accessible label text representing the current value in a human-readable format.
|
|
18
|
+
* If not provided, the value label will be read as the numeric value as a percentage of the max value.
|
|
19
|
+
* @param value Current progress value
|
|
20
|
+
* @param max Maximum progress value
|
|
21
|
+
* @returns Human-readable progress description
|
|
22
|
+
*/
|
|
23
|
+
getValueLabel?: (value: number, max: number) => string;
|
|
24
|
+
/** Additional CSS classes for styling customization */
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Change the default rendered element for the one passed as a child,
|
|
28
|
+
* merging their props and behavior. @default false
|
|
29
|
+
*/
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
/** ARIA label for screen readers describing the progress element */
|
|
32
|
+
"aria-label"?: string;
|
|
33
|
+
/** ARIA text value providing human-readable description of progress */
|
|
34
|
+
"aria-valuetext"?: string;
|
|
35
|
+
/** ARIA description of the progress element */
|
|
36
|
+
"aria-describedby"?: string;
|
|
37
|
+
/** ARIA label referenced by element ID */
|
|
38
|
+
"aria-labelledby"?: string;
|
|
39
|
+
/** Unique identifier for the progress element */
|
|
40
|
+
id?: string;
|
|
41
|
+
/** Custom data attributes */
|
|
42
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
43
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "max">;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Progress - Visual progress indicator for tasks and operations
|
|
8
47
|
*
|
|
9
|
-
* A
|
|
10
|
-
* completion
|
|
11
|
-
*
|
|
48
|
+
* A customizable progress bar component built on Radix UI Progress primitive that displays
|
|
49
|
+
* the completion status of tasks, file uploads, multi-step processes, and other operations
|
|
50
|
+
* requiring user feedback. Features smooth animations, accessibility support, and flexible
|
|
51
|
+
* styling options.
|
|
12
52
|
*
|
|
13
|
-
* @example Basic
|
|
53
|
+
* @example Basic progress bar
|
|
14
54
|
* ```tsx
|
|
15
55
|
* <Progress value={60} />
|
|
16
56
|
* ```
|
|
17
57
|
*
|
|
18
|
-
* @example With
|
|
58
|
+
* @example With custom maximum value
|
|
59
|
+
* ```tsx
|
|
60
|
+
* <Progress value={30} max={50} />
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @example Indeterminate state (loading)
|
|
64
|
+
* ```tsx
|
|
65
|
+
* <Progress />
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example With accessible label
|
|
69
|
+
* ```tsx
|
|
70
|
+
* <Progress
|
|
71
|
+
* value={75}
|
|
72
|
+
* aria-label="Installation progress"
|
|
73
|
+
* getValueLabel={(value, max) => `${value} of ${max} files installed`}
|
|
74
|
+
* />
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @example File upload progress with label
|
|
78
|
+
* ```tsx
|
|
79
|
+
* <div className="space-y-2">
|
|
80
|
+
* <div className="flex justify-between text-sm">
|
|
81
|
+
* <span>Uploading image.jpg</span>
|
|
82
|
+
* <span>{uploadProgress}%</span>
|
|
83
|
+
* </div>
|
|
84
|
+
* <Progress value={uploadProgress} />
|
|
85
|
+
* </div>
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @example Custom styling with different heights and colors
|
|
19
89
|
* ```tsx
|
|
90
|
+
* <div className="space-y-4">
|
|
91
|
+
* <Progress value={25} className="h-1" />
|
|
92
|
+
* <Progress value={50} className="h-3" />
|
|
93
|
+
* <Progress value={75} className="h-4 [&>div]:bg-green-500" />
|
|
94
|
+
* <Progress value={100} className="h-6 [&>div]:bg-gradient-to-r [&>div]:from-blue-500 [&>div]:to-purple-500" />
|
|
95
|
+
* </div>
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @example Multi-step process indicator
|
|
99
|
+
* ```tsx
|
|
100
|
+
* const currentStep = 3;
|
|
101
|
+
* const totalSteps = 5;
|
|
102
|
+
* const stepProgress = (currentStep / totalSteps) * 100;
|
|
103
|
+
*
|
|
20
104
|
* <div className="space-y-2">
|
|
21
105
|
* <div className="flex justify-between text-sm">
|
|
22
|
-
* <span>
|
|
23
|
-
* <span>{
|
|
106
|
+
* <span>Step {currentStep} of {totalSteps}</span>
|
|
107
|
+
* <span>{Math.round(stepProgress)}%</span>
|
|
24
108
|
* </div>
|
|
25
|
-
* <Progress
|
|
109
|
+
* <Progress
|
|
110
|
+
* value={stepProgress}
|
|
111
|
+
* getValueLabel={(value, max) => `Step ${currentStep} of ${totalSteps} complete`}
|
|
112
|
+
* />
|
|
26
113
|
* </div>
|
|
27
114
|
* ```
|
|
28
115
|
*
|
|
29
|
-
* @example
|
|
116
|
+
* @example Form validation progress
|
|
30
117
|
* ```tsx
|
|
118
|
+
* const validFields = 4;
|
|
119
|
+
* const totalFields = 6;
|
|
120
|
+
* const validationProgress = (validFields / totalFields) * 100;
|
|
121
|
+
*
|
|
31
122
|
* <div className="space-y-2">
|
|
32
|
-
* <Progress value={uploadProgress} />
|
|
33
123
|
* <p className="text-sm text-muted-foreground">
|
|
34
|
-
* {
|
|
124
|
+
* Form completion: {validFields}/{totalFields} fields
|
|
35
125
|
* </p>
|
|
126
|
+
* <Progress
|
|
127
|
+
* value={validationProgress}
|
|
128
|
+
* className="[&>div]:bg-emerald-500"
|
|
129
|
+
* aria-label="Form completion progress"
|
|
130
|
+
* />
|
|
36
131
|
* </div>
|
|
37
132
|
* ```
|
|
38
133
|
*
|
|
39
|
-
* @example
|
|
134
|
+
* @example Reading progress indicator
|
|
40
135
|
* ```tsx
|
|
136
|
+
* const scrollProgress = Math.min(100, (scrollY / (documentHeight - windowHeight)) * 100);
|
|
137
|
+
*
|
|
41
138
|
* <Progress
|
|
42
|
-
* value={
|
|
43
|
-
* className="h-
|
|
139
|
+
* value={scrollProgress}
|
|
140
|
+
* className="fixed top-0 left-0 right-0 z-50 h-1 rounded-none"
|
|
141
|
+
* aria-label={`Reading progress: ${Math.round(scrollProgress)}%`}
|
|
44
142
|
* />
|
|
45
143
|
* ```
|
|
46
144
|
*
|
|
47
|
-
* @example Multi-step process
|
|
48
|
-
* ```tsx
|
|
49
|
-
* const stepProgress = (currentStep / totalSteps) * 100;
|
|
50
|
-
* <Progress value={stepProgress} />
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @param value - Progress value from 0 to 100. Undefined shows no progress.
|
|
54
|
-
* @param className - Additional CSS classes for styling customization
|
|
55
|
-
*
|
|
56
145
|
* @accessibility
|
|
57
|
-
* - Built on Radix UI Progress primitive with
|
|
58
|
-
* -
|
|
59
|
-
* - Supports custom aria-label
|
|
60
|
-
* -
|
|
146
|
+
* - Built on Radix UI Progress primitive with full ARIA support
|
|
147
|
+
* - Automatically announces progress changes to screen readers via `aria-valuenow`, `aria-valuemin`, and `aria-valuemax`
|
|
148
|
+
* - Supports custom `aria-label` for descriptive labeling
|
|
149
|
+
* - Uses `getValueLabel` to provide human-readable progress descriptions
|
|
150
|
+
* - Includes `role="progressbar"` for proper semantic meaning
|
|
151
|
+
* - Supports `aria-valuetext` for custom progress descriptions
|
|
152
|
+
* - Visual progress changes are communicated through color, position, and optional text
|
|
153
|
+
* - Keyboard navigation is not required as this is a read-only indicator
|
|
154
|
+
* - Compatible with screen readers and other assistive technologies
|
|
155
|
+
* - Respects user's motion preferences for animations
|
|
61
156
|
*
|
|
62
|
-
* @see {@link https://ui.
|
|
157
|
+
* @see {@link https://www.radix-ui.com/docs/primitives/components/progress} Radix UI Progress Documentation
|
|
158
|
+
* @see {@link https://ui.shadcn.com/docs/components/progress} shadcn/ui Progress Component
|
|
159
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/progressbar_role} MDN progressbar role
|
|
63
160
|
* @since 1.0.0
|
|
64
161
|
*/
|
|
65
162
|
function Progress({
|
|
66
163
|
className,
|
|
67
164
|
value,
|
|
165
|
+
max = 100,
|
|
166
|
+
getValueLabel,
|
|
68
167
|
...props
|
|
69
168
|
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
70
169
|
return (
|
|
@@ -74,6 +173,9 @@ function Progress({
|
|
|
74
173
|
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
75
174
|
className,
|
|
76
175
|
)}
|
|
176
|
+
value={value}
|
|
177
|
+
max={max}
|
|
178
|
+
getValueLabel={getValueLabel}
|
|
77
179
|
{...props}
|
|
78
180
|
>
|
|
79
181
|
<ProgressPrimitive.Indicator
|