@nextui-org/theme 0.0.0-dev-v2-20230328190228 → 0.0.0-dev-v2-20230329202119

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.
@@ -5,6 +5,7 @@ declare const animations: {
5
5
  "spinner-linear-spin": string;
6
6
  "appearance-in": string;
7
7
  "appearance-out": string;
8
+ "indeterminate-bar": string;
8
9
  };
9
10
  keyframes: {
10
11
  "spinner-spin": {
@@ -51,6 +52,14 @@ declare const animations: {
51
52
  transform: string;
52
53
  };
53
54
  };
55
+ "indeterminate-bar": {
56
+ "0%": {
57
+ transform: string;
58
+ };
59
+ "100%": {
60
+ transform: string;
61
+ };
62
+ };
54
63
  };
55
64
  };
56
65
 
@@ -29,7 +29,8 @@ var animations = {
29
29
  "spinner-ease-spin": "spinner-spin 0.8s ease infinite",
30
30
  "spinner-linear-spin": "spinner-spin 0.8s linear infinite",
31
31
  "appearance-in": "appearance-in 250ms ease-out normal both",
32
- "appearance-out": "appearance-out 60ms ease-in normal both"
32
+ "appearance-out": "appearance-out 60ms ease-in normal both",
33
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
33
34
  },
34
35
  keyframes: {
35
36
  "spinner-spin": {
@@ -75,6 +76,14 @@ var animations = {
75
76
  opacity: "0",
76
77
  transform: "scale(0.85)"
77
78
  }
79
+ },
80
+ "indeterminate-bar": {
81
+ "0%": {
82
+ transform: "translateX(-150%)"
83
+ },
84
+ "100%": {
85
+ transform: "translateX(200%)"
86
+ }
78
87
  }
79
88
  }
80
89
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  animations
3
- } from "../chunk-OMTYF2LL.mjs";
3
+ } from "../chunk-BZ3JOG7M.mjs";
4
4
  export {
5
5
  animations
6
6
  };
