@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,423 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var props = _a.props, context = _a.context;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
'relative',
|
9
|
+
// Alignments
|
10
|
+
'items-center inline-flex text-center align-bottom justify-center',
|
11
|
+
{
|
12
|
+
'flex-col': (props.iconPos === 'top' || props.iconPos === 'bottom') &&
|
13
|
+
props.label,
|
14
|
+
},
|
15
|
+
props.iconPos,
|
16
|
+
{
|
17
|
+
'flex-row-reverse': props.iconPos === 'right',
|
18
|
+
},
|
19
|
+
// Sizes & Spacing
|
20
|
+
'leading-none font-normal rounded-[50px]',
|
21
|
+
{
|
22
|
+
'!text-xs px-3 py-[5px]': props.size === null && props.label,
|
23
|
+
'!text-xs !p-0.5': props.size === 'small',
|
24
|
+
'text-xl py-3 px-4': props.size === 'large',
|
25
|
+
},
|
26
|
+
{ 'gap-1': props.label !== null },
|
27
|
+
{
|
28
|
+
'p-[7px] w-max': props.label === null && props.icon && props.size === null,
|
29
|
+
},
|
30
|
+
{
|
31
|
+
'!p-0.5 !h-4 !w-4': props.label === null && props.icon && props.size === 'small',
|
32
|
+
},
|
33
|
+
// Ring
|
34
|
+
'ring-inset ring-1 ',
|
35
|
+
// Shapes
|
36
|
+
{ 'shadow-lg': props.raised },
|
37
|
+
// Link Button
|
38
|
+
{
|
39
|
+
'text-grayscale-900-600 bg-transparent ring-transparent': props.link,
|
40
|
+
},
|
41
|
+
// Plain Button
|
42
|
+
{
|
43
|
+
'text-white bg-gray-500 ring-1 ring-gray-500': props.plain && !props.outlined && !props.text,
|
44
|
+
},
|
45
|
+
// Plain Text Button
|
46
|
+
{ 'text-primary-400': props.plain && props.text },
|
47
|
+
// Plain Outlined Button
|
48
|
+
{
|
49
|
+
'text-primary-400 ring-1 ring-gray-500': props.plain && props.outlined,
|
50
|
+
},
|
51
|
+
// Text Button
|
52
|
+
{ 'bg-transparent ring-transparent': props.text && !props.plain },
|
53
|
+
// Outlined Button
|
54
|
+
{ 'bg-transparent ring-1': props.outlined && !props.plain },
|
55
|
+
// --- Severity Buttons ---
|
56
|
+
// Secondary Button
|
57
|
+
{
|
58
|
+
'text-white': !props.link &&
|
59
|
+
props.severity === 'secondary' &&
|
60
|
+
!props.text &&
|
61
|
+
!props.outlined &&
|
62
|
+
!props.plain,
|
63
|
+
'bg-grayscale-900': !props.link &&
|
64
|
+
props.severity === 'secondary' &&
|
65
|
+
!props.text &&
|
66
|
+
!props.outlined &&
|
67
|
+
!props.plain,
|
68
|
+
'ring-1 ring-grayscale-900': !props.link &&
|
69
|
+
props.severity === 'secondary' &&
|
70
|
+
!props.text &&
|
71
|
+
!props.outlined &&
|
72
|
+
!props.plain,
|
73
|
+
},
|
74
|
+
// Secondary Text Button
|
75
|
+
{
|
76
|
+
'text-grayscale-900': props.text && props.severity === 'secondary' && !props.plain,
|
77
|
+
},
|
78
|
+
// Secondary Outlined Button
|
79
|
+
{
|
80
|
+
'text-grayscale-900 ring-1 ring-grayscale-900': props.outlined && props.severity === 'secondary' && !props.plain,
|
81
|
+
},
|
82
|
+
// Primary Gold Button
|
83
|
+
{
|
84
|
+
'text-white': props.severity === null &&
|
85
|
+
!props.text &&
|
86
|
+
!props.outlined &&
|
87
|
+
!props.plain,
|
88
|
+
'bg-primary-400': props.severity === null &&
|
89
|
+
!props.text &&
|
90
|
+
!props.outlined &&
|
91
|
+
!props.plain,
|
92
|
+
'ring-1 ring-primary-400': props.severity === null &&
|
93
|
+
!props.text &&
|
94
|
+
!props.outlined &&
|
95
|
+
!props.plain,
|
96
|
+
},
|
97
|
+
// Primary Gold Text Button
|
98
|
+
{
|
99
|
+
'text-primary-400': props.text && props.severity === null && !props.plain,
|
100
|
+
},
|
101
|
+
// Primary Gold Outlined Button
|
102
|
+
{
|
103
|
+
'text-primary-400 ring-1 ring-primary-400 hover:bg-primary-400/20': props.outlined && props.severity === null && !props.plain,
|
104
|
+
},
|
105
|
+
// Success Button
|
106
|
+
{
|
107
|
+
'text-white': props.severity === 'success' &&
|
108
|
+
!props.text &&
|
109
|
+
!props.outlined &&
|
110
|
+
!props.plain,
|
111
|
+
'bg-success-500': props.severity === 'success' &&
|
112
|
+
!props.text &&
|
113
|
+
!props.outlined &&
|
114
|
+
!props.plain,
|
115
|
+
'ring-1 ring-success-500': props.severity === 'success' &&
|
116
|
+
!props.text &&
|
117
|
+
!props.outlined &&
|
118
|
+
!props.plain,
|
119
|
+
},
|
120
|
+
// Success Text Button
|
121
|
+
{
|
122
|
+
'text-success-500': props.text && props.severity === 'success' && !props.plain,
|
123
|
+
},
|
124
|
+
// Success Outlined Button
|
125
|
+
{
|
126
|
+
'text-success-500 ring-1 ring-success-500 hover:bg-success-300/20': props.outlined && props.severity === 'success' && !props.plain,
|
127
|
+
},
|
128
|
+
// Info Button
|
129
|
+
{
|
130
|
+
'text-white': props.severity === 'info' &&
|
131
|
+
!props.text &&
|
132
|
+
!props.outlined &&
|
133
|
+
!props.plain,
|
134
|
+
'bg-blue-500': props.severity === 'info' &&
|
135
|
+
!props.text &&
|
136
|
+
!props.outlined &&
|
137
|
+
!props.plain,
|
138
|
+
'ring-1 ring-blue-500': props.severity === 'info' &&
|
139
|
+
!props.text &&
|
140
|
+
!props.outlined &&
|
141
|
+
!props.plain,
|
142
|
+
},
|
143
|
+
// Info Text Button
|
144
|
+
{
|
145
|
+
'text-blue-500': props.text && props.severity === 'info' && !props.plain,
|
146
|
+
},
|
147
|
+
// Info Outlined Button
|
148
|
+
{
|
149
|
+
'text-blue-500 ring-1 ring-blue-500 hover:bg-blue-300/20 ': props.outlined && props.severity === 'info' && !props.plain,
|
150
|
+
},
|
151
|
+
// Warning Button
|
152
|
+
{
|
153
|
+
'text-white': props.severity === 'warning' &&
|
154
|
+
!props.text &&
|
155
|
+
!props.outlined &&
|
156
|
+
!props.plain,
|
157
|
+
'bg-warning-500': props.severity === 'warning' &&
|
158
|
+
!props.text &&
|
159
|
+
!props.outlined &&
|
160
|
+
!props.plain,
|
161
|
+
'ring-1 ring-warning-500': props.severity === 'warning' &&
|
162
|
+
!props.text &&
|
163
|
+
!props.outlined &&
|
164
|
+
!props.plain,
|
165
|
+
},
|
166
|
+
// Warning Text Button
|
167
|
+
{
|
168
|
+
'text-warning-500': props.text && props.severity === 'warning' && !props.plain,
|
169
|
+
},
|
170
|
+
// Warning Outlined Button
|
171
|
+
{
|
172
|
+
'text-warning-500 ring-1 ring-warning-500 hover:bg-warning-300/20': props.outlined && props.severity === 'warning' && !props.plain,
|
173
|
+
},
|
174
|
+
// Help Button
|
175
|
+
{
|
176
|
+
'text-white': props.severity === 'help' &&
|
177
|
+
!props.text &&
|
178
|
+
!props.outlined &&
|
179
|
+
!props.plain,
|
180
|
+
'bg-purple-500': props.severity === 'help' &&
|
181
|
+
!props.text &&
|
182
|
+
!props.outlined &&
|
183
|
+
!props.plain,
|
184
|
+
'ring-1 ring-purple-500': props.severity === 'help' &&
|
185
|
+
!props.text &&
|
186
|
+
!props.outlined &&
|
187
|
+
!props.plain,
|
188
|
+
},
|
189
|
+
// Help Text Button
|
190
|
+
{
|
191
|
+
'text-purple-500': props.text && props.severity === 'help' && !props.plain,
|
192
|
+
},
|
193
|
+
// Help Outlined Button
|
194
|
+
{
|
195
|
+
'text-purple-500 ring-1 ring-purple-500 hover:bg-purple-300/20': props.outlined && props.severity === 'help' && !props.plain,
|
196
|
+
},
|
197
|
+
// Danger Button
|
198
|
+
{
|
199
|
+
'text-white': props.severity === 'danger' &&
|
200
|
+
!props.text &&
|
201
|
+
!props.outlined &&
|
202
|
+
!props.plain,
|
203
|
+
'bg-danger-500': props.severity === 'danger' &&
|
204
|
+
!props.text &&
|
205
|
+
!props.outlined &&
|
206
|
+
!props.plain,
|
207
|
+
'ring-1 ring-danger-500': props.severity === 'danger' &&
|
208
|
+
!props.text &&
|
209
|
+
!props.outlined &&
|
210
|
+
!props.plain,
|
211
|
+
},
|
212
|
+
// Danger Text Button
|
213
|
+
{
|
214
|
+
'text-danger-500': props.text && props.severity === 'danger' && !props.plain,
|
215
|
+
},
|
216
|
+
// Danger Outlined Button
|
217
|
+
{
|
218
|
+
'text-danger-500 ring-1 ring-danger-500 hover:bg-danger-300/20': props.outlined && props.severity === 'danger' && !props.plain,
|
219
|
+
},
|
220
|
+
// Contrast Button
|
221
|
+
{
|
222
|
+
'text-white': props.severity === 'contrast' &&
|
223
|
+
!props.text &&
|
224
|
+
!props.outlined &&
|
225
|
+
!props.plain,
|
226
|
+
'bg-surface-900': props.severity === 'contrast' &&
|
227
|
+
!props.text &&
|
228
|
+
!props.outlined &&
|
229
|
+
!props.plain,
|
230
|
+
'ring-1 ring-surface-900': props.severity === 'contrast' &&
|
231
|
+
!props.text &&
|
232
|
+
!props.outlined &&
|
233
|
+
!props.plain,
|
234
|
+
},
|
235
|
+
// Contrast Text Button
|
236
|
+
{
|
237
|
+
'text-surface-900': props.text && props.severity === 'contrast' && !props.plain,
|
238
|
+
},
|
239
|
+
// Contrast Outlined Button
|
240
|
+
{
|
241
|
+
'text-surface-900 ring-1 ring-surface-900': props.outlined && props.severity === 'contrast' && !props.plain,
|
242
|
+
},
|
243
|
+
// --- Severity Button States ---
|
244
|
+
'focus:outline-none focus:outline-offset-0',
|
245
|
+
// Link
|
246
|
+
{ 'focus:ring-grayscale-900': props.link },
|
247
|
+
// Plain
|
248
|
+
{
|
249
|
+
'hover:bg-gray-600 hover:ring-gray-600': props.plain && !props.outlined && !props.text,
|
250
|
+
},
|
251
|
+
// Text & Outlined Button
|
252
|
+
{
|
253
|
+
'hover:bg-primary-400/20': props.plain && (props.text || props.outlined),
|
254
|
+
},
|
255
|
+
// Secondary
|
256
|
+
{
|
257
|
+
'hover:bg-grayscale-900/[8%] active:bg-grayscale-900/[12%] ': props.severity === 'secondary',
|
258
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-grayscale-900/90 active:bg-grayscale-900/90 hover:ring-0': !props.link &&
|
259
|
+
props.severity === 'secondary' &&
|
260
|
+
!props.text &&
|
261
|
+
!props.outlined &&
|
262
|
+
!props.plain,
|
263
|
+
},
|
264
|
+
// Primary
|
265
|
+
{
|
266
|
+
'hover:bg-primary-400/[8%] active:bg-primary-400/[12%] ': props.severity === null,
|
267
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-primary-400/90 active:bg-primary-400/90 hover:ring-0': !props.link &&
|
268
|
+
props.severity === null &&
|
269
|
+
!props.text &&
|
270
|
+
!props.outlined &&
|
271
|
+
!context.disabled &&
|
272
|
+
!props.plain,
|
273
|
+
},
|
274
|
+
// Success
|
275
|
+
{
|
276
|
+
'hover:bg-success-500/[8%] active:bg-success-500/[12%] ': props.severity === 'success',
|
277
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-success-500/90 active:bg-success-500/90 hover:ring-0': !props.link &&
|
278
|
+
props.severity === 'success' &&
|
279
|
+
!props.text &&
|
280
|
+
!props.outlined &&
|
281
|
+
!props.plain,
|
282
|
+
},
|
283
|
+
// Info
|
284
|
+
{
|
285
|
+
'hover:bg-blue-600 hover:ring-blue-600': props.severity === 'info' &&
|
286
|
+
!props.text &&
|
287
|
+
!props.outlined &&
|
288
|
+
!props.plain,
|
289
|
+
},
|
290
|
+
{
|
291
|
+
'focus:ring-blue-400/50': props.severity === 'info',
|
292
|
+
},
|
293
|
+
// Text & Outlined Button
|
294
|
+
{
|
295
|
+
'hover:bg-blue-300/20': (props.text || props.outlined) &&
|
296
|
+
props.severity === 'info' &&
|
297
|
+
!props.plain,
|
298
|
+
},
|
299
|
+
// Warning
|
300
|
+
{
|
301
|
+
'hover:bg-warning-500/[8%] active:bg-warning-500/[12%] ': props.severity === 'warning',
|
302
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-warning-500/90 active:bg-warning-500/90 hover:ring-0': !props.link &&
|
303
|
+
props.severity === 'warning' &&
|
304
|
+
!props.text &&
|
305
|
+
!props.outlined &&
|
306
|
+
!props.plain,
|
307
|
+
},
|
308
|
+
// Text & Outlined Button
|
309
|
+
{
|
310
|
+
'hover:bg-warning-300/20': (props.text || props.outlined) &&
|
311
|
+
props.severity === 'warning' &&
|
312
|
+
!props.plain,
|
313
|
+
},
|
314
|
+
// Help
|
315
|
+
{
|
316
|
+
'hover:bg-purple-600 hover:ring-purple-600': props.severity === 'help' &&
|
317
|
+
!props.text &&
|
318
|
+
!props.outlined &&
|
319
|
+
!props.plain,
|
320
|
+
},
|
321
|
+
{
|
322
|
+
'focus:ring-purple-400/50': props.severity === 'help',
|
323
|
+
},
|
324
|
+
// Text & Outlined Button
|
325
|
+
{
|
326
|
+
'hover:bg-purple-300/20': (props.text || props.outlined) &&
|
327
|
+
props.severity === 'help' &&
|
328
|
+
!props.plain,
|
329
|
+
},
|
330
|
+
// Danger
|
331
|
+
{
|
332
|
+
'hover:bg-danger-500/[8%] active:bg-danger-500/[12%] ': props.severity === 'danger',
|
333
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-danger-500/90 active:bg-danger-500/90 hover:ring-0': !props.link &&
|
334
|
+
props.severity === 'danger' &&
|
335
|
+
!props.text &&
|
336
|
+
!props.outlined &&
|
337
|
+
!props.plain,
|
338
|
+
},
|
339
|
+
// Text & Outlined Button
|
340
|
+
{
|
341
|
+
'hover:bg-danger-300/20': (props.text || props.outlined) &&
|
342
|
+
props.severity === 'danger' &&
|
343
|
+
!props.plain,
|
344
|
+
},
|
345
|
+
// Contrast
|
346
|
+
{
|
347
|
+
'hover:bg-surface-800 hover:ring-surface-800': props.severity === 'contrast' &&
|
348
|
+
!props.text &&
|
349
|
+
!props.outlined &&
|
350
|
+
!props.plain,
|
351
|
+
},
|
352
|
+
{
|
353
|
+
'focus:ring-primary-400': props.severity === 'contrast',
|
354
|
+
},
|
355
|
+
// Text & Outlined Button
|
356
|
+
{
|
357
|
+
'hover:bg-surface-900/10': (props.text || props.outlined) &&
|
358
|
+
props.severity === 'contrast' &&
|
359
|
+
!props.plain,
|
360
|
+
},
|
361
|
+
// Disabled
|
362
|
+
{
|
363
|
+
'pointer-events-none cursor-default': context.disabled,
|
364
|
+
'!text-general-300': context.disabled && (props.outlined || props.text),
|
365
|
+
'!ring-general-300': context.disabled && props.outlined,
|
366
|
+
'!bg-general-300 !text-white !ring-0': context.disabled && !props.outlined && !props.text,
|
367
|
+
},
|
368
|
+
// Transitions
|
369
|
+
'transition duration-200 ease-in-out',
|
370
|
+
// Misc
|
371
|
+
'cursor-pointer overflow-hidden select-none',
|
372
|
+
// Badge
|
373
|
+
'[&>[data-pc-name=badge]]:min-w-4 [&>[data-pc-name=badge]]:h-4 [&>[data-pc-name=badge]]:leading-4',
|
374
|
+
],
|
375
|
+
});
|
376
|
+
},
|
377
|
+
label: function (_a) {
|
378
|
+
var props = _a.props;
|
379
|
+
return ({
|
380
|
+
class: [
|
381
|
+
'duration-200',
|
382
|
+
'font-normal text-xs',
|
383
|
+
props.label ? 'leading-5' : 'leading-4',
|
384
|
+
{
|
385
|
+
'hover:underline': props.link,
|
386
|
+
},
|
387
|
+
{ 'flex-1': props.label !== null, 'invisible w-0': props.label == null },
|
388
|
+
],
|
389
|
+
});
|
390
|
+
},
|
391
|
+
icon: function (_a) {
|
392
|
+
var props = _a.props;
|
393
|
+
return ({
|
394
|
+
class: ['shrink-0', { '!h-[11px] !w-[11px]': props.size === 'small' }],
|
395
|
+
});
|
396
|
+
},
|
397
|
+
loadingIcon: function (_a) {
|
398
|
+
var props = _a.props;
|
399
|
+
return ({
|
400
|
+
class: [
|
401
|
+
'h-4 w-4',
|
402
|
+
'mx-0',
|
403
|
+
{
|
404
|
+
'mr-2': props.iconPos === 'left' && props.label != null,
|
405
|
+
'ml-2 order-1': props.iconPos === 'right' && props.label != null,
|
406
|
+
'mb-2': props.iconPos === 'top' && props.label != null,
|
407
|
+
'mt-2': props.iconPos === 'bottom' && props.label != null,
|
408
|
+
},
|
409
|
+
'animate-spin',
|
410
|
+
],
|
411
|
+
});
|
412
|
+
},
|
413
|
+
badge: function (_a) {
|
414
|
+
var props = _a.props;
|
415
|
+
return ({
|
416
|
+
class: [
|
417
|
+
{
|
418
|
+
'ml-2 w-4 h-4 leading-none flex items-center justify-center': props.badge,
|
419
|
+
},
|
420
|
+
],
|
421
|
+
});
|
422
|
+
},
|
423
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let root: {
|
3
|
+
class: string;
|
4
|
+
'data-wv-name': string;
|
5
|
+
'data-wv-section': string;
|
6
|
+
};
|
7
|
+
let menu: {
|
8
|
+
id: string;
|
9
|
+
class: string;
|
10
|
+
'data-wv-section': string;
|
11
|
+
};
|
12
|
+
let selectionmessage: {
|
13
|
+
class: string;
|
14
|
+
'data-wv-section': string;
|
15
|
+
};
|
16
|
+
function buttonselectall({ context }: {
|
17
|
+
context: any;
|
18
|
+
}): {
|
19
|
+
class: (string | {
|
20
|
+
'pointer-events-none': any;
|
21
|
+
})[];
|
22
|
+
'data-wv-section': string;
|
23
|
+
};
|
24
|
+
let bulkactiontoggle: {
|
25
|
+
'data-wv-section': string;
|
26
|
+
};
|
27
|
+
let buttonclearselection: {
|
28
|
+
class: string;
|
29
|
+
'data-wv-section': string;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
'class': 'flex gap-2 items-center',
|
6
|
+
'data-wv-name': 'buttonbulkaction',
|
7
|
+
'data-wv-section': 'root',
|
8
|
+
},
|
9
|
+
menu: {
|
10
|
+
'id': 'bulkaction-overlay-menu',
|
11
|
+
'class': 'flex gap-2 items-center',
|
12
|
+
'data-wv-section': 'menu',
|
13
|
+
},
|
14
|
+
selectionmessage: {
|
15
|
+
'class': 'text-xs text-grayscale-900 cursor-default whitespace-nowrap',
|
16
|
+
'data-wv-section': 'selectionmessage',
|
17
|
+
},
|
18
|
+
buttonselectall: function (_a) {
|
19
|
+
var context = _a.context;
|
20
|
+
return ({
|
21
|
+
'class': [
|
22
|
+
'!px-1.5 !py-1 -ml-1.5 -mr-1.5 !text-xs',
|
23
|
+
{ 'pointer-events-none': context.selectedAll },
|
24
|
+
],
|
25
|
+
'data-wv-section': 'buttonselectall',
|
26
|
+
});
|
27
|
+
},
|
28
|
+
bulkactiontoggle: {
|
29
|
+
'data-wv-section': 'bulkactiontoggle',
|
30
|
+
},
|
31
|
+
buttonclearselection: {
|
32
|
+
'class': '!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5',
|
33
|
+
'data-wv-section': 'buttonclearselection',
|
34
|
+
},
|
35
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
'class': 'focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm',
|
6
|
+
'data-wv-name': 'buttondownload',
|
7
|
+
'data-wv-section': 'root',
|
8
|
+
},
|
9
|
+
icon: {
|
10
|
+
'class': 'text-2xl',
|
11
|
+
'data-wv-section': 'icon',
|
12
|
+
},
|
13
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
'class': 'focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm',
|
6
|
+
'data-wv-name': 'buttonfilter',
|
7
|
+
'data-wv-section': 'root',
|
8
|
+
},
|
9
|
+
icon: {
|
10
|
+
'class': 'text-2xl',
|
11
|
+
'data-wv-section': 'icon',
|
12
|
+
},
|
13
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let root: {
|
3
|
+
class: string;
|
4
|
+
'data-wv-name': string;
|
5
|
+
'data-wv-section': string;
|
6
|
+
};
|
7
|
+
function wrapper({ props }: {
|
8
|
+
props: any;
|
9
|
+
}): {
|
10
|
+
class: (string | {
|
11
|
+
'bg-white': boolean;
|
12
|
+
'bg-general-50': any;
|
13
|
+
'border-general-100': boolean;
|
14
|
+
'border-primary-500': boolean;
|
15
|
+
'border-general-200': any;
|
16
|
+
'!border-danger-500'?: undefined;
|
17
|
+
} | {
|
18
|
+
'!border-danger-500': any;
|
19
|
+
'bg-white'?: undefined;
|
20
|
+
'bg-general-50'?: undefined;
|
21
|
+
'border-general-100'?: undefined;
|
22
|
+
'border-primary-500'?: undefined;
|
23
|
+
'border-general-200'?: undefined;
|
24
|
+
})[];
|
25
|
+
};
|
26
|
+
function box({ props }: {
|
27
|
+
props: any;
|
28
|
+
}): {
|
29
|
+
class: (string | {
|
30
|
+
'border-general-100': boolean;
|
31
|
+
'border-primary-500': boolean;
|
32
|
+
'bg-primary-500': boolean;
|
33
|
+
'bg-general-200': any;
|
34
|
+
'outline-none outline-offset-0'?: undefined;
|
35
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 peer-focus-visible:ring-primary-500'?: undefined;
|
36
|
+
} | {
|
37
|
+
'outline-none outline-offset-0': boolean;
|
38
|
+
'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 peer-focus-visible:ring-primary-500': boolean;
|
39
|
+
'border-general-100'?: undefined;
|
40
|
+
'border-primary-500'?: undefined;
|
41
|
+
'bg-primary-500'?: undefined;
|
42
|
+
'bg-general-200'?: undefined;
|
43
|
+
})[];
|
44
|
+
};
|
45
|
+
function input({ props }: {
|
46
|
+
props: any;
|
47
|
+
}): {
|
48
|
+
class: (string | {
|
49
|
+
'cursor-default': any;
|
50
|
+
'cursor-pointer': boolean;
|
51
|
+
})[];
|
52
|
+
};
|
53
|
+
namespace icon {
|
54
|
+
let _class: string;
|
55
|
+
export { _class as class };
|
56
|
+
}
|
57
|
+
}
|
58
|
+
export default _default;
|