@nextui-org/theme 2.3.0-beta.12 → 2.3.0-beta.14

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,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 };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/components/progress.ts
21
21
  var progress_exports = {};
22
22
  __export(progress_exports, {
23
+ circularProgress: () => circularProgress,
23
24
  progress: () => progress
24
25
  });
25
26
  module.exports = __toCommonJS(progress_exports);
@@ -220,7 +221,88 @@ var progress = tv(
220
221
  twMerge: true
221
222
  }
222
223
  );
224
+ var circularProgress = tv({
225
+ slots: {
226
+ base: "flex flex-col justify-center gap-1 max-w-fit items-center",
227
+ label: "",
228
+ svgWrapper: "relative block",
229
+ svg: "z-0 relative overflow-hidden",
230
+ track: "h-full stroke-default-300/50",
231
+ indicator: "h-full stroke-current",
232
+ value: "absolute font-normal inset-0 flex items-center justify-center"
233
+ },
234
+ variants: {
235
+ color: {
236
+ default: {
237
+ svg: "text-default-400"
238
+ },
239
+ primary: {
240
+ svg: "text-primary"
241
+ },
242
+ secondary: {
243
+ svg: "text-secondary"
244
+ },
245
+ success: {
246
+ svg: "text-success"
247
+ },
248
+ warning: {
249
+ svg: "text-warning"
250
+ },
251
+ danger: {
252
+ svg: "text-danger"
253
+ }
254
+ },
255
+ size: {
256
+ sm: {
257
+ svg: "w-8 h-8",
258
+ label: "text-small",
259
+ value: "text-[0.5rem]"
260
+ },
261
+ md: {
262
+ svg: "w-10 h-10",
263
+ label: "text-small",
264
+ value: "text-[0.55rem]"
265
+ },
266
+ lg: {
267
+ svg: "w-12 h-12",
268
+ label: "text-medium",
269
+ value: "text-[0.6rem]"
270
+ }
271
+ },
272
+ isIndeterminate: {
273
+ true: {
274
+ svg: "animate-spinner-ease-spin"
275
+ }
276
+ },
277
+ isDisabled: {
278
+ true: {
279
+ base: "opacity-disabled cursor-not-allowed"
280
+ }
281
+ },
282
+ disableAnimation: {
283
+ true: {},
284
+ false: {
285
+ indicator: "transition-all !duration-500"
286
+ }
287
+ }
288
+ },
289
+ defaultVariants: {
290
+ color: "primary",
291
+ size: "md",
292
+ isDisabled: false
293
+ },
294
+ compoundVariants: [
295
+ {
296
+ disableAnimation: true,
297
+ isIndeterminate: false,
298
+ class: {
299
+ svg: "!transition-none motion-reduce:transition-none"
300
+ }
301
+ }
302
+ ]
303
+ });
223
304
  // Annotate the CommonJS export names for ESM import in node:
224
305
  0 && (module.exports = {
306
+ circularProgress,
225
307
  progress
226
308
  });
@@ -1,8 +1,10 @@
1
1
  import {
2
+ circularProgress,
2
3
  progress
3
- } from "../chunk-IZOPFGDE.mjs";
4
+ } from "../chunk-6KWI4IHE.mjs";
4
5
  import "../chunk-UWE6H66T.mjs";
5
6
  import "../chunk-GIXI35A3.mjs";
6
7
  export {
8
+ circularProgress,
7
9
  progress
8
10
  };
package/dist/index.d.ts CHANGED
@@ -15,8 +15,7 @@ export { RadioGroupSlots, RadioSlots, RadioVariantProps, radio, radioGroup } fro
15
15
  export { PaginationSlots, PaginationVariantProps, pagination } from './components/pagination.js';
16
16
  export { ToggleSlots, ToggleVariantProps, toggle } from './components/toggle.js';
17
17
  export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './components/accordion.js';
18
- export { ProgressSlots, ProgressVariantProps, progress } from './components/progress.js';
19
- export { CircularProgressSlots, CircularProgressVariantProps, circularProgress } from './components/circular-progress.js';
18
+ export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress } from './components/progress.js';
20
19
  export { InputSlots, InputVariantProps, input } from './components/input.js';
