@particle-network/ui-react 0.0.1
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/README.md +23 -0
- package/dist/components/ProgressWrapper/index.d.ts +34 -0
- package/dist/components/ProgressWrapper/index.js +102 -0
- package/dist/components/UXButton/button-group-context.d.ts +2 -0
- package/dist/components/UXButton/button-group-context.js +6 -0
- package/dist/components/UXButton/button-group.d.ts +4 -0
- package/dist/components/UXButton/button-group.js +22 -0
- package/dist/components/UXButton/button-theme.d.ts +236 -0
- package/dist/components/UXButton/button-theme.js +626 -0
- package/dist/components/UXButton/button.d.ts +4 -0
- package/dist/components/UXButton/button.js +31 -0
- package/dist/components/UXButton/index.d.ts +8 -0
- package/dist/components/UXButton/index.js +6 -0
- package/dist/components/UXButton/use-button-group.d.ts +37 -0
- package/dist/components/UXButton/use-button-group.js +55 -0
- package/dist/components/UXButton/use-button.d.ts +65 -0
- package/dist/components/UXButton/use-button.js +136 -0
- package/dist/components/UXCheckbox/checkbox.extend.d.ts +7 -0
- package/dist/components/UXCheckbox/checkbox.extend.js +151 -0
- package/dist/components/UXCheckbox/checkbox.icon.d.ts +6 -0
- package/dist/components/UXCheckbox/checkbox.icon.js +46 -0
- package/dist/components/UXCheckbox/index.d.ts +10 -0
- package/dist/components/UXCheckbox/index.js +17 -0
- package/dist/components/UXChip/chip.extend.d.ts +299 -0
- package/dist/components/UXChip/chip.extend.js +236 -0
- package/dist/components/UXChip/index.d.ts +302 -0
- package/dist/components/UXChip/index.js +10 -0
- package/dist/components/UXDivider/divider.extend.d.ts +286 -0
- package/dist/components/UXDivider/divider.extend.js +15 -0
- package/dist/components/UXDivider/index.d.ts +4 -0
- package/dist/components/UXDivider/index.js +10 -0
- package/dist/components/UXDropdown/dropdown-item.d.ts +3 -0
- package/dist/components/UXDropdown/dropdown-item.js +306 -0
- package/dist/components/UXDropdown/dropdown-menu.d.ts +3 -0
- package/dist/components/UXDropdown/dropdown-menu.js +25 -0
- package/dist/components/UXDropdown/dropdown-section.d.ts +1 -0
- package/dist/components/UXDropdown/dropdown-section.js +2 -0
- package/dist/components/UXDropdown/dropdown.d.ts +4 -0
- package/dist/components/UXDropdown/dropdown.js +21 -0
- package/dist/components/UXDropdown/index.d.ts +6 -0
- package/dist/components/UXDropdown/index.js +6 -0
- package/dist/components/UXHint/index.d.ts +8 -0
- package/dist/components/UXHint/index.js +22 -0
- package/dist/components/UXInput/index.d.ts +346 -0
- package/dist/components/UXInput/index.js +10 -0
- package/dist/components/UXInput/input.extend.d.ts +343 -0
- package/dist/components/UXInput/input.extend.js +6 -0
- package/dist/components/UXModal/index.d.ts +10 -0
- package/dist/components/UXModal/index.js +89 -0
- package/dist/components/UXNumberInput/index.d.ts +5 -0
- package/dist/components/UXNumberInput/index.js +10 -0
- package/dist/components/UXNumberInput/number-input.extend.d.ts +8 -0
- package/dist/components/UXNumberInput/number-input.extend.js +6 -0
- package/dist/components/UXPopover/index.d.ts +6 -0
- package/dist/components/UXPopover/index.js +10 -0
- package/dist/components/UXPopover/popover.extend.d.ts +7 -0
- package/dist/components/UXPopover/popover.extend.js +26 -0
- package/dist/components/UXRadio/index.d.ts +10 -0
- package/dist/components/UXRadio/index.js +12 -0
- package/dist/components/UXRadio/radio.extend.d.ts +7 -0
- package/dist/components/UXRadio/radio.extend.js +97 -0
- package/dist/components/UXSelect/index.d.ts +6 -0
- package/dist/components/UXSelect/index.js +51 -0
- package/dist/components/UXSwitch/index.d.ts +331 -0
- package/dist/components/UXSwitch/index.js +10 -0
- package/dist/components/UXSwitch/switch.extend.d.ts +328 -0
- package/dist/components/UXSwitch/switch.extend.js +117 -0
- package/dist/components/UXTabs/index.d.ts +9 -0
- package/dist/components/UXTabs/index.js +11 -0
- package/dist/components/UXTabs/tabs.classes.d.ts +210 -0
- package/dist/components/UXTabs/tabs.classes.js +530 -0
- package/dist/components/UXTabs/tabs.extend.d.ts +8 -0
- package/dist/components/UXTabs/tabs.extend.js +6 -0
- package/dist/components/UXTooltip/index.d.ts +5 -0
- package/dist/components/UXTooltip/index.js +23 -0
- package/dist/components/UXTooltip/tooltip.extend.d.ts +314 -0
- package/dist/components/UXTooltip/tooltip.extend.js +27 -0
- package/dist/components/index.d.ts +44 -0
- package/dist/components/index.js +31 -0
- package/dist/components/layout/Center.d.ts +4 -0
- package/dist/components/layout/Center.js +11 -0
- package/dist/components/layout/Circle.d.ts +6 -0
- package/dist/components/layout/Circle.js +12 -0
- package/dist/components/layout/Flex.d.ts +29 -0
- package/dist/components/layout/Flex.js +24 -0
- package/dist/components/layout/HStack.d.ts +4 -0
- package/dist/components/layout/HStack.js +12 -0
- package/dist/components/layout/Square.d.ts +8 -0
- package/dist/components/layout/Square.js +13 -0
- package/dist/components/layout/VStack.d.ts +4 -0
- package/dist/components/layout/VStack.js +12 -0
- package/dist/components/typography/Text.d.ts +3 -0
- package/dist/components/typography/Text.js +12 -0
- package/dist/components/typography/Text.type.d.ts +103 -0
- package/dist/components/typography/Text.type.js +47 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons/index.js +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/utils/classes.d.ts +35 -0
- package/dist/utils/classes.js +87 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/input-classes.d.ts +427 -0
- package/dist/utils/input-classes.js +568 -0
- package/dist/utils/variants.d.ts +91 -0
- package/dist/utils/variants.js +100 -0
- package/package.json +42 -0
- package/tailwind-preset.js +298 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
const inputClasses = {
|
|
2
|
+
defaultVariants: {
|
|
3
|
+
variant: 'flat',
|
|
4
|
+
color: 'primary',
|
|
5
|
+
size: 'md',
|
|
6
|
+
fullWidth: true,
|
|
7
|
+
labelPlacement: 'inside',
|
|
8
|
+
isDisabled: false,
|
|
9
|
+
hideStepper: true,
|
|
10
|
+
textAlign: 'left'
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
flat: {
|
|
15
|
+
inputWrapper: [
|
|
16
|
+
'bg-background-200',
|
|
17
|
+
'data-[hover=true]:bg-background-200/70',
|
|
18
|
+
'group-data-[focus=true]:border',
|
|
19
|
+
'group-data-[focus=true]:bg-background-200'
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
bordered: {
|
|
23
|
+
inputWrapper: [
|
|
24
|
+
'border-small',
|
|
25
|
+
'data-[hover=true]:bg-background-200/70',
|
|
26
|
+
'group-data-[focus=true]:border'
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
textAlign: {
|
|
31
|
+
left: {
|
|
32
|
+
input: 'text-left'
|
|
33
|
+
},
|
|
34
|
+
center: {
|
|
35
|
+
input: 'text-center'
|
|
36
|
+
},
|
|
37
|
+
right: {
|
|
38
|
+
input: 'text-right'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
color: {
|
|
42
|
+
default: {
|
|
43
|
+
inputWrapper: 'caret-foreground',
|
|
44
|
+
input: 'text-foreground-100'
|
|
45
|
+
},
|
|
46
|
+
primary: {
|
|
47
|
+
inputWrapper: 'caret-primary',
|
|
48
|
+
stepperButton: 'text-primary'
|
|
49
|
+
},
|
|
50
|
+
secondary: {
|
|
51
|
+
inputWrapper: 'caret-foreground',
|
|
52
|
+
input: 'text-foreground-300'
|
|
53
|
+
},
|
|
54
|
+
success: {
|
|
55
|
+
inputWrapper: 'caret-success',
|
|
56
|
+
stepperButton: 'text-success'
|
|
57
|
+
},
|
|
58
|
+
warning: {
|
|
59
|
+
inputWrapper: 'caret-warning',
|
|
60
|
+
stepperButton: 'text-warning'
|
|
61
|
+
},
|
|
62
|
+
danger: {
|
|
63
|
+
inputWrapper: 'caret-danger',
|
|
64
|
+
stepperButton: 'text-danger'
|
|
65
|
+
},
|
|
66
|
+
bullish: {
|
|
67
|
+
inputWrapper: 'caret-bullish',
|
|
68
|
+
stepperButton: 'text-bullish'
|
|
69
|
+
},
|
|
70
|
+
bearish: {
|
|
71
|
+
inputWrapper: 'caret-bearish',
|
|
72
|
+
stepperButton: 'text-bearish'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
sm: {
|
|
77
|
+
label: 'text-tiny text-foreground-300',
|
|
78
|
+
inputWrapper: 'text-tiny h-6 min-h-6 px-2 rounded-small',
|
|
79
|
+
input: 'text-tiny',
|
|
80
|
+
clearButton: 'text-medium'
|
|
81
|
+
},
|
|
82
|
+
md: {
|
|
83
|
+
label: 'text-tiny text-foreground-300',
|
|
84
|
+
inputWrapper: 'text-tiny h-[30px] min-h-[30px] rounded-small',
|
|
85
|
+
input: 'text-tiny',
|
|
86
|
+
clearButton: 'text-large'
|
|
87
|
+
},
|
|
88
|
+
lg: {
|
|
89
|
+
label: 'text-small text-foreground-300',
|
|
90
|
+
inputWrapper: 'text-small h-11 min-h-11 rounded-medium',
|
|
91
|
+
input: 'text-small',
|
|
92
|
+
clearButton: 'text-large'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
radius: {
|
|
96
|
+
none: {
|
|
97
|
+
inputWrapper: 'rounded-none'
|
|
98
|
+
},
|
|
99
|
+
sm: {
|
|
100
|
+
inputWrapper: 'rounded-small'
|
|
101
|
+
},
|
|
102
|
+
md: {
|
|
103
|
+
inputWrapper: 'rounded-medium'
|
|
104
|
+
},
|
|
105
|
+
lg: {
|
|
106
|
+
inputWrapper: 'rounded-large'
|
|
107
|
+
},
|
|
108
|
+
full: {
|
|
109
|
+
inputWrapper: 'rounded-full'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
labelPlacement: {
|
|
113
|
+
inside: {
|
|
114
|
+
label: 'cursor-text',
|
|
115
|
+
inputWrapper: 'flex-col items-start justify-center gap-0',
|
|
116
|
+
innerWrapper: 'group-data-[has-label=true]:items-end'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
fullWidth: {
|
|
120
|
+
true: {
|
|
121
|
+
base: 'w-full'
|
|
122
|
+
},
|
|
123
|
+
false: {}
|
|
124
|
+
},
|
|
125
|
+
isClearable: {
|
|
126
|
+
true: {
|
|
127
|
+
input: 'peer pe-6 input-search-cancel-button-none',
|
|
128
|
+
clearButton: [
|
|
129
|
+
'peer-data-[filled=true]:pointer-events-auto',
|
|
130
|
+
'peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block',
|
|
131
|
+
'peer-data-[filled=true]:scale-100'
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
isDisabled: {
|
|
136
|
+
true: {
|
|
137
|
+
base: 'opacity-disabled pointer-events-none',
|
|
138
|
+
inputWrapper: 'pointer-events-none',
|
|
139
|
+
label: 'pointer-events-none'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
isInvalid: {
|
|
143
|
+
true: {
|
|
144
|
+
inputWrapper: 'group-data-[focus=true]:border-danger caret-danger',
|
|
145
|
+
label: 'text-danger',
|
|
146
|
+
input: 'placeholder:text-danger text-danger'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
isRequired: {
|
|
150
|
+
true: {
|
|
151
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
disableAnimation: {
|
|
155
|
+
true: {
|
|
156
|
+
input: 'transition-none',
|
|
157
|
+
inputWrapper: 'transition-none',
|
|
158
|
+
label: 'transition-none'
|
|
159
|
+
},
|
|
160
|
+
false: {
|
|
161
|
+
inputWrapper: 'transition-background motion-reduce:transition-none !duration-150',
|
|
162
|
+
label: [
|
|
163
|
+
'will-change-auto',
|
|
164
|
+
'!duration-200',
|
|
165
|
+
'!ease-out',
|
|
166
|
+
'motion-reduce:transition-none',
|
|
167
|
+
'transition-[transform,color,left,opacity]'
|
|
168
|
+
],
|
|
169
|
+
clearButton: [
|
|
170
|
+
'scale-90',
|
|
171
|
+
'ease-out',
|
|
172
|
+
'duration-150',
|
|
173
|
+
'transition-[opacity,transform]',
|
|
174
|
+
'motion-reduce:transition-none',
|
|
175
|
+
'motion-reduce:scale-100'
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
compoundVariants: [
|
|
181
|
+
{
|
|
182
|
+
size: [
|
|
183
|
+
'sm',
|
|
184
|
+
'md',
|
|
185
|
+
'lg'
|
|
186
|
+
],
|
|
187
|
+
class: {
|
|
188
|
+
inputWrapper: 'bg-background-200 text-foreground-100 font-medium',
|
|
189
|
+
label: 'font-medium',
|
|
190
|
+
input: '!outline-none placeholder:text-foreground-100 placeholder:font-medium font-medium text-foreground'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
variant: 'flat',
|
|
195
|
+
color: 'default',
|
|
196
|
+
isInvalid: false,
|
|
197
|
+
class: {
|
|
198
|
+
inputWrapper: 'group-data-[focus=true]:border-foreground-100'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
variant: 'flat',
|
|
203
|
+
color: 'primary',
|
|
204
|
+
isInvalid: false,
|
|
205
|
+
class: {
|
|
206
|
+
inputWrapper: 'group-data-[focus=true]:border-primary'
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
variant: 'flat',
|
|
211
|
+
color: 'secondary',
|
|
212
|
+
isInvalid: false,
|
|
213
|
+
class: {
|
|
214
|
+
inputWrapper: 'group-data-[focus=true]:border-foreground-300'
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
variant: 'flat',
|
|
219
|
+
color: 'success',
|
|
220
|
+
isInvalid: false,
|
|
221
|
+
class: {
|
|
222
|
+
inputWrapper: 'group-data-[focus=true]:border-success'
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
variant: 'flat',
|
|
227
|
+
color: 'warning',
|
|
228
|
+
isInvalid: false,
|
|
229
|
+
class: {
|
|
230
|
+
inputWrapper: 'group-data-[focus=true]:border-warning'
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
variant: 'flat',
|
|
235
|
+
color: 'danger',
|
|
236
|
+
isInvalid: false,
|
|
237
|
+
class: {
|
|
238
|
+
inputWrapper: 'group-data-[focus=true]:border-danger'
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
variant: 'flat',
|
|
243
|
+
color: 'bullish',
|
|
244
|
+
isInvalid: false,
|
|
245
|
+
class: {
|
|
246
|
+
inputWrapper: 'group-data-[focus=true]:border-bullish'
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
variant: 'flat',
|
|
251
|
+
color: 'bearish',
|
|
252
|
+
isInvalid: false,
|
|
253
|
+
class: {
|
|
254
|
+
inputWrapper: 'group-data-[focus=true]:border-bearish'
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
variant: 'bordered',
|
|
259
|
+
color: 'default',
|
|
260
|
+
isInvalid: false,
|
|
261
|
+
class: {
|
|
262
|
+
inputWrapper: [
|
|
263
|
+
'border-foreground-100',
|
|
264
|
+
'data-[hover=true]:border-foreground-100',
|
|
265
|
+
'group-data-[focus=true]:border-foreground-100'
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
variant: 'bordered',
|
|
271
|
+
color: 'primary',
|
|
272
|
+
isInvalid: false,
|
|
273
|
+
class: {
|
|
274
|
+
inputWrapper: [
|
|
275
|
+
'border-primary',
|
|
276
|
+
'data-[hover=true]:border-primary',
|
|
277
|
+
'group-data-[focus=true]:border-primary'
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
variant: 'bordered',
|
|
283
|
+
color: 'secondary',
|
|
284
|
+
isInvalid: false,
|
|
285
|
+
class: {
|
|
286
|
+
inputWrapper: [
|
|
287
|
+
'border-foreground-300',
|
|
288
|
+
'data-[hover=true]:bg-background-200/70',
|
|
289
|
+
'group-data-[focus=true]:border-foreground-300'
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
variant: 'bordered',
|
|
295
|
+
color: 'success',
|
|
296
|
+
isInvalid: false,
|
|
297
|
+
class: {
|
|
298
|
+
inputWrapper: [
|
|
299
|
+
'border-success',
|
|
300
|
+
'data-[hover=true]:border-success',
|
|
301
|
+
'group-data-[focus=true]:border-success'
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
variant: 'bordered',
|
|
307
|
+
color: 'warning',
|
|
308
|
+
isInvalid: false,
|
|
309
|
+
class: {
|
|
310
|
+
inputWrapper: [
|
|
311
|
+
'border-warning',
|
|
312
|
+
'data-[hover=true]:border-warning',
|
|
313
|
+
'group-data-[focus=true]:border-warning'
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
variant: 'bordered',
|
|
319
|
+
color: 'danger',
|
|
320
|
+
isInvalid: false,
|
|
321
|
+
class: {
|
|
322
|
+
inputWrapper: [
|
|
323
|
+
'border-danger',
|
|
324
|
+
'data-[hover=true]:border-danger',
|
|
325
|
+
'group-data-[focus=true]:border-danger'
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
variant: 'bordered',
|
|
331
|
+
color: 'bullish',
|
|
332
|
+
isInvalid: false,
|
|
333
|
+
class: {
|
|
334
|
+
inputWrapper: [
|
|
335
|
+
'border-bullish',
|
|
336
|
+
'data-[hover=true]:border-bullish',
|
|
337
|
+
'group-data-[focus=true]:border-bullish'
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
variant: 'bordered',
|
|
343
|
+
color: 'bearish',
|
|
344
|
+
isInvalid: false,
|
|
345
|
+
class: {
|
|
346
|
+
inputWrapper: [
|
|
347
|
+
'border-bearish',
|
|
348
|
+
'data-[hover=true]:border-bearish',
|
|
349
|
+
'group-data-[focus=true]:border-bearish'
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
labelPlacement: 'inside',
|
|
355
|
+
color: 'default',
|
|
356
|
+
class: {
|
|
357
|
+
label: 'group-data-[filled-within=true]:text-default-600'
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
radius: 'full',
|
|
362
|
+
size: [
|
|
363
|
+
'sm'
|
|
364
|
+
],
|
|
365
|
+
class: {
|
|
366
|
+
inputWrapper: 'px-3'
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
radius: 'full',
|
|
371
|
+
size: 'md',
|
|
372
|
+
class: {
|
|
373
|
+
inputWrapper: 'px-4'
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
radius: 'full',
|
|
378
|
+
size: 'lg',
|
|
379
|
+
class: {
|
|
380
|
+
inputWrapper: 'px-5'
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
disableAnimation: false,
|
|
385
|
+
variant: [
|
|
386
|
+
'bordered'
|
|
387
|
+
],
|
|
388
|
+
class: {
|
|
389
|
+
inputWrapper: 'transition-colors motion-reduce:transition-none'
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
isInvalid: true,
|
|
394
|
+
variant: 'flat',
|
|
395
|
+
class: {
|
|
396
|
+
inputWrapper: [
|
|
397
|
+
'!bg-danger-50',
|
|
398
|
+
'data-[hover=true]:!bg-danger-100',
|
|
399
|
+
'group-data-[focus=true]:!bg-danger-50'
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
isInvalid: true,
|
|
405
|
+
variant: 'bordered',
|
|
406
|
+
class: {
|
|
407
|
+
inputWrapper: '!border-danger group-data-[focus=true]:!border-danger'
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
labelPlacement: 'inside',
|
|
412
|
+
size: 'sm',
|
|
413
|
+
class: {
|
|
414
|
+
inputWrapper: 'h-6 py-1.5 px-3'
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
labelPlacement: 'inside',
|
|
419
|
+
size: 'md',
|
|
420
|
+
class: {
|
|
421
|
+
inputWrapper: 'h-[30px] py-2'
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
labelPlacement: 'inside',
|
|
426
|
+
size: 'lg',
|
|
427
|
+
class: {
|
|
428
|
+
inputWrapper: 'h-11 py-2.5 gap-0'
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
labelPlacement: 'inside',
|
|
433
|
+
size: 'sm',
|
|
434
|
+
variant: [
|
|
435
|
+
'bordered',
|
|
436
|
+
'faded'
|
|
437
|
+
],
|
|
438
|
+
class: {
|
|
439
|
+
inputWrapper: 'py-1'
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
labelPlacement: [
|
|
444
|
+
'inside',
|
|
445
|
+
'outside'
|
|
446
|
+
],
|
|
447
|
+
class: {
|
|
448
|
+
label: [
|
|
449
|
+
'group-data-[filled-within=true]:pointer-events-auto'
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
labelPlacement: [
|
|
455
|
+
'inside'
|
|
456
|
+
],
|
|
457
|
+
class: {
|
|
458
|
+
label: [
|
|
459
|
+
'group-data-[filled-within=true]:scale-85'
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
labelPlacement: 'inside',
|
|
465
|
+
size: 'sm',
|
|
466
|
+
class: {
|
|
467
|
+
label: [
|
|
468
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]'
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
labelPlacement: 'inside',
|
|
474
|
+
size: 'md',
|
|
475
|
+
class: {
|
|
476
|
+
label: [
|
|
477
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]'
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
labelPlacement: 'inside',
|
|
483
|
+
size: 'lg',
|
|
484
|
+
class: {
|
|
485
|
+
label: [
|
|
486
|
+
'text-medium',
|
|
487
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]'
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
labelPlacement: [
|
|
493
|
+
'inside'
|
|
494
|
+
],
|
|
495
|
+
variant: 'flat',
|
|
496
|
+
class: {
|
|
497
|
+
innerWrapper: 'pb-0'
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
labelPlacement: 'inside',
|
|
502
|
+
size: [
|
|
503
|
+
'sm',
|
|
504
|
+
'md'
|
|
505
|
+
],
|
|
506
|
+
class: {
|
|
507
|
+
label: 'text-small',
|
|
508
|
+
stepperButton: 'before:h-6'
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
labelPlacement: 'inside',
|
|
513
|
+
variant: [
|
|
514
|
+
'faded',
|
|
515
|
+
'bordered'
|
|
516
|
+
],
|
|
517
|
+
size: 'sm',
|
|
518
|
+
class: {
|
|
519
|
+
label: [
|
|
520
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]'
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
labelPlacement: 'inside',
|
|
526
|
+
variant: [
|
|
527
|
+
'faded',
|
|
528
|
+
'bordered'
|
|
529
|
+
],
|
|
530
|
+
isMultiline: false,
|
|
531
|
+
size: 'md',
|
|
532
|
+
class: {
|
|
533
|
+
label: [
|
|
534
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]'
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
labelPlacement: 'inside',
|
|
540
|
+
variant: [
|
|
541
|
+
'faded',
|
|
542
|
+
'bordered'
|
|
543
|
+
],
|
|
544
|
+
size: 'lg',
|
|
545
|
+
class: {
|
|
546
|
+
label: [
|
|
547
|
+
'text-medium',
|
|
548
|
+
'group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]'
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
labelPlacement: [
|
|
554
|
+
'inside',
|
|
555
|
+
'outside'
|
|
556
|
+
],
|
|
557
|
+
class: {
|
|
558
|
+
label: [
|
|
559
|
+
'pe-2',
|
|
560
|
+
'max-w-full',
|
|
561
|
+
'text-ellipsis',
|
|
562
|
+
'overflow-hidden'
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
};
|
|
568
|
+
export { inputClasses };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const colorVariants: {
|
|
2
|
+
solid: {
|
|
3
|
+
default: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
danger: string;
|
|
9
|
+
foreground: string;
|
|
10
|
+
bullish: string;
|
|
11
|
+
bearish: string;
|
|
12
|
+
contrast: string;
|
|
13
|
+
};
|
|
14
|
+
shadow: {
|
|
15
|
+
default: string;
|
|
16
|
+
primary: string;
|
|
17
|
+
secondary: string;
|
|
18
|
+
success: string;
|
|
19
|
+
warning: string;
|
|
20
|
+
danger: string;
|
|
21
|
+
foreground: string;
|
|
22
|
+
bullish: string;
|
|
23
|
+
bearish: string;
|
|
24
|
+
};
|
|
25
|
+
bordered: {
|
|
26
|
+
default: string;
|
|
27
|
+
primary: string;
|
|
28
|
+
secondary: string;
|
|
29
|
+
success: string;
|
|
30
|
+
warning: string;
|
|
31
|
+
danger: string;
|
|
32
|
+
foreground: string;
|
|
33
|
+
bullish: string;
|
|
34
|
+
bearish: string;
|
|
35
|
+
};
|
|
36
|
+
flat: {
|
|
37
|
+
default: string;
|
|
38
|
+
primary: string;
|
|
39
|
+
secondary: string;
|
|
40
|
+
success: string;
|
|
41
|
+
warning: string;
|
|
42
|
+
danger: string;
|
|
43
|
+
foreground: string;
|
|
44
|
+
bullish: string;
|
|
45
|
+
bearish: string;
|
|
46
|
+
};
|
|
47
|
+
faded: {
|
|
48
|
+
default: string;
|
|
49
|
+
primary: string;
|
|
50
|
+
secondary: string;
|
|
51
|
+
success: string;
|
|
52
|
+
warning: string;
|
|
53
|
+
danger: string;
|
|
54
|
+
foreground: string;
|
|
55
|
+
bullish: string;
|
|
56
|
+
bearish: string;
|
|
57
|
+
};
|
|
58
|
+
light: {
|
|
59
|
+
default: string;
|
|
60
|
+
primary: string;
|
|
61
|
+
secondary: string;
|
|
62
|
+
success: string;
|
|
63
|
+
warning: string;
|
|
64
|
+
danger: string;
|
|
65
|
+
foreground: string;
|
|
66
|
+
bullish: string;
|
|
67
|
+
bearish: string;
|
|
68
|
+
};
|
|
69
|
+
ghost: {
|
|
70
|
+
default: string;
|
|
71
|
+
primary: string;
|
|
72
|
+
secondary: string;
|
|
73
|
+
success: string;
|
|
74
|
+
warning: string;
|
|
75
|
+
danger: string;
|
|
76
|
+
foreground: string;
|
|
77
|
+
bullish: string;
|
|
78
|
+
bearish: string;
|
|
79
|
+
};
|
|
80
|
+
text: {
|
|
81
|
+
default: string;
|
|
82
|
+
primary: string;
|
|
83
|
+
secondary: string;
|
|
84
|
+
success: string;
|
|
85
|
+
warning: string;
|
|
86
|
+
danger: string;
|
|
87
|
+
foreground: string;
|
|
88
|
+
bullish: string;
|
|
89
|
+
bearish: string;
|
|
90
|
+
};
|
|
91
|
+
};
|