@nextui-org/theme 2.3.0-beta.8 → 2.3.0
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-IZOPFGDE.mjs → chunk-6KWI4IHE.mjs} +82 -1
- package/dist/chunk-AHEUDQZM.mjs +18 -0
- package/dist/{chunk-3ANIDDEW.mjs → chunk-IDHWVJY2.mjs} +1 -1
- package/dist/{chunk-MXL6JCUG.mjs → chunk-KOCBDPPO.mjs} +29 -6
- package/dist/{chunk-K6KPB2U5.mjs → chunk-PTCUE3XA.mjs} +11 -1
- package/dist/{chunk-HNRFZTEX.mjs → chunk-TK7HBD3N.mjs} +2 -1
- package/dist/{chunk-2TAKWWRG.mjs → chunk-ZZ2VSLD6.mjs} +1 -1
- package/dist/components/accordion.mjs +2 -1
- package/dist/components/alert.mjs +2 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/avatar.mjs +2 -1
- package/dist/components/badge.mjs +2 -1
- package/dist/components/breadcrumbs.mjs +2 -1
- package/dist/components/button.mjs +2 -1
- package/dist/components/calendar.mjs +2 -1
- package/dist/components/card.mjs +2 -1
- package/dist/components/checkbox.mjs +2 -1
- package/dist/components/chip.mjs +2 -1
- package/dist/components/code.mjs +2 -1
- package/dist/components/date-input.d.ts +7 -0
- package/dist/components/date-input.js +2 -1
- package/dist/components/date-input.mjs +1 -1
- package/dist/components/dropdown.mjs +2 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +480 -12
- package/dist/components/index.mjs +17 -14
- 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/components/input.d.ts +21 -7
- package/dist/components/input.js +29 -6
- package/dist/components/input.mjs +3 -2
- package/dist/components/link.mjs +2 -1
- package/dist/components/listbox.js +11 -1
- package/dist/components/listbox.mjs +3 -2
- package/dist/components/menu.d.ts +70 -0
- package/dist/components/menu.js +11 -1
- package/dist/components/menu.mjs +3 -2
- package/dist/components/modal.mjs +2 -1
- package/dist/components/navbar.mjs +2 -1
- package/dist/components/pagination.mjs +2 -1
- package/dist/components/popover.mjs +2 -1
- package/dist/components/progress.d.ts +426 -1
- package/dist/components/progress.js +82 -0
- package/dist/components/progress.mjs +3 -1
- package/dist/components/radio.mjs +2 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.mjs +3 -2
- package/dist/components/slider.mjs +2 -1
- package/dist/components/snippet.mjs +2 -1
- package/dist/components/table.mjs +2 -1
- package/dist/components/tabs.mjs +2 -1
- package/dist/components/toggle.mjs +2 -1
- package/dist/components/user.mjs +2 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +500 -15
- package/dist/index.mjs +20 -14
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/index.mjs +5 -1
- package/dist/utils/merge-classes.d.ts +12 -0
- package/dist/utils/merge-classes.js +42 -0
- package/dist/utils/merge-classes.mjs +6 -0
- package/package.json +2 -2
- package/dist/chunk-AUN4SP2F.mjs +0 -89
- package/dist/components/circular-progress.d.ts +0 -430
- package/dist/components/circular-progress.js +0 -157
- package/dist/components/circular-progress.mjs +0 -8
- /package/dist/{chunk-IV3K5WDK.mjs → chunk-CWYZ2GEH.mjs} +0 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/input-otp.ts
|
|
21
|
+
var input_otp_exports = {};
|
|
22
|
+
__export(input_otp_exports, {
|
|
23
|
+
inputOtp: () => inputOtp
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(input_otp_exports);
|
|
26
|
+
|
|
27
|
+
// src/utils/tv.ts
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/utils/tw-merge-config.ts
|
|
31
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
32
|
+
var twMergeConfig = {
|
|
33
|
+
theme: {
|
|
34
|
+
opacity: ["disabled"],
|
|
35
|
+
spacing: ["divider"],
|
|
36
|
+
borderWidth: COMMON_UNITS,
|
|
37
|
+
borderRadius: COMMON_UNITS
|
|
38
|
+
},
|
|
39
|
+
classGroups: {
|
|
40
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
+
"bg-image": [
|
|
43
|
+
"bg-stripe-gradient-default",
|
|
44
|
+
"bg-stripe-gradient-primary",
|
|
45
|
+
"bg-stripe-gradient-secondary",
|
|
46
|
+
"bg-stripe-gradient-success",
|
|
47
|
+
"bg-stripe-gradient-warning",
|
|
48
|
+
"bg-stripe-gradient-danger"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/utils/tv.ts
|
|
54
|
+
var tv = (options, config) => {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
57
|
+
...config,
|
|
58
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
59
|
+
twMergeConfig: {
|
|
60
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
61
|
+
theme: {
|
|
62
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
63
|
+
...twMergeConfig.theme
|
|
64
|
+
},
|
|
65
|
+
classGroups: {
|
|
66
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
67
|
+
...twMergeConfig.classGroups
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// src/utils/classes.ts
|
|
74
|
+
var dataFocusVisibleClasses = [
|
|
75
|
+
"outline-none",
|
|
76
|
+
"data-[focus-visible=true]:z-10",
|
|
77
|
+
"data-[focus-visible=true]:outline-2",
|
|
78
|
+
"data-[focus-visible=true]:outline-focus",
|
|
79
|
+
"data-[focus-visible=true]:outline-offset-2"
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
// src/components/input-otp.ts
|
|
83
|
+
var inputOtp = tv({
|
|
84
|
+
slots: {
|
|
85
|
+
base: ["relative", "flex", "flex-col", "w-fit"],
|
|
86
|
+
wrapper: ["group", "flex items-center", "has-[:disabled]:opacity-60"],
|
|
87
|
+
input: [
|
|
88
|
+
"absolute",
|
|
89
|
+
"inset-0",
|
|
90
|
+
"border-none",
|
|
91
|
+
"outline-none",
|
|
92
|
+
"bg-transparent",
|
|
93
|
+
"text-transparent"
|
|
94
|
+
],
|
|
95
|
+
segmentWrapper: ["inline-flex", "gap-x-1", "py-2"],
|
|
96
|
+
segment: [
|
|
97
|
+
"h-10",
|
|
98
|
+
"w-10",
|
|
99
|
+
"font-semibold",
|
|
100
|
+
"flex",
|
|
101
|
+
"justify-center",
|
|
102
|
+
"items-center",
|
|
103
|
+
"border-default-200",
|
|
104
|
+
"data-[active=true]:border-default-400",
|
|
105
|
+
"data-[active=true]:scale-110",
|
|
106
|
+
"shadow-sm",
|
|
107
|
+
"hover:bg-danger",
|
|
108
|
+
...dataFocusVisibleClasses
|
|
109
|
+
],
|
|
110
|
+
passwordChar: ["w-1", "h-1", "bg-default-800", "rounded-full"],
|
|
111
|
+
caret: [
|
|
112
|
+
"animate-[appearance-in_1s_infinite]",
|
|
113
|
+
"font-extralight",
|
|
114
|
+
"h-full",
|
|
115
|
+
"w-full",
|
|
116
|
+
"flex",
|
|
117
|
+
"justify-center",
|
|
118
|
+
"items-center",
|
|
119
|
+
"text-2xl",
|
|
120
|
+
"h-[50%]",
|
|
121
|
+
"w-px",
|
|
122
|
+
"bg-foreground"
|
|
123
|
+
],
|
|
124
|
+
helperWrapper: ["text-tiny", "mt-0.5", "font-extralight", ""],
|
|
125
|
+
errorMessage: ["text-tiny text-danger w-full"],
|
|
126
|
+
description: ["text-tiny text-foreground-400"]
|
|
127
|
+
},
|
|
128
|
+
variants: {
|
|
129
|
+
variant: {
|
|
130
|
+
flat: {
|
|
131
|
+
segment: ["border-transparent", "bg-default-100", "data-[active=true]:bg-default-200"]
|
|
132
|
+
},
|
|
133
|
+
faded: {
|
|
134
|
+
segment: ["bg-default-100", "border-medium"]
|
|
135
|
+
},
|
|
136
|
+
bordered: {
|
|
137
|
+
segment: ["border-medium"]
|
|
138
|
+
},
|
|
139
|
+
underlined: {
|
|
140
|
+
segment: [
|
|
141
|
+
"shadow-none",
|
|
142
|
+
"relative",
|
|
143
|
+
"box-border",
|
|
144
|
+
"!rounded-none",
|
|
145
|
+
"border-b-medium",
|
|
146
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
147
|
+
"border-default-200",
|
|
148
|
+
"after:content-['']",
|
|
149
|
+
"after:w-0",
|
|
150
|
+
"after:origin-center",
|
|
151
|
+
"after:bg-default-foreground",
|
|
152
|
+
"after:absolute",
|
|
153
|
+
"after:left-1/2",
|
|
154
|
+
"after:-translate-x-1/2",
|
|
155
|
+
"after:-bottom-[2px]",
|
|
156
|
+
"after:h-[2px]",
|
|
157
|
+
"data-[active=true]:border-default-300",
|
|
158
|
+
"data-[active=true]:after:w-full",
|
|
159
|
+
"data-[active=true]:scale-100"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
isDisabled: {
|
|
164
|
+
true: {
|
|
165
|
+
segment: "opacity-disabled pointer-events-none",
|
|
166
|
+
input: "pointer-events-none"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
isInvalid: {
|
|
170
|
+
true: {}
|
|
171
|
+
},
|
|
172
|
+
isReadOnly: {
|
|
173
|
+
true: {
|
|
174
|
+
caret: "bg-transparent",
|
|
175
|
+
segment: "transition-none data-[active=true]:scale-100"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
fullWidth: {
|
|
179
|
+
true: {
|
|
180
|
+
base: "w-full"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
radius: {
|
|
184
|
+
none: {
|
|
185
|
+
segment: "rounded-none"
|
|
186
|
+
},
|
|
187
|
+
sm: {
|
|
188
|
+
segment: "rounded-sm"
|
|
189
|
+
},
|
|
190
|
+
md: {
|
|
191
|
+
segment: "rounded-md"
|
|
192
|
+
},
|
|
193
|
+
lg: {
|
|
194
|
+
segment: "rounded-lg"
|
|
195
|
+
},
|
|
196
|
+
full: {
|
|
197
|
+
segment: "rounded-full"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
color: {
|
|
201
|
+
default: {},
|
|
202
|
+
primary: {},
|
|
203
|
+
secondary: {},
|
|
204
|
+
success: {},
|
|
205
|
+
warning: {},
|
|
206
|
+
danger: {}
|
|
207
|
+
},
|
|
208
|
+
size: {
|
|
209
|
+
sm: {
|
|
210
|
+
segment: "h-8 min-h-8 w-8 min-w-8 text-small"
|
|
211
|
+
},
|
|
212
|
+
md: {
|
|
213
|
+
segment: "h-10 min-h-10 w-10 min-w-10 text-small"
|
|
214
|
+
},
|
|
215
|
+
lg: {
|
|
216
|
+
segment: "h-12 min-h-12 w-12 min-w-12 text-medium"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
disableAnimation: {
|
|
220
|
+
true: {
|
|
221
|
+
segment: "transition-none",
|
|
222
|
+
caret: "animate-none"
|
|
223
|
+
},
|
|
224
|
+
false: {
|
|
225
|
+
segment: "transition duration-150"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
defaultVariants: {
|
|
230
|
+
variant: "flat",
|
|
231
|
+
color: "default",
|
|
232
|
+
radius: "md",
|
|
233
|
+
size: "md"
|
|
234
|
+
},
|
|
235
|
+
compoundVariants: [
|
|
236
|
+
{
|
|
237
|
+
variant: "flat",
|
|
238
|
+
color: "default",
|
|
239
|
+
class: {
|
|
240
|
+
segment: ["bg-default-100", "data-[active=true]:bg-default-200"]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
variant: "flat",
|
|
245
|
+
color: "primary",
|
|
246
|
+
class: {
|
|
247
|
+
segment: ["bg-primary-100", "data-[active=true]:bg-primary-200", "text-primary"],
|
|
248
|
+
caret: ["bg-primary"],
|
|
249
|
+
passwordChar: ["bg-primary"]
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
variant: "flat",
|
|
254
|
+
color: "secondary",
|
|
255
|
+
class: {
|
|
256
|
+
segment: ["bg-secondary-100", "data-[active=true]:bg-secondary-200", "text-secondary"],
|
|
257
|
+
caret: ["bg-secondary"],
|
|
258
|
+
passwordChar: ["bg-secondary"]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
variant: "flat",
|
|
263
|
+
color: "success",
|
|
264
|
+
class: {
|
|
265
|
+
segment: ["bg-success-100", "data-[active=true]:bg-success-200", "text-success"],
|
|
266
|
+
caret: ["bg-success"],
|
|
267
|
+
passwordChar: ["bg-success"]
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
variant: "flat",
|
|
272
|
+
color: "warning",
|
|
273
|
+
class: {
|
|
274
|
+
segment: ["bg-warning-100", "data-[active=true]:bg-warning-200", "text-warning"],
|
|
275
|
+
caret: ["bg-warning"],
|
|
276
|
+
passwordChar: ["bg-warning"]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
variant: "flat",
|
|
281
|
+
color: "danger",
|
|
282
|
+
class: {
|
|
283
|
+
segment: ["bg-danger-100", "data-[active=true]:bg-danger-200", "text-danger"],
|
|
284
|
+
caret: ["bg-danger"],
|
|
285
|
+
passwordChar: ["bg-danger"]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
variant: "faded",
|
|
290
|
+
color: "default",
|
|
291
|
+
class: {
|
|
292
|
+
segment: ""
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
variant: "faded",
|
|
297
|
+
color: "primary",
|
|
298
|
+
class: {
|
|
299
|
+
segment: [
|
|
300
|
+
"bg-primary-100",
|
|
301
|
+
"text-primary",
|
|
302
|
+
"border-primary-200",
|
|
303
|
+
"data-[active=true]:border-primary"
|
|
304
|
+
],
|
|
305
|
+
caret: ["bg-primary"],
|
|
306
|
+
passwordChar: ["bg-primary"]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
variant: "faded",
|
|
311
|
+
color: "secondary",
|
|
312
|
+
class: {
|
|
313
|
+
segment: [
|
|
314
|
+
"bg-secondary-100",
|
|
315
|
+
"text-secondary",
|
|
316
|
+
"border-secondary-200",
|
|
317
|
+
"data-[active=true]:border-secondary"
|
|
318
|
+
],
|
|
319
|
+
caret: ["bg-secondary"],
|
|
320
|
+
passwordChar: ["bg-secondary"]
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
variant: "faded",
|
|
325
|
+
color: "success",
|
|
326
|
+
class: {
|
|
327
|
+
segment: [
|
|
328
|
+
"bg-success-100",
|
|
329
|
+
"text-success",
|
|
330
|
+
"border-success-200",
|
|
331
|
+
"data-[active=true]:border-success"
|
|
332
|
+
],
|
|
333
|
+
caret: ["bg-success"],
|
|
334
|
+
passwordChar: ["bg-success"]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
variant: "faded",
|
|
339
|
+
color: "warning",
|
|
340
|
+
class: {
|
|
341
|
+
segment: [
|
|
342
|
+
"bg-warning-100",
|
|
343
|
+
"text-warning",
|
|
344
|
+
"border-warning-200",
|
|
345
|
+
"data-[active=true]:border-warning"
|
|
346
|
+
],
|
|
347
|
+
caret: ["bg-warning"],
|
|
348
|
+
passwordChar: ["bg-warning"]
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
variant: "faded",
|
|
353
|
+
color: "danger",
|
|
354
|
+
class: {
|
|
355
|
+
segment: [
|
|
356
|
+
"bg-danger-100",
|
|
357
|
+
"text-danger",
|
|
358
|
+
"border-danger-200",
|
|
359
|
+
"data-[active=true]:border-danger"
|
|
360
|
+
],
|
|
361
|
+
caret: ["bg-danger"],
|
|
362
|
+
passwordChar: ["bg-danger"]
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
variant: "bordered",
|
|
367
|
+
color: "default",
|
|
368
|
+
class: {
|
|
369
|
+
segment: "data-[has-value=true]:text-default-foreground data-[active=true]:border-foreground"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
variant: "bordered",
|
|
374
|
+
color: "primary",
|
|
375
|
+
class: {
|
|
376
|
+
segment: ["border-primary-200", "text-primary", "data-[active=true]:border-primary"],
|
|
377
|
+
caret: ["bg-primary"],
|
|
378
|
+
passwordChar: ["bg-primary"]
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
variant: "bordered",
|
|
383
|
+
color: "secondary",
|
|
384
|
+
class: {
|
|
385
|
+
segment: ["border-secondary-200", "text-secondary", "data-[active=true]:border-secondary"],
|
|
386
|
+
caret: ["bg-secondary"],
|
|
387
|
+
passwordChar: ["bg-secondary"]
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
variant: "bordered",
|
|
392
|
+
color: "success",
|
|
393
|
+
class: {
|
|
394
|
+
segment: ["border-success-200", "text-success", "data-[active=true]:border-success"],
|
|
395
|
+
caret: ["bg-success"],
|
|
396
|
+
passwordChar: ["bg-success"]
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
variant: "bordered",
|
|
401
|
+
color: "warning",
|
|
402
|
+
class: {
|
|
403
|
+
segment: ["border-warning-200", "text-warning", "data-[active=true]:border-warning"],
|
|
404
|
+
caret: ["bg-warning"],
|
|
405
|
+
passwordChar: ["bg-warning"]
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
variant: "bordered",
|
|
410
|
+
color: "danger",
|
|
411
|
+
class: {
|
|
412
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger"],
|
|
413
|
+
caret: ["bg-danger"],
|
|
414
|
+
passwordChar: ["bg-danger"]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
variant: "underlined",
|
|
419
|
+
color: "default",
|
|
420
|
+
class: {
|
|
421
|
+
segment: "data-[has-value=true]:text-default-foreground after:bg-foreground"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
variant: "underlined",
|
|
426
|
+
color: "primary",
|
|
427
|
+
class: {
|
|
428
|
+
segment: ["border-primary-200", "text-primary", "after:bg-primary"],
|
|
429
|
+
caret: ["bg-primary"],
|
|
430
|
+
passwordChar: ["bg-primary"]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
variant: "underlined",
|
|
435
|
+
color: "secondary",
|
|
436
|
+
class: {
|
|
437
|
+
segment: ["border-secondary-200", "text-secondary", "after:bg-secondary"],
|
|
438
|
+
caret: ["bg-secondary"],
|
|
439
|
+
passwordChar: ["bg-secondary"]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
variant: "underlined",
|
|
444
|
+
color: "success",
|
|
445
|
+
class: {
|
|
446
|
+
segment: ["border-success-200", "text-success", "after:bg-success"],
|
|
447
|
+
caret: ["bg-success"],
|
|
448
|
+
passwordChar: ["bg-success"]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
variant: "underlined",
|
|
453
|
+
color: "warning",
|
|
454
|
+
class: {
|
|
455
|
+
segment: ["border-warning-200", "text-warning", "after:bg-warning"],
|
|
456
|
+
caret: ["bg-warning"],
|
|
457
|
+
passwordChar: ["bg-warning"]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
variant: "underlined",
|
|
462
|
+
color: "danger",
|
|
463
|
+
class: {
|
|
464
|
+
segment: ["border-danger-200", "text-danger", "after:bg-danger"],
|
|
465
|
+
caret: ["bg-danger"],
|
|
466
|
+
passwordChar: ["bg-danger"]
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
variant: "flat",
|
|
471
|
+
isInvalid: true,
|
|
472
|
+
class: {
|
|
473
|
+
segment: ["bg-danger-50", "data-[active=true]:bg-danger-100", "text-danger"],
|
|
474
|
+
caret: ["bg-danger"]
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
variant: "faded",
|
|
479
|
+
isInvalid: true,
|
|
480
|
+
class: {
|
|
481
|
+
segment: [
|
|
482
|
+
"bg-danger-50",
|
|
483
|
+
"text-danger",
|
|
484
|
+
"border-danger-200",
|
|
485
|
+
"data-[active=true]:border-danger-400"
|
|
486
|
+
],
|
|
487
|
+
caret: ["bg-danger"]
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
variant: "bordered",
|
|
492
|
+
isInvalid: true,
|
|
493
|
+
class: {
|
|
494
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger-400"],
|
|
495
|
+
caret: ["bg-danger"]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
variant: "underlined",
|
|
500
|
+
isInvalid: true,
|
|
501
|
+
class: {
|
|
502
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:after:bg-danger-400"],
|
|
503
|
+
caret: ["bg-danger"]
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
disableAnimation: false,
|
|
508
|
+
variant: "underlined",
|
|
509
|
+
class: {
|
|
510
|
+
segment: "after:transition-width motion-reduce:after:transition-none"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
});
|
|
515
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
516
|
+
0 && (module.exports = {
|
|
517
|
+
inputOtp
|
|
518
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inputOtp
|
|
3
|
+
} from "../chunk-6CPZ7K75.mjs";
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
|
+
import "../chunk-GQT3YUX3.mjs";
|
|
6
|
+
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
|
+
import "../chunk-UWE6H66T.mjs";
|
|
9
|
+
import "../chunk-GIXI35A3.mjs";
|
|
10
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
11
|
+
export {
|
|
12
|
+
inputOtp
|
|
13
|
+
};
|
|
@@ -59,6 +59,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
59
59
|
clearButton: string;
|
|
60
60
|
};
|
|
61
61
|
lg: {
|
|
62
|
+
label: string;
|
|
62
63
|
inputWrapper: string;
|
|
63
64
|
input: string;
|
|
64
65
|
clearButton: string;
|
|
@@ -106,7 +107,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
106
107
|
isClearable: {
|
|
107
108
|
true: {
|
|
108
109
|
input: string;
|
|
109
|
-
clearButton: string;
|
|
110
|
+
clearButton: string[];
|
|
110
111
|
};
|
|
111
112
|
};
|
|
112
113
|
isDisabled: {
|
|
@@ -133,6 +134,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
133
134
|
inputWrapper: string;
|
|
134
135
|
innerWrapper: string;
|
|
135
136
|
input: string;
|
|
137
|
+
clearButton: string;
|
|
136
138
|
};
|
|
137
139
|
};
|
|
138
140
|
disableAnimation: {
|
|
@@ -197,6 +199,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
197
199
|
clearButton: string;
|
|
198
200
|
};
|
|
199
201
|
lg: {
|
|
202
|
+
label: string;
|
|
200
203
|
inputWrapper: string;
|
|
201
204
|
input: string;
|
|
202
205
|
clearButton: string;
|
|
@@ -244,7 +247,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
244
247
|
isClearable: {
|
|
245
248
|
true: {
|
|
246
249
|
input: string;
|
|
247
|
-
clearButton: string;
|
|
250
|
+
clearButton: string[];
|
|
248
251
|
};
|
|
249
252
|
};
|
|
250
253
|
isDisabled: {
|
|
@@ -271,6 +274,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
271
274
|
inputWrapper: string;
|
|
272
275
|
innerWrapper: string;
|
|
273
276
|
input: string;
|
|
277
|
+
clearButton: string;
|
|
274
278
|
};
|
|
275
279
|
};
|
|
276
280
|
disableAnimation: {
|
|
@@ -324,6 +328,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
324
328
|
clearButton: string;
|
|
325
329
|
};
|
|
326
330
|
lg: {
|
|
331
|
+
label: string;
|
|
327
332
|
inputWrapper: string;
|
|
328
333
|
input: string;
|
|
329
334
|
clearButton: string;
|
|
@@ -371,7 +376,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
371
376
|
isClearable: {
|
|
372
377
|
true: {
|
|
373
378
|
input: string;
|
|
374
|
-
clearButton: string;
|
|
379
|
+
clearButton: string[];
|
|
375
380
|
};
|
|
376
381
|
};
|
|
377
382
|
isDisabled: {
|
|
@@ -398,6 +403,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
398
403
|
inputWrapper: string;
|
|
399
404
|
innerWrapper: string;
|
|
400
405
|
input: string;
|
|
406
|
+
clearButton: string;
|
|
401
407
|
};
|
|
402
408
|
};
|
|
403
409
|
disableAnimation: {
|
|
@@ -451,6 +457,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
451
457
|
clearButton: string;
|
|
452
458
|
};
|
|
453
459
|
lg: {
|
|
460
|
+
label: string;
|
|
454
461
|
inputWrapper: string;
|
|
455
462
|
input: string;
|
|
456
463
|
clearButton: string;
|
|
@@ -498,7 +505,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
498
505
|
isClearable: {
|
|
499
506
|
true: {
|
|
500
507
|
input: string;
|
|
501
|
-
clearButton: string;
|
|
508
|
+
clearButton: string[];
|
|
502
509
|
};
|
|
503
510
|
};
|
|
504
511
|
isDisabled: {
|
|
@@ -525,6 +532,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
525
532
|
inputWrapper: string;
|
|
526
533
|
innerWrapper: string;
|
|
527
534
|
input: string;
|
|
535
|
+
clearButton: string;
|
|
528
536
|
};
|
|
529
537
|
};
|
|
530
538
|
disableAnimation: {
|
|
@@ -589,6 +597,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
589
597
|
clearButton: string;
|
|
590
598
|
};
|
|
591
599
|
lg: {
|
|
600
|
+
label: string;
|
|
592
601
|
inputWrapper: string;
|
|
593
602
|
input: string;
|
|
594
603
|
clearButton: string;
|
|
@@ -636,7 +645,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
636
645
|
isClearable: {
|
|
637
646
|
true: {
|
|
638
647
|
input: string;
|
|
639
|
-
clearButton: string;
|
|
648
|
+
clearButton: string[];
|
|
640
649
|
};
|
|
641
650
|
};
|
|
642
651
|
isDisabled: {
|
|
@@ -663,6 +672,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
663
672
|
inputWrapper: string;
|
|
664
673
|
innerWrapper: string;
|
|
665
674
|
input: string;
|
|
675
|
+
clearButton: string;
|
|
666
676
|
};
|
|
667
677
|
};
|
|
668
678
|
disableAnimation: {
|
|
@@ -727,6 +737,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
727
737
|
clearButton: string;
|
|
728
738
|
};
|
|
729
739
|
lg: {
|
|
740
|
+
label: string;
|
|
730
741
|
inputWrapper: string;
|
|
731
742
|
input: string;
|
|
732
743
|
clearButton: string;
|
|
@@ -774,7 +785,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
774
785
|
isClearable: {
|
|
775
786
|
true: {
|
|
776
787
|
input: string;
|
|
777
|
-
clearButton: string;
|
|
788
|
+
clearButton: string[];
|
|
778
789
|
};
|
|
779
790
|
};
|
|
780
791
|
isDisabled: {
|
|
@@ -801,6 +812,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
801
812
|
inputWrapper: string;
|
|
802
813
|
innerWrapper: string;
|
|
803
814
|
input: string;
|
|
815
|
+
clearButton: string;
|
|
804
816
|
};
|
|
805
817
|
};
|
|
806
818
|
disableAnimation: {
|
|
@@ -854,6 +866,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
854
866
|
clearButton: string;
|
|
855
867
|
};
|
|
856
868
|
lg: {
|
|
869
|
+
label: string;
|
|
857
870
|
inputWrapper: string;
|
|
858
871
|
input: string;
|
|
859
872
|
clearButton: string;
|
|
@@ -901,7 +914,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
901
914
|
isClearable: {
|
|
902
915
|
true: {
|
|
903
916
|
input: string;
|
|
904
|
-
clearButton: string;
|
|
917
|
+
clearButton: string[];
|
|
905
918
|
};
|
|
906
919
|
};
|
|
907
920
|
isDisabled: {
|
|
@@ -928,6 +941,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
928
941
|
inputWrapper: string;
|
|
929
942
|
innerWrapper: string;
|
|
930
943
|
input: string;
|
|
944
|
+
clearButton: string;
|
|
931
945
|
};
|
|
932
946
|
};
|
|
933
947
|
disableAnimation: {
|