@oxcide-ui/schema 0.0.3 → 0.0.4

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.
@@ -1,665 +0,0 @@
1
- import type { IconName } from '@oxcide-ui/icons'
2
- import { z } from 'zod'
3
-
4
- export const iconPropsSchema = z.object({
5
- /** Icon name from the library */
6
- name: z.string().default('') as z.ZodType<IconName | ''>,
7
- /** Icon size (CSS value) */
8
- size: z.union([z.string(), z.number()]).optional().default('1em'),
9
- /** Icon color (CSS value) */
10
- color: z.string().optional(),
11
- /** Whether the icon should spin */
12
- spin: z.boolean().optional().default(false)
13
- })
14
-
15
- /* @oxcide-sync:source
16
- export type IconProps = z.input<typeof iconPropsSchema>
17
- export type IconResolvedProps = z.infer<typeof iconPropsSchema>
18
- @oxcide-sync:end */
19
- export interface IconProps {
20
- name:
21
- | ''
22
- | 'folderPlus'
23
- | 'receipt'
24
- | 'asterisk'
25
- | 'star'
26
- | 'faceSmile'
27
- | 'pinterest'
28
- | 'image'
29
- | 'expand'
30
- | 'penToSquare'
31
- | 'wavePulse'
32
- | 'turkishLira'
33
- | 'spinnerDotted'
34
- | 'crown'
35
- | 'pauseCircle'
36
- | 'stop'
37
- | 'warehouse'
38
- | 'objectsColumn'
39
- | 'clipboard'
40
- | 'copy'
41
- | 'playCircle'
42
- | 'play'
43
- | 'venus'
44
- | 'cartMinus'
45
- | 'filePlus'
46
- | 'microchip'
47
- | 'twitch'
48
- | 'video'
49
- | 'buildingColumns'
50
- | 'fileCheck'
51
- | 'verified'
52
- | 'microchipAi'
53
- | 'trophy'
54
- | 'barcode'
55
- | 'code'
56
- | 'fileArrowUp'
57
- | 'upload'
58
- | 'send'
59
- | 'mars'
60
- | 'tiktok'
61
- | 'arrowUpRightAndArrowDownLeftFromCenter'
62
- | 'ethereum'
63
- | 'listCheck'
64
- | 'thumbtack'
65
- | 'arrowDownLeftAndArrowUpRightToCenter'
66
- | 'equals'
67
- | 'lightbulb'
68
- | 'starHalf'
69
- | 'addressBook'
70
- | 'chartScatter'
71
- | 'indianRupee'
72
- | 'starHalfFill'
73
- | 'cartArrowDown'
74
- | 'calendarClock'
75
- | 'sortUpFill'
76
- | 'sparkles'
77
- | 'bullseye'
78
- | 'sortDownFill'
79
- | 'graduationCap'
80
- | 'hammer'
81
- | 'bellSlash'
82
- | 'gauge'
83
- | 'shop'
84
- | 'headphones'
85
- | 'eraser'
86
- | 'stopwatch'
87
- | 'deleteLeft'
88
- | 'hourglass'
89
- | 'truck'
90
- | 'wrench'
91
- | 'microphone'
92
- | 'megaphone'
93
- | 'arrowRightArrowLeft'
94
- | 'bitcoin'
95
- | 'fileEdit'
96
- | 'language'
97
- | 'fileExport'
98
- | 'save'
99
- | 'fileImport'
100
- | 'fileWord'
101
- | 'microsoft'
102
- | 'gift'
103
- | 'box'
104
- | 'cartPlus'
105
- | 'thumbsDownFill'
106
- | 'thumbsUpFill'
107
- | 'arrowsAlt'
108
- | 'calculator'
109
- | 'sortAltSlash'
110
- | 'arrowsH'
111
- | 'arrowsV'
112
- | 'pound'
113
- | 'prime'
114
- | 'chartPie'
115
- | 'reddit'
116
- | 'sync'
117
- | 'refresh'
118
- | 'shoppingBag'
119
- | 'server'
120
- | 'cloud'
121
- | 'database'
122
- | 'hashtag'
123
- | 'tag'
124
- | 'bookmarkFill'
125
- | 'filterFill'
126
- | 'heartFill'
127
- | 'flagFill'
128
- | 'circle'
129
- | 'circleFill'
130
- | 'bolt'
131
- | 'history'
132
- | 'at'
133
- | 'arrowUpRight'
134
- | 'arrowUpLeft'
135
- | 'arrowDownLeft'
136
- | 'arrowDownRight'
137
- | 'telegram'
138
- | 'stopCircle'
139
- | 'whatsapp'
140
- | 'building'
141
- | 'qrcode'
142
- | 'car'
143
- | 'instagram'
144
- | 'linkedin'
145
- | 'slack'
146
- | 'moon'
147
- | 'sun'
148
- | 'youtube'
149
- | 'vimeo'
150
- | 'flag'
151
- | 'wallet'
152
- | 'map'
153
- | 'link'
154
- | 'creditCard'
155
- | 'discord'
156
- | 'percentage'
157
- | 'euro'
158
- | 'book'
159
- | 'shield'
160
- | 'paypal'
161
- | 'amazon'
162
- | 'phone'
163
- | 'filterSlash'
164
- | 'facebook'
165
- | 'github'
166
- | 'twitter'
167
- | 'stepBackwardAlt'
168
- | 'stepForwardAlt'
169
- | 'forward'
170
- | 'backward'
171
- | 'fastBackward'
172
- | 'fastForward'
173
- | 'pause'
174
- | 'compass'
175
- | 'idCard'
176
- | 'ticket'
177
- | 'fileO'
178
- | 'reply'
179
- | 'directionsAlt'
180
- | 'directions'
181
- | 'thumbsUp'
182
- | 'thumbsDown'
183
- | 'sortNumericDownAlt'
184
- | 'sortNumericUpAlt'
185
- | 'sortAlphaDownAlt'
186
- | 'sortAlphaUpAlt'
187
- | 'sortNumericDown'
188
- | 'sortNumericUp'
189
- | 'sortAlphaDown'
190
- | 'sortAlphaUp'
191
- | 'sortAlt'
192
- | 'sortAmountUp'
193
- | 'sortAmountDown'
194
- | 'sortAmountDownAlt'
195
- | 'sortAmountUpAlt'
196
- | 'palette'
197
- | 'undo'
198
- | 'desktop'
199
- | 'slidersV'
200
- | 'slidersH'
201
- | 'searchPlus'
202
- | 'searchMinus'
203
- | 'fileExcel'
204
- | 'filePdf'
205
- | 'checkSquare'
206
- | 'chartLine'
207
- | 'userEdit'
208
- | 'exclamationCircle'
209
- | 'android'
210
- | 'mobile'
211
- | 'google'
212
- | 'search'
213
- | 'apple'
214
- | 'heart'
215
- | 'tablet'
216
- | 'key'
217
- | 'unlock'
218
- | 'shoppingCart'
219
- | 'comments'
220
- | 'comment'
221
- | 'briefcase'
222
- | 'bell'
223
- | 'paperclip'
224
- | 'shareAlt'
225
- | 'envelope'
226
- | 'volumeDown'
227
- | 'volumeUp'
228
- | 'volumeOff'
229
- | 'eject'
230
- | 'moneyBill'
231
- | 'images'
232
- | 'signIn'
233
- | 'signOut'
234
- | 'wifi'
235
- | 'sitemap'
236
- | 'chartBar'
237
- | 'camera'
238
- | 'dollar'
239
- | 'lockOpen'
240
- | 'table'
241
- | 'mapMarker'
242
- | 'list'
243
- | 'eyeSlash'
244
- | 'eye'
245
- | 'folderOpen'
246
- | 'folder'
247
- | 'inbox'
248
- | 'lock'
249
- | 'tags'
250
- | 'powerOff'
251
- | 'questionCircle'
252
- | 'info'
253
- | 'question'
254
- | 'clone'
255
- | 'file'
256
- | 'calendarTimes'
257
- | 'calendarMinus'
258
- | 'calendarPlus'
259
- | 'ellipsisV'
260
- | 'ellipsisH'
261
- | 'bookmark'
262
- | 'globe'
263
- | 'replay'
264
- | 'filter'
265
- | 'sort'
266
- | 'print'
267
- | 'alignRight'
268
- | 'alignLeft'
269
- | 'alignCenter'
270
- | 'alignJustify'
271
- | 'cog'
272
- | 'cloudDownload'
273
- | 'download'
274
- | 'cloudUpload'
275
- | 'pencil'
276
- | 'users'
277
- | 'clock'
278
- | 'userMinus'
279
- | 'userPlus'
280
- | 'trash'
281
- | 'windowMinimize'
282
- | 'windowMaximize'
283
- | 'externalLink'
284
- | 'user'
285
- | 'exclamationTriangle'
286
- | 'calendar'
287
- | 'chevronCircleLeft'
288
- | 'chevronCircleDown'
289
- | 'chevronCircleRight'
290
- | 'chevronCircleUp'
291
- | 'angleDoubleDown'
292
- | 'angleDoubleLeft'
293
- | 'angleDoubleRight'
294
- | 'angleDoubleUp'
295
- | 'angleDown'
296
- | 'angleLeft'
297
- | 'angleRight'
298
- | 'angleUp'
299
- | 'ban'
300
- | 'starFill'
301
- | 'chevronLeft'
302
- | 'chevronRight'
303
- | 'chevronDown'
304
- | 'chevronUp'
305
- | 'caretLeft'
306
- | 'caretRight'
307
- | 'caretDown'
308
- | 'caretUp'
309
- | 'check'
310
- | 'checkCircle'
311
- | 'times'
312
- | 'timesCircle'
313
- | 'plus'
314
- | 'plusCircle'
315
- | 'minus'
316
- | 'minusCircle'
317
- | 'circleOn'
318
- | 'circleOff'
319
- | 'sortDown'
320
- | 'sortUp'
321
- | 'stepBackward'
322
- | 'stepForward'
323
- | 'thLarge'
324
- | 'arrowDown'
325
- | 'arrowLeft'
326
- | 'arrowRight'
327
- | 'arrowUp'
328
- | 'bars'
329
- | 'arrowCircleDown'
330
- | 'arrowCircleLeft'
331
- | 'arrowCircleRight'
332
- | 'arrowCircleUp'
333
- | 'infoCircle'
334
- | 'home'
335
- | 'spinner'
336
- size?: string | number | undefined
337
- color?: string | undefined
338
- spin?: boolean | undefined
339
- }
340
- export type IconResolvedProps = {
341
- size: string | number
342
- spin: boolean
343
- name:
344
- | ''
345
- | 'folderPlus'
346
- | 'receipt'
347
- | 'asterisk'
348
- | 'star'
349
- | 'faceSmile'
350
- | 'pinterest'
351
- | 'image'
352
- | 'expand'
353
- | 'penToSquare'
354
- | 'wavePulse'
355
- | 'turkishLira'
356
- | 'spinnerDotted'
357
- | 'crown'
358
- | 'pauseCircle'
359
- | 'stop'
360
- | 'warehouse'
361
- | 'objectsColumn'
362
- | 'clipboard'
363
- | 'copy'
364
- | 'playCircle'
365
- | 'play'
366
- | 'venus'
367
- | 'cartMinus'
368
- | 'filePlus'
369
- | 'microchip'
370
- | 'twitch'
371
- | 'video'
372
- | 'buildingColumns'
373
- | 'fileCheck'
374
- | 'verified'
375
- | 'microchipAi'
376
- | 'trophy'
377
- | 'barcode'
378
- | 'code'
379
- | 'fileArrowUp'
380
- | 'upload'
381
- | 'send'
382
- | 'mars'
383
- | 'tiktok'
384
- | 'arrowUpRightAndArrowDownLeftFromCenter'
385
- | 'ethereum'
386
- | 'listCheck'
387
- | 'thumbtack'
388
- | 'arrowDownLeftAndArrowUpRightToCenter'
389
- | 'equals'
390
- | 'lightbulb'
391
- | 'starHalf'
392
- | 'addressBook'
393
- | 'chartScatter'
394
- | 'indianRupee'
395
- | 'starHalfFill'
396
- | 'cartArrowDown'
397
- | 'calendarClock'
398
- | 'sortUpFill'
399
- | 'sparkles'
400
- | 'bullseye'
401
- | 'sortDownFill'
402
- | 'graduationCap'
403
- | 'hammer'
404
- | 'bellSlash'
405
- | 'gauge'
406
- | 'shop'
407
- | 'headphones'
408
- | 'eraser'
409
- | 'stopwatch'
410
- | 'deleteLeft'
411
- | 'hourglass'
412
- | 'truck'
413
- | 'wrench'
414
- | 'microphone'
415
- | 'megaphone'
416
- | 'arrowRightArrowLeft'
417
- | 'bitcoin'
418
- | 'fileEdit'
419
- | 'language'
420
- | 'fileExport'
421
- | 'save'
422
- | 'fileImport'
423
- | 'fileWord'
424
- | 'microsoft'
425
- | 'gift'
426
- | 'box'
427
- | 'cartPlus'
428
- | 'thumbsDownFill'
429
- | 'thumbsUpFill'
430
- | 'arrowsAlt'
431
- | 'calculator'
432
- | 'sortAltSlash'
433
- | 'arrowsH'
434
- | 'arrowsV'
435
- | 'pound'
436
- | 'prime'
437
- | 'chartPie'
438
- | 'reddit'
439
- | 'sync'
440
- | 'refresh'
441
- | 'shoppingBag'
442
- | 'server'
443
- | 'cloud'
444
- | 'database'
445
- | 'hashtag'
446
- | 'tag'
447
- | 'bookmarkFill'
448
- | 'filterFill'
449
- | 'heartFill'
450
- | 'flagFill'
451
- | 'circle'
452
- | 'circleFill'
453
- | 'bolt'
454
- | 'history'
455
- | 'at'
456
- | 'arrowUpRight'
457
- | 'arrowUpLeft'
458
- | 'arrowDownLeft'
459
- | 'arrowDownRight'
460
- | 'telegram'
461
- | 'stopCircle'
462
- | 'whatsapp'
463
- | 'building'
464
- | 'qrcode'
465
- | 'car'
466
- | 'instagram'
467
- | 'linkedin'
468
- | 'slack'
469
- | 'moon'
470
- | 'sun'
471
- | 'youtube'
472
- | 'vimeo'
473
- | 'flag'
474
- | 'wallet'
475
- | 'map'
476
- | 'link'
477
- | 'creditCard'
478
- | 'discord'
479
- | 'percentage'
480
- | 'euro'
481
- | 'book'
482
- | 'shield'
483
- | 'paypal'
484
- | 'amazon'
485
- | 'phone'
486
- | 'filterSlash'
487
- | 'facebook'
488
- | 'github'
489
- | 'twitter'
490
- | 'stepBackwardAlt'
491
- | 'stepForwardAlt'
492
- | 'forward'
493
- | 'backward'
494
- | 'fastBackward'
495
- | 'fastForward'
496
- | 'pause'
497
- | 'compass'
498
- | 'idCard'
499
- | 'ticket'
500
- | 'fileO'
501
- | 'reply'
502
- | 'directionsAlt'
503
- | 'directions'
504
- | 'thumbsUp'
505
- | 'thumbsDown'
506
- | 'sortNumericDownAlt'
507
- | 'sortNumericUpAlt'
508
- | 'sortAlphaDownAlt'
509
- | 'sortAlphaUpAlt'
510
- | 'sortNumericDown'
511
- | 'sortNumericUp'
512
- | 'sortAlphaDown'
513
- | 'sortAlphaUp'
514
- | 'sortAlt'
515
- | 'sortAmountUp'
516
- | 'sortAmountDown'
517
- | 'sortAmountDownAlt'
518
- | 'sortAmountUpAlt'
519
- | 'palette'
520
- | 'undo'
521
- | 'desktop'
522
- | 'slidersV'
523
- | 'slidersH'
524
- | 'searchPlus'
525
- | 'searchMinus'
526
- | 'fileExcel'
527
- | 'filePdf'
528
- | 'checkSquare'
529
- | 'chartLine'
530
- | 'userEdit'
531
- | 'exclamationCircle'
532
- | 'android'
533
- | 'mobile'
534
- | 'google'
535
- | 'search'
536
- | 'apple'
537
- | 'heart'
538
- | 'tablet'
539
- | 'key'
540
- | 'unlock'
541
- | 'shoppingCart'
542
- | 'comments'
543
- | 'comment'
544
- | 'briefcase'
545
- | 'bell'
546
- | 'paperclip'
547
- | 'shareAlt'
548
- | 'envelope'
549
- | 'volumeDown'
550
- | 'volumeUp'
551
- | 'volumeOff'
552
- | 'eject'
553
- | 'moneyBill'
554
- | 'images'
555
- | 'signIn'
556
- | 'signOut'
557
- | 'wifi'
558
- | 'sitemap'
559
- | 'chartBar'
560
- | 'camera'
561
- | 'dollar'
562
- | 'lockOpen'
563
- | 'table'
564
- | 'mapMarker'
565
- | 'list'
566
- | 'eyeSlash'
567
- | 'eye'
568
- | 'folderOpen'
569
- | 'folder'
570
- | 'inbox'
571
- | 'lock'
572
- | 'tags'
573
- | 'powerOff'
574
- | 'questionCircle'
575
- | 'info'
576
- | 'question'
577
- | 'clone'
578
- | 'file'
579
- | 'calendarTimes'
580
- | 'calendarMinus'
581
- | 'calendarPlus'
582
- | 'ellipsisV'
583
- | 'ellipsisH'
584
- | 'bookmark'
585
- | 'globe'
586
- | 'replay'
587
- | 'filter'
588
- | 'sort'
589
- | 'print'
590
- | 'alignRight'
591
- | 'alignLeft'
592
- | 'alignCenter'
593
- | 'alignJustify'
594
- | 'cog'
595
- | 'cloudDownload'
596
- | 'download'
597
- | 'cloudUpload'
598
- | 'pencil'
599
- | 'users'
600
- | 'clock'
601
- | 'userMinus'
602
- | 'userPlus'
603
- | 'trash'
604
- | 'windowMinimize'
605
- | 'windowMaximize'
606
- | 'externalLink'
607
- | 'user'
608
- | 'exclamationTriangle'
609
- | 'calendar'
610
- | 'chevronCircleLeft'
611
- | 'chevronCircleDown'
612
- | 'chevronCircleRight'
613
- | 'chevronCircleUp'
614
- | 'angleDoubleDown'
615
- | 'angleDoubleLeft'
616
- | 'angleDoubleRight'
617
- | 'angleDoubleUp'
618
- | 'angleDown'
619
- | 'angleLeft'
620
- | 'angleRight'
621
- | 'angleUp'
622
- | 'ban'
623
- | 'starFill'
624
- | 'chevronLeft'
625
- | 'chevronRight'
626
- | 'chevronDown'
627
- | 'chevronUp'
628
- | 'caretLeft'
629
- | 'caretRight'
630
- | 'caretDown'
631
- | 'caretUp'
632
- | 'check'
633
- | 'checkCircle'
634
- | 'times'
635
- | 'timesCircle'
636
- | 'plus'
637
- | 'plusCircle'
638
- | 'minus'
639
- | 'minusCircle'
640
- | 'circleOn'
641
- | 'circleOff'
642
- | 'sortDown'
643
- | 'sortUp'
644
- | 'stepBackward'
645
- | 'stepForward'
646
- | 'thLarge'
647
- | 'arrowDown'
648
- | 'arrowLeft'
649
- | 'arrowRight'
650
- | 'arrowUp'
651
- | 'bars'
652
- | 'arrowCircleDown'
653
- | 'arrowCircleLeft'
654
- | 'arrowCircleRight'
655
- | 'arrowCircleUp'
656
- | 'infoCircle'
657
- | 'home'
658
- | 'spinner'
659
- color?: string | undefined
660
- }
661
-
662
- export function getIconDefaults(props: Partial<IconProps> = {}): IconResolvedProps {
663
- return iconPropsSchema.parse(props)
664
- // return iconPropsSchema.parse({ name: 'check', ...props })
665
- }
@@ -1,12 +0,0 @@
1
- export * from './badge'
2
- export * from './box'
3
- export * from './button'
4
- export * from './checkbox'
5
- export * from './dialog'
6
- export * from './icon'
7
- export * from './input'
8
- export * from './radiobutton'
9
- export * from './stack'
10
- export * from './switch'
11
- export * from './tag'
12
- export * from './toast'