@mudakit/ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/MudaButton-DJffOm2u.js +42 -0
  4. package/dist/{MudaCalendar-f1lHTxVw.js → MudaCalendar-DzOlAhVw.js} +34 -64
  5. package/dist/{MudaCard-C9geam4O.js → MudaCard-D9GQzC7B.js} +1 -1
  6. package/dist/{MudaColorPicker-Ny8v-KZR.js → MudaColorPicker-DJ7dbzzb.js} +5 -5
  7. package/dist/MudaDialog-voCW-SpB.js +61 -0
  8. package/dist/{MudaDropdown-DJOG_m6C.js → MudaDropdown-BCue994w.js} +9 -9
  9. package/dist/{MudaErrorBox-C0DvbAfU.js → MudaErrorBox-BvlBaVk_.js} +2 -3
  10. package/dist/MudaFocusTrap-CGlvV_MC.js +50 -0
  11. package/dist/{MudaFormCheckbox-CDY-INi6.js → MudaFormCheckbox-90HcY4_2.js} +6 -6
  12. package/dist/{MudaFormCombobox-CBaRBOKQ.js → MudaFormCombobox-Tm_AejmV.js} +7 -7
  13. package/dist/{MudaFormField-Bt5W7NC1.js → MudaFormField-CFLLQiTa.js} +5 -5
  14. package/dist/{MudaFormInput-CI_xfpTj.js → MudaFormInput-BYoht_A0.js} +7 -7
  15. package/dist/{MudaFormRadio-DOXXv3mT.js → MudaFormRadio-B-1viZTW.js} +1 -1
  16. package/dist/{MudaFormRadioGroup-45qiNrzt.js → MudaFormRadioGroup-D_sW4A2-.js} +9 -9
  17. package/dist/{MudaFormSelect-Bt6EW1N-.js → MudaFormSelect-ScHiVKOB.js} +5 -5
  18. package/dist/{MudaFormSwitch-CtdB9qIP.js → MudaFormSwitch-CUN0-oyY.js} +7 -7
  19. package/dist/{MudaFormText-s-Y3QoDX.js → MudaFormText-D3jIuX5V.js} +3 -3
  20. package/dist/MudaIcon-D_siyzw0.js +254 -0
  21. package/dist/{MudaIconPicker-CZWLPHbE.js → MudaIconPicker-BUsNMKFC.js} +11 -12
  22. package/dist/{MudaPagination-BYyElnCp.js → MudaPagination-BdNHAYCm.js} +20 -22
  23. package/dist/{MudaPopover-BgwkVjjX.js → MudaPopover-BU9CWFeP.js} +1 -1
  24. package/dist/MudaSpinner-yYYZ5c8j.js +16 -0
  25. package/dist/{MudaTable-DWwTyMmj.js → MudaTable-BEmSrWWE.js} +3 -3
  26. package/dist/MudaTag-LTFVT3ty.js +27 -0
  27. package/dist/account_balance-DraASv2L.js +13 -0
  28. package/dist/account_balance-tTKo1rRM.js +13 -0
  29. package/dist/add-C-WLk8_D.js +13 -0
  30. package/dist/add-rHsXWUB3.js +13 -0
  31. package/dist/add_circle_outline-Cp4-UWD3.js +13 -0
  32. package/dist/add_circle_outline-gWceP5CT.js +13 -0
  33. package/dist/analytics-07sOnbP4.js +13 -0
  34. package/dist/analytics-DKajyXsZ.js +13 -0
  35. package/dist/apartment-D-yxo46U.js +13 -0
  36. package/dist/apartment-DC-_uC-r.js +13 -0
  37. package/dist/arrow_circle_down-Cfl01hSk.js +13 -0
  38. package/dist/arrow_circle_down-CzHL7kiP.js +13 -0
  39. package/dist/arrow_circle_up-B1p0bl_c.js +13 -0
  40. package/dist/arrow_circle_up-gvy-3vjx.js +13 -0
  41. package/dist/arrow_downward-DCoB2C0p.js +13 -0
  42. package/dist/arrow_downward-DPhLvtE2.js +13 -0
  43. package/dist/arrow_upward-D3WW55Xt.js +13 -0
  44. package/dist/arrow_upward-bMZZ2Ppz.js +13 -0
  45. package/dist/attractions-CscI2mGy.js +13 -0
  46. package/dist/attractions-Dr0QIo8M.js +13 -0
  47. package/dist/bathtub-D_DONAkK.js +17 -0
  48. package/dist/bathtub-Dr8Grsn1.js +17 -0
  49. package/dist/beach_access-DPhKGsWT.js +13 -0
  50. package/dist/beach_access-uF616UOm.js +13 -0
  51. package/dist/bed-CpbGES3I.js +13 -0
  52. package/dist/bed-GShLIbSi.js +13 -0
  53. package/dist/bento-CEpUIDgP.js +13 -0
  54. package/dist/bento-DQ5zrFt1.js +13 -0
  55. package/dist/build-CKEFwS5y.js +13 -0
  56. package/dist/build-DvoCjI8G.js +13 -0
  57. package/dist/calendar_month-CZFPgoyg.js +13 -0
  58. package/dist/calendar_month-D-vOb3Dt.js +13 -0
  59. package/dist/checkroom-BWB8BV4b.js +13 -0
  60. package/dist/checkroom-D2CT1-MS.js +13 -0
  61. package/dist/chevron_left-CgQ1kOTp.js +13 -0
  62. package/dist/chevron_left-DdkxhXWV.js +13 -0
  63. package/dist/chevron_right-Bg1krtnZ.js +13 -0
  64. package/dist/chevron_right-CnisH7RV.js +13 -0
  65. package/dist/close-BMlDU_S8.js +13 -0
  66. package/dist/close-ConOGoUj.js +13 -0
  67. package/dist/coffee-8ewXOEoT.js +13 -0
  68. package/dist/coffee-CjGoj0n3.js +13 -0
  69. package/dist/common/components.d.ts +1 -1
  70. package/dist/components/MudaButton/index.js +1 -1
  71. package/dist/components/MudaCalendar/MudaCalendar.vue.d.ts +0 -6
  72. package/dist/components/MudaCalendar/MudaCalendarDays.vue.d.ts +0 -3
  73. package/dist/components/MudaCalendar/MudaCalendarInput.vue.d.ts +0 -6
  74. package/dist/components/MudaCalendar/MudaCalendarMonths.vue.d.ts +0 -3
  75. package/dist/components/MudaCalendar/MudaCalendarWeekDays.vue.d.ts +0 -3
  76. package/dist/components/MudaCalendar/MudaCalendarYears.vue.d.ts +0 -3
  77. package/dist/components/MudaCalendar/index.js +1 -1
  78. package/dist/components/MudaCalendar/useMudaCalendar.d.ts +0 -3
  79. package/dist/components/MudaCard/index.js +1 -1
  80. package/dist/components/MudaColorPicker/MudaColorPickerControl.vue.d.ts +0 -4
  81. package/dist/components/MudaColorPicker/index.js +1 -1
  82. package/dist/components/MudaDialog/index.js +1 -1
  83. package/dist/components/MudaDropdown/index.js +1 -1
  84. package/dist/components/MudaErrorBox/index.js +1 -1
  85. package/dist/components/MudaFocusTrap/index.d.ts +1 -0
  86. package/dist/components/MudaFocusTrap/index.js +2 -0
  87. package/dist/{composables/useFocusTrap.d.ts → components/MudaFocusTrap/useMudaFocusTrap.d.ts} +1 -1
  88. package/dist/components/MudaFormCheckbox/index.js +1 -1
  89. package/dist/components/MudaFormCombobox/index.js +1 -1
  90. package/dist/components/MudaFormField/index.js +1 -1
  91. package/dist/components/MudaFormInput/index.js +1 -1
  92. package/dist/components/MudaFormRadio/index.js +1 -1
  93. package/dist/components/MudaFormRadioGroup/index.js +1 -1
  94. package/dist/components/MudaFormSelect/index.js +1 -1
  95. package/dist/components/MudaFormSwitch/index.js +1 -1
  96. package/dist/components/MudaFormText/index.js +1 -1
  97. package/dist/components/MudaIcon/icons/lazyMudaIcon.d.ts +7 -0
  98. package/dist/components/MudaIcon/index.js +1 -1
  99. package/dist/components/MudaIconPicker/MudaIconPickerList.vue.d.ts +2 -2
  100. package/dist/components/MudaIconPicker/index.js +1 -1
  101. package/dist/components/MudaIconPicker/useMudaIconPickerList.d.ts +1 -1
  102. package/dist/components/MudaPagination/index.js +1 -1
  103. package/dist/components/MudaPopover/index.js +1 -1
  104. package/dist/components/MudaSpinner/MudaSpinner.vue.d.ts +0 -2
  105. package/dist/components/MudaSpinner/index.js +1 -1
  106. package/dist/components/MudaTable/index.js +1 -1
  107. package/dist/components/MudaTag/index.js +1 -1
  108. package/dist/computer-CUVOc14q.js +13 -0
  109. package/dist/computer-D1kpZK30.js +13 -0
  110. package/dist/credit_card-CoVeAT2C.js +13 -0
  111. package/dist/credit_card-a49G2yA_.js +13 -0
  112. package/dist/dark_mode-Bn7TB25M.js +13 -0
  113. package/dist/dark_mode-CBcSeBc2.js +13 -0
  114. package/dist/dashboard-YWDZpqtm.js +13 -0
  115. package/dist/dashboard-v4Xin7--.js +13 -0
  116. package/dist/delete-BS5UF5dU.js +13 -0
  117. package/dist/delete-CyQzdFi0.js +13 -0
  118. package/dist/directions_bike-C5YNoNUl.js +13 -0
  119. package/dist/directions_bike-DvHfbVZP.js +13 -0
  120. package/dist/directions_boat-CBVP0cpN.js +13 -0
  121. package/dist/directions_boat-x6QRg_AU.js +13 -0
  122. package/dist/drafts-CuEaA7r6.js +13 -0
  123. package/dist/drafts-CzlXWdkd.js +13 -0
  124. package/dist/drag_handle-BufBe6Uw.js +13 -0
  125. package/dist/drag_handle-Cc938wbp.js +13 -0
  126. package/dist/drag_indicator-DT9p9q4p.js +13 -0
  127. package/dist/drag_indicator-ekZyuG1q.js +13 -0
  128. package/dist/edit-CuzOq4rd.js +13 -0
  129. package/dist/edit-SVv9Q4nL.js +13 -0
  130. package/dist/emergency-CmnweaLn.js +13 -0
  131. package/dist/emergency-DpFjNLHg.js +13 -0
  132. package/dist/family_restroom-B3KN27wZ.js +13 -0
  133. package/dist/family_restroom-KLlcfltB.js +13 -0
  134. package/dist/favorite-DEOkC0Bx.js +13 -0
  135. package/dist/favorite-qxA7_cca.js +13 -0
  136. package/dist/filter_list-CyMTL5fW.js +13 -0
  137. package/dist/filter_list-dm3IiIw0.js +13 -0
  138. package/dist/fitness_center-CC-d7NL8.js +13 -0
  139. package/dist/fitness_center-RN0MaLNZ.js +13 -0
  140. package/dist/flight-C_4De5Y8.js +13 -0
  141. package/dist/flight-DJiL1ZL5.js +13 -0
  142. package/dist/hiking-BfKY2ukX.js +13 -0
  143. package/dist/hiking-Dyp8Df_G.js +13 -0
  144. package/dist/home-Ba8s8g_D.js +13 -0
  145. package/dist/home-CoY1iTiJ.js +13 -0
  146. package/dist/hotel-B8C8Qlu7.js +13 -0
  147. package/dist/hotel-BPXCZZOB.js +13 -0
  148. package/dist/image-BJSLAs64.js +13 -0
  149. package/dist/image-BToO0yUV.js +13 -0
  150. package/dist/index.d.ts +1 -0
  151. package/dist/index.js +26 -25
  152. package/dist/key-Bt7Vv5DO.js +13 -0
  153. package/dist/key-fmW_n9aQ.js +13 -0
  154. package/dist/keyboard_arrow_down-BnyWK-fU.js +13 -0
  155. package/dist/keyboard_arrow_down-D4dgMPwN.js +13 -0
  156. package/dist/keyboard_arrow_left-CrT8-der.js +13 -0
  157. package/dist/keyboard_arrow_left-DhQ64Nuq.js +13 -0
  158. package/dist/keyboard_arrow_right-9PYjOByS.js +13 -0
  159. package/dist/keyboard_arrow_right-CpMlKice.js +13 -0
  160. package/dist/keyboard_arrow_up-BnizXqA4.js +13 -0
  161. package/dist/keyboard_arrow_up-CCgawFRO.js +13 -0
  162. package/dist/keyboard_double_arrow_left-BF6zU6bw.js +13 -0
  163. package/dist/keyboard_double_arrow_left-B_2y3Ht4.js +13 -0
  164. package/dist/keyboard_double_arrow_right-BLjb8tDz.js +13 -0
  165. package/dist/keyboard_double_arrow_right-DKKfeQkD.js +13 -0
  166. package/dist/language-52-v5YWD.js +13 -0
  167. package/dist/language-CpboIcGR.js +13 -0
  168. package/dist/light_mode-BfjR3ehC.js +13 -0
  169. package/dist/light_mode-D7tesPdi.js +13 -0
  170. package/dist/liquor-DEFZlXiY.js +13 -0
  171. package/dist/liquor-DFBN6V2L.js +13 -0
  172. package/dist/local_convenience_store-BVPhUWyN.js +13 -0
  173. package/dist/local_convenience_store-VooSxFR7.js +13 -0
  174. package/dist/local_dining-BaVq9N5C.js +13 -0
  175. package/dist/local_dining-CC_8qUYw.js +13 -0
  176. package/dist/local_florist-B-T7_ZUe.js +13 -0
  177. package/dist/local_florist-_5WIAVnr.js +13 -0
  178. package/dist/local_mall-B4kHK9Gy.js +13 -0
  179. package/dist/local_mall-D9SrQssA.js +13 -0
  180. package/dist/local_shipping-6inEJZd-.js +13 -0
  181. package/dist/local_shipping-ywoIF-ai.js +13 -0
  182. package/dist/local_taxi-4eg_19Dr.js +13 -0
  183. package/dist/local_taxi-D5c1hPAs.js +25 -0
  184. package/dist/logout-BPgfB1RA.js +13 -0
  185. package/dist/logout-Cen6gk64.js +13 -0
  186. package/dist/luggage-CIDfCXcO.js +13 -0
  187. package/dist/luggage-gDYixT05.js +13 -0
  188. package/dist/medical_services-BMnL9Hf0.js +13 -0
  189. package/dist/medical_services-DRLomvfV.js +13 -0
  190. package/dist/more_horiz-BowsYrHH.js +13 -0
  191. package/dist/more_horiz-HZRFuje3.js +13 -0
  192. package/dist/more_vert-D6N5BYNw.js +13 -0
  193. package/dist/more_vert-LubuX24o.js +13 -0
  194. package/dist/museum-BMO7HIgV.js +13 -0
  195. package/dist/museum-jv6Fapno.js +13 -0
  196. package/dist/nightlife-CH3YoSri.js +13 -0
  197. package/dist/nightlife-DvAmD_6n.js +13 -0
  198. package/dist/notifications-BNg2pGu6.js +13 -0
  199. package/dist/notifications-DwrssYIB.js +13 -0
  200. package/dist/paid-Cmx5Gm0T.js +13 -0
  201. package/dist/paid-DzQXZ21o.js +13 -0
  202. package/dist/palette-BaM5P-uu.js +13 -0
  203. package/dist/palette-Cx_gowSh.js +13 -0
  204. package/dist/payments-BS5LaM6l.js +13 -0
  205. package/dist/payments-SJiRf-3B.js +13 -0
  206. package/dist/pedal_bike-DS9OXy6T.js +13 -0
  207. package/dist/pedal_bike-dXPfkUSG.js +13 -0
  208. package/dist/phone_iphone-Drjw9kyk.js +13 -0
  209. package/dist/phone_iphone-Jn5mUcAU.js +13 -0
  210. package/dist/photo_camera-CkjGaV59.js +13 -0
  211. package/dist/photo_camera-DyUgsTIR.js +17 -0
  212. package/dist/priority_high-56QhMKOC.js +17 -0
  213. package/dist/priority_high-BC6iSZTu.js +17 -0
  214. package/dist/ramen_dining-BERpQdUU.js +13 -0
  215. package/dist/ramen_dining-BnjNsY8l.js +13 -0
  216. package/dist/remove-BoMXjU8j.js +13 -0
  217. package/dist/remove-BwkynUz8.js +13 -0
  218. package/dist/restaurant-BRki4Z_b.js +13 -0
  219. package/dist/restaurant-C3kYT1pX.js +13 -0
  220. package/dist/sailing-BVzd3Yw6.js +13 -0
  221. package/dist/sailing-CUuK_mdJ.js +13 -0
  222. package/dist/school-Bai17sP2.js +13 -0
  223. package/dist/school-DqyARVmh.js +13 -0
  224. package/dist/search-CcXvCUkm.js +13 -0
  225. package/dist/search-l1kG41Sc.js +13 -0
  226. package/dist/settings-CcUpNkTH.js +13 -0
  227. package/dist/settings-nrE4YRgL.js +13 -0
  228. package/dist/shopping_cart-B-NlNPiR.js +13 -0
  229. package/dist/shopping_cart-KMMms5VN.js +13 -0
  230. package/dist/spa-Be7VgpaE.js +13 -0
  231. package/dist/spa-DN1Mn8bz.js +13 -0
  232. package/dist/sports_bar-MQX8F5Zf.js +13 -0
  233. package/dist/sports_bar-vuyxzqar.js +13 -0
  234. package/dist/sports_basketball-BUVZEN3_.js +13 -0
  235. package/dist/sports_basketball-CtVt_X_l.js +13 -0
  236. package/dist/sports_esports-BJt8B991.js +26 -0
  237. package/dist/sports_esports-DUDO5lDe.js +13 -0
  238. package/dist/sports_mma-BAF7lZI7.js +13 -0
  239. package/dist/sports_mma-CdM8knJL.js +13 -0
  240. package/dist/star-RAIJVmbp.js +13 -0
  241. package/dist/star-i_70w1pe.js +13 -0
  242. package/dist/store-5DAAEf5M.js +13 -0
  243. package/dist/store-BeWM3jUf.js +13 -0
  244. package/dist/storefront-BlTCwZ3v.js +13 -0
  245. package/dist/storefront-DTtlr_xi.js +13 -0
  246. package/dist/style.css +1 -1
  247. package/dist/table_rows-CvDwC4iW.js +13 -0
  248. package/dist/table_rows-D5128dCH.js +13 -0
  249. package/dist/train-CQNTe9Qp.js +13 -0
  250. package/dist/train-YCiGuvbT.js +25 -0
  251. package/dist/travel_explore-CgOHWIio.js +13 -0
  252. package/dist/travel_explore-OMMCq3pa.js +13 -0
  253. package/dist/tv-DCFPE0jx.js +13 -0
  254. package/dist/tv-Ddejutmx.js +13 -0
  255. package/dist/vaccines-BQ_WEIlq.js +13 -0
  256. package/dist/vaccines-CfBRCxNm.js +13 -0
  257. package/dist/videogame_asset-CedIMUis.js +13 -0
  258. package/dist/videogame_asset-D27Cz601.js +25 -0
  259. package/dist/visibility-D2aBaum9.js +13 -0
  260. package/dist/visibility-DU-oBxte.js +13 -0
  261. package/dist/visibility_off-C2i2mzoe.js +13 -0
  262. package/dist/visibility_off-CWKymtPv.js +13 -0
  263. package/dist/watch-BeazuqvT.js +13 -0
  264. package/dist/watch-pa19WTfu.js +13 -0
  265. package/package.json +3 -3
  266. package/dist/MudaButton-Bw6Fw2-Y.js +0 -42
  267. package/dist/MudaDialog-C6dOmY_K.js +0 -105
  268. package/dist/MudaIcon-BhSsLCZx.js +0 -1886
  269. package/dist/MudaSpinner-C5_q8Vtn.js +0 -26
  270. package/dist/MudaTag-DLqit790.js +0 -27
  271. /package/dist/components/{MudaDialog/MudaDialogFocusTrap.vue.d.ts → MudaFocusTrap/MudaFocusTrap.vue.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 60219a2: Prefix Muda color tokens and their Tailwind utilities with `muda-` to avoid collisions with application themes.
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 95247a2: Load Material Design icon implementations on demand to reduce the initial JavaScript chunk size.
14
+
3
15
  ## 0.1.0 - 2026-08-13
4
16
 
5
17
  - Publish the initial `@mudakit/ui` Vue component library.
package/README.md CHANGED
@@ -39,7 +39,7 @@ The package root is also available:
39
39
  import { MudaButton, MudaCard } from "@mudakit/ui";
40
40
  ```
41
41
 
42
- Requires Vue 3.5 or later and Node.js 22.12 or later for development tooling.
42
+ Requires Vue 3.5 or later and Node.js 26.5.0 or later for development tooling.
43
43
 
44
44
  ## License
45
45
 
@@ -0,0 +1,42 @@
1
+ import { createBlock as e, defineComponent as t, mergeProps as n, openBlock as r, renderSlot as i, resolveDynamicComponent as a, withCtx as o } from "vue";
2
+ //#endregion
3
+ //#region src/components/MudaButton/MudaButton.vue
4
+ var s = /* @__PURE__ */ t({
5
+ __name: "MudaButton",
6
+ props: {
7
+ size: { default: "medium" },
8
+ variant: { default: "default" },
9
+ disabled: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ as: { default: "button" }
14
+ },
15
+ setup(t) {
16
+ let s = t;
17
+ return (t, c) => (r(), e(a(s.as), n(t.$attrs, {
18
+ disabled: s.disabled,
19
+ class: ["muda-button-reset flex items-center justify-center gap-1 focus-visible:outline-2 focus-visible:outline-offset-2", {
20
+ "muda-link-reset": s.as === "a",
21
+ "rounded-md font-semibold shadow-xs": !0,
22
+ "px-2.5 py-1.5 text-xs": s.size === "small",
23
+ "px-3 py-2 text-sm": s.size === "medium",
24
+ "px-3.5 py-2.5 text-sm": s.size === "large",
25
+ "cursor-pointer": !s.disabled,
26
+ "cursor-not-allowed": s.disabled,
27
+ "border bg-muda-form-background": s.variant === "default",
28
+ "border border-muda-primary-dark bg-muda-primary fill-white text-white hover:bg-muda-primary-dark focus-visible:bg-muda-primary disabled:border-muda-primary-dark/20 disabled:bg-muda-primary-light/70": s.variant === "primary",
29
+ "border border-muda-secondary-dark bg-muda-secondary fill-white text-white hover:bg-muda-secondary-dark focus-visible:bg-muda-secondary disabled:border-muda-secondary-dark/20 disabled:bg-muda-secondary-light/70": s.variant === "secondary",
30
+ "border border-muda-success-dark bg-muda-success fill-white text-white hover:bg-muda-success-dark focus-visible:bg-muda-success disabled:border-muda-success-dark/20 disabled:bg-muda-success-light/70": s.variant === "success",
31
+ "border border-muda-warning-dark bg-muda-warning fill-white text-white hover:bg-muda-warning-dark focus-visible:bg-muda-warning disabled:border-muda-warning-dark/20 disabled:bg-muda-warning-light/70": s.variant === "warning",
32
+ "border border-muda-danger-dark bg-muda-danger fill-white text-white hover:bg-muda-danger-dark focus-visible:bg-muda-danger disabled:border-muda-danger-dark/20 disabled:bg-muda-danger-light/70": s.variant === "danger",
33
+ "border border-muda-info-dark bg-muda-info fill-white text-white hover:bg-muda-info-dark focus-visible:bg-muda-info disabled:border-muda-info-dark/20 disabled:bg-muda-info-light/70": s.variant === "info"
34
+ }]
35
+ }), {
36
+ default: o(() => [i(t.$slots, "default")]),
37
+ _: 3
38
+ }, 16, ["disabled", "class"]));
39
+ }
40
+ });
41
+ //#endregion
42
+ export { s as t };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./keymap-BzfMgdJH.js";
2
- import { t } from "./MudaIcon-BhSsLCZx.js";
3
- import { t as n } from "./MudaFormInput-CI_xfpTj.js";
4
- import { t as r } from "./MudaPopover-BgwkVjjX.js";
2
+ import { t } from "./MudaIcon-D_siyzw0.js";
3
+ import { t as n } from "./MudaFormInput-BYoht_A0.js";
4
+ import { t as r } from "./MudaPopover-BU9CWFeP.js";
5
5
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, normalizeClass as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, toRefs as x, unref as S, useModel as C, useTemplateRef as w, vModelText as T, watch as E, withCtx as D, withDirectives as O, withModifiers as k } from "vue";
6
6
  import A from "dayjs";
7
7
  import j from "dayjs/plugin/customParseFormat.js";
@@ -95,18 +95,13 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
95
95
  let { locale: t } = x(e), n = U(t);
96
96
  return (e, t) => (_(), c("div", Y, [(_(!0), c(i, null, y(S(n), (e) => (_(), c("div", {
97
97
  key: e.name,
98
- class: g(["flex min-h-[2.5rem] min-w-[2.5rem] items-center justify-center font-bold", {
99
- "text-danger": e.isWeekend,
100
- "text-secondary-dark": !e.isWeekend
98
+ class: g(["flex min-h-10 min-w-10 items-center justify-center font-bold", {
99
+ "text-muda-danger": e.isWeekend,
100
+ "text-muda-secondary-dark": !e.isWeekend
101
101
  }])
102
102
  }, b(e.name), 3))), 128))]));
103
103
  }
104
- }), Z = { class: "inline-flex flex-col" }, re = { class: "isolate grid grid-cols-7 gap-1" }, ie = [
105
- "disabled",
106
- "aria-selected",
107
- "aria-current",
108
- "onClick"
109
- ], ae = ["datetime"], Q = /* @__PURE__ */ p({
104
+ }), Z = { class: "inline-flex flex-col" }, re = { class: "isolate grid grid-cols-7 gap-1" }, ie = ["disabled", "onClick"], ae = ["datetime"], Q = /* @__PURE__ */ p({
110
105
  __name: "MudaCalendarDays",
111
106
  props: /*@__PURE__*/ m({
112
107
  today: {},
@@ -131,14 +126,12 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
131
126
  type: "button",
132
127
  tabindex: "-1",
133
128
  disabled: e.disabled || t.disabled,
134
- "aria-selected": S(p)(e.value, n.value),
135
- "aria-current": e.isToday ? "date" : void 0,
136
- class: g(["muda-button-reset relative flex size-min w-full items-center justify-center rounded-md disabled:text-secondary-light", {
137
- "text-secondary-dark hover:bg-primary-light hover:text-white": !(e.disabled || t.disabled),
138
- "text-secondary-light": !e.isCurrentMonth,
139
- "bg-primary text-white": S(p)(e.value, n.value),
140
- "font-bold text-warning": e.isToday,
141
- "after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:rounded-lg after:border-2 after:border-primary": t.keyboard && S(p)(e.value, r.value)
129
+ class: g(["muda-button-reset relative flex size-min w-full items-center justify-center rounded-md disabled:text-muda-secondary-light", {
130
+ "text-muda-secondary-dark hover:bg-muda-primary-light hover:text-white": !(e.disabled || t.disabled),
131
+ "text-muda-secondary-light": !e.isCurrentMonth,
132
+ "bg-muda-primary text-white": S(p)(e.value, n.value),
133
+ "font-bold text-muda-warning": e.isToday,
134
+ "after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:rounded-lg after:border-2 after:border-muda-primary": t.keyboard && S(p)(e.value, r.value)
142
135
  }]),
143
136
  onClick: k((t) => m(e), ["stop"])
144
137
  }, [l("time", {
@@ -177,69 +170,57 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
177
170
  }]) }, [
178
171
  l("button", {
179
172
  type: "button",
180
- class: "muda-button-reset flex items-center justify-center fill-primary hover:fill-primary-dark disabled:fill-secondary-light",
173
+ class: "muda-button-reset flex items-center justify-center fill-muda-primary hover:fill-muda-primary-dark disabled:fill-muda-secondary-light",
181
174
  tabindex: "-1",
182
175
  disabled: n.disabled,
183
- "aria-label": "Previous year",
184
176
  onClick: r[0] ||= (e) => u("year", o.value === "years" ? -S(10) : -1)
185
177
  }, [f(S(t), { icon: "keyboard_double_arrow_left:outlined" })], 8, oe),
186
178
  o.value === "days" ? (_(), c("button", {
187
179
  key: 0,
188
180
  type: "button",
189
- class: "muda-button-reset flex items-center justify-center fill-primary hover:fill-primary-dark disabled:fill-secondary-light",
181
+ class: "muda-button-reset flex items-center justify-center fill-muda-primary hover:fill-muda-primary-dark disabled:fill-muda-secondary-light",
190
182
  tabindex: "-1",
191
183
  disabled: n.disabled,
192
- "aria-label": "Previous month",
193
184
  onClick: r[1] ||= (e) => u("month", -1)
194
185
  }, [f(S(t), { icon: "keyboard_arrow_left:outlined" })], 8, se)) : s("", !0),
195
186
  l("div", ce, [o.value === "days" ? (_(), c(i, { key: 0 }, [l("button", {
196
187
  type: "button",
197
- class: "muda-button-reset font-semibold text-primary hover:text-primary-dark disabled:text-secondary-light",
188
+ class: "muda-button-reset font-semibold text-muda-primary hover:text-muda-primary-dark disabled:text-muda-secondary-light",
198
189
  tabindex: "-1",
199
190
  disabled: n.disabled,
200
- "aria-label": "Choose year",
201
191
  onClick: r[2] ||= (e) => o.value = "years"
202
192
  }, b(p.value.format(S(R))), 9, le), l("button", {
203
193
  type: "button",
204
- class: "muda-button-reset font-semibold text-primary hover:text-primary-dark disabled:text-secondary-light",
194
+ class: "muda-button-reset font-semibold text-muda-primary hover:text-muda-primary-dark disabled:text-muda-secondary-light",
205
195
  tabindex: "-1",
206
196
  disabled: n.disabled,
207
- "aria-label": "Choose month",
208
197
  onClick: r[3] ||= (e) => o.value = "months"
209
198
  }, b(p.value.format(S("MMM"))), 9, ue)], 64)) : o.value === "months" ? (_(), c("button", {
210
199
  key: 1,
211
200
  type: "button",
212
- class: "muda-button-reset font-semibold text-primary hover:text-primary-dark disabled:text-secondary-light",
201
+ class: "muda-button-reset font-semibold text-muda-primary hover:text-muda-primary-dark disabled:text-muda-secondary-light",
213
202
  tabindex: "-1",
214
203
  disabled: n.disabled,
215
- "aria-label": "Choose year",
216
204
  onClick: r[4] ||= (e) => o.value = "years"
217
205
  }, b(p.value.format(S(R))), 9, de)) : o.value === "years" ? (_(), c(i, { key: 2 }, [d(b(m.value), 1)], 64)) : s("", !0)]),
218
206
  o.value === "days" ? (_(), c("button", {
219
207
  key: 1,
220
208
  type: "button",
221
- class: "muda-button-reset flex items-center justify-center fill-primary hover:fill-primary-dark disabled:fill-secondary-light",
209
+ class: "muda-button-reset flex items-center justify-center fill-muda-primary hover:fill-muda-primary-dark disabled:fill-muda-secondary-light",
222
210
  tabindex: "-1",
223
211
  disabled: n.disabled,
224
- "aria-label": "Next month",
225
212
  onClick: r[5] ||= (e) => u("month", 1)
226
213
  }, [f(S(t), { icon: "keyboard_arrow_right:outlined" })], 8, fe)) : s("", !0),
227
214
  l("button", {
228
215
  type: "button",
229
- class: "muda-button-reset flex items-center justify-center fill-primary hover:fill-primary-dark disabled:fill-secondary-light",
216
+ class: "muda-button-reset flex items-center justify-center fill-muda-primary hover:fill-muda-primary-dark disabled:fill-muda-secondary-light",
230
217
  tabindex: "-1",
231
218
  disabled: n.disabled,
232
- "aria-label": "Next year",
233
219
  onClick: r[6] ||= (e) => u("year", o.value === "years" ? S(10) : 1)
234
220
  }, [f(S(t), { icon: "keyboard_double_arrow_right:outlined" })], 8, pe)
235
221
  ], 2));
236
222
  }
237
- }), he = { class: "flex" }, ge = { class: "relative grid flex-1 grid-cols-[repeat(4,1fr)]" }, _e = [
238
- "disabled",
239
- "aria-selected",
240
- "aria-current",
241
- "onClick"
242
- ], ve = ["datetime"], ye = /* @__PURE__ */ p({
223
+ }), he = { class: "flex" }, ge = { class: "relative grid flex-1 grid-cols-[repeat(4,1fr)]" }, _e = ["disabled", "onClick"], ve = ["datetime"], ye = /* @__PURE__ */ p({
243
224
  __name: "MudaCalendarMonths",
244
225
  props: /*@__PURE__*/ m({
245
226
  today: {},
@@ -263,12 +244,10 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
263
244
  type: "button",
264
245
  tabindex: "-1",
265
246
  disabled: e.disabled || n.disabled,
266
- "aria-selected": S(m)(e.value, r.value),
267
- "aria-current": e.isToday ? "date" : void 0,
268
- class: g(["muda-button-reset flex items-center justify-center rounded-md py-5 disabled:text-secondary-light", {
269
- "text-secondary-dark hover:bg-primary-light hover:text-white": !(e.disabled || n.disabled),
270
- "bg-primary text-white": S(m)(e.value, r.value),
271
- "font-bold text-warning": e.isToday
247
+ class: g(["muda-button-reset flex items-center justify-center rounded-md py-5 disabled:text-muda-secondary-light", {
248
+ "text-muda-secondary-dark hover:bg-muda-primary-light hover:text-white": !(e.disabled || n.disabled),
249
+ "bg-muda-primary text-white": S(m)(e.value, r.value),
250
+ "font-bold text-muda-warning": e.isToday
272
251
  }]),
273
252
  onClick: k((t) => h(e), ["prevent"])
274
253
  }, [l("time", {
@@ -276,12 +255,7 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
276
255
  datetime: e.value
277
256
  }, b(e.label), 9, ve)], 10, _e))), 128))])]));
278
257
  }
279
- }), be = { class: "grid grid-cols-[repeat(2,1fr)]" }, xe = [
280
- "disabled",
281
- "aria-selected",
282
- "aria-current",
283
- "onClick"
284
- ], Se = ["datetime"], Ce = /* @__PURE__ */ p({
258
+ }), be = { class: "grid grid-cols-[repeat(2,1fr)]" }, xe = ["disabled", "onClick"], Se = ["datetime"], Ce = /* @__PURE__ */ p({
285
259
  __name: "MudaCalendarYears",
286
260
  props: /*@__PURE__*/ m({
287
261
  today: {},
@@ -305,12 +279,10 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
305
279
  type: "button",
306
280
  tabindex: "-1",
307
281
  disabled: e.disabled || n.disabled,
308
- "aria-selected": S(m)(e.value, r.value),
309
- "aria-current": e.isToday ? "date" : void 0,
310
- class: g(["muda-button-reset flex items-center justify-center rounded-md py-3 disabled:text-secondary-light", {
311
- "text-secondary-dark hover:bg-primary-light hover:text-white": !(e.disabled || n.disabled),
312
- "bg-primary text-white": S(m)(e.value, r.value),
313
- "font-bold text-warning": e.isToday
282
+ class: g(["muda-button-reset flex items-center justify-center rounded-md py-3 disabled:text-muda-secondary-light", {
283
+ "text-muda-secondary-dark hover:bg-muda-primary-light hover:text-white": !(e.disabled || n.disabled),
284
+ "bg-muda-primary text-white": S(m)(e.value, r.value),
285
+ "font-bold text-muda-warning": e.isToday
314
286
  }]),
315
287
  onClick: k((t) => h(e), ["prevent"])
316
288
  }, [l("time", {
@@ -439,8 +411,7 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
439
411
  }), Te = ["tabindex"], Ee = [
440
412
  "min",
441
413
  "max",
442
- "disabled",
443
- "aria-invalid"
414
+ "disabled"
444
415
  ], De = /* @__PURE__ */ p({
445
416
  inheritAttrs: !1,
446
417
  __name: "MudaCalendar",
@@ -472,9 +443,9 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
472
443
  onBlur: r[3] ||= (e) => o.value = !1,
473
444
  onKeydown: d,
474
445
  ref: "root",
475
- class: g(["rounded-md bg-foreground p-2 ring-1 focus:rounded-md focus:ring-2 focus:ring-primary-light focus:outline-hidden", {
476
- "ring-danger": t.isInvalid,
477
- "ring-secondary-light": !t.isInvalid
446
+ class: g(["rounded-md bg-muda-foreground p-2 ring-1 focus:rounded-md focus:ring-2 focus:ring-muda-primary-light focus:outline-hidden", {
447
+ "ring-muda-danger": t.isInvalid,
448
+ "ring-muda-secondary-light": !t.isInvalid
478
449
  }])
479
450
  }, [f($, {
480
451
  modelValue: n.value,
@@ -497,7 +468,6 @@ var Y = { class: "grid grid-cols-[repeat(7,auto)]" }, X = /* @__PURE__ */ p({
497
468
  min: s.value,
498
469
  max: u.value,
499
470
  disabled: t.disabled,
500
- "aria-invalid": t.isInvalid || void 0,
501
471
  class: "hidden"
502
472
  }), null, 16, Ee), [[T, n.value]])], 42, Te));
503
473
  }
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { createElementBlock as t, openBlock as n, renderSlot as r } from "vue";
3
3
  //#region src/components/MudaCard/MudaCard.vue
4
- var i = {}, a = { class: "relative rounded-lg border border-secondary-light bg-foreground p-4" };
4
+ var i = {}, a = { class: "relative rounded-lg border border-muda-secondary-light bg-muda-foreground p-4" };
5
5
  function o(e, i) {
6
6
  return n(), t("div", a, [r(e.$slots, "default")]);
7
7
  }
@@ -1,8 +1,8 @@
1
- import { t as e } from "./MudaButton-Bw6Fw2-Y.js";
1
+ import { t as e } from "./MudaButton-DJffOm2u.js";
2
2
  import { t } from "./keymap-BzfMgdJH.js";
3
- import { t as n } from "./MudaIcon-BhSsLCZx.js";
4
- import { t as r } from "./MudaFormInput-CI_xfpTj.js";
5
- import { t as i } from "./MudaPopover-BgwkVjjX.js";
3
+ import { t as n } from "./MudaIcon-D_siyzw0.js";
4
+ import { t as r } from "./MudaFormInput-BYoht_A0.js";
5
+ import { t as i } from "./MudaPopover-BU9CWFeP.js";
6
6
  import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
7
  import { t as o } from "./useKeyDown-B1jmp4nA.js";
8
8
  import { createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, normalizeStyle as h, openBlock as g, ref as _, toDisplayString as v, unref as y, useModel as b, watch as x, watchEffect as S, withCtx as C, withModifiers as w } from "vue";
@@ -57,7 +57,7 @@ var k = {
57
57
  _: 1
58
58
  }, 8, ["onChangePosition"])], 4));
59
59
  }
60
- }), j = /*#__PURE__*/ a(A, [["__scopeId", "data-v-da1392ff"]]), M = { class: "flex flex-col gap-2" }, N = /* @__PURE__ */ f({
60
+ }), j = /*#__PURE__*/ a(A, [["__scopeId", "data-v-2888e57a"]]), M = { class: "flex flex-col gap-2" }, N = /* @__PURE__ */ f({
61
61
  inheritAttrs: !1,
62
62
  __name: "MudaColorPicker",
63
63
  props: /*@__PURE__*/ p({
@@ -0,0 +1,61 @@
1
+ import { t as e } from "./keymap-BzfMgdJH.js";
2
+ import { t } from "./useZIndex-DWnsohLZ.js";
3
+ import { t as n } from "./useKeyDown-B1jmp4nA.js";
4
+ import { t as r } from "./MudaFocusTrap-CGlvV_MC.js";
5
+ import { Teleport as i, Transition as a, createBlock as o, createCommentVNode as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeStyle as f, onUnmounted as p, openBlock as m, renderSlot as h, unref as g, useModel as _, useTemplateRef as v, watch as y, withCtx as b, withModifiers as x } from "vue";
6
+ //#region src/composables/useBodyScrollLock.ts
7
+ var S = 0, C = "", w = (e) => {
8
+ let t = !1, n = () => {
9
+ t || typeof document > "u" || (S === 0 && (C = document.body.style.overflow, document.body.style.overflow = "hidden"), S += 1, t = !0);
10
+ }, r = () => {
11
+ !t || typeof document > "u" || (--S, t = !1, S === 0 && (document.body.style.overflow = C));
12
+ };
13
+ y(e, (e) => e ? n() : r(), { immediate: !0 }), p(r);
14
+ }, T = { class: "fixed inset-0 w-screen overflow-y-auto py-6" }, E = { class: "flex min-h-full items-center justify-center" }, D = /* @__PURE__ */ u({
15
+ inheritAttrs: !1,
16
+ __name: "MudaDialog",
17
+ props: {
18
+ modelValue: {
19
+ type: Boolean,
20
+ required: !0
21
+ },
22
+ modelModifiers: {}
23
+ },
24
+ emits: ["update:modelValue"],
25
+ setup(u) {
26
+ let p = _(u, "modelValue"), y = v("dialog"), S = t();
27
+ w(p), n((t) => {
28
+ if (p.value) switch (t.key) {
29
+ case e.Escape: p.value = !1, t.preventDefault();
30
+ }
31
+ });
32
+ let C = (e) => {
33
+ y.value?.contains(e.target) || (p.value = !1);
34
+ };
35
+ return (e, t) => (m(), o(i, { to: "body" }, [l(a, {
36
+ "enter-active-class": "transition-opacity ease-linear duration-100",
37
+ "leave-active-class": "transition-opacity ease-linear duration-100",
38
+ "enter-from-class": "opacity-0",
39
+ "leave-to-class": "opacity-0"
40
+ }, {
41
+ default: b(() => [p.value ? (m(), o(g(r), {
42
+ key: 0,
43
+ role: "dialog",
44
+ class: "fixed inset-0 bg-gray-500/30 backdrop-blur-xs transition-opacity",
45
+ style: f({ zIndex: g(S) }),
46
+ onClickCapture: C,
47
+ onWheel: t[0] ||= x(() => {}, ["stop"])
48
+ }, {
49
+ default: b(() => [c("div", T, [c("div", E, [c("div", d(e.$attrs, {
50
+ class: "rounded-lg bg-muda-background p-4 focus:outline-hidden",
51
+ tabindex: "0",
52
+ ref: "dialog"
53
+ }), [h(e.$slots, "default")], 16)])])]),
54
+ _: 3
55
+ }, 8, ["style"])) : s("", !0)]),
56
+ _: 3
57
+ })]));
58
+ }
59
+ });
60
+ //#endregion
61
+ export { D as t };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./MudaIcon-BhSsLCZx.js";
2
- import { t } from "./MudaPopover-BgwkVjjX.js";
1
+ import { t as e } from "./MudaIcon-D_siyzw0.js";
2
+ import { t } from "./MudaPopover-BU9CWFeP.js";
3
3
  import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useSlots as _, withCtx as v, withModifiers as y } from "vue";
4
4
  //#region src/components/MudaDropdown/MudaDropdown.vue?vue&type=script&setup=true&lang.ts
5
5
  var b = { class: "flex flex-col" }, x = ["onClick"], S = {
@@ -28,13 +28,13 @@ var b = { class: "flex flex-col" }, x = ["onClick"], S = {
28
28
  content: v(() => [o("div", b, [(d(!0), a(n, null, f(C.items, (t, n) => (d(), a("button", {
29
29
  key: n,
30
30
  class: u(["muda-button-reset flex w-full cursor-pointer items-center gap-2 rounded-md px-4 py-2 text-left text-sm", {
31
- "fill-secondary text-secondary hover:bg-secondary-light": t.variant === "default" || t.variant == null,
32
- "fill-primary text-primary hover:bg-primary hover:fill-white hover:text-white": t.variant === "primary",
33
- "fill-secondary text-secondary hover:bg-secondary hover:fill-white hover:text-white": t.variant === "secondary",
34
- "fill-success text-success hover:bg-success hover:fill-white hover:text-white": t.variant === "success",
35
- "fill-danger text-danger hover:bg-danger hover:fill-white hover:text-white": t.variant === "danger",
36
- "fill-warning text-warning hover:bg-warning hover:fill-white hover:text-white": t.variant === "warning",
37
- "fill-info text-info hover:bg-info hover:fill-white hover:text-white": t.variant === "info"
31
+ "fill-muda-secondary text-muda-secondary hover:bg-muda-secondary-light": t.variant === "default" || t.variant == null,
32
+ "fill-muda-primary text-muda-primary hover:bg-muda-primary hover:fill-white hover:text-white": t.variant === "primary",
33
+ "fill-muda-secondary text-muda-secondary hover:bg-muda-secondary hover:fill-white hover:text-white": t.variant === "secondary",
34
+ "fill-muda-success text-muda-success hover:bg-muda-success hover:fill-white hover:text-white": t.variant === "success",
35
+ "fill-muda-danger text-muda-danger hover:bg-muda-danger hover:fill-white hover:text-white": t.variant === "danger",
36
+ "fill-muda-warning text-muda-warning hover:bg-muda-warning hover:fill-white hover:text-white": t.variant === "warning",
37
+ "fill-muda-info text-muda-info hover:bg-muda-info hover:fill-white hover:text-white": t.variant === "info"
38
38
  }]),
39
39
  onClick: y((e) => D(t, n), ["prevent"])
40
40
  }, [w.item == null ? (d(), a("span", S, [t.icon == null ? i("", !0) : (d(), r(h(e), {
@@ -2,9 +2,8 @@ import { computed as e, createElementBlock as t, createElementVNode as n, define
2
2
  //#region src/components/MudaErrorBox/MudaErrorBox.vue?vue&type=script&setup=true&lang.ts
3
3
  var o = {
4
4
  class: "flex flex-col gap-2",
5
- role: "alert",
6
- "aria-live": "assertive"
7
- }, s = { class: "text-center text-4xl font-bold text-danger" }, c = { class: "text-center text-2xl font-semibold tracking-tight text-secondary-dark" }, l = /* @__PURE__ */ r({
5
+ role: "alert"
6
+ }, s = { class: "text-center text-4xl font-bold text-muda-danger" }, c = { class: "text-center text-2xl font-semibold tracking-tight text-muda-secondary-dark" }, l = /* @__PURE__ */ r({
8
7
  __name: "MudaErrorBox",
9
8
  props: {
10
9
  title: { default: "Error" },
@@ -0,0 +1,50 @@
1
+ import { t as e } from "./keymap-BzfMgdJH.js";
2
+ import { createBlock as t, defineComponent as n, nextTick as r, onMounted as i, onUnmounted as a, openBlock as o, ref as s, renderSlot as c, resolveDynamicComponent as l, useTemplateRef as u, withCtx as d } from "vue";
3
+ //#region src/components/MudaFocusTrap/useMudaFocusTrap.ts
4
+ var f = (t) => {
5
+ let n = s(null), i = (e) => {
6
+ let t = [
7
+ "a[href]",
8
+ "button:not([disabled])",
9
+ "input:not([disabled])",
10
+ "select:not([disabled])",
11
+ "textarea:not([disabled])",
12
+ "[tabindex]:not([tabindex=\"-1\"])",
13
+ "[contenteditable]:not([tabindex=\"-1\"])"
14
+ ].join(",");
15
+ return Array.from(e.querySelectorAll(t));
16
+ }, a = (n) => {
17
+ if (n.key !== e.Tab || !t.value) return;
18
+ let r = i(t.value);
19
+ if (r.length === 0) return;
20
+ let a = r[0], o = r[r.length - 1];
21
+ n.shiftKey ? document.activeElement === a && (o?.focus(), n.preventDefault()) : document.activeElement === o && (a?.focus(), n.preventDefault());
22
+ };
23
+ return {
24
+ activate: async () => {
25
+ if (!t.value) return;
26
+ n.value = document.activeElement, document.addEventListener("keydown", a), await r();
27
+ let e = i(t.value);
28
+ e.length > 0 && e[0]?.focus();
29
+ },
30
+ deactivate: () => {
31
+ document.removeEventListener("keydown", a), n.value?.focus();
32
+ }
33
+ };
34
+ }, p = /* @__PURE__ */ n({
35
+ __name: "MudaFocusTrap",
36
+ props: { is: { default: "div" } },
37
+ setup(e) {
38
+ let n = e, { activate: r, deactivate: s } = f(u("trap"));
39
+ return i(r), a(s), (e, r) => (o(), t(l(n.is), {
40
+ ref: "trap",
41
+ tabindex: "-1",
42
+ role: "region"
43
+ }, {
44
+ default: d(() => [c(e.$slots, "default")]),
45
+ _: 3
46
+ }, 512));
47
+ }
48
+ });
49
+ //#endregion
50
+ export { p as t };
@@ -25,16 +25,16 @@ var c = /* @__PURE__ */ t({
25
25
  n.size === "small" && "size-4 before:text-xs",
26
26
  n.size === "medium" && "size-5 before:text-lg",
27
27
  n.size === "large" && "size-6 before:text-xl",
28
- "muda-control-reset bg-form-background",
28
+ "muda-control-reset bg-muda-form-background",
29
29
  "relative shrink-0 appearance-none outline-hidden",
30
- "rounded-xs border border-secondary-light text-secondary-dark",
31
- "focus:ring-2 focus:ring-primary-light focus:outline-hidden",
32
- "disabled:border-secondary-dark/20 disabled:text-secondary-light",
30
+ "rounded-xs border border-muda-secondary-light text-muda-secondary-dark",
31
+ "focus:ring-2 focus:ring-muda-primary-light focus:outline-hidden",
32
+ "disabled:border-muda-secondary-dark/20 disabled:text-muda-secondary-light",
33
33
  "before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0",
34
34
  "before:flex before:items-center before:justify-center",
35
- "before:text-sm before:font-bold before:text-primary",
35
+ "before:text-sm before:font-bold before:text-muda-primary",
36
36
  "checked:before:content-[attr(data-checked)]",
37
- "disabled:before:text-secondary-light"
37
+ "disabled:before:text-muda-secondary-light"
38
38
  ]
39
39
  }), null, 16)), [[o, c.value]]);
40
40
  }
@@ -1,16 +1,16 @@
1
1
  import { t as e } from "./keymap-BzfMgdJH.js";
2
- import { t } from "./MudaIcon-BhSsLCZx.js";
3
- import { t as n } from "./MudaFormInput-CI_xfpTj.js";
2
+ import { t } from "./MudaIcon-D_siyzw0.js";
3
+ import { t as n } from "./MudaFormInput-BYoht_A0.js";
4
4
  import { t as r } from "./useClickOutside-B6tdxsc3.js";
5
5
  import { t as i } from "./useZIndex-DWnsohLZ.js";
6
6
  import { t as a } from "./useKeyDown-B1jmp4nA.js";
7
- import { t as o } from "./MudaFormCheckbox-CDY-INi6.js";
7
+ import { t as o } from "./MudaFormCheckbox-90HcY4_2.js";
8
8
  import { Fragment as s, Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeModels as y, mergeProps as b, normalizeClass as x, normalizeStyle as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useModel as k, useSlots as A, useTemplateRef as j, watch as M, watchEffect as N, withCtx as P, withModifiers as F } from "vue";
9
9
  import { autoUpdate as I, flip as L, offset as R, shift as z, size as B, useFloating as V } from "@floating-ui/vue";
10
10
  //#region src/components/MudaFormCombobox/MudaFormComboboxMultiple.vue?vue&type=script&setup=true&lang.ts
11
11
  var H = { class: "flex flex-col" }, U = {
12
12
  key: 0,
13
- class: "-mt-2.75 rounded-b-lg border border-secondary-light bg-form-background pt-2.5"
13
+ class: "-mt-2.75 rounded-b-lg border border-muda-secondary-light bg-muda-form-background pt-2.5"
14
14
  }, W = { class: "m-0 muda-no-scrollbar flex max-h-80 list-none flex-col gap-1 muda-scroll-container-v-form-background rounded-lg px-2 py-2" }, G = { class: "flex cursor-pointer items-center gap-2" }, K = /* @__PURE__ */ v({
15
15
  inheritAttrs: !1,
16
16
  __name: "MudaFormComboboxMultiple",
@@ -164,7 +164,7 @@ var H = { class: "flex flex-col" }, U = {
164
164
  default: P(() => [K.value ? (C(), p("ul", {
165
165
  key: 0,
166
166
  ref: "list",
167
- class: "m-0 max-h-52 w-max list-none overflow-auto rounded-sm bg-form-background p-0 shadow-lg",
167
+ class: "m-0 max-h-52 w-max list-none overflow-auto rounded-sm bg-muda-form-background p-0 shadow-lg",
168
168
  style: S({
169
169
  ...O(Q),
170
170
  zIndex: O(X)
@@ -173,8 +173,8 @@ var H = { class: "flex flex-col" }, U = {
173
173
  key: `${String(t.value)}-${n}`,
174
174
  role: "button",
175
175
  class: x(["flex h-10 w-full cursor-pointer items-center px-2 text-base select-none", {
176
- "bg-primary-light text-white": Y.value === n,
177
- "bg-primary text-white": t.value === y.value
176
+ "bg-muda-primary-light text-white": Y.value === n,
177
+ "bg-muda-primary text-white": t.value === y.value
178
178
  }]),
179
179
  onClick: F((e) => $(n), ["prevent"])
180
180
  }, [v.label == null ? (C(), p(s, { key: 1 }, [g(D(t.label), 1)], 64)) : E(e.$slots, "label", { option: t }, void 0, void 0, 0)], 10, J))), 128))], 4)) : f("", !0)]),
@@ -2,7 +2,7 @@ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r
2
2
  //#region src/components/MudaFormField/MudaFormFieldErrors.vue?vue&type=script&setup=true&lang.ts
3
3
  var h = {
4
4
  key: 0,
5
- class: "m-0 list-none fill-danger p-0 text-danger"
5
+ class: "m-0 list-none fill-muda-danger p-0 text-muda-danger"
6
6
  }, g = /* @__PURE__ */ s({
7
7
  __name: "MudaFormFieldErrors",
8
8
  props: { errors: {} },
@@ -28,11 +28,11 @@ var h = {
28
28
  "flex-row items-center gap-2": u.axis === "horizontal"
29
29
  }]) }, {
30
30
  default: m(() => [u.labelPosition === "before" ? (l(), i(e, { key: 0 }, [a("span", { class: c(["block", {
31
- "text-secondary-dark": !p.value,
32
- "text-danger": p.value
31
+ "text-muda-secondary-dark": !p.value,
32
+ "text-muda-danger": p.value
33
33
  }]) }, [d(t.$slots, "label")], 2), d(t.$slots, "default")], 64)) : u.labelPosition === "after" ? (l(), i(e, { key: 1 }, [d(t.$slots, "default"), a("span", { class: c(["block", {
34
- "text-secondary-dark": !p.value,
35
- "text-danger": p.value
34
+ "text-muda-secondary-dark": !p.value,
35
+ "text-muda-danger": p.value
36
36
  }]) }, [d(t.$slots, "label")], 2)], 64)) : r("", !0)]),
37
37
  _: 3
38
38
  }, 8, ["class"])), o(g, { errors: u.errors }, null, 8, ["errors"])]));
@@ -22,8 +22,8 @@ var g = { class: "relative inline-block w-full" }, _ = { class: "flex size-6 ite
22
22
  x.before == null ? t("", !0) : (l(), n("span", {
23
23
  key: 0,
24
24
  class: c(["absolute inset-y-0 left-2 flex items-center", {
25
- "fill-primary text-primary": !b.isInvalid,
26
- "fill-danger text-danger": b.isInvalid,
25
+ "fill-muda-primary text-muda-primary": !b.isInvalid,
26
+ "fill-muda-danger text-muda-danger": b.isInvalid,
27
27
  "pointer-events-none": !w.value,
28
28
  "cursor-pointer": w.value
29
29
  }]),
@@ -32,9 +32,9 @@ var g = { class: "relative inline-block w-full" }, _ = { class: "flex size-6 ite
32
32
  h(r("input", s(e.$attrs, {
33
33
  "onUpdate:modelValue": i[1] ||= (e) => S.value = e,
34
34
  ref: "input",
35
- class: ["muda-control-reset block h-10 w-full rounded-md border bg-form-background px-2 text-secondary-dark placeholder:text-secondary-light focus:ring-2 focus:outline-hidden disabled:border-secondary-dark/20 disabled:bg-secondary-light disabled:text-secondary-light", {
36
- "border-secondary-light focus:ring-primary-light": !b.isInvalid,
37
- "border-danger focus:ring-danger-light": b.isInvalid,
35
+ class: ["muda-control-reset block h-10 w-full rounded-md border bg-muda-form-background px-2 text-muda-secondary-dark placeholder:text-muda-secondary-light focus:ring-2 focus:outline-hidden disabled:border-muda-secondary-dark/20 disabled:bg-muda-secondary-light disabled:text-muda-secondary-light", {
36
+ "border-muda-secondary-light focus:ring-muda-primary-light": !b.isInvalid,
37
+ "border-muda-danger focus:ring-muda-danger-light": b.isInvalid,
38
38
  "pl-9": x.before != null,
39
39
  "pr-9": x.after != null
40
40
  }]
@@ -42,8 +42,8 @@ var g = { class: "relative inline-block w-full" }, _ = { class: "flex size-6 ite
42
42
  x.after == null ? t("", !0) : (l(), n("span", {
43
43
  key: 1,
44
44
  class: c(["absolute inset-y-0 right-2 flex items-center", {
45
- "fill-primary text-primary": !b.isInvalid,
46
- "fill-danger text-danger": b.isInvalid,
45
+ "fill-muda-primary text-muda-primary": !b.isInvalid,
46
+ "fill-muda-danger text-muda-danger": b.isInvalid,
47
47
  "pointer-events-none": !T.value,
48
48
  "cursor-pointer": T.value
49
49
  }]),
@@ -13,7 +13,7 @@ var s = /* @__PURE__ */ t({
13
13
  return (t, i) => o((r(), e("input", n(t.$attrs, {
14
14
  "onUpdate:modelValue": i[0] ||= (e) => s.value = e,
15
15
  type: "radio",
16
- class: "muda-control-reset h-4 w-4 bg-form-background text-primary focus:ring-primary"
16
+ class: "muda-control-reset h-4 w-4 bg-muda-form-background text-muda-primary focus:ring-muda-primary"
17
17
  }), null, 16)), [[a, s.value]]);
18
18
  }
19
19
  });