@fewangsit/wangsvue-presets 1.0.81 → 1.0.82
Sign up to get free protection for your applications and to get access to all the features.
- package/build.sh +32 -0
- package/dev.sh +22 -0
- package/dist +13 -0
- package/fixedasset/accordion/index.js +75 -0
- package/fixedasset/autocomplete/index.js +280 -0
- package/fixedasset/avatar/index.js +42 -0
- package/fixedasset/avatargroup/index.js +7 -0
- package/fixedasset/badge/index.js +54 -0
- package/fixedasset/badgedirective/index.js +50 -0
- package/fixedasset/badgegroup/index.js +30 -0
- package/fixedasset/breadcrumb/index.js +29 -0
- package/fixedasset/button/index.js +506 -0
- package/fixedasset/buttonbulkaction/index.js +35 -0
- package/fixedasset/buttondownload/index.js +12 -0
- package/fixedasset/buttonfilter/index.js +12 -0
- package/fixedasset/buttonradio/index.js +122 -0
- package/fixedasset/buttonsearch/index.js +53 -0
- package/fixedasset/calendar/index.js +684 -0
- package/fixedasset/card/index.js +32 -0
- package/fixedasset/carousel/index.js +134 -0
- package/fixedasset/cascadeselect/index.js +219 -0
- package/fixedasset/changelog/index.js +29 -0
- package/fixedasset/checkbox/index.js +127 -0
- package/fixedasset/chip/index.js +45 -0
- package/fixedasset/chips/index.js +112 -0
- package/fixedasset/colorpicker/index.js +134 -0
- package/fixedasset/colors.config.json +77 -0
- package/fixedasset/confirmpopup/index.js +122 -0
- package/fixedasset/contextmenu/index.js +122 -0
- package/fixedasset/datatable/index.js +246 -0
- package/fixedasset/dataview/index.js +40 -0
- package/fixedasset/dataviewlayoutoptions/index.js +64 -0
- package/fixedasset/datepicker/index.js +39 -0
- package/fixedasset/daypicker/index.js +38 -0
- package/fixedasset/dialog/index.js +249 -0
- package/fixedasset/dialogconfirm/index.js +42 -0
- package/fixedasset/dialogform/index.js +67 -0
- package/fixedasset/divider/index.js +72 -0
- package/fixedasset/dock/index.js +97 -0
- package/fixedasset/dropdown/index.js +230 -0
- package/fixedasset/fieldset/index.js +99 -0
- package/fixedasset/fileupload/index.js +23 -0
- package/fixedasset/form/index.js +42 -0
- package/fixedasset/global.js +87 -0
- package/fixedasset/icons.css +850 -0
- package/fixedasset/image/index.js +128 -0
- package/fixedasset/index.css +65 -0
- package/{wangsvue/index.d.ts → fixedasset/index.js} +211 -190
- package/fixedasset/inlinemessage/index.js +26 -0
- package/fixedasset/inputbadge/index.js +41 -0
- package/fixedasset/inputcurrency/index.js +12 -0
- package/fixedasset/inputgroup/index.js +40 -0
- package/fixedasset/inputgroupaddon/index.js +34 -0
- package/fixedasset/inputmask/index.js +30 -0
- package/fixedasset/inputnumber/index.js +50 -0
- package/fixedasset/inputotp/index.js +70 -0
- package/fixedasset/inputphonenumber/index.js +19 -0
- package/fixedasset/inputswitch/index.js +114 -0
- package/fixedasset/inputtext/index.js +27 -0
- package/fixedasset/knob/index.js +47 -0
- package/fixedasset/listbox/index.js +156 -0
- package/fixedasset/megamenu/index.js +218 -0
- package/fixedasset/menu/index.js +119 -0
- package/fixedasset/menubar/index.js +186 -0
- package/fixedasset/message/index.js +87 -0
- package/fixedasset/multiselect/index.js +360 -0
- package/fixedasset/orderlist/index.js +275 -0
- package/fixedasset/organizationchart/index.js +143 -0
- package/fixedasset/overlaypanel/index.js +36 -0
- package/fixedasset/paginator/index.js +547 -0
- package/fixedasset/panel/index.js +95 -0
- package/fixedasset/panelmenu/index.js +136 -0
- package/fixedasset/password/index.js +98 -0
- package/fixedasset/picklist/index.js +684 -0
- package/fixedasset/progressbar/index.js +112 -0
- package/fixedasset/rating/index.js +86 -0
- package/fixedasset/ripple/index.js +6 -0
- package/fixedasset/scrollpanel/index.js +77 -0
- package/fixedasset/scrolltop/index.js +45 -0
- package/fixedasset/selectbutton/index.js +59 -0
- package/fixedasset/sidebar/index.js +165 -0
- package/fixedasset/skeleton/index.js +19 -0
- package/fixedasset/slider/index.js +135 -0
- package/fixedasset/splitbutton/index.js +957 -0
- package/fixedasset/steps/index.js +132 -0
- package/fixedasset/tabmenu/index.js +84 -0
- package/fixedasset/tabview/index.js +168 -0
- package/fixedasset/tag/index.js +37 -0
- package/fixedasset/tailwind.config.js +20 -0
- package/fixedasset/terminal/index.js +60 -0
- package/fixedasset/textarea/index.js +44 -0
- package/fixedasset/tieredmenu/index.js +121 -0
- package/fixedasset/timeline/index.js +70 -0
- package/fixedasset/toast/index.js +97 -0
- package/fixedasset/togglebutton/index.js +87 -0
- package/fixedasset/toolbar/index.js +30 -0
- package/fixedasset/tooltip/index.js +44 -0
- package/fixedasset/tree/index.js +298 -0
- package/fixedasset/treeselect/index.js +395 -0
- package/fixedasset/tristatecheckbox/index.js +128 -0
- package/fixedasset/validatormessage/index.js +7 -0
- package/fixedasset/workcalendar/index.js +27 -0
- package/{index.d.ts → index.ts} +1 -1
- package/package.json +1 -1
- package/release.sh +7 -0
- package/tsconfig.json +14 -0
- package/vite.config.ts +17 -0
- package/wangsvue/accordion/index.js +75 -70
- package/wangsvue/autocomplete/index.js +280 -247
- package/wangsvue/avatar/index.js +42 -44
- package/wangsvue/avatargroup/index.js +7 -9
- package/wangsvue/badge/index.js +54 -60
- package/wangsvue/badgedirective/index.js +50 -49
- package/wangsvue/badgegroup/index.js +30 -29
- package/wangsvue/breadcrumb/index.js +29 -31
- package/wangsvue/button/index.js +506 -423
- package/wangsvue/buttonbulkaction/index.js +35 -35
- package/wangsvue/buttondownload/index.js +12 -13
- package/wangsvue/buttonfilter/index.js +12 -13
- package/wangsvue/buttonradio/index.js +122 -109
- package/wangsvue/buttonsearch/index.js +53 -62
- package/wangsvue/calendar/index.js +684 -610
- package/wangsvue/card/index.js +32 -32
- package/wangsvue/carousel/index.js +134 -129
- package/wangsvue/cascadeselect/index.js +219 -191
- package/wangsvue/changelog/index.js +29 -31
- package/wangsvue/checkbox/index.js +127 -107
- package/wangsvue/chip/index.js +45 -40
- package/wangsvue/chips/index.js +112 -98
- package/wangsvue/colorpicker/index.js +134 -118
- package/wangsvue/confirmpopup/index.js +122 -104
- package/wangsvue/contextmenu/index.js +122 -113
- package/wangsvue/datatable/index.js +246 -253
- package/wangsvue/dataview/index.js +40 -36
- package/wangsvue/dataviewlayoutoptions/index.js +64 -58
- package/wangsvue/datepicker/index.js +39 -0
- package/wangsvue/daypicker/index.js +38 -0
- package/wangsvue/dialog/index.js +249 -220
- package/wangsvue/dialogconfirm/index.js +42 -45
- package/wangsvue/dialogform/index.js +67 -68
- package/wangsvue/divider/index.js +72 -64
- package/wangsvue/dock/index.js +97 -92
- package/wangsvue/dropdown/index.js +230 -207
- package/wangsvue/fieldset/index.js +99 -87
- package/wangsvue/fileupload/index.js +23 -31
- package/wangsvue/form/index.js +42 -44
- package/wangsvue/global.js +87 -14
- package/wangsvue/{style.css → icons.css} +857 -5830
- package/wangsvue/image/index.js +128 -136
- package/wangsvue/index.css +65 -0
- package/wangsvue/index.js +211 -201
- package/wangsvue/inlinemessage/index.js +26 -30
- package/wangsvue/inputbadge/index.js +41 -57
- package/wangsvue/inputcurrency/index.js +12 -22
- package/wangsvue/inputgroup/index.js +40 -37
- package/wangsvue/inputgroupaddon/index.js +34 -34
- package/wangsvue/inputmask/index.js +30 -29
- package/wangsvue/inputnumber/index.js +50 -58
- package/wangsvue/inputotp/index.js +70 -63
- package/wangsvue/inputphonenumber/index.js +19 -34
- package/wangsvue/inputswitch/index.js +114 -100
- package/wangsvue/inputtext/index.js +27 -28
- package/wangsvue/knob/index.js +47 -45
- package/wangsvue/listbox/index.js +156 -138
- package/wangsvue/megamenu/index.js +218 -202
- package/wangsvue/menu/index.js +119 -110
- package/wangsvue/menubar/index.js +186 -172
- package/wangsvue/message/index.js +87 -85
- package/wangsvue/multiselect/index.js +360 -328
- package/wangsvue/orderlist/index.js +275 -245
- package/wangsvue/organizationchart/index.js +143 -129
- package/wangsvue/overlaypanel/index.js +36 -34
- package/wangsvue/paginator/index.js +547 -474
- package/wangsvue/panel/index.js +95 -85
- package/wangsvue/panelmenu/index.js +136 -124
- package/wangsvue/password/index.js +98 -96
- package/wangsvue/picklist/index.js +684 -613
- package/wangsvue/progressbar/index.js +112 -102
- package/wangsvue/rating/index.js +86 -88
- package/wangsvue/ripple/index.js +6 -8
- package/wangsvue/scrollpanel/index.js +77 -62
- package/wangsvue/scrolltop/index.js +45 -42
- package/wangsvue/selectbutton/index.js +59 -60
- package/wangsvue/sidebar/index.js +165 -145
- package/wangsvue/skeleton/index.js +19 -22
- package/wangsvue/slider/index.js +135 -126
- package/wangsvue/splitbutton/index.js +957 -786
- package/wangsvue/steps/index.js +132 -119
- package/wangsvue/tabmenu/index.js +84 -75
- package/wangsvue/tabview/index.js +168 -148
- package/wangsvue/tag/index.js +37 -37
- package/wangsvue/tailwind.config.js +20 -0
- package/wangsvue/terminal/index.js +60 -55
- package/wangsvue/textarea/index.js +44 -51
- package/wangsvue/tieredmenu/index.js +121 -108
- package/wangsvue/timeline/index.js +70 -83
- package/wangsvue/toast/index.js +97 -95
- package/wangsvue/togglebutton/index.js +87 -77
- package/wangsvue/toolbar/index.js +30 -29
- package/wangsvue/tooltip/index.js +44 -42
- package/wangsvue/tree/index.js +298 -256
- package/wangsvue/treeselect/index.js +395 -338
- package/wangsvue/tristatecheckbox/index.js +128 -106
- package/wangsvue/validatormessage/index.js +7 -9
- package/wangsvue/workcalendar/index.js +27 -36
- package/index.js +0 -5
- package/wangsvue/accordion/index.d.ts +0 -37
- package/wangsvue/autocomplete/index.d.ts +0 -188
- package/wangsvue/avatar/index.d.ts +0 -85
- package/wangsvue/avatargroup/index.d.ts +0 -8
- package/wangsvue/badge/index.d.ts +0 -47
- package/wangsvue/badgedirective/index.d.ts +0 -50
- package/wangsvue/badgegroup/index.d.ts +0 -45
- package/wangsvue/breadcrumb/index.d.ts +0 -25
- package/wangsvue/button/index.d.ts +0 -46
- package/wangsvue/buttonbulkaction/index.d.ts +0 -32
- package/wangsvue/buttondownload/index.d.ts +0 -12
- package/wangsvue/buttonfilter/index.d.ts +0 -12
- package/wangsvue/buttonradio/index.d.ts +0 -58
- package/wangsvue/buttonsearch/index.d.ts +0 -65
- package/wangsvue/calendar/index.d.ts +0 -267
- package/wangsvue/card/index.d.ts +0 -31
- package/wangsvue/carousel/index.d.ts +0 -57
- package/wangsvue/cascadeselect/index.d.ts +0 -82
- package/wangsvue/changelog/index.d.ts +0 -32
- package/wangsvue/checkbox/index.d.ts +0 -81
- package/wangsvue/chip/index.d.ts +0 -23
- package/wangsvue/chips/index.d.ts +0 -38
- package/wangsvue/colorpicker/index.d.ts +0 -51
- package/wangsvue/confirmpopup/index.d.ts +0 -39
- package/wangsvue/contextmenu/index.d.ts +0 -63
- package/wangsvue/datatable/index.d.ts +0 -286
- package/wangsvue/dataview/index.d.ts +0 -15
- package/wangsvue/dataviewlayoutoptions/index.d.ts +0 -13
- package/wangsvue/dialog/index.d.ts +0 -87
- package/wangsvue/dialogconfirm/index.d.ts +0 -42
- package/wangsvue/dialogform/index.d.ts +0 -71
- package/wangsvue/divider/index.d.ts +0 -192
- package/wangsvue/dock/index.d.ts +0 -51
- package/wangsvue/dropdown/index.d.ts +0 -136
- package/wangsvue/fieldset/index.d.ts +0 -94
- package/wangsvue/fileupload/index.d.ts +0 -29
- package/wangsvue/form/index.d.ts +0 -40
- package/wangsvue/global.d.ts +0 -8
- package/wangsvue/image/index.d.ts +0 -88
- package/wangsvue/index.system.js +0 -76
- package/wangsvue/inlinemessage/index.d.ts +0 -20
- package/wangsvue/inputbadge/index.d.ts +0 -57
- package/wangsvue/inputcurrency/index.d.ts +0 -27
- package/wangsvue/inputgroup/index.d.ts +0 -9
- package/wangsvue/inputgroupaddon/index.d.ts +0 -17
- package/wangsvue/inputmask/index.d.ts +0 -11
- package/wangsvue/inputnumber/index.d.ts +0 -46
- package/wangsvue/inputotp/index.d.ts +0 -137
- package/wangsvue/inputphonenumber/index.d.ts +0 -37
- package/wangsvue/inputswitch/index.d.ts +0 -67
- package/wangsvue/inputtext/index.d.ts +0 -18
- package/wangsvue/knob/index.d.ts +0 -22
- package/wangsvue/listbox/index.d.ts +0 -79
- package/wangsvue/megamenu/index.d.ts +0 -105
- package/wangsvue/menu/index.d.ts +0 -49
- package/wangsvue/menubar/index.d.ts +0 -85
- package/wangsvue/message/index.d.ts +0 -41
- package/wangsvue/multiselect/index.d.ts +0 -243
- package/wangsvue/orderlist/index.d.ts +0 -99
- package/wangsvue/organizationchart/index.d.ts +0 -71
- package/wangsvue/overlaypanel/index.d.ts +0 -17
- package/wangsvue/paginator/index.d.ts +0 -210
- package/wangsvue/panel/index.d.ts +0 -43
- package/wangsvue/panelmenu/index.d.ts +0 -76
- package/wangsvue/password/index.d.ts +0 -45
- package/wangsvue/picklist/index.d.ts +0 -245
- package/wangsvue/progressbar/index.d.ts +0 -117
- package/wangsvue/rating/index.d.ts +0 -47
- package/wangsvue/ripple/index.d.ts +0 -8
- package/wangsvue/scrollpanel/index.d.ts +0 -19
- package/wangsvue/scrolltop/index.d.ts +0 -50
- package/wangsvue/selectbutton/index.d.ts +0 -35
- package/wangsvue/sidebar/index.d.ts +0 -66
- package/wangsvue/skeleton/index.d.ts +0 -16
- package/wangsvue/slider/index.d.ts +0 -55
- package/wangsvue/splitbutton/index.d.ts +0 -6690
- package/wangsvue/steps/index.d.ts +0 -108
- package/wangsvue/tabmenu/index.d.ts +0 -57
- package/wangsvue/tabview/index.d.ts +0 -67
- package/wangsvue/tag/index.d.ts +0 -32
- package/wangsvue/terminal/index.d.ts +0 -27
- package/wangsvue/textarea/index.d.ts +0 -12
- package/wangsvue/tieredmenu/index.d.ts +0 -56
- package/wangsvue/timeline/index.d.ts +0 -53
- package/wangsvue/toast/index.d.ts +0 -61
- package/wangsvue/togglebutton/index.d.ts +0 -42
- package/wangsvue/toolbar/index.d.ts +0 -19
- package/wangsvue/tooltip/index.d.ts +0 -22
- package/wangsvue/tree/index.d.ts +0 -117
- package/wangsvue/treeselect/index.d.ts +0 -158
- package/wangsvue/tristatecheckbox/index.d.ts +0 -49
- package/wangsvue/validatormessage/index.d.ts +0 -8
- package/wangsvue/workcalendar/index.d.ts +0 -27
package/wangsvue/button/index.js
CHANGED
@@ -1,423 +1,506 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
1
|
+
export default {
|
2
|
+
root: ({ props, context }) => ({
|
3
|
+
class: [
|
4
|
+
'relative',
|
5
|
+
|
6
|
+
// Alignments
|
7
|
+
'items-center inline-flex text-center align-bottom justify-center',
|
8
|
+
{
|
9
|
+
'flex-col':
|
10
|
+
(props.iconPos === 'top' || props.iconPos === 'bottom') &&
|
11
|
+
props.label,
|
12
|
+
},
|
13
|
+
|
14
|
+
props.iconPos,
|
15
|
+
{
|
16
|
+
'flex-row-reverse': props.iconPos === 'right',
|
17
|
+
},
|
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
|
+
{
|
29
|
+
'p-[7px] w-max':
|
30
|
+
props.label === null && props.icon && props.size === null,
|
31
|
+
},
|
32
|
+
{
|
33
|
+
'!p-0.5 !h-4 !w-4':
|
34
|
+
props.label === null && props.icon && props.size === 'small',
|
35
|
+
},
|
36
|
+
|
37
|
+
// Ring
|
38
|
+
'ring-inset ring-1 ',
|
39
|
+
|
40
|
+
// Shapes
|
41
|
+
{ 'shadow-lg': props.raised },
|
42
|
+
|
43
|
+
// Link Button
|
44
|
+
{
|
45
|
+
'text-grayscale-900-600 bg-transparent ring-transparent': props.link,
|
46
|
+
},
|
47
|
+
|
48
|
+
// Plain Button
|
49
|
+
{
|
50
|
+
'text-white bg-gray-500 ring-1 ring-gray-500':
|
51
|
+
props.plain && !props.outlined && !props.text,
|
52
|
+
},
|
53
|
+
// Plain Text Button
|
54
|
+
{ 'text-primary-400': props.plain && props.text },
|
55
|
+
// Plain Outlined Button
|
56
|
+
{
|
57
|
+
'text-primary-400 ring-1 ring-gray-500': props.plain && props.outlined,
|
58
|
+
},
|
59
|
+
|
60
|
+
// Text Button
|
61
|
+
{ 'bg-transparent ring-transparent': props.text && !props.plain },
|
62
|
+
|
63
|
+
// Outlined Button
|
64
|
+
{ 'bg-transparent ring-1': props.outlined && !props.plain },
|
65
|
+
|
66
|
+
// --- Severity Buttons ---
|
67
|
+
|
68
|
+
// Secondary Button
|
69
|
+
{
|
70
|
+
'text-white':
|
71
|
+
!props.link &&
|
72
|
+
props.severity === 'secondary' &&
|
73
|
+
!props.text &&
|
74
|
+
!props.outlined &&
|
75
|
+
!props.plain,
|
76
|
+
'bg-grayscale-900':
|
77
|
+
!props.link &&
|
78
|
+
props.severity === 'secondary' &&
|
79
|
+
!props.text &&
|
80
|
+
!props.outlined &&
|
81
|
+
!props.plain,
|
82
|
+
'ring-1 ring-grayscale-900':
|
83
|
+
!props.link &&
|
84
|
+
props.severity === 'secondary' &&
|
85
|
+
!props.text &&
|
86
|
+
!props.outlined &&
|
87
|
+
!props.plain,
|
88
|
+
},
|
89
|
+
// Secondary Text Button
|
90
|
+
{
|
91
|
+
'text-grayscale-900':
|
92
|
+
props.text && props.severity === 'secondary' && !props.plain,
|
93
|
+
},
|
94
|
+
// Secondary Outlined Button
|
95
|
+
{
|
96
|
+
'text-grayscale-900 ring-1 ring-grayscale-900':
|
97
|
+
props.outlined && props.severity === 'secondary' && !props.plain,
|
98
|
+
},
|
99
|
+
|
100
|
+
// Primary Gold Button
|
101
|
+
{
|
102
|
+
'text-white':
|
103
|
+
props.severity === null &&
|
104
|
+
!props.text &&
|
105
|
+
!props.outlined &&
|
106
|
+
!props.plain,
|
107
|
+
'bg-primary-400':
|
108
|
+
props.severity === null &&
|
109
|
+
!props.text &&
|
110
|
+
!props.outlined &&
|
111
|
+
!props.plain,
|
112
|
+
'ring-1 ring-primary-400':
|
113
|
+
props.severity === null &&
|
114
|
+
!props.text &&
|
115
|
+
!props.outlined &&
|
116
|
+
!props.plain,
|
117
|
+
},
|
118
|
+
// Primary Gold Text Button
|
119
|
+
{
|
120
|
+
'text-primary-400':
|
121
|
+
props.text && props.severity === null && !props.plain,
|
122
|
+
},
|
123
|
+
// Primary Gold Outlined Button
|
124
|
+
{
|
125
|
+
'text-primary-400 ring-1 ring-primary-400 hover:bg-primary-400/20':
|
126
|
+
props.outlined && props.severity === null && !props.plain,
|
127
|
+
},
|
128
|
+
|
129
|
+
// Success Button
|
130
|
+
{
|
131
|
+
'text-white':
|
132
|
+
props.severity === 'success' &&
|
133
|
+
!props.text &&
|
134
|
+
!props.outlined &&
|
135
|
+
!props.plain,
|
136
|
+
'bg-success-500':
|
137
|
+
props.severity === 'success' &&
|
138
|
+
!props.text &&
|
139
|
+
!props.outlined &&
|
140
|
+
!props.plain,
|
141
|
+
'ring-1 ring-success-500':
|
142
|
+
props.severity === 'success' &&
|
143
|
+
!props.text &&
|
144
|
+
!props.outlined &&
|
145
|
+
!props.plain,
|
146
|
+
},
|
147
|
+
// Success Text Button
|
148
|
+
{
|
149
|
+
'text-success-500':
|
150
|
+
props.text && props.severity === 'success' && !props.plain,
|
151
|
+
},
|
152
|
+
// Success Outlined Button
|
153
|
+
{
|
154
|
+
'text-success-500 ring-1 ring-success-500 hover:bg-success-300/20':
|
155
|
+
props.outlined && props.severity === 'success' && !props.plain,
|
156
|
+
},
|
157
|
+
|
158
|
+
// Info Button
|
159
|
+
{
|
160
|
+
'text-white':
|
161
|
+
props.severity === 'info' &&
|
162
|
+
!props.text &&
|
163
|
+
!props.outlined &&
|
164
|
+
!props.plain,
|
165
|
+
'bg-blue-500':
|
166
|
+
props.severity === 'info' &&
|
167
|
+
!props.text &&
|
168
|
+
!props.outlined &&
|
169
|
+
!props.plain,
|
170
|
+
'ring-1 ring-blue-500':
|
171
|
+
props.severity === 'info' &&
|
172
|
+
!props.text &&
|
173
|
+
!props.outlined &&
|
174
|
+
!props.plain,
|
175
|
+
},
|
176
|
+
// Info Text Button
|
177
|
+
{
|
178
|
+
'text-blue-500':
|
179
|
+
props.text && props.severity === 'info' && !props.plain,
|
180
|
+
},
|
181
|
+
// Info Outlined Button
|
182
|
+
{
|
183
|
+
'text-blue-500 ring-1 ring-blue-500 hover:bg-blue-300/20 ':
|
184
|
+
props.outlined && props.severity === 'info' && !props.plain,
|
185
|
+
},
|
186
|
+
|
187
|
+
// Warning Button
|
188
|
+
{
|
189
|
+
'text-white':
|
190
|
+
props.severity === 'warning' &&
|
191
|
+
!props.text &&
|
192
|
+
!props.outlined &&
|
193
|
+
!props.plain,
|
194
|
+
'bg-warning-500':
|
195
|
+
props.severity === 'warning' &&
|
196
|
+
!props.text &&
|
197
|
+
!props.outlined &&
|
198
|
+
!props.plain,
|
199
|
+
'ring-1 ring-warning-500':
|
200
|
+
props.severity === 'warning' &&
|
201
|
+
!props.text &&
|
202
|
+
!props.outlined &&
|
203
|
+
!props.plain,
|
204
|
+
},
|
205
|
+
// Warning Text Button
|
206
|
+
{
|
207
|
+
'text-warning-500':
|
208
|
+
props.text && props.severity === 'warning' && !props.plain,
|
209
|
+
},
|
210
|
+
// Warning Outlined Button
|
211
|
+
{
|
212
|
+
'text-warning-500 ring-1 ring-warning-500 hover:bg-warning-300/20':
|
213
|
+
props.outlined && props.severity === 'warning' && !props.plain,
|
214
|
+
},
|
215
|
+
|
216
|
+
// Help Button
|
217
|
+
{
|
218
|
+
'text-white':
|
219
|
+
props.severity === 'help' &&
|
220
|
+
!props.text &&
|
221
|
+
!props.outlined &&
|
222
|
+
!props.plain,
|
223
|
+
'bg-purple-500':
|
224
|
+
props.severity === 'help' &&
|
225
|
+
!props.text &&
|
226
|
+
!props.outlined &&
|
227
|
+
!props.plain,
|
228
|
+
'ring-1 ring-purple-500':
|
229
|
+
props.severity === 'help' &&
|
230
|
+
!props.text &&
|
231
|
+
!props.outlined &&
|
232
|
+
!props.plain,
|
233
|
+
},
|
234
|
+
// Help Text Button
|
235
|
+
{
|
236
|
+
'text-purple-500':
|
237
|
+
props.text && props.severity === 'help' && !props.plain,
|
238
|
+
},
|
239
|
+
// Help Outlined Button
|
240
|
+
{
|
241
|
+
'text-purple-500 ring-1 ring-purple-500 hover:bg-purple-300/20':
|
242
|
+
props.outlined && props.severity === 'help' && !props.plain,
|
243
|
+
},
|
244
|
+
|
245
|
+
// Danger Button
|
246
|
+
{
|
247
|
+
'text-white':
|
248
|
+
props.severity === 'danger' &&
|
249
|
+
!props.text &&
|
250
|
+
!props.outlined &&
|
251
|
+
!props.plain,
|
252
|
+
'bg-danger-500':
|
253
|
+
props.severity === 'danger' &&
|
254
|
+
!props.text &&
|
255
|
+
!props.outlined &&
|
256
|
+
!props.plain,
|
257
|
+
'ring-1 ring-danger-500':
|
258
|
+
props.severity === 'danger' &&
|
259
|
+
!props.text &&
|
260
|
+
!props.outlined &&
|
261
|
+
!props.plain,
|
262
|
+
},
|
263
|
+
// Danger Text Button
|
264
|
+
{
|
265
|
+
'text-danger-500':
|
266
|
+
props.text && props.severity === 'danger' && !props.plain,
|
267
|
+
},
|
268
|
+
// Danger Outlined Button
|
269
|
+
{
|
270
|
+
'text-danger-500 ring-1 ring-danger-500 hover:bg-danger-300/20':
|
271
|
+
props.outlined && props.severity === 'danger' && !props.plain,
|
272
|
+
},
|
273
|
+
// Contrast Button
|
274
|
+
{
|
275
|
+
'text-white':
|
276
|
+
props.severity === 'contrast' &&
|
277
|
+
!props.text &&
|
278
|
+
!props.outlined &&
|
279
|
+
!props.plain,
|
280
|
+
'bg-surface-900':
|
281
|
+
props.severity === 'contrast' &&
|
282
|
+
!props.text &&
|
283
|
+
!props.outlined &&
|
284
|
+
!props.plain,
|
285
|
+
'ring-1 ring-surface-900':
|
286
|
+
props.severity === 'contrast' &&
|
287
|
+
!props.text &&
|
288
|
+
!props.outlined &&
|
289
|
+
!props.plain,
|
290
|
+
},
|
291
|
+
// Contrast Text Button
|
292
|
+
{
|
293
|
+
'text-surface-900':
|
294
|
+
props.text && props.severity === 'contrast' && !props.plain,
|
295
|
+
},
|
296
|
+
// Contrast Outlined Button
|
297
|
+
{
|
298
|
+
'text-surface-900 ring-1 ring-surface-900':
|
299
|
+
props.outlined && props.severity === 'contrast' && !props.plain,
|
300
|
+
},
|
301
|
+
|
302
|
+
// --- Severity Button States ---
|
303
|
+
'focus:outline-none focus:outline-offset-0',
|
304
|
+
|
305
|
+
// Link
|
306
|
+
{ 'focus:ring-grayscale-900': props.link },
|
307
|
+
|
308
|
+
// Plain
|
309
|
+
{
|
310
|
+
'hover:bg-gray-600 hover:ring-gray-600':
|
311
|
+
props.plain && !props.outlined && !props.text,
|
312
|
+
},
|
313
|
+
// Text & Outlined Button
|
314
|
+
{
|
315
|
+
'hover:bg-primary-400/20':
|
316
|
+
props.plain && (props.text || props.outlined),
|
317
|
+
},
|
318
|
+
|
319
|
+
// Secondary
|
320
|
+
{
|
321
|
+
'hover:bg-grayscale-900/[8%] active:bg-grayscale-900/[12%] ':
|
322
|
+
props.severity === 'secondary',
|
323
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-grayscale-900/90 active:bg-grayscale-900/90 hover:ring-0':
|
324
|
+
!props.link &&
|
325
|
+
props.severity === 'secondary' &&
|
326
|
+
!props.text &&
|
327
|
+
!props.outlined &&
|
328
|
+
!props.plain,
|
329
|
+
},
|
330
|
+
|
331
|
+
// Primary
|
332
|
+
{
|
333
|
+
'hover:bg-primary-400/[8%] active:bg-primary-400/[12%] ':
|
334
|
+
props.severity === null,
|
335
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-primary-400/90 active:bg-primary-400/90 hover:ring-0':
|
336
|
+
!props.link &&
|
337
|
+
props.severity === null &&
|
338
|
+
!props.text &&
|
339
|
+
!props.outlined &&
|
340
|
+
!context.disabled &&
|
341
|
+
!props.plain,
|
342
|
+
},
|
343
|
+
|
344
|
+
// Success
|
345
|
+
{
|
346
|
+
'hover:bg-success-500/[8%] active:bg-success-500/[12%] ':
|
347
|
+
props.severity === 'success',
|
348
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-success-500/90 active:bg-success-500/90 hover:ring-0':
|
349
|
+
!props.link &&
|
350
|
+
props.severity === 'success' &&
|
351
|
+
!props.text &&
|
352
|
+
!props.outlined &&
|
353
|
+
!props.plain,
|
354
|
+
},
|
355
|
+
|
356
|
+
// Info
|
357
|
+
{
|
358
|
+
'hover:bg-blue-600 hover:ring-blue-600':
|
359
|
+
props.severity === 'info' &&
|
360
|
+
!props.text &&
|
361
|
+
!props.outlined &&
|
362
|
+
!props.plain,
|
363
|
+
},
|
364
|
+
{
|
365
|
+
'focus:ring-blue-400/50': props.severity === 'info',
|
366
|
+
},
|
367
|
+
// Text & Outlined Button
|
368
|
+
{
|
369
|
+
'hover:bg-blue-300/20':
|
370
|
+
(props.text || props.outlined) &&
|
371
|
+
props.severity === 'info' &&
|
372
|
+
!props.plain,
|
373
|
+
},
|
374
|
+
|
375
|
+
// Warning
|
376
|
+
{
|
377
|
+
'hover:bg-warning-500/[8%] active:bg-warning-500/[12%] ':
|
378
|
+
props.severity === 'warning',
|
379
|
+
|
380
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-warning-500/90 active:bg-warning-500/90 hover:ring-0':
|
381
|
+
!props.link &&
|
382
|
+
props.severity === 'warning' &&
|
383
|
+
!props.text &&
|
384
|
+
!props.outlined &&
|
385
|
+
!props.plain,
|
386
|
+
},
|
387
|
+
|
388
|
+
// Text & Outlined Button
|
389
|
+
{
|
390
|
+
'hover:bg-warning-300/20':
|
391
|
+
(props.text || props.outlined) &&
|
392
|
+
props.severity === 'warning' &&
|
393
|
+
!props.plain,
|
394
|
+
},
|
395
|
+
|
396
|
+
// Help
|
397
|
+
{
|
398
|
+
'hover:bg-purple-600 hover:ring-purple-600':
|
399
|
+
props.severity === 'help' &&
|
400
|
+
!props.text &&
|
401
|
+
!props.outlined &&
|
402
|
+
!props.plain,
|
403
|
+
},
|
404
|
+
{
|
405
|
+
'focus:ring-purple-400/50': props.severity === 'help',
|
406
|
+
},
|
407
|
+
// Text & Outlined Button
|
408
|
+
{
|
409
|
+
'hover:bg-purple-300/20':
|
410
|
+
(props.text || props.outlined) &&
|
411
|
+
props.severity === 'help' &&
|
412
|
+
!props.plain,
|
413
|
+
},
|
414
|
+
|
415
|
+
// Danger
|
416
|
+
{
|
417
|
+
'hover:bg-danger-500/[8%] active:bg-danger-500/[12%] ':
|
418
|
+
props.severity === 'danger',
|
419
|
+
'hover:shadow-hover active:!shadow-none hover:!bg-danger-500/90 active:bg-danger-500/90 hover:ring-0':
|
420
|
+
!props.link &&
|
421
|
+
props.severity === 'danger' &&
|
422
|
+
!props.text &&
|
423
|
+
!props.outlined &&
|
424
|
+
!props.plain,
|
425
|
+
},
|
426
|
+
|
427
|
+
// Text & Outlined Button
|
428
|
+
{
|
429
|
+
'hover:bg-danger-300/20':
|
430
|
+
(props.text || props.outlined) &&
|
431
|
+
props.severity === 'danger' &&
|
432
|
+
!props.plain,
|
433
|
+
},
|
434
|
+
// Contrast
|
435
|
+
{
|
436
|
+
'hover:bg-surface-800 hover:ring-surface-800':
|
437
|
+
props.severity === 'contrast' &&
|
438
|
+
!props.text &&
|
439
|
+
!props.outlined &&
|
440
|
+
!props.plain,
|
441
|
+
},
|
442
|
+
{
|
443
|
+
'focus:ring-primary-400': props.severity === 'contrast',
|
444
|
+
},
|
445
|
+
// Text & Outlined Button
|
446
|
+
{
|
447
|
+
'hover:bg-surface-900/10':
|
448
|
+
(props.text || props.outlined) &&
|
449
|
+
props.severity === 'contrast' &&
|
450
|
+
!props.plain,
|
451
|
+
},
|
452
|
+
// Disabled
|
453
|
+
{
|
454
|
+
'pointer-events-none cursor-default': context.disabled,
|
455
|
+
'!text-general-300': context.disabled && (props.outlined || props.text),
|
456
|
+
'!ring-general-300': context.disabled && props.outlined,
|
457
|
+
'!bg-general-300 !text-white !ring-0':
|
458
|
+
context.disabled && !props.outlined && !props.text,
|
459
|
+
},
|
460
|
+
|
461
|
+
// Transitions
|
462
|
+
'transition duration-200 ease-in-out',
|
463
|
+
|
464
|
+
// Misc
|
465
|
+
'cursor-pointer overflow-hidden select-none',
|
466
|
+
|
467
|
+
// Badge
|
468
|
+
'[&>[data-pc-name=badge]]:min-w-4 [&>[data-pc-name=badge]]:h-4 [&>[data-pc-name=badge]]:leading-4',
|
469
|
+
],
|
470
|
+
}),
|
471
|
+
label: ({ props }) => ({
|
472
|
+
class: [
|
473
|
+
'duration-200',
|
474
|
+
'font-normal text-xs',
|
475
|
+
props.label ? 'leading-5' : 'leading-4',
|
476
|
+
{
|
477
|
+
'hover:underline': props.link,
|
478
|
+
},
|
479
|
+
{ 'flex-1': props.label !== null, 'invisible w-0': props.label == null },
|
480
|
+
],
|
481
|
+
}),
|
482
|
+
icon: ({ props }) => ({
|
483
|
+
class: ['shrink-0', { '!h-[11px] !w-[11px]': props.size === 'small' }],
|
484
|
+
}),
|
485
|
+
loadingIcon: ({ props }) => ({
|
486
|
+
class: [
|
487
|
+
'h-4 w-4',
|
488
|
+
'mx-0',
|
489
|
+
{
|
490
|
+
'mr-2': props.iconPos === 'left' && props.label != null,
|
491
|
+
'ml-2 order-1': props.iconPos === 'right' && props.label != null,
|
492
|
+
'mb-2': props.iconPos === 'top' && props.label != null,
|
493
|
+
'mt-2': props.iconPos === 'bottom' && props.label != null,
|
494
|
+
},
|
495
|
+
'animate-spin',
|
496
|
+
],
|
497
|
+
}),
|
498
|
+
badge: ({ props }) => ({
|
499
|
+
class: [
|
500
|
+
{
|
501
|
+
'ml-2 w-4 h-4 leading-none flex items-center justify-center':
|
502
|
+
props.badge,
|
503
|
+
},
|
504
|
+
],
|
505
|
+
}),
|
506
|
+
};
|