@nextui-org/theme 2.3.0-beta.11 → 2.3.0-beta.13

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-D2XMP2NC.mjs";
4
4
  import {
5
5
  utilities
6
- } from "./chunk-XZMJGJQX.mjs";
6
+ } from "./chunk-KVYVTKEN.mjs";
7
7
  import {
8
8
  DEFAULT_TRANSITION_DURATION
9
9
  } from "./chunk-WN6AL2BX.mjs";
@@ -152,7 +152,88 @@ var progress = tv(
152
152
  twMerge: true
153
153
  }
154
154
  );
155
+ var circularProgress = tv({
156
+ slots: {
157
+ base: "flex flex-col justify-center gap-1 max-w-fit items-center",
158
+ label: "",
159
+ svgWrapper: "relative block",
160
+ svg: "z-0 relative overflow-hidden",
161
+ track: "h-full stroke-default-300/50",
162
+ indicator: "h-full stroke-current",
163
+ value: "absolute font-normal inset-0 flex items-center justify-center"
164
+ },
165
+ variants: {
166
+ color: {
167
+ default: {
168
+ svg: "text-default-400"
169
+ },
170
+ primary: {
171
+ svg: "text-primary"
172
+ },
173
+ secondary: {
174
+ svg: "text-secondary"
175
+ },
176
+ success: {
177
+ svg: "text-success"
178
+ },
179
+ warning: {
180
+ svg: "text-warning"
181
+ },
182
+ danger: {
183
+ svg: "text-danger"
184
+ }
185
+ },
186
+ size: {
187
+ sm: {
188
+ svg: "w-8 h-8",
189
+ label: "text-small",
190
+ value: "text-[0.5rem]"
191
+ },
192
+ md: {
193
+ svg: "w-10 h-10",
194
+ label: "text-small",
195
+ value: "text-[0.55rem]"
196
+ },
197
+ lg: {
198
+ svg: "w-12 h-12",
199
+ label: "text-medium",
200
+ value: "text-[0.6rem]"
201
+ }
202
+ },
203
+ isIndeterminate: {
204
+ true: {
205
+ svg: "animate-spinner-ease-spin"
206
+ }
207
+ },
208
+ isDisabled: {
209
+ true: {
210
+ base: "opacity-disabled cursor-not-allowed"
211
+ }
212
+ },
213
+ disableAnimation: {
214
+ true: {},
215
+ false: {
216
+ indicator: "transition-all !duration-500"
217
+ }
218
+ }
219
+ },
220
+ defaultVariants: {
221
+ color: "primary",
222
+ size: "md",
223
+ isDisabled: false
224
+ },
225
+ compoundVariants: [
226
+ {
227
+ disableAnimation: true,
228
+ isIndeterminate: false,
229
+ class: {
230
+ svg: "!transition-none motion-reduce:transition-none"
231
+ }
232
+ }
233
+ ]
234
+ });
155
235
 
156
236
  export {
157
- progress
237
+ progress,
238
+ circularProgress
158
239
  };
