@okam/stack-ui 1.29.0 → 1.30.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 (413) hide show
  1. package/components/Accordion/components/AccordionItem.d.ts +1 -0
  2. package/components/Accordion/index.d.ts +2 -1
  3. package/components/Accordion/interface.d.ts +3 -2
  4. package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
  5. package/components/Alerts/index.d.ts +2 -1
  6. package/components/Alerts/interface.d.ts +4 -3
  7. package/components/Box/index.d.ts +3 -2
  8. package/components/Button/index.d.ts +8 -4
  9. package/components/Button/interface.d.ts +3 -2
  10. package/components/Calendar/index.d.ts +5 -1
  11. package/components/Calendar/interface.d.ts +2 -1
  12. package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
  13. package/components/Date/index.d.ts +2 -1
  14. package/components/Date/interface.d.ts +2 -1
  15. package/components/Icon/index.d.ts +2 -1
  16. package/components/Icon/interface.d.ts +2 -1
  17. package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
  18. package/components/Lightbox/index.d.ts +2 -1
  19. package/components/Lightbox/interface.d.ts +3 -2
  20. package/components/Menu/Menu.d.ts +2 -1
  21. package/components/Menu/interface.d.ts +5 -4
  22. package/components/Modal/index.d.ts +2 -1
  23. package/components/Modal/interface.d.ts +2 -1
  24. package/components/Popover/index.d.ts +2 -1
  25. package/components/Popover/interface.d.ts +3 -2
  26. package/components/ShareButton/index.d.ts +2 -1
  27. package/components/ShareButton/interface.d.ts +2 -2
  28. package/components/SidePanel/index.d.ts +3 -3
  29. package/components/SidePanel/interface.d.ts +5 -4
  30. package/components/Typography/index.d.ts +3 -2
  31. package/components/Video/index.d.ts +2 -1
  32. package/components/Video/interface.d.ts +2 -1
  33. package/components/WysiwygBlock/attributes.d.ts +2 -0
  34. package/components/WysiwygBlock/index.d.ts +2 -1
  35. package/components/WysiwygBlock/interface.d.ts +2 -1
  36. package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
  37. package/components/fields/Checkbox/index.d.ts +2 -1
  38. package/components/fields/CheckboxGroup/index.d.ts +2 -1
  39. package/components/fields/CheckboxGroup/interface.d.ts +2 -1
  40. package/components/fields/DatePicker/index.d.ts +2 -1
  41. package/components/fields/DatePicker/interface.d.ts +2 -1
  42. package/components/fields/Radio/Radio.interface.d.ts +3 -2
  43. package/components/fields/Radio/index.d.ts +3 -2
  44. package/components/fields/RadioGroup/index.d.ts +2 -1
  45. package/components/fields/RadioGroup/interface.d.ts +2 -1
  46. package/components/fields/SearchField/index.d.ts +2 -1
  47. package/components/fields/SearchField/interface.d.ts +2 -1
  48. package/components/fields/Select/Select.d.ts +2 -1
  49. package/components/fields/Select/Select.interface.d.ts +3 -2
  50. package/components/fields/TextArea/index.d.ts +2 -1
  51. package/components/fields/TextInputField/interface.d.ts +3 -2
  52. package/index.d.ts +1 -0
  53. package/index.js +1 -1
  54. package/index.mjs +41 -38
  55. package/index100.js +1 -2
  56. package/index100.mjs +22 -21
  57. package/index101.js +2 -1
  58. package/index101.mjs +22 -63
  59. package/index102.js +1 -1
  60. package/index102.mjs +58 -24
  61. package/index103.js +1 -1
  62. package/index103.mjs +29 -4
  63. package/index104.js +1 -1
  64. package/index104.mjs +52 -11
  65. package/index105.js +1 -1
  66. package/index105.mjs +4 -14
  67. package/index106.js +1 -1
  68. package/index106.mjs +11 -23
  69. package/index107.js +1 -1
  70. package/index107.mjs +13 -22
  71. package/index108.js +1 -1
  72. package/index108.mjs +23 -39
  73. package/index109.js +1 -2
  74. package/index109.mjs +22 -12
  75. package/index11.js +1 -1
  76. package/index11.mjs +2 -2
  77. package/index110.js +1 -1
  78. package/index110.mjs +38 -7
  79. package/index111.js +2 -1
  80. package/index111.mjs +12 -21
  81. package/index112.js +1 -1
  82. package/index112.mjs +7 -38
  83. package/index113.js +1 -1
  84. package/index113.mjs +20 -48
  85. package/index114.js +1 -1
  86. package/index114.mjs +38 -40
  87. package/index115.js +1 -1
  88. package/index115.mjs +47 -11
  89. package/index116.js +1 -1
  90. package/index116.mjs +41 -26
  91. package/index117.js +1 -1
  92. package/index117.mjs +14 -20
  93. package/index118.js +1 -1
  94. package/index118.mjs +30 -8
  95. package/index119.js +1 -1
  96. package/index119.mjs +20 -30
  97. package/index120.js +1 -1
  98. package/index120.mjs +8 -14
  99. package/index121.js +1 -1
  100. package/index121.mjs +29 -16
  101. package/index122.js +1 -1
  102. package/index122.mjs +15 -21
  103. package/index123.js +1 -1
  104. package/index123.mjs +17 -11
  105. package/index124.js +1 -2
  106. package/index124.mjs +20 -21
  107. package/index125.js +1 -1
  108. package/index125.mjs +11 -12
  109. package/index126.js +2 -1
  110. package/index126.mjs +22 -46
  111. package/index127.js +1 -1
  112. package/index127.mjs +12 -241
  113. package/index128.js +1 -2
  114. package/index128.mjs +46 -13
  115. package/index129.js +1 -1
  116. package/index129.mjs +239 -28
  117. package/index13.js +1 -1
  118. package/index13.mjs +8 -5
  119. package/index130.js +2 -1
  120. package/index130.mjs +13 -51
  121. package/index131.js +1 -1
  122. package/index131.mjs +30 -27
  123. package/index132.js +1 -1
  124. package/index132.mjs +49 -19
  125. package/index133.js +1 -1
  126. package/index133.mjs +26 -61
  127. package/index134.js +1 -1
  128. package/index134.mjs +17 -91
  129. package/index135.js +1 -1
  130. package/index135.mjs +59 -29
  131. package/index136.js +1 -1
  132. package/index136.mjs +90 -117
  133. package/index137.js +1 -1
  134. package/index137.mjs +32 -26
  135. package/index138.js +1 -1
  136. package/index138.mjs +118 -121
  137. package/index139.js +1 -1
  138. package/index139.mjs +27 -134
  139. package/index14.js +1 -1
  140. package/index14.mjs +3 -3
  141. package/index140.js +1 -1
  142. package/index140.mjs +122 -12
  143. package/index141.js +1 -1
  144. package/index141.mjs +131 -92
  145. package/index142.js +1 -1
  146. package/index142.mjs +12 -104
  147. package/index143.js +1 -1
  148. package/index143.mjs +95 -5
  149. package/index144.js +1 -1
  150. package/index144.mjs +106 -3
  151. package/index145.js +1 -1
  152. package/index145.mjs +5 -125
  153. package/index146.js +1 -1
  154. package/index146.mjs +3 -29
  155. package/index147.js +1 -1
  156. package/index147.mjs +113 -39
  157. package/index148.js +1 -1
  158. package/index148.mjs +19 -34
  159. package/index149.js +1 -1
  160. package/index149.mjs +40 -26
  161. package/index150.js +1 -1
  162. package/index150.mjs +29 -98
  163. package/index151.js +1 -1
  164. package/index151.mjs +28 -68
  165. package/index152.js +1 -1
  166. package/index152.mjs +90 -78
  167. package/index153.js +1 -1
  168. package/index153.mjs +78 -98
  169. package/index154.js +1 -1
  170. package/index154.mjs +101 -199
  171. package/index155.js +1 -1
  172. package/index155.mjs +98 -65
  173. package/index156.js +1 -1
  174. package/index156.mjs +185 -127
  175. package/index157.js +1 -1
  176. package/index157.mjs +54 -109
  177. package/index158.js +1 -1
  178. package/index158.mjs +126 -202
  179. package/index159.js +1 -1
  180. package/index159.mjs +104 -175
  181. package/index16.js +1 -1
  182. package/index16.mjs +2 -2
  183. package/index160.js +1 -1
  184. package/index160.mjs +208 -60
  185. package/index161.js +1 -1
  186. package/index161.mjs +178 -246
  187. package/index162.js +1 -1
  188. package/index162.mjs +63 -91
  189. package/index163.js +1 -1
  190. package/index163.mjs +250 -166
  191. package/index164.js +1 -1
  192. package/index164.mjs +91 -78
  193. package/index165.js +1 -1
  194. package/index165.mjs +170 -54
  195. package/index166.js +1 -1
  196. package/index166.mjs +72 -114
  197. package/index167.js +1 -1
  198. package/index167.mjs +51 -109
  199. package/index168.js +1 -1
  200. package/index168.mjs +112 -108
  201. package/index169.js +1 -1
  202. package/index169.mjs +109 -65
  203. package/index170.js +1 -1
  204. package/index170.mjs +117 -105
  205. package/index171.js +1 -1
  206. package/index171.mjs +68 -48
  207. package/index172.js +1 -1
  208. package/index172.mjs +108 -91
  209. package/index173.js +1 -1
  210. package/index173.mjs +37 -55
  211. package/index174.js +1 -1
  212. package/index174.mjs +80 -43
  213. package/index175.js +1 -1
  214. package/index175.mjs +52 -81
  215. package/index176.js +1 -5
  216. package/index176.mjs +42 -66
  217. package/index177.js +1 -1
  218. package/index177.mjs +87 -1999
  219. package/index178.js +5 -1
  220. package/index178.mjs +79 -58
  221. package/index179.js +1 -1
  222. package/index179.mjs +1998 -175
  223. package/index18.js +1 -1
  224. package/index18.mjs +7 -7
  225. package/index180.js +1 -1
  226. package/index180.mjs +59 -5
  227. package/index181.js +1 -1
  228. package/index181.mjs +183 -125
  229. package/index182.js +1 -1
  230. package/index182.mjs +5 -179
  231. package/index183.js +1 -1
  232. package/index183.mjs +129 -8
  233. package/index184.js +1 -1
  234. package/index184.mjs +179 -3
  235. package/index185.js +1 -1
  236. package/index185.mjs +8 -35
  237. package/index186.js +1 -1
  238. package/index186.mjs +3 -5
  239. package/index187.js +1 -1
  240. package/index187.mjs +35 -28
  241. package/index188.js +1 -1
  242. package/index188.mjs +5 -6
  243. package/index189.js +1 -1
  244. package/index189.mjs +26 -310
  245. package/index19.js +1 -1
  246. package/index19.mjs +2 -2
  247. package/index190.js +1 -1
  248. package/index190.mjs +6 -192
  249. package/index191.js +1 -1
  250. package/index191.mjs +339 -7
  251. package/index192.js +1 -1
  252. package/index192.mjs +180 -23
  253. package/index193.js +1 -1
  254. package/index193.mjs +6 -53
  255. package/index194.js +1 -1
  256. package/index194.mjs +24 -44
  257. package/index195.js +1 -1
  258. package/index195.mjs +55 -124
  259. package/index196.js +1 -1
  260. package/index196.mjs +46 -5
  261. package/index197.js +1 -1
  262. package/index197.mjs +108 -26
  263. package/index198.js +1 -1
  264. package/index198.mjs +32 -6
  265. package/index199.js +1 -1
  266. package/index199.mjs +5 -7
  267. package/index2.js +1 -1
  268. package/index2.mjs +19 -19
  269. package/index20.js +1 -1
  270. package/index20.mjs +1 -1
  271. package/index200.js +1 -1
  272. package/index200.mjs +28 -7
  273. package/index201.js +1 -1
  274. package/index201.mjs +7 -5
  275. package/index202.js +1 -1
  276. package/index202.mjs +7 -5
  277. package/index203.js +1 -1
  278. package/index203.mjs +7 -9
  279. package/index204.js +1 -0
  280. package/index204.mjs +7 -0
  281. package/index205.js +1 -0
  282. package/index205.mjs +8 -0
  283. package/index206.js +1 -0
  284. package/index206.mjs +12 -0
  285. package/index21.js +1 -1
  286. package/index21.mjs +8 -8
  287. package/index22.js +1 -1
  288. package/index22.mjs +2 -2
  289. package/index23.js +1 -1
  290. package/index23.mjs +3 -3
  291. package/index24.js +1 -1
  292. package/index24.mjs +14 -14
  293. package/index26.js +1 -1
  294. package/index26.mjs +28 -21
  295. package/index27.js +1 -1
  296. package/index27.mjs +12 -12
  297. package/index28.js +1 -1
  298. package/index28.mjs +6 -6
  299. package/index29.js +1 -1
  300. package/index29.mjs +1 -1
  301. package/index30.js +1 -1
  302. package/index30.mjs +14 -8
  303. package/index31.js +1 -1
  304. package/index31.mjs +18 -18
  305. package/index32.js +1 -1
  306. package/index32.mjs +1 -1
  307. package/index33.mjs +43 -43
  308. package/index34.js +1 -1
  309. package/index34.mjs +1 -1
  310. package/index35.js +1 -1
  311. package/index35.mjs +3 -3
  312. package/index36.mjs +10 -10
  313. package/index4.js +1 -1
  314. package/index4.mjs +3 -3
  315. package/index6.js +1 -1
  316. package/index6.mjs +34 -33
  317. package/index65.js +1 -1
  318. package/index65.mjs +1 -1
  319. package/index66.js +1 -1
  320. package/index66.mjs +2 -2
  321. package/index67.js +1 -1
  322. package/index67.mjs +1 -1
  323. package/index69.js +1 -1
  324. package/index69.mjs +1 -1
  325. package/index7.mjs +4 -4
  326. package/index70.js +1 -1
  327. package/index70.mjs +1 -1
  328. package/index71.js +1 -1
  329. package/index71.mjs +1 -1
  330. package/index72.js +2 -1
  331. package/index72.mjs +27 -2
  332. package/index73.js +1 -2
  333. package/index73.mjs +2 -9
  334. package/index74.js +1 -1
  335. package/index74.mjs +7 -6
  336. package/index75.js +1 -1
  337. package/index75.mjs +6 -6
  338. package/index76.js +1 -1
  339. package/index76.mjs +6 -6
  340. package/index77.js +2 -1
  341. package/index77.mjs +8 -25
  342. package/index78.js +1 -1
  343. package/index78.mjs +25 -2
  344. package/index79.js +1 -6
  345. package/index79.mjs +2 -94
  346. package/index8.js +1 -1
  347. package/index8.mjs +42 -23
  348. package/index80.js +6 -1
  349. package/index80.mjs +79 -54
  350. package/index81.js +1 -1
  351. package/index81.mjs +61 -33
  352. package/index82.js +1 -42
  353. package/index82.mjs +34 -67
  354. package/index83.js +42 -1
  355. package/index83.mjs +69 -154
  356. package/index84.js +1 -9
  357. package/index84.mjs +149 -47
  358. package/index85.js +9 -1
  359. package/index85.mjs +48 -36
  360. package/index86.js +1 -1
  361. package/index86.mjs +40 -8
  362. package/index87.js +1 -1
  363. package/index87.mjs +9 -31
  364. package/index88.js +1 -1
  365. package/index88.mjs +35 -6
  366. package/index89.js +1 -12
  367. package/index89.mjs +6 -40
  368. package/index9.js +1 -1
  369. package/index9.mjs +7 -7
  370. package/index90.js +12 -1
  371. package/index90.mjs +36 -25
  372. package/index91.js +1 -1
  373. package/index91.mjs +24 -8
  374. package/index92.js +1 -7
  375. package/index92.mjs +7 -13
  376. package/index93.js +6 -14
  377. package/index93.mjs +13 -65
  378. package/index94.js +15 -1
  379. package/index94.mjs +71 -7
  380. package/index95.js +1 -16
  381. package/index95.mjs +7 -25
  382. package/index96.js +16 -1
  383. package/index96.mjs +20 -37
  384. package/index97.js +1 -1
  385. package/index97.mjs +40 -43
  386. package/index98.js +1 -1
  387. package/index98.mjs +44 -47
  388. package/index99.js +1 -1
  389. package/index99.mjs +48 -17
  390. package/package.json +1 -1
  391. package/providers/Translation/index.d.ts +4 -0
  392. package/providers/Translation/interface.d.ts +16 -0
  393. package/theme/Accordion/index.d.ts +12 -12
  394. package/theme/Alerts/index.d.ts +22 -22
  395. package/theme/Box/index.d.ts +8 -8
  396. package/theme/Button/index.d.ts +2 -2
  397. package/theme/Calendar/index.d.ts +12 -12
  398. package/theme/Carousel/index.d.ts +11 -11
  399. package/theme/Checkbox/index.d.ts +8 -8
  400. package/theme/CheckboxGroup/index.d.ts +3 -3
  401. package/theme/DatePicker/index.d.ts +9 -9
  402. package/theme/Image/index.d.ts +1 -1
  403. package/theme/LightBox/index.d.ts +9 -9
  404. package/theme/Radio/index.d.ts +6 -6
  405. package/theme/RadioGroup/index.d.ts +3 -3
  406. package/theme/Search/index.d.ts +3 -3
  407. package/theme/ShareButton/index.d.ts +10 -10
  408. package/theme/SidePanel/index.d.ts +3 -3
  409. package/theme/TextArea/index.d.ts +2 -2
  410. package/theme/Typography/index.d.ts +2 -2
  411. package/transitions/ModalTransition.d.ts +3 -6
  412. package/transitions/RenderWithSlide.d.ts +3 -6
  413. package/transitions/SidePanelTransition.d.ts +3 -6
