@okam/stack-ui 1.27.0 → 1.27.2

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 (391) hide show
  1. package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
  2. package/index.d.ts +2 -0
  3. package/index.js +1 -1
  4. package/index.mjs +158 -151
  5. package/index10.js +1 -1
  6. package/index10.mjs +2 -2
  7. package/index100.js +1 -2
  8. package/index100.mjs +17 -12
  9. package/index101.js +2 -1
  10. package/index101.mjs +22 -45
  11. package/index102.js +1 -1
  12. package/index102.mjs +1 -1
  13. package/index103.js +1 -1
  14. package/index103.mjs +1 -1
  15. package/index107.js +1 -1
  16. package/index107.mjs +1 -1
  17. package/index108.js +1 -1
  18. package/index108.mjs +1 -1
  19. package/index11.js +1 -1
  20. package/index11.mjs +3 -3
  21. package/index112.js +1 -1
  22. package/index112.mjs +1 -1
  23. package/index113.js +1 -1
  24. package/index113.mjs +1 -1
  25. package/index114.js +1 -1
  26. package/index114.mjs +2 -2
  27. package/index116.js +1 -1
  28. package/index116.mjs +3 -3
  29. package/index118.js +1 -1
  30. package/index118.mjs +1 -1
  31. package/index119.js +1 -1
  32. package/index119.mjs +1 -1
  33. package/index12.js +1 -1
  34. package/index12.mjs +44 -15
  35. package/index121.js +1 -1
  36. package/index121.mjs +1 -1
  37. package/index122.js +1 -1
  38. package/index122.mjs +3 -3
  39. package/index124.js +1 -1
  40. package/index124.mjs +2 -2
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index126.js +1 -1
  44. package/index126.mjs +1 -1
  45. package/index128.js +1 -1
  46. package/index128.mjs +1 -1
  47. package/index13.js +1 -2
  48. package/index13.mjs +17 -20
  49. package/index131.js +1 -1
  50. package/index131.mjs +1 -1
  51. package/index132.js +1 -1
  52. package/index132.mjs +1 -1
  53. package/index133.js +1 -1
  54. package/index133.mjs +19 -49
  55. package/index134.js +1 -1
  56. package/index134.mjs +49 -25
  57. package/index135.js +1 -1
  58. package/index135.mjs +25 -19
  59. package/index137.js +1 -1
  60. package/index137.mjs +14 -14
  61. package/index138.js +1 -1
  62. package/index138.mjs +1 -1
  63. package/index139.js +1 -1
  64. package/index139.mjs +3 -3
  65. package/index14.js +1 -1
  66. package/index14.mjs +18 -17
  67. package/index140.js +1 -1
  68. package/index140.mjs +2 -2
  69. package/index143.js +1 -1
  70. package/index143.mjs +1 -1
  71. package/index147.js +1 -1
  72. package/index147.mjs +1 -1
  73. package/index15.js +1 -1
  74. package/index15.mjs +16 -83
  75. package/index159.js +11 -1
  76. package/index159.mjs +116 -2
  77. package/index16.js +1 -1
  78. package/index16.mjs +81 -28
  79. package/index160.js +1 -1
  80. package/index160.mjs +2 -6
  81. package/index161.js +1 -1
  82. package/index161.mjs +5 -64
  83. package/index162.js +1 -1
  84. package/index162.mjs +54 -16
  85. package/index163.js +1 -1
  86. package/index163.mjs +21 -49
  87. package/index164.js +1 -1
  88. package/index164.mjs +42 -143
  89. package/index165.js +1 -1
  90. package/index165.mjs +151 -18
  91. package/index166.js +1 -1
  92. package/index166.mjs +17 -14
  93. package/index167.js +1 -1
  94. package/index167.mjs +14 -34
  95. package/index168.js +1 -1
  96. package/index168.mjs +36 -79
  97. package/index169.js +1 -1
  98. package/index169.mjs +75 -23
  99. package/index17.js +1 -1
  100. package/index17.mjs +30 -32
  101. package/index170.js +1 -1
  102. package/index170.mjs +22 -13
  103. package/index171.js +1 -1
  104. package/index171.mjs +16 -48
  105. package/index172.js +1 -1
  106. package/index172.mjs +54 -2
  107. package/index173.js +1 -11
  108. package/index173.mjs +2 -116
  109. package/index174.js +1 -1
  110. package/index174.mjs +2 -2
  111. package/index175.js +1 -1
  112. package/index175.mjs +2 -2
  113. package/index176.js +1 -1
  114. package/index176.mjs +2 -2
  115. package/index177.js +1 -1
  116. package/index177.mjs +2 -2
  117. package/index178.js +1 -1
  118. package/index178.mjs +3 -3
  119. package/index179.js +1 -1
  120. package/index179.mjs +4 -4
  121. package/index18.js +1 -1
  122. package/index18.mjs +33 -31
  123. package/index180.js +1 -1
  124. package/index180.mjs +1 -1
  125. package/index181.js +1 -1
  126. package/index181.mjs +2 -2
  127. package/index182.js +1 -1
  128. package/index182.mjs +1 -1
  129. package/index183.js +1 -1
  130. package/index183.mjs +2 -2
  131. package/index184.js +1 -1
  132. package/index184.mjs +1 -1
  133. package/index185.js +1 -1
  134. package/index185.mjs +2 -2
  135. package/index186.js +1 -1
  136. package/index186.mjs +1 -1
  137. package/index187.js +1 -1
  138. package/index187.mjs +2 -2
  139. package/index188.js +1 -1
  140. package/index188.mjs +1 -1
  141. package/index19.js +1 -1
  142. package/index19.mjs +30 -33
  143. package/index191.js +1 -1
  144. package/index191.mjs +4 -4
  145. package/index192.js +1 -1
  146. package/index192.mjs +2 -2
  147. package/index193.js +1 -1
  148. package/index193.mjs +5 -5
  149. package/index194.js +1 -1
  150. package/index194.mjs +4 -4
  151. package/index195.js +1 -1
  152. package/index195.mjs +5 -5
  153. package/index196.js +1 -1
  154. package/index196.mjs +5 -5
  155. package/index197.js +1 -1
  156. package/index197.mjs +2 -2
  157. package/index2.js +1 -1
  158. package/index2.mjs +20 -20
  159. package/index20.js +1 -1
  160. package/index20.mjs +32 -67
  161. package/index21.js +1 -1
  162. package/index21.mjs +61 -58
  163. package/index22.js +1 -1
  164. package/index22.mjs +66 -52
  165. package/index224.js +1 -1
  166. package/index224.mjs +123 -306
  167. package/index225.js +1 -1
  168. package/index225.mjs +173 -186
  169. package/index226.js +1 -1
  170. package/index226.mjs +9 -8
  171. package/index227.js +1 -1
  172. package/index227.mjs +3 -26
  173. package/index228.js +1 -1
  174. package/index228.mjs +34 -53
  175. package/index229.js +1 -1
  176. package/index229.mjs +5 -46
  177. package/index23.js +1 -1
  178. package/index23.mjs +37 -41
  179. package/index230.js +1 -1
  180. package/index230.mjs +28 -123
  181. package/index231.js +1 -1
  182. package/index231.mjs +6 -130
  183. package/index232.js +1 -1
  184. package/index232.mjs +293 -159
  185. package/index233.js +1 -1
  186. package/index233.mjs +192 -9
  187. package/index234.js +1 -1
  188. package/index234.mjs +8 -3
  189. package/index235.js +1 -1
  190. package/index235.mjs +25 -35
  191. package/index236.js +1 -1
  192. package/index236.mjs +55 -5
  193. package/index237.js +1 -1
  194. package/index237.mjs +44 -27
  195. package/index238.js +1 -1
  196. package/index238.mjs +124 -6
  197. package/index24.js +1 -1
  198. package/index24.mjs +57 -20
  199. package/index242.js +1 -1
  200. package/index242.mjs +1 -1
  201. package/index243.js +1 -1
  202. package/index243.mjs +1 -1
  203. package/index245.js +1 -1
  204. package/index245.mjs +1 -1
  205. package/index246.js +1 -1
  206. package/index246.mjs +2 -2
  207. package/index248.js +1 -1
  208. package/index248.mjs +2 -2
  209. package/index249.js +1 -1
  210. package/index249.mjs +3 -3
  211. package/index25.js +1 -1
  212. package/index25.mjs +20 -50
  213. package/index251.js +1 -1
  214. package/index251.mjs +1 -1
  215. package/index26.js +1 -1
  216. package/index26.mjs +50 -17
  217. package/index260.js +1 -1
  218. package/index260.mjs +6 -2
  219. package/index261.mjs +2 -2
  220. package/index262.mjs +2 -2
  221. package/index263.mjs +2 -2
  222. package/index264.js +1 -1
  223. package/index264.mjs +2 -72
  224. package/index265.js +1 -1
  225. package/index265.mjs +72 -2
  226. package/index266.mjs +2 -2
  227. package/index267.js +1 -1
  228. package/index267.mjs +2 -19
  229. package/index268.js +1 -1
  230. package/index268.mjs +19 -2
  231. package/index269.js +1 -1
  232. package/index269.mjs +2 -6
  233. package/index27.js +1 -1
  234. package/index27.mjs +16 -32
  235. package/index28.js +1 -1
  236. package/index28.mjs +32 -23
  237. package/index29.js +1 -1
  238. package/index29.mjs +24 -8
  239. package/index3.js +1 -1
  240. package/index3.mjs +1 -1
  241. package/index30.js +1 -1
  242. package/index30.mjs +8 -32
  243. package/index31.js +1 -1
  244. package/index31.mjs +29 -30
  245. package/index32.js +1 -1
  246. package/index32.mjs +28 -98
  247. package/index33.js +1 -1
  248. package/index33.mjs +102 -8
  249. package/index34.js +1 -1
  250. package/index34.mjs +8 -46
  251. package/index35.js +1 -1
  252. package/index35.mjs +46 -18
  253. package/index36.js +2 -1
  254. package/index36.mjs +19 -6
  255. package/index37.js +1 -1
  256. package/index37.mjs +6 -46
  257. package/index38.js +1 -1
  258. package/index38.mjs +45 -23
  259. package/index39.js +2 -1
  260. package/index39.mjs +26 -5
  261. package/index4.js +1 -1
  262. package/index4.mjs +5 -5
  263. package/index40.js +1 -1
  264. package/index40.mjs +4 -7
  265. package/index41.js +1 -1
  266. package/index41.mjs +5 -5
  267. package/index42.js +1 -1
  268. package/index42.mjs +8 -5
  269. package/index43.js +1 -1
  270. package/index43.mjs +2 -2
  271. package/index44.js +1 -1
  272. package/index44.mjs +1 -1
  273. package/index45.js +1 -1
  274. package/index45.mjs +4 -4
  275. package/index46.js +1 -1
  276. package/index46.mjs +3 -9
  277. package/index47.js +1 -1
  278. package/index47.mjs +7 -9
  279. package/index48.js +1 -1
  280. package/index48.mjs +9 -9
  281. package/index49.js +1 -1
  282. package/index49.mjs +13 -46
  283. package/index50.js +1 -1
  284. package/index50.mjs +46 -8
  285. package/index51.js +1 -1
  286. package/index51.mjs +6 -69
  287. package/index52.js +1 -1
  288. package/index52.mjs +71 -8
  289. package/index53.js +1 -1
  290. package/index53.mjs +7 -12
  291. package/index54.js +1 -1
  292. package/index54.mjs +12 -9
  293. package/index55.js +1 -1
  294. package/index55.mjs +10 -17
  295. package/index56.js +1 -1
  296. package/index56.mjs +17 -13
  297. package/index57.js +1 -1
  298. package/index57.mjs +5 -5
  299. package/index58.js +1 -1
  300. package/index58.mjs +6 -6
  301. package/index59.js +1 -1
  302. package/index59.mjs +10 -8
  303. package/index6.js +1 -1
  304. package/index6.mjs +1 -1
  305. package/index60.js +1 -1
  306. package/index60.mjs +5 -5
  307. package/index61.js +1 -1
  308. package/index61.mjs +6 -8
  309. package/index62.js +1 -1
  310. package/index62.mjs +13 -14
  311. package/index63.js +1 -2
  312. package/index63.mjs +14 -23
  313. package/index64.js +1 -1
  314. package/index64.mjs +21 -15
  315. package/index65.js +1 -1
  316. package/index65.mjs +16 -14
  317. package/index66.js +1 -1
  318. package/index66.mjs +13 -40
  319. package/index67.js +1 -1
  320. package/index67.mjs +39 -36
  321. package/index68.js +1 -1
  322. package/index68.mjs +37 -11
  323. package/index69.js +1 -1
  324. package/index69.mjs +11 -10
  325. package/index7.js +1 -1
  326. package/index7.mjs +2 -2
  327. package/index70.js +1 -1
  328. package/index70.mjs +10 -13
  329. package/index71.js +2 -1
  330. package/index71.mjs +15 -2
  331. package/index72.js +1 -1
  332. package/index72.mjs +11 -8
  333. package/index73.js +1 -2
  334. package/index73.mjs +1 -7
  335. package/index74.js +1 -1
  336. package/index74.mjs +7 -6
  337. package/index75.js +1 -1
  338. package/index75.mjs +6 -6
  339. package/index76.js +2 -1
  340. package/index76.mjs +8 -25
  341. package/index77.js +2 -1
  342. package/index77.mjs +8 -2
  343. package/index78.js +1 -6
  344. package/index78.mjs +25 -94
  345. package/index79.js +1 -1
  346. package/index79.mjs +2 -69
  347. package/index8.js +1 -1
  348. package/index8.mjs +5 -5
  349. package/index80.js +6 -1
  350. package/index80.mjs +82 -29
  351. package/index81.js +1 -42
  352. package/index81.mjs +64 -65
  353. package/index82.js +1 -1
  354. package/index82.mjs +32 -150
  355. package/index83.js +42 -9
  356. package/index83.mjs +65 -52
  357. package/index84.js +1 -1
  358. package/index84.mjs +145 -31
  359. package/index85.js +9 -1
  360. package/index85.mjs +54 -10
  361. package/index86.js +1 -1
  362. package/index86.mjs +38 -28
  363. package/index87.js +1 -1
  364. package/index87.mjs +12 -5
  365. package/index88.js +1 -12
  366. package/index88.mjs +31 -36
  367. package/index89.js +1 -1
  368. package/index89.mjs +6 -29
  369. package/index9.js +1 -1
  370. package/index9.mjs +4 -4
  371. package/index90.js +12 -1
  372. package/index90.mjs +39 -12
  373. package/index91.js +1 -7
  374. package/index91.mjs +23 -13
  375. package/index92.js +1 -15
  376. package/index92.mjs +9 -67
  377. package/index93.js +7 -1
  378. package/index93.mjs +17 -5
  379. package/index94.js +13 -14
  380. package/index94.mjs +63 -17
  381. package/index95.js +1 -1
  382. package/index95.mjs +7 -42
  383. package/index96.js +16 -1
  384. package/index96.mjs +24 -44
  385. package/index97.js +1 -1
  386. package/index97.mjs +42 -48
  387. package/index98.js +1 -1
  388. package/index98.mjs +45 -17
  389. package/index99.js +1 -2
  390. package/index99.mjs +47 -21
  391. package/package.json +1 -1
