@nanisoft/prism-ui 0.10.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/app-shell-01/app-shell.js +4 -4
- package/dist/blocks/app-shell-01/index.d.ts +2 -2
- package/dist/blocks/app-shell-01/index.js +1 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts +11 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +11 -8
- package/dist/blocks/auth-form-01/index.d.ts +2 -2
- package/dist/blocks/auth-form-01/index.js +1 -1
- package/dist/blocks/cta-01/cta.d.ts +26 -21
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +2 -2
- package/dist/blocks/cta-01/index.d.ts +2 -2
- package/dist/blocks/cta-01/index.js +1 -1
- package/dist/blocks/data-table-01/data-table.js +7 -7
- package/dist/blocks/data-table-01/index.d.ts +2 -2
- package/dist/blocks/data-table-01/index.js +1 -1
- package/dist/blocks/empty-state-01/empty-state.d.ts +143 -0
- package/dist/blocks/empty-state-01/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state-01/empty-state.js +104 -0
- package/dist/blocks/empty-state-01/index.d.ts +3 -0
- package/dist/blocks/empty-state-01/index.d.ts.map +1 -0
- package/dist/blocks/empty-state-01/index.js +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts +28 -1
- package/dist/blocks/feature-grid-01/feature-grid.d.ts.map +1 -1
- package/dist/blocks/feature-grid-01/feature-grid.js +34 -3
- package/dist/blocks/feature-grid-01/index.d.ts +2 -2
- package/dist/blocks/feature-grid-01/index.js +1 -1
- package/dist/blocks/hero-01/hero.d.ts +49 -17
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +14 -9
- package/dist/blocks/hero-01/index.d.ts +2 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-01/index.js +1 -1
- package/dist/blocks/index.d.ts +20 -20
- package/dist/blocks/index.js +19 -19
- package/dist/blocks/instrument-panel-01/index.d.ts +2 -2
- package/dist/blocks/instrument-panel-01/index.js +1 -1
- package/dist/blocks/instrument-panel-01/instrument-panel.js +1 -1
- package/dist/blocks/logo-strip-01/index.d.ts +2 -2
- package/dist/blocks/logo-strip-01/index.js +1 -1
- package/dist/blocks/logo-strip-01/logo-strip.d.ts +1 -1
- package/dist/blocks/logo-strip-01/logo-strip.js +2 -2
- package/dist/blocks/note-grid-01/index.d.ts +2 -2
- package/dist/blocks/note-grid-01/index.js +1 -1
- package/dist/blocks/note-grid-01/note-grid.d.ts +1 -1
- package/dist/blocks/note-grid-01/note-grid.js +1 -1
- package/dist/blocks/page-header-01/index.d.ts +2 -2
- package/dist/blocks/page-header-01/index.js +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +1 -1
- package/dist/blocks/page-header-01/page-header.js +4 -4
- package/dist/blocks/pricing-01/index.d.ts +1 -1
- package/dist/blocks/pricing-01/index.js +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +8 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +15 -5
- package/dist/blocks/process-flow-01/index.d.ts +3 -0
- package/dist/blocks/process-flow-01/index.d.ts.map +1 -0
- package/dist/blocks/process-flow-01/index.js +1 -0
- package/dist/blocks/process-flow-01/process-flow.d.ts +118 -0
- package/dist/blocks/process-flow-01/process-flow.d.ts.map +1 -0
- package/dist/blocks/process-flow-01/process-flow.js +71 -0
- package/dist/blocks/process-rail-01/index.d.ts +2 -2
- package/dist/blocks/process-rail-01/index.js +1 -1
- package/dist/blocks/process-rail-01/process-rail.d.ts +1 -1
- package/dist/blocks/process-rail-01/process-rail.js +2 -2
- package/dist/blocks/product-grid-01/index.d.ts +2 -2
- package/dist/blocks/product-grid-01/index.js +1 -1
- package/dist/blocks/product-grid-01/product-grid.d.ts +37 -5
- package/dist/blocks/product-grid-01/product-grid.d.ts.map +1 -1
- package/dist/blocks/product-grid-01/product-grid.js +20 -6
- package/dist/blocks/run-console-01/index.d.ts +3 -0
- package/dist/blocks/run-console-01/index.d.ts.map +1 -0
- package/dist/blocks/run-console-01/index.js +1 -0
- package/dist/blocks/run-console-01/run-console.d.ts +111 -0
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -0
- package/dist/blocks/run-console-01/run-console.js +48 -0
- package/dist/blocks/settings-panel-01/index.d.ts +2 -2
- package/dist/blocks/settings-panel-01/index.js +1 -1
- package/dist/blocks/settings-panel-01/settings-panel.d.ts +11 -1
- package/dist/blocks/settings-panel-01/settings-panel.d.ts.map +1 -1
- package/dist/blocks/settings-panel-01/settings-panel.js +15 -10
- package/dist/blocks/site-footer/index.d.ts +2 -2
- package/dist/blocks/site-footer/index.js +1 -1
- package/dist/blocks/site-footer/site-footer.d.ts +1 -1
- package/dist/blocks/site-footer/site-footer.js +2 -2
- package/dist/blocks/site-header/index.d.ts +2 -2
- package/dist/blocks/site-header/index.js +1 -1
- package/dist/blocks/site-header/site-header.d.ts +2 -2
- package/dist/blocks/site-header/site-header.js +3 -3
- package/dist/blocks/site-navbar/index.d.ts +3 -0
- package/dist/blocks/site-navbar/index.d.ts.map +1 -0
- package/dist/blocks/site-navbar/index.js +1 -0
- package/dist/blocks/site-navbar/mobile-nav.d.ts +48 -0
- package/dist/blocks/site-navbar/mobile-nav.d.ts.map +1 -0
- package/dist/blocks/site-navbar/mobile-nav.js +35 -0
- package/dist/blocks/site-navbar/mode-toggle.d.ts +39 -0
- package/dist/blocks/site-navbar/mode-toggle.d.ts.map +1 -0
- package/dist/blocks/site-navbar/mode-toggle.js +39 -0
- package/dist/blocks/site-navbar/navbar-controls.d.ts +79 -0
- package/dist/blocks/site-navbar/navbar-controls.d.ts.map +1 -0
- package/dist/blocks/site-navbar/navbar-controls.js +40 -0
- package/dist/blocks/site-navbar/search-entry.d.ts +29 -0
- package/dist/blocks/site-navbar/search-entry.d.ts.map +1 -0
- package/dist/blocks/site-navbar/search-entry.js +52 -0
- package/dist/blocks/site-navbar/site-navbar.d.ts +212 -0
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -0
- package/dist/blocks/site-navbar/site-navbar.js +61 -0
- package/dist/blocks/site-navbar/sites-menu.d.ts +40 -0
- package/dist/blocks/site-navbar/sites-menu.d.ts.map +1 -0
- package/dist/blocks/site-navbar/sites-menu.js +48 -0
- package/dist/blocks/site-navbar/theme-menu.d.ts +47 -0
- package/dist/blocks/site-navbar/theme-menu.d.ts.map +1 -0
- package/dist/blocks/site-navbar/theme-menu.js +55 -0
- package/dist/blocks/stack-grid-01/index.d.ts +2 -2
- package/dist/blocks/stack-grid-01/index.js +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.d.ts +42 -11
- package/dist/blocks/stack-grid-01/stack-grid.d.ts.map +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.js +15 -7
- package/dist/blocks/stats-01/index.d.ts +9 -1
- package/dist/blocks/stats-01/index.d.ts.map +1 -1
- package/dist/blocks/stats-01/index.js +8 -1
- package/dist/blocks/stats-01/stats.d.ts +1 -1
- package/dist/blocks/stats-01/stats.js +2 -2
- package/dist/blocks/status-ledger-01/index.d.ts +2 -2
- package/dist/blocks/status-ledger-01/index.js +1 -1
- package/dist/blocks/status-ledger-01/status-ledger.d.ts +1 -1
- package/dist/blocks/status-ledger-01/status-ledger.js +2 -2
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +473 -1
- package/dist/components/index.d.ts +104 -66
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +74 -40
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +119 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +82 -0
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +60 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +61 -0
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.d.ts +68 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +54 -0
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.d.ts +158 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +216 -0
- package/dist/components/ui/card.d.ts +18 -6
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +23 -8
- package/dist/components/ui/carousel.d.ts +118 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +152 -0
- package/dist/components/ui/chart-frame.d.ts +216 -0
- package/dist/components/ui/chart-frame.d.ts.map +1 -0
- package/dist/components/ui/chart-frame.js +286 -0
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/collapsible.d.ts +97 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +54 -0
- package/dist/components/ui/combobox.d.ts +141 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +243 -0
- package/dist/components/ui/command-palette.d.ts +106 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -0
- package/dist/components/ui/command-palette.js +176 -0
- package/dist/components/ui/command.d.ts +82 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +37 -0
- package/dist/components/ui/context-menu.d.ts +151 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +97 -0
- package/dist/components/ui/cta-link.js +1 -1
- package/dist/components/ui/date-picker.d.ts +111 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +74 -0
- package/dist/components/ui/diagram.d.ts +84 -15
- package/dist/components/ui/diagram.d.ts.map +1 -1
- package/dist/components/ui/diagram.js +77 -7
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/diff.d.ts +105 -0
- package/dist/components/ui/diff.d.ts.map +1 -0
- package/dist/components/ui/diff.js +113 -0
- package/dist/components/ui/dropdown-menu.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/fact-list.js +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/form.d.ts +151 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +73 -0
- package/dist/components/ui/hover-card.d.ts +105 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +49 -0
- package/dist/components/ui/input-group.d.ts +99 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +83 -0
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +113 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +61 -0
- package/dist/components/ui/kbd.js +1 -1
- package/dist/components/ui/label.d.ts +58 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +29 -0
- package/dist/components/ui/live-region.d.ts +9 -0
- package/dist/components/ui/live-region.d.ts.map +1 -1
- package/dist/components/ui/live-region.js +10 -2
- package/dist/components/ui/mark.js +1 -1
- package/dist/components/ui/menubar.d.ts +197 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +109 -0
- package/dist/components/ui/meter.d.ts +121 -0
- package/dist/components/ui/meter.d.ts.map +1 -0
- package/dist/components/ui/meter.js +82 -0
- package/dist/components/ui/native-select.d.ts +72 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/native-select.js +55 -0
- package/dist/components/ui/navigation-menu.d.ts +186 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +94 -0
- package/dist/components/ui/number-field.d.ts +111 -0
- package/dist/components/ui/number-field.d.ts.map +1 -0
- package/dist/components/ui/number-field.js +84 -0
- package/dist/components/ui/one-time-code.d.ts +127 -0
- package/dist/components/ui/one-time-code.d.ts.map +1 -0
- package/dist/components/ui/one-time-code.js +57 -0
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/product-mark.d.ts +1 -1
- package/dist/components/ui/product-mark.js +1 -1
- package/dist/components/ui/product-switcher.d.ts +1 -1
- package/dist/components/ui/product-switcher.js +2 -2
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/prose.js +1 -1
- package/dist/components/ui/pulse-graph.js +1 -1
- package/dist/components/ui/pulse-series.js +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/resizable.d.ts +129 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +205 -0
- package/dist/components/ui/scroll-area.d.ts +97 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +68 -0
- package/dist/components/ui/search-dialog.d.ts +139 -0
- package/dist/components/ui/search-dialog.d.ts.map +1 -0
- package/dist/components/ui/search-dialog.js +178 -0
- package/dist/components/ui/section.d.ts +26 -0
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +32 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +103 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +58 -0
- package/dist/components/ui/sidebar.d.ts +228 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +172 -0
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.d.ts +79 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +79 -0
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table-sort.d.ts +97 -0
- package/dist/components/ui/table-sort.d.ts.map +1 -0
- package/dist/components/ui/table-sort.js +102 -0
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/timeline.d.ts +106 -0
- package/dist/components/ui/timeline.d.ts.map +1 -0
- package/dist/components/ui/timeline.js +111 -0
- package/dist/components/ui/toast.d.ts +219 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +270 -0
- package/dist/components/ui/toggle-group.d.ts +118 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +194 -0
- package/dist/components/ui/toggle.d.ts +73 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +44 -0
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tree.js +1 -1
- package/dist/components/ui/typography.js +1 -1
- package/dist/fonts/Inter-OFL.txt +93 -93
- package/dist/index.d.ts +72 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -60
- package/dist/lib/rank.d.ts +69 -0
- package/dist/lib/rank.d.ts.map +1 -0
- package/dist/lib/rank.js +77 -0
- package/dist/live/index.d.ts +22 -0
- package/dist/live/index.d.ts.map +1 -0
- package/dist/live/index.js +20 -0
- package/dist/live/run-stream-01/index.d.ts +3 -0
- package/dist/live/run-stream-01/index.d.ts.map +1 -0
- package/dist/live/run-stream-01/index.js +1 -0
- package/dist/live/run-stream-01/run-stream.d.ts +125 -0
- package/dist/live/run-stream-01/run-stream.d.ts.map +1 -0
- package/dist/live/run-stream-01/run-stream.js +111 -0
- package/dist/pages/auth-page/index.d.ts +15 -2
- package/dist/pages/auth-page/index.d.ts.map +1 -1
- package/dist/pages/auth-page/index.js +8 -4
- package/dist/pages/blog-post-page/index.js +5 -5
- package/dist/pages/dashboard-page/index.d.ts +4 -4
- package/dist/pages/dashboard-page/index.js +4 -4
- package/dist/pages/docs-shell/docs-shell.d.ts +37 -4
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +107 -16
- package/dist/pages/docs-shell/index.d.ts +2 -2
- package/dist/pages/docs-shell/index.js +1 -1
- package/dist/pages/index.d.ts +14 -14
- package/dist/pages/index.js +7 -7
- package/dist/pages/marketing-page/index.d.ts +6 -6
- package/dist/pages/marketing-page/index.js +5 -5
- package/dist/pages/not-found-page/index.js +4 -4
- package/dist/pages/settings-page/index.d.ts +3 -3
- package/dist/pages/settings-page/index.js +4 -4
- package/dist/provider/index.d.ts +4 -4
- package/dist/provider/index.js +2 -2
- package/dist/provider/provider.d.ts +1 -1
- package/dist/provider/provider.js +1 -1
- package/dist/provider/theme-script.d.ts +1 -1
- package/dist/provider/theme-script.js +1 -1
- package/dist/styles.css +689 -0
- package/package.json +9 -1
|
@@ -7,70 +7,108 @@
|
|
|
7
7
|
* header, title, description, content and footer here, and there is no
|
|
8
8
|
* `components/card-header` subpath.
|
|
9
9
|
*/
|
|
10
|
-
export { Button } from './ui/button';
|
|
11
|
-
export { CtaLink } from './ui/cta-link';
|
|
12
|
-
export { Badge } from './ui/badge';
|
|
13
|
-
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card';
|
|
14
|
-
export { Section, SectionHeading } from './ui/section';
|
|
15
|
-
export type { HeadingLevel } from './ui/section';
|
|
16
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb';
|
|
17
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './ui/pagination';
|
|
18
|
-
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './ui/field';
|
|
19
|
-
export { Input } from './ui/input';
|
|
20
|
-
export { Textarea } from './ui/textarea';
|
|
21
|
-
export { Alert, AlertTitle, AlertDescription } from './ui/alert';
|
|
22
|
-
export { Skeleton } from './ui/skeleton';
|
|
23
|
-
export { LiveRegion } from './ui/live-region';
|
|
24
|
-
export type { LiveRegionProps, LivePoliteness } from './ui/live-region';
|
|
25
|
-
export { Separator } from './ui/separator';
|
|
26
|
-
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table';
|
|
27
|
-
export {
|
|
28
|
-
export type {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export
|
|
32
|
-
export {
|
|
33
|
-
export
|
|
34
|
-
export {
|
|
35
|
-
export type {
|
|
36
|
-
export {
|
|
37
|
-
export type {
|
|
38
|
-
export {
|
|
39
|
-
export type {
|
|
40
|
-
export {
|
|
41
|
-
export type {
|
|
42
|
-
export {
|
|
43
|
-
export type {
|
|
44
|
-
export {
|
|
45
|
-
export type {
|
|
46
|
-
export {
|
|
47
|
-
export type {
|
|
48
|
-
export {
|
|
49
|
-
export type {
|
|
50
|
-
export {
|
|
51
|
-
export type {
|
|
52
|
-
export {
|
|
53
|
-
export type {
|
|
54
|
-
export {
|
|
55
|
-
export type {
|
|
56
|
-
export {
|
|
57
|
-
export type {
|
|
58
|
-
export {
|
|
59
|
-
export type {
|
|
60
|
-
export {
|
|
61
|
-
export type {
|
|
62
|
-
export {
|
|
63
|
-
export type {
|
|
64
|
-
export {
|
|
65
|
-
export type {
|
|
66
|
-
export {
|
|
67
|
-
export type {
|
|
68
|
-
export {
|
|
69
|
-
export type {
|
|
70
|
-
export {
|
|
71
|
-
export
|
|
72
|
-
export {
|
|
73
|
-
export
|
|
74
|
-
export {
|
|
75
|
-
export
|
|
10
|
+
export { Button } from './ui/button.js';
|
|
11
|
+
export { CtaLink } from './ui/cta-link.js';
|
|
12
|
+
export { Badge } from './ui/badge.js';
|
|
13
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card.js';
|
|
14
|
+
export { Section, SectionHeading } from './ui/section.js';
|
|
15
|
+
export type { HeadingLevel } from './ui/section.js';
|
|
16
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb.js';
|
|
17
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './ui/pagination.js';
|
|
18
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './ui/field.js';
|
|
19
|
+
export { Input } from './ui/input.js';
|
|
20
|
+
export { Textarea } from './ui/textarea.js';
|
|
21
|
+
export { Alert, AlertTitle, AlertDescription } from './ui/alert.js';
|
|
22
|
+
export { Skeleton } from './ui/skeleton.js';
|
|
23
|
+
export { LiveRegion } from './ui/live-region.js';
|
|
24
|
+
export type { LiveRegionProps, LivePoliteness } from './ui/live-region.js';
|
|
25
|
+
export { Separator } from './ui/separator.js';
|
|
26
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table.js';
|
|
27
|
+
export { Timeline } from './ui/timeline.js';
|
|
28
|
+
export type { TimelineProps, TimelineEntry, TimelineState } from './ui/timeline.js';
|
|
29
|
+
export { Diff } from './ui/diff.js';
|
|
30
|
+
export type { DiffProps, DiffLine, DiffLineKind, DiffLabels } from './ui/diff.js';
|
|
31
|
+
export { Heading, Text } from './ui/typography.js';
|
|
32
|
+
export type { HeadingElement } from './ui/typography.js';
|
|
33
|
+
export { Kbd } from './ui/kbd.js';
|
|
34
|
+
export { Mark } from './ui/mark.js';
|
|
35
|
+
export type { MatchProps, MatchRange } from './ui/mark.js';
|
|
36
|
+
export { Tree } from './ui/tree.js';
|
|
37
|
+
export type { TreeProps, TreeNode, TreeNodePage, TreeNodeGroup, TreeNodeDivider } from './ui/tree.js';
|
|
38
|
+
export { Diagram } from './ui/diagram.js';
|
|
39
|
+
export type { DiagramProps, DiagramNode, DiagramRelation } from './ui/diagram.js';
|
|
40
|
+
export { PulseGraph } from './ui/pulse-graph.js';
|
|
41
|
+
export type { PulseGraphProps, PulseNode, PulseRelation } from './ui/pulse-graph.js';
|
|
42
|
+
export { PulseSeries } from './ui/pulse-series.js';
|
|
43
|
+
export type { PulseSeriesProps, PulseBar } from './ui/pulse-series.js';
|
|
44
|
+
export { SignalField } from './ui/signal-field.js';
|
|
45
|
+
export type { SignalFieldProps } from './ui/signal-field.js';
|
|
46
|
+
export { ProductMark } from './ui/product-mark.js';
|
|
47
|
+
export type { ProductMarkProps, ProductMarkSize } from './ui/product-mark.js';
|
|
48
|
+
export { Prose } from './ui/prose.js';
|
|
49
|
+
export type { ProseProps, ProseSize } from './ui/prose.js';
|
|
50
|
+
export { FactList } from './ui/fact-list.js';
|
|
51
|
+
export type { FactListProps, Fact } from './ui/fact-list.js';
|
|
52
|
+
export { ProductSwitcher } from './ui/product-switcher.js';
|
|
53
|
+
export type { ProductSwitcherProps, SwitcherProduct } from './ui/product-switcher.js';
|
|
54
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './ui/select.js';
|
|
55
|
+
export type { SelectProps, SelectTriggerProps, SelectValueProps } from './ui/select.js';
|
|
56
|
+
export { Checkbox } from './ui/checkbox.js';
|
|
57
|
+
export type { CheckboxProps } from './ui/checkbox.js';
|
|
58
|
+
export { RadioGroup, RadioGroupItem } from './ui/radio-group.js';
|
|
59
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './ui/radio-group.js';
|
|
60
|
+
export { Switch } from './ui/switch.js';
|
|
61
|
+
export type { SwitchProps } from './ui/switch.js';
|
|
62
|
+
export { Slider } from './ui/slider.js';
|
|
63
|
+
export type { SliderProps } from './ui/slider.js';
|
|
64
|
+
export { Progress } from './ui/progress.js';
|
|
65
|
+
export type { ProgressProps } from './ui/progress.js';
|
|
66
|
+
export { Meter } from './ui/meter.js';
|
|
67
|
+
export type { MeterProps, MeterTone, MeterThreshold } from './ui/meter.js';
|
|
68
|
+
export { CommandPalette } from './ui/command-palette.js';
|
|
69
|
+
export type { CommandPaletteProps, CommandGroup, CommandItem } from './ui/command-palette.js';
|
|
70
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './ui/alert-dialog.js';
|
|
71
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible.js';
|
|
72
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuGroup, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, } from './ui/context-menu.js';
|
|
73
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from './ui/hover-card.js';
|
|
74
|
+
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarLinkItem, MenubarCheckboxItem, MenubarLabel, MenubarSeparator, MenubarGroup, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from './ui/menubar.js';
|
|
75
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuIcon, NavigationMenuPortal, NavigationMenuPositioner, NavigationMenuPopup, NavigationMenuViewport, NavigationMenuBackdrop, } from './ui/navigation-menu.js';
|
|
76
|
+
export { Resizable, ResizablePanel, ResizableHandle } from './ui/resizable.js';
|
|
77
|
+
export { Item } from './ui/item.js';
|
|
78
|
+
export { ChartFrame } from './ui/chart-frame.js';
|
|
79
|
+
export { Sidebar, SidebarHeader, SidebarNav, SidebarItem, SidebarFooter, SidebarToggle, } from './ui/sidebar.js';
|
|
80
|
+
export { ScrollArea } from './ui/scroll-area.js';
|
|
81
|
+
export { AspectRatio } from './ui/aspect-ratio.js';
|
|
82
|
+
export { Carousel } from './ui/carousel.js';
|
|
83
|
+
export { Toggle } from './ui/toggle.js';
|
|
84
|
+
export { ToggleGroup, ToggleGroupItem } from './ui/toggle-group.js';
|
|
85
|
+
export { Command } from './ui/command.js';
|
|
86
|
+
export { Spinner } from './ui/spinner.js';
|
|
87
|
+
export { Toast } from './ui/toast.js';
|
|
88
|
+
export { Combobox } from './ui/combobox.js';
|
|
89
|
+
export { Calendar } from './ui/calendar.js';
|
|
90
|
+
export { DatePicker } from './ui/date-picker.js';
|
|
91
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from './ui/input-group.js';
|
|
92
|
+
export { NumberField } from './ui/number-field.js';
|
|
93
|
+
export { OneTimeCode } from './ui/one-time-code.js';
|
|
94
|
+
export { Label } from './ui/label.js';
|
|
95
|
+
export { Form, FormControl, FormDescription, FormError, FormField, FormLabel, } from './ui/form.js';
|
|
96
|
+
export { NativeSelect } from './ui/native-select.js';
|
|
97
|
+
export { ButtonGroup } from './ui/button-group.js';
|
|
98
|
+
export { TableSort } from './ui/table-sort.js';
|
|
99
|
+
export { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose, } from './ui/sheet.js';
|
|
100
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './ui/tooltip.js';
|
|
101
|
+
export type { TooltipProps, TooltipTriggerProps, TooltipContentProps } from './ui/tooltip.js';
|
|
102
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './ui/accordion.js';
|
|
103
|
+
export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, } from './ui/accordion.js';
|
|
104
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './ui/dialog.js';
|
|
105
|
+
export type { DialogProps, DialogTriggerProps, DialogContentProps, DialogHeaderProps, DialogFooterProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, } from './ui/dialog.js';
|
|
106
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './ui/dropdown-menu.js';
|
|
107
|
+
export type { DropdownMenuProps, DropdownMenuTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuLabelProps, DropdownMenuSeparatorProps, DropdownMenuGroupProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, } from './ui/dropdown-menu.js';
|
|
108
|
+
export { Popover, PopoverTrigger, PopoverContent } from './ui/popover.js';
|
|
109
|
+
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps } from './ui/popover.js';
|
|
110
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs.js';
|
|
111
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps } from './ui/tabs.js';
|
|
112
|
+
export { Avatar, AvatarImage, AvatarFallback } from './ui/avatar.js';
|
|
113
|
+
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from './ui/avatar.js';
|
|
76
114
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EACL,IAAI,EACJ,UAAU,E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AE,mBAAmB,EAAE,MAAM,aAAa,CAAA"}
|
package/dist/components/index.js
CHANGED
|
@@ -7,43 +7,77 @@
|
|
|
7
7
|
* header, title, description, content and footer here, and there is no
|
|
8
8
|
* `components/card-header` subpath.
|
|
9
9
|
*/
|
|
10
|
-
export { Button } from './ui/button';
|
|
11
|
-
export { CtaLink } from './ui/cta-link';
|
|
12
|
-
export { Badge } from './ui/badge';
|
|
13
|
-
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card';
|
|
14
|
-
export { Section, SectionHeading } from './ui/section';
|
|
15
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb';
|
|
16
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './ui/pagination';
|
|
17
|
-
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './ui/field';
|
|
18
|
-
export { Input } from './ui/input';
|
|
19
|
-
export { Textarea } from './ui/textarea';
|
|
20
|
-
export { Alert, AlertTitle, AlertDescription } from './ui/alert';
|
|
21
|
-
export { Skeleton } from './ui/skeleton';
|
|
22
|
-
export { LiveRegion } from './ui/live-region';
|
|
23
|
-
export { Separator } from './ui/separator';
|
|
24
|
-
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table';
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
10
|
+
export { Button } from './ui/button.js';
|
|
11
|
+
export { CtaLink } from './ui/cta-link.js';
|
|
12
|
+
export { Badge } from './ui/badge.js';
|
|
13
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card.js';
|
|
14
|
+
export { Section, SectionHeading } from './ui/section.js';
|
|
15
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb.js';
|
|
16
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './ui/pagination.js';
|
|
17
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './ui/field.js';
|
|
18
|
+
export { Input } from './ui/input.js';
|
|
19
|
+
export { Textarea } from './ui/textarea.js';
|
|
20
|
+
export { Alert, AlertTitle, AlertDescription } from './ui/alert.js';
|
|
21
|
+
export { Skeleton } from './ui/skeleton.js';
|
|
22
|
+
export { LiveRegion } from './ui/live-region.js';
|
|
23
|
+
export { Separator } from './ui/separator.js';
|
|
24
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table.js';
|
|
25
|
+
export { Timeline } from './ui/timeline.js';
|
|
26
|
+
export { Diff } from './ui/diff.js';
|
|
27
|
+
export { Heading, Text } from './ui/typography.js';
|
|
28
|
+
export { Kbd } from './ui/kbd.js';
|
|
29
|
+
export { Mark } from './ui/mark.js';
|
|
30
|
+
export { Tree } from './ui/tree.js';
|
|
31
|
+
export { Diagram } from './ui/diagram.js';
|
|
32
|
+
export { PulseGraph } from './ui/pulse-graph.js';
|
|
33
|
+
export { PulseSeries } from './ui/pulse-series.js';
|
|
34
|
+
export { SignalField } from './ui/signal-field.js';
|
|
35
|
+
export { ProductMark } from './ui/product-mark.js';
|
|
36
|
+
export { Prose } from './ui/prose.js';
|
|
37
|
+
export { FactList } from './ui/fact-list.js';
|
|
38
|
+
export { ProductSwitcher } from './ui/product-switcher.js';
|
|
39
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './ui/select.js';
|
|
40
|
+
export { Checkbox } from './ui/checkbox.js';
|
|
41
|
+
export { RadioGroup, RadioGroupItem } from './ui/radio-group.js';
|
|
42
|
+
export { Switch } from './ui/switch.js';
|
|
43
|
+
export { Slider } from './ui/slider.js';
|
|
44
|
+
export { Progress } from './ui/progress.js';
|
|
45
|
+
export { Meter } from './ui/meter.js';
|
|
46
|
+
export { CommandPalette } from './ui/command-palette.js';
|
|
47
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './ui/alert-dialog.js';
|
|
48
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible.js';
|
|
49
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuLinkItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuGroup, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, } from './ui/context-menu.js';
|
|
50
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from './ui/hover-card.js';
|
|
51
|
+
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarLinkItem, MenubarCheckboxItem, MenubarLabel, MenubarSeparator, MenubarGroup, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from './ui/menubar.js';
|
|
52
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuIcon, NavigationMenuPortal, NavigationMenuPositioner, NavigationMenuPopup, NavigationMenuViewport, NavigationMenuBackdrop, } from './ui/navigation-menu.js';
|
|
53
|
+
export { Resizable, ResizablePanel, ResizableHandle } from './ui/resizable.js';
|
|
54
|
+
export { Item } from './ui/item.js';
|
|
55
|
+
export { ChartFrame } from './ui/chart-frame.js';
|
|
56
|
+
export { Sidebar, SidebarHeader, SidebarNav, SidebarItem, SidebarFooter, SidebarToggle, } from './ui/sidebar.js';
|
|
57
|
+
export { ScrollArea } from './ui/scroll-area.js';
|
|
58
|
+
export { AspectRatio } from './ui/aspect-ratio.js';
|
|
59
|
+
export { Carousel } from './ui/carousel.js';
|
|
60
|
+
export { Toggle } from './ui/toggle.js';
|
|
61
|
+
export { ToggleGroup, ToggleGroupItem } from './ui/toggle-group.js';
|
|
62
|
+
export { Command } from './ui/command.js';
|
|
63
|
+
export { Spinner } from './ui/spinner.js';
|
|
64
|
+
export { Toast } from './ui/toast.js';
|
|
65
|
+
export { Combobox } from './ui/combobox.js';
|
|
66
|
+
export { Calendar } from './ui/calendar.js';
|
|
67
|
+
export { DatePicker } from './ui/date-picker.js';
|
|
68
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from './ui/input-group.js';
|
|
69
|
+
export { NumberField } from './ui/number-field.js';
|
|
70
|
+
export { OneTimeCode } from './ui/one-time-code.js';
|
|
71
|
+
export { Label } from './ui/label.js';
|
|
72
|
+
export { Form, FormControl, FormDescription, FormError, FormField, FormLabel, } from './ui/form.js';
|
|
73
|
+
export { NativeSelect } from './ui/native-select.js';
|
|
74
|
+
export { ButtonGroup } from './ui/button-group.js';
|
|
75
|
+
export { TableSort } from './ui/table-sort.js';
|
|
76
|
+
export { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose, } from './ui/sheet.js';
|
|
77
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './ui/tooltip.js';
|
|
78
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './ui/accordion.js';
|
|
79
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './ui/dialog.js';
|
|
80
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './ui/dropdown-menu.js';
|
|
81
|
+
export { Popover, PopoverTrigger, PopoverContent } from './ui/popover.js';
|
|
82
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs.js';
|
|
83
|
+
export { Avatar, AvatarImage, AvatarFallback } from './ui/avatar.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
4
4
|
import { ChevronDownIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from '../../lib/utils';
|
|
5
|
+
import { cn } from '../../lib/utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* A stack of headers that each reveal a panel.
|
|
8
8
|
*
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the AlertDialog root forwards to Base UI.
|
|
4
|
+
*
|
|
5
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
6
|
+
* crosses the package seam (ticket 07 section 6).
|
|
7
|
+
*
|
|
8
|
+
* `modal` and `disablePointerDismissal` are absent on purpose, and their absence
|
|
9
|
+
* is the Component rather than an oversight. Base UI hard-wires both to true for
|
|
10
|
+
* an alert dialog and omits them from the root's prop type, so there is no value
|
|
11
|
+
* a caller can pass that turns a must-answer decision into something a stray
|
|
12
|
+
* click can wave through. A caller who wants a dismissible surface is asking for
|
|
13
|
+
* a Dialog, and the type is how they are told so.
|
|
14
|
+
*/
|
|
15
|
+
export interface AlertDialogProps {
|
|
16
|
+
/** The controlled open state. */
|
|
17
|
+
open?: boolean;
|
|
18
|
+
/** The initially open state, for an uncontrolled alert dialog. */
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
/** Called when the open state changes. */
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
/** The trigger and content. */
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/** The props AlertDialogTrigger forwards to Base UI. */
|
|
26
|
+
export interface AlertDialogTriggerProps extends ComponentProps<'button'> {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The props AlertDialogContent forwards to Base UI.
|
|
30
|
+
*
|
|
31
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
32
|
+
* crosses the package seam (ticket 07 section 6).
|
|
33
|
+
*/
|
|
34
|
+
export interface AlertDialogContentProps extends ComponentProps<'div'> {
|
|
35
|
+
}
|
|
36
|
+
/** The props AlertDialogHeader forwards to a plain container. */
|
|
37
|
+
export interface AlertDialogHeaderProps extends ComponentProps<'div'> {
|
|
38
|
+
}
|
|
39
|
+
/** The props AlertDialogFooter forwards to a plain container. */
|
|
40
|
+
export interface AlertDialogFooterProps extends ComponentProps<'div'> {
|
|
41
|
+
}
|
|
42
|
+
/** The props AlertDialogTitle forwards to Base UI. */
|
|
43
|
+
export interface AlertDialogTitleProps extends ComponentProps<'h2'> {
|
|
44
|
+
}
|
|
45
|
+
/** The props AlertDialogDescription forwards to Base UI. */
|
|
46
|
+
export interface AlertDialogDescriptionProps extends ComponentProps<'p'> {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The action, which is the one button that must exist.
|
|
50
|
+
*
|
|
51
|
+
* It is styled rather than left bare because a caller who forgets to style it
|
|
52
|
+
* ships the one control a reader is about to press as unlabelled text, and the
|
|
53
|
+
* default is `destructive` because an alert dialog whose action is not
|
|
54
|
+
* destructive had no reason to interrupt in the first place. Pass
|
|
55
|
+
* `variant="default"` and reconsider whether the decision needed to interrupt.
|
|
56
|
+
*/
|
|
57
|
+
export interface AlertDialogActionProps extends ComponentProps<'button'> {
|
|
58
|
+
/** How the action reads against the decision it confirms. @defaultValue destructive */
|
|
59
|
+
variant?: 'default' | 'destructive';
|
|
60
|
+
}
|
|
61
|
+
/** The props AlertDialogCancel forwards to Base UI. */
|
|
62
|
+
export interface AlertDialogCancelProps extends ComponentProps<'button'> {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A dialog that interrupts, and will not let the reader out of it by accident.
|
|
66
|
+
*
|
|
67
|
+
* **The difference from a Dialog is the whole Component.** A Dialog closes on an
|
|
68
|
+
* outside press, because a reader who clicks away from a task has said "not now"
|
|
69
|
+
* and the task is still there when they come back. An alert dialog exists for a
|
|
70
|
+
* decision that a mis-click would answer: deleting a project, discarding a draft,
|
|
71
|
+
* ending a session. An outside press there is a stray gesture that silently
|
|
72
|
+
* chooses for the reader, so Base UI hard-wires dismissal off and this Component
|
|
73
|
+
* does not expose a prop that could turn it back on. Escape still closes it,
|
|
74
|
+
* because a keyboard reader must always have a way out, and a reader who
|
|
75
|
+
* presses Escape has said the same thing deliberately.
|
|
76
|
+
*
|
|
77
|
+
* **The two buttons are the only other way out, and the action is required.**
|
|
78
|
+
* There is no dismiss control in the corner: an X on a surface whose subject is a
|
|
79
|
+
* decision is a third answer to a question the reader was told has two. Give it
|
|
80
|
+
* an `AlertDialogCancel` and an `AlertDialogAction`, always in that order, with
|
|
81
|
+
* the action last so it is the one a keyboard reader lands on second and the
|
|
82
|
+
* destructive one styled as such.
|
|
83
|
+
*
|
|
84
|
+
* **Always give it an `AlertDialogTitle`.** It names the dialog for every
|
|
85
|
+
* reader, and it is what the surface is announced as. Use a Dialog for a short
|
|
86
|
+
* task; use an AlertDialog only where the answer is not safely deferrable.
|
|
87
|
+
*/
|
|
88
|
+
declare function AlertDialog({ ...props }: AlertDialogProps): import("react").JSX.Element;
|
|
89
|
+
/** The element that opens the alert dialog. */
|
|
90
|
+
declare function AlertDialogTrigger({ className, ...props }: AlertDialogTriggerProps): import("react").JSX.Element;
|
|
91
|
+
/** The alert dialog panel, its backdrop and its portal. */
|
|
92
|
+
declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): import("react").JSX.Element;
|
|
93
|
+
/** The alert dialog's heading area, above the body. */
|
|
94
|
+
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): import("react").JSX.Element;
|
|
95
|
+
/** The alert dialog's two buttons, side by side. */
|
|
96
|
+
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): import("react").JSX.Element;
|
|
97
|
+
/** The alert dialog's heading. It names the dialog for assistive technology. */
|
|
98
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): import("react").JSX.Element;
|
|
99
|
+
/**
|
|
100
|
+
* The consequence, in the reader's words, before the buttons.
|
|
101
|
+
*
|
|
102
|
+
* This is where the answerable question goes: what happens, to what, and whether
|
|
103
|
+
* it can be taken back. A description that only restates the title gives the
|
|
104
|
+
* reader a decision with nothing to decide on.
|
|
105
|
+
*/
|
|
106
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): import("react").JSX.Element;
|
|
107
|
+
/**
|
|
108
|
+
* The button that carries out the decision, and closes the dialog with it.
|
|
109
|
+
*
|
|
110
|
+
* It is styled rather than left bare because a caller who forgets to style it
|
|
111
|
+
* ships the one control a reader is about to press as unlabelled text, and the
|
|
112
|
+
* default is `destructive` because an alert dialog whose action is not
|
|
113
|
+
* destructive had no reason to interrupt in the first place.
|
|
114
|
+
*/
|
|
115
|
+
declare function AlertDialogAction({ className, variant, ...props }: AlertDialogActionProps): import("react").JSX.Element;
|
|
116
|
+
/** The button that leaves the decision unmade, and closes the dialog. */
|
|
117
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): import("react").JSX.Element;
|
|
118
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
119
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;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAElD;AAED,+CAA+C;AAC/C,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAc3E;AAED,2DAA2D;AAC3D,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAuB3E;AAED,uDAAuD;AACvD,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAQzE;AAED,oDAAoD;AACpD,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAQzE;AAED,gFAAgF;AAChF,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAQvE;AAED;;;;;;GAMG;AACH,iBAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,2BAA2B,+BAQnF;AAED;;;;;;;GAOG;AACH,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAuB,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAgBlG;AAED,yEAAyE;AACzE,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAczE;AAED,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
4
|
+
import { cn } from '../../lib/utils.js';
|
|
5
|
+
/** The action's own button treatment, because the one button that must exist is this one. */
|
|
6
|
+
const ACTION_VARIANTS = {
|
|
7
|
+
default: 'bg-background text-foreground hover:bg-accent hover:text-accent-foreground',
|
|
8
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A dialog that interrupts, and will not let the reader out of it by accident.
|
|
12
|
+
*
|
|
13
|
+
* **The difference from a Dialog is the whole Component.** A Dialog closes on an
|
|
14
|
+
* outside press, because a reader who clicks away from a task has said "not now"
|
|
15
|
+
* and the task is still there when they come back. An alert dialog exists for a
|
|
16
|
+
* decision that a mis-click would answer: deleting a project, discarding a draft,
|
|
17
|
+
* ending a session. An outside press there is a stray gesture that silently
|
|
18
|
+
* chooses for the reader, so Base UI hard-wires dismissal off and this Component
|
|
19
|
+
* does not expose a prop that could turn it back on. Escape still closes it,
|
|
20
|
+
* because a keyboard reader must always have a way out, and a reader who
|
|
21
|
+
* presses Escape has said the same thing deliberately.
|
|
22
|
+
*
|
|
23
|
+
* **The two buttons are the only other way out, and the action is required.**
|
|
24
|
+
* There is no dismiss control in the corner: an X on a surface whose subject is a
|
|
25
|
+
* decision is a third answer to a question the reader was told has two. Give it
|
|
26
|
+
* an `AlertDialogCancel` and an `AlertDialogAction`, always in that order, with
|
|
27
|
+
* the action last so it is the one a keyboard reader lands on second and the
|
|
28
|
+
* destructive one styled as such.
|
|
29
|
+
*
|
|
30
|
+
* **Always give it an `AlertDialogTitle`.** It names the dialog for every
|
|
31
|
+
* reader, and it is what the surface is announced as. Use a Dialog for a short
|
|
32
|
+
* task; use an AlertDialog only where the answer is not safely deferrable.
|
|
33
|
+
*/
|
|
34
|
+
function AlertDialog({ ...props }) {
|
|
35
|
+
return _jsx(AlertDialogPrimitive.Root, { ...props });
|
|
36
|
+
}
|
|
37
|
+
/** The element that opens the alert dialog. */
|
|
38
|
+
function AlertDialogTrigger({ className, ...props }) {
|
|
39
|
+
return (_jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", className: cn('bg-background shadow-xs inline-flex h-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium outline-none', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'disabled:pointer-events-none disabled:opacity-50', className), ...props }));
|
|
40
|
+
}
|
|
41
|
+
/** The alert dialog panel, its backdrop and its portal. */
|
|
42
|
+
function AlertDialogContent({ className, ...props }) {
|
|
43
|
+
return (_jsxs(AlertDialogPrimitive.Portal, { children: [_jsx(AlertDialogPrimitive.Backdrop, { "data-slot": "alert-dialog-backdrop", className: "bg-background/80 fixed inset-0 z-50 backdrop-blur-sm transition-opacity duration-base ease-out data-[starting-style]:opacity-0 data-[ending-style]:opacity-0" }), _jsx(AlertDialogPrimitive.Viewport, { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: _jsx(AlertDialogPrimitive.Popup, { "data-slot": "alert-dialog-content", className: cn('bg-background shadow-md relative grid w-full max-w-md gap-4 rounded-xl border p-6 outline-none', 'transition-[opacity,transform] duration-base ease-out', 'focus-visible:ring-ring focus-visible:ring-[3px]', 'data-[starting-style]:scale-95 data-[starting-style]:opacity-0', 'data-[ending-style]:scale-95 data-[ending-style]:opacity-0', className), ...props }) })] }));
|
|
44
|
+
}
|
|
45
|
+
/** The alert dialog's heading area, above the body. */
|
|
46
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
47
|
+
return (_jsx("div", { "data-slot": "alert-dialog-header", className: cn('flex flex-col gap-2 text-center sm:text-left', className), ...props }));
|
|
48
|
+
}
|
|
49
|
+
/** The alert dialog's two buttons, side by side. */
|
|
50
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
51
|
+
return (_jsx("div", { "data-slot": "alert-dialog-footer", className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className), ...props }));
|
|
52
|
+
}
|
|
53
|
+
/** The alert dialog's heading. It names the dialog for assistive technology. */
|
|
54
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
55
|
+
return (_jsx(AlertDialogPrimitive.Title, { "data-slot": "alert-dialog-title", className: cn('text-lg leading-none font-semibold tracking-tight', className), ...props }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The consequence, in the reader's words, before the buttons.
|
|
59
|
+
*
|
|
60
|
+
* This is where the answerable question goes: what happens, to what, and whether
|
|
61
|
+
* it can be taken back. A description that only restates the title gives the
|
|
62
|
+
* reader a decision with nothing to decide on.
|
|
63
|
+
*/
|
|
64
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
65
|
+
return (_jsx(AlertDialogPrimitive.Description, { "data-slot": "alert-dialog-description", className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The button that carries out the decision, and closes the dialog with it.
|
|
69
|
+
*
|
|
70
|
+
* It is styled rather than left bare because a caller who forgets to style it
|
|
71
|
+
* ships the one control a reader is about to press as unlabelled text, and the
|
|
72
|
+
* default is `destructive` because an alert dialog whose action is not
|
|
73
|
+
* destructive had no reason to interrupt in the first place.
|
|
74
|
+
*/
|
|
75
|
+
function AlertDialogAction({ className, variant = 'destructive', ...props }) {
|
|
76
|
+
return (_jsx(AlertDialogPrimitive.Close, { "data-slot": "alert-dialog-action", "data-variant": variant, className: cn('inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium whitespace-nowrap outline-none', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'disabled:pointer-events-none disabled:opacity-50', ACTION_VARIANTS[variant], className), ...props }));
|
|
77
|
+
}
|
|
78
|
+
/** The button that leaves the decision unmade, and closes the dialog. */
|
|
79
|
+
function AlertDialogCancel({ className, ...props }) {
|
|
80
|
+
return (_jsx(AlertDialogPrimitive.Close, { "data-slot": "alert-dialog-cancel", className: cn('bg-background inline-flex h-9 items-center justify-center gap-2 rounded-md border px-4 text-sm font-medium whitespace-nowrap outline-none', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'disabled:pointer-events-none disabled:opacity-50', className), ...props }));
|
|
81
|
+
}
|
|
82
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { cn } from '../../lib/utils';
|
|
3
|
+
import { cn } from '../../lib/utils.js';
|
|
4
4
|
const alertVariants = cva('relative grid w-full items-start gap-x-3 gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] [&>svg]:size-4 [&>svg]:translate-y-0.5', {
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|