@@ -6,7 +6,7 @@ import {
6
6
  var autocomplete = tv({
7
7
  slots: {
8
8
  base: "group inline-flex flex-column w-full",
9
- listboxWrapper: "scroll-py-6 max-h-64 w-full",
9
+ listboxWrapper: "scroll-py-6 w-full",
10
10
  listbox: "",
11
11
  popoverContent: "w-full p-1 overflow-hidden",
12
12
  endContentWrapper: "relative flex h-full items-center -mr-2",
@@ -74,7 +74,7 @@ var tv = (options, config) => {
74
74
  var autocomplete = tv({
75
75
  slots: {
76
76
  base: "group inline-flex flex-column w-full",
77
- listboxWrapper: "scroll-py-6 max-h-64 w-full",
77
+ listboxWrapper: "scroll-py-6 w-full",
78
78
  listbox: "",
79
79
  popoverContent: "w-full p-1 overflow-hidden",
80
80
  endContentWrapper: "relative flex h-full items-center -mr-2",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  autocomplete
3
- } from "../chunk-2TAKWWRG.mjs";
3
+ } from "../chunk-ZZ2VSLD6.mjs";
4
4
  import "../chunk-UWE6H66T.mjs";
5
5
  import "../chunk-GIXI35A3.mjs";
6
6
  export {
@@ -15,8 +15,7 @@ export { RadioGroupSlots, RadioSlots, RadioVariantProps, radio, radioGroup } fro
15
15
  export { PaginationSlots, PaginationVariantProps, pagination } from './pagination.js';
16
16
  export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
17
17
  export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './accordion.js';
18
- export { ProgressSlots, ProgressVariantProps, progress } from './progress.js';
19
- export { CircularProgressSlots, CircularProgressVariantProps, circularProgress } from './circular-progress.js';
18
+ export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress } from './progress.js';
20
19
  export { InputSlots, InputVariantProps, input } from './input.js';
21
20
  export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './dropdown.js';
22
21
  export { ImageSlots, ImageVariantProps, image } from './image.js';
@@ -3692,8 +3692,6 @@ var progress = tv(
3692
3692
  twMerge: true
3693
3693
  }
3694
3694
  );
3695
-
3696
- // src/components/circular-progress.ts
3697
3695
  var circularProgress = tv({
3698
3696
  slots: {
3699
3697
  base: "flex flex-col justify-center gap-1 max-w-fit items-center",
@@ -7989,7 +7987,7 @@ var breadcrumbs = tv({
7989
7987
  var autocomplete = tv({
7990
7988
  slots: {
7991
7989
  base: "group inline-flex flex-column w-full",
7992
- listboxWrapper: "scroll-py-6 max-h-64 w-full",
7990
+ listboxWrapper: "scroll-py-6 w-full",
7993
7991
  listbox: "",
7994
7992
  popoverContent: "w-full p-1 overflow-hidden",
7995
7993
  endContentWrapper: "relative flex h-full items-center -mr-2",
@@ -1,7 +1,4 @@
1
- import "../chunk-MA4DKK64.mjs";
2
- import {
3
- spinner
4
- } from "../chunk-DBPAK7QN.mjs";
1
+ import "../chunk-KEHIJEFK.mjs";
5
2
  import {
6
3
  table
7
4
  } from "../chunk-2ODFPLXN.mjs";
@@ -14,9 +11,6 @@ import {
14
11
  import {
15
12
  user
16
13
  } from "../chunk-GMZHMFEU.mjs";
17
- import {
18
- progress
19
- } from "../chunk-IZOPFGDE.mjs";
20
14
  import {
21
15
  radio,
22
16
  radioGroup
@@ -40,8 +34,8 @@ import {
40
34
  spacer
41
35
  } from "../chunk-AKXXHKTO.mjs";
42
36
  import {
43
- kbd
44
- } from "../chunk-VX7HAPUO.mjs";
37
+ spinner
38
+ } from "../chunk-DBPAK7QN.mjs";
45
39
  import {
46
40
  link,
47
41
  linkAnchorClasses
@@ -65,9 +59,9 @@ import {
65
59
  popover
66
60
  } from "../chunk-HHK47K4W.mjs";
67
61
  import {
68
- datePicker,
69
- dateRangePicker
70
- } from "../chunk-QFGVVQRM.mjs";
62
+ circularProgress,
63
+ progress
64
+ } from "../chunk-6KWI4IHE.mjs";
71
65
  import {
72
66
  divider
73
67
  } from "../chunk-AXSF7SRE.mjs";
@@ -89,6 +83,9 @@ import {
89
83
  import {
90
84
  input
91
85
  } from "../chunk-MXL6JCUG.mjs";
86
+ import {
87
+ kbd
88
+ } from "../chunk-VX7HAPUO.mjs";
92
89
  import {
93
90
  button,
94
91
  buttonGroup
@@ -106,15 +103,16 @@ import {
106
103
  import {
107
104
  chip
108
105
  } from "../chunk-5VB7JNVX.mjs";
109
- import {
110
- circularProgress
111
- } from "../chunk-AUN4SP2F.mjs";
112
106
  import {
113
107
  code
114
108
  } from "../chunk-JE6SPRGQ.mjs";
115
109
  import {
116
110
  dateInput
117
111
  } from "../chunk-HNRFZTEX.mjs";
112
+ import {
113
+ datePicker,
114
+ dateRangePicker
115
+ } from "../chunk-QFGVVQRM.mjs";
118
116
  import {
119
117
  accordion,
120
118
  accordionItem
@@ -124,7 +122,7 @@ import {
124
122
  } from "../chunk-MO6TCUI5.mjs";
125
123
  import {
126
124
  autocomplete
127
- } from "../chunk-2TAKWWRG.mjs";
125
+ } from "../chunk-ZZ2VSLD6.mjs";
128
126
  import {
129
127
  avatar,
130
128
  avatarGroup
@@ -1,3 +1,4 @@
1
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
1
2
  import * as tailwind_variants from 'tailwind-variants';
2
3
  import { VariantProps } from 'tailwind-variants';
3
4
 
@@ -288,7 +289,431 @@ declare const progress: tailwind_variants.TVReturnType<{
288
289
  }, undefined, {
289
290
  twMerge: true;
290
291
  }, unknown, unknown, undefined>>;
292
+ /**
293
+ * CircularProgress **Tailwind Variants** component
294
+ *
295
+ * @example
296
+ * ```js
297
+ * const {base, svgWrapper, svg, indicator, value, label} = circularProgress({...})
298
+ *
299
+ * <div className={base()} aria-label="progress" role="progressbar" aria-valuenow={value} aria-valuemin={min} aria-valuemax={max}>
300
+ * <div className={svgWrapper()}>
301
+ * <svg className={svg()}>
302
+ * <circle className={track()} />
303
+ * <circle className={indicator()} />
304
+ * </svg>
305
+ * <span className={value()}>{value}</span>
306
+ * </div>
307
+ * <span className={label()}>{label}</span>
308
+ * </div>
309
+ * ```
310
+ */
311
+ declare const circularProgress: tailwind_variants.TVReturnType<{
312
+ color: {
313
+ default: {
314
+ svg: string;
315
+ };
316
+ primary: {
317
+ svg: string;
318
+ };
319
+ secondary: {
320
+ svg: string;
321
+ };
322
+ success: {
323
+ svg: string;
324
+ };
325
+ warning: {
326
+ svg: string;
327
+ };
328
+ danger: {
329
+ svg: string;
330
+ };
331
+ };
332
+ size: {
333
+ sm: {
334
+ svg: string;
335
+ label: string;
336
+ value: string;
337
+ };
338
+ md: {
339
+ svg: string;
340
+ label: string;
341
+ value: string;
342
+ };
343
+ lg: {
344
+ svg: string;
345
+ label: string;
346
+ value: string;
347
+ };
348
+ };
349
+ isIndeterminate: {
350
+ true: {
351
+ svg: string;
352
+ };
353
+ };
354
+ isDisabled: {
355
+ true: {
356
+ base: string;
357
+ };
358
+ };
359
+ disableAnimation: {
360
+ true: {};
361
+ false: {
362
+ indicator: string;
363
+ };
364
+ };
365
+ }, {
366
+ base: string;
367
+ label: string;
368
+ svgWrapper: string;
369
+ svg: string;
370
+ track: string;
371
+ indicator: string;
372
+ value: string;
373
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
374
+ color: {
375
+ default: {
376
+ svg: string;
377
+ };
378
+ primary: {
379
+ svg: string;
380
+ };
381
+ secondary: {
382
+ svg: string;
383
+ };
384
+ success: {
385
+ svg: string;
386
+ };
387
+ warning: {
388
+ svg: string;
389
+ };
390
+ danger: {
391
+ svg: string;
392
+ };
393
+ };
394
+ size: {
395
+ sm: {
396
+ svg: string;
397
+ label: string;
398
+ value: string;
399
+ };
400
+ md: {
401
+ svg: string;
402
+ label: string;
403
+ value: string;
404
+ };
405
+ lg: {
406
+ svg: string;
407
+ label: string;
408
+ value: string;
409
+ };
410
+ };
411
+ isIndeterminate: {
412
+ true: {
413
+ svg: string;
414
+ };
415
+ };
416
+ isDisabled: {
417
+ true: {
418
+ base: string;
419
+ };
420
+ };
421
+ disableAnimation: {
422
+ true: {};
423
+ false: {
424
+ indicator: string;
425
+ };
426
+ };
427
+ }, {
428
+ color: {
429
+ default: {
430
+ svg: string;
431
+ };
432
+ primary: {
433
+ svg: string;
434
+ };
435
+ secondary: {
436
+ svg: string;
437
+ };
438
+ success: {
439
+ svg: string;
440
+ };
441
+ warning: {
442
+ svg: string;
443
+ };
444
+ danger: {
445
+ svg: string;
446
+ };
447
+ };
448
+ size: {
449
+ sm: {
450
+ svg: string;
451
+ label: string;
452
+ value: string;
453
+ };
454
+ md: {
455
+ svg: string;
456
+ label: string;
457
+ value: string;
458
+ };
459
+ lg: {
460
+ svg: string;
461
+ label: string;
462
+ value: string;
463
+ };
464
+ };
465
+ isIndeterminate: {
466
+ true: {
467
+ svg: string;
468
+ };
469
+ };
470
+ isDisabled: {
471
+ true: {
472
+ base: string;
473
+ };
474
+ };
475
+ disableAnimation: {
476
+ true: {};
477
+ false: {
478
+ indicator: string;
479
+ };
480
+ };
481
+ }>, {
482
+ color: {
483
+ default: {
484
+ svg: string;
485
+ };
486
+ primary: {
487
+ svg: string;
488
+ };
489
+ secondary: {
490
+ svg: string;
491
+ };
492
+ success: {
493
+ svg: string;
494
+ };
495
+ warning: {
496
+ svg: string;
497
+ };
498
+ danger: {
499
+ svg: string;
500
+ };
501
+ };
502
+ size: {
503
+ sm: {
504
+ svg: string;
505
+ label: string;
506
+ value: string;
507
+ };
508
+ md: {
509
+ svg: string;
510
+ label: string;
511
+ value: string;
512
+ };
513
+ lg: {
514
+ svg: string;
515
+ label: string;
516
+ value: string;
517
+ };
518
+ };
519
+ isIndeterminate: {
520
+ true: {
521
+ svg: string;
522
+ };
523
+ };
524
+ isDisabled: {
525
+ true: {
526
+ base: string;
527
+ };
528
+ };
529
+ disableAnimation: {
530
+ true: {};
531
+ false: {
532
+ indicator: string;
533
+ };
534
+ };
535
+ }, {
536
+ base: string;
537
+ label: string;
538
+ svgWrapper: string;
539
+ svg: string;
540
+ track: string;
541
+ indicator: string;
542
+ value: string;
543
+ }, tailwind_variants.TVReturnType<{
544
+ color: {
545
+ default: {
546
+ svg: string;
547
+ };
548
+ primary: {
549
+ svg: string;
550
+ };
551
+ secondary: {
552
+ svg: string;
553
+ };
554
+ success: {
555
+ svg: string;
556
+ };
557
+ warning: {
558
+ svg: string;
559
+ };
560
+ danger: {
561
+ svg: string;
562
+ };
563
+ };
564
+ size: {
565
+ sm: {
566
+ svg: string;
567
+ label: string;
568
+ value: string;
569
+ };
570
+ md: {
571
+ svg: string;
572
+ label: string;
573
+ value: string;
574
+ };
575
+ lg: {
576
+ svg: string;
577
+ label: string;
578
+ value: string;
579
+ };
580
+ };
581
+ isIndeterminate: {
582
+ true: {
583
+ svg: string;
584
+ };
585
+ };
586
+ isDisabled: {
587
+ true: {
588
+ base: string;
589
+ };
590
+ };
591
+ disableAnimation: {
592
+ true: {};
593
+ false: {
594
+ indicator: string;
595
+ };
596
+ };
597
+ }, {
598
+ base: string;
599
+ label: string;
600
+ svgWrapper: string;
601
+ svg: string;
602
+ track: string;
603
+ indicator: string;
604
+ value: string;
605
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
606
+ color: {
607
+ default: {
608
+ svg: string;
609
+ };
610
+ primary: {
611
+ svg: string;
612
+ };
613
+ secondary: {
614
+ svg: string;
615
+ };
616
+ success: {
617
+ svg: string;
618
+ };
619
+ warning: {
620
+ svg: string;
621
+ };
622
+ danger: {
623
+ svg: string;
624
+ };
625
+ };
626
+ size: {
627
+ sm: {
628
+ svg: string;
629
+ label: string;
630
+ value: string;
631
+ };
632
+ md: {
633
+ svg: string;
634
+ label: string;
635
+ value: string;
636
+ };
637
+ lg: {
638
+ svg: string;
639
+ label: string;
640
+ value: string;
641
+ };
642
+ };
643
+ isIndeterminate: {
644
+ true: {
645
+ svg: string;
646
+ };
647
+ };
648
+ isDisabled: {
649
+ true: {
650
+ base: string;
651
+ };
652
+ };
653
+ disableAnimation: {
654
+ true: {};
655
+ false: {
656
+ indicator: string;
657
+ };
658
+ };
659
+ }, {
660
+ color: {
661
+ default: {
662
+ svg: string;
663
+ };
664
+ primary: {
665
+ svg: string;
666
+ };
667
+ secondary: {
668
+ svg: string;
669
+ };
670
+ success: {
671
+ svg: string;
672
+ };
673
+ warning: {
674
+ svg: string;
675
+ };
676
+ danger: {
677
+ svg: string;
678
+ };
679
+ };
680
+ size: {
681
+ sm: {
682
+ svg: string;
683
+ label: string;
684
+ value: string;
685
+ };
686
+ md: {
687
+ svg: string;
688
+ label: string;
689
+ value: string;
690
+ };
691
+ lg: {
692
+ svg: string;
693
+ label: string;
694
+ value: string;
695
+ };
696
+ };
697
+ isIndeterminate: {
698
+ true: {
699
+ svg: string;
700
+ };
701
+ };
702
+ isDisabled: {
703
+ true: {
704
+ base: string;
705
+ };
706
+ };
707
+ disableAnimation: {
708
+ true: {};
709
+ false: {
710
+ indicator: string;
711
+ };
712
+ };
713
+ }>, unknown, unknown, undefined>>;
291
714
  type ProgressVariantProps = VariantProps<typeof progress>;
292
715
  type ProgressSlots = keyof ReturnType<typeof progress>;
716
+ type CircularProgressVariantProps = VariantProps<typeof circularProgress>;
717
+ type CircularProgressSlots = keyof ReturnType<typeof circularProgress>;
293
718
 
294
- export { ProgressSlots, ProgressVariantProps, progress };
719
+ export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress };