@fewangsit/wangsvue-presets 1.0.81 → 1.0.82-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/fixedasset/accordion/index.d.ts +37 -0
  2. package/fixedasset/accordion/index.js +70 -0
  3. package/fixedasset/autocomplete/index.d.ts +188 -0
  4. package/fixedasset/autocomplete/index.js +247 -0
  5. package/fixedasset/avatar/index.d.ts +85 -0
  6. package/fixedasset/avatar/index.js +44 -0
  7. package/fixedasset/avatargroup/index.d.ts +8 -0
  8. package/fixedasset/avatargroup/index.js +9 -0
  9. package/fixedasset/badge/index.d.ts +47 -0
  10. package/fixedasset/badge/index.js +60 -0
  11. package/fixedasset/badgedirective/index.d.ts +50 -0
  12. package/fixedasset/badgedirective/index.js +49 -0
  13. package/fixedasset/badgegroup/index.d.ts +45 -0
  14. package/fixedasset/badgegroup/index.js +29 -0
  15. package/fixedasset/breadcrumb/index.d.ts +25 -0
  16. package/fixedasset/breadcrumb/index.js +31 -0
  17. package/fixedasset/button/index.d.ts +46 -0
  18. package/fixedasset/button/index.js +423 -0
  19. package/fixedasset/buttonbulkaction/index.d.ts +32 -0
  20. package/fixedasset/buttonbulkaction/index.js +35 -0
  21. package/fixedasset/buttondownload/index.d.ts +12 -0
  22. package/fixedasset/buttondownload/index.js +13 -0
  23. package/fixedasset/buttonfilter/index.d.ts +12 -0
  24. package/fixedasset/buttonfilter/index.js +13 -0
  25. package/fixedasset/buttonradio/index.d.ts +58 -0
  26. package/fixedasset/buttonradio/index.js +109 -0
  27. package/fixedasset/buttonsearch/index.d.ts +65 -0
  28. package/fixedasset/buttonsearch/index.js +62 -0
  29. package/fixedasset/calendar/index.d.ts +267 -0
  30. package/fixedasset/calendar/index.js +610 -0
  31. package/fixedasset/card/index.d.ts +31 -0
  32. package/fixedasset/card/index.js +32 -0
  33. package/fixedasset/carousel/index.d.ts +57 -0
  34. package/fixedasset/carousel/index.js +129 -0
  35. package/fixedasset/cascadeselect/index.d.ts +82 -0
  36. package/fixedasset/cascadeselect/index.js +191 -0
  37. package/fixedasset/changelog/index.d.ts +32 -0
  38. package/fixedasset/changelog/index.js +31 -0
  39. package/fixedasset/checkbox/index.d.ts +81 -0
  40. package/fixedasset/checkbox/index.js +107 -0
  41. package/fixedasset/chip/index.d.ts +23 -0
  42. package/fixedasset/chip/index.js +40 -0
  43. package/fixedasset/chips/index.d.ts +38 -0
  44. package/fixedasset/chips/index.js +98 -0
  45. package/fixedasset/colorpicker/index.d.ts +51 -0
  46. package/fixedasset/colorpicker/index.js +118 -0
  47. package/fixedasset/colors.config.json +77 -0
  48. package/fixedasset/confirmpopup/index.d.ts +39 -0
  49. package/fixedasset/confirmpopup/index.js +104 -0
  50. package/fixedasset/contextmenu/index.d.ts +63 -0
  51. package/fixedasset/contextmenu/index.js +113 -0
  52. package/fixedasset/datatable/index.d.ts +286 -0
  53. package/fixedasset/datatable/index.js +253 -0
  54. package/fixedasset/dataview/index.d.ts +15 -0
  55. package/fixedasset/dataview/index.js +36 -0
  56. package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
  57. package/fixedasset/dataviewlayoutoptions/index.js +58 -0
  58. package/fixedasset/dialog/index.d.ts +87 -0
  59. package/fixedasset/dialog/index.js +220 -0
  60. package/fixedasset/dialogconfirm/index.d.ts +42 -0
  61. package/fixedasset/dialogconfirm/index.js +45 -0
  62. package/fixedasset/dialogform/index.d.ts +71 -0
  63. package/fixedasset/dialogform/index.js +68 -0
  64. package/fixedasset/divider/index.d.ts +192 -0
  65. package/fixedasset/divider/index.js +64 -0
  66. package/fixedasset/dock/index.d.ts +51 -0
  67. package/fixedasset/dock/index.js +92 -0
  68. package/fixedasset/dropdown/index.d.ts +136 -0
  69. package/fixedasset/dropdown/index.js +207 -0
  70. package/fixedasset/fieldset/index.d.ts +94 -0
  71. package/fixedasset/fieldset/index.js +87 -0
  72. package/fixedasset/fileupload/index.d.ts +29 -0
  73. package/fixedasset/fileupload/index.js +31 -0
  74. package/fixedasset/form/index.d.ts +40 -0
  75. package/fixedasset/form/index.js +44 -0
  76. package/fixedasset/global.d.ts +8 -0
  77. package/fixedasset/global.js +14 -0
  78. package/fixedasset/image/index.d.ts +88 -0
  79. package/fixedasset/image/index.js +136 -0
  80. package/fixedasset/index.d.ts +190 -0
  81. package/fixedasset/index.js +201 -0
  82. package/fixedasset/index.system.js +76 -0
  83. package/fixedasset/inlinemessage/index.d.ts +20 -0
  84. package/fixedasset/inlinemessage/index.js +30 -0
  85. package/fixedasset/inputbadge/index.d.ts +57 -0
  86. package/fixedasset/inputbadge/index.js +57 -0
  87. package/fixedasset/inputcurrency/index.d.ts +27 -0
  88. package/fixedasset/inputcurrency/index.js +22 -0
  89. package/fixedasset/inputgroup/index.d.ts +9 -0
  90. package/fixedasset/inputgroup/index.js +37 -0
  91. package/fixedasset/inputgroupaddon/index.d.ts +17 -0
  92. package/fixedasset/inputgroupaddon/index.js +34 -0
  93. package/fixedasset/inputmask/index.d.ts +11 -0
  94. package/fixedasset/inputmask/index.js +29 -0
  95. package/fixedasset/inputnumber/index.d.ts +46 -0
  96. package/fixedasset/inputnumber/index.js +58 -0
  97. package/fixedasset/inputotp/index.d.ts +137 -0
  98. package/fixedasset/inputotp/index.js +63 -0
  99. package/fixedasset/inputphonenumber/index.d.ts +37 -0
  100. package/fixedasset/inputphonenumber/index.js +34 -0
  101. package/fixedasset/inputswitch/index.d.ts +67 -0
  102. package/fixedasset/inputswitch/index.js +100 -0
  103. package/fixedasset/inputtext/index.d.ts +18 -0
  104. package/fixedasset/inputtext/index.js +28 -0
  105. package/fixedasset/knob/index.d.ts +22 -0
  106. package/fixedasset/knob/index.js +45 -0
  107. package/fixedasset/listbox/index.d.ts +79 -0
  108. package/fixedasset/listbox/index.js +138 -0
  109. package/fixedasset/megamenu/index.d.ts +105 -0
  110. package/fixedasset/megamenu/index.js +202 -0
  111. package/fixedasset/menu/index.d.ts +49 -0
  112. package/fixedasset/menu/index.js +110 -0
  113. package/fixedasset/menubar/index.d.ts +85 -0
  114. package/fixedasset/menubar/index.js +172 -0
  115. package/fixedasset/message/index.d.ts +41 -0
  116. package/fixedasset/message/index.js +85 -0
  117. package/fixedasset/multiselect/index.d.ts +243 -0
  118. package/fixedasset/multiselect/index.js +328 -0
  119. package/fixedasset/orderlist/index.d.ts +99 -0
  120. package/fixedasset/orderlist/index.js +245 -0
  121. package/fixedasset/organizationchart/index.d.ts +71 -0
  122. package/fixedasset/organizationchart/index.js +129 -0
  123. package/fixedasset/overlaypanel/index.d.ts +17 -0
  124. package/fixedasset/overlaypanel/index.js +34 -0
  125. package/fixedasset/paginator/index.d.ts +210 -0
  126. package/fixedasset/paginator/index.js +474 -0
  127. package/fixedasset/panel/index.d.ts +43 -0
  128. package/fixedasset/panel/index.js +85 -0
  129. package/fixedasset/panelmenu/index.d.ts +76 -0
  130. package/fixedasset/panelmenu/index.js +124 -0
  131. package/fixedasset/password/index.d.ts +45 -0
  132. package/fixedasset/password/index.js +96 -0
  133. package/fixedasset/picklist/index.d.ts +245 -0
  134. package/fixedasset/picklist/index.js +613 -0
  135. package/fixedasset/progressbar/index.d.ts +117 -0
  136. package/fixedasset/progressbar/index.js +102 -0
  137. package/fixedasset/rating/index.d.ts +47 -0
  138. package/fixedasset/rating/index.js +88 -0
  139. package/fixedasset/ripple/index.d.ts +8 -0
  140. package/fixedasset/ripple/index.js +8 -0
  141. package/fixedasset/scrollpanel/index.d.ts +19 -0
  142. package/fixedasset/scrollpanel/index.js +62 -0
  143. package/fixedasset/scrolltop/index.d.ts +50 -0
  144. package/fixedasset/scrolltop/index.js +42 -0
  145. package/fixedasset/selectbutton/index.d.ts +35 -0
  146. package/fixedasset/selectbutton/index.js +60 -0
  147. package/fixedasset/sidebar/index.d.ts +66 -0
  148. package/fixedasset/sidebar/index.js +145 -0
  149. package/fixedasset/skeleton/index.d.ts +16 -0
  150. package/fixedasset/skeleton/index.js +22 -0
  151. package/fixedasset/slider/index.d.ts +55 -0
  152. package/fixedasset/slider/index.js +126 -0
  153. package/fixedasset/splitbutton/index.d.ts +6690 -0
  154. package/fixedasset/splitbutton/index.js +786 -0
  155. package/fixedasset/steps/index.d.ts +108 -0
  156. package/fixedasset/steps/index.js +119 -0
  157. package/fixedasset/style.css +5888 -0
  158. package/fixedasset/tabmenu/index.d.ts +57 -0
  159. package/fixedasset/tabmenu/index.js +75 -0
  160. package/fixedasset/tabview/index.d.ts +67 -0
  161. package/fixedasset/tabview/index.js +148 -0
  162. package/fixedasset/tag/index.d.ts +32 -0
  163. package/fixedasset/tag/index.js +37 -0
  164. package/fixedasset/terminal/index.d.ts +27 -0
  165. package/fixedasset/terminal/index.js +55 -0
  166. package/fixedasset/textarea/index.d.ts +12 -0
  167. package/fixedasset/textarea/index.js +51 -0
  168. package/fixedasset/tieredmenu/index.d.ts +56 -0
  169. package/fixedasset/tieredmenu/index.js +108 -0
  170. package/fixedasset/timeline/index.d.ts +53 -0
  171. package/fixedasset/timeline/index.js +83 -0
  172. package/fixedasset/toast/index.d.ts +61 -0
  173. package/fixedasset/toast/index.js +95 -0
  174. package/fixedasset/togglebutton/index.d.ts +42 -0
  175. package/fixedasset/togglebutton/index.js +77 -0
  176. package/fixedasset/toolbar/index.d.ts +19 -0
  177. package/fixedasset/toolbar/index.js +29 -0
  178. package/fixedasset/tooltip/index.d.ts +22 -0
  179. package/fixedasset/tooltip/index.js +42 -0
  180. package/fixedasset/tree/index.d.ts +117 -0
  181. package/fixedasset/tree/index.js +256 -0
  182. package/fixedasset/treeselect/index.d.ts +158 -0
  183. package/fixedasset/treeselect/index.js +338 -0
  184. package/fixedasset/tristatecheckbox/index.d.ts +49 -0
  185. package/fixedasset/tristatecheckbox/index.js +106 -0
  186. package/fixedasset/validatormessage/index.d.ts +8 -0
  187. package/fixedasset/validatormessage/index.js +9 -0
  188. package/fixedasset/workcalendar/index.d.ts +27 -0
  189. package/fixedasset/workcalendar/index.js +36 -0
  190. package/index.d.ts +1 -0
  191. package/index.js +3 -1
  192. package/package.json +1 -1
