@fy-/fws-vue 0.2.9 → 0.3.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.
Files changed (180) hide show
  1. package/components/ui/DefaultInput.vue +204 -213
  2. package/package.json +2 -12
  3. package/presets/Lara/accordion/index.js +0 -86
  4. package/presets/Lara/autocomplete/index.js +0 -284
  5. package/presets/Lara/avatar/index.js +0 -46
  6. package/presets/Lara/badge/index.js +0 -44
  7. package/presets/Lara/badgedirective/index.js +0 -49
  8. package/presets/Lara/blockui/index.js +0 -8
  9. package/presets/Lara/breadcrumb/index.js +0 -64
  10. package/presets/Lara/button/index.js +0 -470
  11. package/presets/Lara/calendar/index.js +0 -683
  12. package/presets/Lara/card/index.js +0 -37
  13. package/presets/Lara/carousel/index.js +0 -152
  14. package/presets/Lara/cascadeselect/index.js +0 -228
  15. package/presets/Lara/checkbox/index.js +0 -106
  16. package/presets/Lara/chip/index.js +0 -45
  17. package/presets/Lara/chips/index.js +0 -118
  18. package/presets/Lara/colorpicker/index.js +0 -129
  19. package/presets/Lara/confirmpopup/index.js +0 -107
  20. package/presets/Lara/contextmenu/index.js +0 -130
  21. package/presets/Lara/datatable/index.js +0 -1289
  22. package/presets/Lara/dataview/index.js +0 -40
  23. package/presets/Lara/deferred/index.js +0 -3
  24. package/presets/Lara/dialog/index.js +0 -249
  25. package/presets/Lara/divider/index.js +0 -72
  26. package/presets/Lara/dock/index.js +0 -97
  27. package/presets/Lara/dropdown/index.js +0 -300
  28. package/presets/Lara/fieldset/index.js +0 -98
  29. package/presets/Lara/fileupload/index.js +0 -173
  30. package/presets/Lara/floatlabel/index.js +0 -26
  31. package/presets/Lara/galleria/index.js +0 -351
  32. package/presets/Lara/global.js +0 -90
  33. package/presets/Lara/iconfield/index.js +0 -22
  34. package/presets/Lara/image/index.js +0 -206
  35. package/presets/Lara/index.js +0 -181
  36. package/presets/Lara/inlinemessage/index.js +0 -36
  37. package/presets/Lara/inplace/index.js +0 -27
  38. package/presets/Lara/inputgroup/index.js +0 -5
  39. package/presets/Lara/inputgroupaddon/index.js +0 -28
  40. package/presets/Lara/inputmask/index.js +0 -37
  41. package/presets/Lara/inputnumber/index.js +0 -253
  42. package/presets/Lara/inputotp/index.js +0 -72
  43. package/presets/Lara/inputswitch/index.js +0 -93
  44. package/presets/Lara/inputtext/index.js +0 -61
  45. package/presets/Lara/knob/index.js +0 -47
  46. package/presets/Lara/listbox/index.js +0 -170
  47. package/presets/Lara/megamenu/index.js +0 -207
  48. package/presets/Lara/menu/index.js +0 -98
  49. package/presets/Lara/menubar/index.js +0 -181
  50. package/presets/Lara/message/index.js +0 -87
  51. package/presets/Lara/metergroup/index.js +0 -110
  52. package/presets/Lara/multiselect/index.js +0 -589
  53. package/presets/Lara/orderlist/index.js +0 -266
  54. package/presets/Lara/organizationchart/index.js +0 -142
  55. package/presets/Lara/overlaypanel/index.js +0 -41
  56. package/presets/Lara/paginator/index.js +0 -590
  57. package/presets/Lara/panel/index.js +0 -93
  58. package/presets/Lara/panelmenu/index.js +0 -139
  59. package/presets/Lara/password/index.js +0 -140
  60. package/presets/Lara/picklist/index.js +0 -659
  61. package/presets/Lara/progressbar/index.js +0 -61
  62. package/presets/Lara/progressspinner/index.js +0 -51
  63. package/presets/Lara/radiobutton/index.js +0 -116
  64. package/presets/Lara/rating/index.js +0 -95
  65. package/presets/Lara/ripple/index.js +0 -6
  66. package/presets/Lara/scrollpanel/index.js +0 -77
  67. package/presets/Lara/scrolltop/index.js +0 -45
  68. package/presets/Lara/selectbutton/index.js +0 -60
  69. package/presets/Lara/sidebar/index.js +0 -163
  70. package/presets/Lara/skeleton/index.js +0 -19
  71. package/presets/Lara/slider/index.js +0 -149
  72. package/presets/Lara/speeddial/index.js +0 -535
  73. package/presets/Lara/splitbutton/index.js +0 -1081
  74. package/presets/Lara/splitter/index.js +0 -64
  75. package/presets/Lara/stepper/index.js +0 -183
  76. package/presets/Lara/steps/index.js +0 -115
  77. package/presets/Lara/tabmenu/index.js +0 -82
  78. package/presets/Lara/tabview/index.js +0 -166
  79. package/presets/Lara/tag/index.js +0 -37
  80. package/presets/Lara/terminal/index.js +0 -60
  81. package/presets/Lara/textarea/index.js +0 -39
  82. package/presets/Lara/tieredmenu/index.js +0 -125
  83. package/presets/Lara/timeline/index.js +0 -107
  84. package/presets/Lara/toast/index.js +0 -113
  85. package/presets/Lara/togglebutton/index.js +0 -100
  86. package/presets/Lara/toolbar/index.js +0 -28
  87. package/presets/Lara/tooltip/index.js +0 -73
  88. package/presets/Lara/tree/index.js +0 -281
  89. package/presets/Lara/treeselect/index.js +0 -387
  90. package/presets/Lara/treetable/index.js +0 -509
  91. package/presets/Lara/tristatecheckbox/index.js +0 -112
  92. package/presets/Wind/accordion/index.js +0 -75
  93. package/presets/Wind/autocomplete/index.js +0 -294
  94. package/presets/Wind/avatar/index.js +0 -48
  95. package/presets/Wind/badge/index.js +0 -43
  96. package/presets/Wind/badgedirective/index.js +0 -50
  97. package/presets/Wind/blockui/index.js +0 -8
  98. package/presets/Wind/breadcrumb/index.js +0 -45
  99. package/presets/Wind/button/index.js +0 -474
  100. package/presets/Wind/calendar/index.js +0 -659
  101. package/presets/Wind/card/index.js +0 -40
  102. package/presets/Wind/carousel/index.js +0 -152
  103. package/presets/Wind/cascadeselect/index.js +0 -225
  104. package/presets/Wind/checkbox/index.js +0 -112
  105. package/presets/Wind/chip/index.js +0 -45
  106. package/presets/Wind/chips/index.js +0 -120
  107. package/presets/Wind/colorpicker/index.js +0 -129
  108. package/presets/Wind/confirmpopup/index.js +0 -123
  109. package/presets/Wind/contextmenu/index.js +0 -128
  110. package/presets/Wind/datatable/index.js +0 -1330
  111. package/presets/Wind/dataview/index.js +0 -40
  112. package/presets/Wind/deferred/index.js +0 -3
  113. package/presets/Wind/dialog/index.js +0 -251
  114. package/presets/Wind/divider/index.js +0 -72
  115. package/presets/Wind/dock/index.js +0 -97
  116. package/presets/Wind/dropdown/index.js +0 -287
  117. package/presets/Wind/fieldset/index.js +0 -99
  118. package/presets/Wind/fileupload/index.js +0 -173
  119. package/presets/Wind/floatlabel/index.js +0 -26
  120. package/presets/Wind/galleria/index.js +0 -351
  121. package/presets/Wind/global.js +0 -77
  122. package/presets/Wind/iconfield/index.js +0 -22
  123. package/presets/Wind/image/index.js +0 -206
  124. package/presets/Wind/index.js +0 -181
  125. package/presets/Wind/inlinemessage/index.js +0 -29
  126. package/presets/Wind/inplace/index.js +0 -30
  127. package/presets/Wind/inputgroup/index.js +0 -5
  128. package/presets/Wind/inputgroupaddon/index.js +0 -28
  129. package/presets/Wind/inputmask/index.js +0 -34
  130. package/presets/Wind/inputnumber/index.js +0 -244
  131. package/presets/Wind/inputotp/index.js +0 -72
  132. package/presets/Wind/inputswitch/index.js +0 -106
  133. package/presets/Wind/inputtext/index.js +0 -61
  134. package/presets/Wind/knob/index.js +0 -47
  135. package/presets/Wind/listbox/index.js +0 -159
  136. package/presets/Wind/megamenu/index.js +0 -218
  137. package/presets/Wind/menu/index.js +0 -111
  138. package/presets/Wind/menubar/index.js +0 -188
  139. package/presets/Wind/message/index.js +0 -87
  140. package/presets/Wind/metergroup/index.js +0 -110
  141. package/presets/Wind/multiselect/index.js +0 -619
  142. package/presets/Wind/orderlist/index.js +0 -275
  143. package/presets/Wind/organizationchart/index.js +0 -143
  144. package/presets/Wind/overlaypanel/index.js +0 -42
  145. package/presets/Wind/paginator/index.js +0 -596
  146. package/presets/Wind/panel/index.js +0 -95
  147. package/presets/Wind/panelmenu/index.js +0 -136
  148. package/presets/Wind/password/index.js +0 -141
  149. package/presets/Wind/picklist/index.js +0 -684
  150. package/presets/Wind/progressbar/index.js +0 -68
  151. package/presets/Wind/progressspinner/index.js +0 -51
  152. package/presets/Wind/radiobutton/index.js +0 -92
  153. package/presets/Wind/rating/index.js +0 -86
  154. package/presets/Wind/ripple/index.js +0 -6
  155. package/presets/Wind/scrollpanel/index.js +0 -77
  156. package/presets/Wind/scrolltop/index.js +0 -45
  157. package/presets/Wind/selectbutton/index.js +0 -58
  158. package/presets/Wind/sidebar/index.js +0 -165
  159. package/presets/Wind/skeleton/index.js +0 -19
  160. package/presets/Wind/slider/index.js +0 -135
  161. package/presets/Wind/speeddial/index.js +0 -536
  162. package/presets/Wind/splitbutton/index.js +0 -1078
  163. package/presets/Wind/splitter/index.js +0 -64
  164. package/presets/Wind/stepper/index.js +0 -180
  165. package/presets/Wind/steps/index.js +0 -132
  166. package/presets/Wind/tabmenu/index.js +0 -84
  167. package/presets/Wind/tabview/index.js +0 -168
  168. package/presets/Wind/tag/index.js +0 -37
  169. package/presets/Wind/terminal/index.js +0 -60
  170. package/presets/Wind/textarea/index.js +0 -40
  171. package/presets/Wind/tieredmenu/index.js +0 -121
  172. package/presets/Wind/timeline/index.js +0 -107
  173. package/presets/Wind/toast/index.js +0 -111
  174. package/presets/Wind/togglebutton/index.js +0 -91
  175. package/presets/Wind/toolbar/index.js +0 -30
  176. package/presets/Wind/tooltip/index.js +0 -43
  177. package/presets/Wind/tree/index.js +0 -300
  178. package/presets/Wind/treeselect/index.js +0 -404
  179. package/presets/Wind/treetable/index.js +0 -505
  180. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,509 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "relative",