package/index268.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index278.js");var n;function i(){return n||(n=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return c}});const u=/[|\\{}()[\]^$+*?.-]/,p=/[|\\{}()[\]^$+*?.-]/g;function c(e){return u.test(e)?e.replace(p,"\\$&"):e}}(r.__exports)),r.__exports}exports.__require=i;
package/index268.mjs CHANGED
@@ -1,4 +1,21 @@
1
- var a = {};
1
+ import { __exports as r } from "./index278.mjs";
2
+ var n;
3
+ function i() {
4
+ return n ? r : (n = 1, function(t) {
5
+ Object.defineProperty(t, "__esModule", {
6
+ value: !0
7
+ }), Object.defineProperty(t, "escapeStringRegexp", {
8
+ enumerable: !0,
9
+ get: function() {
10
+ return c;
11
+ }
12
+ });
13
+ const p = /[|\\{}()[\]^$+*?.-]/, u = /[|\\{}()[\]^$+*?.-]/g;
14
+ function c(e) {
15
+ return p.test(e) ? e.replace(u, "\\$&") : e;
16
+ }
17
+ }(r), r);
18
+ }
2
19
  export {
3
- a as __exports
20
+ i as __require
4
21
  };
package/index269.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=new WeakMap;function f(a,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${t.get(a)}-${r}-${e}`}exports.generateId=f;exports.tabsIds=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index269.mjs CHANGED
@@ -1,8 +1,4 @@
1
- const f = /* @__PURE__ */ new WeakMap();
2
- function $(t, e, a) {
3
- return typeof e == "string" && (e = e.replace(/\s+/g, "")), `${f.get(t)}-${a}-${e}`;
4
- }
1
+ var a = {};
5
2
  export {
6
- $ as generateId,
7
- f as tabsIds
3
+ a as __exports
8
4
  };
package/index27.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"),q=require("react-hook-form"),M=require("react-i18next"),T=require("./index68.js"),R=require("./index64.js"),$=require("./index3.js"),x=t=>{const{id:c,label:u,themeName:s="radio",tokens:d,customTheme:r,value:n,fieldRef:i}=t,o=T.useRadioGroupCtx(),l=v.useRef(null),{inputProps:g}=a.useRadio(t,o,l),h=(o==null?void 0:o.selectedValue)===n,{focusProps:b}=a.useFocusRing(),m={...d,selected:h},j=R(`${s}.label`,m,r),k=R(`${s}.radio`,m,r),F=R(`${s}.selectedMark`,m,r);return e.jsx("div",{children:e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{htmlFor:c,className:j,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{type:"radio",...a.mergeProps(b,g),ref:f=>{i==null||i(f),l.current=f}})}),e.jsx("div",{className:k,"aria-checked":h,role:"radio","aria-labelledby":c,children:e.jsx("div",{className:F})}),e.jsx($.default,{themeName:`${s}.label`,children:u})]})})})},y=t=>{const{name:c,required:u}=t,{register:s,formState:d}=q.useFormContext(),r=q.get(d.errors,c),n=(r==null?void 0:r.message)??void 0,{t:i}=M.useTranslation("components"),{ref:o,...l}=s(c,{required:u?i("FORM.ERROR.REQUIRED")??"required":!1});return e.jsx(x,{fieldRef:o,...l,...t,isError:!p.isEmpty(n),errorMessage:n})};exports.ReactHookFormRadio=y;exports.default=x;
2
+ "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index117.js"),d=require("./index118.js"),u=require("./index119.js"),q=s=>{const{children:o,transitionComponent:a=l,state:r,themeName:n,tokens:i,...t}=s;return e.jsx(c.OverlayContainer,{children:e.jsx(a,{isVisible:r.isOpen,children:e.jsx(u,{themeName:n,tokens:i,state:r,...t,children:e.jsx(d,{themeName:n,tokens:i,...t,children:o})})})})};module.exports=q;
package/index27.mjs CHANGED
@@ -1,36 +1,20 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as k } from "react/jsx-runtime";
3
- import { isEmpty as x } from "lodash";
4
- import { useRef as y } from "react";
5
- import { useRadio as F, useFocusRing as v, FocusRing as C, VisuallyHidden as E, mergeProps as M } from "react-aria";
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";
9
- import u from "./index64.mjs";
10
- import j from "./index3.mjs";
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);
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
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
15
- "input",
16
- {
17
- type: "radio",
18
- ...M(R, p),
19
- ref: (h) => {
20
- a == null || a(h), c.current = h;
21
- }
22
- }
23
- ) }),
24
- /* @__PURE__ */ e("div", { className: b, "aria-checked": f, role: "radio", "aria-labelledby": i, children: /* @__PURE__ */ e("div", { className: T }) }),
25
- /* @__PURE__ */ e(j, { themeName: `${o}.label`, children: l })
26
- ] }) }) });
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, {
29
- required: l ? a("FORM.ERROR.REQUIRED") ?? "required" : !1
30
- });
31
- return /* @__PURE__ */ e(H, { fieldRef: s, ...c, ...t, isError: !x(n), errorMessage: n });
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) => {
8
+ const {
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 }) }) }) });
32
17
  };
33
18
  export {
34
- z as ReactHookFormRadio,
35
- H as default
19
+ O as default
36
20
  };
package/index28.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("./index24.js"),d=require("./index3.js"),q=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:i=!1,children:c,themeName:t="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:i};return e.jsxs(u.default,{...G,"aria-disabled":i,themeName:`${t}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${t}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=q;
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"),q=require("react-hook-form"),M=require("react-i18next"),T=require("./index69.js"),R=require("./index65.js"),$=require("./index3.js"),x=t=>{const{id:c,label:u,themeName:s="radio",tokens:d,customTheme:r,value:n,fieldRef:i}=t,o=T.useRadioGroupCtx(),l=v.useRef(null),{inputProps:g}=a.useRadio(t,o,l),h=(o==null?void 0:o.selectedValue)===n,{focusProps:b}=a.useFocusRing(),m={...d,selected:h},j=R(`${s}.label`,m,r),k=R(`${s}.radio`,m,r),F=R(`${s}.selectedMark`,m,r);return e.jsx("div",{children:e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{htmlFor:c,className:j,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{type:"radio",...a.mergeProps(b,g),ref:f=>{i==null||i(f),l.current=f}})}),e.jsx("div",{className:k,"aria-checked":h,role:"radio","aria-labelledby":c,children:e.jsx("div",{className:F})}),e.jsx($.default,{themeName:`${s}.label`,children:u})]})})})},y=t=>{const{name:c,required:u}=t,{register:s,formState:d}=q.useFormContext(),r=q.get(d.errors,c),n=(r==null?void 0:r.message)??void 0,{t:i}=M.useTranslation("components"),{ref:o,...l}=s(c,{required:u?i("FORM.ERROR.REQUIRED")??"required":!1});return e.jsx(x,{fieldRef:o,...l,...t,isError:!p.isEmpty(n),errorMessage:n})};exports.ReactHookFormRadio=y;exports.default=x;
package/index28.mjs CHANGED
@@ -1,27 +1,36 @@
1
1
  "use client";
2
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
3
- import { useRadioGroupState as h } from "./index120.mjs";
4
- import { useRadioGroup as G } from "react-aria";
5
- import { RadioGroupProvider as b } from "./index68.mjs";
6
- import d from "./index24.mjs";
7
- import m from "./index3.mjs";
8
- const j = (o) => {
9
- const { label: e, isError: p = !1, errorMessage: a, isDisabled: i = !1, children: n, themeName: s = "radioGroup", tokens: u } = o, t = h(o), { radioGroupProps: c } = G(o, t), l = { ...u, isDisabled: i };
10
- return /* @__PURE__ */ f(
11
- d,
12
- {
13
- ...c,
14
- "aria-disabled": i,
15
- themeName: `${s}.radioGroup`,
16
- tokens: l,
17
- children: [
18
- e && /* @__PURE__ */ r(m, { tokens: { size: "h6" }, children: e }),
19
- /* @__PURE__ */ r(d, { themeName: `${s}.radioGroupItemsGroup`, children: /* @__PURE__ */ r(b, { state: t, children: n }) }),
20
- p && a && /* @__PURE__ */ r(m, { tokens: { isError: !0 }, children: a })
21
- ]
22
- }
23
- );
2
+ import { jsx as e, jsxs as k } from "react/jsx-runtime";
3
+ import { isEmpty as x } from "lodash";
4
+ import { useRef as y } from "react";
5
+ import { useRadio as F, useFocusRing as v, FocusRing as C, VisuallyHidden as E, mergeProps as M } from "react-aria";
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 "./index69.mjs";
9
+ import u from "./index65.mjs";
10
+ import j from "./index3.mjs";
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);
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
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
15
+ "input",
16
+ {
17
+ type: "radio",
18
+ ...M(R, p),
19
+ ref: (h) => {
20
+ a == null || a(h), c.current = h;
21
+ }
22
+ }
23
+ ) }),
24
+ /* @__PURE__ */ e("div", { className: b, "aria-checked": f, role: "radio", "aria-labelledby": i, children: /* @__PURE__ */ e("div", { className: T }) }),
25
+ /* @__PURE__ */ e(j, { themeName: `${o}.label`, children: l })
26
+ ] }) }) });
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, {
29
+ required: l ? a("FORM.ERROR.REQUIRED") ?? "required" : !1
30
+ });
31
+ return /* @__PURE__ */ e(H, { fieldRef: s, ...c, ...t, isError: !x(n), errorMessage: n });
24
32
  };
