@fy-/fws-vue 0.3.0 → 0.3.2

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