@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.
- package/fixedasset/accordion/index.d.ts +37 -0
- package/fixedasset/accordion/index.js +70 -0
- package/fixedasset/autocomplete/index.d.ts +188 -0
- package/fixedasset/autocomplete/index.js +247 -0
- package/fixedasset/avatar/index.d.ts +85 -0
- package/fixedasset/avatar/index.js +44 -0
- package/fixedasset/avatargroup/index.d.ts +8 -0
- package/fixedasset/avatargroup/index.js +9 -0
- package/fixedasset/badge/index.d.ts +47 -0
- package/fixedasset/badge/index.js +60 -0
- package/fixedasset/badgedirective/index.d.ts +50 -0
- package/fixedasset/badgedirective/index.js +49 -0
- package/fixedasset/badgegroup/index.d.ts +45 -0
- package/fixedasset/badgegroup/index.js +29 -0
- package/fixedasset/breadcrumb/index.d.ts +25 -0
- package/fixedasset/breadcrumb/index.js +31 -0
- package/fixedasset/button/index.d.ts +46 -0
- package/fixedasset/button/index.js +423 -0
- package/fixedasset/buttonbulkaction/index.d.ts +32 -0
- package/fixedasset/buttonbulkaction/index.js +35 -0
- package/fixedasset/buttondownload/index.d.ts +12 -0
- package/fixedasset/buttondownload/index.js +13 -0
- package/fixedasset/buttonfilter/index.d.ts +12 -0
- package/fixedasset/buttonfilter/index.js +13 -0
- package/fixedasset/buttonradio/index.d.ts +58 -0
- package/fixedasset/buttonradio/index.js +109 -0
- package/fixedasset/buttonsearch/index.d.ts +65 -0
- package/fixedasset/buttonsearch/index.js +62 -0
- package/fixedasset/calendar/index.d.ts +267 -0
- package/fixedasset/calendar/index.js +610 -0
- package/fixedasset/card/index.d.ts +31 -0
- package/fixedasset/card/index.js +32 -0
- package/fixedasset/carousel/index.d.ts +57 -0
- package/fixedasset/carousel/index.js +129 -0
- package/fixedasset/cascadeselect/index.d.ts +82 -0
- package/fixedasset/cascadeselect/index.js +191 -0
- package/fixedasset/changelog/index.d.ts +32 -0
- package/fixedasset/changelog/index.js +31 -0
- package/fixedasset/checkbox/index.d.ts +81 -0
- package/fixedasset/checkbox/index.js +107 -0
- package/fixedasset/chip/index.d.ts +23 -0
- package/fixedasset/chip/index.js +40 -0
- package/fixedasset/chips/index.d.ts +38 -0
- package/fixedasset/chips/index.js +98 -0
- package/fixedasset/colorpicker/index.d.ts +51 -0
- package/fixedasset/colorpicker/index.js +118 -0
- package/fixedasset/colors.config.json +77 -0
- package/fixedasset/confirmpopup/index.d.ts +39 -0
- package/fixedasset/confirmpopup/index.js +104 -0
- package/fixedasset/contextmenu/index.d.ts +63 -0
- package/fixedasset/contextmenu/index.js +113 -0
- package/fixedasset/datatable/index.d.ts +286 -0
- package/fixedasset/datatable/index.js +253 -0
- package/fixedasset/dataview/index.d.ts +15 -0
- package/fixedasset/dataview/index.js +36 -0
- package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
- package/fixedasset/dataviewlayoutoptions/index.js +58 -0
- package/fixedasset/dialog/index.d.ts +87 -0
- package/fixedasset/dialog/index.js +220 -0
- package/fixedasset/dialogconfirm/index.d.ts +42 -0
- package/fixedasset/dialogconfirm/index.js +45 -0
- package/fixedasset/dialogform/index.d.ts +71 -0
- package/fixedasset/dialogform/index.js +68 -0
- package/fixedasset/divider/index.d.ts +192 -0
- package/fixedasset/divider/index.js +64 -0
- package/fixedasset/dock/index.d.ts +51 -0
- package/fixedasset/dock/index.js +92 -0
- package/fixedasset/dropdown/index.d.ts +136 -0
- package/fixedasset/dropdown/index.js +207 -0
- package/fixedasset/fieldset/index.d.ts +94 -0
- package/fixedasset/fieldset/index.js +87 -0
- package/fixedasset/fileupload/index.d.ts +29 -0
- package/fixedasset/fileupload/index.js +31 -0
- package/fixedasset/form/index.d.ts +40 -0
- package/fixedasset/form/index.js +44 -0
- package/fixedasset/global.d.ts +8 -0
- package/fixedasset/global.js +14 -0
- package/fixedasset/image/index.d.ts +88 -0
- package/fixedasset/image/index.js +136 -0
- package/fixedasset/index.d.ts +190 -0
- package/fixedasset/index.js +201 -0
- package/fixedasset/index.system.js +76 -0
- package/fixedasset/inlinemessage/index.d.ts +20 -0
- package/fixedasset/inlinemessage/index.js +30 -0
- package/fixedasset/inputbadge/index.d.ts +57 -0
- package/fixedasset/inputbadge/index.js +57 -0
- package/fixedasset/inputcurrency/index.d.ts +27 -0
- package/fixedasset/inputcurrency/index.js +22 -0
- package/fixedasset/inputgroup/index.d.ts +9 -0
- package/fixedasset/inputgroup/index.js +37 -0
- package/fixedasset/inputgroupaddon/index.d.ts +17 -0
- package/fixedasset/inputgroupaddon/index.js +34 -0
- package/fixedasset/inputmask/index.d.ts +11 -0
- package/fixedasset/inputmask/index.js +29 -0
- package/fixedasset/inputnumber/index.d.ts +46 -0
- package/fixedasset/inputnumber/index.js +58 -0
- package/fixedasset/inputotp/index.d.ts +137 -0
- package/fixedasset/inputotp/index.js +63 -0
- package/fixedasset/inputphonenumber/index.d.ts +37 -0
- package/fixedasset/inputphonenumber/index.js +34 -0
- package/fixedasset/inputswitch/index.d.ts +67 -0
- package/fixedasset/inputswitch/index.js +100 -0
- package/fixedasset/inputtext/index.d.ts +18 -0
- package/fixedasset/inputtext/index.js +28 -0
- package/fixedasset/knob/index.d.ts +22 -0
- package/fixedasset/knob/index.js +45 -0
- package/fixedasset/listbox/index.d.ts +79 -0
- package/fixedasset/listbox/index.js +138 -0
- package/fixedasset/megamenu/index.d.ts +105 -0
- package/fixedasset/megamenu/index.js +202 -0
- package/fixedasset/menu/index.d.ts +49 -0
- package/fixedasset/menu/index.js +110 -0
- package/fixedasset/menubar/index.d.ts +85 -0
- package/fixedasset/menubar/index.js +172 -0
- package/fixedasset/message/index.d.ts +41 -0
- package/fixedasset/message/index.js +85 -0
- package/fixedasset/multiselect/index.d.ts +243 -0
- package/fixedasset/multiselect/index.js +328 -0
- package/fixedasset/orderlist/index.d.ts +99 -0
- package/fixedasset/orderlist/index.js +245 -0
- package/fixedasset/organizationchart/index.d.ts +71 -0
- package/fixedasset/organizationchart/index.js +129 -0
- package/fixedasset/overlaypanel/index.d.ts +17 -0
- package/fixedasset/overlaypanel/index.js +34 -0
- package/fixedasset/paginator/index.d.ts +210 -0
- package/fixedasset/paginator/index.js +474 -0
- package/fixedasset/panel/index.d.ts +43 -0
- package/fixedasset/panel/index.js +85 -0
- package/fixedasset/panelmenu/index.d.ts +76 -0
- package/fixedasset/panelmenu/index.js +124 -0
- package/fixedasset/password/index.d.ts +45 -0
- package/fixedasset/password/index.js +96 -0
- package/fixedasset/picklist/index.d.ts +245 -0
- package/fixedasset/picklist/index.js +613 -0
- package/fixedasset/progressbar/index.d.ts +117 -0
- package/fixedasset/progressbar/index.js +102 -0
- package/fixedasset/rating/index.d.ts +47 -0
- package/fixedasset/rating/index.js +88 -0
- package/fixedasset/ripple/index.d.ts +8 -0
- package/fixedasset/ripple/index.js +8 -0
- package/fixedasset/scrollpanel/index.d.ts +19 -0
- package/fixedasset/scrollpanel/index.js +62 -0
- package/fixedasset/scrolltop/index.d.ts +50 -0
- package/fixedasset/scrolltop/index.js +42 -0
- package/fixedasset/selectbutton/index.d.ts +35 -0
- package/fixedasset/selectbutton/index.js +60 -0
- package/fixedasset/sidebar/index.d.ts +66 -0
- package/fixedasset/sidebar/index.js +145 -0
- package/fixedasset/skeleton/index.d.ts +16 -0
- package/fixedasset/skeleton/index.js +22 -0
- package/fixedasset/slider/index.d.ts +55 -0
- package/fixedasset/slider/index.js +126 -0
- package/fixedasset/splitbutton/index.d.ts +6690 -0
- package/fixedasset/splitbutton/index.js +786 -0
- package/fixedasset/steps/index.d.ts +108 -0
- package/fixedasset/steps/index.js +119 -0
- package/fixedasset/style.css +5888 -0
- package/fixedasset/tabmenu/index.d.ts +57 -0
- package/fixedasset/tabmenu/index.js +75 -0
- package/fixedasset/tabview/index.d.ts +67 -0
- package/fixedasset/tabview/index.js +148 -0
- package/fixedasset/tag/index.d.ts +32 -0
- package/fixedasset/tag/index.js +37 -0
- package/fixedasset/terminal/index.d.ts +27 -0
- package/fixedasset/terminal/index.js +55 -0
- package/fixedasset/textarea/index.d.ts +12 -0
- package/fixedasset/textarea/index.js +51 -0
- package/fixedasset/tieredmenu/index.d.ts +56 -0
- package/fixedasset/tieredmenu/index.js +108 -0
- package/fixedasset/timeline/index.d.ts +53 -0
- package/fixedasset/timeline/index.js +83 -0
- package/fixedasset/toast/index.d.ts +61 -0
- package/fixedasset/toast/index.js +95 -0
- package/fixedasset/togglebutton/index.d.ts +42 -0
- package/fixedasset/togglebutton/index.js +77 -0
- package/fixedasset/toolbar/index.d.ts +19 -0
- package/fixedasset/toolbar/index.js +29 -0
- package/fixedasset/tooltip/index.d.ts +22 -0
- package/fixedasset/tooltip/index.js +42 -0
- package/fixedasset/tree/index.d.ts +117 -0
- package/fixedasset/tree/index.js +256 -0
- package/fixedasset/treeselect/index.d.ts +158 -0
- package/fixedasset/treeselect/index.js +338 -0
- package/fixedasset/tristatecheckbox/index.d.ts +49 -0
- package/fixedasset/tristatecheckbox/index.js +106 -0
- package/fixedasset/validatormessage/index.d.ts +8 -0
- package/fixedasset/validatormessage/index.js +9 -0
- package/fixedasset/workcalendar/index.d.ts +27 -0
- package/fixedasset/workcalendar/index.js +36 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
@@ -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
|
+
};
|