@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,300 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- "relative",
5
-
6
- // Space
7
- "p-1.5",
8
-
9
- // Shape
10
- "rounded-md",
11
-
12
- // Color
13
- "bg-surface-0 dark:bg-surface-800",
14
- "text-surface-700 dark:text-white/80",
15
- "ring-1 ring-surface-200 dark:ring-surface-700",
16
- ],
17
- },
18
- wrapper: {
19
- class: ["overflow-auto"],
20
- },
21
- container: {
22
- class: [
23
- // Spacing
24
- "m-0 p-0",
25
-
26
- // Misc
27
- "list-none overflow-auto",
28
- ],
29
- },
30
- node: {
31
- class: [
32
- "p-[2px]",
33
- "rounded-md",
34
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
35
- ],
36
- },
37
- content: ({ context, props }) => ({
38
- class: [
39
- // Flex and Alignment
40
- "flex items-center",
41
-
42
- // Shape
43
- "rounded-md",
44
-
45
- // Spacing
46
- "p-2",
47
-
48
- // Colors
49
- "text-surface-700 dark:text-surface-0",
50
- {
51
- "bg-surface-100 text-primary-500 dark:bg-surface-300/10 dark:text-primary-400":
52
- context.selected,
53
- },
54
-
55
- // States
56
- {
57
- "hover:bg-surface-200 dark:hover:bg-surface-400/10":
58
- props.selectionMode == "single" || props.selectionMode == "multiple",
59
- },
60
-
61
- // Transition
62
- "transition-shadow duration-200",
63
-
64
- {
65
- "cursor-pointer select-none":
66
- props.selectionMode == "single" || props.selectionMode == "multiple",
67
- },
68
- ],
69
- }),
70
- toggler: ({ context }) => ({
71
- class: [
72
- // Flex and Alignment
73
- "inline-flex items-center justify-center",
74
-
75
- // Shape
76
- "border-0 rounded-full",
77
-
78
- // Size and Spacing
79
- "mr-2",
80
- "w-6 h-6",
81
-
82
- // Spacing
83
- "mr-2",
84
-
85
- // Colors
86
- "text-surface-500",
87
- "bg-transparent",
88
- {
89
- invisible: context.leaf,
90
- },
91
-
92
- // States
93
- "hover:text-surface-700 dark:hover:text-white/80",
94
- "hover:bg-surface-100 dark:hover:bg-surface-800/80",
95
- "focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset",
96
- "focus:ring-primary-500 dark:focus:ring-primary-400",
97
-
98
- // Transition
99
- "transition duration-200",
100
-
101
- // Misc
102
- "cursor-pointer select-none",
103
- ],
104
- }),
105
- togglericon: {
106
- class: [
107
- // Size
108
- "w-4 h-4",
109
-
110
- // Color
111
- "text-surface-500 dark:text-white/70",
112
- ],
113
- },
114
- nodeCheckbox: ({ props, context, instance }) => ({
115
- root: {
116
- class: [
117
- "relative",
118
-
119
- // Alignment
120
- "inline-flex",
121
- "align-bottom",
122
-
123
- // Size
124
- "w-4",
125
- "h-4",
126
-
127
- // Spacing
128
- "mr-2",
129
-
130
- // Misc
131
- "cursor-default",
132
- "select-none",
133
- ],
134
- },
135
- box: {
136
- class: [
137
- // Alignment
138
- "flex",
139
- "items-center",
140
- "justify-center",
141
-
142
- // Size
143
- "w-4",
144
- "h-4",
145
-
146
- // Shape
147
- "rounded",
148
- "border",
149
-
150
- // Colors
151
- "text-surface-600",
152
- {
153
- "border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
154
- !context.checked,
155
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
156
- context.checked,
157
- },
158
-
159
- {
160
- "ring-2 ring-primary-500 dark:ring-primary-400":
161
- !props.disabled && context.focused,
162
- "cursor-default opacity-60": props.disabled,
163
- },
164
-
165
- // States
166
- {
167
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
168
- !props.disabled,
169
- "cursor-default opacity-60": props.disabled,
170
- },
171
-
172
- // Transitions
173
- "transition-colors",
174
- "duration-200",
175
- ],
176
- },
177
- input: {
178
- class: [
179
- "peer",
180
-
181
- // Size
182
- "w-full ",
183
- "h-full",
184
-
185
- // Position
186
- "absolute",
187
- "top-0 left-0",
188
- "z-10",
189
-
190
- // Spacing
191
- "p-0",
192
- "m-0",
193
-
194
- // Shape
195
- "rounded",
196
- "border",
197
-
198
- // Shape
199
- "opacity-0",
200
- "rounded-md",
201
- "outline-none",
202
- "border-2 border-surface-300 dark:border-surface-700",
203
-
204
- // Misc
205
- "appearance-none",
206
- ],
207
- },
208
- icon: {
209
- class: [
210
- // Font
211
- "text-normal",
212
-
213
- // Size
214
- "w-3",
215
- "h-3",
216
-
217
- // Colors
218
- {
219
- "text-white dark:text-surface-900": !instance.partialChecked,
220
- "text-gray dark:text-white": instance.partialChecked,
221
- },
222
-
223
- // Transitions
224
- "transition-all",
225
- "duration-200",
226
- ],
227
- },
228
- }),
229
- nodeicon: {
230
- class: [
231
- // Space
232
- "mr-2",
233
-
234
- // Color
235
- "text-surface-600 dark:text-white/70",
236
- ],
237
- },
238
- subgroup: {
239
- class: ["m-0 list-none p-0 pl-2 mt-1"],
240
- },
241
- filtercontainer: {
242
- class: [
243
- "relative block",
244
-
245
- // Space
246
- "mb-2",
247
-
248
- // Size
249
- "w-full",
250
- ],
251
- },
252
- input: {
253
- class: [
254
- "relative",
255
-
256
- // Font
257
- "font-sans leading-6",
258
- "sm:text-sm",
259
-
260
- // Spacing
261
- "m-0",
262
- "py-1.5 px-3 pr-10",
263
-
264
- // Size
265
- "w-full",
266
-
267
- // Shape
268
- "rounded-md",
269
-
270
- // Colors
271
- "text-surface-900 dark:text-surface-0",
272
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
273
- "bg-surface-0 dark:bg-surface-900",
274
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700 ring-offset-0",
275
-
276
- // States
277
- "hover:border-primary-500 dark:hover:border-primary-400",
278
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
279
-
280
- // Transition & Misc
281
- "appearance-none",
282
- "transition-colors duration-200",
283
- ],
284
- },
285
- loadingicon: {
286
- class: [
287
- "text-surface-500 dark:text-surface-0/70",
288
- "absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin",
289
- ],
290
- },
291
- searchicon: {
292
- class: [
293
- // Position
294
- "absolute top-1/2 -mt-2 right-3",
295
-
296
- // Color
297
- "text-surface-600 dark:hover:text-white/70",
298
- ],
299
- },
300
- };
@@ -1,404 +0,0 @@
1
- export default {
2
- root: ({ props, state }) => ({
3
- class: [
4
- // Display and Position
5
- "inline-flex",
6
- "relative",
7
-
8
- // Shape
9
- "rounded-md",
10
- "shadow-sm",
11
-
12
- // Color and Background
13
- "bg-surface-0 dark:bg-surface-900",
14
-
15
- // States
16
- {
17
- "ring-1 ring-inset": !state.focused,
18
- "ring-2 ring-inset ring-primary-500 dark:ring-primary-400":
19
- state.focused,
20
- },
21
-
22
- {
23
- "ring-surface-300 dark:ring-surface-600":
24
- !props.invalid && !state.focused,
25
- },
26
-
27
- // Invalid State
28
- { "ring-red-500 dark:ring-red-400": props.invalid && !state.focused },
29
-
30
- // Misc
31
- "cursor-default",
32
- "select-none",
33
- { "opacity-60": props.disabled, "pointer-events-none": props.disabled },
34
- ],
35
- }),
36
- labelContainer: {
37
- class: ["overflow-hidden flex flex-auto cursor-pointer"],
38
- },
39
- label: {
40
- class: [
41
- "block leading-5",
42
-
43
- // Space
44
- "py-1.5 px-3",
45
-
46
- // Color
47
- "text-surface-800 dark:text-white/80",
48
-
49
- // Transition
50
- "transition duration-200",
51
-
52
- // Misc
53
- "overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis",
54
- ],
55
- },
56
- trigger: {
57
- class: [
58
- //Font
59
- "sm:text-sm",
60
-
61
- // Flexbox
62
- "flex items-center justify-center",
63
- "shrink-0",
64
-
65
- // Color and Background
66
- "bg-transparent",
67
- "text-surface-500",
68
-
69
- // Size
70
- "w-12",
71
-
72
- // Shape
73
- "rounded-tr-md",
74
- "rounded-br-md",
75
- ],
76
- },
77
- panel: {
78
- class: [
79
- // Position
80
- "absolute top-0 left-0",
81
- "mt-2",
82
-
83
- // Shape
84
- "border-0",
85
- "rounded-md",
86
- "shadow-md",
87
-
88
- // Color
89
- "bg-surface-0 dark:bg-surface-800",
90
- "text-surface-800 dark:text-white/80",
91
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
92
- ],
93
- },
94
- wrapper: {
95
- class: [
96
- // Sizing
97
- "max-h-[200px]",
98
-
99
- // Misc
100
- "overflow-auto",
101
- ],
102
- },
103
- tree: {
104
- root: {
105
- class: [
106
- "relative",
107
-
108
- // Space
109
- "p-1.5",
110
- ],
111
- },
112
- wrapper: {
113
- class: ["overflow-auto"],
114
- },
115
- container: {
116
- class: [
117
- // Spacing
118
- "m-0 p-0",
119
-
120
- // Misc
121
- "list-none overflow-auto",
122
- ],
123
- },
124
- node: {
125
- class: [
126
- "p-[2px]",
127
- "rounded-md",
128
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
129
- ],
130
- },
131
- content: ({ context, props }) => ({
132
- class: [
133
- // Flex and Alignment
134
- "flex items-center",
135
-
136
- // Shape
137
- "rounded-md",
138
-
139
- // Spacing
140
- "p-2",
141
-
142
- // Colors
143
- "text-surface-700 dark:text-surface-0",
144
- {
145
- "bg-surface-100 text-primary-500 dark:bg-surface-300/10 dark:text-primary-400":
146
- context.selected,
147
- },
148
-
149
- // States
150
- {
151
- "hover:bg-surface-200 dark:hover:bg-surface-400/10":
152
- props.selectionMode == "single" ||
153
- props.selectionMode == "multiple",
154
- },
155
-
156
- // Transition
157
- "transition-shadow duration-200",
158
-
159
- {
160
- "cursor-pointer select-none":
161
- props.selectionMode == "single" ||
162
- props.selectionMode == "multiple",
163
- },
164
- ],
165
- }),
166
- toggler: ({ context }) => ({
167
- class: [
168
- // Flex and Alignment
169
- "inline-flex items-center justify-center",
170
-
171
- // Shape
172
- "border-0 rounded-full",
173
-
174
- // Size and Spacing
175
- "mr-2",
176
- "w-6 h-6",
177
-
178
- // Spacing
179
- "mr-2",
180
-
181
- // Colors
182
- "text-surface-500",
183
- "bg-transparent",
184
- {
185
- invisible: context.leaf,
186
- },
187
-
188
- // States
189
- "hover:text-surface-700 dark:hover:text-white/80",
190
- "hover:bg-surface-100 dark:hover:bg-surface-800/80",
191
- "focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset",
192
- "focus:ring-primary-500 dark:focus:ring-primary-400",
193
-
194
- // Transition
195
- "transition duration-200",
196
-
197
- // Misc
198
- "cursor-pointer select-none",
199
- ],
200
- }),
201
- togglericon: {
202
- class: [
203
- // Size
204
- "w-4 h-4",
205
-
206
- // Color
207
- "text-surface-500 dark:text-white/70",
208
- ],
209
- },
210
- nodeCheckbox: ({ props, context, instance }) => ({
211
- root: {
212
- class: [
213
- "relative",
214
-
215
- // Alignment
216
- "inline-flex",
217
- "align-bottom",
218
-
219
- // Size
220
- "w-4",
221
- "h-4",
222
-
223
- // Spacing
224
- "mr-2",
225
-
226
- // Misc
227
- "cursor-default",
228
- "select-none",
229
- ],
230
- },
231
- box: {
232
- class: [
233
- // Alignment
234
- "flex",
235
- "items-center",
236
- "justify-center",
237
-
238
- // Size
239
- "w-4",
240
- "h-4",
241
-
242
- // Shape
243
- "rounded",
244
- "border",
245
-
246
- // Colors
247
- "text-surface-600",
248
- {
249
- "border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
250
- !context.checked,
251
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
252
- context.checked,
253
- },
254
-
255
- {
256
- "ring-2 ring-primary-500 dark:ring-primary-400":
257
- !props.disabled && context.focused,
258
- "cursor-default opacity-60": props.disabled,
259
- },
260
-
261
- // States
262
- {
263
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
264
- !props.disabled,
265
- "cursor-default opacity-60": props.disabled,
266
- },
267
-
268
- // Transitions
269
- "transition-colors",
270
- "duration-200",
271
- ],
272
- },
273
- input: {
274
- class: [
275
- "peer",
276
-
277
- // Size
278
- "w-full ",
279
- "h-full",
280
-
281
- // Position
282
- "absolute",
283
- "top-0 left-0",
284
- "z-10",
285
-
286
- // Spacing
287
- "p-0",
288
- "m-0",
289
-
290
- // Shape
291
- "rounded",
292
- "border",
293
-
294
- // Shape
295
- "opacity-0",
296
- "rounded-md",
297
- "outline-none",
298
- "border-2 border-surface-300 dark:border-surface-700",
299
-
300
- // Misc
301
- "appearance-none",
302
- ],
303
- },
304
- icon: {
305
- class: [
306
- // Font
307
- "text-normal",
308
-
309
- // Size
310
- "w-3",
311
- "h-3",
312
-
313
- // Colors
314
- {
315
- "text-white dark:text-surface-900": !instance.partialChecked,
316
- "text-gray dark:text-white": instance.partialChecked,
317
- },
318
-
319
- // Transitions
320
- "transition-all",
321
- "duration-200",
322
- ],
323
- },
324
- }),
325
- nodeicon: {
326
- class: [
327
- // Space
328
- "mr-2",
329
-
330
- // Color
331
- "text-surface-600 dark:text-white/70",
332
- ],
333
- },
334
- subgroup: {
335
- class: ["m-0 list-none p-0 pl-2 mt-1"],
336
- },
337
- filtercontainer: {
338
- class: [
339
- "relative block",
340
-
341
- // Space
342
- "mb-2",
343
-
344
- // Size
345
- "w-full",
346
- ],
347
- },
348
- input: {
349
- class: [
350
- "relative",
351
-
352
- // Font
353
- "font-sans leading-6",
354
- "sm:text-sm",
355
-
356
- // Spacing
357
- "m-0",
358
- "py-1.5 px-3 pr-10",
359
-
360
- // Size
361
- "w-full",
362
-
363
- // Shape
364
- "rounded-md",
365
-
366
- // Colors
367
- "text-surface-900 dark:text-surface-0",
368
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
369
- "bg-surface-0 dark:bg-surface-900",
370
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700 ring-offset-0",
371
-
372
- // States
373
- "hover:border-primary-500 dark:hover:border-primary-400",
374
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
375
-
376
- // Transition & Misc
377
- "appearance-none",
378
- "transition-colors duration-200",
379
- ],
380
- },
381
- loadingicon: {
382
- class: [
383
- "text-surface-500 dark:text-surface-0/70",
384
- "absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin",
385
- ],
386
- },
387
- searchicon: {
388
- class: [
389
- // Position
390
- "absolute top-1/2 -mt-2 right-3",
391
-
392
- // Color
393
- "text-surface-600 dark:hover:text-white/70",
394
- ],
395
- },
396
- },
397
- transition: {
398
- enterFromClass: "opacity-0 scale-y-[0.8]",
399
- enterActiveClass:
400
- "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
401
- leaveActiveClass: "transition-opacity duration-100 ease-linear",
402
- leaveToClass: "opacity-0",
403
- },
404
- };