ui-lab-registry 0.1.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/README.md +145 -0
- package/dist/categories.d.ts +5 -0
- package/dist/categories.d.ts.map +1 -0
- package/dist/categories.js +81 -0
- package/dist/categories.js.map +1 -0
- package/dist/components/badge.d.ts +15 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +31 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button-group.d.ts +27 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +99 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.d.ts +13 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +26 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +19 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +20 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/checkbox.d.ts +21 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +69 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/command-palette.d.ts +32 -0
- package/dist/components/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette.js +256 -0
- package/dist/components/command-palette.js.map +1 -0
- package/dist/components/confirmation.d.ts +25 -0
- package/dist/components/confirmation.d.ts.map +1 -0
- package/dist/components/confirmation.js +120 -0
- package/dist/components/confirmation.js.map +1 -0
- package/dist/components/context-menu.d.ts +28 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +36 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/divider.d.ts +19 -0
- package/dist/components/divider.d.ts.map +1 -0
- package/dist/components/divider.js +240 -0
- package/dist/components/divider.js.map +1 -0
- package/dist/components/form-wrapper.d.ts +48 -0
- package/dist/components/form-wrapper.d.ts.map +1 -0
- package/dist/components/form-wrapper.js +122 -0
- package/dist/components/form-wrapper.js.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +24 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input.d.ts +17 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +38 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +17 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +31 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/logo.d.ts +2 -0
- package/dist/components/logo.d.ts.map +1 -0
- package/dist/components/logo.js +6 -0
- package/dist/components/logo.js.map +1 -0
- package/dist/components/modal.d.ts +21 -0
- package/dist/components/modal.d.ts.map +1 -0
- package/dist/components/modal.js +67 -0
- package/dist/components/modal.js.map +1 -0
- package/dist/components/popover.d.ts +18 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +243 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +19 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +38 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio.d.ts +17 -0
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/radio.js +62 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/select.d.ts +13 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +26 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/slider.d.ts +9 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +32 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/switch.d.ts +24 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +92 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/tabs.d.ts +20 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +85 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +17 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +62 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toast/index.d.ts +5 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +4 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/store.d.ts +55 -0
- package/dist/components/toast/store.d.ts.map +1 -0
- package/dist/components/toast/store.js +76 -0
- package/dist/components/toast/store.js.map +1 -0
- package/dist/components/toast/toast.d.ts +10 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +148 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toaster.d.ts +2 -0
- package/dist/components/toast/toaster.d.ts.map +1 -0
- package/dist/components/toast/toaster.js +391 -0
- package/dist/components/toast/toaster.js.map +1 -0
- package/dist/components/toast/use-toast.d.ts +9 -0
- package/dist/components/toast/use-toast.d.ts.map +1 -0
- package/dist/components/toast/use-toast.js +17 -0
- package/dist/components/toast/use-toast.js.map +1 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +227 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +36 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -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/lib/utils.js.map +1 -0
- package/dist/registry.d.ts +10 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +418 -0
- package/dist/registry.js.map +1 -0
- package/dist/starters/presets.d.ts +4 -0
- package/dist/starters/presets.d.ts.map +1 -0
- package/dist/starters/presets.js +49 -0
- package/dist/starters/presets.js.map +1 -0
- package/dist/types.d.ts +35 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +66 -0
- package/src/categories.ts +84 -0
- package/src/helpers.ts +44 -0
- package/src/index.ts +29 -0
- package/src/lib/utils.ts +5 -0
- package/src/registry.ts +443 -0
- package/src/starters/presets.ts +51 -0
- package/src/types.ts +48 -0
package/dist/registry.js
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
export const componentRegistry = {
|
|
2
|
+
button: {
|
|
3
|
+
id: 'button',
|
|
4
|
+
name: 'Button',
|
|
5
|
+
description: 'A clickable element that triggers an action.',
|
|
6
|
+
category: 'action',
|
|
7
|
+
source: {
|
|
8
|
+
packageName: '@ui-lab/components',
|
|
9
|
+
exportName: 'Button',
|
|
10
|
+
packagePath: 'dist/index.d.ts',
|
|
11
|
+
},
|
|
12
|
+
relatedComponents: ['button-group'],
|
|
13
|
+
tags: ['cta', 'interactive', 'primary-action'],
|
|
14
|
+
accessibility: {
|
|
15
|
+
hasAriaSupport: true,
|
|
16
|
+
notes: ['Supports keyboard navigation', 'Screen reader friendly']
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
'button-group': {
|
|
20
|
+
id: 'button-group',
|
|
21
|
+
name: 'Button Group',
|
|
22
|
+
description: 'A group of related buttons displayed together.',
|
|
23
|
+
category: 'action',
|
|
24
|
+
source: {
|
|
25
|
+
packageName: '@ui-lab/components',
|
|
26
|
+
exportName: 'ButtonGroup',
|
|
27
|
+
packagePath: 'dist/index.d.ts',
|
|
28
|
+
},
|
|
29
|
+
relatedComponents: ['button'],
|
|
30
|
+
tags: ['grouped', 'toggle', 'multi-select'],
|
|
31
|
+
accessibility: {
|
|
32
|
+
hasAriaSupport: true,
|
|
33
|
+
notes: ['Supports keyboard navigation', 'Role-based selection']
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
input: {
|
|
37
|
+
id: 'input',
|
|
38
|
+
name: 'Input',
|
|
39
|
+
description: 'Text input field for capturing user data.',
|
|
40
|
+
category: 'input',
|
|
41
|
+
source: {
|
|
42
|
+
packageName: '@ui-lab/components',
|
|
43
|
+
exportName: 'Input',
|
|
44
|
+
packagePath: 'dist/index.d.ts',
|
|
45
|
+
},
|
|
46
|
+
relatedComponents: ['label', 'form-wrapper'],
|
|
47
|
+
tags: ['form', 'text', 'user-input'],
|
|
48
|
+
accessibility: {
|
|
49
|
+
hasAriaSupport: true,
|
|
50
|
+
notes: ['Works with label elements', 'Supports placeholder text', 'Keyboard accessible']
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
label: {
|
|
54
|
+
id: 'label',
|
|
55
|
+
name: 'Label',
|
|
56
|
+
description: 'Text label for form elements.',
|
|
57
|
+
category: 'display',
|
|
58
|
+
source: {
|
|
59
|
+
packageName: '@ui-lab/components',
|
|
60
|
+
exportName: 'Label',
|
|
61
|
+
packagePath: 'dist/index.d.ts',
|
|
62
|
+
},
|
|
63
|
+
relatedComponents: ['input', 'checkbox', 'radio', 'switch'],
|
|
64
|
+
tags: ['form', 'text', 'accessibility'],
|
|
65
|
+
accessibility: {
|
|
66
|
+
hasAriaSupport: true,
|
|
67
|
+
notes: ['Associates with form controls', 'Improves accessibility']
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
select: {
|
|
71
|
+
id: 'select',
|
|
72
|
+
name: 'Select',
|
|
73
|
+
description: 'Dropdown select component for choosing from multiple options.',
|
|
74
|
+
category: 'input',
|
|
75
|
+
source: {
|
|
76
|
+
packageName: '@ui-lab/components',
|
|
77
|
+
exportName: 'Select',
|
|
78
|
+
packagePath: 'dist/index.d.ts',
|
|
79
|
+
},
|
|
80
|
+
relatedComponents: ['input', 'label', 'form-wrapper'],
|
|
81
|
+
tags: ['form', 'dropdown', 'selection'],
|
|
82
|
+
accessibility: {
|
|
83
|
+
hasAriaSupport: true,
|
|
84
|
+
notes: ['Keyboard accessible', 'Screen reader friendly', 'ARIA roles included']
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
textarea: {
|
|
88
|
+
id: 'textarea',
|
|
89
|
+
name: 'Textarea',
|
|
90
|
+
description: 'Multi-line text input field for longer user input.',
|
|
91
|
+
category: 'input',
|
|
92
|
+
source: {
|
|
93
|
+
packageName: '@ui-lab/components',
|
|
94
|
+
exportName: 'TextArea',
|
|
95
|
+
packagePath: 'dist/index.d.ts',
|
|
96
|
+
},
|
|
97
|
+
relatedComponents: ['input', 'label', 'form-wrapper'],
|
|
98
|
+
tags: ['form', 'text', 'multi-line'],
|
|
99
|
+
accessibility: {
|
|
100
|
+
hasAriaSupport: true,
|
|
101
|
+
notes: ['Works with label elements', 'Resizable option available']
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
checkbox: {
|
|
105
|
+
id: 'checkbox',
|
|
106
|
+
name: 'Checkbox',
|
|
107
|
+
description: 'A checkbox input for selecting one or multiple options.',
|
|
108
|
+
category: 'input',
|
|
109
|
+
source: {
|
|
110
|
+
packageName: '@ui-lab/components',
|
|
111
|
+
exportName: 'Checkbox',
|
|
112
|
+
packagePath: 'dist/index.d.ts',
|
|
113
|
+
},
|
|
114
|
+
relatedComponents: ['radio', 'switch', 'label'],
|
|
115
|
+
tags: ['form', 'selection', 'boolean'],
|
|
116
|
+
accessibility: {
|
|
117
|
+
hasAriaSupport: true,
|
|
118
|
+
notes: ['Keyboard accessible', 'Visual focus indicator', 'Works with labels']
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
radio: {
|
|
122
|
+
id: 'radio',
|
|
123
|
+
name: 'Radio',
|
|
124
|
+
description: 'A radio button for selecting one option from a group.',
|
|
125
|
+
category: 'input',
|
|
126
|
+
source: {
|
|
127
|
+
packageName: '@ui-lab/components',
|
|
128
|
+
exportName: 'Radio',
|
|
129
|
+
packagePath: 'dist/index.d.ts',
|
|
130
|
+
},
|
|
131
|
+
relatedComponents: ['checkbox', 'switch', 'label'],
|
|
132
|
+
tags: ['form', 'selection', 'single-choice'],
|
|
133
|
+
accessibility: {
|
|
134
|
+
hasAriaSupport: true,
|
|
135
|
+
notes: ['Keyboard accessible', 'Radio group support', 'Arrow key navigation']
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
badge: {
|
|
139
|
+
id: 'badge',
|
|
140
|
+
name: 'Badge',
|
|
141
|
+
description: 'A small badge component for displaying labels or status.',
|
|
142
|
+
category: 'display',
|
|
143
|
+
source: {
|
|
144
|
+
packageName: '@ui-lab/components',
|
|
145
|
+
exportName: 'Badge',
|
|
146
|
+
packagePath: 'dist/index.d.ts',
|
|
147
|
+
},
|
|
148
|
+
relatedComponents: [],
|
|
149
|
+
tags: ['label', 'status', 'tag'],
|
|
150
|
+
accessibility: {
|
|
151
|
+
hasAriaSupport: false,
|
|
152
|
+
notes: ['Semantic HTML', 'Use with proper context']
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
tooltip: {
|
|
156
|
+
id: 'tooltip',
|
|
157
|
+
name: 'Tooltip',
|
|
158
|
+
description: 'Displays additional information on hover or focus.',
|
|
159
|
+
category: 'display',
|
|
160
|
+
source: {
|
|
161
|
+
packageName: '@ui-lab/components',
|
|
162
|
+
exportName: 'Tooltip',
|
|
163
|
+
packagePath: 'dist/index.d.ts',
|
|
164
|
+
},
|
|
165
|
+
relatedComponents: ['popover'],
|
|
166
|
+
tags: ['information', 'hover', 'help-text'],
|
|
167
|
+
accessibility: {
|
|
168
|
+
hasAriaSupport: true,
|
|
169
|
+
notes: ['Keyboard accessible', 'ARIA labels', 'Focus management']
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
popover: {
|
|
173
|
+
id: 'popover',
|
|
174
|
+
name: 'Popover',
|
|
175
|
+
description: 'A popover component for displaying content on demand.',
|
|
176
|
+
category: 'feedback',
|
|
177
|
+
source: {
|
|
178
|
+
packageName: '@ui-lab/components',
|
|
179
|
+
exportName: 'Popover',
|
|
180
|
+
packagePath: 'dist/index.d.ts',
|
|
181
|
+
},
|
|
182
|
+
relatedComponents: ['tooltip', 'modal'],
|
|
183
|
+
tags: ['overlay', 'content', 'information'],
|
|
184
|
+
accessibility: {
|
|
185
|
+
hasAriaSupport: true,
|
|
186
|
+
notes: ['Focus management', 'Dismissible', 'Keyboard support']
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
'form-wrapper': {
|
|
190
|
+
id: 'form-wrapper',
|
|
191
|
+
name: 'Form Wrapper',
|
|
192
|
+
description: 'A wrapper component for organizing form elements.',
|
|
193
|
+
category: 'composition',
|
|
194
|
+
source: {
|
|
195
|
+
packageName: '@ui-lab/components',
|
|
196
|
+
exportName: 'FormWrapper',
|
|
197
|
+
packagePath: 'dist/index.d.ts',
|
|
198
|
+
},
|
|
199
|
+
relatedComponents: ['input', 'button', 'label'],
|
|
200
|
+
tags: ['form', 'composition', 'layout'],
|
|
201
|
+
accessibility: {
|
|
202
|
+
hasAriaSupport: true,
|
|
203
|
+
notes: ['Semantic form structure', 'Proper grouping of elements']
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
toast: {
|
|
207
|
+
id: 'toast',
|
|
208
|
+
name: 'Toast',
|
|
209
|
+
description: 'A notification component for displaying temporary messages.',
|
|
210
|
+
category: 'feedback',
|
|
211
|
+
source: {
|
|
212
|
+
packageName: '@ui-lab/components',
|
|
213
|
+
exportName: 'Toast',
|
|
214
|
+
packagePath: 'dist/index.d.ts',
|
|
215
|
+
},
|
|
216
|
+
relatedComponents: [],
|
|
217
|
+
tags: ['notification', 'feedback', 'temporary'],
|
|
218
|
+
accessibility: {
|
|
219
|
+
hasAriaSupport: true,
|
|
220
|
+
notes: ['ARIA live regions', 'Role="status"', 'Auto-dismiss support']
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
modal: {
|
|
224
|
+
id: 'modal',
|
|
225
|
+
name: 'Modal',
|
|
226
|
+
description: 'A modal dialog for focusing user attention on important content.',
|
|
227
|
+
category: 'container',
|
|
228
|
+
source: {
|
|
229
|
+
packageName: '@ui-lab/components',
|
|
230
|
+
exportName: 'Modal',
|
|
231
|
+
packagePath: 'dist/index.d.ts',
|
|
232
|
+
},
|
|
233
|
+
relatedComponents: ['button', 'card'],
|
|
234
|
+
tags: ['dialog', 'overlay', 'container'],
|
|
235
|
+
accessibility: {
|
|
236
|
+
hasAriaSupport: true,
|
|
237
|
+
notes: ['Focus trap', 'Backdrop focus', 'Keyboard dismissal', 'ARIA dialog role']
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
tabs: {
|
|
241
|
+
id: 'tabs',
|
|
242
|
+
name: 'Tabs',
|
|
243
|
+
description: 'A tabbed interface for organizing content into sections.',
|
|
244
|
+
category: 'navigation',
|
|
245
|
+
source: {
|
|
246
|
+
packageName: '@ui-lab/components',
|
|
247
|
+
exportName: 'Tabs',
|
|
248
|
+
packagePath: 'dist/index.d.ts',
|
|
249
|
+
},
|
|
250
|
+
relatedComponents: ['card'],
|
|
251
|
+
tags: ['navigation', 'organization', 'content-switching'],
|
|
252
|
+
accessibility: {
|
|
253
|
+
hasAriaSupport: true,
|
|
254
|
+
notes: ['Keyboard navigation', 'ARIA tab roles', 'Focus management']
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
'context-menu': {
|
|
258
|
+
id: 'context-menu',
|
|
259
|
+
name: 'Context Menu',
|
|
260
|
+
description: 'A context menu for right-click actions.',
|
|
261
|
+
category: 'navigation',
|
|
262
|
+
source: {
|
|
263
|
+
packageName: '@ui-lab/components',
|
|
264
|
+
exportName: 'ContextMenu',
|
|
265
|
+
packagePath: 'dist/index.d.ts',
|
|
266
|
+
},
|
|
267
|
+
relatedComponents: ['popover'],
|
|
268
|
+
tags: ['menu', 'right-click', 'actions'],
|
|
269
|
+
accessibility: {
|
|
270
|
+
hasAriaSupport: true,
|
|
271
|
+
notes: ['Keyboard accessible', 'Menu role', 'Focus management']
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
switch: {
|
|
275
|
+
id: 'switch',
|
|
276
|
+
name: 'Switch',
|
|
277
|
+
description: 'A toggle switch for boolean input.',
|
|
278
|
+
category: 'input',
|
|
279
|
+
source: {
|
|
280
|
+
packageName: '@ui-lab/components',
|
|
281
|
+
exportName: 'Switch',
|
|
282
|
+
packagePath: 'dist/index.d.ts',
|
|
283
|
+
},
|
|
284
|
+
relatedComponents: ['checkbox', 'radio', 'label'],
|
|
285
|
+
tags: ['form', 'boolean', 'toggle'],
|
|
286
|
+
accessibility: {
|
|
287
|
+
hasAriaSupport: true,
|
|
288
|
+
notes: ['Keyboard accessible', 'ARIA switch role', 'Visual state indication']
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
slider: {
|
|
292
|
+
id: 'slider',
|
|
293
|
+
name: 'Slider',
|
|
294
|
+
description: 'A slider component for selecting a value from a range.',
|
|
295
|
+
category: 'input',
|
|
296
|
+
source: {
|
|
297
|
+
packageName: '@ui-lab/components',
|
|
298
|
+
exportName: 'Slider',
|
|
299
|
+
packagePath: 'dist/index.d.ts',
|
|
300
|
+
},
|
|
301
|
+
relatedComponents: ['input', 'label'],
|
|
302
|
+
tags: ['form', 'range', 'numeric'],
|
|
303
|
+
accessibility: {
|
|
304
|
+
hasAriaSupport: true,
|
|
305
|
+
notes: ['Keyboard accessible', 'ARIA range role', 'Arrow key support']
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
progress: {
|
|
309
|
+
id: 'progress',
|
|
310
|
+
name: 'Progress',
|
|
311
|
+
description: 'A progress bar component for showing completion status.',
|
|
312
|
+
category: 'feedback',
|
|
313
|
+
source: {
|
|
314
|
+
packageName: '@ui-lab/components',
|
|
315
|
+
exportName: 'Progress',
|
|
316
|
+
packagePath: 'dist/index.d.ts',
|
|
317
|
+
},
|
|
318
|
+
relatedComponents: ['slider'],
|
|
319
|
+
tags: ['feedback', 'status', 'progress'],
|
|
320
|
+
accessibility: {
|
|
321
|
+
hasAriaSupport: true,
|
|
322
|
+
notes: ['ARIA progressbar role', 'aria-valuenow', 'aria-valuemin', 'aria-valuemax']
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
card: {
|
|
326
|
+
id: 'card',
|
|
327
|
+
name: 'Card',
|
|
328
|
+
description: 'A card component for grouping related content.',
|
|
329
|
+
category: 'container',
|
|
330
|
+
source: {
|
|
331
|
+
packageName: '@ui-lab/components',
|
|
332
|
+
exportName: 'Card',
|
|
333
|
+
packagePath: 'dist/index.d.ts',
|
|
334
|
+
},
|
|
335
|
+
relatedComponents: ['modal', 'divider'],
|
|
336
|
+
tags: ['container', 'grouping', 'layout'],
|
|
337
|
+
accessibility: {
|
|
338
|
+
hasAriaSupport: false,
|
|
339
|
+
notes: ['Semantic HTML structure', 'Proper heading hierarchy']
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
'command-palette': {
|
|
343
|
+
id: 'command-palette',
|
|
344
|
+
name: 'Command Palette',
|
|
345
|
+
description: 'A searchable command palette for quick access to actions.',
|
|
346
|
+
category: 'action',
|
|
347
|
+
source: {
|
|
348
|
+
packageName: '@ui-lab/components',
|
|
349
|
+
exportName: 'CommandPalette',
|
|
350
|
+
packagePath: 'dist/index.d.ts',
|
|
351
|
+
},
|
|
352
|
+
relatedComponents: ['modal', 'input'],
|
|
353
|
+
tags: ['search', 'command', 'navigation'],
|
|
354
|
+
accessibility: {
|
|
355
|
+
hasAriaSupport: true,
|
|
356
|
+
notes: ['Keyboard shortcuts', 'Search support', 'Focus management']
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
confirmation: {
|
|
360
|
+
id: 'confirmation',
|
|
361
|
+
name: 'Confirmation',
|
|
362
|
+
description: 'A confirmation dialog for critical user actions.',
|
|
363
|
+
category: 'action',
|
|
364
|
+
source: {
|
|
365
|
+
packageName: '@ui-lab/components',
|
|
366
|
+
exportName: 'Confirmation',
|
|
367
|
+
packagePath: 'dist/index.d.ts',
|
|
368
|
+
},
|
|
369
|
+
relatedComponents: ['modal', 'button', 'card'],
|
|
370
|
+
tags: ['dialog', 'confirmation', 'safety'],
|
|
371
|
+
accessibility: {
|
|
372
|
+
hasAriaSupport: true,
|
|
373
|
+
notes: ['Focus management', 'Clear action buttons', 'Alert dialog role']
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
divider: {
|
|
377
|
+
id: 'divider',
|
|
378
|
+
name: 'Divider',
|
|
379
|
+
description: 'A horizontal or vertical divider for separating content.',
|
|
380
|
+
category: 'layout',
|
|
381
|
+
source: {
|
|
382
|
+
packageName: '@ui-lab/components',
|
|
383
|
+
exportName: 'Divider',
|
|
384
|
+
packagePath: 'dist/index.d.ts',
|
|
385
|
+
},
|
|
386
|
+
relatedComponents: ['card', 'modal'],
|
|
387
|
+
tags: ['separator', 'layout', 'visual'],
|
|
388
|
+
accessibility: {
|
|
389
|
+
hasAriaSupport: false,
|
|
390
|
+
notes: ['Semantic divider element', 'Visual separator only']
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
table: {
|
|
394
|
+
id: 'table',
|
|
395
|
+
name: 'Table',
|
|
396
|
+
description: 'A table component for displaying and organizing tabular data.',
|
|
397
|
+
category: 'data',
|
|
398
|
+
source: {
|
|
399
|
+
packageName: '@ui-lab/components',
|
|
400
|
+
exportName: 'Table',
|
|
401
|
+
packagePath: 'dist/index.d.ts',
|
|
402
|
+
},
|
|
403
|
+
relatedComponents: ['card'],
|
|
404
|
+
tags: ['data', 'table', 'display'],
|
|
405
|
+
accessibility: {
|
|
406
|
+
hasAriaSupport: true,
|
|
407
|
+
notes: ['Table role', 'Header associations', 'Keyboard navigation']
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
export const componentMetadata = Object.values(componentRegistry).map(comp => ({
|
|
412
|
+
id: comp.id,
|
|
413
|
+
name: comp.name,
|
|
414
|
+
description: comp.description,
|
|
415
|
+
category: comp.category,
|
|
416
|
+
tags: comp.tags || []
|
|
417
|
+
}));
|
|
418
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources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version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/starters/presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,aAAa,CA4C3E,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAElF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const starterPresets = {
|
|
2
|
+
next: {
|
|
3
|
+
templateName: 'next',
|
|
4
|
+
components: [
|
|
5
|
+
'button',
|
|
6
|
+
'input',
|
|
7
|
+
'label',
|
|
8
|
+
'card',
|
|
9
|
+
'badge',
|
|
10
|
+
'toast',
|
|
11
|
+
'modal',
|
|
12
|
+
'tabs',
|
|
13
|
+
'select',
|
|
14
|
+
'checkbox'
|
|
15
|
+
],
|
|
16
|
+
description: 'Full-featured components for Next.js applications'
|
|
17
|
+
},
|
|
18
|
+
vite: {
|
|
19
|
+
templateName: 'vite',
|
|
20
|
+
components: [
|
|
21
|
+
'button',
|
|
22
|
+
'input',
|
|
23
|
+
'label',
|
|
24
|
+
'card',
|
|
25
|
+
'badge',
|
|
26
|
+
'divider',
|
|
27
|
+
'progress'
|
|
28
|
+
],
|
|
29
|
+
description: 'Lightweight components for Vite-based applications'
|
|
30
|
+
},
|
|
31
|
+
tauri: {
|
|
32
|
+
templateName: 'tauri',
|
|
33
|
+
components: [
|
|
34
|
+
'button',
|
|
35
|
+
'input',
|
|
36
|
+
'label',
|
|
37
|
+
'card',
|
|
38
|
+
'modal',
|
|
39
|
+
'switch',
|
|
40
|
+
'slider',
|
|
41
|
+
'context-menu'
|
|
42
|
+
],
|
|
43
|
+
description: 'Desktop-optimized components for Tauri applications'
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export function getStarterComponents(template) {
|
|
47
|
+
return starterPresets[template].components;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/starters/presets.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAqD;IAC9E,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE;YACV,QAAQ;YACR,OAAO;YACP,OAAO;YACP,MAAM;YACN,OAAO;YACP,OAAO;YACP,OAAO;YACP,MAAM;YACN,QAAQ;YACR,UAAU;SACX;QACD,WAAW,EAAE,mDAAmD;KACjE;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE;YACV,QAAQ;YACR,OAAO;YACP,OAAO;YACP,MAAM;YACN,OAAO;YACP,SAAS;YACT,UAAU;SACX;QACD,WAAW,EAAE,oDAAoD;KAClE;IACD,KAAK,EAAE;QACL,YAAY,EAAE,OAAO;QACrB,UAAU,EAAE;YACV,QAAQ;YACR,OAAO;YACP,OAAO;YACP,MAAM;YACN,OAAO;YACP,QAAQ;YACR,QAAQ;YACR,cAAc;SACf;QACD,WAAW,EAAE,qDAAqD;KACnE;CACF,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAAC,QAAmC;IACtE,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC;AAC7C,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type ComponentCategory = 'input' | 'display' | 'feedback' | 'navigation' | 'container' | 'action' | 'composition' | 'layout' | 'data';
|
|
2
|
+
export interface ComponentSource {
|
|
3
|
+
packageName: '@ui-lab/components';
|
|
4
|
+
exportName: string;
|
|
5
|
+
packagePath: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ComponentMetadata {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
category: ComponentCategory;
|
|
12
|
+
source: ComponentSource;
|
|
13
|
+
relatedComponents: string[];
|
|
14
|
+
tags?: string[];
|
|
15
|
+
accessibility?: {
|
|
16
|
+
hasAriaSupport: boolean;
|
|
17
|
+
notes?: string[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface ComponentRegistry {
|
|
21
|
+
[componentId: string]: ComponentMetadata;
|
|
22
|
+
}
|
|
23
|
+
export interface CategoryDefinition {
|
|
24
|
+
id: ComponentCategory;
|
|
25
|
+
name: string;
|
|
26
|
+
label: string;
|
|
27
|
+
description: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface StarterPreset {
|
|
31
|
+
templateName: 'next' | 'vite' | 'tauri';
|
|
32
|
+
components: string[];
|
|
33
|
+
description: string;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,MAAM,CAAC;AAEX,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE;QACd,cAAc,EAAE,OAAO,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,iBAAiB,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ui-lab-registry",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Component registry and metadata management for ui-lab-component",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"react",
|
|
12
|
+
"components",
|
|
13
|
+
"registry",
|
|
14
|
+
"metadata",
|
|
15
|
+
"ui-lab"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/kyza0d/ui-lab.app"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/kyza0d/ui-lab.app#readme",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/kyza0d/ui-lab.app/issues"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./components": {
|
|
31
|
+
"import": "./dist/components/index.js",
|
|
32
|
+
"types": "./dist/components/index.d.ts"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"src"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc",
|
|
44
|
+
"type-check": "tsc --noEmit"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@gsap/react": "^2.1.2",
|
|
48
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
49
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
50
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
51
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
52
|
+
"class-variance-authority": "^0.7.0",
|
|
53
|
+
"clsx": "^2.1.1",
|
|
54
|
+
"cmdk": "^1.1.1",
|
|
55
|
+
"gsap": "^3.12.2",
|
|
56
|
+
"lucide-react": "^0.555.0",
|
|
57
|
+
"react": "^19.2.0",
|
|
58
|
+
"react-icons": "^5.5.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "^20",
|
|
62
|
+
"@types/react": "^19",
|
|
63
|
+
"@types/react-dom": "^19",
|
|
64
|
+
"typescript": "^5"
|
|
65
|
+
}
|
|
66
|
+
}
|