@fy-/fws-vue 0.3.0 → 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 (179) hide show
  1. package/package.json +1 -11
  2. package/presets/Lara/accordion/index.js +0 -86
  3. package/presets/Lara/autocomplete/index.js +0 -284
  4. package/presets/Lara/avatar/index.js +0 -46
  5. package/presets/Lara/badge/index.js +0 -44
  6. package/presets/Lara/badgedirective/index.js +0 -49
  7. package/presets/Lara/blockui/index.js +0 -8
  8. package/presets/Lara/breadcrumb/index.js +0 -64
  9. package/presets/Lara/button/index.js +0 -470
  10. package/presets/Lara/calendar/index.js +0 -683
  11. package/presets/Lara/card/index.js +0 -37
  12. package/presets/Lara/carousel/index.js +0 -152
  13. package/presets/Lara/cascadeselect/index.js +0 -228
  14. package/presets/Lara/checkbox/index.js +0 -106
  15. package/presets/Lara/chip/index.js +0 -45
  16. package/presets/Lara/chips/index.js +0 -118
  17. package/presets/Lara/colorpicker/index.js +0 -129
  18. package/presets/Lara/confirmpopup/index.js +0 -107
  19. package/presets/Lara/contextmenu/index.js +0 -130
  20. package/presets/Lara/datatable/index.js +0 -1289
  21. package/presets/Lara/dataview/index.js +0 -40
  22. package/presets/Lara/deferred/index.js +0 -3
  23. package/presets/Lara/dialog/index.js +0 -249
  24. package/presets/Lara/divider/index.js +0 -72
  25. package/presets/Lara/dock/index.js +0 -97
  26. package/presets/Lara/dropdown/index.js +0 -300
  27. package/presets/Lara/fieldset/index.js +0 -98
  28. package/presets/Lara/fileupload/index.js +0 -173
  29. package/presets/Lara/floatlabel/index.js +0 -26
  30. package/presets/Lara/galleria/index.js +0 -351
  31. package/presets/Lara/global.js +0 -90
  32. package/presets/Lara/iconfield/index.js +0 -22
  33. package/presets/Lara/image/index.js +0 -206
  34. package/presets/Lara/index.js +0 -181
  35. package/presets/Lara/inlinemessage/index.js +0 -36
  36. package/presets/Lara/inplace/index.js +0 -27
  37. package/presets/Lara/inputgroup/index.js +0 -5
  38. package/presets/Lara/inputgroupaddon/index.js +0 -28
  39. package/presets/Lara/inputmask/index.js +0 -37
  40. package/presets/Lara/inputnumber/index.js +0 -253
  41. package/presets/Lara/inputotp/index.js +0 -72
  42. package/presets/Lara/inputswitch/index.js +0 -93
  43. package/presets/Lara/inputtext/index.js +0 -61
  44. package/presets/Lara/knob/index.js +0 -47
  45. package/presets/Lara/listbox/index.js +0 -170
  46. package/presets/Lara/megamenu/index.js +0 -207
  47. package/presets/Lara/menu/index.js +0 -98
  48. package/presets/Lara/menubar/index.js +0 -181
  49. package/presets/Lara/message/index.js +0 -87
  50. package/presets/Lara/metergroup/index.js +0 -110
  51. package/presets/Lara/multiselect/index.js +0 -589
  52. package/presets/Lara/orderlist/index.js +0 -266
  53. package/presets/Lara/organizationchart/index.js +0 -142
  54. package/presets/Lara/overlaypanel/index.js +0 -41
  55. package/presets/Lara/paginator/index.js +0 -590
  56. package/presets/Lara/panel/index.js +0 -93
  57. package/presets/Lara/panelmenu/index.js +0 -139
  58. package/presets/Lara/password/index.js +0 -140
  59. package/presets/Lara/picklist/index.js +0 -659
  60. package/presets/Lara/progressbar/index.js +0 -61
  61. package/presets/Lara/progressspinner/index.js +0 -51
  62. package/presets/Lara/radiobutton/index.js +0 -116
  63. package/presets/Lara/rating/index.js +0 -95
  64. package/presets/Lara/ripple/index.js +0 -6
  65. package/presets/Lara/scrollpanel/index.js +0 -77
  66. package/presets/Lara/scrolltop/index.js +0 -45
  67. package/presets/Lara/selectbutton/index.js +0 -60
  68. package/presets/Lara/sidebar/index.js +0 -163
  69. package/presets/Lara/skeleton/index.js +0 -19
  70. package/presets/Lara/slider/index.js +0 -149
  71. package/presets/Lara/speeddial/index.js +0 -535
  72. package/presets/Lara/splitbutton/index.js +0 -1081
  73. package/presets/Lara/splitter/index.js +0 -64
  74. package/presets/Lara/stepper/index.js +0 -183
  75. package/presets/Lara/steps/index.js +0 -115
  76. package/presets/Lara/tabmenu/index.js +0 -82
  77. package/presets/Lara/tabview/index.js +0 -166
  78. package/presets/Lara/tag/index.js +0 -37
  79. package/presets/Lara/terminal/index.js +0 -60
  80. package/presets/Lara/textarea/index.js +0 -39
  81. package/presets/Lara/tieredmenu/index.js +0 -125
  82. package/presets/Lara/timeline/index.js +0 -107
  83. package/presets/Lara/toast/index.js +0 -113
  84. package/presets/Lara/togglebutton/index.js +0 -100
  85. package/presets/Lara/toolbar/index.js +0 -28
  86. package/presets/Lara/tooltip/index.js +0 -73
  87. package/presets/Lara/tree/index.js +0 -281
  88. package/presets/Lara/treeselect/index.js +0 -387
  89. package/presets/Lara/treetable/index.js +0 -509
  90. package/presets/Lara/tristatecheckbox/index.js +0 -112
  91. package/presets/Wind/accordion/index.js +0 -75
  92. package/presets/Wind/autocomplete/index.js +0 -294
  93. package/presets/Wind/avatar/index.js +0 -48
  94. package/presets/Wind/badge/index.js +0 -43
  95. package/presets/Wind/badgedirective/index.js +0 -50
  96. package/presets/Wind/blockui/index.js +0 -8
  97. package/presets/Wind/breadcrumb/index.js +0 -45
  98. package/presets/Wind/button/index.js +0 -474
  99. package/presets/Wind/calendar/index.js +0 -659
  100. package/presets/Wind/card/index.js +0 -40
  101. package/presets/Wind/carousel/index.js +0 -152
  102. package/presets/Wind/cascadeselect/index.js +0 -225
  103. package/presets/Wind/checkbox/index.js +0 -112
  104. package/presets/Wind/chip/index.js +0 -45
  105. package/presets/Wind/chips/index.js +0 -120
  106. package/presets/Wind/colorpicker/index.js +0 -129
  107. package/presets/Wind/confirmpopup/index.js +0 -123
  108. package/presets/Wind/contextmenu/index.js +0 -128
  109. package/presets/Wind/datatable/index.js +0 -1330
  110. package/presets/Wind/dataview/index.js +0 -40
  111. package/presets/Wind/deferred/index.js +0 -3
  112. package/presets/Wind/dialog/index.js +0 -251
  113. package/presets/Wind/divider/index.js +0 -72
  114. package/presets/Wind/dock/index.js +0 -97
  115. package/presets/Wind/dropdown/index.js +0 -287
  116. package/presets/Wind/fieldset/index.js +0 -99
  117. package/presets/Wind/fileupload/index.js +0 -173
  118. package/presets/Wind/floatlabel/index.js +0 -26
  119. package/presets/Wind/galleria/index.js +0 -351
  120. package/presets/Wind/global.js +0 -77
  121. package/presets/Wind/iconfield/index.js +0 -22
  122. package/presets/Wind/image/index.js +0 -206
  123. package/presets/Wind/index.js +0 -181
  124. package/presets/Wind/inlinemessage/index.js +0 -29
  125. package/presets/Wind/inplace/index.js +0 -30
  126. package/presets/Wind/inputgroup/index.js +0 -5
  127. package/presets/Wind/inputgroupaddon/index.js +0 -28
  128. package/presets/Wind/inputmask/index.js +0 -34
  129. package/presets/Wind/inputnumber/index.js +0 -244
  130. package/presets/Wind/inputotp/index.js +0 -72
  131. package/presets/Wind/inputswitch/index.js +0 -106
  132. package/presets/Wind/inputtext/index.js +0 -61
  133. package/presets/Wind/knob/index.js +0 -47
  134. package/presets/Wind/listbox/index.js +0 -159
  135. package/presets/Wind/megamenu/index.js +0 -218
  136. package/presets/Wind/menu/index.js +0 -111
  137. package/presets/Wind/menubar/index.js +0 -188
  138. package/presets/Wind/message/index.js +0 -87
  139. package/presets/Wind/metergroup/index.js +0 -110
  140. package/presets/Wind/multiselect/index.js +0 -619
  141. package/presets/Wind/orderlist/index.js +0 -275
  142. package/presets/Wind/organizationchart/index.js +0 -143
  143. package/presets/Wind/overlaypanel/index.js +0 -42
  144. package/presets/Wind/paginator/index.js +0 -596
  145. package/presets/Wind/panel/index.js +0 -95
  146. package/presets/Wind/panelmenu/index.js +0 -136
  147. package/presets/Wind/password/index.js +0 -141
  148. package/presets/Wind/picklist/index.js +0 -684
  149. package/presets/Wind/progressbar/index.js +0 -68
  150. package/presets/Wind/progressspinner/index.js +0 -51
  151. package/presets/Wind/radiobutton/index.js +0 -92
  152. package/presets/Wind/rating/index.js +0 -86
  153. package/presets/Wind/ripple/index.js +0 -6
  154. package/presets/Wind/scrollpanel/index.js +0 -77
  155. package/presets/Wind/scrolltop/index.js +0 -45
  156. package/presets/Wind/selectbutton/index.js +0 -58
  157. package/presets/Wind/sidebar/index.js +0 -165
  158. package/presets/Wind/skeleton/index.js +0 -19
  159. package/presets/Wind/slider/index.js +0 -135
  160. package/presets/Wind/speeddial/index.js +0 -536
  161. package/presets/Wind/splitbutton/index.js +0 -1078
  162. package/presets/Wind/splitter/index.js +0 -64
  163. package/presets/Wind/stepper/index.js +0 -180
  164. package/presets/Wind/steps/index.js +0 -132
  165. package/presets/Wind/tabmenu/index.js +0 -84
  166. package/presets/Wind/tabview/index.js +0 -168
  167. package/presets/Wind/tag/index.js +0 -37
  168. package/presets/Wind/terminal/index.js +0 -60
  169. package/presets/Wind/textarea/index.js +0 -40
  170. package/presets/Wind/tieredmenu/index.js +0 -121
  171. package/presets/Wind/timeline/index.js +0 -107
  172. package/presets/Wind/toast/index.js +0 -111
  173. package/presets/Wind/togglebutton/index.js +0 -91
  174. package/presets/Wind/toolbar/index.js +0 -30
  175. package/presets/Wind/tooltip/index.js +0 -43
  176. package/presets/Wind/tree/index.js +0 -300
  177. package/presets/Wind/treeselect/index.js +0 -404
  178. package/presets/Wind/treetable/index.js +0 -505
  179. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,1081 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Flexbox and Position
