@nextui-org/theme 0.0.0-dev-v2-20230328184744 → 0.0.0-dev-v2-20230329200753

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",
@@ -135,7 +134,9 @@ var card = tv({
135
134
  }
136
135
  },
137
136
  isHoverable: {
138
- true: {}
137
+ true: {
138
+ base: "hover:bg-content2 dark:hover:bg-content2"
139
+ }
139
140
  },
140
141
  isPressable: {
141
142
  true: { base: "cursor-pointer" }
@@ -157,15 +158,10 @@ var card = tv({
157
158
  },
158
159
  disableAnimation: {
159
160
  true: "",
160
- false: { base: "transition-transform motion-reduce:transition-none" }
161
+ false: { base: "transition-transform-background motion-reduce:transition-none" }
161
162
  }
162
163
  },
163
164
  compoundVariants: [
164
- {
165
- isHoverable: true,
166
- disableAnimation: false,
167
- class: "hover:-translate-y-1.5"
168
- },
169
165
  {
170
166
  isPressable: true,
171
167
  disableAnimation: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  utilities
3
- } from "./chunk-45FXWIO6.mjs";
3
+ } from "./chunk-XLATS5QU.mjs";
4
4
  import {
5
5
  baseStyles
6
6
  } from "./chunk-IJCHUO4J.mjs";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-37PIXVP4.mjs";
13
13
  import {
14
14
  animations
15
- } from "./chunk-OMTYF2LL.mjs";
15
+ } from "./chunk-BZ3JOG7M.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>
@@ -93,7 +93,9 @@ declare const card: tailwind_variants.TVReturnType<{
93
93
  };
94
94
  };
95
95
  isHoverable: {
96
- true: {};
96
+ true: {
97
+ base: string;
98
+ };
97
99
  };
98
100
  isPressable: {
99
101
  true: {
@@ -203,7 +205,9 @@ declare const card: tailwind_variants.TVReturnType<{
203
205
  };
204
206
  };
205
207
  isHoverable: {
206
- true: {};
208
+ true: {
209
+ base: string;
210
+ };
207
211
  };
208
212
  isPressable: {
209
213
  true: {
@@ -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",
@@ -167,7 +166,9 @@ var card = (0, import_tailwind_variants.tv)({
167
166
  }
168
167
  },
169
168
  isHoverable: {
170
- true: {}
169
+ true: {
170
+ base: "hover:bg-content2 dark:hover:bg-content2"
171
+ }
171
172
  },
172
173
  isPressable: {
173
174
  true: { base: "cursor-pointer" }
@@ -189,15 +190,10 @@ var card = (0, import_tailwind_variants.tv)({
189
190
  },
190
191
  disableAnimation: {
191
192
  true: "",
192
- false: { base: "transition-transform motion-reduce:transition-none" }
193
+ false: { base: "transition-transform-background motion-reduce:transition-none" }
193
194
  }
194
195
  },
195
196
  compoundVariants: [
196
- {
197
- isHoverable: true,
198
- disableAnimation: false,
199
- class: "hover:-translate-y-1.5"
200
- },
201
197
  {
202
198
  isPressable: true,
203
199
  disableAnimation: false,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  card
3
- } from "../chunk-Z5OKZPNV.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",
@@ -486,7 +486,9 @@ var card = (0, import_tailwind_variants3.tv)({
486
486
  }
487
487
  },
488
488
  isHoverable: {
489
- true: {}
489
+ true: {
490
+ base: "hover:bg-content2 dark:hover:bg-content2"
491
+ }
490
492
  },
491
493
  isPressable: {
492
494
  true: { base: "cursor-pointer" }
@@ -508,15 +510,10 @@ var card = (0, import_tailwind_variants3.tv)({
508
510
  },
509
511
  disableAnimation: {
510
512
  true: "",
511
- false: { base: "transition-transform motion-reduce:transition-none" }
513
+ false: { base: "transition-transform-background motion-reduce:transition-none" }
512
514
  }
513
515
  },
514
516
  compoundVariants: [
515
- {
516
- isHoverable: true,
517
- disableAnimation: false,
518
- class: "hover:-translate-y-1.5"
519
- },
520
517
  {
521
518
  isPressable: true,
522
519
  disableAnimation: false,
@@ -3441,6 +3438,132 @@ var accordion = (0, import_tailwind_variants22.tv)({
3441
3438
  }
3442
3439
  }
3443
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
+ );
3444
3567
  // Annotate the CommonJS export names for ESM import in node:
3445
3568
  0 && (module.exports = {
3446
3569
  accordion,
@@ -3458,6 +3581,7 @@ var accordion = (0, import_tailwind_variants22.tv)({
3458
3581
  drip,
3459
3582
  link,
3460
3583
  pagination,
3584
+ progress,
3461
3585
  radio,
3462
3586
  radioGroup,
3463
3587
  snippet,
@@ -1,4 +1,7 @@
1
- import "../chunk-5SJ7B53O.mjs";
1
+ import "../chunk-FWB233VZ.mjs";
2
+ import {
3
+ radioGroup
4
+ } from "../chunk-HHWXPWYN.mjs";
2
5
  import {
3
6
  radio
4
7
  } from "../chunk-Y37XC5QN.mjs";
@@ -36,8 +39,8 @@ import {
36
39
  pagination
37
40
  } from "../chunk-7BYRB2YS.mjs";
38
41
  import {
39
- radioGroup
40
- } from "../chunk-HHWXPWYN.mjs";
42
+ progress
43
+ } from "../chunk-BHKK632M.mjs";
41
44
  import {
42
45
  accordion
43
46
  } from "../chunk-YYBLBQIV.mjs";
@@ -58,7 +61,7 @@ import {
58
61
  } from "../chunk-BD2KW4ZD.mjs";
59
62
  import {
60
63
  card
61
- } from "../chunk-Z5OKZPNV.mjs";
64
+ } from "../chunk-HESJI33K.mjs";
62
65
  import {
63
66
  checkboxGroup
64
67
  } from "../chunk-U77YMEWM.mjs";
@@ -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,