25
33
  export {
26
- j as default
34
+ z as ReactHookFormRadio,
35
+ H as default
27
36
  };
package/index29.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const a=require("react/jsx-runtime"),t=require("react-spring"),s=({isVisible:e,children:r})=>t.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((i,n)=>n&&a.jsx(t.animated.div,{style:i,children:r}));module.exports=s;
2
+ "use strict";const e=require("react/jsx-runtime"),h=require("./index120.js"),x=require("react-aria"),m=require("./index69.js"),u=require("./index25.js"),d=require("./index3.js"),q=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:i=!1,children:c,themeName:t="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:i};return e.jsxs(u.default,{...G,"aria-disabled":i,themeName:`${t}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${t}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=q;
package/index29.mjs CHANGED
@@ -1,11 +1,27 @@
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 { jsxs as f, jsx as r } from "react/jsx-runtime";
3
+ import { useRadioGroupState as h } from "./index120.mjs";
4
+ import { useRadioGroup as G } from "react-aria";
5
+ import { RadioGroupProvider as b } from "./index69.mjs";
6
+ import d from "./index25.mjs";
7
+ import m from "./index3.mjs";
8
+ const j = (o) => {
9
+ const { label: e, isError: p = !1, errorMessage: a, isDisabled: i = !1, children: n, themeName: s = "radioGroup", tokens: u } = o, t = h(o), { radioGroupProps: c } = G(o, t), l = { ...u, isDisabled: i };
10
+ return /* @__PURE__ */ f(
11
+ d,
12
+ {
13
+ ...c,
14
+ "aria-disabled": i,
15
+ themeName: `${s}.radioGroup`,
16
+ tokens: l,
17
+ children: [
18
+ e && /* @__PURE__ */ r(m, { tokens: { size: "h6" }, children: e }),
19
+ /* @__PURE__ */ r(d, { themeName: `${s}.radioGroupItemsGroup`, children: /* @__PURE__ */ r(b, { state: t, children: n }) }),
20
+ p && a && /* @__PURE__ */ r(m, { tokens: { isError: !0 }, children: a })
21
+ ]
22
+ }
23
+ );
24
+ };
9
25
  export {
10
- p as default
26
+ j as default
11
27
  };
