@nextui-org/theme 2.3.0-beta.16 → 2.3.0-beta.17
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.
- package/dist/chunk-6CPZ7K75.mjs +444 -0
- package/dist/{chunk-4QKM3RKK.mjs → chunk-LCMN7HGG.mjs} +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +436 -0
- package/dist/components/index.mjs +14 -10
- package/dist/components/input-otp.d.ts +603 -0
- package/dist/components/input-otp.js +518 -0
- package/dist/components/input-otp.mjs +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +436 -0
- package/dist/index.mjs +17 -13
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/{chunk-KEHIJEFK.mjs → chunk-MA4DKK64.mjs} +0 -0
- package/dist/{chunk-KVYVTKEN.mjs → chunk-XZMJGJQX.mjs} +3 -3
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/input-otp.ts
|
|
9
|
+
var inputOtp = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: ["relative", "flex", "flex-col", "w-fit"],
|
|
12
|
+
wrapper: ["group", "flex items-center", "has-[:disabled]:opacity-60"],
|
|
13
|
+
input: [
|
|
14
|
+
"absolute",
|
|
15
|
+
"inset-0",
|
|
16
|
+
"border-none",
|
|
17
|
+
"outline-none",
|
|
18
|
+
"bg-transparent",
|
|
19
|
+
"text-transparent"
|
|
20
|
+
],
|
|
21
|
+
segmentWrapper: ["inline-flex", "gap-x-1", "py-2"],
|
|
22
|
+
segment: [
|
|
23
|
+
"h-10",
|
|
24
|
+
"w-10",
|
|
25
|
+
"font-semibold",
|
|
26
|
+
"flex",
|
|
27
|
+
"justify-center",
|
|
28
|
+
"items-center",
|
|
29
|
+
"border-default-200",
|
|
30
|
+
"data-[active=true]:border-default-400",
|
|
31
|
+
"data-[active=true]:scale-110",
|
|
32
|
+
"shadow-sm",
|
|
33
|
+
"hover:bg-danger",
|
|
34
|
+
...dataFocusVisibleClasses
|
|
35
|
+
],
|
|
36
|
+
passwordChar: ["w-1", "h-1", "bg-default-800", "rounded-full"],
|
|
37
|
+
caret: [
|
|
38
|
+
"animate-[appearance-in_1s_infinite]",
|
|
39
|
+
"font-extralight",
|
|
40
|
+
"h-full",
|
|
41
|
+
"w-full",
|
|
42
|
+
"flex",
|
|
43
|
+
"justify-center",
|
|
44
|
+
"items-center",
|
|
45
|
+
"text-2xl",
|
|
46
|
+
"h-[50%]",
|
|
47
|
+
"w-px",
|
|
48
|
+
"bg-foreground"
|
|
49
|
+
],
|
|
50
|
+
helperWrapper: ["text-tiny", "mt-0.5", "font-extralight", ""],
|
|
51
|
+
errorMessage: ["text-tiny text-danger w-full"],
|
|
52
|
+
description: ["text-tiny text-foreground-400"]
|
|
53
|
+
},
|
|
54
|
+
variants: {
|
|
55
|
+
variant: {
|
|
56
|
+
flat: {
|
|
57
|
+
segment: ["border-transparent", "bg-default-100", "data-[active=true]:bg-default-200"]
|
|
58
|
+
},
|
|
59
|
+
faded: {
|
|
60
|
+
segment: ["bg-default-100", "border-medium"]
|
|
61
|
+
},
|
|
62
|
+
bordered: {
|
|
63
|
+
segment: ["border-medium"]
|
|
64
|
+
},
|
|
65
|
+
underlined: {
|
|
66
|
+
segment: [
|
|
67
|
+
"shadow-none",
|
|
68
|
+
"relative",
|
|
69
|
+
"box-border",
|
|
70
|
+
"!rounded-none",
|
|
71
|
+
"border-b-medium",
|
|
72
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
73
|
+
"border-default-200",
|
|
74
|
+
"after:content-['']",
|
|
75
|
+
"after:w-0",
|
|
76
|
+
"after:origin-center",
|
|
77
|
+
"after:bg-default-foreground",
|
|
78
|
+
"after:absolute",
|
|
79
|
+
"after:left-1/2",
|
|
80
|
+
"after:-translate-x-1/2",
|
|
81
|
+
"after:-bottom-[2px]",
|
|
82
|
+
"after:h-[2px]",
|
|
83
|
+
"data-[active=true]:border-default-300",
|
|
84
|
+
"data-[active=true]:after:w-full",
|
|
85
|
+
"data-[active=true]:scale-100"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
isDisabled: {
|
|
90
|
+
true: {
|
|
91
|
+
segment: "opacity-disabled pointer-events-none",
|
|
92
|
+
input: "pointer-events-none"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
isInvalid: {
|
|
96
|
+
true: {}
|
|
97
|
+
},
|
|
98
|
+
isReadOnly: {
|
|
99
|
+
true: {
|
|
100
|
+
caret: "bg-transparent",
|
|
101
|
+
segment: "transition-none data-[active=true]:scale-100"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
fullWidth: {
|
|
105
|
+
true: {
|
|
106
|
+
base: "w-full"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
radius: {
|
|
110
|
+
none: {
|
|
111
|
+
segment: "rounded-none"
|
|
112
|
+
},
|
|
113
|
+
sm: {
|
|
114
|
+
segment: "rounded-sm"
|
|
115
|
+
},
|
|
116
|
+
md: {
|
|
117
|
+
segment: "rounded-md"
|
|
118
|
+
},
|
|
119
|
+
lg: {
|
|
120
|
+
segment: "rounded-lg"
|
|
121
|
+
},
|
|
122
|
+
full: {
|
|
123
|
+
segment: "rounded-full"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
color: {
|
|
127
|
+
default: {},
|
|
128
|
+
primary: {},
|
|
129
|
+
secondary: {},
|
|
130
|
+
success: {},
|
|
131
|
+
warning: {},
|
|
132
|
+
danger: {}
|
|
133
|
+
},
|
|
134
|
+
size: {
|
|
135
|
+
sm: {
|
|
136
|
+
segment: "h-8 min-h-8 w-8 min-w-8 text-small"
|
|
137
|
+
},
|
|
138
|
+
md: {
|
|
139
|
+
segment: "h-10 min-h-10 w-10 min-w-10 text-small"
|
|
140
|
+
},
|
|
141
|
+
lg: {
|
|
142
|
+
segment: "h-12 min-h-12 w-12 min-w-12 text-medium"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
disableAnimation: {
|
|
146
|
+
true: {
|
|
147
|
+
segment: "transition-none",
|
|
148
|
+
caret: "animate-none"
|
|
149
|
+
},
|
|
150
|
+
false: {
|
|
151
|
+
segment: "transition duration-150"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
defaultVariants: {
|
|
156
|
+
variant: "flat",
|
|
157
|
+
color: "default",
|
|
158
|
+
radius: "md",
|
|
159
|
+
size: "md"
|
|
160
|
+
},
|
|
161
|
+
compoundVariants: [
|
|
162
|
+
{
|
|
163
|
+
variant: "flat",
|
|
164
|
+
color: "default",
|
|
165
|
+
class: {
|
|
166
|
+
segment: ["bg-default-100", "data-[active=true]:bg-default-200"]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
variant: "flat",
|
|
171
|
+
color: "primary",
|
|
172
|
+
class: {
|
|
173
|
+
segment: ["bg-primary-100", "data-[active=true]:bg-primary-200", "text-primary"],
|
|
174
|
+
caret: ["bg-primary"],
|
|
175
|
+
passwordChar: ["bg-primary"]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
variant: "flat",
|
|
180
|
+
color: "secondary",
|
|
181
|
+
class: {
|
|
182
|
+
segment: ["bg-secondary-100", "data-[active=true]:bg-secondary-200", "text-secondary"],
|
|
183
|
+
caret: ["bg-secondary"],
|
|
184
|
+
passwordChar: ["bg-secondary"]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
variant: "flat",
|
|
189
|
+
color: "success",
|
|
190
|
+
class: {
|
|
191
|
+
segment: ["bg-success-100", "data-[active=true]:bg-success-200", "text-success"],
|
|
192
|
+
caret: ["bg-success"],
|
|
193
|
+
passwordChar: ["bg-success"]
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
variant: "flat",
|
|
198
|
+
color: "warning",
|
|
199
|
+
class: {
|
|
200
|
+
segment: ["bg-warning-100", "data-[active=true]:bg-warning-200", "text-warning"],
|
|
201
|
+
caret: ["bg-warning"],
|
|
202
|
+
passwordChar: ["bg-warning"]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
variant: "flat",
|
|
207
|
+
color: "danger",
|
|
208
|
+
class: {
|
|
209
|
+
segment: ["bg-danger-100", "data-[active=true]:bg-danger-200", "text-danger"],
|
|
210
|
+
caret: ["bg-danger"],
|
|
211
|
+
passwordChar: ["bg-danger"]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
variant: "faded",
|
|
216
|
+
color: "default",
|
|
217
|
+
class: {
|
|
218
|
+
segment: ""
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
variant: "faded",
|
|
223
|
+
color: "primary",
|
|
224
|
+
class: {
|
|
225
|
+
segment: [
|
|
226
|
+
"bg-primary-100",
|
|
227
|
+
"text-primary",
|
|
228
|
+
"border-primary-200",
|
|
229
|
+
"data-[active=true]:border-primary"
|
|
230
|
+
],
|
|
231
|
+
caret: ["bg-primary"],
|
|
232
|
+
passwordChar: ["bg-primary"]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
variant: "faded",
|
|
237
|
+
color: "secondary",
|
|
238
|
+
class: {
|
|
239
|
+
segment: [
|
|
240
|
+
"bg-secondary-100",
|
|
241
|
+
"text-secondary",
|
|
242
|
+
"border-secondary-200",
|
|
243
|
+
"data-[active=true]:border-secondary"
|
|
244
|
+
],
|
|
245
|
+
caret: ["bg-secondary"],
|
|
246
|
+
passwordChar: ["bg-secondary"]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
variant: "faded",
|
|
251
|
+
color: "success",
|
|
252
|
+
class: {
|
|
253
|
+
segment: [
|
|
254
|
+
"bg-success-100",
|
|
255
|
+
"text-success",
|
|
256
|
+
"border-success-200",
|
|
257
|
+
"data-[active=true]:border-success"
|
|
258
|
+
],
|
|
259
|
+
caret: ["bg-success"],
|
|
260
|
+
passwordChar: ["bg-success"]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
variant: "faded",
|
|
265
|
+
color: "warning",
|
|
266
|
+
class: {
|
|
267
|
+
segment: [
|
|
268
|
+
"bg-warning-100",
|
|
269
|
+
"text-warning",
|
|
270
|
+
"border-warning-200",
|
|
271
|
+
"data-[active=true]:border-warning"
|
|
272
|
+
],
|
|
273
|
+
caret: ["bg-warning"],
|
|
274
|
+
passwordChar: ["bg-warning"]
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
variant: "faded",
|
|
279
|
+
color: "danger",
|
|
280
|
+
class: {
|
|
281
|
+
segment: [
|
|
282
|
+
"bg-danger-100",
|
|
283
|
+
"text-danger",
|
|
284
|
+
"border-danger-200",
|
|
285
|
+
"data-[active=true]:border-danger"
|
|
286
|
+
],
|
|
287
|
+
caret: ["bg-danger"],
|
|
288
|
+
passwordChar: ["bg-danger"]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
variant: "bordered",
|
|
293
|
+
color: "default",
|
|
294
|
+
class: {
|
|
295
|
+
segment: "data-[has-value=true]:text-default-foreground data-[active=true]:border-foreground"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
variant: "bordered",
|
|
300
|
+
color: "primary",
|
|
301
|
+
class: {
|
|
302
|
+
segment: ["border-primary-200", "text-primary", "data-[active=true]:border-primary"],
|
|
303
|
+
caret: ["bg-primary"],
|
|
304
|
+
passwordChar: ["bg-primary"]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
variant: "bordered",
|
|
309
|
+
color: "secondary",
|
|
310
|
+
class: {
|
|
311
|
+
segment: ["border-secondary-200", "text-secondary", "data-[active=true]:border-secondary"],
|
|
312
|
+
caret: ["bg-secondary"],
|
|
313
|
+
passwordChar: ["bg-secondary"]
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
variant: "bordered",
|
|
318
|
+
color: "success",
|
|
319
|
+
class: {
|
|
320
|
+
segment: ["border-success-200", "text-success", "data-[active=true]:border-success"],
|
|
321
|
+
caret: ["bg-success"],
|
|
322
|
+
passwordChar: ["bg-success"]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
variant: "bordered",
|
|
327
|
+
color: "warning",
|
|
328
|
+
class: {
|
|
329
|
+
segment: ["border-warning-200", "text-warning", "data-[active=true]:border-warning"],
|
|
330
|
+
caret: ["bg-warning"],
|
|
331
|
+
passwordChar: ["bg-warning"]
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
variant: "bordered",
|
|
336
|
+
color: "danger",
|
|
337
|
+
class: {
|
|
338
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger"],
|
|
339
|
+
caret: ["bg-danger"],
|
|
340
|
+
passwordChar: ["bg-danger"]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
variant: "underlined",
|
|
345
|
+
color: "default",
|
|
346
|
+
class: {
|
|
347
|
+
segment: "data-[has-value=true]:text-default-foreground after:bg-foreground"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
variant: "underlined",
|
|
352
|
+
color: "primary",
|
|
353
|
+
class: {
|
|
354
|
+
segment: ["border-primary-200", "text-primary", "after:bg-primary"],
|
|
355
|
+
caret: ["bg-primary"],
|
|
356
|
+
passwordChar: ["bg-primary"]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
variant: "underlined",
|
|
361
|
+
color: "secondary",
|
|
362
|
+
class: {
|
|
363
|
+
segment: ["border-secondary-200", "text-secondary", "after:bg-secondary"],
|
|
364
|
+
caret: ["bg-secondary"],
|
|
365
|
+
passwordChar: ["bg-secondary"]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
variant: "underlined",
|
|
370
|
+
color: "success",
|
|
371
|
+
class: {
|
|
372
|
+
segment: ["border-success-200", "text-success", "after:bg-success"],
|
|
373
|
+
caret: ["bg-success"],
|
|
374
|
+
passwordChar: ["bg-success"]
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
variant: "underlined",
|
|
379
|
+
color: "warning",
|
|
380
|
+
class: {
|
|
381
|
+
segment: ["border-warning-200", "text-warning", "after:bg-warning"],
|
|
382
|
+
caret: ["bg-warning"],
|
|
383
|
+
passwordChar: ["bg-warning"]
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
variant: "underlined",
|
|
388
|
+
color: "danger",
|
|
389
|
+
class: {
|
|
390
|
+
segment: ["border-danger-200", "text-danger", "after:bg-danger"],
|
|
391
|
+
caret: ["bg-danger"],
|
|
392
|
+
passwordChar: ["bg-danger"]
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
variant: "flat",
|
|
397
|
+
isInvalid: true,
|
|
398
|
+
class: {
|
|
399
|
+
segment: ["bg-danger-50", "data-[active=true]:bg-danger-100", "text-danger"],
|
|
400
|
+
caret: ["bg-danger"]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
variant: "faded",
|
|
405
|
+
isInvalid: true,
|
|
406
|
+
class: {
|
|
407
|
+
segment: [
|
|
408
|
+
"bg-danger-50",
|
|
409
|
+
"text-danger",
|
|
410
|
+
"border-danger-200",
|
|
411
|
+
"data-[active=true]:border-danger-400"
|
|
412
|
+
],
|
|
413
|
+
caret: ["bg-danger"]
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
variant: "bordered",
|
|
418
|
+
isInvalid: true,
|
|
419
|
+
class: {
|
|
420
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger-400"],
|
|
421
|
+
caret: ["bg-danger"]
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
variant: "underlined",
|
|
426
|
+
isInvalid: true,
|
|
427
|
+
class: {
|
|
428
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:after:bg-danger-400"],
|
|
429
|
+
caret: ["bg-danger"]
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
disableAnimation: false,
|
|
434
|
+
variant: "underlined",
|
|
435
|
+
class: {
|
|
436
|
+
segment: "after:transition-width motion-reduce:after:transition-none"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
export {
|
|
443
|
+
inputOtp
|
|
444
|
+
};
|
|
@@ -16,6 +16,7 @@ export { PaginationSlots, PaginationVariantProps, pagination } from './paginatio
|
|
|
16
16
|
export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
|
|
17
17
|
export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './accordion.js';
|
|
18
18
|
export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress } from './progress.js';
|
|
19
|
+
export { InputOtpReturnType, InputOtpSlots, InputOtpVariantProps, inputOtp } from './input-otp.js';
|
|
19
20
|
export { InputSlots, InputVariantProps, input } from './input.js';
|
|
20
21
|
export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './dropdown.js';
|
|
21
22
|
export { ImageSlots, ImageVariantProps, image } from './image.js';
|