@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
|
@@ -48,16 +48,6 @@ import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
|
48
48
|
* </Accordion>
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
-
* @param type - "single" allows one item open, "multiple" allows multiple items open
|
|
52
|
-
* @param collapsible - When type="single", allows closing the open item (optional)
|
|
53
|
-
* @param defaultValue - Initial value(s) for open items
|
|
54
|
-
* @param value - Controlled value(s) for open items
|
|
55
|
-
* @param onValueChange - Callback when accordion state changes
|
|
56
|
-
* @param className - Additional CSS classes for styling
|
|
57
|
-
* @param orientation - "horizontal" or "vertical" (default: "vertical")
|
|
58
|
-
* @param dir - Text direction "ltr" or "rtl" for internationalization
|
|
59
|
-
* @param disabled - Disables all accordion interactions
|
|
60
|
-
*
|
|
61
51
|
* @accessibility
|
|
62
52
|
* - Full keyboard navigation support (Arrow keys, Space, Enter, Home, End)
|
|
63
53
|
* - ARIA expanded/collapsed states automatically managed
|
|
@@ -73,7 +63,7 @@ import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
|
73
63
|
* @see {@link AccordionContent} Collapsible content area with smooth animations
|
|
74
64
|
* @since 1.0.0
|
|
75
65
|
*/
|
|
76
|
-
declare function Accordion(
|
|
66
|
+
declare function Accordion(props: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
77
67
|
/**
|
|
78
68
|
* AccordionItem - Individual collapsible panel within an accordion
|
|
79
69
|
*
|
|
@@ -100,11 +90,6 @@ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPr
|
|
|
100
90
|
* </AccordionItem>
|
|
101
91
|
* ```
|
|
102
92
|
*
|
|
103
|
-
* @param value - Unique identifier for this accordion item (required)
|
|
104
|
-
* @param className - Additional CSS classes for custom styling
|
|
105
|
-
* @param disabled - Disables this specific accordion item
|
|
106
|
-
* @param children - Should contain AccordionTrigger and AccordionContent
|
|
107
|
-
*
|
|
108
93
|
* @accessibility
|
|
109
94
|
* - Manages expanded/collapsed state via ARIA attributes
|
|
110
95
|
* - Associates trigger with content using aria-controls and aria-labelledby
|
|
@@ -150,11 +135,6 @@ declare function AccordionItem({ className, ...props }: React.ComponentProps<typ
|
|
|
150
135
|
* </AccordionTrigger>
|
|
151
136
|
* ```
|
|
152
137
|
*
|
|
153
|
-
* @param className - Additional CSS classes for custom styling
|
|
154
|
-
* @param children - Content to display in the trigger (text, icons, or components)
|
|
155
|
-
* @param disabled - Disables the trigger interaction
|
|
156
|
-
* @param asChild - Renders the trigger as its child element when true
|
|
157
|
-
*
|
|
158
138
|
* @accessibility
|
|
159
139
|
* - Keyboard activated with Space, Enter, or Arrow keys
|
|
160
140
|
* - aria-expanded automatically indicates current expanded/collapsed state
|
|
@@ -205,10 +185,6 @@ declare function AccordionTrigger({ className, children, ...props }: React.Compo
|
|
|
205
185
|
* </AccordionContent>
|
|
206
186
|
* ```
|
|
207
187
|
*
|
|
208
|
-
* @param className - Additional CSS classes for custom styling (applied to inner div)
|
|
209
|
-
* @param children - Any React content to display when expanded
|
|
210
|
-
* @param forceMount - Forces content to remain mounted when collapsed (for animations)
|
|
211
|
-
*
|
|
212
188
|
* @accessibility
|
|
213
189
|
* - Hidden content is not focusable or accessible when collapsed
|
|
214
190
|
* - Smooth height animations enhance user experience without motion issues
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAkHhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,iBAAS,SAAS,CAChB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAG5D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAQtD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAgBzD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAUzD;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -77,24 +77,54 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
|
77
77
|
* Root component of the alert dialog
|
|
78
78
|
*
|
|
79
79
|
* Provides the context and state management for the entire alert dialog.
|
|
80
|
-
* Controls the open/closed state and manages focus behavior.
|
|
80
|
+
* Controls the open/closed state and manages focus behavior. Alert dialogs
|
|
81
|
+
* are specifically designed for critical actions that require user attention
|
|
82
|
+
* and cannot be dismissed by clicking outside.
|
|
81
83
|
*
|
|
82
|
-
* @param
|
|
84
|
+
* @param defaultOpen - Whether the dialog is open initially (uncontrolled)
|
|
85
|
+
* @param open - Whether the dialog is open (controlled)
|
|
86
|
+
* @param onOpenChange - Callback when open state changes
|
|
87
|
+
* @param props - All other props forwarded to Radix AlertDialog.Root
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```tsx
|
|
91
|
+
* // Uncontrolled
|
|
92
|
+
* <AlertDialog defaultOpen={false}>
|
|
93
|
+
* // dialog content
|
|
94
|
+
* </AlertDialog>
|
|
95
|
+
*
|
|
96
|
+
* // Controlled
|
|
97
|
+
* <AlertDialog open={isOpen} onOpenChange={setIsOpen}>
|
|
98
|
+
* // dialog content
|
|
99
|
+
* </AlertDialog>
|
|
100
|
+
* ```
|
|
83
101
|
*/
|
|
84
102
|
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
85
103
|
/**
|
|
86
104
|
* Trigger element that opens the alert dialog
|
|
87
105
|
*
|
|
88
106
|
* The element that opens the alert dialog when activated. Usually a button,
|
|
89
|
-
* but can be any interactive element
|
|
90
|
-
*
|
|
107
|
+
* but can be any interactive element through composition. When opened, the dialog
|
|
108
|
+
* will trap focus and require user interaction before continuing.
|
|
91
109
|
*
|
|
92
|
-
* @param
|
|
110
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
111
|
+
* @param props - All other props forwarded to Radix AlertDialog.Trigger
|
|
93
112
|
*
|
|
94
113
|
* @example
|
|
95
114
|
* ```tsx
|
|
115
|
+
* // Direct usage
|
|
116
|
+
* <AlertDialogTrigger>
|
|
117
|
+
* Delete Account
|
|
118
|
+
* </AlertDialogTrigger>
|
|
119
|
+
*
|
|
120
|
+
* // Composition with Button component
|
|
121
|
+
* <AlertDialogTrigger asChild>
|
|
122
|
+
* <Button variant="destructive">Delete Account</Button>
|
|
123
|
+
* </AlertDialogTrigger>
|
|
124
|
+
*
|
|
125
|
+
* // Composition with custom element
|
|
96
126
|
* <AlertDialogTrigger asChild>
|
|
97
|
-
* <
|
|
127
|
+
* <button className="custom-trigger">Custom Trigger</button>
|
|
98
128
|
* </AlertDialogTrigger>
|
|
99
129
|
* ```
|
|
100
130
|
*/
|
|
@@ -106,7 +136,20 @@ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof Al
|
|
|
106
136
|
* This ensures the dialog appears above other content and is properly accessible.
|
|
107
137
|
* Usually not used directly - AlertDialogContent includes this automatically.
|
|
108
138
|
*
|
|
109
|
-
* @param
|
|
139
|
+
* @param forceMount - Force mount the component even when dialog is closed
|
|
140
|
+
* @param container - Container element to portal into (defaults to document.body)
|
|
141
|
+
* @param props - All other props forwarded to Radix AlertDialog.Portal
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```tsx
|
|
145
|
+
* // Custom portal container
|
|
146
|
+
* <AlertDialogPortal container={customContainer}>
|
|
147
|
+
* <AlertDialogOverlay />
|
|
148
|
+
* <AlertDialogPrimitive.Content>
|
|
149
|
+
* // content
|
|
150
|
+
* </AlertDialogPrimitive.Content>
|
|
151
|
+
* </AlertDialogPortal>
|
|
152
|
+
* ```
|
|
110
153
|
*/
|
|
111
154
|
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
112
155
|
/**
|
|
@@ -114,24 +157,44 @@ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof Ale
|
|
|
114
157
|
*
|
|
115
158
|
* A semi-transparent backdrop that covers the entire viewport when the dialog is open.
|
|
116
159
|
* Provides visual separation and prevents interaction with background content.
|
|
117
|
-
* Includes fade in/out animations
|
|
160
|
+
* Includes smooth fade in/out animations and proper z-index stacking.
|
|
161
|
+
*
|
|
162
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
163
|
+
* @param forceMount - Force mount the component even when dialog is closed
|
|
164
|
+
* @param className - Additional CSS classes for custom styling
|
|
165
|
+
* @param props - All other props forwarded to Radix AlertDialog.Overlay
|
|
118
166
|
*
|
|
119
|
-
* @
|
|
120
|
-
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```tsx
|
|
169
|
+
* // Custom overlay styling
|
|
170
|
+
* <AlertDialogOverlay className="bg-black/80" />
|
|
171
|
+
*
|
|
172
|
+
* // Force mounted overlay
|
|
173
|
+
* <AlertDialogOverlay forceMount className="custom-backdrop" />
|
|
174
|
+
* ```
|
|
121
175
|
*/
|
|
122
|
-
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>
|
|
176
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay> & {
|
|
177
|
+
className?: string;
|
|
178
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
123
179
|
/**
|
|
124
180
|
* Main content container for the alert dialog
|
|
125
181
|
*
|
|
126
182
|
* The primary container that holds all alert dialog content. Automatically includes
|
|
127
183
|
* the portal and overlay, and provides default styling with responsive design.
|
|
128
|
-
* Centered on screen with fade and zoom animations.
|
|
184
|
+
* Centered on screen with smooth fade and zoom animations. Manages focus trapping
|
|
185
|
+
* and keyboard navigation automatically.
|
|
129
186
|
*
|
|
130
|
-
* @param
|
|
131
|
-
* @param
|
|
187
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
188
|
+
* @param forceMount - Force mount the component even when dialog is closed
|
|
189
|
+
* @param onOpenAutoFocus - Callback when dialog opens and focus moves to content
|
|
190
|
+
* @param onCloseAutoFocus - Callback when dialog closes and focus returns to trigger
|
|
191
|
+
* @param onEscapeKeyDown - Callback when Escape key is pressed (can preventDefault)
|
|
192
|
+
* @param className - Additional CSS classes for custom styling
|
|
193
|
+
* @param props - All other props forwarded to Radix AlertDialog.Content
|
|
132
194
|
*
|
|
133
195
|
* @example
|
|
134
196
|
* ```tsx
|
|
197
|
+
* // Basic usage
|
|
135
198
|
* <AlertDialogContent>
|
|
136
199
|
* <AlertDialogHeader>
|
|
137
200
|
* <AlertDialogTitle>Confirm Action</AlertDialogTitle>
|
|
@@ -142,106 +205,237 @@ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProp
|
|
|
142
205
|
* <AlertDialogAction>Continue</AlertDialogAction>
|
|
143
206
|
* </AlertDialogFooter>
|
|
144
207
|
* </AlertDialogContent>
|
|
208
|
+
*
|
|
209
|
+
* // Custom focus handling
|
|
210
|
+
* <AlertDialogContent
|
|
211
|
+
* onOpenAutoFocus={(e) => {
|
|
212
|
+
* e.preventDefault();
|
|
213
|
+
* customFocusTarget.focus();
|
|
214
|
+
* }}
|
|
215
|
+
* onEscapeKeyDown={(e) => {
|
|
216
|
+
* if (hasUnsavedChanges) {
|
|
217
|
+
* e.preventDefault();
|
|
218
|
+
* showUnsavedWarning();
|
|
219
|
+
* }
|
|
220
|
+
* }}
|
|
221
|
+
* >
|
|
222
|
+
* // content
|
|
223
|
+
* </AlertDialogContent>
|
|
224
|
+
*
|
|
225
|
+
* // Custom styling
|
|
226
|
+
* <AlertDialogContent className="max-w-md">
|
|
227
|
+
* // smaller dialog
|
|
228
|
+
* </AlertDialogContent>
|
|
145
229
|
* ```
|
|
146
230
|
*/
|
|
147
|
-
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>
|
|
231
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
232
|
+
className?: string;
|
|
233
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
148
234
|
/**
|
|
149
235
|
* Header section of the alert dialog
|
|
150
236
|
*
|
|
151
237
|
* Contains the title and description of the alert dialog. Provides consistent
|
|
152
238
|
* spacing and alignment, with responsive text alignment (centered on mobile,
|
|
153
|
-
* left-aligned on larger screens).
|
|
239
|
+
* left-aligned on larger screens). Should contain AlertDialogTitle and
|
|
240
|
+
* optionally AlertDialogDescription for proper accessibility.
|
|
241
|
+
*
|
|
242
|
+
* @param className - Additional CSS classes for custom styling
|
|
243
|
+
* @param props - All other props forwarded to the underlying div element
|
|
154
244
|
*
|
|
155
|
-
* @
|
|
156
|
-
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```tsx
|
|
247
|
+
* <AlertDialogHeader>
|
|
248
|
+
* <AlertDialogTitle>Delete Account</AlertDialogTitle>
|
|
249
|
+
* <AlertDialogDescription>
|
|
250
|
+
* This will permanently delete your account and all associated data.
|
|
251
|
+
* This action cannot be undone.
|
|
252
|
+
* </AlertDialogDescription>
|
|
253
|
+
* </AlertDialogHeader>
|
|
254
|
+
*
|
|
255
|
+
* // Custom styling
|
|
256
|
+
* <AlertDialogHeader className="text-left">
|
|
257
|
+
* <AlertDialogTitle>Custom Header</AlertDialogTitle>
|
|
258
|
+
* </AlertDialogHeader>
|
|
259
|
+
* ```
|
|
157
260
|
*/
|
|
158
|
-
declare function AlertDialogHeader({ className, ...props }: React.
|
|
261
|
+
declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
159
262
|
/**
|
|
160
263
|
* Footer section of the alert dialog
|
|
161
264
|
*
|
|
162
265
|
* Contains the action buttons (cancel and confirm). Uses responsive layout
|
|
163
266
|
* with stacked buttons on mobile (cancel on top) and horizontal layout
|
|
164
|
-
* on larger screens (cancel on left, action on right).
|
|
267
|
+
* on larger screens (cancel on left, action on right). Should contain
|
|
268
|
+
* AlertDialogCancel and AlertDialogAction for proper UX.
|
|
165
269
|
*
|
|
166
|
-
* @param className - Additional CSS classes
|
|
167
|
-
* @param props - All other props
|
|
270
|
+
* @param className - Additional CSS classes for custom styling
|
|
271
|
+
* @param props - All other props forwarded to the underlying div element
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```tsx
|
|
275
|
+
* <AlertDialogFooter>
|
|
276
|
+
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
277
|
+
* <AlertDialogAction>Delete Account</AlertDialogAction>
|
|
278
|
+
* </AlertDialogFooter>
|
|
279
|
+
*
|
|
280
|
+
* // Custom button order
|
|
281
|
+
* <AlertDialogFooter className="flex-row">
|
|
282
|
+
* <AlertDialogAction>Continue</AlertDialogAction>
|
|
283
|
+
* <AlertDialogCancel>Go Back</AlertDialogCancel>
|
|
284
|
+
* </AlertDialogFooter>
|
|
285
|
+
*
|
|
286
|
+
* // Single action footer
|
|
287
|
+
* <AlertDialogFooter>
|
|
288
|
+
* <AlertDialogAction>I Understand</AlertDialogAction>
|
|
289
|
+
* </AlertDialogFooter>
|
|
290
|
+
* ```
|
|
168
291
|
*/
|
|
169
|
-
declare function AlertDialogFooter({ className, ...props }: React.
|
|
292
|
+
declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
170
293
|
/**
|
|
171
294
|
* Title heading of the alert dialog
|
|
172
295
|
*
|
|
173
296
|
* The main heading that describes the alert or action being confirmed.
|
|
174
|
-
* Automatically provides proper ARIA labeling for screen readers
|
|
175
|
-
* Should be concise and clearly state what the dialog is asking.
|
|
297
|
+
* Automatically provides proper ARIA labeling for screen readers via
|
|
298
|
+
* aria-labelledby. Should be concise and clearly state what the dialog is asking.
|
|
176
299
|
*
|
|
177
|
-
* @param
|
|
178
|
-
* @param
|
|
300
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
301
|
+
* @param className - Additional CSS classes for custom styling
|
|
302
|
+
* @param props - All other props forwarded to Radix AlertDialog.Title
|
|
179
303
|
*
|
|
180
304
|
* @example
|
|
181
305
|
* ```tsx
|
|
306
|
+
* // Standard titles
|
|
182
307
|
* <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
|
|
183
308
|
* <AlertDialogTitle>Delete Account</AlertDialogTitle>
|
|
309
|
+
* <AlertDialogTitle>Confirm Sign Out</AlertDialogTitle>
|
|
310
|
+
*
|
|
311
|
+
* // Custom styling
|
|
312
|
+
* <AlertDialogTitle className="text-red-600 text-xl">
|
|
313
|
+
* Destructive Action
|
|
314
|
+
* </AlertDialogTitle>
|
|
315
|
+
*
|
|
316
|
+
* // Composition with custom element
|
|
317
|
+
* <AlertDialogTitle asChild>
|
|
318
|
+
* <h1 className="custom-title">Custom Title Element</h1>
|
|
319
|
+
* </AlertDialogTitle>
|
|
184
320
|
* ```
|
|
185
321
|
*/
|
|
186
|
-
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>
|
|
322
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title> & {
|
|
323
|
+
className?: string;
|
|
324
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
187
325
|
/**
|
|
188
326
|
* Description text of the alert dialog
|
|
189
327
|
*
|
|
190
328
|
* Provides additional context and explanation for the alert or action.
|
|
191
329
|
* Should clearly explain the consequences of the action being confirmed.
|
|
192
|
-
* Automatically provides proper ARIA description
|
|
330
|
+
* Automatically provides proper ARIA description via aria-describedby for
|
|
331
|
+
* screen readers. Can be omitted if aria-describedby is provided to Content.
|
|
193
332
|
*
|
|
194
|
-
* @param
|
|
195
|
-
* @param
|
|
333
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
334
|
+
* @param className - Additional CSS classes for custom styling
|
|
335
|
+
* @param props - All other props forwarded to Radix AlertDialog.Description
|
|
196
336
|
*
|
|
197
337
|
* @example
|
|
198
338
|
* ```tsx
|
|
339
|
+
* // Standard descriptions
|
|
199
340
|
* <AlertDialogDescription>
|
|
200
341
|
* This action cannot be undone. This will permanently delete your
|
|
201
342
|
* account and remove your data from our servers.
|
|
202
343
|
* </AlertDialogDescription>
|
|
344
|
+
*
|
|
345
|
+
* <AlertDialogDescription>
|
|
346
|
+
* You will be signed out of all devices and will need to sign in again
|
|
347
|
+
* to access your account.
|
|
348
|
+
* </AlertDialogDescription>
|
|
349
|
+
*
|
|
350
|
+
* // Custom styling
|
|
351
|
+
* <AlertDialogDescription className="text-center text-lg">
|
|
352
|
+
* Are you sure you want to continue?
|
|
353
|
+
* </AlertDialogDescription>
|
|
354
|
+
*
|
|
355
|
+
* // Composition with custom element
|
|
356
|
+
* <AlertDialogDescription asChild>
|
|
357
|
+
* <p className="custom-description">
|
|
358
|
+
* Custom description element
|
|
359
|
+
* </p>
|
|
360
|
+
* </AlertDialogDescription>
|
|
203
361
|
* ```
|
|
204
362
|
*/
|
|
205
|
-
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>
|
|
363
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description> & {
|
|
364
|
+
className?: string;
|
|
365
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
206
366
|
/**
|
|
207
367
|
* Primary action button of the alert dialog
|
|
208
368
|
*
|
|
209
369
|
* The button that confirms or executes the action being alerted about.
|
|
210
|
-
* Automatically receives focus when the dialog opens
|
|
211
|
-
*
|
|
212
|
-
* Closes the dialog when clicked.
|
|
370
|
+
* Automatically receives focus when the dialog opens (unless overridden).
|
|
371
|
+
* Styled using buttonVariants() by default, but can be customized for
|
|
372
|
+
* destructive actions. Closes the dialog when clicked.
|
|
213
373
|
*
|
|
214
|
-
* @param
|
|
215
|
-
* @param
|
|
374
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
375
|
+
* @param className - Additional CSS classes (useful for destructive styling)
|
|
376
|
+
* @param props - All other props forwarded to Radix AlertDialog.Action
|
|
216
377
|
*
|
|
217
378
|
* @example
|
|
218
379
|
* ```tsx
|
|
219
|
-
* // Default action
|
|
380
|
+
* // Default action (primary button style)
|
|
220
381
|
* <AlertDialogAction>Continue</AlertDialogAction>
|
|
382
|
+
* <AlertDialogAction>Save Changes</AlertDialogAction>
|
|
221
383
|
*
|
|
222
|
-
* // Destructive action
|
|
223
|
-
* <AlertDialogAction className=
|
|
384
|
+
* // Destructive action with red styling
|
|
385
|
+
* <AlertDialogAction className={buttonVariants({ variant: "destructive" })}>
|
|
224
386
|
* Delete Account
|
|
225
387
|
* </AlertDialogAction>
|
|
388
|
+
*
|
|
389
|
+
* // Custom styled action
|
|
390
|
+
* <AlertDialogAction className="bg-green-600 hover:bg-green-700">
|
|
391
|
+
* Confirm Action
|
|
392
|
+
* </AlertDialogAction>
|
|
393
|
+
*
|
|
394
|
+
* // Composition with custom button
|
|
395
|
+
* <AlertDialogAction asChild>
|
|
396
|
+
* <Button variant="destructive" size="lg">
|
|
397
|
+
* Delete Forever
|
|
398
|
+
* </Button>
|
|
399
|
+
* </AlertDialogAction>
|
|
226
400
|
* ```
|
|
227
401
|
*/
|
|
228
|
-
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>
|
|
402
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & {
|
|
403
|
+
className?: string;
|
|
404
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
229
405
|
/**
|
|
230
406
|
* Cancel button of the alert dialog
|
|
231
407
|
*
|
|
232
408
|
* The button that dismisses the dialog without performing the action.
|
|
233
|
-
* Styled
|
|
234
|
-
* the primary action. Closes the dialog when clicked
|
|
409
|
+
* Styled using outline variant by default to de-emphasize compared to
|
|
410
|
+
* the primary action. Closes the dialog when clicked without triggering
|
|
411
|
+
* the main action.
|
|
235
412
|
*
|
|
236
|
-
* @param
|
|
237
|
-
* @param
|
|
413
|
+
* @param asChild - Render as child element, merging props and behavior
|
|
414
|
+
* @param className - Additional CSS classes for custom styling
|
|
415
|
+
* @param props - All other props forwarded to Radix AlertDialog.Cancel
|
|
238
416
|
*
|
|
239
417
|
* @example
|
|
240
418
|
* ```tsx
|
|
419
|
+
* // Standard cancel buttons
|
|
241
420
|
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
242
421
|
* <AlertDialogCancel>No, keep it</AlertDialogCancel>
|
|
422
|
+
* <AlertDialogCancel>Go Back</AlertDialogCancel>
|
|
423
|
+
*
|
|
424
|
+
* // Custom styled cancel
|
|
425
|
+
* <AlertDialogCancel className="text-red-600">
|
|
426
|
+
* Don't Delete
|
|
427
|
+
* </AlertDialogCancel>
|
|
428
|
+
*
|
|
429
|
+
* // Composition with custom button
|
|
430
|
+
* <AlertDialogCancel asChild>
|
|
431
|
+
* <Button variant="ghost" size="sm">
|
|
432
|
+
* Maybe Later
|
|
433
|
+
* </Button>
|
|
434
|
+
* </AlertDialogCancel>
|
|
243
435
|
* ```
|
|
244
436
|
*/
|
|
245
|
-
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>
|
|
437
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & {
|
|
438
|
+
className?: string;
|
|
439
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
246
440
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
247
441
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAsKrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAI3D;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAI1D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAWA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAcA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAQtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAWtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAQA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC,GAAG;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAQA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GAAG;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAOA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GAAG;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAOA;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
/**
|
|
4
|
+
* Alert variant styles configuration with semantic color schemes
|
|
5
|
+
*
|
|
6
|
+
* @variant default - Standard informational alert with neutral colors
|
|
7
|
+
* @variant destructive - Error or warning alert with red color scheme for critical messages
|
|
8
|
+
*/
|
|
3
9
|
declare const alertVariants: (props?: ({
|
|
4
10
|
variant?: "default" | "destructive" | null | undefined;
|
|
5
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -111,7 +117,7 @@ declare const alertVariants: (props?: ({
|
|
|
111
117
|
* @see {@link https://www.w3.org/WAI/ARIA/apg/patterns/alert/} - ARIA alert pattern
|
|
112
118
|
* @since 1.0.0
|
|
113
119
|
*/
|
|
114
|
-
declare function Alert({ className, variant, ...props }: React.
|
|
120
|
+
declare function Alert({ className, variant, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
115
121
|
/**
|
|
116
122
|
* AlertTitle - The title/heading component for alerts
|
|
117
123
|
*
|
|
@@ -158,30 +164,86 @@ declare function Alert({ className, variant, ...props }: React.ComponentProps<"d
|
|
|
158
164
|
* @see {@link AlertDescription} - Companion description component
|
|
159
165
|
* @since 1.0.0
|
|
160
166
|
*/
|
|
161
|
-
declare function AlertTitle({ className, ...props }: React.
|
|
167
|
+
declare function AlertTitle({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
162
168
|
/**
|
|
163
|
-
* AlertDescription - Detailed description text for
|
|
169
|
+
* AlertDescription - Detailed description text content for alerts
|
|
164
170
|
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
171
|
+
* The body content area of an alert that provides detailed information, context,
|
|
172
|
+
* or instructions related to the alert message. Automatically styled with muted
|
|
173
|
+
* text color and proper grid positioning. Supports rich content including
|
|
174
|
+
* paragraphs, links, and inline formatting.
|
|
175
|
+
*
|
|
176
|
+
* ## Features
|
|
177
|
+
* - Muted foreground color for visual hierarchy
|
|
178
|
+
* - Proper grid positioning (col-start-2) for icon layout compatibility
|
|
179
|
+
* - Support for multiple paragraphs with relaxed line height
|
|
180
|
+
* - Grid layout with start justification for text alignment
|
|
181
|
+
* - Semantic HTML structure with data-slot attribute
|
|
182
|
+
* - Small text size (text-sm) for readability
|
|
183
|
+
* - Responsive gap spacing between content elements
|
|
167
184
|
*
|
|
168
|
-
* @component
|
|
169
185
|
* @example
|
|
170
186
|
* ```tsx
|
|
187
|
+
* // Basic description with simple text
|
|
171
188
|
* <Alert>
|
|
172
|
-
* <AlertTitle>
|
|
189
|
+
* <AlertTitle>Success</AlertTitle>
|
|
173
190
|
* <AlertDescription>
|
|
174
|
-
* Your
|
|
191
|
+
* Your account has been created successfully.
|
|
192
|
+
* </AlertDescription>
|
|
193
|
+
* </Alert>
|
|
194
|
+
* ```
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```tsx
|
|
198
|
+
* // Description with multiple paragraphs
|
|
199
|
+
* <Alert variant="destructive">
|
|
200
|
+
* <AlertCircle className="size-4" />
|
|
201
|
+
* <AlertTitle>Connection Error</AlertTitle>
|
|
202
|
+
* <AlertDescription>
|
|
203
|
+
* <p>Unable to connect to the server. This could be due to:</p>
|
|
204
|
+
* <p>• Network connectivity issues</p>
|
|
205
|
+
* <p>• Server maintenance</p>
|
|
206
|
+
* <p>Please try again in a few minutes.</p>
|
|
207
|
+
* </AlertDescription>
|
|
208
|
+
* </Alert>
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```tsx
|
|
213
|
+
* // Description with links and rich content
|
|
214
|
+
* <Alert>
|
|
215
|
+
* <Info className="size-4" />
|
|
216
|
+
* <AlertTitle>Update Available</AlertTitle>
|
|
217
|
+
* <AlertDescription>
|
|
218
|
+
* A new version is available. <a href="/changelog" className="underline">View changelog</a> or
|
|
219
|
+
* <button className="ml-1 underline">update now</button>.
|
|
220
|
+
* </AlertDescription>
|
|
221
|
+
* </Alert>
|
|
222
|
+
* ```
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```tsx
|
|
226
|
+
* // Custom styled description
|
|
227
|
+
* <Alert>
|
|
228
|
+
* <AlertTitle>Custom Alert</AlertTitle>
|
|
229
|
+
* <AlertDescription className="text-sm font-medium text-foreground">
|
|
230
|
+
* This description uses custom styling to override the default muted appearance.
|
|
175
231
|
* </AlertDescription>
|
|
176
232
|
* </Alert>
|
|
177
233
|
* ```
|
|
178
234
|
*
|
|
179
235
|
* @accessibility
|
|
180
|
-
* -
|
|
181
|
-
* -
|
|
236
|
+
* - Properly associated with the alert container via DOM structure
|
|
237
|
+
* - Uses muted text color while maintaining sufficient contrast ratios
|
|
238
|
+
* - Supports paragraph spacing and line height for readability
|
|
239
|
+
* - Screen readers announce description content as part of the alert
|
|
240
|
+
* - Rich content like links and buttons remain keyboard accessible
|
|
241
|
+
* - Works with dark mode via CSS custom properties
|
|
182
242
|
*
|
|
243
|
+
* @see {@link Alert} - Parent alert container component
|
|
244
|
+
* @see {@link AlertTitle} - Companion title component for headers
|
|
183
245
|
* @since 1.0.0
|
|
184
246
|
*/
|
|
185
|
-
declare function AlertDescription({ className, ...props }: React.
|
|
247
|
+
declare function AlertDescription({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
186
248
|
export { Alert, AlertTitle, AlertDescription };
|
|
187
249
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE;;;;;GAKG;AACH,QAAA,MAAM,aAAa;;8EAgBlB,CAAC;AAsCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAS3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAWtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAWtC;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|