package/index3.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),i=require("react"),p=require("./index64.js"),y=({as:e="span",themeName:r="typography",tokens:t,customTheme:o,children:s,...a})=>{const n=p(r,t,o);return c.jsx(e,{...a,className:n,children:s})},m=i.forwardRef((e,r)=>{const{as:t="span",tokens:o,themeName:s="typography",customTheme:a,children:n,...u}=e,h=p(s,o,a);return c.jsx(t,{...u,ref:r,className:h,children:n})});exports.TypographyWithForwardRef=m;exports.default=y;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),i=require("react"),p=require("./index65.js"),y=({as:e="span",themeName:r="typography",tokens:t,customTheme:o,children:s,...a})=>{const n=p(r,t,o);return c.jsx(e,{...a,className:n,children:s})},m=i.forwardRef((e,r)=>{const{as:t="span",tokens:o,themeName:s="typography",customTheme:a,children:n,...u}=e,h=p(s,o,a);return c.jsx(t,{...u,ref:r,className:h,children:n})});exports.TypographyWithForwardRef=m;exports.default=y;
package/index3.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as p } from "react/jsx-runtime";
3
3
  import f from "react";
4
- import n from "./index64.mjs";
4
+ import n from "./index65.mjs";
5
5
  const i = ({
6
6
  as: e = "span",
7
7
  themeName: t = "typography",
package/index30.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("./index24.js"),q=require("./index122.js"),$=s=>{const{id:c="main-menu",children:o,PanelTransition:u=x,themeName:n,tokens:d,customTheme:m,...a}=s,{overlayState:t}=l.useSidePanel(),{closeBtn:r}=h.useMenu();return e.jsx(u,{isVisible:t==null?void 0:t.isOpen,children:e.jsxs(i.default,{themeName:`${n}.wrapper`,children:[r&&r(),e.jsx(i.default,{themeName:`${n}.container`,children:e.jsx(q,{id:c,themeName:`${n}.innerContent`,tokens:d,customTheme:m,...a,children:o})})]})})};module.exports=$;
2
+ "use strict";const a=require("react/jsx-runtime"),t=require("react-spring"),s=({isVisible:e,children:r})=>t.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((i,n)=>n&&a.jsx(t.animated.div,{style:i,children:r}));module.exports=s;
package/index30.mjs CHANGED
@@ -1,35 +1,11 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
3
- import { useMenu as l } from "./index67.mjs";
4
- import { useSidePanel as u } from "./index66.mjs";
5
- import f from "./index121.mjs";
6
- import m from "./index24.mjs";
7
- import x from "./index122.mjs";
8
- const O = (o) => {
9
- const {
10
- id: i = "main-menu",
11
- children: s,
12
- PanelTransition: c = f,
13
- themeName: e,
14
- tokens: a,
15
- customTheme: p,
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,
22
- {
23
- id: i,
24
- themeName: `${e}.innerContent`,
25
- tokens: a,
26
- customTheme: p,
27
- ...h,
28
- children: s
29
- }
30
- ) })
31
- ] }) });
32
- };
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 }));
33
9
  export {
34
- O as default
10
+ p as default
35
11
  };
