@jerry-fd/ui 0.4.9 → 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/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import React__default from 'react';
4
4
  import * as tailwind_variants from 'tailwind-variants';
5
5
  import { VariantProps } from 'tailwind-variants';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { Avatar as Avatar$1, Tabs as Tabs$1, Popover as Popover$1, Switch as Switch$1, DropdownMenu as DropdownMenu$2, Collapsible as Collapsible$1, Tooltip as Tooltip$1 } from 'radix-ui';
8
7
  import { Command as Command$1 } from 'cmdk';
8
+ import { Tabs as Tabs$1, Popover as Popover$1, Switch as Switch$1, DropdownMenu as DropdownMenu$2, Collapsible as Collapsible$1, Tooltip as Tooltip$1, ScrollArea as ScrollArea$1, HoverCard as HoverCard$1 } from 'radix-ui';
9
9
  import { DialogProps } from 'vaul';
10
10
  import { B as ButtonSharedProps } from './button-DMIeJ1gB.js';
11
11
  export { a as Button, b as baseButtonStyle, c as buttonVariants } from './button-DMIeJ1gB.js';
@@ -79,6 +79,14 @@ declare const twMergeConfig: {
79
79
  declare const tv: tailwind_variants.TV;
80
80
  declare const cn: (...classes: ClassNameArray) => string;
81
81
 
82
+ type Value = string | number;
83
+ declare function findOption(options: OptionItem[], value: Value): OptionItem | undefined;
84
+ declare function findOption(options: OptionItem[], value: Value[]): OptionItem[];
85
+ declare function unique<T>(array: T[]): T[];
86
+ declare function compact<T>(array: T[]): NonNullable<T>[];
87
+
88
+ declare function mergeRefs<T = unknown>(refs: Array<React.Ref<T> | undefined | null>): React.RefCallback<T>;
89
+
82
90
  type IValue = string;
83
91
  interface IOptionItem {
84
92
  key?: React.Key;
@@ -91,13 +99,6 @@ type PolymorphicProps<T extends React.ElementType, Props = object> = {
91
99
  as?: T;
92
100
  } & Props & Omit<React.ComponentPropsWithoutRef<T>, keyof Props | 'as'>;
93
101
 
94
- declare function findOption(options: IOptionItem[], value: IValue): IOptionItem | undefined;
95
- declare function findOption(options: IOptionItem[], value: IValue[]): IOptionItem[];
96
- declare function unique<T>(array: T[]): T[];
97
- declare function compact<T>(array: T[]): NonNullable<T>[];
98
-
99
- declare function mergeRefs<T = unknown>(refs: Array<React.Ref<T> | undefined | null>): React.RefCallback<T>;
100
-
101
102
  declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & VariantProps<tailwind_variants.TVReturnType<{
102
103
  variant: {
103
104
  default: string;
@@ -140,171 +141,574 @@ declare namespace card {
140
141
  export { card_Card as Card, card_CardContent as CardContent, card_CardDescription as CardDescription, card_CardExtra as CardExtra, card_CardFooter as CardFooter, card_CardHeader as CardHeader, card_CardHeading as CardHeading, card_CardIcon as CardIcon, card_CardTable as CardTable, card_CardTitle as CardTitle, card_CardToolbar as CardToolbar, Card as Root };
141
142
  }
142
143
 
143
- interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
144
- asChild?: boolean;
145
- dotClassName?: string;
146
- disabled?: boolean;
147
- }
148
- interface BadgeButtonProps extends React$1.ButtonHTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeButtonVariants> {
149
- asChild?: boolean;
150
- }
151
- type BadgeDotProps = React$1.HTMLAttributes<HTMLSpanElement>;
152
- declare const badgeVariants: tailwind_variants.TVReturnType<{
153
- variant: {
154
- primary: string;
155
- secondary: string;
156
- success: string;
157
- warning: string;
158
- info: string;
159
- outline: string;
160
- error: string;
144
+ declare const AVATAR_ROOT_NAME = "AvatarRoot";
145
+ declare const avatarVariants: tailwind_variants.TVReturnType<{
146
+ withRing: {
147
+ true: string;
161
148
  };
162
- appearance: {
163
- default: string;
164
- light: string;
165
- outline: string;
166
- ghost: string;
149
+ size: {
150
+ '80': {
151
+ root: string;
152
+ };
153
+ '72': {
154
+ root: string;
155
+ };
156
+ '64': {
157
+ root: string;
158
+ };
159
+ '56': {
160
+ root: string;
161
+ };
162
+ '48': {
163
+ root: string;
164
+ };
165
+ '42': {
166
+ root: string;
167
+ };
168
+ '38': {
169
+ root: string;
170
+ };
171
+ '32': {
172
+ root: string;
173
+ };
174
+ '24': {
175
+ root: string;
176
+ };
177
+ '20': {
178
+ root: string;
179
+ };
167
180
  };
168
- disabled: {
181
+ color: {
182
+ gray: {
183
+ root: string;
184
+ };
185
+ yellow: {
186
+ root: string;
187
+ };
188
+ blue: {
189
+ root: string;
190
+ };
191
+ sky: {
192
+ root: string;
193
+ };
194
+ purple: {
195
+ root: string;
196
+ };
197
+ red: {
198
+ root: string;
199
+ };
200
+ green: {
201
+ root: string;
202
+ };
203
+ teal: {
204
+ root: string;
205
+ };
206
+ violet: {
207
+ root: string;
208
+ };
209
+ pink: {
210
+ root: string;
211
+ };
212
+ orange: {
213
+ root: string;
214
+ };
215
+ };
216
+ }, {
217
+ root: string[];
218
+ image: string;
219
+ indicator: string;
220
+ }, undefined, {
221
+ withRing: {
169
222
  true: string;
170
223
  };
171
224
  size: {
172
- large: string;
173
- medium: string;
174
- small: string;
175
- xsmall: string;
225
+ '80': {
226
+ root: string;
227
+ };
228
+ '72': {
229
+ root: string;
230
+ };
231
+ '64': {
232
+ root: string;
233
+ };
234
+ '56': {
235
+ root: string;
236
+ };
237
+ '48': {
238
+ root: string;
239
+ };
240
+ '42': {
241
+ root: string;
242
+ };
243
+ '38': {
244
+ root: string;
245
+ };
246
+ '32': {
247
+ root: string;
248
+ };
249
+ '24': {
250
+ root: string;
251
+ };
252
+ '20': {
253
+ root: string;
254
+ };
176
255
  };
177
- shape: {
178
- default: string;
179
- circle: string;
256
+ color: {
257
+ gray: {
258
+ root: string;
259
+ };
260
+ yellow: {
261
+ root: string;
262
+ };
263
+ blue: {
264
+ root: string;
265
+ };
266
+ sky: {
267
+ root: string;
268
+ };
269
+ purple: {
270
+ root: string;
271
+ };
272
+ red: {
273
+ root: string;
274
+ };
275
+ green: {
276
+ root: string;
277
+ };
278
+ teal: {
279
+ root: string;
280
+ };
281
+ violet: {
282
+ root: string;
283
+ };
284
+ pink: {
285
+ root: string;
286
+ };
287
+ orange: {
288
+ root: string;
289
+ };
180
290
  };
181
- }, undefined, string[], {
182
- variant: {
183
- primary: string;
184
- secondary: string;
185
- success: string;
186
- warning: string;
187
- info: string;
188
- outline: string;
189
- error: string;
291
+ }, {
292
+ root: string[];
293
+ image: string;
294
+ indicator: string;
295
+ }, tailwind_variants.TVReturnType<{
296
+ withRing: {
297
+ true: string;
190
298
  };
191
- appearance: {
192
- default: string;
193
- light: string;
194
- outline: string;
195
- ghost: string;
299
+ size: {
300
+ '80': {
301
+ root: string;
302
+ };
303
+ '72': {
304
+ root: string;
305
+ };
306
+ '64': {
307
+ root: string;
308
+ };
309
+ '56': {
310
+ root: string;
311
+ };
312
+ '48': {
313
+ root: string;
314
+ };
315
+ '42': {
316
+ root: string;
317
+ };
318
+ '38': {
319
+ root: string;
320
+ };
321
+ '32': {
322
+ root: string;
323
+ };
324
+ '24': {
325
+ root: string;
326
+ };
327
+ '20': {
328
+ root: string;
329
+ };
196
330
  };
197
- disabled: {
331
+ color: {
332
+ gray: {
333
+ root: string;
334
+ };
335
+ yellow: {
336
+ root: string;
337
+ };
338
+ blue: {
339
+ root: string;
340
+ };
341
+ sky: {
342
+ root: string;
343
+ };
344
+ purple: {
345
+ root: string;
346
+ };
347
+ red: {
348
+ root: string;
349
+ };
350
+ green: {
351
+ root: string;
352
+ };
353
+ teal: {
354
+ root: string;
355
+ };
356
+ violet: {
357
+ root: string;
358
+ };
359
+ pink: {
360
+ root: string;
361
+ };
362
+ orange: {
363
+ root: string;
364
+ };
365
+ };
366
+ }, {
367
+ root: string[];
368
+ image: string;
369
+ indicator: string;
370
+ }, undefined, unknown, unknown, undefined>>;
371
+ declare const avatarRingVariants: tailwind_variants.TVReturnType<{
372
+ color: {
373
+ gray: string;
374
+ yellow: string;
375
+ blue: string;
376
+ sky: string;
377
+ purple: string;
378
+ red: string;
379
+ green: string;
380
+ teal: string;
381
+ violet: string;
382
+ pink: string;
383
+ orange: string;
384
+ white: string;
385
+ black: string;
386
+ };
387
+ }, undefined, "ring-2 ring-offset-2", {
388
+ color: {
389
+ gray: string;
390
+ yellow: string;
391
+ blue: string;
392
+ sky: string;
393
+ purple: string;
394
+ red: string;
395
+ green: string;
396
+ teal: string;
397
+ violet: string;
398
+ pink: string;
399
+ orange: string;
400
+ white: string;
401
+ black: string;
402
+ };
403
+ }, undefined, tailwind_variants.TVReturnType<{
404
+ color: {
405
+ gray: string;
406
+ yellow: string;
407
+ blue: string;
408
+ sky: string;
409
+ purple: string;
410
+ red: string;
411
+ green: string;
412
+ teal: string;
413
+ violet: string;
414
+ pink: string;
415
+ orange: string;
416
+ white: string;
417
+ black: string;
418
+ };
419
+ }, undefined, "ring-2 ring-offset-2", unknown, unknown, undefined>>;
420
+ type AvatarSharedProps = VariantProps<typeof avatarVariants>;
421
+ type AvatarRingSharedProps = VariantProps<typeof avatarRingVariants>;
422
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<AvatarSharedProps & Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "color"> & {
423
+ asChild?: boolean;
424
+ } & React$1.RefAttributes<HTMLImageElement>>;
425
+ type AvatarRootProps = VariantProps<typeof avatarVariants> & React$1.HTMLAttributes<HTMLDivElement> & {
426
+ asChild?: boolean;
427
+ placeholderType?: 'user' | 'company';
428
+ ring?: boolean | AvatarRingSharedProps['color'];
429
+ };
430
+ declare const AvatarRoot: React$1.ForwardRefExoticComponent<VariantProps<tailwind_variants.TVReturnType<{
431
+ withRing: {
198
432
  true: string;
199
433
  };
200
434
  size: {
201
- large: string;
202
- medium: string;
203
- small: string;
204
- xsmall: string;
435
+ '80': {
436
+ root: string;
437
+ };
438
+ '72': {
439
+ root: string;
440
+ };
441
+ '64': {
442
+ root: string;
443
+ };
444
+ '56': {
445
+ root: string;
446
+ };
447
+ '48': {
448
+ root: string;
449
+ };
450
+ '42': {
451
+ root: string;
452
+ };
453
+ '38': {
454
+ root: string;
455
+ };
456
+ '32': {
457
+ root: string;
458
+ };
459
+ '24': {
460
+ root: string;
461
+ };
462
+ '20': {
463
+ root: string;
464
+ };
205
465
  };
206
- shape: {
207
- default: string;
208
- circle: string;
466
+ color: {
467
+ gray: {
468
+ root: string;
469
+ };
470
+ yellow: {
471
+ root: string;
472
+ };
473
+ blue: {
474
+ root: string;
475
+ };
476
+ sky: {
477
+ root: string;
478
+ };
479
+ purple: {
480
+ root: string;
481
+ };
482
+ red: {
483
+ root: string;
484
+ };
485
+ green: {
486
+ root: string;
487
+ };
488
+ teal: {
489
+ root: string;
490
+ };
491
+ violet: {
492
+ root: string;
493
+ };
494
+ pink: {
495
+ root: string;
496
+ };
497
+ orange: {
498
+ root: string;
499
+ };
209
500
  };
210
- }, undefined, tailwind_variants.TVReturnType<{
211
- variant: {
212
- primary: string;
213
- secondary: string;
214
- success: string;
215
- warning: string;
216
- info: string;
217
- outline: string;
218
- error: string;
501
+ }, {
502
+ root: string[];
503
+ image: string;
504
+ indicator: string;
505
+ }, undefined, {
506
+ withRing: {
507
+ true: string;
508
+ };
509
+ size: {
510
+ '80': {
511
+ root: string;
512
+ };
513
+ '72': {
514
+ root: string;
515
+ };
516
+ '64': {
517
+ root: string;
518
+ };
519
+ '56': {
520
+ root: string;
521
+ };
522
+ '48': {
523
+ root: string;
524
+ };
525
+ '42': {
526
+ root: string;
527
+ };
528
+ '38': {
529
+ root: string;
530
+ };
531
+ '32': {
532
+ root: string;
533
+ };
534
+ '24': {
535
+ root: string;
536
+ };
537
+ '20': {
538
+ root: string;
539
+ };
219
540
  };
220
- appearance: {
221
- default: string;
222
- light: string;
223
- outline: string;
224
- ghost: string;
541
+ color: {
542
+ gray: {
543
+ root: string;
544
+ };
545
+ yellow: {
546
+ root: string;
547
+ };
548
+ blue: {
549
+ root: string;
550
+ };
551
+ sky: {
552
+ root: string;
553
+ };
554
+ purple: {
555
+ root: string;
556
+ };
557
+ red: {
558
+ root: string;
559
+ };
560
+ green: {
561
+ root: string;
562
+ };
563
+ teal: {
564
+ root: string;
565
+ };
566
+ violet: {
567
+ root: string;
568
+ };
569
+ pink: {
570
+ root: string;
571
+ };
572
+ orange: {
573
+ root: string;
574
+ };
225
575
  };
226
- disabled: {
576
+ }, {
577
+ root: string[];
578
+ image: string;
579
+ indicator: string;
580
+ }, tailwind_variants.TVReturnType<{
581
+ withRing: {
227
582
  true: string;
228
583
  };
229
584
  size: {
230
- large: string;
231
- medium: string;
232
- small: string;
233
- xsmall: string;
234
- };
235
- shape: {
236
- default: string;
237
- circle: string;
238
- };
239
- }, undefined, string[], unknown, unknown, undefined>>;
240
- declare const badgeButtonVariants: tailwind_variants.TVReturnType<{
241
- variant: {
242
- default: string;
243
- };
244
- }, undefined, "-me-2 inline-flex size-14 cursor-pointer items-center justify-center rounded-md p-0 leading-none opacity-60 transition-all hover:opacity-100 [&>svg]:size-14! [&>svg]:opacity-100!", {
245
- variant: {
246
- default: string;
585
+ '80': {
586
+ root: string;
587
+ };
588
+ '72': {
589
+ root: string;
590
+ };
591
+ '64': {
592
+ root: string;
593
+ };
594
+ '56': {
595
+ root: string;
596
+ };
597
+ '48': {
598
+ root: string;
599
+ };
600
+ '42': {
601
+ root: string;
602
+ };
603
+ '38': {
604
+ root: string;
605
+ };
606
+ '32': {
607
+ root: string;
608
+ };
609
+ '24': {
610
+ root: string;
611
+ };
612
+ '20': {
613
+ root: string;
614
+ };
247
615
  };
248
- }, undefined, tailwind_variants.TVReturnType<{
249
- variant: {
250
- default: string;
616
+ color: {
617
+ gray: {
618
+ root: string;
619
+ };
620
+ yellow: {
621
+ root: string;
622
+ };
623
+ blue: {
624
+ root: string;
625
+ };
626
+ sky: {
627
+ root: string;
628
+ };
629
+ purple: {
630
+ root: string;
631
+ };
632
+ red: {
633
+ root: string;
634
+ };
635
+ green: {
636
+ root: string;
637
+ };
638
+ teal: {
639
+ root: string;
640
+ };
641
+ violet: {
642
+ root: string;
643
+ };
644
+ pink: {
645
+ root: string;
646
+ };
647
+ orange: {
648
+ root: string;
649
+ };
251
650
  };
252
- }, undefined, "-me-2 inline-flex size-14 cursor-pointer items-center justify-center rounded-md p-0 leading-none opacity-60 transition-all hover:opacity-100 [&>svg]:size-14! [&>svg]:opacity-100!", unknown, unknown, undefined>>;
253
- declare function Badge({ className, variant, size, appearance, shape, asChild, disabled, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
254
- asChild?: boolean;
255
- }): react_jsx_runtime.JSX.Element;
256
- declare function BadgeButton({ className, variant, asChild, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof badgeButtonVariants> & {
651
+ }, {
652
+ root: string[];
653
+ image: string;
654
+ indicator: string;
655
+ }, undefined, unknown, unknown, undefined>>> & React$1.HTMLAttributes<HTMLDivElement> & {
257
656
  asChild?: boolean;
657
+ placeholderType?: "user" | "company";
658
+ ring?: boolean | AvatarRingSharedProps["color"];
659
+ } & React$1.RefAttributes<HTMLDivElement>>;
660
+ declare function AvatarIndicator({ size, color, className, position, withRing, ...rest }: AvatarSharedProps & React$1.HTMLAttributes<HTMLDivElement> & {
661
+ position?: 'top' | 'bottom';
662
+ withRing?: boolean;
258
663
  }): react_jsx_runtime.JSX.Element;
259
- declare function BadgeDot({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
260
-
261
- declare const badge_Badge: typeof Badge;
262
- declare const badge_BadgeButton: typeof BadgeButton;
263
- type badge_BadgeButtonProps = BadgeButtonProps;
264
- declare const badge_BadgeDot: typeof BadgeDot;
265
- type badge_BadgeDotProps = BadgeDotProps;
266
- type badge_BadgeProps = BadgeProps;
267
- declare const badge_badgeVariants: typeof badgeVariants;
268
- declare namespace badge {
269
- export { badge_Badge as Badge, badge_BadgeButton as BadgeButton, type badge_BadgeButtonProps as BadgeButtonProps, badge_BadgeDot as BadgeDot, type badge_BadgeDotProps as BadgeDotProps, type badge_BadgeProps as BadgeProps, Badge as Root, badge_badgeVariants as badgeVariants };
664
+ declare namespace AvatarIndicator {
665
+ var displayName: string;
270
666
  }
271
-
272
667
  declare const avatarStatusVariants: tailwind_variants.TVReturnType<{
273
- variant: {
668
+ status: {
274
669
  online: string;
275
670
  offline: string;
276
671
  busy: string;
277
672
  away: string;
278
673
  };
279
- }, undefined, "border-background flex size-2 items-center rounded-full border-2", {
280
- variant: {
674
+ }, undefined, "box-content size-12 rounded-full border-4 border-bg-white", {
675
+ status: {
281
676
  online: string;
282
677
  offline: string;
283
678
  busy: string;
284
679
  away: string;
285
680
  };
286
681
  }, undefined, tailwind_variants.TVReturnType<{
287
- variant: {
682
+ status: {
288
683
  online: string;
289
684
  offline: string;
290
685
  busy: string;
291
686
  away: string;
292
687
  };
293
- }, undefined, "border-background flex size-2 items-center rounded-full border-2", unknown, unknown, undefined>>;
294
- declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
295
- declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
296
- declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
297
- declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
298
- declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
299
-
300
- declare const avatar_Avatar: typeof Avatar;
301
- declare const avatar_AvatarFallback: typeof AvatarFallback;
302
- declare const avatar_AvatarImage: typeof AvatarImage;
303
- declare const avatar_AvatarIndicator: typeof AvatarIndicator;
304
- declare const avatar_AvatarStatus: typeof AvatarStatus;
305
- declare const avatar_avatarStatusVariants: typeof avatarStatusVariants;
306
- declare namespace avatar {
307
- export { avatar_Avatar as Avatar, avatar_AvatarFallback as AvatarFallback, avatar_AvatarImage as AvatarImage, avatar_AvatarIndicator as AvatarIndicator, avatar_AvatarStatus as AvatarStatus, Avatar as Root, avatar_avatarStatusVariants as avatarStatusVariants };
688
+ }, undefined, "box-content size-12 rounded-full border-4 border-bg-white", unknown, unknown, undefined>>;
689
+ declare function AvatarStatus({ status, className, ...rest }: VariantProps<typeof avatarStatusVariants> & React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
690
+ declare namespace AvatarStatus {
691
+ var displayName: string;
692
+ }
693
+ declare const AvatarBrandLogo: React$1.ForwardRefExoticComponent<React$1.ImgHTMLAttributes<HTMLImageElement> & {
694
+ asChild?: boolean;
695
+ } & React$1.RefAttributes<HTMLImageElement>>;
696
+ declare function AvatarNotification({ className, ...rest }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
697
+ declare namespace AvatarNotification {
698
+ var displayName: string;
699
+ }
700
+ declare function AvatarBadge({ className, ...rest }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
701
+ declare namespace AvatarBadge {
702
+ var displayName: string;
703
+ }
704
+
705
+ declare const index_AVATAR_ROOT_NAME: typeof AVATAR_ROOT_NAME;
706
+ type index_AvatarRootProps = AvatarRootProps;
707
+ declare const index_avatarRingVariants: typeof avatarRingVariants;
708
+ declare const index_avatarStatusVariants: typeof avatarStatusVariants;
709
+ declare const index_avatarVariants: typeof avatarVariants;
710
+ declare namespace index {
711
+ export { index_AVATAR_ROOT_NAME as AVATAR_ROOT_NAME, type index_AvatarRootProps as AvatarRootProps, AvatarBadge as Badge, AvatarBrandLogo as BrandLogo, AvatarImage as Image, AvatarIndicator as Indicator, AvatarNotification as Notification, AvatarRoot as Root, AvatarStatus as Status, index_avatarRingVariants as avatarRingVariants, index_avatarStatusVariants as avatarStatusVariants, index_avatarVariants as avatarVariants };
308
712
  }
309
713
 
310
714
  declare function Command({ className, ...props }: React__default.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
@@ -342,7 +746,6 @@ declare const tabsListVariants: tailwind_variants.TVReturnType<{
342
746
  large: string;
343
747
  medium: string;
344
748
  small: string;
345
- xsmall: string;
346
749
  };
347
750
  }, undefined, "flex w-fit shrink-0 items-center", {
348
751
  variant: {
@@ -358,7 +761,6 @@ declare const tabsListVariants: tailwind_variants.TVReturnType<{
358
761
  large: string;
359
762
  medium: string;
360
763
  small: string;
361
- xsmall: string;
362
764
  };
363
765
  }, undefined, tailwind_variants.TVReturnType<{
364
766
  variant: {
@@ -374,7 +776,6 @@ declare const tabsListVariants: tailwind_variants.TVReturnType<{
374
776
  large: string;
375
777
  medium: string;
376
778
  small: string;
377
- xsmall: string;
378
779
  };
379
780
  }, undefined, "flex w-fit shrink-0 items-center", unknown, unknown, undefined>>;
380
781
  declare const tabsContentVariants: tailwind_variants.TVReturnType<{
@@ -487,7 +888,7 @@ declare const popoverVariants: tailwind_variants.TVReturnType<{
487
888
  header: string;
488
889
  close: string;
489
890
  }, undefined, unknown, unknown, undefined>>;
490
- type PopoverPresetProps = VariantProps<typeof popoverVariants> & React__default.ComponentProps<typeof PopoverContent> & {
891
+ type PopoverPresetProps = VariantProps<typeof popoverVariants> & Omit<React__default.ComponentProps<typeof PopoverContent>, 'content' | 'title'> & {
491
892
  title?: React__default.ReactNode;
492
893
  content?: React__default.ReactNode;
493
894
  contentClassName?: string;
@@ -579,7 +980,6 @@ interface BaseMenuItem {
579
980
  interface RadioMenuItem extends BaseMenuItem {
580
981
  groupType: 'radio';
581
982
  value?: IValue;
582
- defaultValue?: IValue;
583
983
  options: IOptionItem[];
584
984
  items?: never;
585
985
  onValueChange?: SetValue<IValue>;
@@ -587,7 +987,6 @@ interface RadioMenuItem extends BaseMenuItem {
587
987
  interface CheckboxMenuItem extends BaseMenuItem {
588
988
  groupType: 'checkbox';
589
989
  value?: IValue[];
590
- defaultValue?: IValue[];
591
990
  options: IOptionItem[];
592
991
  items?: never;
593
992
  onValueChange?: SetValue<IValue[]>;
@@ -613,6 +1012,7 @@ interface MenuPropBase {
613
1012
  items?: DropdownMenuItemProps[];
614
1013
  disabled?: boolean;
615
1014
  className?: string;
1015
+ arrow?: boolean;
616
1016
  renderItem?: (item: DropdownMenuItemProps, index: number, onAction: MenuPropBase['onAction']) => React__default.ReactNode;
617
1017
  onAction?: (item: DropdownMenuItemProps, event: React__default.MouseEvent<HTMLDivElement>) => void;
618
1018
  }
@@ -797,12 +1197,102 @@ type OwnProps = {
797
1197
  };
798
1198
  declare function Spinner({ stroke, className }: OwnProps): react_jsx_runtime.JSX.Element;
799
1199
 
800
- type Variant = 'slate' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
801
- type ColorPanelProps = React__default.ComponentProps<'div'> & {
1200
+ declare const colorPanelVariants: tailwind_variants.TVReturnType<{
1201
+ variant: {
1202
+ filled: string;
1203
+ lighter: string;
1204
+ outline: string;
1205
+ };
1206
+ ring: {
1207
+ true: string;
1208
+ };
1209
+ color: {
1210
+ neutral: string;
1211
+ slate: string;
1212
+ red: string;
1213
+ orange: string;
1214
+ amber: string;
1215
+ yellow: string;
1216
+ lime: string;
1217
+ green: string;
1218
+ emerald: string;
1219
+ teal: string;
1220
+ cyan: string;
1221
+ sky: string;
1222
+ blue: string;
1223
+ indigo: string;
1224
+ violet: string;
1225
+ purple: string;
1226
+ fuchsia: string;
1227
+ pink: string;
1228
+ rose: string;
1229
+ };
1230
+ }, undefined, "flex shrink-0 items-center justify-center rounded-2xl ring-1 ring-transparent ring-inset", {
1231
+ variant: {
1232
+ filled: string;
1233
+ lighter: string;
1234
+ outline: string;
1235
+ };
1236
+ ring: {
1237
+ true: string;
1238
+ };
1239
+ color: {
1240
+ neutral: string;
1241
+ slate: string;
1242
+ red: string;
1243
+ orange: string;
1244
+ amber: string;
1245
+ yellow: string;
1246
+ lime: string;
1247
+ green: string;
1248
+ emerald: string;
1249
+ teal: string;
1250
+ cyan: string;
1251
+ sky: string;
1252
+ blue: string;
1253
+ indigo: string;
1254
+ violet: string;
1255
+ purple: string;
1256
+ fuchsia: string;
1257
+ pink: string;
1258
+ rose: string;
1259
+ };
1260
+ }, undefined, tailwind_variants.TVReturnType<{
1261
+ variant: {
1262
+ filled: string;
1263
+ lighter: string;
1264
+ outline: string;
1265
+ };
1266
+ ring: {
1267
+ true: string;
1268
+ };
1269
+ color: {
1270
+ neutral: string;
1271
+ slate: string;
1272
+ red: string;
1273
+ orange: string;
1274
+ amber: string;
1275
+ yellow: string;
1276
+ lime: string;
1277
+ green: string;
1278
+ emerald: string;
1279
+ teal: string;
1280
+ cyan: string;
1281
+ sky: string;
1282
+ blue: string;
1283
+ indigo: string;
1284
+ violet: string;
1285
+ purple: string;
1286
+ fuchsia: string;
1287
+ pink: string;
1288
+ rose: string;
1289
+ };
1290
+ }, undefined, "flex shrink-0 items-center justify-center rounded-2xl ring-1 ring-transparent ring-inset", unknown, unknown, undefined>>;
1291
+ type SharedProps = VariantProps<typeof colorPanelVariants>;
1292
+ type ColorPanelProps = React__default.ComponentProps<'div'> & SharedProps & {
802
1293
  asChild?: boolean;
803
- variant?: Variant;
804
1294
  };
805
- declare function ColorPanel({ asChild, children, className, variant, ...props }: ColorPanelProps): react_jsx_runtime.JSX.Element;
1295
+ declare function ColorPanel({ asChild, children, className, color, variant, ring, ...props }: ColorPanelProps): react_jsx_runtime.JSX.Element;
806
1296
 
807
1297
  declare function Collapsible({ ...props }: React__default.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime.JSX.Element;
808
1298
  declare function CollapsibleTrigger({ ...props }: React__default.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
@@ -904,4 +1394,202 @@ declare const Tooltip: React__default.FC<TooltipProps & {
904
1394
  content: React__default.ReactNode;
905
1395
  }>;
906
1396
 
907
- export { avatar as Avatar, badge as Badge, ButtonSharedProps, card as Card, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPanel, command as Command, CopyableText, type CopyableTextProps, type DebouncedFunction, Drawer, type DrawerProps, DropdownMenu, type DropdownMenuItemProps, type DropdownMenuProps, type DropdownMenuVariants, type MenuPropBase, PopConfirm, type PopConfirmProps, popover as Popover, PopoverPreset, type PopoverPresetProps, type Scheduler, Skeleton, Spinner, Switch, tabs as Tabs, type ThrottledFunction, Tooltip, TooltipArrow, TooltipProvider, TooltipRoot, TooltipTrigger, UIProvider, type UseDrawerOptions, cn, compact, debounce, dropdownMenuStyles, findOption, formatCurrency, formatIntegerCompact, formatNumber, getFirstLetters, mergeRefs, throttle, tooltipVariants, tv, twMergeConfig, unique, useDrawer };
1397
+ type BadgeSharedProps = VariantProps<typeof badgeVariants>;
1398
+ interface BadgeRootProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'>, BadgeSharedProps {
1399
+ asChild?: boolean;
1400
+ }
1401
+ declare const badgeVariants: tailwind_variants.TVReturnType<{
1402
+ size: {
1403
+ medium: {
1404
+ root: string;
1405
+ icon: string;
1406
+ dot: string;
1407
+ };
1408
+ small: {
1409
+ root: string;
1410
+ icon: string;
1411
+ dot: string;
1412
+ };
1413
+ xsmall: {
1414
+ root: string;
1415
+ icon: string;
1416
+ dot: string;
1417
+ };
1418
+ };
1419
+ variant: {
1420
+ filled: {
1421
+ root: string;
1422
+ };
1423
+ outline: {
1424
+ root: string;
1425
+ };
1426
+ lighter: string;
1427
+ ghost: string;
1428
+ };
1429
+ color: {
1430
+ primary: string;
1431
+ info: string;
1432
+ success: string;
1433
+ warning: string;
1434
+ error: string;
1435
+ neutral: string;
1436
+ };
1437
+ shape: {
1438
+ default: string;
1439
+ circle: {
1440
+ root: string;
1441
+ };
1442
+ };
1443
+ disabled: {
1444
+ true: {
1445
+ root: string;
1446
+ };
1447
+ };
1448
+ }, {
1449
+ root: string;
1450
+ icon: string;
1451
+ dot: string[];
1452
+ }, undefined, {
1453
+ size: {
1454
+ medium: {
1455
+ root: string;
1456
+ icon: string;
1457
+ dot: string;
1458
+ };
1459
+ small: {
1460
+ root: string;
1461
+ icon: string;
1462
+ dot: string;
1463
+ };
1464
+ xsmall: {
1465
+ root: string;
1466
+ icon: string;
1467
+ dot: string;
1468
+ };
1469
+ };
1470
+ variant: {
1471
+ filled: {
1472
+ root: string;
1473
+ };
1474
+ outline: {
1475
+ root: string;
1476
+ };
1477
+ lighter: string;
1478
+ ghost: string;
1479
+ };
1480
+ color: {
1481
+ primary: string;
1482
+ info: string;
1483
+ success: string;
1484
+ warning: string;
1485
+ error: string;
1486
+ neutral: string;
1487
+ };
1488
+ shape: {
1489
+ default: string;
1490
+ circle: {
1491
+ root: string;
1492
+ };
1493
+ };
1494
+ disabled: {
1495
+ true: {
1496
+ root: string;
1497
+ };
1498
+ };
1499
+ }, {
1500
+ root: string;
1501
+ icon: string;
1502
+ dot: string[];
1503
+ }, tailwind_variants.TVReturnType<{
1504
+ size: {
1505
+ medium: {
1506
+ root: string;
1507
+ icon: string;
1508
+ dot: string;
1509
+ };
1510
+ small: {
1511
+ root: string;
1512
+ icon: string;
1513
+ dot: string;
1514
+ };
1515
+ xsmall: {
1516
+ root: string;
1517
+ icon: string;
1518
+ dot: string;
1519
+ };
1520
+ };
1521
+ variant: {
1522
+ filled: {
1523
+ root: string;
1524
+ };
1525
+ outline: {
1526
+ root: string;
1527
+ };
1528
+ lighter: string;
1529
+ ghost: string;
1530
+ };
1531
+ color: {
1532
+ primary: string;
1533
+ info: string;
1534
+ success: string;
1535
+ warning: string;
1536
+ error: string;
1537
+ neutral: string;
1538
+ };
1539
+ shape: {
1540
+ default: string;
1541
+ circle: {
1542
+ root: string;
1543
+ };
1544
+ };
1545
+ disabled: {
1546
+ true: {
1547
+ root: string;
1548
+ };
1549
+ };
1550
+ }, {
1551
+ root: string;
1552
+ icon: string;
1553
+ dot: string[];
1554
+ }, undefined, unknown, unknown, undefined>>;
1555
+ declare function BadgeIcon<T extends React$1.ElementType>({ className, size, variant, color, as, ...rest }: PolymorphicComponentProps<T, BadgeSharedProps>): react_jsx_runtime.JSX.Element;
1556
+ declare namespace BadgeIcon {
1557
+ var displayName: string;
1558
+ }
1559
+ type BadgeProps = BadgeRootProps & {
1560
+ icon?: React$1.ComponentProps<typeof BadgeIcon>['as'];
1561
+ dot?: boolean;
1562
+ };
1563
+ declare function Badge({ icon, dot, children, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
1564
+
1565
+ declare function ScrollArea({ className, scrollBarClassName, children, ...props }: React$1.ComponentProps<typeof ScrollArea$1.Root> & {
1566
+ scrollBarClassName?: string;
1567
+ }): react_jsx_runtime.JSX.Element;
1568
+
1569
+ interface SwapProps {
1570
+ swap: boolean;
1571
+ on: React__default.ReactNode;
1572
+ off: React__default.ReactNode;
1573
+ className?: string;
1574
+ }
1575
+ declare function Swap({ swap, on, off, className }: SwapProps): react_jsx_runtime.JSX.Element;
1576
+
1577
+ interface StateSwitcherProps {
1578
+ state: string;
1579
+ states: Record<string, React__default.ReactNode>;
1580
+ className?: string;
1581
+ asDiv?: boolean;
1582
+ initial?: boolean;
1583
+ style?: React__default.CSSProperties;
1584
+ }
1585
+ declare function StateSwitcher({ initial, state, states, asDiv, className, style, ...rest }: StateSwitcherProps): react_jsx_runtime.JSX.Element;
1586
+
1587
+ type HoverCardProps = React$1.ComponentProps<typeof HoverCard$1.Root> & Omit<React$1.ComponentProps<typeof HoverCard$1.Content>, 'content'> & {
1588
+ asChild?: boolean;
1589
+ arrow?: boolean;
1590
+ className?: string;
1591
+ content?: React$1.ReactNode;
1592
+ };
1593
+ declare function HoverCard({ open, defaultOpen, openDelay, closeDelay, asChild, arrow, content, children: trigger, onOpenChange, ...contentProps }: HoverCardProps): react_jsx_runtime.JSX.Element;
1594
+
1595
+ export { index as Avatar, Badge, type BadgeProps, ButtonSharedProps, card as Card, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPanel, command as Command, CopyableText, type CopyableTextProps, type DebouncedFunction, Drawer, type DrawerProps, DropdownMenu, type DropdownMenuItemProps, type DropdownMenuProps, type DropdownMenuVariants, HoverCard, type MenuPropBase, PopConfirm, type PopConfirmProps, popover as Popover, PopoverPreset, type PopoverPresetProps, type Scheduler, ScrollArea, Skeleton, Spinner, StateSwitcher, Swap, Switch, tabs as Tabs, type ThrottledFunction, Tooltip, TooltipArrow, TooltipProvider, TooltipRoot, TooltipTrigger, UIProvider, type UseDrawerOptions, cn, compact, debounce, dropdownMenuStyles, findOption, formatCurrency, formatIntegerCompact, formatNumber, getFirstLetters, mergeRefs, throttle, tooltipVariants, tv, twMergeConfig, unique, useDrawer };