5
- {
6
- "flex flex-col h-full": props.scrollHeight === "flex",
7
- },
8
- ],
9
- }),
10
- loadingoverlay: {
11
- class: [
12
- // Position
13
- "absolute",
14
- "top-0 left-0",
15
- "z-20",
16
-
17
- // Flex & Alignment
18
- "flex items-center justify-center",
19
-
20
- // Size
21
- "w-full h-full",
22
-
23
- // Color
24
- "bg-surface-100/40 dark:bg-surface-800/40",
25
-
26
- // Transition
27
- "transition duration-200",
28
- ],
29
- },
30
- loadingicon: {
31
- class: "w-8 h-8 animate-spin",
32
- },
33
- wrapper: ({ props }) => ({
34
- class: [
35
- // Overflow
36
- {
37
- "relative overflow-auto": props.scrollable,
38
- "overflow-x-auto": props.resizableColumns,
39
- },
40
- ],
41
- }),
42
- header: ({ props }) => ({
43
- class: [
44
- "font-bold",
45
-
46
- // Shape
47
- props.showGridlines
48
- ? "border-x border-t border-b-0"
49
- : "border-y border-x-0",
50
-
51
- // Spacing
52
- "p-4",
53
-
54
- // Color
55
- "bg-surface-50 dark:bg-surface-800",
56
- "border-surface-200 dark:border-surface-700",
57
- "text-surface-700 dark:text-white/80",
58
- ],
59
- }),
60
- footer: {
61
- class: [
62
- // Background, Border & Text
63
- "bg-slate-50 text-slate-700",
64
- "border border-x-0 border-t-0 border-surface-50",
65
- // Padding & Font
66
- "p-4 font-bold",
67
- // Dark Mode
68
- "dark:bg-surface-900 dark:text-white/70 dark:border-surface-700",
69
- ],
70
- },
71
- table: {
72
- class: [
73
- // Table & Width
74
- "border-collapse table-fixed w-full ",
75
- ],
76
- },
77
- thead: ({ props }) => ({
78
- class: [
79
- // Position & Z-index
80
- {
81
- "top-0 z-40 sticky": props.scrollable,
82
- },
83
- ],
84
- }),
85
- tbody: ({ props }) => ({
86
- class: [
87
- // Block Display
88
- {
89
- block: props.scrollable,
90
- },
91
- ],
92
- }),
93
- tfoot: ({ props }) => ({
94
- class: [
95
- // Block Display
96
- {
97
- block: props.scrollable,
98
- },
99
- ],
100
- }),
101
- headerrow: ({ props }) => ({
102
- class: [
103
- // Flexbox & Width
104
- {
105
- "flex flex-nowrap w-full": props.scrollable,
106
- },
107
- ],
108
- }),
109
- row: ({ context, props }) => ({
110
- class: [
111
- // Flex
112
- { "flex flex-nowrap w-full": context.scrollable },
113
-
114
- // Color
115
- "dark:text-white/80",
116
- {
117
- "bg-primary-50 text-primary-700 dark:bg-primary-400/30":
118
- context.selected,
119
- },
120
- {
121
- "bg-surface-0 text-surface-600 dark:bg-surface-800": !context.selected,
122
- },
123
-
124
- // Hover & Flexbox
125
- {
126
- "hover:bg-surface-300/20 hover:text-surface-600":
127
- context.selectable && !context.selected,
128
- },
129
- "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50",
130
-
131
- // Transition
132
- {
133
- "transition duration-200":
134
- (props.selectionMode && !context.selected) || props.rowHover,
135
- },
136
- ],
137
- }),
138
- headercell: ({ context, props }) => ({
139
- class: [
140
- "font-bold",
141
-
142
- // Position
143
- {
144
- "sticky z-40":
145
- context.scrollable &&
146
- context.scrollDirection === "both" &&
147
- context.frozen,
148
- },
149
-
150
- // Flex & Alignment
151
- {
152
- "flex flex-1 items-center": context.scrollable,
153
- "flex-initial shrink-0":
154
- context.scrollable &&
155
- context.scrollDirection === "both" &&
156
- !context.frozen,
157
- },
158
- "text-left",
159
-
160
- // Shape
161
- { "first:border-l border-y border-r": context?.showGridlines },
162
- "border-0 border-b border-solid",
163
-
164
- // Spacing
165
- context?.size === "small"
166
- ? "p-2"
167
- : context?.size === "large"
168
- ? "p-5"
169
- : "p-4",
170
-
171
- // Color
172
- (props.sortable === "" || props.sortable) && context.sorted
173
- ? "bg-primary-50 text-primary-700"
174
- : "bg-surface-50 text-surface-700",
175
- (props.sortable === "" || props.sortable) && context.sorted
176
- ? "dark:text-white dark:bg-primary-400/30"
177
- : "dark:text-white/80 dark:bg-surface-800",
178
- "border-surface-200 dark:border-surface-700",
179
-
180
- // States
181
- {
182
- "hover:bg-surface-100 dark:hover:bg-surface-400/30":
183
- (props.sortable === "" || props.sortable) && !context?.sorted,
184
- },
185
- "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",
186
-
187
- // Transition
188
- { "transition duration-200": props.sortable === "" || props.sortable },
189
-
190
- // Misc
191
- {
192
- "overflow-hidden relative bg-clip-padding":
193
- context.resizable && !context.frozen,
194
- },
195
- ],
196
- }),
197
- column: {
198
- headercell: ({ context, props }) => ({
199
- class: [
200
- "font-bold",
201
-
202
- // Position
203
- {
204
- "sticky z-40":
205
- context.scrollable &&
206
- context.scrollDirection === "both" &&
207
- context.frozen,
208
- },
209
-
210
- // Flex & Alignment
211
- {
212
- "flex flex-1 items-center": context.scrollable,
213
- "flex-initial shrink-0":
214
- context.scrollable &&
215
- context.scrollDirection === "both" &&
216
- !context.frozen,
217
- },
218
- "text-left",
219
-
220
- // Shape
221
- { "first:border-l border-y border-r": context?.showGridlines },
222
- "border-0 border-b border-solid",
223
-
224
- // Spacing
225
- context?.size === "small"
226
- ? "p-2"
227
- : context?.size === "large"
228
- ? "p-5"
229
- : "p-4",
230
-
231
- // Color
232
- (props.sortable === "" || props.sortable) && context.sorted
233
- ? "bg-primary-50 text-primary-700"
234
- : "bg-surface-50 text-surface-700",
235
- (props.sortable === "" || props.sortable) && context.sorted
236
- ? "dark:text-white dark:bg-primary-400/30"
237
- : "dark:text-white/80 dark:bg-surface-800",
238
- "border-surface-200 dark:border-surface-700",
239
-
240
- // States
241
- {
242
- "hover:bg-surface-100 dark:hover:bg-surface-400/30":
243
- (props.sortable === "" || props.sortable) && !context?.sorted,
244
- },
245
- "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",
246
-
247
- // Transition
248
- { "transition duration-200": props.sortable === "" || props.sortable },
249
-
250
- // Misc
251
- {
252
- "overflow-hidden relative bg-clip-padding":
253
- context.resizable && !context.frozen,
254
- },
255
- ],
256
- }),
257
- bodycell: ({ context }) => ({
258
- class: [
259
- // Position
260
- {
261
- sticky:
262
- context.scrollable &&
263
- context.scrollDirection === "both" &&
264
- context.frozen,
265
- },
266
-
267
- // Flex & Alignment
268
- {
269
- "flex flex-1 items-center": context.scrollable,
270
- "flex-initial shrink-0":
271
- context.scrollable &&
272
- context.scrollDirection === "both" &&
273
- !context.frozen,
274
- },
275
- "text-left",
276
-
277
- // Shape
278
- "border-0 border-b border-solid",
279
- "border-surface-200 dark:border-surface-700",
280
- {
281
- "border-x-0 border-l-0": !context.showGridlines,
282
- },
283
- { "first:border-l border-r border-b": context?.showGridlines },
284
-
285
- // Color
286
- "bg-surface-0 dark:bg-surface-800",
287
-
288
- // Spacing
289
- context?.size === "small"
290
- ? "p-2"
291
- : context?.size === "large"
292
- ? "p-5"
293
- : "p-4",
294
-
295
- // Misc
296
- "dark:border-surface-700",
297
- {
298
- "cursor-pointer": context.selectable,
299
- sticky:
300
- context.scrollable &&
301
- context.scrollDirection === "both" &&
302
- context.frozen,
303
- "border-x-0 border-l-0": !context.showGridlines,
304
- },
305
- ],
306
- }),
307
- rowtoggler: {
308
- class: [
309
- "relative",
310
-
311
- // Flex & Alignment
312
- "inline-flex items-center justify-center",
313
- "text-left align-middle",
314
-
315
- // Spacing
316
- "m-0 mr-2 p-0",
317
-
318
- // Size
319
- "w-8 h-8",
320
-
321
- // Shape
322
- "border-0 rounded-full",
323
-
324
- // Color
325
- "text-surface-500 dark:text-white/70",
326
- "bg-transparent",
327
-
328
- // States
329
- "hover:bg-surface-50 dark:hover:bg-surface-700",
330
- "focus-visible:outline-none focus-visible:outline-offset-0",
331
- "focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
332
-
333
- // Transition
334
- "transition duration-200",
335
-
336
- // Misc
337
- "overflow-hidden",
338
- "cursor-pointer select-none",
339
- ],
340
- },
341
- sorticon: ({ context }) => ({
342
- class: [
343
- "ml-2 inline-block",
344
- context.sorted
345
- ? "fill-primary-700 dark:fill-white/80"
346
- : "fill-surface-700 dark:fill-white/70",
347
- ],
348
- }),
349
- sortbadge: {
350
- class: [
351
- // Flex & Alignment
352
- "inline-flex items-center justify-center align-middle",
353
-
354
- // Shape
355
- "rounded-full",
356
-
357
- // Size
358
- "w-[1.143rem] leading-[1.143rem]",
359
-
360
- // Spacing
361
- "ml-2",
362
-
363
- // Color
364
- "text-primary-700 dark:text-white",
365
- "bg-primary-50 dark:bg-primary-400/30",
366
- ],
367
- },
368
- columnresizer: {
369
- class: [
370
- "block",
371
-
372
- // Position
373
- "absolute top-0 right-0",
374
-
375
- // Sizing
376
- "w-2 h-full",
377
-
378
- // Spacing
379
- "m-0 p-0",
380
-
381
- // Color
382
- "border border-transparent",
383
-
384
- // Misc
385
- "cursor-col-resize",
386
- ],
387
- },
388
- rowCheckbox: ({ props, context, instance }) => ({
389
- root: {
390
- class: [
391
- "relative",
392
-
393
- // Alignment
394
- "inline-flex",
395
- "align-middle",
396
-
397
- // Size
398
- "w-6",
399
- "h-6",
400
-
401
- // Spacing
402
- "mr-2",
403
-
404
- // Misc
405
- "cursor-pointer",
406
- "select-none",
407
- ],
408
- },
409
- box: {
410
- class: [
411
- // Alignment
412
- "flex",
413
- "items-center",
414
- "justify-center",
415
-
416
- // Size
417
- "w-6",
418
- "h-6",
419
-
420
- // Shape
421
- "rounded-md",
422
- "border-2",
423
-
424
- // Colors
425
- {
426
- "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
427
- !context.checked,
428
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
429
- context.checked,
430
- },
431
-
432
- // States
433
- {
434
- "peer-hover:border-primary-500 dark:peer-hover:border-primary-400":
435
- !props.disabled && !context.checked,
436
- "peer-hover:bg-primary-700 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300":
437
- !props.disabled && context.checked,
438
- "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":
439
- !props.disabled,
440
- "cursor-default opacity-60": props.disabled,
441
- },
442
-
443
- // Transitions
444
- "transition-colors",
445
- "duration-200",
446
- ],
447
- },
448
- input: {
449
- class: [
450
- "peer",
451
-
452
- // Size
453
- "w-full ",
454
- "h-full",
455
-
456
- // Position
457
- "absolute",
458
- "top-0 left-0",
459
- "z-10",
460
-
461
- // Spacing
462
- "p-0",
463
- "m-0",
464
-
465
- // Shape
466
- "opacity-0",
467
- "rounded-md",
468
- "outline-none",
469
- "border-2 border-surface-200 dark:border-surface-700",
470
-
471
- // Misc
472
- "appearance-none",
473
- "cursor-pointer",
474
- ],
475
- },
476
- icon: {
477
- class: [
478
- // Font
479
- "text-base leading-none",
480
-
481
- // Size
482
- "w-4",
483
- "h-4",
484
-
485
- // Colors
486
- {
487
- "text-white dark:text-surface-900": !instance.partialChecked,
488
- "text-gray dark:text-white": instance.partialChecked,
489
- },
490
-
491
- // Transitions
492
- "transition-all",
493
- "duration-200",
494
- ],
495
- },
496
- }),
497
-
498
- transition: {
499
- enterFromClass: "opacity-0 scale-y-[0.8]",
500
- enterActiveClass:
501
- "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
502
- leaveActiveClass: "transition-opacity duration-100 ease-linear",
503
- leaveToClass: "opacity-0",
504
- },
505
- },
506
- resizehelper: {
507
- class: "absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400",
508
- },
509
- };
@@ -1,112 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- "cursor-pointer inline-flex relative select-none align-bottom",
5
- "w-6 h-6",
6
- ],
7
- },
8
- input: {
9
- class: [
10
- "peer",
11
-
12
- // Size
13
- "w-full ",
14
- "h-full",
15
-
16
- // Position
17
- "absolute",
18
- "top-0 left-0",
19
- "z-10",
20
-
21
- // Spacing
22
- "p-0",
23
- "m-0",
24
-
25
- // Shape
26
- "opacity-0",
27
- "rounded-md",
28
- "outline-none",
29
- "border-2 border-surface-200 dark:border-surface-700",
30
-
31
- // Misc
32
- "appearance-none",
33
- "cursor-pointer",
34
- ],
35
- },
36
- box: ({ props, context }) => ({
37
- class: [
38
- // Alignment
39
- "flex",
40
- "items-center",
41
- "justify-center",
42
-
43
- // Size
44
- "w-6",
45
- "h-6",
46
-
47
- // Shape
48
- "rounded-md",
49
- "border-2",
50
-
51
- // Colors
52
- {
53
- "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
54
- !context.active && !props.invalid,
55
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
56
- context.active,
57
- },
58
-
59
- // Invalid State
60
- { "border-red-500 dark:border-red-400": props.invalid },
61
-
62
- // States
63
- {
64
- "peer-hover:border-primary-500 dark:peer-hover:border-primary-400":
65
- !props.disabled && !context.active && !props.invalid,
66
- "peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300 peer-hover:border-primary-700 dark:peer-hover:border-primary-300":
67
- !props.disabled && context.active,
68
- "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":
69
- !props.disabled,
70
- "cursor-default opacity-60": props.disabled,
71
- },
72
-
73
- // Transitions
74
- "transition-colors",
75
- "duration-200",
76
- ],
77
- }),
78
- checkicon: {
79
- class: [
80
- // Font
81
- "text-base leading-none",
82
-
83
- // Size
84
- "w-4",
85
- "h-4",
86
-
87
- // Colors
88
- "text-white dark:text-surface-900",
89
-
90
- // Transitions
91
- "transition-all",
92
- "duration-200",
93
- ],
94
- },
95
- uncheckicon: {
96
- class: [
97
- // Font
98
- "text-base leading-none",
99
-
100
- // Size
101
- "w-4",
102
- "h-4",
103
-
104
- // Colors
105
- "text-white dark:text-surface-900",
106
-
107
- // Transitions
108
- "transition-all",
109
- "duration-200",
110
- ],
111
- },
112
- };
@@ -1,75 +0,0 @@
1
- export default {
2
- accordiontab: {
3
- header: ({ props }) => ({
4
- class: [
5
- // Sizing
6
- "pt-6 pb-0",
7
- "mt-6",
8
-
9
- // Shape
10
- "border-x-0 border-b-0",
11
-
12
- // Color
13
- "border border-surface-200 dark:border-surface-700",
14
-
15
- // State
16
- {
17
- "select-none pointer-events-none cursor-default opacity-60":
18
- props?.disabled,
19
- },
20
- ],
21
- }),
22
- headerAction: ({ context }) => ({
23
- class: [
24
- //Font
25
- "font-semibold",
26
- "leading-7",
27
-
28
- // Alignments
29
- "flex items-center justify-between flex-row-reverse",
30
- "relative",
31
-
32
- // Shape
33
- "rounded-md",
34
-
35
- // Color
36
- "bg-transparent",
37
- "text-surface-900 dark:text-surface-0",
38
-
39
- // States
40
- "focus:outline-none focus:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-600 ring-inset dark:focus-visible:ring-primary-500", // Focus
41
-
42
- // Misc
43
- "cursor-pointer no-underline select-none",
44
- ],
45
- }),
46
- headerIcon: {
47
- class: "inline-block ml-2",
48
- },
49
- headerTitle: {
50
- class: "leading-7",
51
- },
52
- content: {
53
- class: [
54
- // Font
55
- "leading-7",
56
-
57
- // Spacing
58
- "pr-12 pt-2",
59
-
60
- // Color
61
- "text-surface-600 dark:text-surface-0/70",
62
- ],
63
- },
64
- transition: {
65
- enterFromClass: "max-h-0",
66
- enterActiveClass:
67
- "overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]",
68
- enterToClass: "max-h-[1000px]",
69
- leaveFromClass: "max-h-[1000px]",
70
- leaveActiveClass:
71
- "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
72
- leaveToClass: "max-h-0",
73
- },
74
- },
75
- };