package/index31.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const i=require("react/jsx-runtime"),h=require("./index67.js"),q=require("./index8.js"),x=require("./index122.js"),$=o=>{const{id:n="main-menu",children:c,TransitionAnimation:l,PanelTransition:u,themeName:t,tokens:s,customTheme:r,...d}=o,{closeBtn:a,tabState:e,defaultSelectedKey:m}=h.useMenu();return i.jsx(q,{themeName:`${t}.sidePanel`,tokens:s,customTheme:r,closeBtnRender:a,id:n,TransitionAnimation:l,PanelTransition:u,onCloseCallBack:()=>{e==null||e.setSelectedKey(m)},children:i.jsx(x,{id:n,themeName:t,tokens:s,customTheme:r,...d,children:c})})};module.exports=$;
2
+ "use strict";const e=require("react/jsx-runtime"),h=require("./index68.js"),l=require("./index67.js"),x=require("./index121.js"),i=require("./index25.js"),q=require("./index122.js"),$=s=>{const{id:c="main-menu",children:o,PanelTransition:u=x,themeName:n,tokens:d,customTheme:m,...a}=s,{overlayState:t}=l.useSidePanel(),{closeBtn:r}=h.useMenu();return e.jsx(u,{isVisible:t==null?void 0:t.isOpen,children:e.jsxs(i.default,{themeName:`${n}.wrapper`,children:[r&&r(),e.jsx(i.default,{themeName:`${n}.container`,children:e.jsx(q,{id:c,themeName:`${n}.innerContent`,tokens:d,customTheme:m,...a,children:o})})]})})};module.exports=$;
package/index31.mjs CHANGED
@@ -1,36 +1,35 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { useMenu as f } from "./index67.mjs";
4
- import h from "./index8.mjs";
5
- import p from "./index122.mjs";
6
- const T = (m) => {
2
+ import { jsx as t, jsxs as d } from "react/jsx-runtime";
3
+ import { useMenu as l } from "./index68.mjs";
4
+ import { useSidePanel as u } from "./index67.mjs";
5
+ import f from "./index121.mjs";
6
+ import m from "./index25.mjs";
7
+ import x from "./index122.mjs";
8
+ const O = (o) => {
7
9
  const {
8
- id: n = "main-menu",
10
+ id: i = "main-menu",
9
11
  children: s,
10
- TransitionAnimation: l,
11
- PanelTransition: a,
12
- themeName: t,
13
- tokens: o,
14
- customTheme: r,
15
- ...c
16
- } = m, { closeBtn: d, tabState: e, defaultSelectedKey: u } = f();
17
- return /* @__PURE__ */ i(
18
- h,
19
- {
20
- themeName: `${t}.sidePanel`,
21
- tokens: o,
22
- customTheme: r,
23
- closeBtnRender: d,
24
- id: n,
25
- TransitionAnimation: l,
26
- PanelTransition: a,
27
- onCloseCallBack: () => {
28
- e == null || e.setSelectedKey(u);
29
- },
30
- children: /* @__PURE__ */ i(p, { id: n, themeName: t, tokens: o, customTheme: r, ...c, children: s })
31
- }
32
- );
12
+ PanelTransition: c = f,
13
+ themeName: e,
14
+ tokens: a,
15
+ customTheme: p,
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,
22
+ {
23
+ id: i,
24
+ themeName: `${e}.innerContent`,
25
+ tokens: a,
26
+ customTheme: p,
27
+ ...h,
28
+ children: s
29
+ }
30
+ ) })
31
+ ] }) });
33
32
  };
