@fewangsit/wangsvue-presets 1.0.80

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 (192) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +5 -0
  3. package/package.json +13 -0
  4. package/wangsvue/accordion/index.d.ts +37 -0
  5. package/wangsvue/accordion/index.js +70 -0
  6. package/wangsvue/autocomplete/index.d.ts +188 -0
  7. package/wangsvue/autocomplete/index.js +247 -0
  8. package/wangsvue/avatar/index.d.ts +85 -0
  9. package/wangsvue/avatar/index.js +44 -0
  10. package/wangsvue/avatargroup/index.d.ts +8 -0
  11. package/wangsvue/avatargroup/index.js +9 -0
  12. package/wangsvue/badge/index.d.ts +47 -0
  13. package/wangsvue/badge/index.js +60 -0
  14. package/wangsvue/badgedirective/index.d.ts +50 -0
  15. package/wangsvue/badgedirective/index.js +49 -0
  16. package/wangsvue/badgegroup/index.d.ts +45 -0
  17. package/wangsvue/badgegroup/index.js +29 -0
  18. package/wangsvue/breadcrumb/index.d.ts +25 -0
  19. package/wangsvue/breadcrumb/index.js +31 -0
  20. package/wangsvue/button/index.d.ts +46 -0
  21. package/wangsvue/button/index.js +423 -0
  22. package/wangsvue/buttonbulkaction/index.d.ts +32 -0
  23. package/wangsvue/buttonbulkaction/index.js +35 -0
  24. package/wangsvue/buttondownload/index.d.ts +12 -0
  25. package/wangsvue/buttondownload/index.js +13 -0
  26. package/wangsvue/buttonfilter/index.d.ts +12 -0
  27. package/wangsvue/buttonfilter/index.js +13 -0
  28. package/wangsvue/buttonradio/index.d.ts +58 -0
  29. package/wangsvue/buttonradio/index.js +109 -0
  30. package/wangsvue/buttonsearch/index.d.ts +65 -0
  31. package/wangsvue/buttonsearch/index.js +62 -0
  32. package/wangsvue/calendar/index.d.ts +267 -0
  33. package/wangsvue/calendar/index.js +610 -0
  34. package/wangsvue/card/index.d.ts +31 -0
  35. package/wangsvue/card/index.js +32 -0
  36. package/wangsvue/carousel/index.d.ts +57 -0
  37. package/wangsvue/carousel/index.js +129 -0
  38. package/wangsvue/cascadeselect/index.d.ts +82 -0
  39. package/wangsvue/cascadeselect/index.js +191 -0
  40. package/wangsvue/changelog/index.d.ts +32 -0
  41. package/wangsvue/changelog/index.js +31 -0
  42. package/wangsvue/checkbox/index.d.ts +81 -0
  43. package/wangsvue/checkbox/index.js +107 -0
  44. package/wangsvue/chip/index.d.ts +23 -0
  45. package/wangsvue/chip/index.js +40 -0
  46. package/wangsvue/chips/index.d.ts +38 -0
  47. package/wangsvue/chips/index.js +98 -0
  48. package/wangsvue/colorpicker/index.d.ts +51 -0
  49. package/wangsvue/colorpicker/index.js +118 -0
  50. package/wangsvue/colors.config.json +77 -0
  51. package/wangsvue/confirmpopup/index.d.ts +39 -0
  52. package/wangsvue/confirmpopup/index.js +104 -0
  53. package/wangsvue/contextmenu/index.d.ts +63 -0
  54. package/wangsvue/contextmenu/index.js +113 -0
  55. package/wangsvue/datatable/index.d.ts +286 -0
  56. package/wangsvue/datatable/index.js +253 -0
  57. package/wangsvue/dataview/index.d.ts +15 -0
  58. package/wangsvue/dataview/index.js +36 -0
  59. package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
  60. package/wangsvue/dataviewlayoutoptions/index.js +58 -0
  61. package/wangsvue/dialog/index.d.ts +87 -0
  62. package/wangsvue/dialog/index.js +220 -0
  63. package/wangsvue/dialogconfirm/index.d.ts +42 -0
  64. package/wangsvue/dialogconfirm/index.js +45 -0
  65. package/wangsvue/dialogform/index.d.ts +71 -0
  66. package/wangsvue/dialogform/index.js +68 -0
  67. package/wangsvue/divider/index.d.ts +192 -0
  68. package/wangsvue/divider/index.js +64 -0
  69. package/wangsvue/dock/index.d.ts +51 -0
  70. package/wangsvue/dock/index.js +92 -0
  71. package/wangsvue/dropdown/index.d.ts +136 -0
  72. package/wangsvue/dropdown/index.js +207 -0
  73. package/wangsvue/fieldset/index.d.ts +94 -0
  74. package/wangsvue/fieldset/index.js +87 -0
  75. package/wangsvue/fileupload/index.d.ts +29 -0
  76. package/wangsvue/fileupload/index.js +31 -0
  77. package/wangsvue/form/index.d.ts +40 -0
  78. package/wangsvue/form/index.js +44 -0
  79. package/wangsvue/global.d.ts +8 -0
  80. package/wangsvue/global.js +14 -0
  81. package/wangsvue/image/index.d.ts +88 -0
  82. package/wangsvue/image/index.js +136 -0
  83. package/wangsvue/index.d.ts +190 -0
  84. package/wangsvue/index.js +201 -0
  85. package/wangsvue/index.system.js +76 -0
  86. package/wangsvue/inlinemessage/index.d.ts +20 -0
  87. package/wangsvue/inlinemessage/index.js +30 -0
  88. package/wangsvue/inputbadge/index.d.ts +57 -0
  89. package/wangsvue/inputbadge/index.js +57 -0
  90. package/wangsvue/inputcurrency/index.d.ts +27 -0
  91. package/wangsvue/inputcurrency/index.js +22 -0
  92. package/wangsvue/inputgroup/index.d.ts +9 -0
  93. package/wangsvue/inputgroup/index.js +37 -0
  94. package/wangsvue/inputgroupaddon/index.d.ts +17 -0
  95. package/wangsvue/inputgroupaddon/index.js +34 -0
  96. package/wangsvue/inputmask/index.d.ts +11 -0
  97. package/wangsvue/inputmask/index.js +29 -0
  98. package/wangsvue/inputnumber/index.d.ts +46 -0
  99. package/wangsvue/inputnumber/index.js +58 -0
  100. package/wangsvue/inputotp/index.d.ts +137 -0
  101. package/wangsvue/inputotp/index.js +63 -0
  102. package/wangsvue/inputphonenumber/index.d.ts +37 -0
  103. package/wangsvue/inputphonenumber/index.js +34 -0
  104. package/wangsvue/inputswitch/index.d.ts +67 -0
  105. package/wangsvue/inputswitch/index.js +100 -0
  106. package/wangsvue/inputtext/index.d.ts +18 -0
  107. package/wangsvue/inputtext/index.js +28 -0
  108. package/wangsvue/knob/index.d.ts +22 -0
  109. package/wangsvue/knob/index.js +45 -0
  110. package/wangsvue/listbox/index.d.ts +79 -0
  111. package/wangsvue/listbox/index.js +138 -0
  112. package/wangsvue/megamenu/index.d.ts +105 -0
  113. package/wangsvue/megamenu/index.js +202 -0
  114. package/wangsvue/menu/index.d.ts +49 -0
  115. package/wangsvue/menu/index.js +110 -0
  116. package/wangsvue/menubar/index.d.ts +85 -0
  117. package/wangsvue/menubar/index.js +172 -0
  118. package/wangsvue/message/index.d.ts +41 -0
  119. package/wangsvue/message/index.js +85 -0
  120. package/wangsvue/multiselect/index.d.ts +243 -0
  121. package/wangsvue/multiselect/index.js +328 -0
  122. package/wangsvue/orderlist/index.d.ts +99 -0
  123. package/wangsvue/orderlist/index.js +245 -0
  124. package/wangsvue/organizationchart/index.d.ts +71 -0
  125. package/wangsvue/organizationchart/index.js +129 -0
  126. package/wangsvue/overlaypanel/index.d.ts +17 -0
  127. package/wangsvue/overlaypanel/index.js +34 -0
  128. package/wangsvue/paginator/index.d.ts +210 -0
  129. package/wangsvue/paginator/index.js +474 -0
  130. package/wangsvue/panel/index.d.ts +43 -0
  131. package/wangsvue/panel/index.js +85 -0
  132. package/wangsvue/panelmenu/index.d.ts +76 -0
  133. package/wangsvue/panelmenu/index.js +124 -0
  134. package/wangsvue/password/index.d.ts +45 -0
  135. package/wangsvue/password/index.js +96 -0
  136. package/wangsvue/picklist/index.d.ts +245 -0
  137. package/wangsvue/picklist/index.js +613 -0
  138. package/wangsvue/progressbar/index.d.ts +117 -0
  139. package/wangsvue/progressbar/index.js +102 -0
  140. package/wangsvue/rating/index.d.ts +47 -0
  141. package/wangsvue/rating/index.js +88 -0
  142. package/wangsvue/ripple/index.d.ts +8 -0
  143. package/wangsvue/ripple/index.js +8 -0
  144. package/wangsvue/scrollpanel/index.d.ts +19 -0
  145. package/wangsvue/scrollpanel/index.js +62 -0
  146. package/wangsvue/scrolltop/index.d.ts +50 -0
  147. package/wangsvue/scrolltop/index.js +42 -0
  148. package/wangsvue/selectbutton/index.d.ts +35 -0
  149. package/wangsvue/selectbutton/index.js +60 -0
  150. package/wangsvue/sidebar/index.d.ts +66 -0
  151. package/wangsvue/sidebar/index.js +145 -0
  152. package/wangsvue/skeleton/index.d.ts +16 -0
  153. package/wangsvue/skeleton/index.js +22 -0
  154. package/wangsvue/slider/index.d.ts +55 -0
  155. package/wangsvue/slider/index.js +126 -0
  156. package/wangsvue/splitbutton/index.d.ts +6690 -0
  157. package/wangsvue/splitbutton/index.js +786 -0
  158. package/wangsvue/steps/index.d.ts +108 -0
  159. package/wangsvue/steps/index.js +119 -0
  160. package/wangsvue/style.css +5823 -0
  161. package/wangsvue/tabmenu/index.d.ts +57 -0
  162. package/wangsvue/tabmenu/index.js +75 -0
  163. package/wangsvue/tabview/index.d.ts +67 -0
  164. package/wangsvue/tabview/index.js +148 -0
  165. package/wangsvue/tag/index.d.ts +32 -0
  166. package/wangsvue/tag/index.js +37 -0
  167. package/wangsvue/terminal/index.d.ts +27 -0
  168. package/wangsvue/terminal/index.js +55 -0
  169. package/wangsvue/textarea/index.d.ts +12 -0
  170. package/wangsvue/textarea/index.js +51 -0
  171. package/wangsvue/tieredmenu/index.d.ts +56 -0
  172. package/wangsvue/tieredmenu/index.js +108 -0
  173. package/wangsvue/timeline/index.d.ts +53 -0
  174. package/wangsvue/timeline/index.js +83 -0
  175. package/wangsvue/toast/index.d.ts +61 -0
  176. package/wangsvue/toast/index.js +95 -0
  177. package/wangsvue/togglebutton/index.d.ts +42 -0
  178. package/wangsvue/togglebutton/index.js +77 -0
  179. package/wangsvue/toolbar/index.d.ts +19 -0
  180. package/wangsvue/toolbar/index.js +29 -0
  181. package/wangsvue/tooltip/index.d.ts +22 -0
  182. package/wangsvue/tooltip/index.js +42 -0
  183. package/wangsvue/tree/index.d.ts +117 -0
  184. package/wangsvue/tree/index.js +256 -0
  185. package/wangsvue/treeselect/index.d.ts +158 -0
  186. package/wangsvue/treeselect/index.js +338 -0
  187. package/wangsvue/tristatecheckbox/index.d.ts +49 -0
  188. package/wangsvue/tristatecheckbox/index.js +106 -0
  189. package/wangsvue/validatormessage/index.d.ts +8 -0
  190. package/wangsvue/validatormessage/index.js +9 -0
  191. package/wangsvue/workcalendar/index.d.ts +27 -0
  192. package/wangsvue/workcalendar/index.js +36 -0
