@fy-/fws-vue 0.1.2 → 0.1.4
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 +21 -0
- 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,300 @@
|
|
|
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
|
+
input: ({ props }) => ({
|
|
44
|
+
class: [
|
|
45
|
+
// Font
|
|
46
|
+
"font-sans",
|
|
47
|
+
"leading-none",
|
|
48
|
+
|
|
49
|
+
// Display
|
|
50
|
+
"block",
|
|
51
|
+
"flex-auto",
|
|
52
|
+
|
|
53
|
+
// Color and Background
|
|
54
|
+
"bg-transparent",
|
|
55
|
+
"border-0",
|
|
56
|
+
{
|
|
57
|
+
"text-surface-800 dark:text-white/80": props.modelValue != undefined,
|
|
58
|
+
"text-surface-400 dark:text-surface-500": props.modelValue == undefined,
|
|
59
|
+
},
|
|
60
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
61
|
+
|
|
62
|
+
// Sizing and Spacing
|
|
63
|
+
"w-[1%]",
|
|
64
|
+
"p-3",
|
|
65
|
+
{ "pr-7": props.showClear },
|
|
66
|
+
|
|
67
|
+
// Shape
|
|
68
|
+
"rounded-none",
|
|
69
|
+
|
|
70
|
+
// Transitions
|
|
71
|
+
"transition",
|
|
72
|
+
"duration-200",
|
|
73
|
+
|
|
74
|
+
// States
|
|
75
|
+
"focus:outline-none focus:shadow-none",
|
|
76
|
+
|
|
77
|
+
// Misc
|
|
78
|
+
"relative",
|
|
79
|
+
"cursor-pointer",
|
|
80
|
+
"overflow-hidden overflow-ellipsis",
|
|
81
|
+
"whitespace-nowrap",
|
|
82
|
+
"appearance-none",
|
|
83
|
+
],
|
|
84
|
+
}),
|
|
85
|
+
trigger: {
|
|
86
|
+
class: [
|
|
87
|
+
// Flexbox
|
|
88
|
+
"flex items-center justify-center",
|
|
89
|
+
"shrink-0",
|
|
90
|
+
|
|
91
|
+
// Color and Background
|
|
92
|
+
"bg-transparent",
|
|
93
|
+
"text-surface-500",
|
|
94
|
+
|
|
95
|
+
// Size
|
|
96
|
+
"w-12",
|
|
97
|
+
|
|
98
|
+
// Shape
|
|
99
|
+
"rounded-tr-md",
|
|
100
|
+
"rounded-br-md",
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
panel: {
|
|
104
|
+
class: [
|
|
105
|
+
// Position
|
|
106
|
+
"absolute top-0 left-0",
|
|
107
|
+
|
|
108
|
+
// Shape
|
|
109
|
+
"border-0 dark:border",
|
|
110
|
+
"rounded-md",
|
|
111
|
+
"shadow-md",
|
|
112
|
+
|
|
113
|
+
// Color
|
|
114
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
115
|
+
"text-surface-800 dark:text-white/80",
|
|
116
|
+
"dark:border-surface-700",
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
wrapper: {
|
|
120
|
+
class: [
|
|
121
|
+
// Sizing
|
|
122
|
+
"max-h-[200px]",
|
|
123
|
+
|
|
124
|
+
// Misc
|
|
125
|
+
"overflow-auto",
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
list: {
|
|
129
|
+
class: "py-3 list-none m-0",
|
|
130
|
+
},
|
|
131
|
+
item: ({ context }) => ({
|
|
132
|
+
class: [
|
|
133
|
+
// Font
|
|
134
|
+
"font-normal",
|
|
135
|
+
"leading-none",
|
|
136
|
+
|
|
137
|
+
// Position
|
|
138
|
+
"relative",
|
|
139
|
+
|
|
140
|
+
// Shape
|
|
141
|
+
"border-0",
|
|
142
|
+
"rounded-none",
|
|
143
|
+
|
|
144
|
+
// Spacing
|
|
145
|
+
"m-0",
|
|
146
|
+
"py-3 px-5",
|
|
147
|
+
|
|
148
|
+
// Color
|
|
149
|
+
{
|
|
150
|
+
"text-surface-700 dark:text-white/80":
|
|
151
|
+
!context.focused && !context.selected && !context.disabled,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"text-surface-600 dark:text-white/70":
|
|
155
|
+
!context.focused && !context.selected && context.disabled,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"bg-surface-200 dark:bg-surface-600/60 text-surface-700 dark:text-white/80":
|
|
159
|
+
context.focused && !context.selected,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":
|
|
163
|
+
context.focused && context.selected,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80":
|
|
167
|
+
!context.focused && context.selected,
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
// States
|
|
171
|
+
{
|
|
172
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80":
|
|
173
|
+
!context.focused && !context.selected,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80":
|
|
177
|
+
context.focused && !context.selected,
|
|
178
|
+
},
|
|
179
|
+
"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
|
|
180
|
+
|
|
181
|
+
// Transitions
|
|
182
|
+
"transition-shadow",
|
|
183
|
+
"duration-200",
|
|
184
|
+
|
|
185
|
+
// Misc
|
|
186
|
+
{ "pointer-events-none cursor-default": context.disabled },
|
|
187
|
+
{ "cursor-pointer": !context.disabled },
|
|
188
|
+
"overflow-hidden",
|
|
189
|
+
"whitespace-nowrap",
|
|
190
|
+
],
|
|
191
|
+
}),
|
|
192
|
+
itemgroup: {
|
|
193
|
+
class: [
|
|
194
|
+
// Font
|
|
195
|
+
"font-bold",
|
|
196
|
+
|
|
197
|
+
// Spacing
|
|
198
|
+
"m-0",
|
|
199
|
+
"py-3 px-5",
|
|
200
|
+
|
|
201
|
+
// Color
|
|
202
|
+
"text-surface-800 dark:text-white/80",
|
|
203
|
+
"bg-surface-0 dark:bg-surface-600/80",
|
|
204
|
+
|
|
205
|
+
// Misc
|
|
206
|
+
"cursor-auto",
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
emptymessage: {
|
|
210
|
+
class: [
|
|
211
|
+
// Font
|
|
212
|
+
"leading-none",
|
|
213
|
+
|
|
214
|
+
// Spacing
|
|
215
|
+
"py-3 px-5",
|
|
216
|
+
|
|
217
|
+
// Color
|
|
218
|
+
"text-surface-800 dark:text-white/80",
|
|
219
|
+
"bg-transparent",
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
header: {
|
|
223
|
+
class: [
|
|
224
|
+
// Spacing
|
|
225
|
+
"py-3 px-5",
|
|
226
|
+
"m-0",
|
|
227
|
+
|
|
228
|
+
// Shape
|
|
229
|
+
"border-b",
|
|
230
|
+
"rounded-tl-md",
|
|
231
|
+
"rounded-tr-md",
|
|
232
|
+
|
|
233
|
+
// Color
|
|
234
|
+
"text-surface-700 dark:text-white/80",
|
|
235
|
+
"bg-surface-100 dark:bg-surface-800",
|
|
236
|
+
"border-surface-300 dark:border-surface-700",
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
filtercontainer: {
|
|
240
|
+
class: "relative",
|
|
241
|
+
},
|
|
242
|
+
filterinput: {
|
|
243
|
+
class: [
|
|
244
|
+
// Font
|
|
245
|
+
"font-sans",
|
|
246
|
+
"leading-none",
|
|
247
|
+
|
|
248
|
+
// Sizing
|
|
249
|
+
"pr-7 py-3 px-3",
|
|
250
|
+
"-mr-7",
|
|
251
|
+
"w-full",
|
|
252
|
+
|
|
253
|
+
// Color
|
|
254
|
+
"text-surface-700 dark:text-white/80",
|
|
255
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
256
|
+
"border-surface-200 dark:border-surface-700",
|
|
257
|
+
|
|
258
|
+
// Shape
|
|
259
|
+
"border",
|
|
260
|
+
"rounded-lg",
|
|
261
|
+
"appearance-none",
|
|
262
|
+
|
|
263
|
+
// Transitions
|
|
264
|
+
"transition",
|
|
265
|
+
"duration-200",
|
|
266
|
+
|
|
267
|
+
// States
|
|
268
|
+
"hover:border-primary-500 dark:hover:border-primary-300",
|
|
269
|
+
"focus:ring focus:outline-none focus:outline-offset-0",
|
|
270
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
271
|
+
|
|
272
|
+
// Misc
|
|
273
|
+
"appearance-none",
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
filtericon: {
|
|
277
|
+
class: ["absolute", "top-1/2 right-3", "-mt-2"],
|
|
278
|
+
},
|
|
279
|
+
clearicon: {
|
|
280
|
+
class: [
|
|
281
|
+
// Color
|
|
282
|
+
"text-surface-500",
|
|
283
|
+
|
|
284
|
+
// Position
|
|
285
|
+
"absolute",
|
|
286
|
+
"top-1/2",
|
|
287
|
+
"right-12",
|
|
288
|
+
|
|
289
|
+
// Spacing
|
|
290
|
+
"-mt-2",
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
transition: {
|
|
294
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
295
|
+
enterActiveClass:
|
|
296
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
297
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
298
|
+
leaveToClass: "opacity-0",
|
|
299
|
+
},
|
|
300
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
"block",
|
|
5
|
+
|
|
6
|
+
// Spacing
|
|
7
|
+
"px-4 pt-2 py-3",
|
|
8
|
+
"inline-size-min",
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
11
|
+
"rounded-md",
|
|
12
|
+
// Color
|
|
13
|
+
"border border-surface-200 dark:border-surface-700",
|
|
14
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
15
|
+
"text-surface-700 dark:text-surface-0/80",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
legend: ({ props }) => ({
|
|
19
|
+
class: [
|
|
20
|
+
// Font
|
|
21
|
+
"font-bold",
|
|
22
|
+
"leading-none",
|
|
23
|
+
|
|
24
|
+
// Spacing
|
|
25
|
+
{ "p-0": props.toggleable, "p-5": !props.toggleable },
|
|
26
|
+
|
|
27
|
+
// Shape
|
|
28
|
+
"rounded-md",
|
|
29
|
+
|
|
30
|
+
// Color
|
|
31
|
+
"text-surface-700 dark:text-surface-0/80",
|
|
32
|
+
"border border-surface-200 dark:border-surface-700",
|
|
33
|
+
"bg-surface-50 dark:bg-surface-900",
|
|
34
|
+
|
|
35
|
+
// Transition
|
|
36
|
+
"transition-none",
|
|
37
|
+
|
|
38
|
+
// States
|
|
39
|
+
{
|
|
40
|
+
"hover:bg-surface-100 hover:border-surface-200 hover:text-surface-900 dark:hover:text-surface-0/80 dark:hover:bg-surface-800/80":
|
|
41
|
+
props.toggleable,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
}),
|
|
45
|
+
toggler: ({ props }) => ({
|
|
46
|
+
class: [
|
|
47
|
+
// Alignments
|
|
48
|
+
"flex items-center justify-center",
|
|
49
|
+
"relative",
|
|
50
|
+
|
|
51
|
+
// Spacing
|
|
52
|
+
{ "p-5": props.toggleable },
|
|
53
|
+
|
|
54
|
+
// Shape
|
|
55
|
+
{ "rounded-md": props.toggleable },
|
|
56
|
+
|
|
57
|
+
// Color
|
|
58
|
+
{
|
|
59
|
+
"text-surface-700 dark:text-surface-200 hover:text-surface-900":
|
|
60
|
+
props.toggleable,
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
// States
|
|
64
|
+
{
|
|
65
|
+
"hover:text-surface-900 dark:hover:text-surface-100": props.toggleable,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50":
|
|
69
|
+
props.toggleable,
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
// Misc
|
|
73
|
+
{
|
|
74
|
+
"transition-none cursor-pointer overflow-hidden select-none":
|
|
75
|
+
props.toggleable,
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
}),
|
|
79
|
+
togglerIcon: {
|
|
80
|
+
class: "mr-2 inline-block",
|
|
81
|
+
},
|
|
82
|
+
legendTitle: {
|
|
83
|
+
class: "flex items-center justify-center leading-none",
|
|
84
|
+
},
|
|
85
|
+
content: {
|
|
86
|
+
class: "p-5",
|
|
87
|
+
},
|
|
88
|
+
transition: {
|
|
89
|
+
enterFromClass: "max-h-0",
|
|
90
|
+
enterActiveClass:
|
|
91
|
+
"overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]",
|
|
92
|
+
enterToClass: "max-h-[1000px]",
|
|
93
|
+
leaveFromClass: "max-h-[1000px]",
|
|
94
|
+
leaveActiveClass:
|
|
95
|
+
"overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
|
|
96
|
+
leaveToClass: "max-h-0",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
input: {
|
|
3
|
+
class: "hidden",
|
|
4
|
+
},
|
|
5
|
+
buttonbar: {
|
|
6
|
+
class: [
|
|
7
|
+
// Flexbox
|
|
8
|
+
"flex",
|
|
9
|
+
"flex-wrap",
|
|
10
|
+
|
|
11
|
+
// Colors
|
|
12
|
+
"bg-surface-50",
|
|
13
|
+
"dark:bg-surface-800",
|
|
14
|
+
"text-surface-700",
|
|
15
|
+
"dark:text-white/80",
|
|
16
|
+
|
|
17
|
+
// Spacing
|
|
18
|
+
"p-5",
|
|
19
|
+
"gap-2",
|
|
20
|
+
|
|
21
|
+
// Borders
|
|
22
|
+
"border",
|
|
23
|
+
"border-solid",
|
|
24
|
+
"border-surface-200",
|
|
25
|
+
"dark:border-surface-700",
|
|
26
|
+
"border-b-0",
|
|
27
|
+
|
|
28
|
+
// Shape
|
|
29
|
+
"rounded-tr-lg",
|
|
30
|
+
"rounded-tl-lg",
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
chooseButton: {
|
|
34
|
+
class: [
|
|
35
|
+
"relative",
|
|
36
|
+
|
|
37
|
+
// Alignments
|
|
38
|
+
"items-center inline-flex text-center align-bottom justify-center",
|
|
39
|
+
|
|
40
|
+
// Spacing
|
|
41
|
+
"px-4 py-3",
|
|
42
|
+
|
|
43
|
+
// Shape
|
|
44
|
+
"rounded-md",
|
|
45
|
+
|
|
46
|
+
// Font
|
|
47
|
+
"leading-[normal]",
|
|
48
|
+
"font-bold",
|
|
49
|
+
|
|
50
|
+
// Colors
|
|
51
|
+
"text-white dark:text-surface-900",
|
|
52
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
53
|
+
"border-primary-500 dark:border-primary-400",
|
|
54
|
+
|
|
55
|
+
// States
|
|
56
|
+
"hover:bg-primary-600 dark:hover:bg-primary-300",
|
|
57
|
+
|
|
58
|
+
// Misc
|
|
59
|
+
"overflow-hidden",
|
|
60
|
+
"cursor-pointer",
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
chooseIcon: {
|
|
64
|
+
class: ["mr-2", "inline-block"],
|
|
65
|
+
},
|
|
66
|
+
chooseButtonLabel: {
|
|
67
|
+
class: ["flex-1", "font-bold"],
|
|
68
|
+
},
|
|
69
|
+
uploadbutton: {
|
|
70
|
+
icon: {
|
|
71
|
+
class: "mr-2",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
cancelbutton: {
|
|
75
|
+
icon: {
|
|
76
|
+
class: "mr-2",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
content: {
|
|
80
|
+
class: [
|
|
81
|
+
// Position
|
|
82
|
+
"relative",
|
|
83
|
+
|
|
84
|
+
// Colors
|
|
85
|
+
"bg-surface-0",
|
|
86
|
+
"dark:bg-surface-900",
|
|
87
|
+
"text-surface-700",
|
|
88
|
+
"dark:text-white/80",
|
|
89
|
+
|
|
90
|
+
// Spacing
|
|
91
|
+
"p-8",
|
|
92
|
+
|
|
93
|
+
// Borders
|
|
94
|
+
"border",
|
|
95
|
+
"border-surface-200",
|
|
96
|
+
"dark:border-surface-700",
|
|
97
|
+
|
|
98
|
+
// Shape
|
|
99
|
+
"rounded-b-lg",
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
file: {
|
|
103
|
+
class: [
|
|
104
|
+
// Flexbox
|
|
105
|
+
"flex",
|
|
106
|
+
"items-center",
|
|
107
|
+
"flex-wrap",
|
|
108
|
+
|
|
109
|
+
// Spacing
|
|
110
|
+
"p-4",
|
|
111
|
+
"mb-2",
|
|
112
|
+
"last:mb-0",
|
|
113
|
+
|
|
114
|
+
// Borders
|
|
115
|
+
"border",
|
|
116
|
+
"border-surface-200",
|
|
117
|
+
"dark:border-surface-700",
|
|
118
|
+
"gap-2",
|
|
119
|
+
|
|
120
|
+
// Shape
|
|
121
|
+
"rounded",
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
thumbnail: {
|
|
125
|
+
class: "shrink-0",
|
|
126
|
+
},
|
|
127
|
+
fileName: {
|
|
128
|
+
class: "mb-2 break-all",
|
|
129
|
+
},
|
|
130
|
+
fileSize: {
|
|
131
|
+
class: "mr-2",
|
|
132
|
+
},
|
|
133
|
+
uploadicon: {
|
|
134
|
+
class: "mr-2",
|
|
135
|
+
},
|
|
136
|
+
progressbar: {
|
|
137
|
+
root: {
|
|
138
|
+
class: [
|
|
139
|
+
// Position and Overflow
|
|
140
|
+
"overflow-hidden",
|
|
141
|
+
"absolute top-0 left-0",
|
|
142
|
+
|
|
143
|
+
// Shape and Size
|
|
144
|
+
"border-0",
|
|
145
|
+
"h-2",
|
|
146
|
+
"rounded-md",
|
|
147
|
+
"w-full",
|
|
148
|
+
|
|
149
|
+
// Colors
|
|
150
|
+
"bg-surface-100 dark:bg-surface-700",
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
value: {
|
|
154
|
+
class: [
|
|
155
|
+
// Flexbox & Overflow & Position
|
|
156
|
+
"absolute flex items-center justify-center overflow-hidden",
|
|
157
|
+
|
|
158
|
+
// Colors
|
|
159
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
160
|
+
|
|
161
|
+
// Spacing & Sizing
|
|
162
|
+
"m-0",
|
|
163
|
+
"h-full w-0",
|
|
164
|
+
|
|
165
|
+
// Shape
|
|
166
|
+
"border-0",
|
|
167
|
+
|
|
168
|
+
// Transitions
|
|
169
|
+
"transition-width duration-1000 ease-in-out",
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
"block relative",
|
|
5
|
+
|
|
6
|
+
// Base Label Appearance
|
|
7
|
+
"[&>*:last-child]:text-surface-900/60 dark:[&>*:last-child]:text-white/60",
|
|
8
|
+
"[&>*:last-child]:absolute",
|
|
9
|
+
"[&>*:last-child]:top-1/2",
|
|
10
|
+
"[&>*:last-child]:-translate-y-1/2",
|
|
11
|
+
"[&>*:last-child]:left-3",
|
|
12
|
+
"[&>*:last-child]:pointer-events-none",
|
|
13
|
+
"[&>*:last-child]:transition-all",
|
|
14
|
+
"[&>*:last-child]:duration-200",
|
|
15
|
+
"[&>*:last-child]:ease",
|
|
16
|
+
|
|
17
|
+
// Focus Label Appearance
|
|
18
|
+
"[&>*:last-child]:has-[:focus]:-top-3",
|
|
19
|
+
"[&>*:last-child]:has-[:focus]:text-sm",
|
|
20
|
+
|
|
21
|
+
// Filled Input Label Appearance
|
|
22
|
+
"[&>*:last-child]:has-[.filled]:-top-3",
|
|
23
|
+
"[&>*:last-child]:has-[.filled]:text-sm",
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
};
|