21
20
  export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './components/dropdown.js';
22
21
  export { ImageSlots, ImageVariantProps, image } from './components/image.js';
package/dist/index.js CHANGED
@@ -3737,8 +3737,6 @@ var progress = tv(
3737
3737
  twMerge: true
3738
3738
  }
3739
3739
  );
3740
-
3741
- // src/components/circular-progress.ts
3742
3740
  var circularProgress = tv({
3743
3741
  slots: {
3744
3742
  base: "flex flex-col justify-center gap-1 max-w-fit items-center",
@@ -6931,7 +6929,7 @@ var select = tv({
6931
6929
  // src/components/menu.ts
6932
6930
  var menu = tv({
6933
6931
  slots: {
6934
- base: "w-full relative flex flex-col gap-1 p-1",
6932
+ base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
6935
6933
  list: "w-full flex flex-col gap-0.5 outline-none",
6936
6934
  emptyContent: [
6937
6935
  "h-10",
@@ -7039,6 +7037,16 @@ var menuItem = tv({
7039
7037
  false: {
7040
7038
  base: "data-[hover=true]:transition-colors"
7041
7039
  }
7040
+ },
7041
+ hasTitleTextChild: {
7042
+ true: {
7043
+ title: "truncate"
7044
+ }
7045
+ },
7046
+ hasDescriptionTextChild: {
7047
+ true: {
7048
+ description: "truncate"
7049
+ }
7042
7050
  }
7043
7051
  },
7044
7052
  defaultVariants: {
package/dist/index.mjs CHANGED
@@ -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
@@ -51,7 +45,7 @@ import {
51
45
  menu,
52
46
  menuItem,
53
47
  menuSection
54
- } from "./chunk-K6KPB2U5.mjs";
48
+ } from "./chunk-PTCUE3XA.mjs";
55
49
  import {
56
50
  modal
57
51
  } from "./chunk-N67DL6BW.mjs";
@@ -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
@@ -152,12 +150,12 @@ import {
152
150
  } from "./chunk-GIXI35A3.mjs";
153
151
  import {
154
152
  nextui
155
- } from "./chunk-LCMN7HGG.mjs";
153
+ } from "./chunk-4QKM3RKK.mjs";
156
154
  import "./chunk-D2XMP2NC.mjs";
157
- import "./chunk-XZMJGJQX.mjs";
158
- import "./chunk-WN6AL2BX.mjs";
155
+ import "./chunk-KVYVTKEN.mjs";
159
156
  import "./chunk-W5UU3F46.mjs";
160
157
  import "./chunk-4Z22WXZX.mjs";
158
+ import "./chunk-WN6AL2BX.mjs";
161
159
  import {
162
160
  absoluteFullClasses,
163
161
  baseStyles,
package/dist/plugin.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-LCMN7HGG.mjs";
3
+ } from "./chunk-4QKM3RKK.mjs";
4
4
  import "./chunk-D2XMP2NC.mjs";
5
- import "./chunk-XZMJGJQX.mjs";
6
- import "./chunk-WN6AL2BX.mjs";
5
+ import "./chunk-KVYVTKEN.mjs";
7
6
  import "./chunk-W5UU3F46.mjs";
8
7
  import "./chunk-4Z22WXZX.mjs";
8
+ import "./chunk-WN6AL2BX.mjs";
9
9
  import "./chunk-XHQUSKIE.mjs";
10
10
  import "./chunk-WQEDQHKX.mjs";
11
11
  import "./chunk-QZTWGJ72.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  utilities
3
- } from "../chunk-XZMJGJQX.mjs";
4
- import "../chunk-WN6AL2BX.mjs";
3
+ } from "../chunk-KVYVTKEN.mjs";
5
4
  import "../chunk-W5UU3F46.mjs";
6
5
  import "../chunk-4Z22WXZX.mjs";
6
+ import "../chunk-WN6AL2BX.mjs";
7
7
  export {
8
8
  utilities
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "2.3.0-beta.12",
3
+ "version": "2.3.0-beta.14",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",