@okam/stack-ui 1.29.1 → 1.30.1

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 (395) 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 +5 -2
  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/index.d.ts +2 -1
  34. package/components/WysiwygBlock/interface.d.ts +2 -1
  35. package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
  36. package/components/fields/Checkbox/index.d.ts +2 -1
  37. package/components/fields/CheckboxGroup/index.d.ts +2 -1
  38. package/components/fields/CheckboxGroup/interface.d.ts +2 -1
  39. package/components/fields/DatePicker/index.d.ts +2 -1
  40. package/components/fields/DatePicker/interface.d.ts +2 -1
  41. package/components/fields/Radio/Radio.interface.d.ts +3 -2
  42. package/components/fields/Radio/index.d.ts +3 -2
  43. package/components/fields/RadioGroup/index.d.ts +2 -1
  44. package/components/fields/RadioGroup/interface.d.ts +2 -1
  45. package/components/fields/SearchField/index.d.ts +2 -1
  46. package/components/fields/SearchField/interface.d.ts +2 -1
  47. package/components/fields/Select/Select.d.ts +2 -1
  48. package/components/fields/Select/Select.interface.d.ts +3 -2
  49. package/components/fields/TextArea/index.d.ts +2 -1
  50. package/components/fields/TextInputField/interface.d.ts +3 -2
  51. package/index.d.ts +1 -0
  52. package/index.js +1 -1
  53. package/index.mjs +41 -38
  54. package/index10.js +1 -1
  55. package/index10.mjs +1 -0
  56. package/index100.js +1 -2
  57. package/index100.mjs +22 -21
  58. package/index101.js +2 -1
  59. package/index101.mjs +22 -63
  60. package/index102.js +1 -1
  61. package/index102.mjs +58 -24
  62. package/index103.js +1 -1
  63. package/index103.mjs +29 -52
  64. package/index104.js +1 -1
  65. package/index104.mjs +52 -4
  66. package/index105.js +1 -1
  67. package/index105.mjs +4 -11
  68. package/index106.js +1 -1
  69. package/index106.mjs +11 -14
  70. package/index107.js +1 -1
  71. package/index107.mjs +13 -22
  72. package/index108.js +1 -1
  73. package/index108.mjs +19 -19
  74. package/index109.js +1 -1
  75. package/index109.mjs +22 -38
  76. package/index11.js +1 -1
  77. package/index11.mjs +2 -2
  78. package/index110.js +1 -2
  79. package/index110.mjs +38 -12
  80. package/index111.js +2 -1
  81. package/index111.mjs +12 -7
  82. package/index112.js +1 -1
  83. package/index112.mjs +7 -21
  84. package/index113.js +1 -1
  85. package/index113.mjs +21 -38
  86. package/index114.js +1 -1
  87. package/index114.mjs +38 -49
  88. package/index115.js +1 -1
  89. package/index115.mjs +49 -40
  90. package/index116.js +1 -1
  91. package/index116.mjs +40 -13
  92. package/index117.js +1 -1
  93. package/index117.mjs +14 -26
  94. package/index118.js +1 -1
  95. package/index118.mjs +29 -18
  96. package/index119.js +1 -1
  97. package/index119.mjs +19 -8
  98. package/index120.js +1 -1
  99. package/index120.mjs +9 -30
  100. package/index121.js +1 -1
  101. package/index121.mjs +30 -15
  102. package/index122.js +1 -1
  103. package/index122.mjs +13 -15
  104. package/index123.js +1 -1
  105. package/index123.mjs +17 -21
  106. package/index124.js +1 -1
  107. package/index124.mjs +21 -11
  108. package/index125.js +1 -2
  109. package/index125.mjs +11 -22
  110. package/index126.js +2 -1
  111. package/index126.mjs +22 -12
  112. package/index127.js +1 -1
  113. package/index127.mjs +23 -23
  114. package/index128.js +1 -1
  115. package/index128.mjs +3 -3
  116. package/index13.js +1 -1
  117. package/index13.mjs +10 -9
  118. package/index130.mjs +6 -6
  119. package/index131.js +1 -1
  120. package/index131.mjs +12 -51
  121. package/index132.js +1 -1
  122. package/index132.mjs +49 -25
  123. package/index133.js +1 -1
  124. package/index133.mjs +25 -19
  125. package/index134.js +1 -1
  126. package/index134.mjs +17 -58
  127. package/index135.js +1 -1
  128. package/index135.mjs +194 -89
  129. package/index136.js +1 -1
  130. package/index136.mjs +63 -30
  131. package/index137.js +1 -1
  132. package/index137.mjs +136 -116
  133. package/index138.js +1 -1
  134. package/index138.mjs +118 -26
  135. package/index139.js +1 -1
  136. package/index139.mjs +212 -119
  137. package/index14.js +1 -1
  138. package/index14.mjs +3 -3
  139. package/index140.js +1 -1
  140. package/index140.mjs +187 -131
  141. package/index141.js +1 -1
  142. package/index141.mjs +69 -14
  143. package/index142.js +1 -1
  144. package/index142.mjs +248 -85
  145. package/index143.js +1 -1
  146. package/index143.mjs +93 -102
  147. package/index144.js +1 -1
  148. package/index144.mjs +174 -5
  149. package/index145.js +1 -1
  150. package/index145.mjs +84 -3
  151. package/index146.js +1 -1
  152. package/index146.mjs +56 -123
  153. package/index147.js +1 -1
  154. package/index147.mjs +125 -28
  155. package/index148.js +1 -1
  156. package/index148.mjs +113 -48
  157. package/index149.js +1 -1
  158. package/index149.mjs +119 -41
  159. package/index150.js +1 -1
  160. package/index150.mjs +71 -36
  161. package/index151.js +1 -1
  162. package/index151.mjs +105 -108
  163. package/index152.js +1 -1
  164. package/index152.mjs +52 -77
  165. package/index153.js +1 -1
  166. package/index153.mjs +93 -101
  167. package/index154.js +1 -1
  168. package/index154.mjs +71 -98
  169. package/index155.js +1 -1
  170. package/index155.mjs +50 -193
  171. package/index156.js +1 -1
  172. package/index156.mjs +91 -56
  173. package/index157.js +5 -1
  174. package/index157.mjs +75 -136
  175. package/index158.js +1 -1
  176. package/index158.mjs +1999 -107
  177. package/index159.js +1 -1
  178. package/index159.mjs +56 -214
  179. package/index16.js +1 -1
  180. package/index16.mjs +2 -2
  181. package/index160.js +1 -1
  182. package/index160.mjs +186 -188
  183. package/index161.js +1 -1
  184. package/index161.mjs +59 -67
  185. package/index162.js +1 -1
  186. package/index162.mjs +88 -252
  187. package/index163.js +1 -1
  188. package/index163.mjs +32 -96
  189. package/index164.js +1 -1
  190. package/index164.mjs +117 -170
  191. package/index165.js +1 -1
  192. package/index165.mjs +26 -83
  193. package/index166.js +1 -1
  194. package/index166.mjs +123 -57
  195. package/index167.js +1 -1
  196. package/index167.mjs +130 -122
  197. package/index168.js +1 -1
  198. package/index168.mjs +14 -116
  199. package/index169.js +1 -1
  200. package/index169.mjs +92 -119
  201. package/index170.js +1 -1
  202. package/index170.mjs +105 -71
  203. package/index171.js +1 -1
  204. package/index171.mjs +5 -110
  205. package/index172.js +1 -1
  206. package/index172.mjs +3 -52
  207. package/index173.js +1 -1
  208. package/index173.mjs +124 -92
  209. package/index174.js +1 -1
  210. package/index174.mjs +29 -70
  211. package/index175.js +1 -1
  212. package/index175.mjs +51 -56
  213. package/index176.js +1 -1
  214. package/index176.mjs +44 -99
  215. package/index177.js +1 -5
  216. package/index177.mjs +36 -79
  217. package/index178.js +1 -1
  218. package/index178.mjs +94 -1992
  219. package/index179.js +1 -1
  220. package/index179.mjs +78 -60
  221. package/index18.js +1 -1
  222. package/index18.mjs +7 -7
  223. package/index180.js +1 -1
  224. package/index180.mjs +95 -182
  225. package/index181.js +1 -1
  226. package/index181.mjs +98 -6
  227. package/index19.js +1 -1
  228. package/index19.mjs +2 -2
  229. package/index190.js +1 -1
  230. package/index190.mjs +5 -313
  231. package/index191.js +1 -1
  232. package/index191.mjs +327 -179
  233. package/index192.js +1 -1
  234. package/index192.mjs +183 -8
  235. package/index193.js +1 -1
  236. package/index193.mjs +7 -25
  237. package/index194.js +1 -1
  238. package/index194.mjs +26 -55
  239. package/index195.js +1 -1
  240. package/index195.mjs +55 -46
  241. package/index196.js +1 -1
  242. package/index196.mjs +45 -123
  243. package/index197.js +1 -1
  244. package/index197.mjs +110 -5
  245. package/index198.js +1 -1
  246. package/index198.mjs +31 -27
  247. package/index199.js +1 -1
  248. package/index199.mjs +6 -7
  249. package/index2.js +1 -1
  250. package/index2.mjs +51 -50
  251. package/index20.js +1 -1
  252. package/index20.mjs +1 -1
  253. package/index200.js +1 -1
  254. package/index200.mjs +28 -7
  255. package/index201.js +1 -1
  256. package/index201.mjs +7 -8
  257. package/index202.js +1 -1
  258. package/index202.mjs +6 -3
  259. package/index203.js +1 -1
  260. package/index203.mjs +7 -5
  261. package/index204.js +1 -1
  262. package/index204.mjs +4 -9
  263. package/index205.js +1 -0
  264. package/index205.mjs +8 -0
  265. package/index206.js +1 -0
  266. package/index206.mjs +12 -0
  267. package/index21.js +1 -1
  268. package/index21.mjs +8 -8
  269. package/index22.js +1 -1
  270. package/index22.mjs +2 -2
  271. package/index23.js +1 -1
  272. package/index23.mjs +40 -39
  273. package/index24.js +1 -1
  274. package/index24.mjs +45 -44
  275. package/index26.js +1 -1
  276. package/index26.mjs +28 -21
  277. package/index27.js +1 -1
  278. package/index27.mjs +12 -12
  279. package/index28.js +1 -1
  280. package/index28.mjs +6 -6
  281. package/index29.js +1 -1
  282. package/index29.mjs +1 -1
  283. package/index30.js +1 -1
  284. package/index30.mjs +14 -8
  285. package/index31.js +1 -1
  286. package/index31.mjs +18 -18
  287. package/index32.js +1 -1
  288. package/index32.mjs +1 -1
  289. package/index33.mjs +43 -43
  290. package/index34.js +1 -1
  291. package/index34.mjs +1 -1
  292. package/index35.js +1 -1
  293. package/index35.mjs +3 -3
  294. package/index36.mjs +10 -10
  295. package/index4.js +1 -1
  296. package/index4.mjs +3 -3
  297. package/index6.js +1 -1
  298. package/index6.mjs +47 -46
  299. package/index65.js +1 -1
  300. package/index65.mjs +1 -1
  301. package/index66.js +1 -1
  302. package/index66.mjs +2 -2
  303. package/index67.js +1 -1
  304. package/index67.mjs +1 -1
  305. package/index69.js +1 -1
  306. package/index69.mjs +1 -1
  307. package/index7.mjs +4 -4
  308. package/index70.js +1 -1
  309. package/index70.mjs +1 -1
  310. package/index71.js +1 -1
  311. package/index71.mjs +1 -1
  312. package/index72.js +2 -1
  313. package/index72.mjs +27 -2
  314. package/index73.js +1 -2
  315. package/index73.mjs +2 -9
  316. package/index74.js +1 -1
  317. package/index74.mjs +7 -6
  318. package/index75.js +1 -1
  319. package/index75.mjs +6 -6
  320. package/index76.js +1 -1
  321. package/index76.mjs +6 -6
  322. package/index77.js +2 -1
  323. package/index77.mjs +8 -25
  324. package/index78.js +1 -1
  325. package/index78.mjs +25 -2
  326. package/index79.js +1 -6
  327. package/index79.mjs +2 -94
  328. package/index8.js +1 -1
  329. package/index8.mjs +42 -23
  330. package/index80.js +6 -1
  331. package/index80.mjs +79 -54
  332. package/index81.js +1 -1
  333. package/index81.mjs +61 -33
  334. package/index82.js +1 -42
  335. package/index82.mjs +34 -67
  336. package/index83.js +42 -1
  337. package/index83.mjs +69 -154
  338. package/index84.js +1 -9
  339. package/index84.mjs +149 -47
  340. package/index85.js +9 -1
  341. package/index85.mjs +48 -36
  342. package/index86.js +1 -1
  343. package/index86.mjs +40 -8
  344. package/index87.js +1 -1
  345. package/index87.mjs +9 -31
  346. package/index88.js +1 -1
  347. package/index88.mjs +38 -6
  348. package/index89.js +1 -12
  349. package/index89.mjs +6 -40
  350. package/index9.js +1 -1
  351. package/index9.mjs +7 -7
  352. package/index90.js +12 -1
  353. package/index90.mjs +36 -25
  354. package/index91.js +1 -1
  355. package/index91.mjs +24 -8
  356. package/index92.js +1 -7
  357. package/index92.mjs +7 -13
  358. package/index93.js +6 -14
  359. package/index93.mjs +13 -65
  360. package/index94.js +15 -1
  361. package/index94.mjs +71 -7
  362. package/index95.js +1 -16
  363. package/index95.mjs +7 -25
  364. package/index96.js +16 -1
  365. package/index96.mjs +20 -37
  366. package/index97.js +1 -1
  367. package/index97.mjs +40 -43
  368. package/index98.js +1 -1
  369. package/index98.mjs +44 -47
  370. package/index99.js +1 -1
  371. package/index99.mjs +48 -17
  372. package/package.json +1 -1
  373. package/providers/Translation/index.d.ts +4 -0
  374. package/providers/Translation/interface.d.ts +16 -0
  375. package/theme/Accordion/index.d.ts +12 -12
  376. package/theme/Alerts/index.d.ts +22 -22
  377. package/theme/Box/index.d.ts +8 -8
  378. package/theme/Button/index.d.ts +2 -2
  379. package/theme/Calendar/index.d.ts +12 -12
  380. package/theme/Carousel/index.d.ts +11 -11
  381. package/theme/Checkbox/index.d.ts +8 -8
  382. package/theme/CheckboxGroup/index.d.ts +3 -3
  383. package/theme/DatePicker/index.d.ts +10 -9
  384. package/theme/Image/index.d.ts +1 -1
  385. package/theme/LightBox/index.d.ts +9 -9
  386. package/theme/Radio/index.d.ts +6 -6
  387. package/theme/RadioGroup/index.d.ts +3 -3
  388. package/theme/Search/index.d.ts +3 -3
  389. package/theme/ShareButton/index.d.ts +10 -10
  390. package/theme/SidePanel/index.d.ts +3 -3
  391. package/theme/TextArea/index.d.ts +2 -2
  392. package/theme/Typography/index.d.ts +2 -2
  393. package/transitions/ModalTransition.d.ts +3 -6
  394. package/transitions/RenderWithSlide.d.ts +3 -6
  395. package/transitions/SidePanelTransition.d.ts +3 -6
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 "./index117.mjs";
5
- import d from "./index118.mjs";
6
- import p from "./index119.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("./index120.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 "./index120.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("./index121.js"),i=require("./index25.js"),q=require("./index122.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 "./index121.mjs";
6
- import m from "./index25.mjs";
7
- import x from "./index122.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("./index122.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 "./index122.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("./index123.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 "./index123.mjs";
4
+ import m from "./index124.mjs";
5
5
  const f = (r) => {
6
6
  var t;
7
7
  const { tabState: e } = o();
package/index35.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index121.js"),x=require("./index11.js"),O=require("./index100.js"),y=require("./index124.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(x,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
2
+ "use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index122.js"),x=require("./index11.js"),O=require("./index101.js"),y=require("./index125.js"),B=require("./index36.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(x,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
package/index35.mjs CHANGED
@@ -2,10 +2,10 @@
2
2
  import { jsxs as g, jsx as n } from "react/jsx-runtime";
3
3
  import { useRef as h } from "react";
4
4
  import { useOverlayTriggerState as O } from "react-stately";
5
- import d from "./index121.mjs";
5
+ import d from "./index122.mjs";
6
6
  import C from "./index11.mjs";
7
- import y from "./index100.mjs";
8
- import B from "./index124.mjs";
7
+ import y from "./index101.mjs";
8
+ import B from "./index125.mjs";
9
9
  import A from "./index36.mjs";
10
10
  const I = (e) => {
11
11
  const {
package/index36.mjs CHANGED
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsxs as d, Fragment as x, jsx as s } from "react/jsx-runtime";
3
- import l from "react";
3
+ import p from "react";
4
4
  import { useSwiperController as N } from "./index71.mjs";
5
- import p from "./index25.mjs";
5
+ import l from "./index25.mjs";
6
6
  import I from "./index6.mjs";
7
7
  import $ from "./index14.mjs";
8
- const _ = (f) => {
8
+ const E = (f) => {
9
9
  var c;
10
- const { title: i, button: o, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
11
- return !i && !o && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
10
+ const { title: o, button: i, content: e, themeName: n = "alerts.item", tokens: m, icon: r, id: a } = f, { controller: t } = N(), h = ((c = t == null ? void 0 : t.slides) == null ? void 0 : c.findIndex((u) => u.id === a)) === (t == null ? void 0 : t.activeIndex);
11
+ return !o && !i && !e && !r ? null : /* @__PURE__ */ d(x, { children: [
12
12
  r && /* @__PURE__ */ s($, { icon: r, themeName: `${n}.icon`, tokens: m }),
13
- (i || o || e) && /* @__PURE__ */ d(p, { themeName: `${n}.container`, tokens: m, children: [
14
- i && /* @__PURE__ */ s(p, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: i }),
15
- o && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...o }),
16
- e && (l.isValidElement(e) ? l.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
13
+ (o || i || e) && /* @__PURE__ */ d(l, { themeName: `${n}.container`, tokens: m, children: [
14
+ o && /* @__PURE__ */ s(l, { as: "span", themeName: `${n}.title`, tokens: m, id: a, children: o }),
15
+ i && /* @__PURE__ */ s(I, { tabIndex: h ? 0 : -1, themeName: `${n}.button`, tokens: m, ...i }),
16
+ e && (p.isValidElement(e) ? p.cloneElement(e, { ...e.props, themeName: `${n}.content`, tokens: m }) : e)
17
17
  ] })
18
18
  ] });
19
19
  };
20
20
  export {
21
- _ as default
21
+ E as default
22
22
  };
package/index4.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),a=require("./index97.js"),m=require("react"),x=require("./index69.js"),A=require("./index25.js"),q=require("./index98.js"),h=require("./index77.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:d}=a.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(A.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...o.collection].map(i=>r.jsx(q,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
2
+ "use strict";const r=require("react/jsx-runtime"),a=require("./index98.js"),m=require("react"),x=require("./index69.js"),A=require("./index25.js"),q=require("./index99.js"),h=require("./index78.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:d}=a.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(A.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...d,children:[...o.collection].map(i=>r.jsx(q,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
package/index4.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { useAccordion as f } from "./index97.mjs";
3
+ import { useAccordion as f } from "./index98.mjs";
4
4
  import { useRef as s } from "react";
5
5
  import { AccordionContextProvider as p } from "./index69.mjs";
6
6
  import { BoxWithForwardRef as u } from "./index25.mjs";
7
- import l from "./index98.mjs";
8
- import A from "./index77.mjs";
7
+ import l from "./index99.mjs";
8
+ import A from "./index78.mjs";
9
9
  const N = (o) => {
10
10
  const { themeName: t = "accordion", tokens: c, customTheme: m, TransitionAnimation: a } = o, n = s(null), r = A(o), { accordionProps: d } = f(o, r, n);
11
11
  return /* @__PURE__ */ e(p, { state: r, TransitionAnimation: a, children: /* @__PURE__ */ e(
package/index6.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),c=require("react"),a=require("react-aria"),b=require("./index64.js"),R=c.forwardRef((e,t)=>{var x;const{as:n="a",handlePress:i,children:h,as:r,customTheme:l,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=a.useLink({...e,...o,href:e.href??((x=o==null?void 0:o.href)==null?void 0:x.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=b(f,m,l);return s.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...o,...d,className:j,children:h})})}),B=c.forwardRef((e,t)=>{const{as:n="button",handlePress:i,children:h,as:r,customTheme:l,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=a.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=b(f,m,l);return s.jsx(a.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:s.jsx(n,{ref:u,...g,...d,className:j,children:h})})}),P=c.forwardRef((e,t)=>{const{as:n}=e;return n==="a"?s.jsx(R,{ref:t,...e}):s.jsx(B,{ref:t,...e})}),C=e=>{const{as:t}=e,n=c.useRef(null);return t==="a"?s.jsx(R,{ref:n,...e}):s.jsx(B,{ref:n,...e})},T=c.memo(C);exports.Anchor=R;exports.ButtonWithForwardRef=P;exports.default=T;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),a=require("react"),c=require("react-aria"),P=require("./index64.js"),x=a.forwardRef((e,t)=>{var R;const{as:s="a",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",nextLinkProps:o,...d}=e,u=t,{linkProps:g}=c.useLink({...e,...o,href:e.href??((R=o==null?void 0:o.href)==null?void 0:R.toString()),elementType:r==null?void 0:r.toString(),onPress:i},t??u),j=P(f,m,h);return n.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...o,...d,className:j,children:l})})}),b=a.forwardRef((e,t)=>{const{as:s="button",handlePress:i,children:l,as:r,customTheme:h,tokens:m,themeName:f="button",isDisabled:o=!1,...d}=e,u=t,{buttonProps:g}=c.useButton({...e,isDisabled:o,elementType:r,onPress:i},t??u),j=P(f,m,h),{onPress:R,onFocusChange:N,...C}=d;return n.jsx(c.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:n.jsx(s,{ref:u,...g,...C,className:j,children:l})})}),F=a.forwardRef((e,t)=>{const{as:s}=e;return s==="a"?n.jsx(x,{ref:t,...e}):n.jsx(b,{ref:t,...e})}),B=e=>{const{as:t}=e,s=a.useRef(null);return t==="a"?n.jsx(x,{ref:s,...e}):n.jsx(b,{ref:s,...e})};B.displayName="Button";exports.Anchor=x;exports.ButtonWithForwardRef=F;exports.default=B;
package/index6.mjs CHANGED
@@ -1,60 +1,61 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import u, { useRef as T } from "react";
4
- import { useLink as N, FocusRing as C, useButton as k } from "react-aria";
5
- import b from "./index64.mjs";
6
- const B = u.forwardRef(
7
- (t, e) => {
8
- var R;
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import C, { useRef as T } from "react";
4
+ import { useLink as k, FocusRing as P, useButton as w } from "react-aria";
5
+ import R from "./index64.mjs";
6
+ const b = C.forwardRef(
7
+ (e, t) => {
8
+ var g;
9
9
  const {
10
10
  as: n = "a",
11
- handlePress: m,
12
- children: a,
11
+ handlePress: a,
12
+ children: u,
13
13
  as: r,
14
- customTheme: i,
15
- tokens: f,
16
- themeName: h = "button",
17
- nextLinkProps: s,
18
- ...l
19
- } = t, c = e, { linkProps: d } = N(
14
+ customTheme: m,
15
+ tokens: i,
16
+ themeName: f = "button",
17
+ nextLinkProps: o,
18
+ ...h
19
+ } = e, c = t, { linkProps: l } = k(
20
20
  {
21
- ...t,
22
- ...s,
23
- href: t.href ?? ((R = s == null ? void 0 : s.href) == null ? void 0 : R.toString()),
21
+ ...e,
22
+ ...o,
23
+ href: e.href ?? ((g = o == null ? void 0 : o.href) == null ? void 0 : g.toString()),
24
24
  elementType: r == null ? void 0 : r.toString(),
25
- onPress: m
25
+ onPress: a
26
26
  },
27
- e ?? c
28
- ), g = b(h, f, i);
29
- return /* @__PURE__ */ o(C, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(n, { ref: c, ...d, ...s, ...l, className: g, children: a }) });
27
+ t ?? c
28
+ ), d = R(f, i, m);
29
+ return /* @__PURE__ */ s(P, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...o, ...h, className: d, children: u }) });
30
30
  }
31
- ), P = u.forwardRef((t, e) => {
31
+ ), B = C.forwardRef((e, t) => {
32
32
  const {
33
33
  as: n = "button",
34
- handlePress: m,
35
- children: a,
34
+ handlePress: a,
35
+ children: u,
36
36
  as: r,
37
- customTheme: i,
38
- tokens: f,
39
- themeName: h = "button",
40
- isDisabled: s = !1,
41
- ...l
42
- } = t, c = e, { buttonProps: d } = k(
43
- { ...t, isDisabled: s, elementType: r, onPress: m },
44
- e ?? c
45
- ), g = b(h, f, i);
46
- return /* @__PURE__ */ o(C, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(n, { ref: c, ...d, ...l, className: g, children: a }) });
47
- }), _ = u.forwardRef(
48
- (t, e) => {
49
- const { as: n } = t;
50
- return n === "a" ? /* @__PURE__ */ o(B, { ref: e, ...t }) : /* @__PURE__ */ o(P, { ref: e, ...t });
37
+ customTheme: m,
38
+ tokens: i,
39
+ themeName: f = "button",
40
+ isDisabled: o = !1,
41
+ ...h
42
+ } = e, c = t, { buttonProps: l } = w(
43
+ { ...e, isDisabled: o, elementType: r, onPress: a },
44
+ t ?? c
45
+ ), d = R(f, i, m), { onPress: g, onFocusChange: F, ...N } = h;
46
+ return /* @__PURE__ */ s(P, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: c, ...l, ...N, className: d, children: u }) });
47
+ }), A = C.forwardRef(
48
+ (e, t) => {
49
+ const { as: n } = e;
50
+ return n === "a" ? /* @__PURE__ */ s(b, { ref: t, ...e }) : /* @__PURE__ */ s(B, { ref: t, ...e });
51
51
  }
52
- ), w = (t) => {
53
- const { as: e } = t, n = T(null);
54
- return e === "a" ? /* @__PURE__ */ o(B, { ref: n, ...t }) : /* @__PURE__ */ o(P, { ref: n, ...t });
55
- }, j = u.memo(w);
52
+ ), y = (e) => {
53
+ const { as: t } = e, n = T(null);
54
+ return t === "a" ? /* @__PURE__ */ s(b, { ref: n, ...e }) : /* @__PURE__ */ s(B, { ref: n, ...e });
55
+ };
56
+ y.displayName = "Button";
56
57
  export {
57
- B as Anchor,
58
- _ as ButtonWithForwardRef,
59
- j as default
58
+ b as Anchor,
59
+ A as ButtonWithForwardRef,
60
+ y as default
60
61
  };
package/index65.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index125.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:r,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("./index126.js"),e=require("react"),[u,l]=o.default();function c({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(l,{value:r,children:s})}exports.IsClientContextProvider=c;exports.useIsClient=u;
package/index65.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
- import i from "./index125.mjs";
3
+ import i from "./index126.mjs";
4
4
  import { useState as n, useEffect as u, useMemo as f } from "react";
5
5
  const [a, l] = i();
6
6
  function p({ children: t }) {
package/index66.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index125.js"),r=require("react"),v=require("react-stately"),y=require("./index100.js"),[x,R]=g.default();function q(i){const{children:l,defaultSelectedKey:s,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=r.useRef(null),P=r.useRef(null),n=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:u}=y({type:c},n),f=r.useMemo(()=>({overlayProps:u,defaultSelectedKey:s,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:P,openButtonProps:o,openButtonRef:d}}),[n,s,o,u]);return S.jsx(R,{value:f,children:l})}exports.SidePanelContextProvider=q;exports.useSidePanel=x;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),g=require("./index126.js"),r=require("react"),v=require("react-stately"),y=require("./index101.js"),[x,R]=g.default();function q(i){const{children:l,defaultSelectedKey:s,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:a=!1,type:c="dialog"}=i,d=r.useRef(null),P=r.useRef(null),n=v.useOverlayTriggerState({defaultOpen:a,onOpenChange(p){if(!p){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:u}=y({type:c},n),f=r.useMemo(()=>({overlayProps:u,defaultSelectedKey:s,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:P,openButtonProps:o,openButtonRef:d}}),[n,s,o,u]);return S.jsx(R,{value:f,children:l})}exports.SidePanelContextProvider=q;exports.useSidePanel=x;