@@ -0,0 +1,610 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var timepickerlabel = {
4
+ class: '[&_span]:w-[37px] [&_span]:h-[26px] [&_span]:flex [&_span]:justify-center [&_span]:items-center [&_span]:border [&_span]:border-general-200 [&_span]:rounded [&_span]:',
5
+ };
6
+ exports.default = {
7
+ root: function (_a) {
8
+ var props = _a.props;
9
+ return ({
10
+ class: [
11
+ // Display and Position
12
+ 'inline-flex flex-auto justify-between items-center gap-[5px]',
13
+ 'rounded',
14
+ // Spacing
15
+ 'm-0 px-3 py-1',
16
+ // Border already handled by input group.
17
+ // Misc
18
+ {
19
+ 'select-none pointer-events-none cursor-default': props.disabled,
20
+ },
21
+ ],
22
+ });
23
+ },
24
+ input: function (_a) {
25
+ var props = _a.props;
26
+ return ({
27
+ class: [
28
+ 'w-full peer',
29
+ // Font
30
+ 'text-xs font-normal placeholder:font-normal leading-6',
31
+ // Colors
32
+ 'text-grayscale-900',
33
+ 'placeholder:text-general-200',
34
+ // Shape
35
+ 'appearance-none',
36
+ // { 'rounded-md': !props.showIcon || props.iconDisplay == 'input' },
37
+ // {
38
+ // 'rounded-l-md flex-1 pr-9 ':
39
+ // props.showIcon && props.iconDisplay !== 'input',
40
+ // },
41
+ // {
42
+ // 'rounded-md flex-1 pr-9':
43
+ // props.showIcon && props.iconDisplay === 'input',
44
+ // },
45
+ // Transitions
46
+ 'transition-colors',
47
+ 'duration-200',
48
+ // States
49
+ 'outline-none focus:ring-primary-400',
50
+ ],
51
+ });
52
+ },
53
+ inputicon: {
54
+ class: ['text-grayscale-900 peer-disabled:bg-general-300'],
55
+ },
56
+ dropdownbutton: {
57
+ root: {
58
+ class: [
59
+ 'relative text-sm',
60
+ // Alignments
61
+ 'items-center inline-flex text-center align-bottom',
62
+ // Shape
63
+ 'rounded-r-md',
64
+ // Size
65
+ 'px-2.5 py-1.5 leading-none',
66
+ // Colors
67
+ 'text-surface-600',
68
+ 'bg-surface-100',
69
+ 'ring-1 ring-inset ring-surface-300',
70
+ // States
71
+ 'hover:bg-surface-200',
72
+ 'focus:outline-none focus:outline-offset-0 focus:ring-1',
73
+ 'focus:ring-primary-400',
74
+ ],
75
+ },
76
+ },
77
+ panel: function (_a) {
78
+ var props = _a.props;
79
+ return ({
80
+ class: [
81
+ 'datepicker-panel',
82
+ // Display & Position
83
+ 'inline-flex',
84
+ 'flex-col justify-start items-center gap-2.5',
85
+ {
86
+ 'absolute': !props.inline,
87
+ 'inline-block': props.inline,
88
+ },
89
+ // Size
90
+ '!w-[272px] !min-w-[272px] h-max p-6 shadow-panel',
91
+ { 'min-w-[80vw] w-auto p-2 ': props.touchUI },
92
+ { 'p-2 min-w-full': props.inline },
93
+ // Shape
94
+ 'rounded-[7px]',
95
+ // Colors
96
+ 'bg-white',
97
+ //Misc
98
+ { 'overflow-x-auto': props.inline },
99
+ ],
100
+ });
101
+ },
102
+ datepickerMask: {
103
+ class: [
104
+ 'fixed top-0 left-0 w-full h-full',
105
+ 'flex items-center justify-center',
106
+ 'bg-black bg-opacity-90',
107
+ ],
108
+ },
109
+ header: function (_a) {
110
+ var _b;
111
+ var props = _a.props, state = _a.state;
112
+ return ({
113
+ class: [
114
+ 'min-h-[26.8px]',
115
+ {
116
+ hidden: !((_b = props.dateFormat) === null || _b === void 0 ? void 0 : _b.toString().toLowerCase().includes('y')) &&
117
+ state.currentView === 'month',
118
+ },
119
+ //Font
120
+ 'text-xs font-normal',
121
+ // Flexbox and Alignment
122
+ 'flex justify-between items-start gap-1',
123
+ // Spacing
124
+ 'm-0 mb-2',
125
+ // {
126
+ // 'py-2 pl-2 pb-4': props.numberOfMonths <= 1,
127
+ // 'py-2 pb-4': props.numberOfMonths > 1,
128
+ // },
129
+ // Shape
130
+ 'rounded-t-md',
131
+ // Colors
132
+ 'text-grayscale-900',
133
+ 'bg-white',
134
+ ],
135
+ });
136
+ },
137
+ previousbutton: function (_a) {
138
+ var props = _a.props;
139
+ return ({
140
+ class: [
141
+ 'relative',
142
+ // Flexbox and Alignment
143
+ 'inline-flex items-center justify-center',
144
+ 'order-1',
145
+ // {
146
+ // ' order-2': !(props.numberOfMonths > 1),
147
+ // 'order-1': props.numberOfMonths > 1,
148
+ // },
149
+ // Size
150
+ 'p-1.5 m-0',
151
+ // Colors
152
+ 'text-grayscale-900',
153
+ 'border-0 ',
154
+ 'bg-transparent',
155
+ // States
156
+ 'hover:bg-general-50',
157
+ // Misc
158
+ 'cursor-pointer overflow-hidden',
159
+ ],
160
+ });
161
+ },
162
+ title: function (_a) {
163
+ var props = _a.props;
164
+ return ({
165
+ class: [
166
+ // Text
167
+ 'leading-6',
168
+ 'my-0',
169
+ 'order-2',
170
+ // {
171
+ // 'mr-auto': !(props.numberOfMonths > 1),
172
+ // ' mx-auto': props.numberOfMonths > 1,
173
+ // },
174
+ ],
175
+ });
176
+ },
177
+ monthTitle: {
178
+ class: [
179
+ //Font
180
+ 'text-xs font-normal',
181
+ // Colors
182
+ 'text-grayscale-900',
183
+ 'bg-white',
184
+ // Transitions
185
+ 'transition duration-200',
186
+ // Spacing
187
+ 'mr-1',
188
+ // States
189
+ 'hover:text-primary-400',
190
+ // Misc
191
+ 'cursor-pointer',
192
+ ],
193
+ },
194
+ yearTitle: function (_a) {
195
+ var _b;
196
+ var props = _a.props;
197
+ return ({
198
+ class: [
199
+ {
200
+ hidden: !((_b = props.dateFormat) === null || _b === void 0 ? void 0 : _b.toString().toLowerCase().includes('y')),
201
+ },
202
+ //Font
203
+ 'text-xs font-normal',
204
+ // Colors
205
+ 'text-grayscale-900',
206
+ 'bg-white',
207
+ // Transitions
208
+ 'transition duration-200',
209
+ // Spacing
210
+ 'm-0 mr-1',
211
+ // States
212
+ 'hover:text-primary-600',
213
+ // Misc
214
+ 'cursor-pointer',
215
+ ],
216
+ });
217
+ },
218
+ nextbutton: function (_a) {
219
+ var props = _a.props;
220
+ return ({
221
+ class: [
222
+ 'relative',
223
+ // Flexbox and Alignment
224
+ 'inline-flex items-center justify-center order-3',
225
+ // {
226
+ // ' order-3': !(props.numberOfMonths > 1),
227
+ // 'order-1': props.numberOfMonths > 1,
228
+ // },
229
+ // Size
230
+ 'p-1.5 m-0',
231
+ // Colors
232
+ 'text-grayscale-900',
233
+ 'border-0 ',
234
+ 'bg-transparent',
235
+ // States
236
+ 'hover:bg-general-50',
237
+ // Misc
238
+ 'cursor-pointer overflow-hidden',
239
+ ],
240
+ });
241
+ },
242
+ table: {
243
+ class: [
244
+ // Size & Shape
245
+ 'block w-[224px]',
246
+ '[&_tbody]:block [&_tbody]:w-[224px]',
247
+ // Spacing
248
+ 'm-0',
249
+ '[&_th]:text-xs [&_td]:text-xs',
250
+ '[&_th]:font-normal [&_td]:font-normal',
251
+ '[&_th]:text-grayscale-900 [&_td]:text-grayscale-900',
252
+ // Hide the other months day
253
+ '[&_[data-p-other-month="true"]]:invisible',
254
+ ],
255
+ },
256
+ tableheadercell: {
257
+ class: [
258
+ // Spacing
259
+ 'px-2 py-[5.4px]',
260
+ ],
261
+ },
262
+ tablebodyrow: {
263
+ class: [
264
+ // 'border-b border-surface-200 last:border-b-0',
265
+ ],
266
+ },
267
+ weekheader: {
268
+ class: [
269
+ 'leading-6 text-sm font-normal',
270
+ 'text-surface-600/70',
271
+ 'opacity-40 cursor-default',
272
+ 'mb-2',
273
+ ],
274
+ },
275
+ weeknumber: {
276
+ class: ['text-surface-600/70 font-normal', 'opacity-40 cursor-default'],
277
+ },
278
+ weekday: {
279
+ class: [
280
+ // Colors
281
+ // 'text-surface-500/60 font-normal',
282
+ ],
283
+ },
284
+ day: {
285
+ class: [
286
+ // Spacing
287
+ 'p-0',
288
+ ],
289
+ },
290
+ weeklabelcontainer: function (_a) {
291
+ var context = _a.context;
292
+ return ({
293
+ class: [
294
+ // Flexbox and Alignment
295
+ 'flex items-center justify-center',
296
+ 'mx-auto',
297
+ // Shape & Size
298
+ 'w-10 h-10',
299
+ '',
300
+ 'border-transparent border',
301
+ // Colors
302
+ {
303
+ 'text-surface-600/70 bg-transparent': !context.selected && !context.disabled,
304
+ 'text-primary-400 ': context.selected && !context.disabled,
305
+ },
306
+ // States
307
+ 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50',
308
+ {
309
+ 'hover:bg-surface-100': !context.disabled,
310
+ },
311
+ {
312
+ 'opacity-40 cursor-default': context.disabled,
313
+ 'cursor-pointer': !context.disabled,
314
+ },
315
+ ],
316
+ });
317
+ },
318
+ daylabel: function (_a) {
319
+ var context = _a.context;
320
+ return ({
321
+ class: [
322
+ // Flexbox and Alignment
323
+ 'flex items-center justify-center',
324
+ // 'mx-auto',
325
+ // Shape & Size
326
+ 'w-8 h-8',
327
+ // Colors
328
+ {
329
+ 'bg-primary-400 text-white rounded-none': (context.selected && !context.disabled) || context.date.today,
330
+ },
331
+ {
332
+ '!rounded-full': !context.selected,
333
+ },
334
+ // States
335
+ 'focus:outline-none focus-visible:outline-none',
336
+ {
337
+ 'hover:bg-primary-400/90': context.selected || context.date.today,
338
+ 'hover:bg-primary-200': !context.selected,
339
+ },
340
+ {
341
+ 'opacity-40 cursor-default': context.disabled,
342
+ 'cursor-pointer': !context.disabled,
343
+ },
344
+ ],
345
+ });
346
+ },
347
+ monthpicker: {
348
+ class: [
349
+ // Layout
350
+ 'w-full grid grid-cols-3 grid-rows-4 gap-y-4 gap-x-0',
351
+ ],
352
+ },
353
+ month: function (_a) {
354
+ var context = _a.context;
355
+ return ({
356
+ 'class': [
357
+ // Flexbox and Alignment
358
+ 'inline-flex items-center justify-center',
359
+ // Size
360
+ 'w-full',
361
+ 'px-2.5 py-1.5',
362
+ 'text-xs leading-tight',
363
+ // Shape
364
+ '!rounded-[20px]',
365
+ // Colors
366
+ {
367
+ 'text-grayscale-900 bg-transparent': !context.selected && !context.disabled,
368
+ 'bg-primary-400 text-white': context.selected && !context.disabled,
369
+ },
370
+ // States
371
+ // 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-400',
372
+ 'hover:bg-primary-50',
373
+ 'hover:text-grayscale-900',
374
+ // Misc
375
+ 'cursor-pointer',
376
+ ],
377
+ 'data-month-in-future': parseInt(context === null || context === void 0 ? void 0 : context.monthIndex) > new Date().getMonth(),
378
+ });
379
+ },
380
+ yearpicker: {
381
+ class: [
382
+ // Layout
383
+ 'w-full grid grid-cols-2 grid-rows-5 gap-y-1 gap-x-0',
384
+ ],
385
+ },
386
+ year: function (_a) {
387
+ var context = _a.context;
388
+ return ({
389
+ 'class': [
390
+ // Flexbox and Alignment
391
+ 'inline-flex items-center justify-center',
392
+ // Size
393
+ 'w-full',
394
+ 'px-2.5 py-1.5',
395
+ 'text-xs leading-tight',
396
+ // Shape
397
+ '!rounded-[20px]',
398
+ // Colors
399
+ {
400
+ 'text-grayscale-900 bg-transparent': !context.selected && !context.disabled,
401
+ 'bg-primary-400 text-white': context.selected && !context.disabled,
402
+ },
403
+ // States
404
+ // 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-400',
405
+ 'hover:text-grayscale-900',
406
+ 'hover:bg-primary-50',
407
+ // Misc
408
+ 'cursor-pointer',
409
+ ],
410
+ 'data-year-in-future': parseInt(context === null || context === void 0 ? void 0 : context.year.value) > new Date().getFullYear(),
411
+ });
412
+ },
413
+ timepicker: {
414
+ class: [
415
+ // Flexbox
416
+ 'flex',
417
+ 'justify-center items-center',
418
+ 'gap-2',
419
+ // Spacing
420
+ 'p-1.5',
421
+ ],
422
+ },
423
+ separatorcontainer: {
424
+ class: [
425
+ // Flexbox and Alignment
426
+ 'flex',
427
+ 'items-center',
428
+ 'flex-col',
429
+ // Spacing
430
+ // 'px-2',
431
+ ],
432
+ },
433
+ separator: {
434
+ class: [
435
+ // Text
436
+ 'text-xs font-normal',
437
+ ],
438
+ },
439
+ hourpicker: {
440
+ class: [
441
+ // Flexbox and Alignment
442
+ 'flex',
443
+ 'items-center',
444
+ 'flex-col',
445
+ 'gap-3',
446
+ // Spacing
447
+ // 'px-2',
448
+ // Sizing
449
+ 'text-xs',
450
+ // Misc
451
+ timepickerlabel.class,
452
+ ],
453
+ },
454
+ minutepicker: {
455
+ class: [
456
+ // Flexbox and Alignment
457
+ 'flex',
458
+ 'items-center',
459
+ 'flex-col',
460
+ 'gap-3',
461
+ // Spacing
462
+ // 'px-2',
463
+ // Sizing
464
+ 'text-xs',
465
+ // Misc
466
+ timepickerlabel.class,
467
+ ],
468
+ },
469
+ secondPicker: {
470
+ class: [
471
+ // Flexbox and Alignment
472
+ 'flex',
473
+ 'items-center',
474
+ 'flex-col',
475
+ 'gap-3',
476
+ // Spacing
477
+ // 'px-2',
478
+ // Sizing
479
+ 'text-xs',
480
+ ],
481
+ },
482
+ incrementbutton: {
483
+ class: [
484
+ 'relative',
485
+ // Flexbox and Alignment
486
+ 'inline-flex items-center justify-center',
487
+ // Size
488
+ 'p-0.5 m-0',
489
+ '!h-6 !w-6',
490
+ '[&_i]:w-5',
491
+ '[&_i]:h-5',
492
+ '[&_i]:shrink-0',
493
+ '',
494
+ // Colors
495
+ 'text-grayscale-900',
496
+ 'border-0',
497
+ 'bg-transparent',
498
+ // States
499
+ // 'hover:text-surface-700',
500
+ // Misc
501
+ 'cursor-pointer overflow-hidden',
502
+ ],
503
+ },
504
+ decrementbutton: {
505
+ class: [
506
+ 'relative',
507
+ // Flexbox and Alignment
508
+ 'inline-flex items-center justify-center',
509
+ // Size
510
+ 'p-0.5 m-0',
511
+ '!h-6 !w-6',
512
+ '[&_i]:w-5',
513
+ '[&_i]:h-5',
514
+ '[&_i]:shrink-0',
515
+ '',
516
+ // Colors
517
+ 'text-grayscale-900',
518
+ 'border-0',
519
+ 'bg-transparent',
520
+ // States
521
+ // 'hover:text-surface-700',
522
+ // Misc
523
+ 'cursor-pointer overflow-hidden',
524
+ ],
525
+ },
526
+ groupcontainer: {
527
+ class: [
528
+ // Flexbox
529
+ 'flex w-full',
530
+ ],
531
+ },
532
+ group: {
533
+ class: [
534
+ // // Flexbox and Sizing
535
+ // 'flex-1',
536
+ 'w-full',
537
+ // // Borders
538
+ // 'border-l',
539
+ // 'border-surface-200',
540
+ // // Spacing
541
+ // 'pr-0.5',
542
+ // 'pl-0.5',
543
+ // 'pt-0',
544
+ // 'pb-0',
545
+ // // Pseudo-Classes
546
+ // 'first:pl-0',
547
+ // 'first:border-l-0',
548
+ ],
549
+ },
550
+ buttonbar: {
551
+ class: [
552
+ // Flexbox
553
+ 'flex justify-between items-center',
554
+ // Spacing
555
+ 'pt-2.5 pb-1.5 px-0',
556
+ // Shape
557
+ 'border-t border-surface-200',
558
+ ],
559
+ },
560
+ todaybutton: {
561
+ root: {
562
+ class: [
563
+ // Flexbox and Alignment
564
+ 'inline-flex items-center justify-center',
565
+ // Spacing
566
+ 'px-2.5 py-1.5 text-sm leading-none',
567
+ // Shape
568
+ '',
569
+ // Colors
570
+ 'bg-transparent border-transparent',
571
+ 'text-primary-400',
572
+ // Transitions
573
+ 'transition-colors duration-200 ease-in-out',
574
+ // States
575
+ // 'focus:outline-none focus:outline-offset-0 focus:ring-2 ring-inset',
576
+ // 'focus:ring-primary-400',
577
+ // Misc
578
+ 'cursor-pointer',
579
+ ],
580
+ },
581
+ },
582
+ clearbutton: {
583
+ root: {
584
+ class: [
585
+ // Flexbox and Alignment
586
+ 'inline-flex items-center justify-center',
587
+ // Spacing
588
+ 'px-2.5 py-1.5 text-sm leading-none',
589
+ // Shape
590
+ // Colors
591
+ 'bg-transparent border-transparent',
592
+ 'text-primary-400',
593
+ // Transitions
594
+ 'transition-colors duration-200 ease-in-out',
595
+ // States
596
+ 'focus:outline-none focus:outline-offset-0 focus:ring-2 ring-inset',
597
+ 'focus:ring-primary-400',
598
+ 'hover:bg-primary-300/20',
599
+ // Misc
600
+ 'cursor-pointer',
601
+ ],
602
+ },
603
+ },
604
+ transition: {
605
+ enterFromClass: 'opacity-0 scale-y-[0.8]',
606
+ enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
607
+ leaveActiveClass: 'transition-opacity duration-100 ease-linear',
608
+ leaveToClass: 'opacity-0',
609
+ },
610
+ };
@@ -0,0 +1,31 @@
1
+ declare namespace _default {
2
+ namespace root {
3
+ let _class: string[];
4
+ export { _class as class };
5
+ }
6
+ namespace header {
7
+ let _class_1: string[];
8
+ export { _class_1 as class };
9
+ }
10
+ namespace body {
11
+ let _class_2: string;
12
+ export { _class_2 as class };
13
+ }
14
+ namespace title {
15
+ let _class_3: string;
16
+ export { _class_3 as class };
17
+ }
18
+ namespace subtitle {
19
+ let _class_4: string[];
20
+ export { _class_4 as class };
21
+ }
22
+ namespace content {
23
+ let _class_5: string;
24
+ export { _class_5 as class };
25
+ }
26
+ namespace footer {
27
+ let _class_6: string[];
28
+ export { _class_6 as class };
29
+ }
30
+ }
31
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ root: {
5
+ class: [
6
+ //Shape
7
+ 'rounded-lg p-6',
8
+ 'flex flex-col gap-y-3',
9
+ //Color
10
+ 'bg-white',
11
+ 'text-grayscale-900',
12
+ ],
13
+ },
14
+ header: {
15
+ class: [''],
16
+ },
17
+ body: {
18
+ class: 'flex flex-col gap-3',
19
+ },
20
+ title: {
21
+ class: 'text-2xl font-bold',
22
+ },
23
+ subtitle: {
24
+ class: ['text-sm font-normal'],
25
+ },
26
+ content: {
27
+ class: 'flex flex-col gap-3 text-xs text-grayscale-900',
28
+ },
29
+ footer: {
30
+ class: ['inline-flex gap-1 text-xs items-center'],
31
+ },
32
+ };