package/index22.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),L=require("@react-aria/focus"),O=require("react"),P=require("react-aria"),f=require("react-hook-form"),y=require("react-i18next"),m=require("./index64.js"),H=require("./index3.js"),M=t=>{const{label:n,isRequired:u=!1,isDisabled:a=!1,required:i,disabled:R,errorMessage:o,fieldRef:l,children:g,themeName:e="textInput",tokens:b,customTheme:s,ariaLabel:h}=t,d=i??u,p=R??a,q=O.useRef(null),{errorMessageProps:j,inputProps:F,labelProps:v}=P.useTextField({"aria-label":h,...t,isRequired:d,isDisabled:p},q),{"aria-labelledby":D,...N}={...F,required:d,disabled:p},c={...b,isDisabled:a,isRequired:u,isError:!!o},T=m(`${e}.wrapper`,c,s),k=m(`${e}.label`,c,s),E=m(`${e}.input`,c,s),I=m(`${e}.container`,c,s);return r.jsxs("div",{children:[r.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:r.jsxs("div",{"aria-disabled":a,className:T,children:[n&&r.jsx("label",{className:k,...v,children:n}),r.jsxs("div",{className:I,children:[g,r.jsx("input",{...N,className:E,ref:x=>{l==null||l(x),q.current=x}})]})]})}),o&&r.jsx(H.default,{themeName:`${e}.errorMessage`,tokens:c,...j,children:o})]})},$=t=>{const{name:n,required:u,isRequired:a,minLength:i=0,maxLength:R=99999999,validation:o}=t,{register:l,formState:g}=f.useFormContext(),e=f.get(g.errors,n),b=(e==null?void 0:e.message)??void 0,{t:s}=y.useTranslation("components"),{ref:h,...d}=l(n,{required:u??a?s("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:i,message:s("FORM.ERROR.MIN_LENGTH",{length:i})},maxLength:{value:R,message:s("FORM.ERROR.MAX_LENGTH",{length:i})},...o});return r.jsx(M,{fieldRef:h,...d,...t,errorMessage:b})};exports.ReactHookFormInput=$;exports.default=M;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),I=require("@react-aria/focus"),O=require("react"),P=require("react-aria"),f=require("react-hook-form"),m=require("./index64.js"),$=require("./index72.js"),y=require("./index3.js"),M=t=>{const{label:n,isRequired:u=!1,isDisabled:a=!1,required:i,disabled:R,errorMessage:o,fieldRef:l,children:g,themeName:e="textInput",tokens:b,customTheme:s,ariaLabel:h}=t,d=i??u,p=R??a,q=O.useRef(null),{errorMessageProps:j,inputProps:F,labelProps:v}=P.useTextField({"aria-label":h,...t,isRequired:d,isDisabled:p},q),{"aria-labelledby":D,...N}={...F,required:d,disabled:p},c={...b,isDisabled:a,isRequired:u,isError:!!o},T=m(`${e}.wrapper`,c,s),k=m(`${e}.label`,c,s),E=m(`${e}.input`,c,s),L=m(`${e}.container`,c,s);return r.jsxs("div",{children:[r.jsx(I.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:r.jsxs("div",{"aria-disabled":a,className:T,children:[n&&r.jsx("label",{className:k,...v,children:n}),r.jsxs("div",{className:L,children:[g,r.jsx("input",{...N,className:E,ref:x=>{l==null||l(x),q.current=x}})]})]})}),o&&r.jsx(y.default,{themeName:`${e}.errorMessage`,tokens:c,...j,children:o})]})},H=t=>{const{name:n,required:u,isRequired:a,minLength:i=0,maxLength:R=99999999,validation:o}=t,{register:l,formState:g}=f.useFormContext(),e=f.get(g.errors,n),b=(e==null?void 0:e.message)??void 0,{t:s}=$.useTranslation(),{ref:h,...d}=l(n,{required:u??a?s("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:i,message:s("FORM.ERROR.MIN_LENGTH",{length:i})},maxLength:{value:R,message:s("FORM.ERROR.MAX_LENGTH",{length:i})},...o});return r.jsx(M,{fieldRef:h,...d,...t,errorMessage:b})};exports.ReactHookFormInput=H;exports.default=M;
package/index22.mjs CHANGED
@@ -4,8 +4,8 @@ import { FocusRing as I } from "@react-aria/focus";
4
4
  import { useRef as O } from "react";
