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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (394) hide show
  1. package/fixedasset/accordion/index.d.ts +37 -0
  2. package/fixedasset/accordion/index.js +70 -75
  3. package/fixedasset/autocomplete/index.d.ts +188 -0
  4. package/fixedasset/autocomplete/index.js +247 -280
  5. package/fixedasset/avatar/index.d.ts +85 -0
  6. package/fixedasset/avatar/index.js +44 -42
  7. package/fixedasset/avatargroup/index.d.ts +8 -0
  8. package/fixedasset/avatargroup/index.js +9 -7
  9. package/fixedasset/badge/index.d.ts +47 -0
  10. package/fixedasset/badge/index.js +60 -54
  11. package/fixedasset/badgedirective/index.d.ts +50 -0
  12. package/fixedasset/badgedirective/index.js +49 -50
  13. package/fixedasset/badgegroup/index.d.ts +45 -0
  14. package/fixedasset/badgegroup/index.js +29 -30
  15. package/fixedasset/breadcrumb/index.d.ts +25 -0
  16. package/fixedasset/breadcrumb/index.js +31 -29
  17. package/fixedasset/button/index.d.ts +46 -0
  18. package/fixedasset/button/index.js +423 -506
  19. package/fixedasset/buttonbulkaction/index.d.ts +32 -0
  20. package/fixedasset/buttonbulkaction/index.js +35 -35
  21. package/fixedasset/buttondownload/index.d.ts +12 -0
  22. package/fixedasset/buttondownload/index.js +13 -12
  23. package/fixedasset/buttonfilter/index.d.ts +12 -0
  24. package/fixedasset/buttonfilter/index.js +13 -12
  25. package/fixedasset/buttonradio/index.d.ts +58 -0
  26. package/fixedasset/buttonradio/index.js +109 -122
  27. package/fixedasset/buttonsearch/index.d.ts +65 -0
  28. package/fixedasset/buttonsearch/index.js +62 -53
  29. package/fixedasset/calendar/index.d.ts +267 -0
  30. package/fixedasset/calendar/index.js +610 -684
  31. package/fixedasset/card/index.d.ts +31 -0
  32. package/fixedasset/card/index.js +32 -32
  33. package/fixedasset/carousel/index.d.ts +57 -0
  34. package/fixedasset/carousel/index.js +129 -134
  35. package/fixedasset/cascadeselect/index.d.ts +82 -0
  36. package/fixedasset/cascadeselect/index.js +191 -219
  37. package/fixedasset/changelog/index.d.ts +32 -0
  38. package/fixedasset/changelog/index.js +31 -29
  39. package/fixedasset/checkbox/index.d.ts +81 -0
  40. package/fixedasset/checkbox/index.js +107 -127
  41. package/fixedasset/chip/index.d.ts +23 -0
  42. package/fixedasset/chip/index.js +40 -45
  43. package/fixedasset/chips/index.d.ts +38 -0
  44. package/fixedasset/chips/index.js +98 -112
  45. package/fixedasset/colorpicker/index.d.ts +51 -0
  46. package/fixedasset/colorpicker/index.js +118 -134
  47. package/fixedasset/confirmpopup/index.d.ts +39 -0
  48. package/fixedasset/confirmpopup/index.js +104 -122
  49. package/fixedasset/contextmenu/index.d.ts +63 -0
  50. package/fixedasset/contextmenu/index.js +113 -122
  51. package/fixedasset/datatable/index.d.ts +286 -0
  52. package/fixedasset/datatable/index.js +253 -246
  53. package/fixedasset/dataview/index.d.ts +15 -0
  54. package/fixedasset/dataview/index.js +36 -40
  55. package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
  56. package/fixedasset/dataviewlayoutoptions/index.js +58 -64
  57. package/fixedasset/dialog/index.d.ts +87 -0
  58. package/fixedasset/dialog/index.js +220 -249
  59. package/fixedasset/dialogconfirm/index.d.ts +42 -0
  60. package/fixedasset/dialogconfirm/index.js +45 -42
  61. package/fixedasset/dialogform/index.d.ts +71 -0
  62. package/fixedasset/dialogform/index.js +68 -67
  63. package/fixedasset/divider/index.d.ts +192 -0
  64. package/fixedasset/divider/index.js +64 -72
  65. package/fixedasset/dock/index.d.ts +51 -0
  66. package/fixedasset/dock/index.js +92 -97
  67. package/fixedasset/dropdown/index.d.ts +136 -0
  68. package/fixedasset/dropdown/index.js +207 -230
  69. package/fixedasset/fieldset/index.d.ts +94 -0
  70. package/fixedasset/fieldset/index.js +87 -99
  71. package/fixedasset/fileupload/index.d.ts +29 -0
  72. package/fixedasset/fileupload/index.js +31 -23
  73. package/fixedasset/form/index.d.ts +40 -0
  74. package/fixedasset/form/index.js +44 -42
  75. package/fixedasset/global.d.ts +8 -0
  76. package/fixedasset/global.js +14 -87
  77. package/fixedasset/image/index.d.ts +88 -0
  78. package/fixedasset/image/index.js +136 -128
  79. package/fixedasset/index.d.ts +190 -0
  80. package/fixedasset/index.js +201 -211
  81. package/fixedasset/index.system.js +76 -0
  82. package/fixedasset/inlinemessage/index.d.ts +20 -0
  83. package/fixedasset/inlinemessage/index.js +30 -26
  84. package/fixedasset/inputbadge/index.d.ts +57 -0
  85. package/fixedasset/inputbadge/index.js +57 -41
  86. package/fixedasset/inputcurrency/index.d.ts +27 -0
  87. package/fixedasset/inputcurrency/index.js +22 -12
  88. package/fixedasset/inputgroup/index.d.ts +9 -0
  89. package/fixedasset/inputgroup/index.js +37 -40
  90. package/fixedasset/inputgroupaddon/index.d.ts +17 -0
  91. package/fixedasset/inputgroupaddon/index.js +34 -34
  92. package/fixedasset/inputmask/index.d.ts +11 -0
  93. package/fixedasset/inputmask/index.js +29 -30
  94. package/fixedasset/inputnumber/index.d.ts +46 -0
  95. package/fixedasset/inputnumber/index.js +58 -50
  96. package/fixedasset/inputotp/index.d.ts +137 -0
  97. package/fixedasset/inputotp/index.js +63 -70
  98. package/fixedasset/inputphonenumber/index.d.ts +37 -0
  99. package/fixedasset/inputphonenumber/index.js +34 -19
  100. package/fixedasset/inputswitch/index.d.ts +67 -0
  101. package/fixedasset/inputswitch/index.js +100 -114
  102. package/fixedasset/inputtext/index.d.ts +18 -0
  103. package/fixedasset/inputtext/index.js +28 -27
  104. package/fixedasset/knob/index.d.ts +22 -0
  105. package/fixedasset/knob/index.js +45 -47
  106. package/fixedasset/listbox/index.d.ts +79 -0
  107. package/fixedasset/listbox/index.js +138 -156
  108. package/fixedasset/megamenu/index.d.ts +105 -0
  109. package/fixedasset/megamenu/index.js +202 -218
  110. package/fixedasset/menu/index.d.ts +49 -0
  111. package/fixedasset/menu/index.js +110 -119
  112. package/fixedasset/menubar/index.d.ts +85 -0
  113. package/fixedasset/menubar/index.js +172 -186
  114. package/fixedasset/message/index.d.ts +41 -0
  115. package/fixedasset/message/index.js +85 -87
  116. package/fixedasset/multiselect/index.d.ts +243 -0
  117. package/fixedasset/multiselect/index.js +328 -360
  118. package/fixedasset/orderlist/index.d.ts +99 -0
  119. package/fixedasset/orderlist/index.js +245 -275
  120. package/fixedasset/organizationchart/index.d.ts +71 -0
  121. package/fixedasset/organizationchart/index.js +129 -143
  122. package/fixedasset/overlaypanel/index.d.ts +17 -0
  123. package/fixedasset/overlaypanel/index.js +34 -36
  124. package/fixedasset/paginator/index.d.ts +210 -0
  125. package/fixedasset/paginator/index.js +474 -547
  126. package/fixedasset/panel/index.d.ts +43 -0
  127. package/fixedasset/panel/index.js +85 -95
  128. package/fixedasset/panelmenu/index.d.ts +76 -0
  129. package/fixedasset/panelmenu/index.js +124 -136
  130. package/fixedasset/password/index.d.ts +45 -0
  131. package/fixedasset/password/index.js +96 -98
  132. package/fixedasset/picklist/index.d.ts +245 -0
  133. package/fixedasset/picklist/index.js +613 -684
  134. package/fixedasset/progressbar/index.d.ts +117 -0
  135. package/fixedasset/progressbar/index.js +102 -112
  136. package/fixedasset/rating/index.d.ts +47 -0
  137. package/fixedasset/rating/index.js +88 -86
  138. package/fixedasset/ripple/index.d.ts +8 -0
  139. package/fixedasset/ripple/index.js +8 -6
  140. package/fixedasset/scrollpanel/index.d.ts +19 -0
  141. package/fixedasset/scrollpanel/index.js +62 -77
  142. package/fixedasset/scrolltop/index.d.ts +50 -0
  143. package/fixedasset/scrolltop/index.js +42 -45
  144. package/fixedasset/selectbutton/index.d.ts +35 -0
  145. package/fixedasset/selectbutton/index.js +60 -59
  146. package/fixedasset/sidebar/index.d.ts +66 -0
  147. package/fixedasset/sidebar/index.js +145 -165
  148. package/fixedasset/skeleton/index.d.ts +16 -0
  149. package/fixedasset/skeleton/index.js +22 -19
  150. package/fixedasset/slider/index.d.ts +55 -0
  151. package/fixedasset/slider/index.js +126 -135
  152. package/fixedasset/splitbutton/index.d.ts +6690 -0
  153. package/fixedasset/splitbutton/index.js +786 -957
  154. package/fixedasset/steps/index.d.ts +108 -0
  155. package/fixedasset/steps/index.js +119 -132
  156. package/{wangsvue/icons.css → fixedasset/style.css} +5887 -849
  157. package/fixedasset/tabmenu/index.d.ts +57 -0
  158. package/fixedasset/tabmenu/index.js +75 -84
  159. package/fixedasset/tabview/index.d.ts +67 -0
  160. package/fixedasset/tabview/index.js +148 -168
  161. package/fixedasset/tag/index.d.ts +32 -0
  162. package/fixedasset/tag/index.js +37 -37
  163. package/fixedasset/terminal/index.d.ts +27 -0
  164. package/fixedasset/terminal/index.js +55 -60
  165. package/fixedasset/textarea/index.d.ts +12 -0
  166. package/fixedasset/textarea/index.js +51 -44
  167. package/fixedasset/tieredmenu/index.d.ts +56 -0
  168. package/fixedasset/tieredmenu/index.js +108 -121
  169. package/fixedasset/timeline/index.d.ts +53 -0
  170. package/fixedasset/timeline/index.js +83 -70
  171. package/fixedasset/toast/index.d.ts +61 -0
  172. package/fixedasset/toast/index.js +95 -97
  173. package/fixedasset/togglebutton/index.d.ts +42 -0
  174. package/fixedasset/togglebutton/index.js +77 -87
  175. package/fixedasset/toolbar/index.d.ts +19 -0
  176. package/fixedasset/toolbar/index.js +29 -30
  177. package/fixedasset/tooltip/index.d.ts +22 -0
  178. package/fixedasset/tooltip/index.js +42 -44
  179. package/fixedasset/tree/index.d.ts +117 -0
  180. package/fixedasset/tree/index.js +256 -298
  181. package/fixedasset/treeselect/index.d.ts +158 -0
  182. package/fixedasset/treeselect/index.js +338 -395
  183. package/fixedasset/tristatecheckbox/index.d.ts +49 -0
  184. package/fixedasset/tristatecheckbox/index.js +106 -128
  185. package/fixedasset/validatormessage/index.d.ts +8 -0
  186. package/fixedasset/validatormessage/index.js +9 -7
  187. package/fixedasset/workcalendar/index.d.ts +27 -0
  188. package/fixedasset/workcalendar/index.js +36 -27
  189. package/index.d.ts +2 -0
  190. package/index.js +7 -0
  191. package/package.json +1 -1
  192. package/wangsvue/accordion/index.d.ts +37 -0
  193. package/wangsvue/accordion/index.js +70 -75
  194. package/wangsvue/autocomplete/index.d.ts +188 -0
  195. package/wangsvue/autocomplete/index.js +247 -280
  196. package/wangsvue/avatar/index.d.ts +85 -0
  197. package/wangsvue/avatar/index.js +44 -42
  198. package/wangsvue/avatargroup/index.d.ts +8 -0
  199. package/wangsvue/avatargroup/index.js +9 -7
  200. package/wangsvue/badge/index.d.ts +47 -0
  201. package/wangsvue/badge/index.js +60 -54
  202. package/wangsvue/badgedirective/index.d.ts +50 -0
  203. package/wangsvue/badgedirective/index.js +49 -50
  204. package/wangsvue/badgegroup/index.d.ts +45 -0
  205. package/wangsvue/badgegroup/index.js +29 -30
  206. package/wangsvue/breadcrumb/index.d.ts +25 -0
  207. package/wangsvue/breadcrumb/index.js +31 -29
  208. package/wangsvue/button/index.d.ts +46 -0
  209. package/wangsvue/button/index.js +423 -506
  210. package/wangsvue/buttonbulkaction/index.d.ts +32 -0
  211. package/wangsvue/buttonbulkaction/index.js +35 -35
  212. package/wangsvue/buttondownload/index.d.ts +12 -0
  213. package/wangsvue/buttondownload/index.js +13 -12
  214. package/wangsvue/buttonfilter/index.d.ts +12 -0
  215. package/wangsvue/buttonfilter/index.js +13 -12
  216. package/wangsvue/buttonradio/index.d.ts +58 -0
  217. package/wangsvue/buttonradio/index.js +109 -122
  218. package/wangsvue/buttonsearch/index.d.ts +65 -0
  219. package/wangsvue/buttonsearch/index.js +62 -53
  220. package/wangsvue/calendar/index.d.ts +267 -0
  221. package/wangsvue/calendar/index.js +610 -684
  222. package/wangsvue/card/index.d.ts +31 -0
  223. package/wangsvue/card/index.js +32 -32
  224. package/wangsvue/carousel/index.d.ts +57 -0
  225. package/wangsvue/carousel/index.js +129 -134
  226. package/wangsvue/cascadeselect/index.d.ts +82 -0
  227. package/wangsvue/cascadeselect/index.js +191 -219
  228. package/wangsvue/changelog/index.d.ts +32 -0
  229. package/wangsvue/changelog/index.js +31 -29
  230. package/wangsvue/checkbox/index.d.ts +81 -0
  231. package/wangsvue/checkbox/index.js +107 -127
  232. package/wangsvue/chip/index.d.ts +23 -0
  233. package/wangsvue/chip/index.js +40 -45
  234. package/wangsvue/chips/index.d.ts +38 -0
  235. package/wangsvue/chips/index.js +98 -112
  236. package/wangsvue/colorpicker/index.d.ts +51 -0
  237. package/wangsvue/colorpicker/index.js +118 -134
  238. package/wangsvue/confirmpopup/index.d.ts +39 -0
  239. package/wangsvue/confirmpopup/index.js +104 -122
  240. package/wangsvue/contextmenu/index.d.ts +63 -0
  241. package/wangsvue/contextmenu/index.js +113 -122
  242. package/wangsvue/datatable/index.d.ts +286 -0
  243. package/wangsvue/datatable/index.js +253 -246
  244. package/wangsvue/dataview/index.d.ts +15 -0
  245. package/wangsvue/dataview/index.js +36 -40
  246. package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
  247. package/wangsvue/dataviewlayoutoptions/index.js +58 -64
  248. package/wangsvue/dialog/index.d.ts +87 -0
  249. package/wangsvue/dialog/index.js +220 -249
  250. package/wangsvue/dialogconfirm/index.d.ts +42 -0
  251. package/wangsvue/dialogconfirm/index.js +45 -42
  252. package/wangsvue/dialogform/index.d.ts +71 -0
  253. package/wangsvue/dialogform/index.js +68 -67
  254. package/wangsvue/divider/index.d.ts +192 -0
  255. package/wangsvue/divider/index.js +64 -72
  256. package/wangsvue/dock/index.d.ts +51 -0
  257. package/wangsvue/dock/index.js +92 -97
  258. package/wangsvue/dropdown/index.d.ts +136 -0
  259. package/wangsvue/dropdown/index.js +207 -230
  260. package/wangsvue/fieldset/index.d.ts +94 -0
  261. package/wangsvue/fieldset/index.js +87 -99
  262. package/wangsvue/fileupload/index.d.ts +29 -0
  263. package/wangsvue/fileupload/index.js +31 -23
  264. package/wangsvue/form/index.d.ts +40 -0
  265. package/wangsvue/form/index.js +44 -42
  266. package/wangsvue/global.d.ts +8 -0
  267. package/wangsvue/global.js +14 -87
  268. package/wangsvue/image/index.d.ts +88 -0
  269. package/wangsvue/image/index.js +136 -128
  270. package/wangsvue/index.d.ts +190 -0
  271. package/wangsvue/index.js +201 -211
  272. package/wangsvue/index.system.js +76 -0
  273. package/wangsvue/inlinemessage/index.d.ts +20 -0
  274. package/wangsvue/inlinemessage/index.js +30 -26
  275. package/wangsvue/inputbadge/index.d.ts +57 -0
  276. package/wangsvue/inputbadge/index.js +57 -41
  277. package/wangsvue/inputcurrency/index.d.ts +27 -0
  278. package/wangsvue/inputcurrency/index.js +22 -12
  279. package/wangsvue/inputgroup/index.d.ts +9 -0
  280. package/wangsvue/inputgroup/index.js +37 -40
  281. package/wangsvue/inputgroupaddon/index.d.ts +17 -0
  282. package/wangsvue/inputgroupaddon/index.js +34 -34
  283. package/wangsvue/inputmask/index.d.ts +11 -0
  284. package/wangsvue/inputmask/index.js +29 -30
  285. package/wangsvue/inputnumber/index.d.ts +46 -0
  286. package/wangsvue/inputnumber/index.js +58 -50
  287. package/wangsvue/inputotp/index.d.ts +137 -0
  288. package/wangsvue/inputotp/index.js +63 -70
  289. package/wangsvue/inputphonenumber/index.d.ts +37 -0
  290. package/wangsvue/inputphonenumber/index.js +34 -19
  291. package/wangsvue/inputswitch/index.d.ts +67 -0
  292. package/wangsvue/inputswitch/index.js +100 -114
  293. package/wangsvue/inputtext/index.d.ts +18 -0
  294. package/wangsvue/inputtext/index.js +28 -27
  295. package/wangsvue/knob/index.d.ts +22 -0
  296. package/wangsvue/knob/index.js +45 -47
  297. package/wangsvue/listbox/index.d.ts +79 -0
  298. package/wangsvue/listbox/index.js +138 -156
  299. package/wangsvue/megamenu/index.d.ts +105 -0
  300. package/wangsvue/megamenu/index.js +202 -218
  301. package/wangsvue/menu/index.d.ts +49 -0
  302. package/wangsvue/menu/index.js +110 -119
  303. package/wangsvue/menubar/index.d.ts +85 -0
  304. package/wangsvue/menubar/index.js +172 -186
  305. package/wangsvue/message/index.d.ts +41 -0
  306. package/wangsvue/message/index.js +85 -87
  307. package/wangsvue/multiselect/index.d.ts +243 -0
  308. package/wangsvue/multiselect/index.js +328 -360
  309. package/wangsvue/orderlist/index.d.ts +99 -0
  310. package/wangsvue/orderlist/index.js +245 -275
  311. package/wangsvue/organizationchart/index.d.ts +71 -0
  312. package/wangsvue/organizationchart/index.js +129 -143
  313. package/wangsvue/overlaypanel/index.d.ts +17 -0
  314. package/wangsvue/overlaypanel/index.js +34 -36
  315. package/wangsvue/paginator/index.d.ts +210 -0
  316. package/wangsvue/paginator/index.js +474 -547
  317. package/wangsvue/panel/index.d.ts +43 -0
  318. package/wangsvue/panel/index.js +85 -95
  319. package/wangsvue/panelmenu/index.d.ts +76 -0
  320. package/wangsvue/panelmenu/index.js +124 -136
  321. package/wangsvue/password/index.d.ts +45 -0
  322. package/wangsvue/password/index.js +96 -98
  323. package/wangsvue/picklist/index.d.ts +245 -0
  324. package/wangsvue/picklist/index.js +613 -684
  325. package/wangsvue/progressbar/index.d.ts +117 -0
  326. package/wangsvue/progressbar/index.js +102 -112
  327. package/wangsvue/rating/index.d.ts +47 -0
  328. package/wangsvue/rating/index.js +88 -86
  329. package/wangsvue/ripple/index.d.ts +8 -0
  330. package/wangsvue/ripple/index.js +8 -6
  331. package/wangsvue/scrollpanel/index.d.ts +19 -0
  332. package/wangsvue/scrollpanel/index.js +62 -77
  333. package/wangsvue/scrolltop/index.d.ts +50 -0
  334. package/wangsvue/scrolltop/index.js +42 -45
  335. package/wangsvue/selectbutton/index.d.ts +35 -0
  336. package/wangsvue/selectbutton/index.js +60 -59
  337. package/wangsvue/sidebar/index.d.ts +66 -0
  338. package/wangsvue/sidebar/index.js +145 -165
  339. package/wangsvue/skeleton/index.d.ts +16 -0
  340. package/wangsvue/skeleton/index.js +22 -19
  341. package/wangsvue/slider/index.d.ts +55 -0
  342. package/wangsvue/slider/index.js +126 -135
  343. package/wangsvue/splitbutton/index.d.ts +6690 -0
  344. package/wangsvue/splitbutton/index.js +786 -957
  345. package/wangsvue/steps/index.d.ts +108 -0
  346. package/wangsvue/steps/index.js +119 -132
  347. package/{fixedasset/icons.css → wangsvue/style.css} +5822 -849
  348. package/wangsvue/tabmenu/index.d.ts +57 -0
  349. package/wangsvue/tabmenu/index.js +75 -84
  350. package/wangsvue/tabview/index.d.ts +67 -0
  351. package/wangsvue/tabview/index.js +148 -168
  352. package/wangsvue/tag/index.d.ts +32 -0
  353. package/wangsvue/tag/index.js +37 -37
  354. package/wangsvue/terminal/index.d.ts +27 -0
  355. package/wangsvue/terminal/index.js +55 -60
  356. package/wangsvue/textarea/index.d.ts +12 -0
  357. package/wangsvue/textarea/index.js +51 -44
  358. package/wangsvue/tieredmenu/index.d.ts +56 -0
  359. package/wangsvue/tieredmenu/index.js +108 -121
  360. package/wangsvue/timeline/index.d.ts +53 -0
  361. package/wangsvue/timeline/index.js +83 -70
  362. package/wangsvue/toast/index.d.ts +61 -0
  363. package/wangsvue/toast/index.js +95 -97
  364. package/wangsvue/togglebutton/index.d.ts +42 -0
  365. package/wangsvue/togglebutton/index.js +77 -87
  366. package/wangsvue/toolbar/index.d.ts +19 -0
  367. package/wangsvue/toolbar/index.js +29 -30
  368. package/wangsvue/tooltip/index.d.ts +22 -0
  369. package/wangsvue/tooltip/index.js +42 -44
  370. package/wangsvue/tree/index.d.ts +117 -0
  371. package/wangsvue/tree/index.js +256 -298
  372. package/wangsvue/treeselect/index.d.ts +158 -0
  373. package/wangsvue/treeselect/index.js +338 -395
  374. package/wangsvue/tristatecheckbox/index.d.ts +49 -0
  375. package/wangsvue/tristatecheckbox/index.js +106 -128
  376. package/wangsvue/validatormessage/index.d.ts +8 -0
  377. package/wangsvue/validatormessage/index.js +9 -7
  378. package/wangsvue/workcalendar/index.d.ts +27 -0
  379. package/wangsvue/workcalendar/index.js +36 -27
  380. package/build.sh +0 -32
  381. package/dev.sh +0 -22
  382. package/dist +0 -13
  383. package/fixedasset/datepicker/index.js +0 -39
  384. package/fixedasset/daypicker/index.js +0 -38
  385. package/fixedasset/index.css +0 -65
  386. package/fixedasset/tailwind.config.js +0 -20
  387. package/index.ts +0 -1
  388. package/release.sh +0 -7
  389. package/tsconfig.json +0 -14
  390. package/vite.config.ts +0 -17
  391. package/wangsvue/datepicker/index.js +0 -39
  392. package/wangsvue/daypicker/index.js +0 -38
  393. package/wangsvue/index.css +0 -65
  394. package/wangsvue/tailwind.config.js +0 -20
@@ -1,506 +1,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
- };
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
+ };