@fy-/fws-vue 0.1.3 → 0.1.5
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/components/ui/DefaultInput.vue +1 -1
- package/index.ts +4 -1
- package/package.json +1 -1
- package/presets/Lara/accordion/index.js +86 -0
- package/presets/Lara/autocomplete/index.js +284 -0
- package/presets/Lara/avatar/index.js +46 -0
- package/presets/Lara/badge/index.js +44 -0
- package/presets/Lara/badgedirective/index.js +49 -0
- package/presets/Lara/blockui/index.js +8 -0
- package/presets/Lara/breadcrumb/index.js +64 -0
- package/presets/Lara/button/index.js +470 -0
- package/presets/Lara/calendar/index.js +683 -0
- package/presets/Lara/card/index.js +37 -0
- package/presets/Lara/carousel/index.js +152 -0
- package/presets/Lara/cascadeselect/index.js +228 -0
- package/presets/Lara/checkbox/index.js +106 -0
- package/presets/Lara/chip/index.js +45 -0
- package/presets/Lara/chips/index.js +118 -0
- package/presets/Lara/colorpicker/index.js +129 -0
- package/presets/Lara/confirmpopup/index.js +107 -0
- package/presets/Lara/contextmenu/index.js +130 -0
- package/presets/Lara/datatable/index.js +1289 -0
- package/presets/Lara/dataview/index.js +40 -0
- package/presets/Lara/deferred/index.js +3 -0
- package/presets/Lara/dialog/index.js +249 -0
- package/presets/Lara/divider/index.js +72 -0
- package/presets/Lara/dock/index.js +97 -0
- package/presets/Lara/dropdown/index.js +300 -0
- package/presets/Lara/fieldset/index.js +98 -0
- package/presets/Lara/fileupload/index.js +173 -0
- package/presets/Lara/floatlabel/index.js +26 -0
- package/presets/Lara/galleria/index.js +351 -0
- package/presets/Lara/global.js +90 -0
- package/presets/Lara/iconfield/index.js +22 -0
- package/presets/Lara/image/index.js +206 -0
- package/presets/Lara/index.js +181 -0
- package/presets/Lara/inlinemessage/index.js +36 -0
- package/presets/Lara/inplace/index.js +27 -0
- package/presets/Lara/inputgroup/index.js +5 -0
- package/presets/Lara/inputgroupaddon/index.js +28 -0
- package/presets/Lara/inputmask/index.js +37 -0
- package/presets/Lara/inputnumber/index.js +253 -0
- package/presets/Lara/inputotp/index.js +72 -0
- package/presets/Lara/inputswitch/index.js +93 -0
- package/presets/Lara/inputtext/index.js +61 -0
- package/presets/Lara/knob/index.js +47 -0
- package/presets/Lara/listbox/index.js +170 -0
- package/presets/Lara/megamenu/index.js +207 -0
- package/presets/Lara/menu/index.js +98 -0
- package/presets/Lara/menubar/index.js +181 -0
- package/presets/Lara/message/index.js +87 -0
- package/presets/Lara/metergroup/index.js +110 -0
- package/presets/Lara/multiselect/index.js +589 -0
- package/presets/Lara/orderlist/index.js +266 -0
- package/presets/Lara/organizationchart/index.js +142 -0
- package/presets/Lara/overlaypanel/index.js +41 -0
- package/presets/Lara/paginator/index.js +590 -0
- package/presets/Lara/panel/index.js +93 -0
- package/presets/Lara/panelmenu/index.js +139 -0
- package/presets/Lara/password/index.js +140 -0
- package/presets/Lara/picklist/index.js +659 -0
- package/presets/Lara/progressbar/index.js +61 -0
- package/presets/Lara/progressspinner/index.js +51 -0
- package/presets/Lara/radiobutton/index.js +116 -0
- package/presets/Lara/rating/index.js +95 -0
- package/presets/Lara/ripple/index.js +6 -0
- package/presets/Lara/scrollpanel/index.js +77 -0
- package/presets/Lara/scrolltop/index.js +45 -0
- package/presets/Lara/selectbutton/index.js +60 -0
- package/presets/Lara/sidebar/index.js +163 -0
- package/presets/Lara/skeleton/index.js +19 -0
- package/presets/Lara/slider/index.js +149 -0
- package/presets/Lara/speeddial/index.js +535 -0
- package/presets/Lara/splitbutton/index.js +1081 -0
- package/presets/Lara/splitter/index.js +64 -0
- package/presets/Lara/stepper/index.js +183 -0
- package/presets/Lara/steps/index.js +115 -0
- package/presets/Lara/tabmenu/index.js +82 -0
- package/presets/Lara/tabview/index.js +166 -0
- package/presets/Lara/tag/index.js +37 -0
- package/presets/Lara/terminal/index.js +60 -0
- package/presets/Lara/textarea/index.js +39 -0
- package/presets/Lara/tieredmenu/index.js +125 -0
- package/presets/Lara/timeline/index.js +107 -0
- package/presets/Lara/toast/index.js +113 -0
- package/presets/Lara/togglebutton/index.js +100 -0
- package/presets/Lara/toolbar/index.js +28 -0
- package/presets/Lara/tooltip/index.js +73 -0
- package/presets/Lara/tree/index.js +281 -0
- package/presets/Lara/treeselect/index.js +387 -0
- package/presets/Lara/treetable/index.js +509 -0
- package/presets/Lara/tristatecheckbox/index.js +112 -0
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, state }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
"inline-flex",
|
|
6
|
+
"relative",
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
"rounded-md",
|
|
10
|
+
|
|
11
|
+
// Color and Background
|
|
12
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
13
|
+
"border",
|
|
14
|
+
{ "border-surface-300 dark:border-surface-600": !props.invalid },
|
|
15
|
+
|
|
16
|
+
// Invalid State
|
|
17
|
+
{ "border-red-500 dark:border-red-400": props.invalid },
|
|
18
|
+
|
|
19
|
+
// Transitions
|
|
20
|
+
"transition-all",
|
|
21
|
+
"duration-200",
|
|
22
|
+
|
|
23
|
+
// States
|
|
24
|
+
{
|
|
25
|
+
"hover:border-primary-500 dark:hover:border-primary-300":
|
|
26
|
+
!props.invalid,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50":
|
|
30
|
+
state.focused,
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
// Misc
|
|
34
|
+
"cursor-pointer",
|
|
35
|
+
"select-none",
|
|
36
|
+
{
|
|
37
|
+
"opacity-60": props.disabled,
|
|
38
|
+
"pointer-events-none": props.disabled,
|
|
39
|
+
"cursor-default": props.disabled,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
}),
|
|
43
|
+
labelContainer: {
|
|
44
|
+
class: "overflow-hidden flex flex-auto cursor-pointer ",
|
|
45
|
+
},
|
|
46
|
+
label: ({ props }) => ({
|
|
47
|
+
class: [
|
|
48
|
+
"leading-none",
|
|
49
|
+
"block ",
|
|
50
|
+
|
|
51
|
+
// Spacing
|
|
52
|
+
{
|
|
53
|
+
"p-3": props.display !== "chip",
|
|
54
|
+
"py-3 px-3": props.display === "chip" && !props?.modelValue?.length,
|
|
55
|
+
"py-1.5 px-3":
|
|
56
|
+
props.display === "chip" && props?.modelValue?.length > 0,
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
// Color
|
|
60
|
+
{
|
|
61
|
+
"text-surface-800 dark:text-white/80": props.modelValue?.length,
|
|
62
|
+
"text-surface-400 dark:text-surface-500": !props.modelValue?.length,
|
|
63
|
+
},
|
|
64
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
65
|
+
|
|
66
|
+
// Transitions
|
|
67
|
+
"transition duration-200",
|
|
68
|
+
|
|
69
|
+
// Misc
|
|
70
|
+
"overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis",
|
|
71
|
+
],
|
|
72
|
+
}),
|
|
73
|
+
token: {
|
|
74
|
+
class: [
|
|
75
|
+
// Flex
|
|
76
|
+
"inline-flex items-center",
|
|
77
|
+
|
|
78
|
+
// Spacings
|
|
79
|
+
"py-1.5 px-3 mr-2",
|
|
80
|
+
|
|
81
|
+
// Shape
|
|
82
|
+
"rounded-[1.14rem]",
|
|
83
|
+
|
|
84
|
+
// Colors
|
|
85
|
+
"bg-surface-200 dark:bg-surface-700",
|
|
86
|
+
"text-surface-700 dark:text-white/70",
|
|
87
|
+
|
|
88
|
+
// Misc
|
|
89
|
+
"cursor-default",
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
removeTokenIcon: {
|
|
93
|
+
class: [
|
|
94
|
+
// Shape
|
|
95
|
+
"rounded-md leading-6",
|
|
96
|
+
|
|
97
|
+
// Spacing
|
|
98
|
+
"ml-2",
|
|
99
|
+
|
|
100
|
+
// Size
|
|
101
|
+
"w-4 h-4",
|
|
102
|
+
|
|
103
|
+
// Transition
|
|
104
|
+
"transition duration-200 ease-in-out",
|
|
105
|
+
|
|
106
|
+
// Misc
|
|
107
|
+
"cursor-pointer",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
trigger: {
|
|
111
|
+
class: [
|
|
112
|
+
// Flexbox
|
|
113
|
+
"flex items-center justify-center",
|
|
114
|
+
"shrink-0",
|
|
115
|
+
|
|
116
|
+
// Color and Background
|
|
117
|
+
"bg-transparent",
|
|
118
|
+
"text-surface-500",
|
|
119
|
+
|
|
120
|
+
// Size
|
|
121
|
+
"w-12",
|
|
122
|
+
|
|
123
|
+
// Shape
|
|
124
|
+
"rounded-tr-md",
|
|
125
|
+
"rounded-br-md",
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
panel: {
|
|
129
|
+
class: [
|
|
130
|
+
// Position
|
|
131
|
+
"absolute top-0 left-0",
|
|
132
|
+
|
|
133
|
+
// Shape
|
|
134
|
+
"border-0 dark:border",
|
|
135
|
+
"rounded-md",
|
|
136
|
+
"shadow-md",
|
|
137
|
+
|
|
138
|
+
// Color
|
|
139
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
140
|
+
"text-surface-800 dark:text-white/80",
|
|
141
|
+
"dark:border-surface-700",
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
header: {
|
|
145
|
+
class: [
|
|
146
|
+
"flex items-center justify-between",
|
|
147
|
+
// Spacing
|
|
148
|
+
"py-3 px-5",
|
|
149
|
+
"m-0",
|
|
150
|
+
|
|
151
|
+
// Shape
|
|
152
|
+
"border-b",
|
|
153
|
+
"rounded-tl-md",
|
|
154
|
+
"rounded-tr-md",
|
|
155
|
+
|
|
156
|
+
// Color
|
|
157
|
+
"text-surface-700 dark:text-white/80",
|
|
158
|
+
"bg-surface-100 dark:bg-surface-800",
|
|
159
|
+
"border-surface-300 dark:border-surface-700",
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
headerCheckboxContainer: {
|
|
163
|
+
class: [
|
|
164
|
+
"relative",
|
|
165
|
+
|
|
166
|
+
// Alignment
|
|
167
|
+
"inline-flex",
|
|
168
|
+
"align-bottom",
|
|
169
|
+
|
|
170
|
+
// Size
|
|
171
|
+
"w-6",
|
|
172
|
+
"h-6",
|
|
173
|
+
|
|
174
|
+
// Misc
|
|
175
|
+
"cursor-pointer",
|
|
176
|
+
"select-none",
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
headerCheckbox: {
|
|
180
|
+
root: {
|
|
181
|
+
class: [
|
|
182
|
+
"relative",
|
|
183
|
+
|
|
184
|
+
// Alignment
|
|
185
|
+
"inline-flex",
|
|
186
|
+
"align-bottom",
|
|
187
|
+
|
|
188
|
+
// Size
|
|
189
|
+
"w-6",
|
|
190
|
+
"h-6",
|
|
191
|
+
|
|
192
|
+
// Spacing
|
|
193
|
+
"mr-2",
|
|
194
|
+
|
|
195
|
+
// Misc
|
|
196
|
+
"cursor-pointer",
|
|
197
|
+
"select-none",
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
box: ({ props, context }) => ({
|
|
201
|
+
class: [
|
|
202
|
+
// Alignment
|
|
203
|
+
"flex",
|
|
204
|
+
"items-center",
|
|
205
|
+
"justify-center",
|
|
206
|
+
|
|
207
|
+
// Size
|
|
208
|
+
"w-6",
|
|
209
|
+
"h-6",
|
|
210
|
+
|
|
211
|
+
// Shape
|
|
212
|
+
"rounded-md",
|
|
213
|
+
"border-2",
|
|
214
|
+
|
|
215
|
+
// Colors
|
|
216
|
+
{
|
|
217
|
+
"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
|
|
218
|
+
!context.checked,
|
|
219
|
+
"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
|
|
220
|
+
context.checked,
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
// States
|
|
224
|
+
{
|
|
225
|
+
"peer-hover:border-primary-500 dark:peer-hover:border-primary-400":
|
|
226
|
+
!props.disabled && !context.checked,
|
|
227
|
+
"peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300":
|
|
228
|
+
!props.disabled && context.checked,
|
|
229
|
+
"peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20":
|
|
230
|
+
!props.disabled,
|
|
231
|
+
"cursor-default opacity-60": props.disabled,
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
// Transitions
|
|
235
|
+
"transition-colors",
|
|
236
|
+
"duration-200",
|
|
237
|
+
],
|
|
238
|
+
}),
|
|
239
|
+
input: {
|
|
240
|
+
class: [
|
|
241
|
+
"peer",
|
|
242
|
+
|
|
243
|
+
// Size
|
|
244
|
+
"w-full ",
|
|
245
|
+
"h-full",
|
|
246
|
+
|
|
247
|
+
// Position
|
|
248
|
+
"absolute",
|
|
249
|
+
"top-0 left-0",
|
|
250
|
+
"z-10",
|
|
251
|
+
|
|
252
|
+
// Spacing
|
|
253
|
+
"p-0",
|
|
254
|
+
"m-0",
|
|
255
|
+
|
|
256
|
+
// Shape
|
|
257
|
+
"opacity-0",
|
|
258
|
+
"rounded-md",
|
|
259
|
+
"outline-none",
|
|
260
|
+
"border-2 border-surface-200 dark:border-surface-700",
|
|
261
|
+
|
|
262
|
+
// Misc
|
|
263
|
+
"appearance-none",
|
|
264
|
+
"cursor-pointer",
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
icon: {
|
|
268
|
+
class: [
|
|
269
|
+
// Font
|
|
270
|
+
"text-base leading-none",
|
|
271
|
+
|
|
272
|
+
// Size
|
|
273
|
+
"w-4",
|
|
274
|
+
"h-4",
|
|
275
|
+
|
|
276
|
+
// Colors
|
|
277
|
+
"text-white dark:text-surface-900",
|
|
278
|
+
|
|
279
|
+
// Transitions
|
|
280
|
+
"transition-all",
|
|
281
|
+
"duration-200",
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
itemCheckbox: {
|
|
286
|
+
root: {
|
|
287
|
+
class: [
|
|
288
|
+
"relative",
|
|
289
|
+
|
|
290
|
+
// Alignment
|
|
291
|
+
"inline-flex",
|
|
292
|
+
"align-bottom",
|
|
293
|
+
|
|
294
|
+
// Size
|
|
295
|
+
"w-6",
|
|
296
|
+
"h-6",
|
|
297
|
+
|
|
298
|
+
// Spacing
|
|
299
|
+
"mr-2",
|
|
300
|
+
|
|
301
|
+
// Misc
|
|
302
|
+
"cursor-pointer",
|
|
303
|
+
"select-none",
|
|
304
|
+
],
|
|
305
|
+
},
|
|
306
|
+
box: ({ props, context }) => ({
|
|
307
|
+
class: [
|
|
308
|
+
// Alignment
|
|
309
|
+
"flex",
|
|
310
|
+
"items-center",
|
|
311
|
+
"justify-center",
|
|
312
|
+
|
|
313
|
+
// Size
|
|
314
|
+
"w-6",
|
|
315
|
+
"h-6",
|
|
316
|
+
|
|
317
|
+
// Shape
|
|
318
|
+
"rounded-md",
|
|
319
|
+
"border-2",
|
|
320
|
+
|
|
321
|
+
// Colors
|
|
322
|
+
{
|
|
323
|
+
"border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
|
|
324
|
+
!context.checked,
|
|
325
|
+
"border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
|
|
326
|
+
context.checked,
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
// States
|
|
330
|
+
{
|
|
331
|
+
"peer-hover:border-primary-500 dark:peer-hover:border-primary-400":
|
|
332
|
+
!props.disabled && !context.checked,
|
|
333
|
+
"peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300":
|
|
334
|
+
!props.disabled && context.checked,
|
|
335
|
+
"peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20":
|
|
336
|
+
!props.disabled,
|
|
337
|
+
"cursor-default opacity-60": props.disabled,
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
// Transitions
|
|
341
|
+
"transition-colors",
|
|
342
|
+
"duration-200",
|
|
343
|
+
],
|
|
344
|
+
}),
|
|
345
|
+
input: {
|
|
346
|
+
class: [
|
|
347
|
+
"peer",
|
|
348
|
+
|
|
349
|
+
// Size
|
|
350
|
+
"w-full ",
|
|
351
|
+
"h-full",
|
|
352
|
+
|
|
353
|
+
// Position
|
|
354
|
+
"absolute",
|
|
355
|
+
"top-0 left-0",
|
|
356
|
+
"z-10",
|
|
357
|
+
|
|
358
|
+
// Spacing
|
|
359
|
+
"p-0",
|
|
360
|
+
"m-0",
|
|
361
|
+
|
|
362
|
+
// Shape
|
|
363
|
+
"opacity-0",
|
|
364
|
+
"rounded-md",
|
|
365
|
+
"outline-none",
|
|
366
|
+
"border-2 border-surface-200 dark:border-surface-700",
|
|
367
|
+
|
|
368
|
+
// Misc
|
|
369
|
+
"appearance-none",
|
|
370
|
+
"cursor-pointer",
|
|
371
|
+
],
|
|
372
|
+
},
|
|
373
|
+
icon: {
|
|
374
|
+
class: [
|
|
375
|
+
// Font
|
|
376
|
+
"text-base leading-none",
|
|
377
|
+
|
|
378
|
+
// Size
|
|
379
|
+
"w-4",
|
|
380
|
+
"h-4",
|
|
381
|
+
|
|
382
|
+
// Colors
|
|
383
|
+
"text-white dark:text-surface-900",
|
|
384
|
+
|
|
385
|
+
// Transitions
|
|
386
|
+
"transition-all",
|
|
387
|
+
"duration-200",
|
|
388
|
+
],
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
closeButton: {
|
|
392
|
+
class: [
|
|
393
|
+
"relative",
|
|
394
|
+
|
|
395
|
+
// Flexbox and Alignment
|
|
396
|
+
"flex items-center justify-center",
|
|
397
|
+
|
|
398
|
+
// Size and Spacing
|
|
399
|
+
"mr-2",
|
|
400
|
+
"last:mr-0",
|
|
401
|
+
"w-8 h-8",
|
|
402
|
+
|
|
403
|
+
// Shape
|
|
404
|
+
"border-0",
|
|
405
|
+
"rounded-full",
|
|
406
|
+
|
|
407
|
+
// Colors
|
|
408
|
+
"text-surface-500",
|
|
409
|
+
"bg-transparent",
|
|
410
|
+
|
|
411
|
+
// Transitions
|
|
412
|
+
"transition duration-200 ease-in-out",
|
|
413
|
+
|
|
414
|
+
// States
|
|
415
|
+
"hover:text-surface-700 dark:hover:text-white/80",
|
|
416
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
417
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset",
|
|
418
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
419
|
+
|
|
420
|
+
// Misc
|
|
421
|
+
"overflow-hidden",
|
|
422
|
+
],
|
|
423
|
+
},
|
|
424
|
+
closeButtonIcon: {
|
|
425
|
+
class: "w-4 h-4 inline-block",
|
|
426
|
+
},
|
|
427
|
+
wrapper: {
|
|
428
|
+
class: [
|
|
429
|
+
// Sizing
|
|
430
|
+
"max-h-[200px]",
|
|
431
|
+
|
|
432
|
+
// Misc
|
|
433
|
+
"overflow-auto",
|
|
434
|
+
],
|
|
435
|
+
},
|
|
436
|
+
list: {
|
|
437
|
+
class: "py-3 list-none m-0",
|
|
438
|
+
},
|
|
439
|
+
item: ({ context }) => ({
|
|
440
|
+
class: [
|
|
441
|
+
// Font
|
|
442
|
+
"font-normal",
|
|
443
|
+
"leading-none",
|
|
444
|
+
|
|
445
|
+
// Flexbox
|
|
446
|
+
"flex items-center",
|
|
447
|
+
|
|
448
|
+
// Position
|
|
449
|
+
"relative",
|
|
450
|
+
|
|
451
|
+
// Shape
|
|
452
|
+
"border-0",
|
|
453
|
+
"rounded-none",
|
|
454
|
+
|
|
455
|
+
// Spacing
|
|
456
|
+
"m-0",
|
|
457
|
+
"py-3 px-5",
|
|
458
|
+
|
|
459
|
+
// Color
|
|
460
|
+
{
|
|
461
|
+
"text-surface-700 dark:text-white/80":
|
|
462
|
+
!context.focused && !context.selected,
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"bg-surface-200 dark:bg-surface-600/60 text-surface-700 dark:text-white/80":
|
|
466
|
+
context.focused && !context.selected,
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":
|
|
470
|
+
context.focused && context.selected,
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":
|
|
474
|
+
!context.focused && context.selected,
|
|
475
|
+
},
|
|
476
|
+
|
|
477
|
+
// States
|
|
478
|
+
{
|
|
479
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80":
|
|
480
|
+
!context.focused && !context.selected,
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":
|
|
484
|
+
context.focused && !context.selected,
|
|
485
|
+
},
|
|
486
|
+
|
|
487
|
+
// Transitions
|
|
488
|
+
"transition-shadow",
|
|
489
|
+
"duration-200",
|
|
490
|
+
|
|
491
|
+
// Misc
|
|
492
|
+
"cursor-pointer",
|
|
493
|
+
"overflow-hidden",
|
|
494
|
+
"whitespace-nowrap",
|
|
495
|
+
],
|
|
496
|
+
}),
|
|
497
|
+
itemgroup: {
|
|
498
|
+
class: [
|
|
499
|
+
// Font
|
|
500
|
+
"font-bold",
|
|
501
|
+
|
|
502
|
+
// Spacing
|
|
503
|
+
"m-0",
|
|
504
|
+
"p-3 px-5",
|
|
505
|
+
|
|
506
|
+
// Color
|
|
507
|
+
"text-surface-800 dark:text-white/80",
|
|
508
|
+
"bg-surface-0 dark:bg-surface-600/80",
|
|
509
|
+
|
|
510
|
+
// Misc
|
|
511
|
+
"cursor-auto",
|
|
512
|
+
],
|
|
513
|
+
},
|
|
514
|
+
filtercontainer: {
|
|
515
|
+
class: "relative w-full mx-2",
|
|
516
|
+
},
|
|
517
|
+
filterinput: {
|
|
518
|
+
class: [
|
|
519
|
+
// Font
|
|
520
|
+
"font-sans",
|
|
521
|
+
"leading-none",
|
|
522
|
+
|
|
523
|
+
// Sizing
|
|
524
|
+
"pr-7 py-3 px-3",
|
|
525
|
+
"-mr-7",
|
|
526
|
+
"w-full",
|
|
527
|
+
|
|
528
|
+
// Color
|
|
529
|
+
"text-surface-700 dark:text-white/80",
|
|
530
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
531
|
+
"border-surface-200 dark:border-surface-700",
|
|
532
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
533
|
+
|
|
534
|
+
// Shape
|
|
535
|
+
"border",
|
|
536
|
+
"rounded-lg",
|
|
537
|
+
"appearance-none",
|
|
538
|
+
|
|
539
|
+
// Transitions
|
|
540
|
+
"transition",
|
|
541
|
+
"duration-200",
|
|
542
|
+
|
|
543
|
+
// States
|
|
544
|
+
"hover:border-primary-500 dark:hover:border-primary-300",
|
|
545
|
+
"focus:ring focus:outline-none focus:outline-offset-0",
|
|
546
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
547
|
+
|
|
548
|
+
// Misc
|
|
549
|
+
"appearance-none",
|
|
550
|
+
],
|
|
551
|
+
},
|
|
552
|
+
filtericon: {
|
|
553
|
+
class: ["absolute", "top-1/2 right-3", "-mt-2"],
|
|
554
|
+
},
|
|
555
|
+
clearicon: {
|
|
556
|
+
class: [
|
|
557
|
+
// Color
|
|
558
|
+
"text-surface-500",
|
|
559
|
+
|
|
560
|
+
// Position
|
|
561
|
+
"absolute",
|
|
562
|
+
"top-1/2",
|
|
563
|
+
"right-12",
|
|
564
|
+
|
|
565
|
+
// Spacing
|
|
566
|
+
"-mt-2",
|
|
567
|
+
],
|
|
568
|
+
},
|
|
569
|
+
emptymessage: {
|
|
570
|
+
class: [
|
|
571
|
+
// Font
|
|
572
|
+
"leading-none",
|
|
573
|
+
|
|
574
|
+
// Spacing
|
|
575
|
+
"py-3 px-5",
|
|
576
|
+
|
|
577
|
+
// Color
|
|
578
|
+
"text-surface-800 dark:text-white/80",
|
|
579
|
+
"bg-transparent",
|
|
580
|
+
],
|
|
581
|
+
},
|
|
582
|
+
transition: {
|
|
583
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
584
|
+
enterActiveClass:
|
|
585
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
586
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
587
|
+
leaveToClass: "opacity-0",
|
|
588
|
+
},
|
|
589
|
+
};
|