@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,596 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Flex & Alignment
5
- "flex items-center justify-center flex-wrap",
6
-
7
- // Spacing
8
- "px-4",
9
-
10
- // Shape
11
- "border-t",
12
-
13
- // Color
14
- "bg-surface-0 dark:bg-surface-800",
15
- "text-surface-500 dark:text-white/60",
16
- "border-surface-200 dark:border-surface-700",
17
- ],
18
- },
19
- paginatorwrapper: {
20
- class: "-mt-px",
21
- },
22
- firstpagebutton: ({ context }) => ({
23
- class: [
24
- "relative",
25
-
26
- // Font
27
- "text-sm font-medium",
28
-
29
- // Flex & Alignment
30
- "inline-flex items-center justify-center",
31
-
32
- // Shape
33
- "border-t-2 border-transparent",
34
-
35
- // Size
36
- "min-w-[3rem] h-12 -mt-px",
37
-
38
- // Color
39
- "text-surface-500 dark:text-white/60",
40
-
41
- // State
42
- {
43
- "hover:border-surface-300 dark:hover:border-surface-200/30":
44
- !context.disabled,
45
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400":
46
- !context.disabled,
47
- },
48
-
49
- // Transition
50
- "transition duration-200",
51
-
52
- // Misc
53
- "user-none overflow-hidden",
54
- { "cursor-default pointer-events-none opacity-60": context.disabled },
55
- ],
56
- }),
57
- previouspagebutton: ({ context }) => ({
58
- class: [
59
- "relative",
60
-
61
- // Font
62
- "text-sm font-medium",
63
-
64
- // Flex & Alignment
65
- "inline-flex items-center justify-center",
66
-
67
- // Shape
68
- "border-t-2 border-transparent",
69
-
70
- // Size
71
- "min-w-[3rem] h-12 -mt-px",
72
-
73
- // Color
74
- "text-surface-500 dark:text-white/60",
75
-
76
- // State
77
- {
78
- "hover:border-surface-300 dark:hover:border-surface-200/30":
79
- !context.disabled,
80
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400":
81
- !context.disabled,
82
- },
83
-
84
- // Transition
85
- "transition duration-200",
86
-
87
- // Misc
88
- "user-none overflow-hidden",
89
- { "cursor-default pointer-events-none opacity-60": context.disabled },
90
- ],
91
- }),
92
- nextpagebutton: ({ context }) => ({
93
- class: [
94
- "relative",
95
-
96
- // Font
97
- "text-sm font-medium",
98
-
99
- // Flex & Alignment
100
- "inline-flex items-center justify-center",
101
-
102
- // Shape
103
- "border-t-2 border-transparent",
104
-
105
- // Size
106
- "min-w-[3rem] h-12 -mt-px",
107
-
108
- // Color
109
- "text-surface-500 dark:text-white/60",
110
-
111
- // State
112
- {
113
- "hover:border-surface-300 dark:hover:border-surface-200/30":
114
- !context.disabled,
115
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400":
116
- !context.disabled,
117
- },
118
-
119
- // Transition
120
- "transition duration-200",
121
-
122
- // Misc
123
- "user-none overflow-hidden",
124
- { "cursor-default pointer-events-none opacity-60": context.disabled },
125
- ],
126
- }),
127
- lastpagebutton: ({ context }) => ({
128
- class: [
129
- "relative",
130
-
131
- // Font
132
- "text-sm font-medium",
133
-
134
- // Flex & Alignment
135
- "inline-flex items-center justify-center",
136
-
137
- // Shape
138
- "border-t-2 border-transparent",
139
-
140
- // Size
141
- "min-w-[3rem] h-12 -mt-px",
142
-
143
- // Color
144
- "text-surface-500 dark:text-white/60",
145
-
146
- // State
147
- {
148
- "hover:border-surface-300 dark:hover:border-surface-200/30":
149
- !context.disabled,
150
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400":
151
- !context.disabled,
152
- },
153
-
154
- // Transition
155
- "transition duration-200",
156
-
157
- // Misc
158
- "user-none overflow-hidden",
159
- { "cursor-default pointer-events-none opacity-60": context.disabled },
160
- ],
161
- }),
162
- pagebutton: ({ context }) => ({
163
- class: [
164
- "relative",
165
-
166
- // Font
167
- "text-sm font-medium",
168
-
169
- // Flex & Alignment
170
- "inline-flex items-center justify-center",
171
-
172
- // Shape
173
- "border-t-2",
174
-
175
- // Size
176
- "min-w-[3rem] h-12 -mt-px",
177
-
178
- // Color
179
- {
180
- "text-surface-500 dark:text-white/60 border-transparent":
181
- !context.active,
182
- "border-primary-500 dark:border-primary-400 text-primary-500 dark:text-surface-0":
183
- context.active,
184
- },
185
-
186
- // State
187
- {
188
- "hover:border-surface-300 dark:hover:border-surface-200/30":
189
- !context.disabled && !context.active,
190
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400":
191
- !context.disabled,
192
- },
193
-
194
- // Transition
195
- "transition duration-200",
196
-
197
- // Misc
198
- "user-none overflow-hidden",
199
- { "cursor-default pointer-events-none opacity-60": context.disabled },
200
- ],
201
- }),
202
- rowperpagedropdown: {
203
- root: ({ props, state }) => ({
204
- class: [
205
- // Display and Position
206
- "inline-flex",
207
- "relative",
208
-
209
- // Shape
210
- "h-8",
211
- "rounded-md",
212
-
213
- // Spacing
214
- "mx-2",
215
-
216
- // Color and Background
217
- "bg-transparent",
218
-
219
- // Transitions
220
- "transition-all",
221
- "duration-200",
222
-
223
- // States
224
- {
225
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 dark:focus-visible:ring-primary-500":
226
- !state.focused,
227
- },
228
-
229
- // Misc
230
- "cursor-pointer",
231
- "select-none",
232
- {
233
- "opacity-60": props.disabled,
234
- "pointer-events-none": props.disabled,
235
- "cursor-default": props.disabled,
236
- },
237
- ],
238
- }),
239
- input: {
240
- class: [
241
- //Font
242
- "font-sans",
243
- "leading-6",
244
- "sm:text-sm",
245
-
246
- // Display
247
- "block",
248
- "flex-auto",
249
- "flex items-center",
250
-
251
- // Color and Background
252
- "bg-transparent",
253
- "border-0",
254
- "text-surface-800 dark:text-white/80",
255
-
256
- // Sizing and Spacing
257
- "w-[1%]",
258
- "py-1.5 px-3 pr-0",
259
-
260
- //Shape
261
- "rounded-none",
262
-
263
- // Transitions
264
- "transition",
265
- "duration-200",
266
-
267
- // States
268
- "focus-visible:outline-none focus-visible:shadow-none",
269
-
270
- // Misc
271
- "relative",
272
- "cursor-pointer",
273
- "overflow-hidden overflow-ellipsis",
274
- "whitespace-nowrap",
275
- "appearance-none",
276
- ],
277
- },
278
- trigger: {
279
- class: [
280
- //Font
281
- "sm:text-sm",
282
-
283
- // Flexbox
284
- "flex items-center justify-center",
285
- "shrink-0",
286
-
287
- // Color and Background
288
- "bg-transparent",
289
- "text-surface-500",
290
-
291
- // Size
292
- "w-12",
293
- "h-8",
294
-
295
- // Shape
296
- "rounded-tr-md",
297
- "rounded-br-md",
298
- ],
299
- },
300
- dropdownicon: {
301
- class: "",
302
- },
303
- panel: {
304
- class: [
305
- // Position
306
- "absolute top-0 left-0",
307
- "mt-1",
308
-
309
- // Shape
310
- "border-0",
311
- "rounded-md",
312
- "shadow-md",
313
-
314
- // Color
315
- "bg-surface-0 dark:bg-surface-800",
316
- "text-surface-800 dark:text-white/80",
317
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
318
- ],
319
- },
320
- wrapper: {
321
- class: [
322
- // Sizing
323
- "max-h-[15rem]",
324
-
325
- // Misc
326
- "overflow-auto",
327
- ],
328
- },
329
- list: {
330
- class: "py-1 list-none m-0",
331
- },
332
- item: ({ context }) => ({
333
- class: [
334
- // Font
335
- "sm:text-sm",
336
- "leading-none",
337
- { "font-normal": !context.selected, "font-bold": context.selected },
338
-
339
- // Position
340
- "relative",
341
-
342
- // Shape
343
- "border-0",
344
- "rounded-none",
345
-
346
- // Spacing
347
- "m-0",
348
- "py-2 px-4",
349
-
350
- // Color
351
- {
352
- "text-surface-700 dark:text-white/80":
353
- !context.focused && !context.selected,
354
- },
355
- {
356
- "bg-primary-500 dark:bg-primary-400 text-white dark:text-surface-700":
357
- context.focused && context.selected,
358
- },
359
- {
360
- "bg-transparent text-surface-700 dark:text-white/80":
361
- !context.focused && context.selected,
362
- },
363
-
364
- //States
365
- "hover:bg-primary-500 dark:hover:bg-primary-400 hover:text-white dark:hover:text-surface-700",
366
-
367
- // Misc
368
- "cursor-pointer",
369
- "overflow-hidden",
370
- "whitespace-nowrap",
371
- ],
372
- }),
373
- },
374
- jumptopageinput: {
375
- root: {
376
- class: "inline-flex mx-2",
377
- },
378
- input: {
379
- root: {
380
- class: [
381
- "relative",
382
-
383
- //Font
384
- "font-sans",
385
- "leading-6",
386
- "sm:text-sm",
387
-
388
- // Display
389
- "block",
390
- "flex-auto",
391
-
392
- // Color and Background
393
- "bg-transparent",
394
- "border-0",
395
- "text-surface-800 dark:text-white/80",
396
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
397
- // Sizing and Spacing
398
- "w-[1%] max-w-[3rem]",
399
- "py-1.5 px-3",
400
-
401
- //Shape
402
- "rounded-md",
403
-
404
- // Transitions
405
- "transition",
406
- "duration-200",
407
-
408
- // States
409
- "hover:border-primary-500 dark:hover:border-primary-400",
410
- "focus-visible:outline-none focus-visible:shadow-none",
411
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-600 dark:focus-visible:ring-primary-500",
412
- // Misc
413
- "cursor-pointer",
414
- "overflow-hidden overflow-ellipsis",
415
- "whitespace-nowrap",
416
- "appearance-none",
417
- ],
418
- },
419
- },
420
- },
421
- jumptopagedropdown: {
422
- root: ({ props, state }) => ({
423
- class: [
424
- // Display and Position
425
- "inline-flex",
426
- "relative",
427
-
428
- // Shape
429
- "h-8",
430
- "rounded-md",
431
-
432
- // Spacing
433
- "mx-2",
434
-
435
- // Color and Background
436
- "bg-transparent",
437
-
438
- // Transitions
439
- "transition-all",
440
- "duration-200",
441
-
442
- // States
443
- {
444
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 dark:focus-visible:ring-primary-500":
445
- !state.focused,
446
- },
447
-
448
- // Misc
449
- "cursor-pointer",
450
- "select-none",
451
- {
452
- "opacity-60": props.disabled,
453
- "pointer-events-none": props.disabled,
454
- "cursor-default": props.disabled,
455
- },
456
- ],
457
- }),
458
- input: {
459
- class: [
460
- //Font
461
- "font-sans",
462
- "leading-6",
463
- "sm:text-sm",
464
-
465
- // Display
466
- "block",
467
- "flex-auto",
468
- "flex items-center",
469
-
470
- // Color and Background
471
- "bg-transparent",
472
- "border-0",
473
- "text-surface-800 dark:text-white/80",
474
-
475
- // Sizing and Spacing
476
- "w-[1%]",
477
- "py-1.5 px-3 pr-0",
478
-
479
- //Shape
480
- "rounded-none",
481
-
482
- // Transitions
483
- "transition",
484
- "duration-200",
485
-
486
- // States
487
- "focus-visible:outline-none focus-visible:shadow-none",
488
-
489
- // Misc
490
- "relative",
491
- "cursor-pointer",
492
- "overflow-hidden overflow-ellipsis",
493
- "whitespace-nowrap",
494
- "appearance-none",
495
- ],
496
- },
497
- trigger: {
498
- class: [
499
- //Font
500
- "sm:text-sm",
501
-
502
- // Flexbox
503
- "flex items-center justify-center",
504
- "shrink-0",
505
-
506
- // Color and Background
507
- "bg-transparent",
508
- "text-surface-500",
509
-
510
- // Size
511
- "w-12",
512
- "h-8",
513
-
514
- // Shape
515
- "rounded-tr-md",
516
- "rounded-br-md",
517
- ],
518
- },
519
- panel: {
520
- class: [
521
- // Position
522
- "absolute top-0 left-0",
523
- "mt-1",
524
-
525
- // Shape
526
- "border-0",
527
- "rounded-md",
528
- "shadow-md",
529
-
530
- // Color
531
- "bg-surface-0 dark:bg-surface-800",
532
- "text-surface-800 dark:text-white/80",
533
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
534
- ],
535
- },
536
- wrapper: {
537
- class: [
538
- // Sizing
539
- "max-h-[15rem]",
540
-
541
- // Misc
542
- "overflow-auto",
543
- ],
544
- },
545
- list: {
546
- class: "py-1 list-none m-0",
547
- },
548
- item: ({ context }) => ({
549
- class: [
550
- // Font
551
- "sm:text-sm",
552
- "leading-none",
553
- { "font-normal": !context.selected, "font-bold": context.selected },
554
-
555
- // Position
556
- "relative",
557
-
558
- // Shape
559
- "border-0",
560
- "rounded-none",
561
-
562
- // Spacing
563
- "m-0",
564
- "py-2 px-4",
565
-
566
- // Color
567
- {
568
- "text-surface-700 dark:text-white/80":
569
- !context.focused && !context.selected,
570
- },
571
- {
572
- "bg-primary-500 dark:bg-primary-400 text-white dark:text-surface-700":
573
- context.focused && context.selected,
574
- },
575
- {
576
- "bg-transparent text-surface-700 dark:text-white/80":
577
- !context.focused && context.selected,
578
- },
579
-
580
- //States
581
- "hover:bg-primary-500 dark:hover:bg-primary-400 hover:text-white dark:hover:text-surface-700",
582
-
583
- // Misc
584
- "cursor-pointer",
585
- "overflow-hidden",
586
- "whitespace-nowrap",
587
- ],
588
- }),
589
- },
590
- start: {
591
- class: "mr-auto",
592
- },
593
- end: {
594
- class: "ml-auto",
595
- },
596
- };
@@ -1,95 +0,0 @@
1
- export default {
2
- root: {
3
- class: "shadow-md rounded-lg",
4
- },
5
- header: ({ props }) => ({
6
- class: [
7
- // Alignments
8
- "flex items-center justify-between",
9
-
10
- // Colors
11
- "text-surface-700 dark:text-surface-0/80",
12
- "bg-surface-0 dark:bg-surface-900",
13
- "border-b border-surface-200 dark:border-surface-800",
14
-
15
- //Shape
16
- "rounded-tl-lg rounded-tr-lg",
17
-
18
- // Conditional Spacing
19
- {
20
- "px-5 md:px-6 py-5": !props.toggleable,
21
- "py-3 px-5 md:px-6": props.toggleable,
22
- },
23
- ],
24
- }),
25
- title: {
26
- class: "leading-none font-medium",
27
- },
28
- toggler: {
29
- class: [
30
- // Alignments
31
- "inline-flex items-center justify-center",
32
-
33
- // Sized
34
- "w-8 h-8",
35
-
36
- //Shape
37
- "border-0 rounded-full",
38
-
39
- //Color
40
- "bg-transparent",
41
- "text-surface-600 dark:text-surface-100/80",
42
-
43
- // States
44
- "hover:text-surface-900 dark:hover:text-surface-0/80",
45
- "hover:bg-surface-50 dark:hover:bg-surface-800/50",
46
- "focus:outline-none focus:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-inset dark:focus-visible:ring-primary-500",
47
-
48
- // Transitions
49
- "transition duration-200 ease-in-out",
50
-
51
- // Misc
52
- "overflow-hidden relative no-underline",
53
- ],
54
- },
55
- togglerIcon: {
56
- class: "inline-block",
57
- },
58
- content: {
59
- class: [
60
- // Spacing
61
- "py-6 px-5 md:px-6",
62
-
63
- // Shape
64
- "last:rounded-br-lg last:rounded-bl-lg",
65
-
66
- //Color
67
- "bg-surface-0 dark:bg-surface-900",
68
- "text-surface-700 dark:text-surface-0/80",
69
- ],
70
- },
71
- footer: {
72
- class: [
73
- // Spacing
74
- "py-6 px-5 md:px-6",
75
-
76
- //Shape
77
- "rounded-bl-lg rounded-br-lg",
78
-
79
- // Color
80
- "bg-surface-0 dark:bg-surface-900",
81
- "text-surface-600 dark:text-surface-0/70",
82
- "border-t border-surface-200 dark:border-surface-800",
83
- ],
84
- },
85
- transition: {
86
- enterFromClass: "max-h-0",
87
- enterActiveClass:
88
- "overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]",
89
- enterToClass: "max-h-[1000px]",
90
- leaveFromClass: "max-h-[1000px]",
91
- leaveActiveClass:
92
- "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
93
- leaveToClass: "max-h-0",
94
- },
95
- };