34
33
  export {
35
- T as default
34
+ O as default
36
35
  };
package/index32.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const u=require("react/jsx-runtime"),c=require("react"),N=require("./index123.js"),y=require("./index67.js"),b=require("./index24.js"),x=require("./index6.js"),q=a=>{const{tabState:s,defaultSelectedKey:o}=y.useMenu(),{setSelectedKey:t}=s,{id:r,path:n,label:e,themeName:h="button",tokens:d,customTheme:i,target:m,children:l,childItems:k,...f}=a,$=n==null?void 0:n.substring(1),p=c.useCallback(()=>{if($!=null){if(s.selectedKey===$){t(o);return}t($)}},[$,s.selectedKey,t,o]);return c.createElement(x.default,{...f,themeName:`${h}`,tokens:d,customTheme:i,key:`button-${r}`,handlePress:p},c.isValidElement(l)?l:e)},E=a=>{const{id:s,target:o,path:t,label:r,themeName:n="anchor",customTheme:e,tokens:h,nextLinkProps:d,children:i,childItems:m,...l}=a,k=c.useRef(null);return t==null||r==null?null:c.createElement(x.Anchor,{...l,themeName:`${n}`,tokens:h,customTheme:e,nextLinkProps:{scroll:!1,href:t,...d},ref:k,key:`link-${s}`,as:N,target:o??"_self"},c.isValidElement(i)?i:r)},j=a=>{const{menuItems:s,children:o,themeName:t="menuItem",tokens:r,customTheme:n}=a;return u.jsxs(b.default,{themeName:`${t}.wrapper`,tokens:r,customTheme:n,children:[u.jsx(b.default,{themeName:`${t}.container`,tokens:r,customTheme:n,children:s==null?void 0:s.map(e=>{var f;const{id:h,path:d,label:i,...m}=e??{},l={...r,...e.tokens};if((e==null?void 0:e.path)==null||e.id==null)return null;const k=(f=e.path)!=null&&f.startsWith("#")?"button":"a";return u.jsx(b.default,{themeName:`${t}.innerContent`,tokens:l,customTheme:n,children:k==="button"?u.jsx(q,{...m,...e,themeName:`${t}.button`,tokens:l,customTheme:n}):u.jsx(E,{...m,...e,themeName:`${t}.anchor`,tokens:l,customTheme:n})},`li-${e.id}`)})}),o]})};module.exports=j;
2
+ "use strict";const i=require("react/jsx-runtime"),h=require("./index68.js"),q=require("./index8.js"),x=require("./index122.js"),$=o=>{const{id:n="main-menu",children:c,TransitionAnimation:l,PanelTransition:u,themeName:t,tokens:s,customTheme:r,...d}=o,{closeBtn:a,tabState:e,defaultSelectedKey:m}=h.useMenu();return i.jsx(q,{themeName:`${t}.sidePanel`,tokens:s,customTheme:r,closeBtnRender:a,id:n,TransitionAnimation:l,PanelTransition:u,onCloseCallBack:()=>{e==null||e.setSelectedKey(m)},children:i.jsx(x,{id:n,themeName:t,tokens:s,customTheme:r,...d,children:c})})};module.exports=$;
package/index32.mjs CHANGED
@@ -1,106 +1,36 @@
1
1
  "use client";
