@nanisoft/prism-ui 0.5.0 → 0.5.1
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 -0
- package/README.md +81 -0
- package/THIRD-PARTY-NOTICES.md +48 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/blocks/app-shell-01/app-shell.d.ts +38 -0
- package/dist/blocks/app-shell-01/app-shell.d.ts.map +1 -0
- package/dist/blocks/app-shell-01/app-shell.js +27 -0
- package/dist/blocks/app-shell-01/index.d.ts +3 -0
- package/dist/blocks/app-shell-01/index.d.ts.map +1 -0
- package/dist/blocks/app-shell-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +52 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -0
- package/dist/blocks/auth-form-01/auth-form.js +23 -0
- package/dist/blocks/auth-form-01/index.d.ts +3 -0
- package/dist/blocks/auth-form-01/index.d.ts.map +1 -0
- package/dist/blocks/auth-form-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +23 -0
- package/dist/blocks/cta-01/cta.d.ts.map +1 -0
- package/dist/blocks/cta-01/cta.js +24 -0
- package/dist/blocks/cta-01/index.d.ts +2 -0
- package/dist/blocks/cta-01/index.d.ts.map +1 -0
- package/dist/blocks/cta-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +102 -0
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -0
- package/dist/blocks/data-table-01/data-table.js +116 -0
- package/dist/blocks/data-table-01/index.d.ts +3 -0
- package/dist/blocks/data-table-01/index.d.ts.map +1 -0
- package/dist/blocks/data-table-01/index.js +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts +27 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts.map +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.js +14 -0
- package/dist/blocks/feature-grid-01/index.d.ts +2 -0
- package/dist/blocks/feature-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-grid-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +30 -0
- package/dist/blocks/hero-01/hero.d.ts.map +1 -0
- package/dist/blocks/hero-01/hero.js +12 -0
- package/dist/blocks/hero-01/index.d.ts +2 -0
- package/dist/blocks/hero-01/index.d.ts.map +1 -0
- package/dist/blocks/hero-01/index.js +1 -0
- package/dist/blocks/index.d.ts +18 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +17 -0
- package/dist/blocks/page-header-01/index.d.ts +3 -0
- package/dist/blocks/page-header-01/index.d.ts.map +1 -0
- package/dist/blocks/page-header-01/index.js +1 -0
- package/dist/blocks/page-header-01/page-header.d.ts +48 -0
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -0
- package/dist/blocks/page-header-01/page-header.js +27 -0
- package/dist/blocks/pricing-01/index.d.ts +2 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-01/index.js +1 -0
- package/dist/blocks/pricing-01/pricing.d.ts +35 -0
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -0
- package/dist/blocks/pricing-01/pricing.js +20 -0
- package/dist/blocks/settings-panel-01/index.d.ts +3 -0
- package/dist/blocks/settings-panel-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-panel-01/index.js +1 -0
- package/dist/blocks/settings-panel-01/settings-panel.d.ts +71 -0
- package/dist/blocks/settings-panel-01/settings-panel.d.ts.map +1 -0
- package/dist/blocks/settings-panel-01/settings-panel.js +38 -0
- package/dist/blocks/stats-01/index.d.ts +2 -0
- package/dist/blocks/stats-01/index.d.ts.map +1 -0
- package/dist/blocks/stats-01/index.js +1 -0
- package/dist/blocks/stats-01/stats.d.ts +28 -0
- package/dist/blocks/stats-01/stats.d.ts.map +1 -0
- package/dist/blocks/stats-01/stats.js +27 -0
- package/dist/catalog.d.ts +28 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +502 -0
- package/dist/components/index.d.ts +53 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +37 -0
- package/dist/components/ui/accordion.d.ts +65 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +30 -0
- package/dist/components/ui/alert.d.ts +19 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +31 -0
- package/dist/components/ui/avatar.d.ts +47 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +30 -0
- package/dist/components/ui/badge.d.ts +14 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/breadcrumb.d.ts +35 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +48 -0
- package/dist/components/ui/button.d.ts +16 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +63 -0
- package/dist/components/ui/card.d.ts +16 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +28 -0
- package/dist/components/ui/checkbox.d.ts +43 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +18 -0
- package/dist/components/ui/dialog.d.ts +81 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +60 -0
- package/dist/components/ui/dropdown-menu.d.ts +189 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +67 -0
- package/dist/components/ui/field.d.ts +36 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +46 -0
- package/dist/components/ui/input.d.ts +12 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +14 -0
- package/dist/components/ui/kbd.d.ts +10 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +12 -0
- package/dist/components/ui/pagination.d.ts +40 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +49 -0
- package/dist/components/ui/popover.d.ts +56 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +25 -0
- package/dist/components/ui/progress.d.ts +38 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +17 -0
- package/dist/components/ui/radio-group.d.ts +66 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +30 -0
- package/dist/components/ui/section.d.ts +37 -0
- package/dist/components/ui/section.d.ts.map +1 -0
- package/dist/components/ui/section.js +12 -0
- package/dist/components/ui/select.d.ts +124 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +47 -0
- package/dist/components/ui/separator.d.ts +16 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +15 -0
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/slider.d.ts +43 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +17 -0
- package/dist/components/ui/switch.d.ts +42 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +16 -0
- package/dist/components/ui/table.d.ts +27 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +43 -0
- package/dist/components/ui/tabs.d.ts +66 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +29 -0
- package/dist/components/ui/textarea.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +13 -0
- package/dist/components/ui/tooltip.d.ts +63 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +25 -0
- package/dist/components/ui/typography.d.ts +32 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +51 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- package/dist/pages/auth-page/index.d.ts +36 -0
- package/dist/pages/auth-page/index.d.ts.map +1 -0
- package/dist/pages/auth-page/index.js +23 -0
- package/dist/pages/dashboard-page/index.d.ts +36 -0
- package/dist/pages/dashboard-page/index.d.ts.map +1 -0
- package/dist/pages/dashboard-page/index.js +24 -0
- package/dist/pages/index.d.ts +17 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/pages/index.js +12 -0
- package/dist/pages/marketing-page/index.d.ts +43 -0
- package/dist/pages/marketing-page/index.d.ts.map +1 -0
- package/dist/pages/marketing-page/index.js +25 -0
- package/dist/pages/settings-page/index.d.ts +47 -0
- package/dist/pages/settings-page/index.d.ts.map +1 -0
- package/dist/pages/settings-page/index.js +24 -0
- package/dist/provider/index.d.ts +12 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +9 -0
- package/dist/provider/provider.d.ts +37 -0
- package/dist/provider/provider.d.ts.map +1 -0
- package/dist/provider/provider.js +87 -0
- package/dist/provider/theme-script.d.ts +17 -0
- package/dist/provider/theme-script.d.ts.map +1 -0
- package/dist/provider/theme-script.js +28 -0
- package/dist/styles.css +2413 -0
- package/dist/theming/index.d.ts +43 -0
- package/dist/theming/index.d.ts.map +1 -0
- package/dist/theming/index.js +60 -0
- package/package.json +79 -18
- package/components.json +0 -21
- package/public/r/badge.json +0 -26
- package/public/r/button.json +0 -26
- package/public/r/card.json +0 -25
- package/public/r/cta-01.json +0 -44
- package/public/r/feature-grid-01.json +0 -44
- package/public/r/hero-01.json +0 -44
- package/public/r/pricing-01.json +0 -46
- package/public/r/registry.json +0 -294
- package/public/r/section.json +0 -25
- package/public/r/stats-01.json +0 -44
- package/registry.json +0 -294
- package/src/components/ds/blocks/cta-01/block.json +0 -8
- package/src/components/ds/blocks/cta-01/cta.tsx +0 -62
- package/src/components/ds/blocks/cta-01/index.tsx +0 -1
- package/src/components/ds/blocks/feature-grid-01/block.json +0 -8
- package/src/components/ds/blocks/feature-grid-01/feature-grid.tsx +0 -69
- package/src/components/ds/blocks/feature-grid-01/index.tsx +0 -1
- package/src/components/ds/blocks/hero-01/block.json +0 -8
- package/src/components/ds/blocks/hero-01/hero.tsx +0 -85
- package/src/components/ds/blocks/hero-01/index.tsx +0 -1
- package/src/components/ds/blocks/pricing-01/block.json +0 -8
- package/src/components/ds/blocks/pricing-01/index.tsx +0 -1
- package/src/components/ds/blocks/pricing-01/pricing.tsx +0 -122
- package/src/components/ds/blocks/section.meta.json +0 -6
- package/src/components/ds/blocks/section.tsx +0 -86
- package/src/components/ds/blocks/stats-01/block.json +0 -8
- package/src/components/ds/blocks/stats-01/index.tsx +0 -1
- package/src/components/ds/blocks/stats-01/stats.tsx +0 -92
- package/src/components/ui/badge.tsx +0 -37
- package/src/components/ui/button.tsx +0 -77
- package/src/components/ui/card.tsx +0 -65
- package/src/lib/utils.ts +0 -6
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The checked Prism catalogue: the single list of Components, Blocks and Pages.
|
|
3
|
+
*
|
|
4
|
+
* This is the shape fixed by tickets 09 and 19, not the finished 28-item roster.
|
|
5
|
+
* The v1 build grows it one authored entry at a time; `source` and `exports` are
|
|
6
|
+
* the fields the build checks against disk and the emitted declarations, never
|
|
7
|
+
* the reverse, so the internal shadcn registry stays derived rather than
|
|
8
|
+
* authoritative. Tooling only: a consumer's runtime UI must not import this.
|
|
9
|
+
*/
|
|
10
|
+
export const CATALOG_KINDS = ['component', 'block', 'page'];
|
|
11
|
+
export const COMPONENT_CATEGORIES = [
|
|
12
|
+
'Call to action',
|
|
13
|
+
'Forms and inputs',
|
|
14
|
+
'Feedback',
|
|
15
|
+
'Layout',
|
|
16
|
+
'Data display',
|
|
17
|
+
'Typography',
|
|
18
|
+
'Miscellaneous',
|
|
19
|
+
];
|
|
20
|
+
export const catalog = [
|
|
21
|
+
{
|
|
22
|
+
name: 'Button',
|
|
23
|
+
slug: 'button',
|
|
24
|
+
kind: 'component',
|
|
25
|
+
category: 'Call to action',
|
|
26
|
+
description: 'The action control for commands, links and loading states.',
|
|
27
|
+
source: 'src/components/ui/button.tsx',
|
|
28
|
+
exports: ['Button'],
|
|
29
|
+
status: 'stable',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Badge',
|
|
33
|
+
slug: 'badge',
|
|
34
|
+
kind: 'component',
|
|
35
|
+
category: 'Data display',
|
|
36
|
+
description: 'A compact status or category label.',
|
|
37
|
+
source: 'src/components/ui/badge.tsx',
|
|
38
|
+
exports: ['Badge'],
|
|
39
|
+
status: 'stable',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Card',
|
|
43
|
+
slug: 'card',
|
|
44
|
+
kind: 'component',
|
|
45
|
+
category: 'Data display',
|
|
46
|
+
description: 'A bordered surface for a small group of related content.',
|
|
47
|
+
source: 'src/components/ui/card.tsx',
|
|
48
|
+
exports: ['Card', 'CardHeader', 'CardTitle', 'CardDescription', 'CardContent', 'CardFooter'],
|
|
49
|
+
status: 'stable',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Section',
|
|
53
|
+
slug: 'section',
|
|
54
|
+
kind: 'component',
|
|
55
|
+
category: 'Layout',
|
|
56
|
+
description: 'The container and heading primitives every Block composes for rhythm.',
|
|
57
|
+
source: 'src/components/ui/section.tsx',
|
|
58
|
+
exports: ['Section', 'SectionHeading'],
|
|
59
|
+
status: 'stable',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Breadcrumb',
|
|
63
|
+
slug: 'breadcrumb',
|
|
64
|
+
kind: 'component',
|
|
65
|
+
category: 'Call to action',
|
|
66
|
+
description: 'The trail of ancestor links that shows where the current page sits.',
|
|
67
|
+
source: 'src/components/ui/breadcrumb.tsx',
|
|
68
|
+
exports: [
|
|
69
|
+
'Breadcrumb',
|
|
70
|
+
'BreadcrumbList',
|
|
71
|
+
'BreadcrumbItem',
|
|
72
|
+
'BreadcrumbLink',
|
|
73
|
+
'BreadcrumbPage',
|
|
74
|
+
'BreadcrumbSeparator',
|
|
75
|
+
],
|
|
76
|
+
status: 'stable',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Pagination',
|
|
80
|
+
slug: 'pagination',
|
|
81
|
+
kind: 'component',
|
|
82
|
+
category: 'Call to action',
|
|
83
|
+
description: 'The control that moves between pages of a paged collection.',
|
|
84
|
+
source: 'src/components/ui/pagination.tsx',
|
|
85
|
+
exports: [
|
|
86
|
+
'Pagination',
|
|
87
|
+
'PaginationContent',
|
|
88
|
+
'PaginationItem',
|
|
89
|
+
'PaginationLink',
|
|
90
|
+
'PaginationPrevious',
|
|
91
|
+
'PaginationNext',
|
|
92
|
+
'PaginationEllipsis',
|
|
93
|
+
],
|
|
94
|
+
status: 'stable',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'Field',
|
|
98
|
+
slug: 'field',
|
|
99
|
+
kind: 'component',
|
|
100
|
+
category: 'Forms and inputs',
|
|
101
|
+
description: 'The labelled wrapper that pairs a form control with its label, description and error.',
|
|
102
|
+
source: 'src/components/ui/field.tsx',
|
|
103
|
+
exports: ['Field', 'FieldLabel', 'FieldDescription', 'FieldError', 'FieldGroup'],
|
|
104
|
+
status: 'stable',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Input',
|
|
108
|
+
slug: 'input',
|
|
109
|
+
kind: 'component',
|
|
110
|
+
category: 'Forms and inputs',
|
|
111
|
+
description: 'The single-line text control for a form.',
|
|
112
|
+
source: 'src/components/ui/input.tsx',
|
|
113
|
+
exports: ['Input'],
|
|
114
|
+
status: 'stable',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'Textarea',
|
|
118
|
+
slug: 'textarea',
|
|
119
|
+
kind: 'component',
|
|
120
|
+
category: 'Forms and inputs',
|
|
121
|
+
description: 'The multi-line text control for a form.',
|
|
122
|
+
source: 'src/components/ui/textarea.tsx',
|
|
123
|
+
exports: ['Textarea'],
|
|
124
|
+
status: 'stable',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'Alert',
|
|
128
|
+
slug: 'alert',
|
|
129
|
+
kind: 'component',
|
|
130
|
+
category: 'Feedback',
|
|
131
|
+
description: 'A static callout that carries an important message to the reader.',
|
|
132
|
+
source: 'src/components/ui/alert.tsx',
|
|
133
|
+
exports: ['Alert', 'AlertTitle', 'AlertDescription'],
|
|
134
|
+
status: 'stable',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'Skeleton',
|
|
138
|
+
slug: 'skeleton',
|
|
139
|
+
kind: 'component',
|
|
140
|
+
category: 'Feedback',
|
|
141
|
+
description: 'A placeholder surface that mirrors the shape of content while it loads.',
|
|
142
|
+
source: 'src/components/ui/skeleton.tsx',
|
|
143
|
+
exports: ['Skeleton'],
|
|
144
|
+
status: 'stable',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'Separator',
|
|
148
|
+
slug: 'separator',
|
|
149
|
+
kind: 'component',
|
|
150
|
+
category: 'Layout',
|
|
151
|
+
description: 'A hairline rule that divides content, horizontally or vertically.',
|
|
152
|
+
source: 'src/components/ui/separator.tsx',
|
|
153
|
+
exports: ['Separator'],
|
|
154
|
+
status: 'stable',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Table',
|
|
158
|
+
slug: 'table',
|
|
159
|
+
kind: 'component',
|
|
160
|
+
category: 'Data display',
|
|
161
|
+
description: 'The semantic table components for rows, columns and captions.',
|
|
162
|
+
source: 'src/components/ui/table.tsx',
|
|
163
|
+
exports: [
|
|
164
|
+
'Table',
|
|
165
|
+
'TableHeader',
|
|
166
|
+
'TableBody',
|
|
167
|
+
'TableFooter',
|
|
168
|
+
'TableRow',
|
|
169
|
+
'TableHead',
|
|
170
|
+
'TableCell',
|
|
171
|
+
'TableCaption',
|
|
172
|
+
],
|
|
173
|
+
status: 'stable',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'Typography',
|
|
177
|
+
slug: 'typography',
|
|
178
|
+
kind: 'component',
|
|
179
|
+
category: 'Typography',
|
|
180
|
+
description: 'The text and heading components that apply the type scale.',
|
|
181
|
+
source: 'src/components/ui/typography.tsx',
|
|
182
|
+
exports: ['Text', 'Heading'],
|
|
183
|
+
status: 'stable',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'Kbd',
|
|
187
|
+
slug: 'kbd',
|
|
188
|
+
kind: 'component',
|
|
189
|
+
category: 'Typography',
|
|
190
|
+
description: 'The inline label for a keyboard key or shortcut.',
|
|
191
|
+
source: 'src/components/ui/kbd.tsx',
|
|
192
|
+
exports: ['Kbd'],
|
|
193
|
+
status: 'stable',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'Select',
|
|
197
|
+
slug: 'select',
|
|
198
|
+
kind: 'component',
|
|
199
|
+
category: 'Forms and inputs',
|
|
200
|
+
description: 'The control that chooses one option from a list that opens on demand.',
|
|
201
|
+
source: 'src/components/ui/select.tsx',
|
|
202
|
+
exports: [
|
|
203
|
+
'Select',
|
|
204
|
+
'SelectTrigger',
|
|
205
|
+
'SelectValue',
|
|
206
|
+
'SelectContent',
|
|
207
|
+
'SelectItem',
|
|
208
|
+
'SelectGroup',
|
|
209
|
+
'SelectLabel',
|
|
210
|
+
'SelectSeparator',
|
|
211
|
+
],
|
|
212
|
+
status: 'stable',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'Checkbox',
|
|
216
|
+
slug: 'checkbox',
|
|
217
|
+
kind: 'component',
|
|
218
|
+
category: 'Forms and inputs',
|
|
219
|
+
description: 'The control for an independent yes-or-no choice, with an optional mixed state.',
|
|
220
|
+
source: 'src/components/ui/checkbox.tsx',
|
|
221
|
+
exports: ['Checkbox'],
|
|
222
|
+
status: 'stable',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'RadioGroup',
|
|
226
|
+
slug: 'radio-group',
|
|
227
|
+
kind: 'component',
|
|
228
|
+
category: 'Forms and inputs',
|
|
229
|
+
description: 'The control that chooses exactly one option from a small visible set.',
|
|
230
|
+
source: 'src/components/ui/radio-group.tsx',
|
|
231
|
+
exports: ['RadioGroup', 'RadioGroupItem'],
|
|
232
|
+
status: 'stable',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'Switch',
|
|
236
|
+
slug: 'switch',
|
|
237
|
+
kind: 'component',
|
|
238
|
+
category: 'Forms and inputs',
|
|
239
|
+
description: 'The control that turns a setting on or off immediately.',
|
|
240
|
+
source: 'src/components/ui/switch.tsx',
|
|
241
|
+
exports: ['Switch'],
|
|
242
|
+
status: 'stable',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'Slider',
|
|
246
|
+
slug: 'slider',
|
|
247
|
+
kind: 'component',
|
|
248
|
+
category: 'Forms and inputs',
|
|
249
|
+
description: 'The control that chooses a number along a range.',
|
|
250
|
+
source: 'src/components/ui/slider.tsx',
|
|
251
|
+
exports: ['Slider'],
|
|
252
|
+
status: 'stable',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: 'Progress',
|
|
256
|
+
slug: 'progress',
|
|
257
|
+
kind: 'component',
|
|
258
|
+
category: 'Feedback',
|
|
259
|
+
description: 'The bar that reports how far a task has progressed.',
|
|
260
|
+
source: 'src/components/ui/progress.tsx',
|
|
261
|
+
exports: ['Progress'],
|
|
262
|
+
status: 'stable',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: 'Tooltip',
|
|
266
|
+
slug: 'tooltip',
|
|
267
|
+
kind: 'component',
|
|
268
|
+
category: 'Feedback',
|
|
269
|
+
description: 'The short label shown on hover or focus beside a control.',
|
|
270
|
+
source: 'src/components/ui/tooltip.tsx',
|
|
271
|
+
exports: ['Tooltip', 'TooltipTrigger', 'TooltipContent'],
|
|
272
|
+
status: 'stable',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'Accordion',
|
|
276
|
+
slug: 'accordion',
|
|
277
|
+
kind: 'component',
|
|
278
|
+
category: 'Layout',
|
|
279
|
+
description: 'The stack of headers that each reveal a panel in place.',
|
|
280
|
+
source: 'src/components/ui/accordion.tsx',
|
|
281
|
+
exports: ['Accordion', 'AccordionItem', 'AccordionTrigger', 'AccordionContent'],
|
|
282
|
+
status: 'stable',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'Dialog',
|
|
286
|
+
slug: 'dialog',
|
|
287
|
+
kind: 'component',
|
|
288
|
+
category: 'Layout',
|
|
289
|
+
description: 'The modal surface for a decision or a short task, with a side-anchored sheet variant.',
|
|
290
|
+
source: 'src/components/ui/dialog.tsx',
|
|
291
|
+
exports: [
|
|
292
|
+
'Dialog',
|
|
293
|
+
'DialogTrigger',
|
|
294
|
+
'DialogContent',
|
|
295
|
+
'DialogHeader',
|
|
296
|
+
'DialogFooter',
|
|
297
|
+
'DialogTitle',
|
|
298
|
+
'DialogDescription',
|
|
299
|
+
'DialogClose',
|
|
300
|
+
],
|
|
301
|
+
status: 'stable',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'DropdownMenu',
|
|
305
|
+
slug: 'dropdown-menu',
|
|
306
|
+
kind: 'component',
|
|
307
|
+
category: 'Layout',
|
|
308
|
+
description: 'The menu of actions and choices opened from one trigger.',
|
|
309
|
+
source: 'src/components/ui/dropdown-menu.tsx',
|
|
310
|
+
exports: [
|
|
311
|
+
'DropdownMenu',
|
|
312
|
+
'DropdownMenuTrigger',
|
|
313
|
+
'DropdownMenuContent',
|
|
314
|
+
'DropdownMenuItem',
|
|
315
|
+
'DropdownMenuCheckboxItem',
|
|
316
|
+
'DropdownMenuRadioGroup',
|
|
317
|
+
'DropdownMenuRadioItem',
|
|
318
|
+
'DropdownMenuLabel',
|
|
319
|
+
'DropdownMenuSeparator',
|
|
320
|
+
'DropdownMenuGroup',
|
|
321
|
+
'DropdownMenuSub',
|
|
322
|
+
'DropdownMenuSubTrigger',
|
|
323
|
+
'DropdownMenuSubContent',
|
|
324
|
+
],
|
|
325
|
+
status: 'stable',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: 'Popover',
|
|
329
|
+
slug: 'popover',
|
|
330
|
+
kind: 'component',
|
|
331
|
+
category: 'Layout',
|
|
332
|
+
description: 'The anchored floating surface for content richer than a tooltip.',
|
|
333
|
+
source: 'src/components/ui/popover.tsx',
|
|
334
|
+
exports: ['Popover', 'PopoverTrigger', 'PopoverContent'],
|
|
335
|
+
status: 'stable',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'Tabs',
|
|
339
|
+
slug: 'tabs',
|
|
340
|
+
kind: 'component',
|
|
341
|
+
category: 'Layout',
|
|
342
|
+
description: 'The set of peer views shown one at a time.',
|
|
343
|
+
source: 'src/components/ui/tabs.tsx',
|
|
344
|
+
exports: ['Tabs', 'TabsList', 'TabsTrigger', 'TabsContent'],
|
|
345
|
+
status: 'stable',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: 'Avatar',
|
|
349
|
+
slug: 'avatar',
|
|
350
|
+
kind: 'component',
|
|
351
|
+
category: 'Data display',
|
|
352
|
+
description: 'The person or entity image with an initials fallback.',
|
|
353
|
+
source: 'src/components/ui/avatar.tsx',
|
|
354
|
+
exports: ['Avatar', 'AvatarImage', 'AvatarFallback'],
|
|
355
|
+
status: 'stable',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: 'Hero01',
|
|
359
|
+
slug: 'hero-01',
|
|
360
|
+
kind: 'block',
|
|
361
|
+
category: null,
|
|
362
|
+
description: 'A centered marketing hero with an optional eyebrow and one or two actions.',
|
|
363
|
+
source: 'src/blocks/hero-01/index.tsx',
|
|
364
|
+
exports: ['Hero01'],
|
|
365
|
+
status: 'stable',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: 'FeatureGrid01',
|
|
369
|
+
slug: 'feature-grid-01',
|
|
370
|
+
kind: 'block',
|
|
371
|
+
category: null,
|
|
372
|
+
description: 'A feature grid with optional icon tiles and a section heading.',
|
|
373
|
+
source: 'src/blocks/feature-grid-01/index.tsx',
|
|
374
|
+
exports: ['FeatureGrid01'],
|
|
375
|
+
status: 'stable',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'Stats01',
|
|
379
|
+
slug: 'stats-01',
|
|
380
|
+
kind: 'block',
|
|
381
|
+
category: null,
|
|
382
|
+
description: 'A KPI row with optional directional deltas.',
|
|
383
|
+
source: 'src/blocks/stats-01/index.tsx',
|
|
384
|
+
exports: ['Stats01'],
|
|
385
|
+
status: 'stable',
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: 'Pricing01',
|
|
389
|
+
slug: 'pricing-01',
|
|
390
|
+
kind: 'block',
|
|
391
|
+
category: null,
|
|
392
|
+
description: 'A plan comparison with one highlighted tier.',
|
|
393
|
+
source: 'src/blocks/pricing-01/index.tsx',
|
|
394
|
+
exports: ['Pricing01'],
|
|
395
|
+
status: 'stable',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: 'Cta01',
|
|
399
|
+
slug: 'cta-01',
|
|
400
|
+
kind: 'block',
|
|
401
|
+
category: null,
|
|
402
|
+
description: 'A closing call to action on a filled primary surface.',
|
|
403
|
+
source: 'src/blocks/cta-01/index.tsx',
|
|
404
|
+
exports: ['Cta01'],
|
|
405
|
+
status: 'stable',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: 'PageHeader01',
|
|
409
|
+
slug: 'page-header-01',
|
|
410
|
+
kind: 'block',
|
|
411
|
+
category: null,
|
|
412
|
+
description: 'A page title band with a breadcrumb trail, a supporting line and a row of actions.',
|
|
413
|
+
source: 'src/blocks/page-header-01/index.tsx',
|
|
414
|
+
exports: ['PageHeader01'],
|
|
415
|
+
status: 'stable',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: 'DataTable01',
|
|
419
|
+
slug: 'data-table-01',
|
|
420
|
+
kind: 'block',
|
|
421
|
+
category: null,
|
|
422
|
+
description: 'A table section with a toolbar, filters, row selection and pagination.',
|
|
423
|
+
source: 'src/blocks/data-table-01/index.tsx',
|
|
424
|
+
exports: ['DataTable01'],
|
|
425
|
+
status: 'stable',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: 'SettingsPanel01',
|
|
429
|
+
slug: 'settings-panel-01',
|
|
430
|
+
kind: 'block',
|
|
431
|
+
category: null,
|
|
432
|
+
description: 'A settings form grouped into sections of text, select and switch fields.',
|
|
433
|
+
source: 'src/blocks/settings-panel-01/index.tsx',
|
|
434
|
+
exports: ['SettingsPanel01'],
|
|
435
|
+
status: 'stable',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: 'AuthForm01',
|
|
439
|
+
slug: 'auth-form-01',
|
|
440
|
+
kind: 'block',
|
|
441
|
+
category: null,
|
|
442
|
+
description: 'A sign-in card with labelled credential fields, a remember control and an error slot.',
|
|
443
|
+
source: 'src/blocks/auth-form-01/index.tsx',
|
|
444
|
+
exports: ['AuthForm01'],
|
|
445
|
+
status: 'stable',
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
name: 'AppShell01',
|
|
449
|
+
slug: 'app-shell-01',
|
|
450
|
+
kind: 'block',
|
|
451
|
+
category: null,
|
|
452
|
+
description: 'A navigation shell with a desktop rail, a top bar and a mobile navigation sheet.',
|
|
453
|
+
source: 'src/blocks/app-shell-01/index.tsx',
|
|
454
|
+
exports: ['AppShell01'],
|
|
455
|
+
status: 'stable',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: 'MarketingPage',
|
|
459
|
+
slug: 'marketing-page',
|
|
460
|
+
kind: 'page',
|
|
461
|
+
category: null,
|
|
462
|
+
description: 'A complete marketing page composing a hero, a feature grid, a KPI row, a plan comparison and a closing call to action.',
|
|
463
|
+
source: 'src/pages/marketing-page/index.tsx',
|
|
464
|
+
exports: ['MarketingPage'],
|
|
465
|
+
status: 'stable',
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: 'DashboardPage',
|
|
469
|
+
slug: 'dashboard-page',
|
|
470
|
+
kind: 'page',
|
|
471
|
+
category: null,
|
|
472
|
+
description: 'A full dashboard screen composing the app shell, a page header, a KPI row and a data table.',
|
|
473
|
+
source: 'src/pages/dashboard-page/index.tsx',
|
|
474
|
+
exports: ['DashboardPage'],
|
|
475
|
+
status: 'stable',
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: 'SettingsPage',
|
|
479
|
+
slug: 'settings-page',
|
|
480
|
+
kind: 'page',
|
|
481
|
+
category: null,
|
|
482
|
+
description: 'A full settings screen composing the app shell, a page header and tabs of grouped settings forms.',
|
|
483
|
+
source: 'src/pages/settings-page/index.tsx',
|
|
484
|
+
exports: ['SettingsPage'],
|
|
485
|
+
status: 'stable',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'AuthPage',
|
|
489
|
+
slug: 'auth-page',
|
|
490
|
+
kind: 'page',
|
|
491
|
+
category: null,
|
|
492
|
+
description: 'A full authentication screen composing a sign-in form with an optional supporting card.',
|
|
493
|
+
source: 'src/pages/auth-page/index.tsx',
|
|
494
|
+
exports: ['AuthPage'],
|
|
495
|
+
status: 'stable',
|
|
496
|
+
},
|
|
497
|
+
];
|
|
498
|
+
/** Returns the catalogue ordered for display and keyed for lookup. */
|
|
499
|
+
export function buildCatalog(items = catalog) {
|
|
500
|
+
return [...items].sort((a, b) => a.name.localeCompare(b.name));
|
|
501
|
+
}
|
|
502
|
+
export const catalogBySlug = new Map(catalog.map((item) => [item.slug, item]));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every Prism component, one export list.
|
|
3
|
+
*
|
|
4
|
+
* Consumers who want a single item import `@nanisoft/prism-ui/components/<name>`;
|
|
5
|
+
* this barrel is the convenience entry for an app that uses most of the set.
|
|
6
|
+
* Compound parts stay inside their parent module (ticket 07): `Card` ships its
|
|
7
|
+
* header, title, description, content and footer here, and there is no
|
|
8
|
+
* `components/card-header` subpath.
|
|
9
|
+
*/
|
|
10
|
+
export { Button } from './ui/button';
|
|
11
|
+
export { Badge } from './ui/badge';
|
|
12
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card';
|
|
13
|
+
export { Section, SectionHeading } from './ui/section';
|
|
14
|
+
export type { HeadingLevel } 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 { Separator } from './ui/separator';
|
|
23
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table';
|
|
24
|
+
export { Heading, Text } from './ui/typography';
|
|
25
|
+
export type { HeadingElement } from './ui/typography';
|
|
26
|
+
export { Kbd } from './ui/kbd';
|
|
27
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './ui/select';
|
|
28
|
+
export type { SelectProps, SelectTriggerProps, SelectValueProps } from './ui/select';
|
|
29
|
+
export { Checkbox } from './ui/checkbox';
|
|
30
|
+
export type { CheckboxProps } from './ui/checkbox';
|
|
31
|
+
export { RadioGroup, RadioGroupItem } from './ui/radio-group';
|
|
32
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './ui/radio-group';
|
|
33
|
+
export { Switch } from './ui/switch';
|
|
34
|
+
export type { SwitchProps } from './ui/switch';
|
|
35
|
+
export { Slider } from './ui/slider';
|
|
36
|
+
export type { SliderProps } from './ui/slider';
|
|
37
|
+
export { Progress } from './ui/progress';
|
|
38
|
+
export type { ProgressProps } from './ui/progress';
|
|
39
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './ui/tooltip';
|
|
40
|
+
export type { TooltipProps, TooltipTriggerProps, TooltipContentProps } from './ui/tooltip';
|
|
41
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './ui/accordion';
|
|
42
|
+
export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, } from './ui/accordion';
|
|
43
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './ui/dialog';
|
|
44
|
+
export type { DialogProps, DialogTriggerProps, DialogContentProps, DialogHeaderProps, DialogFooterProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, } from './ui/dialog';
|
|
45
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './ui/dropdown-menu';
|
|
46
|
+
export type { DropdownMenuProps, DropdownMenuTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuLabelProps, DropdownMenuSeparatorProps, DropdownMenuGroupProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, } from './ui/dropdown-menu';
|
|
47
|
+
export { Popover, PopoverTrigger, PopoverContent } from './ui/popover';
|
|
48
|
+
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps } from './ui/popover';
|
|
49
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs';
|
|
50
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps } from './ui/tabs';
|
|
51
|
+
export { Avatar, AvatarImage, AvatarFallback } from './ui/avatar';
|
|
52
|
+
export type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from './ui/avatar';
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,GACX,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACtD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,GACX,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE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E,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACpE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7F,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every Prism component, one export list.
|
|
3
|
+
*
|
|
4
|
+
* Consumers who want a single item import `@nanisoft/prism-ui/components/<name>`;
|
|
5
|
+
* this barrel is the convenience entry for an app that uses most of the set.
|
|
6
|
+
* Compound parts stay inside their parent module (ticket 07): `Card` ships its
|
|
7
|
+
* header, title, description, content and footer here, and there is no
|
|
8
|
+
* `components/card-header` subpath.
|
|
9
|
+
*/
|
|
10
|
+
export { Button } from './ui/button';
|
|
11
|
+
export { Badge } from './ui/badge';
|
|
12
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './ui/card';
|
|
13
|
+
export { Section, SectionHeading } from './ui/section';
|
|
14
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb';
|
|
15
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './ui/pagination';
|
|
16
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './ui/field';
|
|
17
|
+
export { Input } from './ui/input';
|
|
18
|
+
export { Textarea } from './ui/textarea';
|
|
19
|
+
export { Alert, AlertTitle, AlertDescription } from './ui/alert';
|
|
20
|
+
export { Skeleton } from './ui/skeleton';
|
|
21
|
+
export { Separator } from './ui/separator';
|
|
22
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './ui/table';
|
|
23
|
+
export { Heading, Text } from './ui/typography';
|
|
24
|
+
export { Kbd } from './ui/kbd';
|
|
25
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './ui/select';
|
|
26
|
+
export { Checkbox } from './ui/checkbox';
|
|
27
|
+
export { RadioGroup, RadioGroupItem } from './ui/radio-group';
|
|
28
|
+
export { Switch } from './ui/switch';
|
|
29
|
+
export { Slider } from './ui/slider';
|
|
30
|
+
export { Progress } from './ui/progress';
|
|
31
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './ui/tooltip';
|
|
32
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './ui/accordion';
|
|
33
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './ui/dialog';
|
|
34
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './ui/dropdown-menu';
|
|
35
|
+
export { Popover, PopoverTrigger, PopoverContent } from './ui/popover';
|
|
36
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs';
|
|
37
|
+
export { Avatar, AvatarImage, AvatarFallback } from './ui/avatar';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Accordion 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
|
+
export interface AccordionProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
9
|
+
/** The open item values, when the accordion is controlled. */
|
|
10
|
+
value?: string[];
|
|
11
|
+
/** The item values open initially, for an uncontrolled accordion. */
|
|
12
|
+
defaultValue?: string[];
|
|
13
|
+
/** Called when the open set changes. */
|
|
14
|
+
onValueChange?: (value: string[]) => void;
|
|
15
|
+
/** Whether more than one item may be open at once. */
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
/** Whether every item ignores user interaction. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Whether the browser's page search may expand a panel. */
|
|
20
|
+
hiddenUntilFound?: boolean;
|
|
21
|
+
/** Whether a closed panel stays in the DOM. */
|
|
22
|
+
keepMounted?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The props the AccordionItem forwards to Base UI.
|
|
26
|
+
*
|
|
27
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
28
|
+
* crosses the package seam (ticket 07 section 6).
|
|
29
|
+
*/
|
|
30
|
+
export interface AccordionItemProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
31
|
+
/** A stable value identifying this item within the accordion. */
|
|
32
|
+
value?: string;
|
|
33
|
+
/** Whether this item ignores user interaction. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Called when this item opens or closes. */
|
|
36
|
+
onOpenChange?: (open: boolean) => void;
|
|
37
|
+
}
|
|
38
|
+
/** The props the AccordionTrigger forwards to Base UI. */
|
|
39
|
+
export interface AccordionTriggerProps extends ComponentProps<'button'> {
|
|
40
|
+
}
|
|
41
|
+
/** The props the AccordionContent forwards to Base UI. */
|
|
42
|
+
export interface AccordionContentProps extends ComponentProps<'div'> {
|
|
43
|
+
/** Whether the browser's page search may expand this panel. */
|
|
44
|
+
hiddenUntilFound?: boolean;
|
|
45
|
+
/** Whether the closed panel stays in the DOM. */
|
|
46
|
+
keepMounted?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A stack of headers that each reveal a panel.
|
|
50
|
+
*
|
|
51
|
+
* The trigger is a real button and the panel is linked to it by the library,
|
|
52
|
+
* so Enter or Space opens the focused item and the header announces its
|
|
53
|
+
* expanded state. By default one item is open at a time; pass `multiple` to
|
|
54
|
+
* allow several. Use an Accordion to reveal a long answer in place, and a
|
|
55
|
+
* Tabs set when the sections are peers rather than a progression.
|
|
56
|
+
*/
|
|
57
|
+
declare function Accordion({ className, ...props }: AccordionProps): import("react").JSX.Element;
|
|
58
|
+
/** One header-and-panel pair inside an Accordion. */
|
|
59
|
+
declare function AccordionItem({ className, ...props }: AccordionItemProps): import("react").JSX.Element;
|
|
60
|
+
/** The button that opens and closes its panel. */
|
|
61
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): import("react").JSX.Element;
|
|
62
|
+
/** The panel an AccordionTrigger reveals. */
|
|
63
|
+
declare function AccordionContent({ className, ...props }: AccordionContentProps): import("react").JSX.Element;
|
|
64
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
65
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC7E,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,wCAAwC;IACxC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,OAAO,CAAA;IA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