5
- "inline-flex",
6
- "relative",
7
-
8
- // Shape
9
- "rounded-md",
10
- { "shadow-lg": props.raised },
11
- ],
12
- }),
13
- button: {
14
- root: ({ parent }) => ({
15
- class: [
16
- "relative",
17
-
18
- // Alignments
19
- "items-center inline-flex text-center align-bottom justify-center",
20
-
21
- // Sizes & Spacing
22
- "leading-[normal]",
23
- {
24
- "px-4 py-3": parent.props.size === null,
25
- "text-sm py-2 px-3": parent.props.size === "small",
26
- "text-xl py-3 px-4": parent.props.size === "large",
27
- },
28
- {
29
- "min-w-12 p-0 py-3":
30
- parent.props.label == null && parent.props.icon !== null,
31
- },
32
-
33
- // Shape
34
- "rounded-r-none",
35
- "border-r-0",
36
- { "rounded-l-full": parent.props.rounded },
37
- {
38
- "rounded-md": !parent.props.rounded,
39
- "rounded-full": parent.props.rounded,
40
- },
41
-
42
- // Link Button
43
- {
44
- "text-primary-600 bg-transparent border-transparent":
45
- parent.props.link,
46
- },
47
-
48
- // Plain Button
49
- {
50
- "text-white bg-gray-500 border border-gray-500":
51
- parent.props.plain && !parent.props.outlined && !parent.props.text,
52
- },
53
- // Plain Text Button
54
- { "text-surface-500": parent.props.plain && parent.props.text },
55
- // Plain Outlined Button
56
- {
57
- "text-surface-500 border border-gray-500":
58
- parent.props.plain && parent.props.outlined,
59
- },
60
-
61
- // Text Button
62
- {
63
- "bg-transparent border-transparent":
64
- parent.props.text && !parent.props.plain,
65
- },
66
-
67
- // Outlined Button
68
- {
69
- "bg-transparent border": parent.props.outlined && !parent.props.plain,
70
- },
71
-
72
- // --- Severity Buttons ---
73
-
74
- // Primary Button
75
- {
76
- "text-white dark:text-surface-900":
77
- !parent.props.link &&
78
- parent.props.severity === null &&
79
- !parent.props.text &&
80
- !parent.props.outlined &&
81
- !parent.props.plain,
82
- "bg-primary-500 dark:bg-primary-400":
83
- !parent.props.link &&
84
- parent.props.severity === null &&
85
- !parent.props.text &&
86
- !parent.props.outlined &&
87
- !parent.props.plain,
88
- "border border-primary-500 dark:border-primary-400":
89
- !parent.props.link &&
90
- parent.props.severity === null &&
91
- !parent.props.text &&
92
- !parent.props.outlined &&
93
- !parent.props.plain,
94
- },
95
- // Primary Text Button
96
- {
97
- "text-primary-500 dark:text-primary-400":
98
- parent.props.text &&
99
- parent.props.severity === null &&
100
- !parent.props.plain,
101
- },
102
- // Primary Outlined Button
103
- {
104
- "text-primary-500 border border-primary-500 hover:bg-primary-300/20":
105
- parent.props.outlined &&
106
- parent.props.severity === null &&
107
- !parent.props.plain,
108
- },
109
-
110
- // Secondary Button
111
- {
112
- "text-white dark:text-surface-900":
113
- parent.props.severity === "secondary" &&
114
- !parent.props.text &&
115
- !parent.props.outlined &&
116
- !parent.props.plain,
117
- "bg-surface-500 dark:bg-surface-400":
118
- parent.props.severity === "secondary" &&
119
- !parent.props.text &&
120
- !parent.props.outlined &&
121
- !parent.props.plain,
122
- "border border-surface-500 dark:border-surface-400":
123
- parent.props.severity === "secondary" &&
124
- !parent.props.text &&
125
- !parent.props.outlined &&
126
- !parent.props.plain,
127
- },
128
- // Secondary Text Button
129
- {
130
- "text-surface-500 dark:text-surface-400":
131
- parent.props.text &&
132
- parent.props.severity === "secondary" &&
133
- !parent.props.plain,
134
- },
135
- // Secondary Outlined Button
136
- {
137
- "text-surface-500 border border-surface-500 hover:bg-surface-300/20":
138
- parent.props.outlined &&
139
- parent.props.severity === "secondary" &&
140
- !parent.props.plain,
141
- },
142
-
143
- // Success Button
144
- {
145
- "text-white dark:text-surface-900":
146
- parent.props.severity === "success" &&
147
- !parent.props.text &&
148
- !parent.props.outlined &&
149
- !parent.props.plain,
150
- "bg-green-500 dark:bg-green-400":
151
- parent.props.severity === "success" &&
152
- !parent.props.text &&
153
- !parent.props.outlined &&
154
- !parent.props.plain,
155
- "border border-green-500 dark:border-green-400":
156
- parent.props.severity === "success" &&
157
- !parent.props.text &&
158
- !parent.props.outlined &&
159
- !parent.props.plain,
160
- },
161
- // Success Text Button
162
- {
163
- "text-surface-500 dark:text-surface-400":
164
- parent.props.text &&
165
- parent.props.severity === "secondary" &&
166
- !parent.props.plain,
167
- },
168
- // Success Outlined Button
169
- {
170
- "text-green-500 border border-green-500 hover:bg-green-300/20":
171
- parent.props.outlined &&
172
- parent.props.severity === "success" &&
173
- !parent.props.plain,
174
- },
175
-
176
- // Info Button
177
- {
178
- "text-white dark:text-surface-900":
179
- parent.props.severity === "info" &&
180
- !parent.props.text &&
181
- !parent.props.outlined &&
182
- !parent.props.plain,
183
- "bg-blue-500 dark:bg-blue-400":
184
- parent.props.severity === "info" &&
185
- !parent.props.text &&
186
- !parent.props.outlined &&
187
- !parent.props.plain,
188
- "border border-blue-500 dark:border-blue-400":
189
- parent.props.severity === "info" &&
190
- !parent.props.text &&
191
- !parent.props.outlined &&
192
- !parent.props.plain,
193
- },
194
- // Info Text Button
195
- {
196
- "text-blue-500 dark:text-blue-400":
197
- parent.props.text &&
198
- parent.props.severity === "info" &&
199
- !parent.props.plain,
200
- },
201
- // Info Outlined Button
202
- {
203
- "text-blue-500 border border-blue-500 hover:bg-blue-300/20 ":
204
- parent.props.outlined &&
205
- parent.props.severity === "info" &&
206
- !parent.props.plain,
207
- },
208
-
209
- // Warning Button
210
- {
211
- "text-white dark:text-surface-900":
212
- parent.props.severity === "warning" &&
213
- !parent.props.text &&
214
- !parent.props.outlined &&
215
- !parent.props.plain,
216
- "bg-orange-500 dark:bg-orange-400":
217
- parent.props.severity === "warning" &&
218
- !parent.props.text &&
219
- !parent.props.outlined &&
220
- !parent.props.plain,
221
- "border border-orange-500 dark:border-orange-400":
222
- parent.props.severity === "warning" &&
223
- !parent.props.text &&
224
- !parent.props.outlined &&
225
- !parent.props.plain,
226
- },
227
- // Warning Text Button
228
- {
229
- "text-orange-500 dark:text-orange-400":
230
- parent.props.text &&
231
- parent.props.severity === "warning" &&
232
- !parent.props.plain,
233
- },
234
- // Warning Outlined Button
235
- {
236
- "text-orange-500 border border-orange-500 hover:bg-orange-300/20":
237
- parent.props.outlined &&
238
- parent.props.severity === "warning" &&
239
- !parent.props.plain,
240
- },
241
-
242
- // Help Button
243
- {
244
- "text-white dark:text-surface-900":
245
- parent.props.severity === "help" &&
246
- !parent.props.text &&
247
- !parent.props.outlined &&
248
- !parent.props.plain,
249
- "bg-purple-500 dark:bg-purple-400":
250
- parent.props.severity === "help" &&
251
- !parent.props.text &&
252
- !parent.props.outlined &&
253
- !parent.props.plain,
254
- "border border-purple-500 dark:border-purple-400":
255
- parent.props.severity === "help" &&
256
- !parent.props.text &&
257
- !parent.props.outlined &&
258
- !parent.props.plain,
259
- },
260
- // Help Text Button
261
- {
262
- "text-purple-500 dark:text-purple-400":
263
- parent.props.text &&
264
- parent.props.severity === "help" &&
265
- !parent.props.plain,
266
- },
267
- // Help Outlined Button
268
- {
269
- "text-purple-500 border border-purple-500 hover:bg-purple-300/20":
270
- parent.props.outlined &&
271
- parent.props.severity === "help" &&
272
- !parent.props.plain,
273
- },
274
-
275
- // Danger Button
276
- {
277
- "text-white dark:text-surface-900":
278
- parent.props.severity === "danger" &&
279
- !parent.props.text &&
280
- !parent.props.outlined &&
281
- !parent.props.plain,
282
- "bg-red-500 dark:bg-red-400":
283
- parent.props.severity === "danger" &&
284
- !parent.props.text &&
285
- !parent.props.outlined &&
286
- !parent.props.plain,
287
- "border border-red-500 dark:border-red-400":
288
- parent.props.severity === "danger" &&
289
- !parent.props.text &&
290
- !parent.props.outlined &&
291
- !parent.props.plain,
292
- },
293
- // Danger Text Button
294
- {
295
- "text-red-500 dark:text-red-400":
296
- parent.props.text &&
297
- parent.props.severity === "danger" &&
298
- !parent.props.plain,
299
- },
300
- // Danger Outlined Button
301
- {
302
- "text-red-500 border border-red-500 hover:bg-red-300/20":
303
- parent.props.outlined &&
304
- parent.props.severity === "danger" &&
305
- !parent.props.plain,
306
- },
307
-
308
- // --- Severity Button States ---
309
- "focus:outline-none focus:outline-offset-0 focus:ring",
310
-
311
- // Link
312
- {
313
- "focus:ring-primary-400/50 dark:focus:ring-primary-300/50":
314
- parent.props.link,
315
- },
316
-
317
- // Plain
318
- {
319
- "hover:bg-gray-600 hover:border-gray-600":
320
- parent.props.plain && !parent.props.outlined && !parent.props.text,
321
- },
322
- // Text & Outlined Button
323
- {
324
- "hover:bg-surface-300/20":
325
- parent.props.plain && (parent.props.text || parent.props.outlined),
326
- },
327
-
328
- // Primary
329
- {
330
- "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300":
331
- !parent.props.link &&
332
- parent.props.severity === null &&
333
- !parent.props.text &&
334
- !parent.props.outlined &&
335
- !parent.props.plain,
336
- },
337
- {
338
- "focus:ring-primary-400/50 dark:focus:ring-primary-300/50":
339
- !parent.props.link &&
340
- parent.props.severity === null &&
341
- !parent.props.text &&
342
- !parent.props.outlined &&
343
- !parent.props.plain,
344
- },
345
- // Text & Outlined Button
346
- {
347
- "hover:bg-primary-300/20":
348
- (parent.props.text || parent.props.outlined) &&
349
- parent.props.severity === null &&
350
- !parent.props.plain,
351
- },
352
-
353
- // Secondary
354
- {
355
- "hover:bg-surface-600 dark:hover:bg-surface-300 hover:border-surface-600 dark:hover:border-surface-300":
356
- parent.props.severity === "secondary" &&
357
- !parent.props.text &&
358
- !parent.props.outlined &&
359
- !parent.props.plain,
360
- },
361
- {
362
- "focus:ring-surface-400/50 dark:focus:ring-surface-300/50":
363
- parent.props.severity === "secondary",
364
- },
365
- // Text & Outlined Button
366
- {
367
- "hover:bg-surface-300/20":
368
- (parent.props.text || parent.props.outlined) &&
369
- parent.props.severity === "secondary" &&
370
- !parent.props.plain,
371
- },
372
-
373
- // Success
374
- {
375
- "hover:bg-green-600 dark:hover:bg-green-300 hover:border-green-600 dark:hover:border-green-300":
376
- parent.props.severity === "success" &&
377
- !parent.props.text &&
378
- !parent.props.outlined &&
379
- !parent.props.plain,
380
- },
381
- {
382
- "focus:ring-green-400/50 dark:focus:ring-green-300/50":
383
- parent.props.severity === "success",
384
- },
385
- // Text & Outlined Button
386
- {
387
- "hover:bg-green-300/20":
388
- (parent.props.text || parent.props.outlined) &&
389
- parent.props.severity === "success" &&
390
- !parent.props.plain,
391
- },
392
-
393
- // Info
394
- {
395
- "hover:bg-blue-600 dark:hover:bg-blue-300 hover:border-blue-600 dark:hover:border-blue-300":
396
- parent.props.severity === "info" &&
397
- !parent.props.text &&
398
- !parent.props.outlined &&
399
- !parent.props.plain,
400
- },
401
- {
402
- "focus:ring-blue-400/50 dark:focus:ring-blue-300/50":
403
- parent.props.severity === "info",
404
- },
405
- // Text & Outlined Button
406
- {
407
- "hover:bg-blue-300/20":
408
- (parent.props.text || parent.props.outlined) &&
409
- parent.props.severity === "info" &&
410
- !parent.props.plain,
411
- },
412
-
413
- // Warning
414
- {
415
- "hover:bg-orange-600 dark:hover:bg-orange-300 hover:border-orange-600 dark:hover:border-orange-300":
416
- parent.props.severity === "warning" &&
417
- !parent.props.text &&
418
- !parent.props.outlined &&
419
- !parent.props.plain,
420
- },
421
- {
422
- "focus:ring-orange-400/50 dark:focus:ring-orange-300/50":
423
- parent.props.severity === "warning",
424
- },
425
- // Text & Outlined Button
426
- {
427
- "hover:bg-orange-300/20":
428
- (parent.props.text || parent.props.outlined) &&
429
- parent.props.severity === "warning" &&
430
- !parent.props.plain,
431
- },
432
-
433
- // Help
434
- {
435
- "hover:bg-purple-600 dark:hover:bg-purple-300 hover:border-purple-600 dark:hover:border-purple-300":
436
- parent.props.severity === "help" &&
437
- !parent.props.text &&
438
- !parent.props.outlined &&
439
- !parent.props.plain,
440
- },
441
- {
442
- "focus:ring-purple-400/50 dark:focus:ring-purple-300/50":
443
- parent.props.severity === "help",
444
- },
445
- // Text & Outlined Button
446
- {
447
- "hover:bg-purple-300/20":
448
- (parent.props.text || parent.props.outlined) &&
449
- parent.props.severity === "help" &&
450
- !parent.props.plain,
451
- },
452
-
453
- // Warning
454
- {
455
- "hover:bg-red-600 dark:hover:bg-red-300 hover:border-red-600 dark:hover:border-red-300":
456
- parent.props.severity === "danger" &&
457
- !parent.props.text &&
458
- !parent.props.outlined &&
459
- !parent.props.plain,
460
- },
461
- {
462
- "focus:ring-red-400/50 dark:focus:ring-red-300/50":
463
- parent.props.severity === "danger",
464
- },
465
- // Text & Outlined Button
466
- {
467
- "hover:bg-red-300/20":
468
- (parent.props.text || parent.props.outlined) &&
469
- parent.props.severity === "danger" &&
470
- !parent.props.plain,
471
- },
472
-
473
- // Transitions
474
- "transition duration-200 ease-in-out",
475
-
476
- // Misc
477
- "cursor-pointer overflow-hidden select-none",
478
- ],
479
- }),
480
- icon: {
481
- class: [
482
- // Margins
483
- "mr-2",
484
- ],
485
- },
486
- },
487
- menubutton: {
488
- root: ({ parent }) => ({
489
- class: [
490
- "relative",
491
- // Alignments
492
- "items-center inline-flex text-center align-bottom justify-center",
493
-
494
- // Sizes & Spacing
495
- "leading-[normal]",
496
- {
497
- "px-4 py-3": parent.props.size === null,
498
- "text-sm py-2 px-3": parent.props.size === "small",
499
- "text-xl py-3 px-4": parent.props.size === "large",
500
- },
501
- {
502
- "min-w-12 p-0 py-3":
503
- parent.props.label == null && parent.props.icon !== null,
504
- },
505
-
506
- // Shape
507
- "rounded-l-none",
508
- { "rounded-l-full": parent.props.rounded },
509
- {
510
- "rounded-md": !parent.props.rounded,
511
- "rounded-full": parent.props.rounded,
512
- },
513
-
514
- // Link Button
515
- {
516
- "text-primary-600 bg-transparent border-transparent":
517
- parent.props.link,
518
- },
519
-
520
- // Plain Button
521
- {
522
- "text-white bg-gray-500 border border-gray-500":
523
- parent.props.plain && !parent.props.outlined && !parent.props.text,
524
- },
525
- // Plain Text Button
526
- { "text-surface-500": parent.props.plain && parent.props.text },
527
- // Plain Outlined Button
528
- {
529
- "text-surface-500 border border-gray-500":
530
- parent.props.plain && parent.props.outlined,
531
- },
532
-
533
- // Text Button
534
- {
535
- "bg-transparent border-transparent":
536
- parent.props.text && !parent.props.plain,
537
- },
538
-
539
- // Outlined Button
540
- {
541
- "bg-transparent border": parent.props.outlined && !parent.props.plain,
542
- },
543
-
544
- // --- Severity Buttons ---
545
-
546
- // Primary Button
547
- {
548
- "text-white dark:text-surface-900":
549
- !parent.props.link &&
550
- parent.props.severity === null &&
551
- !parent.props.text &&
552
- !parent.props.outlined &&
553
- !parent.props.plain,
554
- "bg-primary-500 dark:bg-primary-400":
555
- !parent.props.link &&
556
- parent.props.severity === null &&
557
- !parent.props.text &&
558
- !parent.props.outlined &&
559
- !parent.props.plain,
560
- "border border-primary-500 dark:border-primary-400":
561
- !parent.props.link &&
562
- parent.props.severity === null &&
563
- !parent.props.text &&
564
- !parent.props.outlined &&
565
- !parent.props.plain,
566
- },
567
- // Primary Text Button
568
- {
569
- "text-primary-500 dark:text-primary-400":
570
- parent.props.text &&
571
- parent.props.severity === null &&
572
- !parent.props.plain,
573
- },
574
- // Primary Outlined Button
575
- {
576
- "text-primary-500 border border-primary-500 hover:bg-primary-300/20":
577
- parent.props.outlined &&
578
- parent.props.severity === null &&
579
- !parent.props.plain,
580
- },
581
-
582
- // Secondary Button
583
- {
584
- "text-white dark:text-surface-900":
585
- parent.props.severity === "secondary" &&
586
- !parent.props.text &&
587
- !parent.props.outlined &&
588
- !parent.props.plain,
589
- "bg-surface-500 dark:bg-surface-400":
590
- parent.props.severity === "secondary" &&
591
- !parent.props.text &&
592
- !parent.props.outlined &&
593
- !parent.props.plain,
594
- "border border-surface-500 dark:border-surface-400":
595
- parent.props.severity === "secondary" &&
596
- !parent.props.text &&
597
- !parent.props.outlined &&
598
- !parent.props.plain,
599
- },
600
- // Secondary Text Button
601
- {
602
- "text-surface-500 dark:text-surface-400":
603
- parent.props.text &&
604
- parent.props.severity === "secondary" &&
605
- !parent.props.plain,
606
- },
607
- // Secondary Outlined Button
608
- {
609
- "text-surface-500 border border-surface-500 hover:bg-surface-300/20":
610
- parent.props.outlined &&
611
- parent.props.severity === "secondary" &&
612
- !parent.props.plain,
613
- },
614
-
615
- // Success Button
616
- {
617
- "text-white dark:text-surface-900":
618
- parent.props.severity === "success" &&
619
- !parent.props.text &&
620
- !parent.props.outlined &&
621
- !parent.props.plain,
622
- "bg-green-500 dark:bg-green-400":
623
- parent.props.severity === "success" &&
624
- !parent.props.text &&
625
- !parent.props.outlined &&
626
- !parent.props.plain,
627
- "border border-green-500 dark:border-green-400":
628
- parent.props.severity === "success" &&
629
- !parent.props.text &&
630
- !parent.props.outlined &&
631
- !parent.props.plain,
632
- },
633
- // Success Text Button
634
- {
635
- "text-surface-500 dark:text-surface-400":
636
- parent.props.text &&
637
- parent.props.severity === "secondary" &&
638
- !parent.props.plain,
639
- },
640
- // Success Outlined Button
641
- {
642
- "text-green-500 border border-green-500 hover:bg-green-300/20":
643
- parent.props.outlined &&
644
- parent.props.severity === "success" &&
645
- !parent.props.plain,
646
- },
647
-
648
- // Info Button
649
- {
650
- "text-white dark:text-surface-900":
651
- parent.props.severity === "info" &&
652
- !parent.props.text &&
653
- !parent.props.outlined &&
654
- !parent.props.plain,
655
- "bg-blue-500 dark:bg-blue-400":
656
- parent.props.severity === "info" &&
657
- !parent.props.text &&
658
- !parent.props.outlined &&
659
- !parent.props.plain,
660
- "border border-blue-500 dark:border-blue-400":
661
- parent.props.severity === "info" &&
662
- !parent.props.text &&
663
- !parent.props.outlined &&
664
- !parent.props.plain,
665
- },
666
- // Info Text Button
667
- {
668
- "text-blue-500 dark:text-blue-400":
669
- parent.props.text &&
670
- parent.props.severity === "info" &&
671
- !parent.props.plain,
672
- },
673
- // Info Outlined Button
674
- {
675
- "text-blue-500 border border-blue-500 hover:bg-blue-300/20 ":
676
- parent.props.outlined &&
677
- parent.props.severity === "info" &&
678
- !parent.props.plain,
679
- },
680
-
681
- // Warning Button
682
- {
683
- "text-white dark:text-surface-900":
684
- parent.props.severity === "warning" &&
685
- !parent.props.text &&
686
- !parent.props.outlined &&
687
- !parent.props.plain,
688
- "bg-orange-500 dark:bg-orange-400":
689
- parent.props.severity === "warning" &&
690
- !parent.props.text &&
691
- !parent.props.outlined &&
692
- !parent.props.plain,
693
- "border border-orange-500 dark:border-orange-400":
694
- parent.props.severity === "warning" &&
695
- !parent.props.text &&
696
- !parent.props.outlined &&
697
- !parent.props.plain,
698
- },
699
- // Warning Text Button
700
- {
701
- "text-orange-500 dark:text-orange-400":
702
- parent.props.text &&
703
- parent.props.severity === "warning" &&
704
- !parent.props.plain,
705
- },
706
- // Warning Outlined Button
707
- {
708
- "text-orange-500 border border-orange-500 hover:bg-orange-300/20":
709
- parent.props.outlined &&
710
- parent.props.severity === "warning" &&
711
- !parent.props.plain,
712
- },
713
-
714
- // Help Button
715
- {
716
- "text-white dark:text-surface-900":
717
- parent.props.severity === "help" &&
718
- !parent.props.text &&
719
- !parent.props.outlined &&
720
- !parent.props.plain,
721
- "bg-purple-500 dark:bg-purple-400":
722
- parent.props.severity === "help" &&
723
- !parent.props.text &&
724
- !parent.props.outlined &&
725
- !parent.props.plain,
726
- "border border-purple-500 dark:border-purple-400":
727
- parent.props.severity === "help" &&
728
- !parent.props.text &&
729
- !parent.props.outlined &&
730
- !parent.props.plain,
731
- },
732
- // Help Text Button
733
- {
734
- "text-purple-500 dark:text-purple-400":
735
- parent.props.text &&
736
- parent.props.severity === "help" &&
737
- !parent.props.plain,
738
- },
739
- // Help Outlined Button
740
- {
741
- "text-purple-500 border border-purple-500 hover:bg-purple-300/20":
742
- parent.props.outlined &&
743
- parent.props.severity === "help" &&
744
- !parent.props.plain,
745
- },
746
-
747
- // Danger Button
748
- {
749
- "text-white dark:text-surface-900":
750
- parent.props.severity === "danger" &&
751
- !parent.props.text &&
752
- !parent.props.outlined &&
753
- !parent.props.plain,
754
- "bg-red-500 dark:bg-red-400":
755
- parent.props.severity === "danger" &&
756
- !parent.props.text &&
757
- !parent.props.outlined &&
758
- !parent.props.plain,
759
- "border border-red-500 dark:border-red-400":
760
- parent.props.severity === "danger" &&
761
- !parent.props.text &&
762
- !parent.props.outlined &&
763
- !parent.props.plain,
764
- },
765
- // Danger Text Button
766
- {
767
- "text-red-500 dark:text-red-400":
768
- parent.props.text &&
769
- parent.props.severity === "danger" &&
770
- !parent.props.plain,
771
- },
772
- // Danger Outlined Button
773
- {
774
- "text-red-500 border border-red-500 hover:bg-red-300/20":
775
- parent.props.outlined &&
776
- parent.props.severity === "danger" &&
777
- !parent.props.plain,
778
- },
779
-
780
- // --- Severity Button States ---
781
- "focus:outline-none focus:outline-offset-0 focus:ring",
782
-
783
- // Link
784
- {
785
- "focus:ring-primary-400/50 dark:focus:ring-primary-300/50":
786
- parent.props.link,
787
- },
788
-
789
- // Plain
790
- {
791
- "hover:bg-gray-600 hover:border-gray-600":
792
- parent.props.plain && !parent.props.outlined && !parent.props.text,
793
- },
794
- // Text & Outlined Button
795
- {
796
- "hover:bg-surface-300/20":
797
- parent.props.plain && (parent.props.text || parent.props.outlined),
798
- },
799
-
800
- // Primary
801
- {
802
- "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300":
803
- !parent.props.link &&
804
- parent.props.severity === null &&
805
- !parent.props.text &&
806
- !parent.props.outlined &&
807
- !parent.props.plain,
808
- },
809
- {
810
- "focus:ring-primary-400/50 dark:focus:ring-primary-300/50":
811
- !parent.props.link &&
812
- parent.props.severity === null &&
813
- !parent.props.text &&
814
- !parent.props.outlined &&
815
- !parent.props.plain,
816
- },
817
- // Text & Outlined Button
818
- {
819
- "hover:bg-primary-300/20":
820
- (parent.props.text || parent.props.outlined) &&
821
- parent.props.severity === null &&
822
- !parent.props.plain,
823
- },
824
-
825
- // Secondary
826
- {
827
- "hover:bg-surface-600 dark:hover:bg-surface-300 hover:border-surface-600 dark:hover:border-surface-300":
828
- parent.props.severity === "secondary" &&
829
- !parent.props.text &&
830
- !parent.props.outlined &&
831
- !parent.props.plain,
832
- },
833
- {
834
- "focus:ring-surface-400/50 dark:focus:ring-surface-300/50":
835
- parent.props.severity === "secondary",
836
- },
837
- // Text & Outlined Button
838
- {
839
- "hover:bg-surface-300/20":
840
- (parent.props.text || parent.props.outlined) &&
841
- parent.props.severity === "secondary" &&
842
- !parent.props.plain,
843
- },
844
-
845
- // Success
846
- {
847
- "hover:bg-green-600 dark:hover:bg-green-300 hover:border-green-600 dark:hover:border-green-300":
848
- parent.props.severity === "success" &&
849
- !parent.props.text &&
850
- !parent.props.outlined &&
851
- !parent.props.plain,
852
- },
853
- {
854
- "focus:ring-green-400/50 dark:focus:ring-green-300/50":
855
- parent.props.severity === "success",
856
- },
857
- // Text & Outlined Button
858
- {
859
- "hover:bg-green-300/20":
860
- (parent.props.text || parent.props.outlined) &&
861
- parent.props.severity === "success" &&
862
- !parent.props.plain,
863
- },
864
-
865
- // Info
866
- {
867
- "hover:bg-blue-600 dark:hover:bg-blue-300 hover:border-blue-600 dark:hover:border-blue-300":
868
- parent.props.severity === "info" &&
869
- !parent.props.text &&
870
- !parent.props.outlined &&
871
- !parent.props.plain,
872
- },
873
- {
874
- "focus:ring-blue-400/50 dark:focus:ring-blue-300/50":
875
- parent.props.severity === "info",
876
- },
877
- // Text & Outlined Button
878
- {
879
- "hover:bg-blue-300/20":
880
- (parent.props.text || parent.props.outlined) &&
881
- parent.props.severity === "info" &&
882
- !parent.props.plain,
883
- },
884
-
885
- // Warning
886
- {
887
- "hover:bg-orange-600 dark:hover:bg-orange-300 hover:border-orange-600 dark:hover:border-orange-300":
888
- parent.props.severity === "warning" &&
889
- !parent.props.text &&
890
- !parent.props.outlined &&
891
- !parent.props.plain,
892
- },
893
- {
894
- "focus:ring-orange-400/50 dark:focus:ring-orange-300/50":
895
- parent.props.severity === "warning",
896
- },
897
- // Text & Outlined Button
898
- {
899
- "hover:bg-orange-300/20":
900
- (parent.props.text || parent.props.outlined) &&
901
- parent.props.severity === "warning" &&
902
- !parent.props.plain,
903
- },
904
-
905
- // Help
906
- {
907
- "hover:bg-purple-600 dark:hover:bg-purple-300 hover:border-purple-600 dark:hover:border-purple-300":
908
- parent.props.severity === "help" &&
909
- !parent.props.text &&
910
- !parent.props.outlined &&
911
- !parent.props.plain,
912
- },
913
- {
914
- "focus:ring-purple-400/50 dark:focus:ring-purple-300/50":
915
- parent.props.severity === "help",
916
- },
917
- // Text & Outlined Button
918
- {
919
- "hover:bg-purple-300/20":
920
- (parent.props.text || parent.props.outlined) &&
921
- parent.props.severity === "help" &&
922
- !parent.props.plain,
923
- },
924
-
925
- // Warning
926
- {
927
- "hover:bg-red-600 dark:hover:bg-red-300 hover:border-red-600 dark:hover:border-red-300":
928
- parent.props.severity === "danger" &&
929
- !parent.props.text &&
930
- !parent.props.outlined &&
931
- !parent.props.plain,
932
- },
933
- {
934
- "focus:ring-red-400/50 dark:focus:ring-red-300/50":
935
- parent.props.severity === "danger",
936
- },
937
- // Text & Outlined Button
938
- {
939
- "hover:bg-red-300/20":
940
- (parent.props.text || parent.props.outlined) &&
941
- parent.props.severity === "danger" &&
942
- !parent.props.plain,
943
- },
944
-
945
- // Transitions
946
- "transition duration-200 ease-in-out",
947
-
948
- // Misc
949
- "cursor-pointer overflow-hidden select-none",
950
- ],
951
- }),
952
- label: {
953
- class: ["hidden"],
954
- },
955
- },
956
- menu: {
957
- root: {
958
- class: [
959
- // Shape
960
- "rounded-md",
961
-
962
- // Size
963
- "min-w-[12rem]",
964
- "py-1",
965
-
966
- // Colors
967
- "bg-surface-0 dark:bg-surface-700",
968
- "border border-surface-200 dark:border-surface-700",
969
- ],
970
- },
971
- menu: {
972
- class: [
973
- // Spacings and Shape
974
- "list-none",
975
- "m-0",
976
- "p-0",
977
- "outline-none",
978
- ],
979
- },
980
- menuitem: {
981
- class: [
982
- // Position
983
- "relative",
984
- ],
985
- },
986
- content: ({ context }) => ({
987
- class: [
988
- // Shape
989
- "rounded-none",
990
-
991
- // Colors
992
- {
993
- "text-surface-500 dark:text-white/70":
994
- !context.focused && !context.active,
995
- "text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90":
996
- context.focused && !context.active,
997
- "text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
998
- context.focused && context.active,
999
- "text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
1000
- !context.focused && context.active,
1001
- },
1002
-
1003
- // Hover States
1004
- {
1005
- "hover:bg-surface-100 dark:hover:bg-surface-600/80": !context.active,
1006
- "hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80":
1007
- context.active,
1008
- },
1009
-
1010
- // Transitions
1011
- "transition-shadow",
1012
- "duration-200",
1013
- ],
1014
- }),
1015
- action: {
1016
- class: [
1017
- "relative",
1018
- // Flexbox
1019
-
1020
- "flex",
1021
- "items-center",
1022
-
1023
- // Spacing
1024
- "py-3",
1025
- "px-5",
1026
-
1027
- // Color
1028
- "text-surface-700 dark:text-white/80",
1029
-
1030
- // Misc
1031
- "no-underline",
1032
- "overflow-hidden",
1033
- "cursor-pointer",
1034
- "select-none",
1035
- ],
1036
- },
1037
- icon: {
1038
- class: [
1039
- // Spacing
1040
- "mr-2",
1041
-
1042
- // Color
1043
- "text-surface-600 dark:text-white/70",
1044
- ],
1045
- },
1046
- label: {
1047
- class: ["leading-none"],
1048
- },
1049
- submenuicon: {
1050
- class: [
1051
- // Position
1052
- "ml-auto",
1053
- ],
1054
- },
1055
- submenu: {
1056
- class: [
1057
- // Size
1058
- "w-full sm:w-48",
1059
-
1060
- // Spacing
1061
- "py-1",
1062
- "m-0",
1063
- "list-none",
1064
-
1065
- // Shape
1066
- "shadow-none sm:shadow-md",
1067
- "border-0",
1068
-
1069
- // Position
1070
- "static sm:absolute",
1071
- "z-10",
1072
-
1073
- // Color
1074
- "bg-surface-0 dark:bg-surface-700",
1075
- ],
1076
- },
1077
- separator: {
1078
- class: "border-t border-surface-200 dark:border-surface-600 my-1",
1079
- },
1080
- },
1081
- };