2
- import { jsxs as y, jsx as k } from "react/jsx-runtime";
3
- import b, { useCallback as x, createElement as N, useRef as E } from "react";
4
- import K from "./index123.mjs";
5
- import { useMenu as T } from "./index67.mjs";
6
- import p from "./index24.mjs";
7
- import g, { Anchor as L } from "./index6.mjs";
8
- const B = (a) => {
9
- const { tabState: r, defaultSelectedKey: s } = T(), { setSelectedKey: t } = r, { id: l, path: n, label: e, themeName: c = "button", tokens: h, customTheme: i, target: m, children: o, childItems: u, ...d } = a, f = n == null ? void 0 : n.substring(1), $ = x(() => {
10
- if (f != null) {
11
- if (r.selectedKey === f) {
12
- t(s);
13
- return;
14
- }
15
- t(f);
16
- }
17
- }, [f, r.selectedKey, t, s]);
18
- return /* @__PURE__ */ N(
19
- g,
20
- {
21
- ...d,
22
- themeName: `${c}`,
23
- tokens: h,
24
- customTheme: i,
25
- key: `button-${l}`,
26
- handlePress: $
27
- },
28
- b.isValidElement(o) ? o : e
29
- );
30
- }, P = (a) => {
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { useMenu as f } from "./index68.mjs";
4
+ import h from "./index8.mjs";
5
+ import p from "./index122.mjs";
6
+ const T = (m) => {
31
7
  const {
32
- id: r,
33
- target: s,
34
- path: t,
35
- label: l,
36
- themeName: n = "anchor",
37
- customTheme: e,
38
- tokens: c,
39
- nextLinkProps: h,
40
- children: i,
41
- childItems: m,
42
- ...o
43
- } = a, u = E(null);
44
- return t == null || l == null ? null : /* @__PURE__ */ N(
45
- L,
8
+ id: n = "main-menu",
9
+ children: s,
10
+ TransitionAnimation: l,
11
+ PanelTransition: a,
12
+ themeName: t,
13
+ tokens: o,
14
+ customTheme: r,
15
+ ...c
16
+ } = m, { closeBtn: d, tabState: e, defaultSelectedKey: u } = f();
17
+ return /* @__PURE__ */ i(
18
+ h,
46
19
  {
47
- ...o,
48
- themeName: `${n}`,
49
- tokens: c,
50
- customTheme: e,
51
- nextLinkProps: {
52
- scroll: !1,
53
- href: t,
54
- ...h
20
+ themeName: `${t}.sidePanel`,
21
+ tokens: o,
22
+ customTheme: r,
23
+ closeBtnRender: d,
24
+ id: n,
25
+ TransitionAnimation: l,
26
+ PanelTransition: a,
27
+ onCloseCallBack: () => {
28
+ e == null || e.setSelectedKey(u);
55
29
  },
56
- ref: u,
57
- key: `link-${r}`,
58
- as: K,
59
- target: s ?? "_self"
60
- },
61
- b.isValidElement(i) ? i : l
30
+ children: /* @__PURE__ */ i(p, { id: n, themeName: t, tokens: o, customTheme: r, ...c, children: s })
31
+ }
62
32
  );
63
- }, V = (a) => {
64
- const { menuItems: r, children: s, themeName: t = "menuItem", tokens: l, customTheme: n } = a;
65
- return /* @__PURE__ */ y(p, { themeName: `${t}.wrapper`, tokens: l, customTheme: n, children: [
66
- /* @__PURE__ */ k(p, { themeName: `${t}.container`, tokens: l, customTheme: n, children: r == null ? void 0 : r.map((e) => {
67
- var d;
68
- const { id: c, path: h, label: i, ...m } = e ?? {}, o = { ...l, ...e.tokens };
69
- if ((e == null ? void 0 : e.path) == null || e.id == null)
70
- return null;
71
- const u = (d = e.path) != null && d.startsWith("#") ? "button" : "a";
72
- return /* @__PURE__ */ k(
73
- p,
74
- {
75
- themeName: `${t}.innerContent`,
76
- tokens: o,
77
- customTheme: n,
78
- children: u === "button" ? /* @__PURE__ */ k(
79
- B,
80
- {
81
- ...m,
82
- ...e,
83
- themeName: `${t}.button`,
84
- tokens: o,
85
- customTheme: n
86
- }
87
- ) : /* @__PURE__ */ k(
88
- P,
89
- {
90
- ...m,
91
- ...e,
92
- themeName: `${t}.anchor`,
93
- tokens: o,
94
- customTheme: n
95
- }
96
- )
97
- },
98
- `li-${e.id}`
99
- );
100
- }) }),
101
- s
102
- ] });
103
33
  };
104
34
  export {
105
- V as default
35
+ T as default
106
36
  };
package/index33.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
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;
2
+ "use strict";const u=require("react/jsx-runtime"),c=require("react"),N=require("./index123.js"),y=require("./index68.js"),b=require("./index25.js"),x=require("./index6.js"),q=a=>{const{tabState:s,defaultSelectedKey:o}=y.useMenu(),{setSelectedKey:t}=s,{id:r,path:n,label:e,themeName:h="button",tokens:d,customTheme:i,target:m,children:l,childItems:k,...f}=a,$=n==null?void 0:n.substring(1),p=c.useCallback(()=>{if($!=null){if(s.selectedKey===$){t(o);return}t($)}},[$,s.selectedKey,t,o]);return c.createElement(x.default,{...f,themeName:`${h}`,tokens:d,customTheme:i,key:`button-${r}`,handlePress:p},c.isValidElement(l)?l:e)},E=a=>{const{id:s,target:o,path:t,label:r,themeName:n="anchor",customTheme:e,tokens:h,nextLinkProps:d,children:i,childItems:m,...l}=a,k=c.useRef(null);return t==null||r==null?null:c.createElement(x.Anchor,{...l,themeName:`${n}`,tokens:h,customTheme:e,nextLinkProps:{scroll:!1,href:t,...d},ref:k,key:`link-${s}`,as:N,target:o??"_self"},c.isValidElement(i)?i:r)},j=a=>{const{menuItems:s,children:o,themeName:t="menuItem",tokens:r,customTheme:n}=a;return u.jsxs(b.default,{themeName:`${t}.wrapper`,tokens:r,customTheme:n,children:[u.jsx(b.default,{themeName:`${t}.container`,tokens:r,customTheme:n,children:s==null?void 0:s.map(e=>{var f;const{id:h,path:d,label:i,...m}=e??{},l={...r,...e.tokens};if((e==null?void 0:e.path)==null||e.id==null)return null;const k=(f=e.path)!=null&&f.startsWith("#")?"button":"a";return u.jsx(b.default,{themeName:`${t}.innerContent`,tokens:l,customTheme:n,children:k==="button"?u.jsx(q,{...m,...e,themeName:`${t}.button`,tokens:l,customTheme:n}):u.jsx(E,{...m,...e,themeName:`${t}.anchor`,tokens:l,customTheme:n})},`li-${e.id}`)})}),o]})};module.exports=j;