@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,683 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
"inline-flex",
|
|
6
|
+
"max-w-full",
|
|
7
|
+
"relative",
|
|
8
|
+
|
|
9
|
+
// Misc
|
|
10
|
+
{
|
|
11
|
+
"opacity-60 select-none pointer-events-none cursor-default":
|
|
12
|
+
props.disabled,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
}),
|
|
16
|
+
input: ({ props }) => ({
|
|
17
|
+
class: [
|
|
18
|
+
// Display
|
|
19
|
+
"flex flex-auto",
|
|
20
|
+
|
|
21
|
+
// Font
|
|
22
|
+
"font-sans leading-none",
|
|
23
|
+
|
|
24
|
+
// Colors
|
|
25
|
+
"text-surface-600 dark:text-surface-200",
|
|
26
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
27
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
28
|
+
"border",
|
|
29
|
+
{ "border-surface-300 dark:border-surface-600": !props.invalid },
|
|
30
|
+
|
|
31
|
+
// Invalid State
|
|
32
|
+
{ "border-red-500 dark:border-red-400": props.invalid },
|
|
33
|
+
|
|
34
|
+
// Spacing
|
|
35
|
+
"m-0 p-3",
|
|
36
|
+
|
|
37
|
+
// Shape
|
|
38
|
+
"appearance-none",
|
|
39
|
+
{ "rounded-md": !props.showIcon || props.iconDisplay == "input" },
|
|
40
|
+
{
|
|
41
|
+
"rounded-l-md flex-1 pr-9":
|
|
42
|
+
props.showIcon && props.iconDisplay !== "input",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"rounded-md flex-1 pr-9":
|
|
46
|
+
props.showIcon && props.iconDisplay === "input",
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
// Transitions
|
|
50
|
+
"transition-colors",
|
|
51
|
+
"duration-200",
|
|
52
|
+
|
|
53
|
+
// States
|
|
54
|
+
{
|
|
55
|
+
"hover:border-primary-500 dark:hover:border-primary-400":
|
|
56
|
+
!props.invalid,
|
|
57
|
+
},
|
|
58
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50",
|
|
59
|
+
],
|
|
60
|
+
}),
|
|
61
|
+
inputicon: {
|
|
62
|
+
class: [
|
|
63
|
+
"absolute top-[50%] -mt-2",
|
|
64
|
+
"text-surface-600 dark:text-surface-200",
|
|
65
|
+
"right-[.75rem]",
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
dropdownbutton: {
|
|
69
|
+
root: {
|
|
70
|
+
class: [
|
|
71
|
+
"relative",
|
|
72
|
+
|
|
73
|
+
// Alignments
|
|
74
|
+
"items-center inline-flex text-center align-bottom",
|
|
75
|
+
|
|
76
|
+
// Shape
|
|
77
|
+
"rounded-r-md",
|
|
78
|
+
|
|
79
|
+
// Size
|
|
80
|
+
"px-4 py-3 leading-none",
|
|
81
|
+
|
|
82
|
+
// Colors
|
|
83
|
+
"text-white dark:text-surface-900",
|
|
84
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
85
|
+
"border border-primary-500 dark:border-primary-400",
|
|
86
|
+
|
|
87
|
+
// States
|
|
88
|
+
"focus:outline-none focus:outline-offset-0 focus:ring",
|
|
89
|
+
"hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
|
|
90
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
panel: ({ props }) => ({
|
|
95
|
+
class: [
|
|
96
|
+
// Display & Position
|
|
97
|
+
{
|
|
98
|
+
absolute: !props.inline,
|
|
99
|
+
"inline-block": props.inline,
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
// Size
|
|
103
|
+
{ "w-auto p-2 ": !props.inline },
|
|
104
|
+
{ "min-w-[80vw] w-auto p-2 ": props.touchUI },
|
|
105
|
+
{ "p-2 min-w-full": props.inline },
|
|
106
|
+
|
|
107
|
+
// Shape
|
|
108
|
+
"border rounded-lg",
|
|
109
|
+
{
|
|
110
|
+
"shadow-md": !props.inline,
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
// Colors
|
|
114
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
115
|
+
"border-surface-200 dark:border-surface-700",
|
|
116
|
+
|
|
117
|
+
// misc
|
|
118
|
+
{ "overflow-x-auto": props.inline },
|
|
119
|
+
],
|
|
120
|
+
}),
|
|
121
|
+
datepickerMask: {
|
|
122
|
+
class: [
|
|
123
|
+
"fixed top-0 left-0 w-full h-full",
|
|
124
|
+
"flex items-center justify-center",
|
|
125
|
+
"bg-black bg-opacity-90",
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
header: {
|
|
129
|
+
class: [
|
|
130
|
+
// Font
|
|
131
|
+
"font-semibold",
|
|
132
|
+
|
|
133
|
+
// Flexbox and Alignment
|
|
134
|
+
"flex items-center justify-between",
|
|
135
|
+
|
|
136
|
+
// Spacing
|
|
137
|
+
"p-2",
|
|
138
|
+
"m-0",
|
|
139
|
+
|
|
140
|
+
// Shape
|
|
141
|
+
"border-b",
|
|
142
|
+
"rounded-t-md",
|
|
143
|
+
|
|
144
|
+
// Colors
|
|
145
|
+
"text-surface-700 dark:text-white/80",
|
|
146
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
147
|
+
"border-surface-200 dark:border-surface-700",
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
previousbutton: {
|
|
151
|
+
class: [
|
|
152
|
+
"relative",
|
|
153
|
+
|
|
154
|
+
// Flexbox and Alignment
|
|
155
|
+
"inline-flex items-center justify-center",
|
|
156
|
+
|
|
157
|
+
// Size
|
|
158
|
+
"w-8 h-8",
|
|
159
|
+
"p-0 m-0",
|
|
160
|
+
|
|
161
|
+
// Shape
|
|
162
|
+
"rounded-full",
|
|
163
|
+
|
|
164
|
+
// Colors
|
|
165
|
+
"text-surface-600 dark:text-white/70",
|
|
166
|
+
"border-0",
|
|
167
|
+
"bg-transparent",
|
|
168
|
+
|
|
169
|
+
// Transitions
|
|
170
|
+
"transition-colors duration-200 ease-in-out",
|
|
171
|
+
|
|
172
|
+
// States
|
|
173
|
+
"hover:text-surface-700 dark:hover:text-white/80",
|
|
174
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
175
|
+
|
|
176
|
+
// Misc
|
|
177
|
+
"cursor-pointer overflow-hidden",
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
title: {
|
|
181
|
+
class: [
|
|
182
|
+
// Text
|
|
183
|
+
"leading-8",
|
|
184
|
+
"mx-auto my-0",
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
monthTitle: {
|
|
188
|
+
class: [
|
|
189
|
+
// Font
|
|
190
|
+
"text-base leading-5",
|
|
191
|
+
"font-semibold",
|
|
192
|
+
|
|
193
|
+
// Colors
|
|
194
|
+
"text-surface-700 dark:text-white/80",
|
|
195
|
+
|
|
196
|
+
// Transitions
|
|
197
|
+
"transition duration-200",
|
|
198
|
+
|
|
199
|
+
// Spacing
|
|
200
|
+
"p-2",
|
|
201
|
+
"m-0 mr-2",
|
|
202
|
+
|
|
203
|
+
// States
|
|
204
|
+
"hover:text-primary-500 dark:hover:text-primary-400",
|
|
205
|
+
|
|
206
|
+
// Misc
|
|
207
|
+
"cursor-pointer",
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
yearTitle: {
|
|
211
|
+
class: [
|
|
212
|
+
// Font
|
|
213
|
+
"text-base leading-5",
|
|
214
|
+
"font-semibold",
|
|
215
|
+
|
|
216
|
+
// Colors
|
|
217
|
+
"text-surface-700 dark:text-white/80",
|
|
218
|
+
|
|
219
|
+
// Transitions
|
|
220
|
+
"transition duration-200",
|
|
221
|
+
|
|
222
|
+
// Spacing
|
|
223
|
+
"p-2",
|
|
224
|
+
"m-0",
|
|
225
|
+
|
|
226
|
+
// States
|
|
227
|
+
"hover:text-primary-500 dark:hover:text-primary-400",
|
|
228
|
+
|
|
229
|
+
// Misc
|
|
230
|
+
"cursor-pointer",
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
nextbutton: {
|
|
234
|
+
class: [
|
|
235
|
+
"relative",
|
|
236
|
+
|
|
237
|
+
// Flexbox and Alignment
|
|
238
|
+
"inline-flex items-center justify-center",
|
|
239
|
+
|
|
240
|
+
// Size
|
|
241
|
+
"w-8 h-8",
|
|
242
|
+
"p-0 m-0",
|
|
243
|
+
|
|
244
|
+
// Shape
|
|
245
|
+
"rounded-full",
|
|
246
|
+
|
|
247
|
+
// Colors
|
|
248
|
+
"text-surface-600 dark:text-white/70",
|
|
249
|
+
"border-0",
|
|
250
|
+
"bg-transparent",
|
|
251
|
+
|
|
252
|
+
// Transitions
|
|
253
|
+
"transition-colors duration-200 ease-in-out",
|
|
254
|
+
|
|
255
|
+
// States
|
|
256
|
+
"hover:text-surface-700 dark:hover:text-white/80",
|
|
257
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
258
|
+
|
|
259
|
+
// Misc
|
|
260
|
+
"cursor-pointer overflow-hidden",
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
table: {
|
|
264
|
+
class: [
|
|
265
|
+
// Font
|
|
266
|
+
"text-base leading-none",
|
|
267
|
+
// Size & Shape
|
|
268
|
+
"border-collapse",
|
|
269
|
+
"w-full",
|
|
270
|
+
|
|
271
|
+
// Spacing
|
|
272
|
+
"m-0 my-2",
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
tableheadercell: {
|
|
276
|
+
class: [
|
|
277
|
+
// Spacing
|
|
278
|
+
"p-0 md:p-2",
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
weekheader: {
|
|
282
|
+
class: [
|
|
283
|
+
"leading-5",
|
|
284
|
+
"text-surface-600 dark:text-white/70",
|
|
285
|
+
"opacity-60 cursor-default",
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
weeknumber: {
|
|
289
|
+
class: ["text-surface-600 dark:text-white/70", "opacity-60 cursor-default"],
|
|
290
|
+
},
|
|
291
|
+
weekday: {
|
|
292
|
+
class: [
|
|
293
|
+
// Colors
|
|
294
|
+
"text-surface-500 dark:text-white/60",
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
day: {
|
|
298
|
+
class: [
|
|
299
|
+
// Spacing
|
|
300
|
+
"p-0 md:p-2",
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
weeklabelcontainer: ({ context }) => ({
|
|
304
|
+
class: [
|
|
305
|
+
// Flexbox and Alignment
|
|
306
|
+
"flex items-center justify-center",
|
|
307
|
+
"mx-auto",
|
|
308
|
+
|
|
309
|
+
// Shape & Size
|
|
310
|
+
"w-10 h-10",
|
|
311
|
+
"rounded-full",
|
|
312
|
+
"border-transparent border",
|
|
313
|
+
|
|
314
|
+
// Colors
|
|
315
|
+
{
|
|
316
|
+
"text-surface-600 dark:text-white/70 bg-transparent":
|
|
317
|
+
!context.selected && !context.disabled,
|
|
318
|
+
"text-primary-700 bg-primary-100":
|
|
319
|
+
context.selected && !context.disabled,
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
// States
|
|
323
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
324
|
+
{
|
|
325
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80":
|
|
326
|
+
!context.selected && !context.disabled,
|
|
327
|
+
"hover:bg-primary-200": context.selected && !context.disabled,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"opacity-60 cursor-default": context.disabled,
|
|
331
|
+
"cursor-pointer": !context.disabled,
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
}),
|
|
335
|
+
daylabel: ({ context }) => ({
|
|
336
|
+
class: [
|
|
337
|
+
// Flexbox and Alignment
|
|
338
|
+
"flex items-center justify-center",
|
|
339
|
+
"mx-auto",
|
|
340
|
+
|
|
341
|
+
// Shape & Size
|
|
342
|
+
"w-10 h-10",
|
|
343
|
+
"rounded-full",
|
|
344
|
+
"border-transparent border",
|
|
345
|
+
|
|
346
|
+
// Colors
|
|
347
|
+
{
|
|
348
|
+
"text-primary-500 dark:text-primary-400": context.date.today,
|
|
349
|
+
"text-surface-600 dark:text-white/70 bg-transparent":
|
|
350
|
+
!context.selected && !context.disabled && !context.date.today,
|
|
351
|
+
"text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40":
|
|
352
|
+
context.selected && !context.disabled,
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
// States
|
|
356
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
357
|
+
{
|
|
358
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80":
|
|
359
|
+
!context.selected && !context.disabled,
|
|
360
|
+
"hover:bg-primary-200 dark:hover:bg-primary-200/40":
|
|
361
|
+
context.selected && !context.disabled,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"opacity-60 cursor-default": context.disabled,
|
|
365
|
+
"cursor-pointer": !context.disabled,
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
}),
|
|
369
|
+
monthpicker: {
|
|
370
|
+
class: [
|
|
371
|
+
// Spacing
|
|
372
|
+
"my-2",
|
|
373
|
+
],
|
|
374
|
+
},
|
|
375
|
+
month: ({ context }) => ({
|
|
376
|
+
class: [
|
|
377
|
+
// Flexbox and Alignment
|
|
378
|
+
"inline-flex items-center justify-center",
|
|
379
|
+
|
|
380
|
+
// Size
|
|
381
|
+
"w-1/3",
|
|
382
|
+
"p-2",
|
|
383
|
+
|
|
384
|
+
// Shape
|
|
385
|
+
"rounded-md",
|
|
386
|
+
|
|
387
|
+
// Colors
|
|
388
|
+
{
|
|
389
|
+
"text-surface-600 dark:text-white/70 bg-transparent":
|
|
390
|
+
!context.selected && !context.disabled,
|
|
391
|
+
"text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40":
|
|
392
|
+
context.selected && !context.disabled,
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
// States
|
|
396
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
397
|
+
{
|
|
398
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80":
|
|
399
|
+
!context.selected && !context.disabled,
|
|
400
|
+
"hover:bg-primary-200 dark:hover:bg-primary-200/40":
|
|
401
|
+
context.selected && !context.disabled,
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
// Misc
|
|
405
|
+
"cursor-pointer",
|
|
406
|
+
],
|
|
407
|
+
}),
|
|
408
|
+
yearpicker: {
|
|
409
|
+
class: [
|
|
410
|
+
// Spacing
|
|
411
|
+
"my-2",
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
year: ({ context }) => ({
|
|
415
|
+
class: [
|
|
416
|
+
// Flexbox and Alignment
|
|
417
|
+
"inline-flex items-center justify-center",
|
|
418
|
+
|
|
419
|
+
// Size
|
|
420
|
+
"w-1/3",
|
|
421
|
+
"p-2",
|
|
422
|
+
|
|
423
|
+
// Shape
|
|
424
|
+
"rounded-md",
|
|
425
|
+
|
|
426
|
+
// Colors
|
|
427
|
+
{
|
|
428
|
+
"text-surface-600 dark:text-white/70 bg-transparent":
|
|
429
|
+
!context.selected && !context.disabled,
|
|
430
|
+
"text-primary-700 bg-primary-100 dark:text-surface-0 dark:bg-primary-300/40":
|
|
431
|
+
context.selected && !context.disabled,
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
// States
|
|
435
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
436
|
+
{
|
|
437
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80":
|
|
438
|
+
!context.selected && !context.disabled,
|
|
439
|
+
"hover:bg-primary-200 dark:hover:bg-primary-200/40":
|
|
440
|
+
context.selected && !context.disabled,
|
|
441
|
+
},
|
|
442
|
+
|
|
443
|
+
// Misc
|
|
444
|
+
"cursor-pointer",
|
|
445
|
+
],
|
|
446
|
+
}),
|
|
447
|
+
timepicker: {
|
|
448
|
+
class: [
|
|
449
|
+
// Flexbox
|
|
450
|
+
"flex",
|
|
451
|
+
"justify-center items-center",
|
|
452
|
+
|
|
453
|
+
// Borders
|
|
454
|
+
"border-t-1",
|
|
455
|
+
"border-solid border-surface-200",
|
|
456
|
+
|
|
457
|
+
// Spacing
|
|
458
|
+
"p-2",
|
|
459
|
+
],
|
|
460
|
+
},
|
|
461
|
+
separatorcontainer: {
|
|
462
|
+
class: [
|
|
463
|
+
// Flexbox and Alignment
|
|
464
|
+
"flex",
|
|
465
|
+
"items-center",
|
|
466
|
+
"flex-col",
|
|
467
|
+
|
|
468
|
+
// Spacing
|
|
469
|
+
"px-2",
|
|
470
|
+
],
|
|
471
|
+
},
|
|
472
|
+
separator: {
|
|
473
|
+
class: [
|
|
474
|
+
// Text
|
|
475
|
+
"text-xl",
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
hourpicker: {
|
|
479
|
+
class: [
|
|
480
|
+
// Flexbox and Alignment
|
|
481
|
+
"flex",
|
|
482
|
+
"items-center",
|
|
483
|
+
"flex-col",
|
|
484
|
+
|
|
485
|
+
// Spacing
|
|
486
|
+
"px-2",
|
|
487
|
+
],
|
|
488
|
+
},
|
|
489
|
+
minutepicker: {
|
|
490
|
+
class: [
|
|
491
|
+
// Flexbox and Alignment
|
|
492
|
+
"flex",
|
|
493
|
+
"items-center",
|
|
494
|
+
"flex-col",
|
|
495
|
+
|
|
496
|
+
// Spacing
|
|
497
|
+
"px-2",
|
|
498
|
+
],
|
|
499
|
+
},
|
|
500
|
+
secondPicker: {
|
|
501
|
+
class: [
|
|
502
|
+
// Flexbox and Alignment
|
|
503
|
+
"flex",
|
|
504
|
+
"items-center",
|
|
505
|
+
"flex-col",
|
|
506
|
+
|
|
507
|
+
// Spacing
|
|
508
|
+
"px-2",
|
|
509
|
+
],
|
|
510
|
+
},
|
|
511
|
+
ampmpicker: {
|
|
512
|
+
class: [
|
|
513
|
+
// Flexbox and Alignment
|
|
514
|
+
"flex",
|
|
515
|
+
"items-center",
|
|
516
|
+
"flex-col",
|
|
517
|
+
|
|
518
|
+
// Spacing
|
|
519
|
+
"px-2",
|
|
520
|
+
],
|
|
521
|
+
},
|
|
522
|
+
incrementbutton: {
|
|
523
|
+
class: [
|
|
524
|
+
"relative",
|
|
525
|
+
|
|
526
|
+
// Flexbox and Alignment
|
|
527
|
+
"inline-flex items-center justify-center",
|
|
528
|
+
|
|
529
|
+
// Size
|
|
530
|
+
"w-8 h-8",
|
|
531
|
+
"p-0 m-0",
|
|
532
|
+
|
|
533
|
+
// Shape
|
|
534
|
+
"rounded-full",
|
|
535
|
+
|
|
536
|
+
// Colors
|
|
537
|
+
"text-surface-600 dark:text-white/70",
|
|
538
|
+
"border-0",
|
|
539
|
+
"bg-transparent",
|
|
540
|
+
|
|
541
|
+
// Transitions
|
|
542
|
+
"transition-colors duration-200 ease-in-out",
|
|
543
|
+
|
|
544
|
+
// States
|
|
545
|
+
"hover:text-surface-700 dark:hover:text-white/80",
|
|
546
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
547
|
+
|
|
548
|
+
// Misc
|
|
549
|
+
"cursor-pointer overflow-hidden",
|
|
550
|
+
],
|
|
551
|
+
},
|
|
552
|
+
decrementbutton: {
|
|
553
|
+
class: [
|
|
554
|
+
"relative",
|
|
555
|
+
|
|
556
|
+
// Flexbox and Alignment
|
|
557
|
+
"inline-flex items-center justify-center",
|
|
558
|
+
|
|
559
|
+
// Size
|
|
560
|
+
"w-8 h-8",
|
|
561
|
+
"p-0 m-0",
|
|
562
|
+
|
|
563
|
+
// Shape
|
|
564
|
+
"rounded-full",
|
|
565
|
+
|
|
566
|
+
// Colors
|
|
567
|
+
"text-surface-600 dark:text-white/70",
|
|
568
|
+
"border-0",
|
|
569
|
+
"bg-transparent",
|
|
570
|
+
|
|
571
|
+
// Transitions
|
|
572
|
+
"transition-colors duration-200 ease-in-out",
|
|
573
|
+
|
|
574
|
+
// States
|
|
575
|
+
"hover:text-surface-700 dark:hover:text-white/80",
|
|
576
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800/80",
|
|
577
|
+
|
|
578
|
+
// Misc
|
|
579
|
+
"cursor-pointer overflow-hidden",
|
|
580
|
+
],
|
|
581
|
+
},
|
|
582
|
+
groupcontainer: {
|
|
583
|
+
class: [
|
|
584
|
+
// Flexbox
|
|
585
|
+
"flex",
|
|
586
|
+
],
|
|
587
|
+
},
|
|
588
|
+
group: {
|
|
589
|
+
class: [
|
|
590
|
+
// Flexbox and Sizing
|
|
591
|
+
"flex-1",
|
|
592
|
+
|
|
593
|
+
// Borders
|
|
594
|
+
"border-l",
|
|
595
|
+
"border-surface-200",
|
|
596
|
+
|
|
597
|
+
// Spacing
|
|
598
|
+
"pr-0.5",
|
|
599
|
+
"pl-0.5",
|
|
600
|
+
"pt-0",
|
|
601
|
+
"pb-0",
|
|
602
|
+
|
|
603
|
+
// Pseudo-Classes
|
|
604
|
+
"first:pl-0",
|
|
605
|
+
"first:border-l-0",
|
|
606
|
+
],
|
|
607
|
+
},
|
|
608
|
+
buttonbar: {
|
|
609
|
+
class: [
|
|
610
|
+
// Flexbox
|
|
611
|
+
"flex justify-between items-center",
|
|
612
|
+
|
|
613
|
+
// Spacing
|
|
614
|
+
"py-3 px-0",
|
|
615
|
+
|
|
616
|
+
// Shape
|
|
617
|
+
"border-t border-surface-200 dark:border-surface-700",
|
|
618
|
+
],
|
|
619
|
+
},
|
|
620
|
+
todaybutton: {
|
|
621
|
+
root: {
|
|
622
|
+
class: [
|
|
623
|
+
// Flexbox and Alignment
|
|
624
|
+
"inline-flex items-center justify-center",
|
|
625
|
+
|
|
626
|
+
// Spacing
|
|
627
|
+
"px-4 py-3 leading-none",
|
|
628
|
+
|
|
629
|
+
// Shape
|
|
630
|
+
"rounded-md",
|
|
631
|
+
|
|
632
|
+
// Colors
|
|
633
|
+
"bg-transparent border-transparent",
|
|
634
|
+
"text-primary-500 dark:text-primary-400",
|
|
635
|
+
|
|
636
|
+
// Transitions
|
|
637
|
+
"transition-colors duration-200 ease-in-out",
|
|
638
|
+
|
|
639
|
+
// States
|
|
640
|
+
"focus:outline-none focus:outline-offset-0 focus:ring",
|
|
641
|
+
"hover:bg-primary-300/20",
|
|
642
|
+
|
|
643
|
+
// Misc
|
|
644
|
+
"cursor-pointer",
|
|
645
|
+
],
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
clearbutton: {
|
|
649
|
+
root: {
|
|
650
|
+
class: [
|
|
651
|
+
// Flexbox and Alignment
|
|
652
|
+
"inline-flex items-center justify-center",
|
|
653
|
+
|
|
654
|
+
// Spacing
|
|
655
|
+
"px-4 py-3 leading-none",
|
|
656
|
+
|
|
657
|
+
// Shape
|
|
658
|
+
"rounded-md",
|
|
659
|
+
|
|
660
|
+
// Colors
|
|
661
|
+
"bg-transparent border-transparent",
|
|
662
|
+
"text-primary-500 dark:text-primary-400",
|
|
663
|
+
|
|
664
|
+
// Transitions
|
|
665
|
+
"transition-colors duration-200 ease-in-out",
|
|
666
|
+
|
|
667
|
+
// States
|
|
668
|
+
"focus:outline-none focus:outline-offset-0 focus:ring",
|
|
669
|
+
"hover:bg-primary-300/20",
|
|
670
|
+
|
|
671
|
+
// Misc
|
|
672
|
+
"cursor-pointer",
|
|
673
|
+
],
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
transition: {
|
|
677
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
678
|
+
enterActiveClass:
|
|
679
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
680
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
681
|
+
leaveToClass: "opacity-0",
|
|
682
|
+
},
|
|
683
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Shape
|
|
5
|
+
"rounded-md",
|
|
6
|
+
"shadow-md",
|
|
7
|
+
|
|
8
|
+
// Color
|
|
9
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
10
|
+
"text-surface-700 dark:text-surface-0",
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
body: {
|
|
14
|
+
class: "p-5",
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
class: "text-2xl font-bold mb-2",
|
|
18
|
+
},
|
|
19
|
+
subtitle: {
|
|
20
|
+
class: [
|
|
21
|
+
// Font
|
|
22
|
+
"font-normal",
|
|
23
|
+
|
|
24
|
+
// Spacing
|
|
25
|
+
"mb-2",
|
|
26
|
+
|
|
27
|
+
// Color
|
|
28
|
+
"text-surface-600 dark:text-surface-0/60",
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
content: {
|
|
32
|
+
class: "py-5", // Vertical padding.
|
|
33
|
+
},
|
|
34
|
+
footer: {
|
|
35
|
+
class: "pt-5", // Top padding.
|
|
36
|
+
},
|
|
37
|
+
};
|