@@ -0,0 +1,129 @@
1
+ // src/components/progress.ts
2
+ import { tv } from "tailwind-variants";
3
+ var progress = tv(
4
+ {
5
+ slots: {
6
+ base: "flex flex-col gap-2",
7
+ label: "",
8
+ labelWrapper: "flex justify-between",
9
+ value: "",
10
+ track: "z-0 relative bg-neutral-200 overflow-hidden",
11
+ filler: "h-full"
12
+ },
13
+ variants: {
14
+ color: {
15
+ neutral: {
16
+ filler: "bg-neutral-400"
17
+ },
18
+ primary: {
19
+ filler: "bg-primary"
20
+ },
21
+ secondary: {
22
+ filler: "bg-secondary"
23
+ },
24
+ success: {
25
+ filler: "bg-success"
26
+ },
27
+ warning: {
28
+ filler: "bg-warning"
29
+ },
30
+ danger: {
31
+ filler: "bg-danger"
32
+ }
33
+ },
34
+ size: {
35
+ xs: {
36
+ track: "h-1"
37
+ },
38
+ sm: {
39
+ track: "h-2"
40
+ },
41
+ md: {
42
+ track: "h-4"
43
+ },
44
+ lg: {
45
+ track: "h-6"
46
+ },
47
+ xl: {
48
+ track: "h-7"
49
+ }
50
+ },
51
+ radius: {
52
+ none: {
53
+ track: "rounded-none",
54
+ filler: "rounded-none"
55
+ },
56
+ base: {
57
+ track: "rounded",
58
+ filler: "rounded"
59
+ },
60
+ sm: {
61
+ track: "rounded-sm",
62
+ filler: "rounded-sm"
63
+ },
64
+ md: {
65
+ track: "rounded-md",
66
+ filler: "rounded-md"
67
+ },
68
+ lg: {
69
+ track: "rounded-lg",
70
+ filler: "rounded-lg"
71
+ },
72
+ xl: {
73
+ track: "rounded-xl",
74
+ filler: "rounded-xl"
75
+ },
76
+ full: {
77
+ track: "rounded-full",
78
+ filler: "rounded-full"
79
+ }
80
+ },
81
+ isStriped: {
82
+ true: {
83
+ filler: "bg-stripe-gradient bg-[length:1.25rem_1.25rem]"
84
+ }
85
+ },
86
+ isIndeterminate: {
87
+ true: {
88
+ filler: ["absolute", "w-1/2", "animate-indeterminate-bar"]
89
+ }
90
+ },
91
+ isDisabled: {
92
+ true: {
93
+ base: "opacity-50 cursor-not-allowed"
94
+ }
95
+ },
96
+ disableAnimation: {
97
+ true: {},
98
+ false: {
99
+ filler: "transition-transform !duration-500"
100
+ }
101
+ }
102
+ },
103
+ defaultVariants: {
104
+ color: "primary",
105
+ size: "md",
106
+ radius: "full",
107
+ isStriped: false,
108
+ isIndeterminate: false,
109
+ isDisabled: false,
110
+ disableAnimation: false
111
+ },
112
+ compoundVariants: [
113
+ {
114
+ disableAnimation: true,
115
+ isIndeterminate: false,
116
+ class: {
117
+ filler: "!transition-none motion-reduce:transition-none"
118
+ }
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ twMerge: false
124
+ }
125
+ );
126
+
127
+ export {
128
+ progress
129
+ };
@@ -5,7 +5,8 @@ var animations = {
5
5
  "spinner-ease-spin": "spinner-spin 0.8s ease infinite",
6
6
  "spinner-linear-spin": "spinner-spin 0.8s linear infinite",
7
7
  "appearance-in": "appearance-in 250ms ease-out normal both",
8
- "appearance-out": "appearance-out 60ms ease-in normal both"
8
+ "appearance-out": "appearance-out 60ms ease-in normal both",
9
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
9
10
  },
10
11
  keyframes: {
11
12
  "spinner-spin": {
@@ -51,6 +52,14 @@ var animations = {
51
52
  opacity: "0",
52
53
  transform: "scale(0.85)"
53
54
  }
55
+ },
56
+ "indeterminate-bar": {
57
+ "0%": {
58
+ transform: "translateX(-150%)"
59
+ },
60
+ "100%": {
61
+ transform: "translateX(200%)"
62
+ }
54
63
  }
55
64
  }
56
65
  };
@@ -21,36 +21,35 @@ var card = tv({
21
21
  ],
22
22
  header: [
23
23
  "flex",
24
+ "p-3",
25
+ "z-10",
24
26
  "justify-start",
25
27
  "items-center",
26
28
  "shrink-0",
27
29
  "w-full",
28
30
  "overflow-inherit",
29
31
  "color-inherit",
30
- "p-3",
31
- "z-10",
32
32
  "subpixel-antialiased"
33
33
  ],
34
34
  body: [
35
35
  "relative",
36
36
  "flex",
37
+ "p-5",
37
38
  "flex-auto",
38
39
  "flex-col",
39
40
  "place-content-inherit",
40
41
  "align-items-inherit",
41
42
  "w-full",
42
43
  "h-auto",
43
- "py-5",
44
- "px-3",
45
44
  "break-words",
46
45
  "text-left",
47
46
  "overflow-y-auto",
48
47
  "subpixel-antialiased"
49
48
  ],
50
49
  footer: [
50
+ "p-3",
51
51
  "w-full",
52
52
  "h-auto",
53
- "p-3",
54
53
  "flex",
55
54
  "items-center",
56
55
  "overflow-hidden",
@@ -1,18 +1,18 @@
1
1
  import {
2
- baseStyles
3
- } from "./chunk-IJCHUO4J.mjs";
2
+ animations
3
+ } from "./chunk-BZ3JOG7M.mjs";
4
4
  import {
5
5
  utilities
6
- } from "./chunk-45FXWIO6.mjs";
6
+ } from "./chunk-XLATS5QU.mjs";
7
+ import {
8
+ baseStyles
9
+ } from "./chunk-IJCHUO4J.mjs";
7
10
  import {
8
11
  semanticColors
9
12
  } from "./chunk-Y52EXP4A.mjs";
10
13
  import {
11
14
  removeDefaultKeys
12
15
  } from "./chunk-37PIXVP4.mjs";
13
- import {
14
- animations
15
- } from "./chunk-OMTYF2LL.mjs";
16
16
  import {
17
17
  commonColors
18
18
  } from "./chunk-CRCBVLUP.mjs";
@@ -120,6 +120,9 @@ var corePlugin = (config = {}, defaultTheme) => {
120
120
  3: "3px",
121
121
  5: "5px"
122
122
  },
123
+ backgroundImage: {
124
+ "stripe-gradient": "linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)"
125
+ },
123
126
  transitionDuration: {
124
127
  0: "0ms",
125
128
  250: "250ms"
@@ -43,6 +43,11 @@ var utilities = {
43
43
  "transition-timing-function": "ease",
44
44
  "transition-duration": DEFAULT_TRANSITION_DURATION
45
45
  },
46
+ ".transition-left": {
47
+ "transition-property": "left",
48
+ "transition-timing-function": "ease",
49
+ "transition-duration": DEFAULT_TRANSITION_DURATION
50
+ },
46
51
  ".transition-shadow": {
47
52
  "transition-property": "box-shadow",
48
53
  "transition-timing-function": "ease",
@@ -9,7 +9,7 @@ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
9
9
  * ```js
10
10
  * const {base, header, body, footer} = card({...})
11
11
  *
12
- * <div className={card()}>
12
+ * <div className={base()}>
13
13
  * <div className={header()}>Header</div>
14
14
  * <div className={body()}>Body</div>
15
15
  * <div className={footer()}>Footer</div>
@@ -53,36 +53,35 @@ var card = (0, import_tailwind_variants.tv)({
53
53
  ],
54
54
  header: [
55
55
  "flex",
56
+ "p-3",
57
+ "z-10",
56
58
  "justify-start",
57
59
  "items-center",
58
60
  "shrink-0",
59
61
  "w-full",
60
62
  "overflow-inherit",
61
63
  "color-inherit",
62
- "p-3",
63
- "z-10",
64
64
  "subpixel-antialiased"
65
65
  ],
66
66
  body: [
67
67
  "relative",
68
68
  "flex",
69
+ "p-5",
69
70
  "flex-auto",
70
71
  "flex-col",
71
72
  "place-content-inherit",
72
73
  "align-items-inherit",
73
74
  "w-full",
74
75
  "h-auto",
75
- "py-5",
76
- "px-3",
77
76
  "break-words",
78
77
  "text-left",
79
78
  "overflow-y-auto",
80
79
  "subpixel-antialiased"
81
80
  ],
82
81
  footer: [
82
+ "p-3",
83
83
  "w-full",
84
84
  "h-auto",
85
- "p-3",
86
85
  "flex",
87
86
  "items-center",
88
87
  "overflow-hidden",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  card
3
- } from "../chunk-L63N5OAM.mjs";
3
+ } from "../chunk-HESJI33K.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-LGGZKBOO.mjs";
@@ -20,5 +20,6 @@ export { PaginationSlots, PaginationVariantProps, pagination } from './paginatio
20
20
  export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
21
21
  export { AccordionItemSlots, AccordionItemVariantProps, accordionItem } from './accordion-item.js';
22
22
  export { AccordionGroupVariantProps, accordion } from './accordion.js';
23
+ export { ProgressSlots, ProgressVariantProps, progress } from './progress.js';
23
24
  import 'tailwind-variants';
24
25
  import 'tailwind-variants/dist/config';
@@ -35,6 +35,7 @@ __export(components_exports, {
35
35
  drip: () => drip,
36
36
  link: () => link,
37
37
  pagination: () => pagination,
38
+ progress: () => progress,
38
39
  radio: () => radio,
39
40
  radioGroup: () => radioGroup,
40
41
  snippet: () => snippet,
@@ -372,36 +373,35 @@ var card = (0, import_tailwind_variants3.tv)({
372
373
  ],
373
374
  header: [
374
375
  "flex",
376
+ "p-3",
377
+ "z-10",
375
378
  "justify-start",
376
379
  "items-center",
377
380
  "shrink-0",
378
381
  "w-full",
379
382
  "overflow-inherit",
380
383
  "color-inherit",
381
- "p-3",
382
- "z-10",
383
384
  "subpixel-antialiased"
384
385
  ],
385
386
  body: [
386
387
  "relative",
387
388
  "flex",
389
+ "p-5",
388
390
  "flex-auto",
389
391
  "flex-col",
390
392
  "place-content-inherit",
391
393
  "align-items-inherit",
392
394
  "w-full",
393
395
  "h-auto",
394
- "py-5",
395
- "px-3",
396
396
  "break-words",
397
397
  "text-left",
398
398
  "overflow-y-auto",
399
399
  "subpixel-antialiased"
400
400
  ],
401
401
  footer: [
402
+ "p-3",
402
403
  "w-full",
403
404
  "h-auto",
404
- "p-3",
405
405
  "flex",
406
406
  "items-center",
407
407
  "overflow-hidden",
@@ -3438,6 +3438,132 @@ var accordion = (0, import_tailwind_variants22.tv)({
3438
3438
  }
3439
3439
  }
3440
3440
  });
3441
+
3442
+ // src/components/progress.ts
3443
+ var import_tailwind_variants23 = require("tailwind-variants");
3444
+ var progress = (0, import_tailwind_variants23.tv)(
3445
+ {
3446
+ slots: {
3447
+ base: "flex flex-col gap-2",
3448
+ label: "",
3449
+ labelWrapper: "flex justify-between",
3450
+ value: "",
3451
+ track: "z-0 relative bg-neutral-200 overflow-hidden",
3452
+ filler: "h-full"
3453
+ },
3454
+ variants: {
3455
+ color: {
3456
+ neutral: {
3457
+ filler: "bg-neutral-400"
3458
+ },
3459
+ primary: {
3460
+ filler: "bg-primary"
3461
+ },
3462
+ secondary: {
3463
+ filler: "bg-secondary"
3464
+ },
3465
+ success: {
3466
+ filler: "bg-success"
3467
+ },
3468
+ warning: {
3469
+ filler: "bg-warning"
3470
+ },
3471
+ danger: {
3472
+ filler: "bg-danger"
3473
+ }
3474
+ },
3475
+ size: {
3476
+ xs: {
3477
+ track: "h-1"
3478
+ },
3479
+ sm: {
3480
+ track: "h-2"
3481
+ },
3482
+ md: {
3483
+ track: "h-4"
3484
+ },
3485
+ lg: {
3486
+ track: "h-6"
3487
+ },
3488
+ xl: {
3489
+ track: "h-7"
3490
+ }
3491
+ },
3492
+ radius: {
3493
+ none: {
3494
+ track: "rounded-none",
3495
+ filler: "rounded-none"
3496
+ },
3497
+ base: {
3498
+ track: "rounded",
3499
+ filler: "rounded"
3500
+ },
3501
+ sm: {
3502
+ track: "rounded-sm",
3503
+ filler: "rounded-sm"
3504
+ },
3505
+ md: {
3506
+ track: "rounded-md",
3507
+ filler: "rounded-md"
3508
+ },
3509
+ lg: {
3510
+ track: "rounded-lg",
3511
+ filler: "rounded-lg"
3512
+ },
3513
+ xl: {
3514
+ track: "rounded-xl",
3515
+ filler: "rounded-xl"
3516
+ },
3517
+ full: {
3518
+ track: "rounded-full",
3519
+ filler: "rounded-full"
3520
+ }
3521
+ },
3522
+ isStriped: {
3523
+ true: {
3524
+ filler: "bg-stripe-gradient bg-[length:1.25rem_1.25rem]"
3525
+ }
3526
+ },
3527
+ isIndeterminate: {
3528
+ true: {
3529
+ filler: ["absolute", "w-1/2", "animate-indeterminate-bar"]
3530
+ }
3531
+ },
3532
+ isDisabled: {
3533
+ true: {
3534
+ base: "opacity-50 cursor-not-allowed"
3535
+ }
3536
+ },
3537
+ disableAnimation: {
3538
+ true: {},
3539
+ false: {
3540
+ filler: "transition-transform !duration-500"
3541
+ }
3542
+ }
3543
+ },
3544
+ defaultVariants: {
3545
+ color: "primary",
3546
+ size: "md",
3547
+ radius: "full",
3548
+ isStriped: false,
3549
+ isIndeterminate: false,
3550
+ isDisabled: false,
3551
+ disableAnimation: false
3552
+ },
3553
+ compoundVariants: [
3554
+ {
3555
+ disableAnimation: true,
3556
+ isIndeterminate: false,
3557
+ class: {
3558
+ filler: "!transition-none motion-reduce:transition-none"
3559
+ }
3560
+ }
3561
+ ]
3562
+ },
3563
+ {
3564
+ twMerge: false
3565
+ }
3566
+ );
3441
3567
  // Annotate the CommonJS export names for ESM import in node:
3442
3568
  0 && (module.exports = {
3443
3569
  accordion,
@@ -3455,6 +3581,7 @@ var accordion = (0, import_tailwind_variants22.tv)({
3455
3581
  drip,
3456
3582
  link,
3457
3583
  pagination,
3584
+ progress,
3458
3585
  radio,
3459
3586
  radioGroup,
3460
3587
  snippet,
@@ -1,4 +1,13 @@
1
- import "../chunk-5SJ7B53O.mjs";
1
+ import "../chunk-FWB233VZ.mjs";
2
+ import {
3
+ radioGroup
4
+ } from "../chunk-HHWXPWYN.mjs";
5
+ import {
6
+ radio
7
+ } from "../chunk-Y37XC5QN.mjs";
8
+ import {
9
+ snippet
10
+ } from "../chunk-QMP2FDFR.mjs";
2
11
  import {
3
12
  spinner
4
13
  } from "../chunk-CO6ANWRA.mjs";
@@ -11,6 +20,12 @@ import {
11
20
  import {
12
21
  user
13
22
  } from "../chunk-FS36US4S.mjs";
23
+ import {
24
+ checkbox
25
+ } from "../chunk-NJQP2VWT.mjs";
26
+ import {
27
+ chip
28
+ } from "../chunk-TV7EJNXI.mjs";
14
29
  import {
15
30
  code
16
31
  } from "../chunk-B5S7HT6N.mjs";
@@ -24,14 +39,14 @@ import {
24
39
  pagination
25
40
  } from "../chunk-7BYRB2YS.mjs";
26
41
  import {
27
- radioGroup
28
- } from "../chunk-HHWXPWYN.mjs";
42
+ progress
43
+ } from "../chunk-BHKK632M.mjs";
29
44
  import {
30
- radio
31
- } from "../chunk-Y37XC5QN.mjs";
45
+ accordion
46
+ } from "../chunk-YYBLBQIV.mjs";
32
47
  import {
33
- snippet
34
- } from "../chunk-QMP2FDFR.mjs";
48
+ avatarGroup
49
+ } from "../chunk-MLH3XSY7.mjs";
35
50
  import {
36
51
  avatar
37
52
  } from "../chunk-D4TJV7NY.mjs";
@@ -46,28 +61,16 @@ import {
46
61
  } from "../chunk-BD2KW4ZD.mjs";
47
62
  import {
48
63
  card
49
- } from "../chunk-L63N5OAM.mjs";
64
+ } from "../chunk-HESJI33K.mjs";
50
65
  import {
51
66
  checkboxGroup
52
67
  } from "../chunk-U77YMEWM.mjs";
53
- import {
54
- checkbox
55
- } from "../chunk-NJQP2VWT.mjs";
56
- import {
57
- chip
58
- } from "../chunk-TV7EJNXI.mjs";
59
68
  import {
60
69
  accordionItem
61
70
  } from "../chunk-RD42SVXB.mjs";
62
71
  import "../chunk-CMYR6AOY.mjs";
63
72
  import "../chunk-K7LK7NCE.mjs";
64
73
  import "../chunk-LGGZKBOO.mjs";
65
- import {
66
- accordion
67
- } from "../chunk-YYBLBQIV.mjs";
68
- import {
69
- avatarGroup
70
- } from "../chunk-MLH3XSY7.mjs";
71
74
  import "../chunk-IJCHUO4J.mjs";
72
75
  export {
73
76
  accordion,
@@ -85,6 +88,7 @@ export {
85
88
  drip,
86
89
  link,
87
90
  pagination,
91
+ progress,
88
92
  radio,
89
93
  radioGroup,
90
94
  snippet,