@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.
@@ -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
  };
@@ -8,7 +8,7 @@ import {
8
8
  // src/components/menu.ts
9
9
  var menu = tv({
10
10
  slots: {
11
- base: "w-full relative flex flex-col gap-1 p-1",
11
+ base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
12
12
  list: "w-full flex flex-col gap-0.5 outline-none",
13
13
  emptyContent: [
14
14
  "h-10",
@@ -116,6 +116,16 @@ var menuItem = tv({
116
116
  false: {
117
117
  base: "data-[hover=true]:transition-colors"
118
118
  }
119
+ },
120
+ hasTitleTextChild: {
121
+ true: {
122
+ title: "truncate"
123
+ }
124
+ },
125
+ hasDescriptionTextChild: {
126
+ true: {
127
+ description: "truncate"
128
+ }
119
129
  }
120
130
  },
121
131
  defaultVariants: {
@@ -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",
@@ -6886,7 +6884,7 @@ var select = tv({
6886
6884
  // src/components/menu.ts
6887
6885
  var menu = tv({
6888
6886
  slots: {
6889
- base: "w-full relative flex flex-col gap-1 p-1",
6887
+ base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
6890
6888
  list: "w-full flex flex-col gap-0.5 outline-none",
6891
6889
  emptyContent: [
6892
6890
  "h-10",
@@ -6994,6 +6992,16 @@ var menuItem = tv({
6994
6992
  false: {
6995
6993
  base: "data-[hover=true]:transition-colors"
6996
6994
  }
6995
+ },
6996
+ hasTitleTextChild: {
6997
+ true: {
6998
+ title: "truncate"
6999
+ }
7000
+ },
7001
+ hasDescriptionTextChild: {
7002
+ true: {
7003
+ description: "truncate"
7004
+ }
6997
7005
  }
6998
7006
  },
6999
7007
  defaultVariants: {
@@ -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
@@ -84,7 +84,7 @@ var dataFocusVisibleClasses = [
84
84
  // src/components/menu.ts
85
85
  var menu = tv({
86
86
  slots: {
87
- base: "w-full relative flex flex-col gap-1 p-1",
87
+ base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
88
88
  list: "w-full flex flex-col gap-0.5 outline-none",
89
89
  emptyContent: [
90
90
  "h-10",
@@ -192,6 +192,16 @@ var menuItem = tv({
192
192
  false: {
193
193
  base: "data-[hover=true]:transition-colors"
194
194
  }
195
+ },
196
+ hasTitleTextChild: {
197
+ true: {
198
+ title: "truncate"
199
+ }
200
+ },
201
+ hasDescriptionTextChild: {
202
+ true: {
203
+ description: "truncate"
204
+ }
195
205
  }
196
206
  },
197
207
  defaultVariants: {
@@ -3,7 +3,7 @@ import {
3
3
  menu,
4
4
  menuItem,
5
5
  menuSection
6
- } from "../chunk-K6KPB2U5.mjs";
6
+ } from "../chunk-PTCUE3XA.mjs";
7
7
  import "../chunk-IV3K5WDK.mjs";
8
8
  import "../chunk-GQT3YUX3.mjs";
9
9
  import "../chunk-46U6G7UJ.mjs";
@@ -129,6 +129,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
129
129
  base: string;
130
130
  };
131
131
  };
132
+ hasTitleTextChild: {
133
+ true: {
134
+ title: string;
135
+ };
136
+ };
137
+ hasDescriptionTextChild: {
138
+ true: {
139
+ description: string;
140
+ };
141
+ };
132
142
  }, {
133
143
  base: string[];
134
144
  wrapper: string;
@@ -182,6 +192,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
182
192
  base: string;
183
193
  };
184
194
  };
195
+ hasTitleTextChild: {
196
+ true: {
197
+ title: string;
198
+ };
199
+ };
200
+ hasDescriptionTextChild: {
201
+ true: {
202
+ description: string;
203
+ };
204
+ };
185
205
  }, {
186
206
  variant: {
187
207
  solid: {
@@ -228,6 +248,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
228
248
  base: string;
229
249
  };
230
250
  };
251
+ hasTitleTextChild: {
252
+ true: {
253
+ title: string;
254
+ };
255
+ };
256
+ hasDescriptionTextChild: {
257
+ true: {
258
+ description: string;
259
+ };
260
+ };
231
261
  }>, {
232
262
  variant: {
233
263
  solid: {
@@ -274,6 +304,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
274
304
  base: string;
275
305
  };
276
306
  };
307
+ hasTitleTextChild: {
308
+ true: {
309
+ title: string;
310
+ };
311
+ };
312
+ hasDescriptionTextChild: {
313
+ true: {
314
+ description: string;
315
+ };
316
+ };
277
317
  }, {
278
318
  base: string[];
279
319
  wrapper: string;
@@ -327,6 +367,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
327
367
  base: string;
328
368
  };
329
369
  };
370
+ hasTitleTextChild: {
371
+ true: {
372
+ title: string;
373
+ };
374
+ };
375
+ hasDescriptionTextChild: {
376
+ true: {
377
+ description: string;
378
+ };
379
+ };
330
380
  }, {
331
381
  base: string[];
332
382
  wrapper: string;
@@ -380,6 +430,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
380
430
  base: string;
381
431
  };
382
432
  };
433
+ hasTitleTextChild: {
434
+ true: {
435
+ title: string;
436
+ };
437
+ };
438
+ hasDescriptionTextChild: {
439
+ true: {
440
+ description: string;
441
+ };
442
+ };
383
443
  }, {
384
444
  variant: {
385
445
  solid: {
@@ -426,6 +486,16 @@ declare const menuItem: tailwind_variants.TVReturnType<{
426
486
  base: string;
427
487
  };
428
488
  };
489
+ hasTitleTextChild: {
490
+ true: {
491
+ title: string;
492
+ };
493
+ };
494
+ hasDescriptionTextChild: {
495
+ true: {
496
+ description: string;
497
+ };
498
+ };
429
499
  }>, unknown, unknown, undefined>>;
430
500
  /**
431
501
  * Menu section wrapper **Tailwind Variants** component
@@ -84,7 +84,7 @@ var dataFocusVisibleClasses = [
84
84
  // src/components/menu.ts
85
85
  var menu = tv({
86
86
  slots: {
87
- base: "w-full relative flex flex-col gap-1 p-1",
87
+ base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
88
88
  list: "w-full flex flex-col gap-0.5 outline-none",
89
89
  emptyContent: [
90
90
  "h-10",
@@ -192,6 +192,16 @@ var menuItem = tv({
192
192
  false: {
193
193
  base: "data-[hover=true]:transition-colors"
194
194
  }
195
+ },
196
+ hasTitleTextChild: {
197
+ true: {
198
+ title: "truncate"
199
+ }
200
+ },
201
+ hasDescriptionTextChild: {
202
+ true: {
203
+ description: "truncate"
204
+ }
195
205
  }
196
206
  },
197
207
  defaultVariants: {
@@ -2,7 +2,7 @@ import {
2
2
  menu,
3
3
  menuItem,
4
4
  menuSection
5
- } from "../chunk-K6KPB2U5.mjs";
5
+ } from "../chunk-PTCUE3XA.mjs";
6
6
  import "../chunk-IV3K5WDK.mjs";
7
7
  import "../chunk-GQT3YUX3.mjs";
8
8
  import "../chunk-46U6G7UJ.mjs";