5
5
  import { useTextField as k } from "react-aria";
6
6
  import { useFormContext as P, get as $ } from "react-hook-form";
7
- import { useTranslation as C } from "react-i18next";
8
7
  import d from "./index64.mjs";
8
+ import { useTranslation as C } from "./index72.mjs";
9
9
  import D from "./index3.mjs";
10
10
  const w = (s) => {
11
11
  const {
@@ -50,7 +50,7 @@ const w = (s) => {
50
50
  n && /* @__PURE__ */ c(D, { themeName: `${e}.errorMessage`, tokens: l, ...T, children: n })
51
51
  ] });
52
52
  }, X = (s) => {
53
- const { name: t, required: m, isRequired: a, minLength: i = 0, maxLength: p = 99999999, validation: n } = s, { register: o, formState: g } = P(), e = $(g.errors, t), R = (e == null ? void 0 : e.message) ?? void 0, { t: r } = C("components"), { ref: h, ...u } = o(t, {
53
+ const { name: t, required: m, isRequired: a, minLength: i = 0, maxLength: p = 99999999, validation: n } = s, { register: o, formState: g } = P(), e = $(g.errors, t), R = (e == null ? void 0 : e.message) ?? void 0, { t: r } = C(), { ref: h, ...u } = o(t, {
54
54
  required: m ?? a ? r("FORM.ERROR.REQUIRED") ?? "required" : !1,
55
55
  minLength: {
56
56
  value: i,
package/index23.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./index110.js"),S=require("./index14.js"),w=require("./index111.js"),x=require("./index112.js");function C({popoverPlacement:p="bottom start",tokens:r,customTheme:y,themeName:s="datePicker",icon:j="ArrowDown",description:c,buttonLabel:a,...n}){const i=g.useDatePickerState({...n}),t=k.useRef(null),{groupProps:P,fieldProps:d,labelProps:h,descriptionProps:q,buttonProps:l,dialogProps:v,calendarProps:$}=D.useDatePicker({...n},i,t),{label:u}={...n},m=o(`${s}.container`,r),b=o(`${s}.dateField`,r),f=o(`${s}.label`,r);return e.jsxs("div",{className:m,children:[u&&e.jsx("span",{...h,children:u}),c&&e.jsx("div",{...q,children:c}),e.jsx("div",{...P,ref:t,children:e.jsxs(R.default,{themeName:`${s}.button`,tokens:{...r},type:"button",...l,handlePress:l.onPress,children:[a&&e.jsx("p",{className:f,children:a}),e.jsxs("div",{className:b,children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${s}.icon`,tokens:{...r},icon:j})]})}),i.isOpen&&e.jsx(w.CalendarPopover,{triggerRef:t,state:i,placement:p,children:e.jsxs(F.Dialog,{...v,children:[e.jsxs("div",{children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(T,{...$})]})})]})}module.exports=C;
2
+ "use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./index112.js"),S=require("./index14.js"),w=require("./index113.js"),x=require("./index114.js");function C({popoverPlacement:p="bottom start",tokens:r,customTheme:y,themeName:s="datePicker",icon:j="ArrowDown",description:c,buttonLabel:a,...n}){const i=g.useDatePickerState({...n}),t=k.useRef(null),{groupProps:P,fieldProps:d,labelProps:h,descriptionProps:q,buttonProps:l,dialogProps:v,calendarProps:$}=D.useDatePicker({...n},i,t),{label:u}={...n},m=o(`${s}.container`,r),b=o(`${s}.dateField`,r),f=o(`${s}.label`,r);return e.jsxs("div",{className:m,children:[u&&e.jsx("span",{...h,children:u}),c&&e.jsx("div",{...q,children:c}),e.jsx("div",{...P,ref:t,children:e.jsxs(R.default,{themeName:`${s}.button`,tokens:{...r},type:"button",...l,handlePress:l.onPress,children:[a&&e.jsx("p",{className:f,children:a}),e.jsxs("div",{className:b,children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${s}.icon`,tokens:{...r},icon:j})]})}),i.isOpen&&e.jsx(w.CalendarPopover,{triggerRef:t,state:i,placement:p,children:e.jsxs(F.Dialog,{...v,children:[e.jsxs("div",{children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(T,{...$})]})})]})}module.exports=C;
package/index23.mjs CHANGED
@@ -6,10 +6,10 @@ import { useRef as S } from "react";
6
6
  import l from "./index64.mjs";
7
7
  import j from "./index6.mjs";
8
8
  import k from "./index26.mjs";
9
- import { Dialog as w } from "./index110.mjs";
9
+ import { Dialog as w } from "./index112.mjs";
10
10
  import R from "./index14.mjs";
11
- import { CalendarPopover as y } from "./index111.mjs";
12
- import f from "./index112.mjs";
11
+ import { CalendarPopover as y } from "./index113.mjs";
12
+ import f from "./index114.mjs";
13
13
  function M({
14
14
  popoverPlacement: h = "bottom start",
15
15
  tokens: r,
package/index24.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./index113.js"),C=require("./index110.js"),S=require("./index14.js"),T=require("./index111.js"),r=require("./index112.js");function w(i){const s=N.useDateRangePickerState(i),a=D.useRef(null),{labelProps:j,descriptionProps:P,groupProps:m,startFieldProps:c,endFieldProps:l,buttonProps:d,dialogProps:v,calendarProps:q}=$.useDateRangePicker(i,s,a),{label:u,buttonLabel:x,description:p,themeName:n="datePicker",tokens:t,popoverPlacement:k,icon:b}=i,g=o(`${n}.container`,t),h=o(`${n}.dateField`,t),R=o(`${n}.label`,t);return e.jsxs("div",{className:g,children:[u&&e.jsx("span",{...j,children:u}),p&&e.jsx("div",{...P,children:p}),e.jsx("div",{...m,ref:a,children:e.jsxs(f.default,{themeName:`${n}.button`,tokens:{...t},type:"button",...d,handlePress:d.onPress,children:[x&&e.jsx("p",{className:R,children:x}),e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:b??"ArrowDown"})]})}),s.isOpen&&e.jsx(T.CalendarPopover,{triggerRef:a,state:s,placement:k,children:e.jsxs(C.Dialog,{...v,children:[e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(F,{...q})]})})]})}module.exports=w;
2
+ "use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./index115.js"),C=require("./index112.js"),S=require("./index14.js"),T=require("./index113.js"),r=require("./index114.js");function w(i){const s=N.useDateRangePickerState(i),a=D.useRef(null),{labelProps:j,descriptionProps:P,groupProps:m,startFieldProps:c,endFieldProps:l,buttonProps:d,dialogProps:v,calendarProps:q}=$.useDateRangePicker(i,s,a),{label:u,buttonLabel:x,description:p,themeName:n="datePicker",tokens:t,popoverPlacement:k,icon:b}=i,g=o(`${n}.container`,t),h=o(`${n}.dateField`,t),R=o(`${n}.label`,t);return e.jsxs("div",{className:g,children:[u&&e.jsx("span",{...j,children:u}),p&&e.jsx("div",{...P,children:p}),e.jsx("div",{...m,ref:a,children:e.jsxs(f.default,{themeName:`${n}.button`,tokens:{...t},type:"button",...d,handlePress:d.onPress,children:[x&&e.jsx("p",{className:R,children:x}),e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:b??"ArrowDown"})]})}),s.isOpen&&e.jsx(T.CalendarPopover,{triggerRef:a,state:s,placement:k,children:e.jsxs(C.Dialog,{...v,children:[e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(F,{...q})]})})]})}module.exports=w;
package/index24.mjs CHANGED
@@ -2,21 +2,21 @@
2
2
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
3
  import { useDateRangePicker as $ } from "@react-aria/datepicker";
4
4
  import { useDateRangePickerState as x } from "@react-stately/datepicker";
5
- import { useRef as T } from "react";
5
+ import { useRef as C } from "react";
6
6
  import s from "./index64.mjs";
7
- import C from "./index6.mjs";
8
- import S from "./index113.mjs";
9
- import { Dialog as j } from "./index110.mjs";
7
+ import T from "./index6.mjs";
8
+ import S from "./index115.mjs";
9
+ import { Dialog as j } from "./index112.mjs";
10
10
  import w from "./index14.mjs";
11
- import { CalendarPopover as y } from "./index111.mjs";
12
- import i from "./index112.mjs";
11
+ import { CalendarPopover as y } from "./index113.mjs";
12
+ import i from "./index114.mjs";
13
13
  function K(a) {
14
- const t = x(a), l = T(null), {
14
+ const t = x(a), l = C(null), {
15
15
  labelProps: u,
16
16
  descriptionProps: v,
17
17
  groupProps: b,
18
- startFieldProps: c,
19
- endFieldProps: m,
18
+ startFieldProps: m,
19
+ endFieldProps: c,
20
20
  buttonProps: d,
21
21
  dialogProps: g,
22
22
  calendarProps: k
@@ -25,7 +25,7 @@ function K(a) {
25
25
  p && /* @__PURE__ */ e("span", { ...u, children: p }),
26
26
  f && /* @__PURE__ */ e("div", { ...v, children: f }),
27
27
  /* @__PURE__ */ e("div", { ...b, ref: l, children: /* @__PURE__ */ n(
28
- C,
28
+ T,
29
29
  {
30
30
  themeName: `${o}.button`,
31
31
  tokens: { ...r },
@@ -35,9 +35,9 @@ function K(a) {
35
35
  children: [
36
36
  h && /* @__PURE__ */ e("p", { className: F, children: h }),
37
37
  /* @__PURE__ */ n("div", { className: P, children: [
38
- /* @__PURE__ */ e(i, { ...c }),
39
- " -",
40
38
  /* @__PURE__ */ e(i, { ...m }),
39
+ " -",
40
+ /* @__PURE__ */ e(i, { ...c }),
41
41
  t.validationState === "invalid" && "❌"
42
42
  ] }),
43
43
  /* @__PURE__ */ e(w, { themeName: `${o}.icon`, tokens: { ...r }, icon: N ?? "ArrowDown" })
@@ -46,9 +46,9 @@ function K(a) {
46
46
  ) }),
47
47
  t.isOpen && /* @__PURE__ */ e(y, { triggerRef: l, state: t, placement: D, children: /* @__PURE__ */ n(j, { ...g, children: [
48
48
  /* @__PURE__ */ n("div", { className: P, children: [
49
- /* @__PURE__ */ e(i, { ...c }),
50
- " -",
51
49
  /* @__PURE__ */ e(i, { ...m }),
50
+ " -",
51
+ /* @__PURE__ */ e(i, { ...c }),
52
52
  t.validationState === "invalid" && "❌"
53
53
  ] }),
54
54
  /* @__PURE__ */ e(S, { ...k })
package/index26.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),g=require("./index114.js"),m=require("@react-aria/calendar"),P=require("@react-aria/i18n"),R=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),u=require("./index6.js"),h=require("./index14.js"),p=require("./index3.js"),w=require("./index115.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var d,l;const{locale:x}=P.useLocale(),o=R.useCalendarState({...t,locale:x,createCalendar:g.createCalendar}),q=T.useRef(null),{calendarProps:j,prevButtonProps:s,nextButtonProps:i,title:C}=m.useCalendar({...t},o),$=c(`${a}.container`,r),f=c(`${a}.header`,r),v=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...j,ref:q,className:$,children:[e.jsxs("div",{className:f,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:C}),e.jsxs("div",{className:v,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
2
+ "use strict";const e=require("react/jsx-runtime"),m=require("./index116.js"),P=require("@react-aria/calendar"),R=require("@react-aria/i18n"),p=require("@react-stately/calendar"),y=require("react"),c=require("./index64.js"),u=require("./index6.js"),h=require("./index14.js"),N=require("./index3.js"),T=require("./index117.js");function x({buttons:n,tokens:r,customTheme:w,themeName:a="calendar",...t}){var d,l;const{locale:q}=R.useLocale(),o=p.useCalendarState({...t,locale:q,createCalendar:m.createCalendar}),j=y.useRef(null),{calendarProps:C,prevButtonProps:s,nextButtonProps:i,title:$}=P.useCalendar({...t},o),f=c(`${a}.container`,r),v=c(`${a}.header`,r),g=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...C,ref:j,className:f,children:[e.jsxs("div",{className:v,children:[e.jsx(N.default,{as:"p",tokens:{size:"h6"},children:$}),e.jsxs("div",{className:g,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(T,{state:o})]})}x.displayName="Calendar";module.exports=x;
package/index26.mjs CHANGED
@@ -1,53 +1,60 @@
1
1
  "use client";
2
2
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
3
- import { createCalendar as T } from "./index114.mjs";
4
- import { useCalendar as y } from "@react-aria/calendar";
3
+ import { createCalendar as y } from "./index116.mjs";
4
+ import { useCalendar as T } from "@react-aria/calendar";
5
5
  import { useLocale as P } from "@react-aria/i18n";
6
6
  import { useCalendarState as B } from "@react-stately/calendar";
7
- import { useRef as j } from "react";
7
+ import { useRef as N } from "react";
8
8
  import c from "./index64.mjs";
9
- import f from "./index6.mjs";
10
- import p from "./index14.mjs";
11
- import w from "./index3.mjs";
12
- import A from "./index115.mjs";
13
- function J({ buttons: e, tokens: o, customTheme: L, themeName: a = "calendar", ...s }) {
9
+ import p from "./index6.mjs";
10
+ import f from "./index14.mjs";
11
+ import j from "./index3.mjs";
12
+ import w from "./index117.mjs";
13
+ function A({
14
+ buttons: e,
15
+ tokens: a,
16
+ customTheme: L,
17
+ themeName: o = "calendar",
18
+ ...s
19
+ }) {
14
20
  var l, m;
15
21
  const { locale: h } = P(), d = B({
16
22
  ...s,
17
23
  locale: h,
18
- createCalendar: T
19
- }), C = j(null), { calendarProps: u, prevButtonProps: n, nextButtonProps: i, title: $ } = y({ ...s }, d), v = c(`${a}.container`, o), g = c(`${a}.header`, o), x = c(`${a}.navigationButtonsContainer`, o);
24
+ createCalendar: y
25
+ }), C = N(null), { calendarProps: u, prevButtonProps: n, nextButtonProps: i, title: $ } = T({ ...s }, d), v = c(`${o}.container`, a), g = c(`${o}.header`, a), x = c(`${o}.navigationButtonsContainer`, a);
20
26
  return /* @__PURE__ */ t("div", { ...u, ref: C, className: v, children: [
21
27
  /* @__PURE__ */ t("div", { className: g, children: [
22
- /* @__PURE__ */ r(w, { as: "p", tokens: { size: "h6" }, children: $ }),
28
+ /* @__PURE__ */ r(j, { as: "p", tokens: { size: "h6" }, children: $ }),
23
29
  /* @__PURE__ */ t("div", { className: x, children: [
24
30
  /* @__PURE__ */ r(
25
- f,
31
+ p,
26
32
  {
27
- themeName: `${a}.navigationButtons`,
28
- tokens: { ...o },
33
+ themeName: `${o}.navigationButtons`,
34
+ tokens: { ...a },
29
35
  type: "button",
30
36
  ...n,
31
37
  handlePress: n == null ? void 0 : n.onPress,
32
- children: /* @__PURE__ */ r(p, { icon: ((l = e == null ? void 0 : e.buttonPrev) == null ? void 0 : l.icon) ?? "ArrowLeft" })
38
+ children: /* @__PURE__ */ r(f, { icon: ((l = e == null ? void 0 : e.buttonPrev) == null ? void 0 : l.icon) ?? "ArrowLeft" })
33
39
  }
34
40
  ),
35
41
  /* @__PURE__ */ r(
36
- f,
42
+ p,
37
43
  {
38
- themeName: `${a}.navigationButtons`,
39
- tokens: { ...o },
44
+ themeName: `${o}.navigationButtons`,
45
+ tokens: { ...a },
40
46
  type: "button",
41
47
  ...i,
42
48
  handlePress: i == null ? void 0 : i.onPress,
43
- children: /* @__PURE__ */ r(p, { icon: ((m = e == null ? void 0 : e.buttonNext) == null ? void 0 : m.icon) ?? "ArrowRight" })
49
+ children: /* @__PURE__ */ r(f, { icon: ((m = e == null ? void 0 : e.buttonNext) == null ? void 0 : m.icon) ?? "ArrowRight" })
44
50
  }
45
51
  )
46
52
  ] })
47
53
  ] }),
48
- /* @__PURE__ */ r(A, { state: d })
54
+ /* @__PURE__ */ r(w, { state: d })
49
55
  ] });
50
56
  }
57
+ A.displayName = "Calendar";
51
58
  export {
52
- J as default
59
+ A as default
53
60
  };
package/index27.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index116.js"),d=require("./index117.js"),u=require("./index118.js"),x=s=>{const{children:o,transitionComponent:a=l,state:n,themeName:r,tokens:t,...i}=s;return e.jsx(c.OverlayContainer,{children:e.jsx(a,{isVisible:n.isOpen,children:e.jsx(u,{themeName:r,tokens:t,state:n,...i,children:e.jsx(d,{themeName:r,tokens:t,...i,children:o})})})})};module.exports=x;
2
+ "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index118.js"),d=require("./index119.js"),u=require("./index120.js"),m=s=>{const{children:o,transitionComponent:a=l,state:r,themeName:n,tokens:t,...i}=s;return e.jsx(c.OverlayContainer,{children:e.jsx(a,{themeName:`${n}.transition`,isVisible:r.isOpen,children:e.jsx(u,{themeName:n,tokens:t,state:r,...i,children:e.jsx(d,{themeName:n,tokens:t,...i,children:o})})})})};module.exports=m;
package/index27.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
- import { OverlayContainer as l } from "react-aria";
4
- import s from "./index116.mjs";
5
- import d from "./index117.mjs";
6
- import p from "./index118.mjs";
7
- const O = (e) => {
3
+ import { OverlayContainer as s } from "react-aria";
4
+ import l from "./index118.mjs";
5
+ import d from "./index119.mjs";
6
+ import p from "./index120.mjs";
7
+ const O = (n) => {
8
8
  const {
9
9
  children: a,
10
- transitionComponent: m = s,
11
- state: r,
12
- themeName: t,
13
- tokens: i,
14
- ...n
15
- } = e;
16
- return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(m, { isVisible: r.isOpen, children: /* @__PURE__ */ o(p, { themeName: t, tokens: i, state: r, ...n, children: /* @__PURE__ */ o(d, { themeName: t, tokens: i, ...n, children: a }) }) }) });
10
+ transitionComponent: m = l,
11
+ state: t,
12
+ themeName: r,
13
+ tokens: e,
14
+ ...i
15
+ } = n;
16
+ return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(m, { themeName: `${r}.transition`, isVisible: t.isOpen, children: /* @__PURE__ */ o(p, { themeName: r, tokens: e, state: t, ...i, children: /* @__PURE__ */ o(d, { themeName: r, tokens: e, ...i, children: a }) }) }) });
17
17
  };
18
18
  export {
19
19
  O as default
package/index28.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),p=require("lodash"),v=require("react"),a=require("react-aria"),f=require("react-hook-form"),M=require("react-i18next"),T=require("./index68.js"),R=require("./index64.js"),y=require("./index3.js"),g=t=>{const{id:c,label:u,themeName:r="radio",tokens:d,customTheme:s,value:n,fieldRef:i}=t,o=T.useRadioGroupCtx(),l=v.useRef(null),{inputProps:q}=a.useRadio(t,o,l),h=(o==null?void 0:o.selectedValue)===n,{focusProps:j}=a.useFocusRing(),m={...d,selected:h},b=R(`${r}.label`,m,s),k=R(`${r}.radio`,m,s),F=R(`${r}.selectedMark`,m,s);return e.jsx("div",{children:e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{htmlFor:c,className:b,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{type:"radio",...a.mergeProps(j,q),ref:x=>{i==null||i(x),l.current=x}})}),e.jsx("div",{className:k,"aria-checked":h,role:"radio","aria-labelledby":c,children:e.jsx("div",{className:F})}),e.jsx(y.default,{themeName:`${r}.label`,children:u})]})})})},E=t=>{const{name:c,required:u}=t,{register:r,formState:d}=f.useFormContext(),s=f.get(d.errors,c),n=(s==null?void 0:s.message)??void 0,{t:i}=M.useTranslation("components"),{ref:o,...l}=r(c,{required:u?i("FORM.ERROR.REQUIRED")??"required":!1});return e.jsx(g,{fieldRef:o,...l,...t,isError:!p.isEmpty(n),errorMessage:n})};exports.ReactHookFormRadio=E;exports.default=g;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),v=require("lodash"),M=require("react"),a=require("react-aria"),f=require("react-hook-form"),T=require("./index68.js"),R=require("./index64.js"),p=require("./index72.js"),y=require("./index3.js"),g=t=>{const{id:i,label:u,themeName:r="radio",tokens:d,customTheme:s,value:n,fieldRef:c}=t,o=T.useRadioGroupCtx(),l=M.useRef(null),{inputProps:q}=a.useRadio(t,o,l),h=(o==null?void 0:o.selectedValue)===n,{focusProps:j}=a.useFocusRing(),m={...d,selected:h},b=R(`${r}.label`,m,s),k=R(`${r}.radio`,m,s),F=R(`${r}.selectedMark`,m,s);return e.jsx("div",{children:e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{htmlFor:i,className:b,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{type:"radio",...a.mergeProps(j,q),ref:x=>{c==null||c(x),l.current=x}})}),e.jsx("div",{className:k,"aria-checked":h,role:"radio","aria-labelledby":i,children:e.jsx("div",{className:F})}),e.jsx(y.default,{themeName:`${r}.label`,children:u})]})})})},E=t=>{const{name:i,required:u}=t,{register:r,formState:d}=f.useFormContext(),s=f.get(d.errors,i),n=(s==null?void 0:s.message)??void 0,{t:c}=p.useTranslation(),{ref:o,...l}=r(i,{required:u?c("FORM.ERROR.REQUIRED")??"required":!1});return e.jsx(g,{fieldRef:o,...l,...t,isError:!v.isEmpty(n),errorMessage:n})};exports.ReactHookFormRadio=E;exports.default=g;
package/index28.mjs CHANGED
@@ -4,12 +4,12 @@ import { isEmpty as x } from "lodash";
4
4
  import { useRef as y } from "react";
5
5
  import { useRadio as F, useFocusRing as v, FocusRing as C, VisuallyHidden as E, mergeProps as M } from "react-aria";
6
6
  import { useFormContext as N, get as $ } from "react-hook-form";
7
- import { useTranslation as q } from "react-i18next";
8
- import { useRadioGroupCtx as P } from "./index68.mjs";
7
+ import { useRadioGroupCtx as q } from "./index68.mjs";
9
8
  import u from "./index64.mjs";
9
+ import { useTranslation as P } from "./index72.mjs";
10
10
  import j from "./index3.mjs";
11
11
  const H = (t) => {
12
- const { id: i, label: l, themeName: o = "radio", tokens: m, customTheme: r, value: n, fieldRef: a } = t, s = P(), c = y(null), { inputProps: p } = F(t, s, c), f = (s == null ? void 0 : s.selectedValue) === n, { focusProps: R } = v(), d = { ...m, selected: f }, g = u(`${o}.label`, d, r), b = u(`${o}.radio`, d, r), T = u(`${o}.selectedMark`, d, r);
12
+ const { id: i, label: l, themeName: o = "radio", tokens: m, customTheme: r, value: c, fieldRef: a } = t, s = q(), n = y(null), { inputProps: p } = F(t, s, n), f = (s == null ? void 0 : s.selectedValue) === c, { focusProps: R } = v(), d = { ...m, selected: f }, g = u(`${o}.label`, d, r), b = u(`${o}.radio`, d, r), T = u(`${o}.selectedMark`, d, r);
13
13
  return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(C, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ k("label", { htmlFor: i, className: g, children: [
14
14
  /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
15
15
  "input",
@@ -17,7 +17,7 @@ const H = (t) => {
17
17
  type: "radio",
18
18
  ...M(R, p),
19
19
  ref: (h) => {
20
- a == null || a(h), c.current = h;
20
+ a == null || a(h), n.current = h;
21
21
  }
22
22
  }
23
23
  ) }),
@@ -25,10 +25,10 @@ const H = (t) => {
25
25
  /* @__PURE__ */ e(j, { themeName: `${o}.label`, children: l })
26
26
  ] }) }) });
27
27
  }, z = (t) => {
28
- const { name: i, required: l } = t, { register: o, formState: m } = N(), r = $(m.errors, i), n = (r == null ? void 0 : r.message) ?? void 0, { t: a } = q("components"), { ref: s, ...c } = o(i, {
28
+ const { name: i, required: l } = t, { register: o, formState: m } = N(), r = $(m.errors, i), c = (r == null ? void 0 : r.message) ?? void 0, { t: a } = P(), { ref: s, ...n } = o(i, {
29
29
  required: l ? a("FORM.ERROR.REQUIRED") ?? "required" : !1
30
30
  });
31
- return /* @__PURE__ */ e(H, { fieldRef: s, ...c, ...t, isError: !x(n), errorMessage: n });
31
+ return /* @__PURE__ */ e(H, { fieldRef: s, ...n, ...t, isError: !x(c), errorMessage: c });
32
32
  };
33
33
  export {
34
34
  z as ReactHookFormRadio,
package/index29.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),h=require("./index119.js"),x=require("react-aria"),m=require("./index68.js"),u=require("./index25.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
2
+ "use strict";const e=require("react/jsx-runtime"),h=require("./index121.js"),x=require("react-aria"),m=require("./index68.js"),u=require("./index25.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
package/index29.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as f, jsx as r } from "react/jsx-runtime";
3
- import { useRadioGroupState as h } from "./index119.mjs";
3
+ import { useRadioGroupState as h } from "./index121.mjs";
4
4
  import { useRadioGroup as G } from "react-aria";
5
5
  import { RadioGroupProvider as b } from "./index68.mjs";
6
6
  import d from "./index25.mjs";
package/index30.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const s=require("react/jsx-runtime"),t=require("react-spring"),a=({isVisible:e,children:n})=>t.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((r,i)=>i&&s.jsx(t.animated.div,{style:r,children:n}));module.exports=a;
2
+ "use strict";const l=require("react/jsx-runtime"),t=require("@react-spring/web"),u=require("./index64.js"),m=({isVisible:e,children:s,themeName:n,tokens:r,customTheme:i})=>{const a=u(n,r,i);return t.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((o,c)=>c&&l.jsx(t.animated.div,{className:a,style:o,children:s}))};module.exports=m;
package/index30.mjs CHANGED
@@ -1,11 +1,17 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { useTransition as n, animated as o } from "react-spring";
4
- const p = ({ isVisible: t, children: a }) => n(t, {
5
- from: { opacity: 0, translateX: "100%" },
6
- enter: { opacity: 1, translateX: "0%" },
7
- leave: { opacity: 0, translateX: "25%" }
8
- })((e, r) => r && /* @__PURE__ */ i(o.div, { style: e, children: a }));
2
+ import { jsx as m } from "react/jsx-runtime";
3
+ import { useTransition as l, animated as c } from "@react-spring/web";
4
+ import p from "./index64.mjs";
5
+ const h = ({ isVisible: t, children: e, themeName: a, tokens: o, customTheme: r }) => {
6
+ const n = p(a, o, r);
7
+ return l(t, {
8
+ from: { opacity: 0, translateX: "100%" },
9
+ enter: { opacity: 1, translateX: "0%" },
10
+ leave: { opacity: 0, translateX: "25%" }
11
+ })(
12
+ (i, s) => s && /* @__PURE__ */ m(c.div, { className: n, style: i, children: e })
13
+ );
14
+ };
9
15
  export {
10
- p as default
16
+ h as default
11
17
  };
package/index31.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),h=require("./index67.js"),l=require("./index66.js"),x=require("./index120.js"),i=require("./index25.js"),q=require("./index121.js"),j=r=>{const{id:c="main-menu",children:o,PanelTransition:u=x,themeName:n,tokens:m,customTheme:d,...a}=r,{overlayState:t}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return e.jsx(u,{isVisible:t==null?void 0:t.isOpen,children:e.jsxs(i.default,{themeName:`${n}.wrapper`,children:[s&&s(),e.jsx(i.default,{themeName:`${n}.container`,children:e.jsx(q,{id:c,themeName:`${n}.innerContent`,tokens:m,customTheme:d,...a,children:o})})]})})};module.exports=j;
2
+ "use strict";const t=require("react/jsx-runtime"),h=require("./index67.js"),l=require("./index66.js"),x=require("./index122.js"),r=require("./index25.js"),p=require("./index123.js"),q=c=>{const{id:o="main-menu",children:u,PanelTransition:m=x,themeName:e,tokens:n,customTheme:a,...d}=c,{overlayState:i}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return t.jsx(m,{themeName:`${e}.panelTransition`,tokens:n,isVisible:i==null?void 0:i.isOpen,children:t.jsxs(r.default,{themeName:`${e}.wrapper`,tokens:n,children:[s&&s(),t.jsx(r.default,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...d,children:u})})]})})};module.exports=q;
package/index31.mjs CHANGED
@@ -1,35 +1,35 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
3
- import { useMenu as l } from "./index67.mjs";
2
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
3
+ import { useMenu as d } from "./index67.mjs";
4
4
  import { useSidePanel as u } from "./index66.mjs";
5
- import f from "./index120.mjs";
6
- import m from "./index25.mjs";
7
- import x from "./index121.mjs";
8
- const O = (o) => {
5
+ import f from "./index122.mjs";
6
+ import i from "./index25.mjs";
7
+ import N from "./index123.mjs";
8
+ const M = (o) => {
9
9
  const {
10
- id: i = "main-menu",
11
- children: s,
10
+ id: s = "main-menu",
11
+ children: a,
12
12
  PanelTransition: c = f,
13
13
  themeName: e,
14
- tokens: a,
14
+ tokens: n,
15
15
  customTheme: p,
16
16
  ...h
17
- } = o, { overlayState: n } = u(), { closeBtn: r } = l();
18
- return /* @__PURE__ */ t(c, { isVisible: n == null ? void 0 : n.isOpen, children: /* @__PURE__ */ d(m, { themeName: `${e}.wrapper`, children: [
19
- r && r(),
20
- /* @__PURE__ */ t(m, { themeName: `${e}.container`, children: /* @__PURE__ */ t(
21
- x,
17
+ } = o, { overlayState: t } = u(), { closeBtn: m } = d();
18
+ return /* @__PURE__ */ r(c, { themeName: `${e}.panelTransition`, tokens: n, isVisible: t == null ? void 0 : t.isOpen, children: /* @__PURE__ */ l(i, { themeName: `${e}.wrapper`, tokens: n, children: [
19
+ m && m(),
20
+ /* @__PURE__ */ r(i, { themeName: `${e}.container`, tokens: n, children: /* @__PURE__ */ r(
21
+ N,
22
22
  {
23
- id: i,
23
+ id: s,
24
24
  themeName: `${e}.innerContent`,
25
- tokens: a,
25
+ tokens: n,
26
26
  customTheme: p,
27
27
  ...h,
28
- children: s
28
+ children: a
29
29
  }
30
30
  ) })
31
31
  ] }) });
32
32
  };
33
33
  export {
34
- O as default
34
+ M as default
35
35
  };
package/index32.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),x=require("./index67.js"),h=require("./index8.js"),q=require("./index121.js"),j=o=>{const{id:n="main-menu",children:c,TransitionAnimation:l,PanelTransition:u,themeName:t,tokens:s,customTheme:i,...d}=o,{closeBtn:a,tabState:e,defaultSelectedKey:m}=x.useMenu();return r.jsx(h,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:a,id:n,TransitionAnimation:l,PanelTransition:u,onCloseCallBack:()=>{e==null||e.setSelectedKey(m)},children:r.jsx(q,{id:n,themeName:t,tokens:s,customTheme:i,...d,children:c})})};module.exports=j;
2
+ "use strict";const r=require("react/jsx-runtime"),x=require("./index67.js"),h=require("./index8.js"),q=require("./index123.js"),j=o=>{const{id:n="main-menu",children:c,TransitionAnimation:l,PanelTransition:u,themeName:t,tokens:s,customTheme:i,...d}=o,{closeBtn:a,tabState:e,defaultSelectedKey:m}=x.useMenu();return r.jsx(h,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:a,id:n,TransitionAnimation:l,PanelTransition:u,onCloseCallBack:()=>{e==null||e.setSelectedKey(m)},children:r.jsx(q,{id:n,themeName:t,tokens:s,customTheme:i,...d,children:c})})};module.exports=j;
package/index32.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import { useMenu as f } from "./index67.mjs";
4
4
  import h from "./index8.mjs";
5
- import p from "./index121.mjs";
5
+ import p from "./index123.mjs";
6
6
  const T = (m) => {
7
7
  const {
8
8
  id: n = "main-menu",
package/index33.mjs CHANGED
@@ -1,65 +1,65 @@
1
1
  "use client";
2
- import { jsxs as x, jsx as p } from "react/jsx-runtime";
3
- import $, { useCallback as E, createElement as y, useRef as K } from "react";
4
- import { useMenu as L } from "./index67.mjs";
2
+ import { jsxs as x, jsx as k } from "react/jsx-runtime";
3
+ import $, { useCallback as C, createElement as y, useRef as E } from "react";
4
+ import { useMenu as K } from "./index67.mjs";
5
5
  import N from "./index25.mjs";
6
- import T, { Anchor as g } from "./index6.mjs";
7
- const C = (i) => {
8
- const { tabState: s, defaultSelectedKey: r } = L(), { setSelectedKey: t } = s, {
9
- id: o,
6
+ import L, { Anchor as T } from "./index6.mjs";
7
+ const g = (i) => {
8
+ const { tabState: o, defaultSelectedKey: r } = K(), { setSelectedKey: t } = o, {
9
+ id: s,
10
10
  path: n,
11
11
  label: c,
12
- themeName: h = "button",
12
+ themeName: m = "button",
13
13
  tokens: e,
14
- customTheme: m,
14
+ customTheme: h,
15
15
  target: b,
16
- children: f,
16
+ children: p,
17
17
  childItems: u,
18
18
  as: l,
19
19
  ...d
20
- } = i, a = n == null ? void 0 : n.substring(1), k = E(() => {
20
+ } = i, a = n == null ? void 0 : n.substring(1), f = C(() => {
21
21
  if (a != null) {
22
- if (s.selectedKey === a) {
22
+ if (o.selectedKey === a) {
23
23
  t(r);
24
24
  return;
25
25
  }
26
26
  t(a);
27
27
  }
28
- }, [a, s.selectedKey, t, r]);
28
+ }, [a, o.selectedKey, t, r]);
29
29
  return /* @__PURE__ */ y(
30
- T,
30
+ L,
31
31
  {
32
32
  ...d,
33
- themeName: `${h}`,
33
+ themeName: `${m}`,
34
34
  tokens: e,
35
- customTheme: m,
36
- key: `button-${o}`,
37
- handlePress: k,
35
+ customTheme: h,
36
+ key: `button-${s}`,
37
+ handlePress: f,
38
38
  as: l
39
39
  },
40
- $.isValidElement(f) ? f : c
40
+ $.isValidElement(p) ? p : c
41
41
  );
42
42
  }, B = (i) => {
43
43
  const {
44
- id: s,
44
+ id: o,
45
45
  target: r,
46
46
  path: t,
47
- label: o,
47
+ label: s,
48
48
  themeName: n = "anchor",
49
49
  customTheme: c,
50
- tokens: h,
50
+ tokens: m,
51
51
  nextLinkProps: e,
52
- children: m,
52
+ children: h,
53
53
  as: b,
54
- childItems: f,
54
+ childItems: p,
55
55
  ...u
56
- } = i, l = K(null);
57
- return t == null || o == null ? null : /* @__PURE__ */ y(
58
- g,
56
+ } = i, l = E(null);
57
+ return t == null || s == null ? null : /* @__PURE__ */ y(
58
+ T,
59
59
  {
60
60
  ...u,
61
61
  themeName: `${n}`,
62
- tokens: h,
62
+ tokens: m,
63
63
  customTheme: c,
64
64
  nextLinkProps: {
65
65
  scroll: !1,
@@ -67,46 +67,46 @@ const C = (i) => {
67
67
  ...e
68
68
  },
69
69
  ref: l,
70
- key: `link-${s}`,
70
+ key: `link-${o}`,
71
71
  target: r ?? "_self",
72
72
  as: b
73
73
  },
74
- $.isValidElement(m) ? m : o
74
+ $.isValidElement(h) ? h : s
75
75
  );
76
76
  }, R = (i) => {
77
77
  const {
78
- menuItems: s,
78
+ menuItems: o,
79
79
  children: r,
80
80
  themeName: t = "menuItem",
81
- tokens: o,
81
+ tokens: s,
82
82
  customTheme: n,
83
83
  menuLinkComponent: c,
84
- buttonLinkComponent: h
84
+ buttonLinkComponent: m
85
85
  } = i;
86
- return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens: o, customTheme: n, children: [
87
- /* @__PURE__ */ p(N, { themeName: `${t}.container`, tokens: o, customTheme: n, children: s == null ? void 0 : s.map((e) => {
88
- var k;
89
- const { id: m, path: b, label: f, as: u, ...l } = e ?? {}, d = { ...o, ...e.tokens };
86
+ return /* @__PURE__ */ x(N, { themeName: `${t}.wrapper`, tokens: s, customTheme: n, children: [
87
+ /* @__PURE__ */ k(N, { themeName: `${t}.container`, tokens: s, customTheme: n, children: o == null ? void 0 : o.map((e) => {
88
+ var f;
89
+ const { id: h, path: b, label: p, as: u, ...l } = e ?? {}, d = { ...s, ...e.tokens };
90
90
  if ((e == null ? void 0 : e.path) == null || e.id == null)
91
91
  return null;
92
- const a = (k = e.path) != null && k.startsWith("#") ? "button" : "a";
93
- return /* @__PURE__ */ p(
92
+ const a = (f = e.path) != null && f.startsWith("#") ? "button" : "a";
93
+ return /* @__PURE__ */ k(
94
94
  N,
95
95
  {
96
96
  themeName: `${t}.innerContent`,
97
97
  tokens: d,
98
98
  customTheme: n,
99
- children: a === "button" ? /* @__PURE__ */ p(
100
- C,
99
+ children: a === "button" ? /* @__PURE__ */ k(
100
+ g,
101
101
  {
102
102
  ...l,
103
103
  ...e,
104
104
  themeName: `${t}.button`,
105
105
  tokens: d,
106
106
  customTheme: n,
107
- as: u ?? h
107
+ as: u ?? m
108
108
  }
109
- ) : /* @__PURE__ */ p(
109
+ ) : /* @__PURE__ */ k(
110
110
  B,
111
111
  {
112
112
  ...l,
package/index34.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react"),s=require("./index67.js"),a=require("./index122.js"),c=n=>{var t;const{tabState:e}=s.useMenu();return r.createElement(a,{...n,key:(t=e.selectedItem)==null?void 0:t.key,state:e})};module.exports=c;
2
+ "use strict";const r=require("react"),s=require("./index67.js"),a=require("./index124.js"),c=n=>{var t;const{tabState:e}=s.useMenu();return r.createElement(a,{...n,key:(t=e.selectedItem)==null?void 0:t.key,state:e})};module.exports=c;
package/index34.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { createElement as a } from "react";
3
3
  import { useMenu as o } from "./index67.mjs";
4
- import m from "./index122.mjs";
4
+ import m from "./index124.mjs";
5
5
  const f = (r) => {
6
6
  var t;
7
7
  const { tabState: e } = o();