@@ -0,0 +1,338 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ root: function (_a) {
5
+ var props = _a.props, state = _a.state;
6
+ return ({
7
+ class: [
8
+ // Display and Position
9
+ 'inline-flex',
10
+ 'relative',
11
+ // Shape
12
+ 'w-full md:w-56',
13
+ 'rounded-md',
14
+ 'shadow-sm',
15
+ // Color and Background
16
+ 'bg-surface-0',
17
+ // States
18
+ {
19
+ 'ring-1 ring-inset ring-surface-300': !state.focused,
20
+ 'ring-2 ring-inset ring-primary-500': state.focused,
21
+ },
22
+ // Misc
23
+ 'cursor-default',
24
+ 'select-none',
25
+ { 'opacity-60': props.disabled, 'pointer-events-none': props.disabled },
26
+ ],
27
+ });
28
+ },
29
+ labelContainer: {
30
+ class: ['overflow-hidden flex flex-auto cursor-pointer'],
31
+ },
32
+ label: {
33
+ class: [
34
+ 'block leading-5',
35
+ // Space
36
+ 'py-1.5 px-3',
37
+ // Color
38
+ 'text-surface-800/80',
39
+ // Transition
40
+ 'transition duration-200',
41
+ // Misc
42
+ 'overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis',
43
+ ],
44
+ },
45
+ trigger: {
46
+ class: [
47
+ //Font
48
+ 'sm:text-sm',
49
+ // Flexbox
50
+ 'flex items-center justify-center',
51
+ 'shrink-0',
52
+ // Color and Background
53
+ 'bg-transparent',
54
+ 'text-surface-500',
55
+ // Size
56
+ 'w-12',
57
+ // Shape
58
+ 'rounded-tr-md',
59
+ 'rounded-br-md',
60
+ ],
61
+ },
62
+ panel: {
63
+ class: [
64
+ // Position
65
+ 'absolute top-0 left-0',
66
+ 'mt-2',
67
+ // Shape
68
+ 'border-0',
69
+ 'rounded-md',
70
+ 'shadow-md',
71
+ // Color
72
+ 'bg-surface-0',
73
+ 'text-surface-800/80',
74
+ 'ring-1 ring-inset ring-surface-300',
75
+ ],
76
+ },
77
+ wrapper: {
78
+ class: [
79
+ // Sizing
80
+ 'max-h-[200px]',
81
+ // Misc
82
+ 'overflow-auto',
83
+ ],
84
+ },
85
+ tree: {
86
+ root: {
87
+ class: [
88
+ 'relative',
89
+ // Space
90
+ 'p-1.5',
91
+ ],
92
+ },
93
+ wrapper: {
94
+ class: ['overflow-auto'],
95
+ },
96
+ container: {
97
+ class: [
98
+ // Spacing
99
+ 'm-0 p-0',
100
+ // Misc
101
+ 'list-none overflow-auto',
102
+ ],
103
+ },
104
+ node: {
105
+ class: [
106
+ 'p-[2px]',
107
+ 'rounded-md',
108
+ 'focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500',
109
+ ],
110
+ },
111
+ content: function (_a) {
112
+ var context = _a.context, props = _a.props;
113
+ return ({
114
+ class: [
115
+ // Flex and Alignment
116
+ 'flex items-center',
117
+ // Shape
118
+ 'rounded-md',
119
+ // Spacing
120
+ 'p-2',
121
+ // Colors
122
+ 'text-surface-700',
123
+ {
124
+ 'bg-surface-100 text-primary-500': context.selected,
125
+ },
126
+ // States
127
+ {
128
+ 'hover:bg-surface-200': props.selectionMode == 'single' ||
129
+ props.selectionMode == 'multiple',
130
+ },
131
+ // Transition
132
+ 'transition-shadow duration-200',
133
+ {
134
+ 'cursor-pointer select-none': props.selectionMode == 'single' ||
135
+ props.selectionMode == 'multiple',
136
+ },
137
+ ],
138
+ });
139
+ },
140
+ toggler: function (_a) {
141
+ var context = _a.context;
142
+ return ({
143
+ class: [
144
+ // Flex and Alignment
145
+ 'inline-flex items-center justify-center',
146
+ // Shape
147
+ 'border-0 rounded-full',
148
+ // Size and Spacing
149
+ 'mr-2',
150
+ 'w-6 h-6',
151
+ // Spacing
152
+ 'mr-2',
153
+ // Colors
154
+ 'text-surface-500',
155
+ 'bg-transparent',
156
+ {
157
+ invisible: context.leaf,
158
+ },
159
+ // States
160
+ 'hover:text-surface-700',
161
+ 'hover:bg-surface-100',
162
+ 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset',
163
+ 'focus:ring-primary-500',
164
+ // Transition
165
+ 'transition duration-200',
166
+ // Misc
167
+ 'cursor-pointer select-none',
168
+ ],
169
+ });
170
+ },
171
+ togglericon: {
172
+ class: [
173
+ // Size
174
+ 'w-4 h-4',
175
+ // Color
176
+ 'text-surface-500/70',
177
+ ],
178
+ },
179
+ nodeCheckbox: {
180
+ root: {
181
+ class: [
182
+ 'relative',
183
+ // Alignment
184
+ 'inline-flex',
185
+ 'align-bottom',
186
+ // Size
187
+ 'w-4',
188
+ 'h-4',
189
+ // Spacing
190
+ 'mr-2',
191
+ // Misc
192
+ 'cursor-default',
193
+ 'select-none',
194
+ ],
195
+ },
196
+ box: function (_a) {
197
+ var props = _a.props, context = _a.context;
198
+ return ({
199
+ class: [
200
+ // Alignment
201
+ 'flex',
202
+ 'items-center',
203
+ 'justify-center',
204
+ // Size
205
+ 'w-4',
206
+ 'h-4',
207
+ // Shape
208
+ 'rounded',
209
+ 'border',
210
+ // Colors
211
+ 'text-surface-600',
212
+ {
213
+ 'border-surface-300 bg-surface-0': !context.checked,
214
+ 'border-primary-500 bg-primary-500': context.checked,
215
+ },
216
+ {
217
+ 'ring-2 ring-primary-500': !props.disabled && context.focused,
218
+ 'cursor-default opacity-60': props.disabled,
219
+ },
220
+ // States
221
+ {
222
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500': !props.disabled,
223
+ 'cursor-default opacity-60': props.disabled,
224
+ },
225
+ // Transitions
226
+ 'transition-colors',
227
+ 'duration-200',
228
+ ],
229
+ });
230
+ },
231
+ input: {
232
+ class: [
233
+ 'peer',
234
+ // Size
235
+ 'w-full ',
236
+ 'h-full',
237
+ // Position
238
+ 'absolute',
239
+ 'top-0 left-0',
240
+ 'z-10',
241
+ // Spacing
242
+ 'p-0',
243
+ 'm-0',
244
+ // Shape
245
+ 'rounded',
246
+ 'border',
247
+ // Shape
248
+ 'opacity-0',
249
+ 'rounded-md',
250
+ 'outline-none',
251
+ 'border-2 border-surface-300',
252
+ // Misc
253
+ 'appareance-none',
254
+ ],
255
+ },
256
+ icon: {
257
+ class: [
258
+ // Font
259
+ 'text-normal',
260
+ // Size
261
+ 'w-3',
262
+ 'h-3',
263
+ // Colors
264
+ 'text-white',
265
+ // Transitions
266
+ 'transition-all',
267
+ 'duration-200',
268
+ ],
269
+ },
270
+ },
271
+ nodeicon: {
272
+ class: [
273
+ // Space
274
+ 'mr-2',
275
+ // Color
276
+ 'text-surface-600/70',
277
+ ],
278
+ },
279
+ subgroup: {
280
+ class: ['m-0 list-none p-0 pl-2 mt-1'],
281
+ },
282
+ filtercontainer: {
283
+ class: [
284
+ 'relative block',
285
+ // Space
286
+ 'mb-2',
287
+ // Size
288
+ 'w-full',
289
+ ],
290
+ },
291
+ input: {
292
+ class: [
293
+ 'relative',
294
+ // Font
295
+ 'font-sans leading-6',
296
+ 'sm:text-sm',
297
+ // Spacing
298
+ 'm-0',
299
+ 'py-1.5 px-3 pr-10',
300
+ // Size
301
+ 'w-full',
302
+ // Shape
303
+ 'rounded-md',
304
+ // Colors
305
+ 'text-surface-900',
306
+ 'placeholder:text-surface-400',
307
+ 'bg-surface-0',
308
+ 'ring-1 ring-inset ring-surface-300',
309
+ // States
310
+ 'hover:border-primary-500',
311
+ 'focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500',
312
+ // Transition & Misc
313
+ 'appearance-none',
314
+ 'transition-colors duration-200',
315
+ ],
316
+ },
317
+ loadingicon: {
318
+ class: [
319
+ 'text-surface-500',
320
+ 'absolute top-[50%] right-[50%] -mt-2 -mr-2 animate-spin',
321
+ ],
322
+ },
323
+ searchicon: {
324
+ class: [
325
+ // Position
326
+ 'absolute top-1/2 -mt-2 right-3',
327
+ // Color
328
+ 'text-surface-600',
329
+ ],
330
+ },
331
+ },
332
+ transition: {
333
+ enterFromClass: 'opacity-0 scale-y-[0.8]',
334
+ enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
335
+ leaveActiveClass: 'transition-opacity duration-100 ease-linear',
336
+ leaveToClass: 'opacity-0',
337
+ },
338
+ };
@@ -0,0 +1,49 @@
1
+ declare namespace _default {
2
+ namespace root {
3
+ let _class: string[];
4
+ export { _class as class };
5
+ }
6
+ function box({ props, context }: {
7
+ props: any;
8
+ context: any;
9
+ }): {
10
+ class: (string | {
11
+ 'border-general-100 bg-surface-0': boolean;
12
+ 'border-primary-500 bg-primary-500': boolean;
13
+ 'ring-2 ring-primary-500'?: undefined;
14
+ 'cursor-default'?: undefined;
15
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary'?: undefined;
16
+ 'cursor-default bg-general-50 border-general-200'?: undefined;
17
+ 'bg-general-200 border-general-200'?: undefined;
18
+ } | {
19
+ 'ring-2 ring-primary-500': any;
20
+ 'cursor-default': any;
21
+ 'border-general-100 bg-surface-0'?: undefined;
22
+ 'border-primary-500 bg-primary-500'?: undefined;
23
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary'?: undefined;
24
+ 'cursor-default bg-general-50 border-general-200'?: undefined;
25
+ 'bg-general-200 border-general-200'?: undefined;
26
+ } | {
27
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary': boolean;
28
+ 'cursor-default bg-general-50 border-general-200': boolean;
29
+ 'bg-general-200 border-general-200': any;
30
+ 'border-general-100 bg-surface-0'?: undefined;
31
+ 'border-primary-500 bg-primary-500'?: undefined;
32
+ 'ring-2 ring-primary-500'?: undefined;
33
+ 'cursor-default'?: undefined;
34
+ })[];
35
+ };
36
+ namespace input {
37
+ let _class_1: string[];
38
+ export { _class_1 as class };
39
+ }
40
+ namespace checkicon {
41
+ let _class_2: string[];
42
+ export { _class_2 as class };
43
+ }
44
+ namespace uncheckicon {
45
+ let _class_3: string[];
46
+ export { _class_3 as class };
47
+ }
48
+ }
49
+ export default _default;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ root: {
5
+ class: [
6
+ 'relative',
7
+ 'w-4 h-4',
8
+ // Alignment
9
+ 'inline-flex',
10
+ 'align-bottom',
11
+ // Transitions
12
+ 'transition-all',
13
+ 'duration-200',
14
+ ],
15
+ },
16
+ box: function (_a) {
17
+ var props = _a.props, context = _a.context;
18
+ return ({
19
+ class: [
20
+ // Alignment
21
+ 'flex',
22
+ 'items-center',
23
+ 'justify-center',
24
+ // Size
25
+ 'w-full',
26
+ 'h-full',
27
+ // Shape
28
+ 'rounded',
29
+ 'border-2',
30
+ // Colors
31
+ 'text-surface-0',
32
+ {
33
+ 'border-general-100 bg-surface-0': !context.active && !props.disabled,
34
+ 'border-primary-500 bg-primary-500': context.active && !props.disabled,
35
+ },
36
+ {
37
+ 'ring-2 ring-primary-500': !props.disabled && context.focused,
38
+ 'cursor-default': props.disabled,
39
+ },
40
+ // States
41
+ {
42
+ 'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary': !props.disabled,
43
+ 'cursor-default bg-general-50 border-general-200': props.disabled && !context.active,
44
+ 'bg-general-200 border-general-200': props.disabled && context.active,
45
+ },
46
+ // Transitions
47
+ 'transition-colors',
48
+ 'duration-200',
49
+ ],
50
+ });
51
+ },
52
+ input: {
53
+ class: [
54
+ 'peer',
55
+ // Size
56
+ 'w-full ',
57
+ 'h-full',
58
+ // Position
59
+ 'absolute',
60
+ 'top-0 left-0',
61
+ 'z-10',
62
+ // Spacing
63
+ 'p-0',
64
+ 'm-0',
65
+ // Shape
66
+ 'rounded',
67
+ 'border',
68
+ // Shape
69
+ 'opacity-0',
70
+ 'rounded-md',
71
+ 'outline-none',
72
+ 'border-2 border-surface-300',
73
+ // Misc
74
+ 'appareance-none',
75
+ 'cursor-pointer',
76
+ ],
77
+ },
78
+ checkicon: {
79
+ class: [
80
+ // Font
81
+ 'text-normal',
82
+ // Size
83
+ 'w-3',
84
+ 'h-3',
85
+ // Colors
86
+ 'text-surface-0',
87
+ // Transitions
88
+ 'transition-all',
89
+ 'duration-200',
90
+ ],
91
+ },
92
+ uncheckicon: {
93
+ class: [
94
+ // Font
95
+ 'text-normal',
96
+ // Size
97
+ 'w-3',
98
+ 'h-3',
99
+ // Colors
100
+ 'text-surface-0',
101
+ // Transitions
102
+ 'transition-all',
103
+ 'duration-200',
104
+ ],
105
+ },
106
+ };
@@ -0,0 +1,8 @@
1
+ declare namespace _default {
2
+ let root: {
3
+ class: string[];
4
+ 'data-wv-name': string;
5
+ 'data-wv-section': string;
6
+ };
7
+ }
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ root: {
5
+ 'class': ['!mt-0 text-danger-500 text-xs font-light'],
6
+ 'data-wv-name': 'validatormessage',
7
+ 'data-wv-section': 'root',
8
+ },
9
+ };
@@ -0,0 +1,27 @@
1
+ declare namespace _default {
2
+ function next({ context }: {
3
+ context: any;
4
+ }): {
5
+ class: (string | {
6
+ '!text-general-300 pointer-events-none': any;
7
+ })[];
8
+ };
9
+ function prev({ context }: {
10
+ context: any;
11
+ }): {
12
+ class: (string | {
13
+ '!text-general-300 pointer-events-none': any;
14
+ })[];
15
+ };
16
+ function daylabel({ context }: {
17
+ context: any;
18
+ }): {
19
+ class: (string | {
20
+ hidden: any;
21
+ 'text-white !rounded-full focus:outline-none focus-visible:outline-none cursor-pointer': any;
22
+ 'bg-danger-500 hover:bg-danger-500/90': boolean;
23
+ 'bg-primary-1000 hover:bg-primary-1000/90': boolean;
24
+ })[];
25
+ };
26
+ }
27
+ export default _default;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ next: function (_a) {
5
+ var context = _a.context;
6
+ return ({
7
+ class: [
8
+ 'text-2xl text-general-900',
9
+ { '!text-general-300 pointer-events-none': context.disableNextButton },
10
+ ],
11
+ });
12
+ },
13
+ prev: function (_a) {
14
+ var context = _a.context;
15
+ return ({
16
+ class: [
17
+ 'text-2xl text-general-900 rotate-180',
18
+ { '!text-general-300 pointer-events-none': context.disablePrevButton },
19
+ ],
20
+ });
21
+ },
22
+ daylabel: function (_a) {
23
+ var context = _a.context;
24
+ return ({
25
+ class: [
26
+ 'flex items-center justify-center w-12 h-12 focus:outline-none focus-visible:outline-none cursor-pointer',
27
+ {
28
+ 'hidden': context.day.isOtherMonth,
29
+ 'text-white !rounded-full focus:outline-none focus-visible:outline-none cursor-pointer': context.day.isWorkDay || context.day.isNationalHoliday,
30
+ 'bg-danger-500 hover:bg-danger-500/90': context.day.state === 'holiday',
31
+ 'bg-primary-1000 hover:bg-primary-1000/90': context.day.state === 'workday',
32
+ },
33
+ ],
34
+ });
35
+ },
36
+ };
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default as wangsvue } from './wangsvue';
2
+ export { default as fixedasset } from './fixedasset';
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wangsvue = void 0;
3
+ exports.fixedasset = exports.wangsvue = void 0;
4
4
  var wangsvue_1 = require("./wangsvue");
5
5
  Object.defineProperty(exports, "wangsvue", { enumerable: true, get: function () { return wangsvue_1.default; } });
6
+ var fixedasset_1 = require("./fixedasset");
7
+ Object.defineProperty(exports, "fixedasset", { enumerable: true, get: function () { return fixedasset_1.default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-presets",
3
- "version": "1.0.81",
3
+ "version": "1.0.82-alpha.1",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Wangsit VueJS Component Library Presets",
6
6
  "main": "index.js",