@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/index123.mjs CHANGED
@@ -1,23 +1,19 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useTabPanel as m } from "./index133.mjs";
3
- import c from "react";
4
- import p from "./index121.mjs";
5
- import { BoxWithForwardRef as s } from "./index25.mjs";
6
- function x({ state: e, customTheme: a, themeName: i = "tabPanel", tokens: n, ...f }) {
7
- var t;
8
- const r = c.useRef(null), { tabPanelProps: l } = m(f, e, r);
9
- return /* @__PURE__ */ o(p, { isVisible: !0, children: /* @__PURE__ */ o(
10
- s,
11
- {
12
- themeName: `${i}`,
13
- tokens: n,
14
- customTheme: a,
15
- ...l,
16
- ref: r,
17
- children: (t = e.selectedItem) == null ? void 0 : t.props.children
18
- }
19
- ) });
20
- }
1
+ import { jsxs as l, Fragment as f, jsx as s } from "react/jsx-runtime";
2
+ import { useMenu as h } from "./index67.mjs";
3
+ import c from "./index25.mjs";
4
+ import d from "./index34.mjs";
5
+ const T = (i) => {
6
+ var a;
7
+ const { themeName: e, tokens: t, customTheme: n, children: p, beforeTabContent: o, afterTabContent: m } = i, { tabState: r, defaultSelectedKey: u } = h();
8
+ return /* @__PURE__ */ l(f, { children: [
9
+ /* @__PURE__ */ s(c, { themeName: `${e}.wrapper`, tokens: t, customTheme: n, children: p }),
10
+ ((a = r == null ? void 0 : r.selectedKey) == null ? void 0 : a.toString()) === u ? null : /* @__PURE__ */ l(c, { themeName: `${e}.tabWrapper`, tokens: t, customTheme: n, children: [
11
+ o !== null && o,
12
+ /* @__PURE__ */ s(d, { themeName: `${e}.tabPanel`, tokens: t, customTheme: n }),
13
+ m !== null && m
14
+ ] })
15
+ ] });
16
+ };
21
17
  export {
22
- x as default
18
+ T as default
23
19
  };
package/index124.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index45.js"),t=i.forwardRef((r,s)=>{const{themeName:n="alerts.closeBtn",...o}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:n,...o,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
1
+ "use strict";const t=require("react/jsx-runtime"),o=require("./index134.js"),l=require("react"),d=require("./index122.js"),b=require("./index25.js");function h({state:e,customTheme:s,themeName:i="tabPanel",tokens:c,...u}){var n;const r=l.useRef(null),{tabPanelProps:a}=o.useTabPanel(u,e,r);return t.jsx(d,{isVisible:!0,children:t.jsx(b.BoxWithForwardRef,{themeName:`${i}`,tokens:c,customTheme:s,...a,ref:r,children:(n=e.selectedItem)==null?void 0:n.props.children})})}module.exports=h;
package/index124.mjs CHANGED
@@ -1,13 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- import { ButtonWithForwardRef as n } from "./index6.mjs";
4
- import i from "./index14.mjs";
5
- import l from "./index45.mjs";
6
- const a = m((o, r) => {
7
- const { themeName: e = "alerts.closeBtn", ...s } = o;
8
- return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
9
- });
10
- a.displayName = "AlertsCloseButton";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useTabPanel as m } from "./index134.mjs";
3
+ import c from "react";
4
+ import p from "./index122.mjs";
5
+ import { BoxWithForwardRef as s } from "./index25.mjs";
6
+ function x({ state: e, customTheme: a, themeName: i = "tabPanel", tokens: n, ...f }) {
7
+ var t;
8
+ const r = c.useRef(null), { tabPanelProps: l } = m(f, e, r);
9
+ return /* @__PURE__ */ o(p, { isVisible: !0, children: /* @__PURE__ */ o(
10
+ s,
11
+ {
12
+ themeName: `${i}`,
13
+ tokens: n,
14
+ customTheme: a,
15
+ ...l,
16
+ ref: r,
17
+ children: (t = e.selectedItem) == null ? void 0 : t.props.children
18
+ }
19
+ ) });
20
+ }
11
21
  export {
12
- a as default
22
+ x as default
13
23
  };
package/index125.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function n(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);if(t===void 0)throw new Error("useCtx must be inside a Provider");return t}return[o,e.Provider]}function u(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);return t===void 0?{}:t}return[o,e.Provider]}exports.createCtxNullable=u;exports.default=n;
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index45.js"),t=i.forwardRef((r,s)=>{const{themeName:n="alerts.closeBtn",...o}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:n,...o,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
package/index125.mjs CHANGED
@@ -1,24 +1,13 @@
1
- "use client";
2
- import r from "react";
3
- function u() {
4
- const t = r.createContext(void 0);
5
- function o() {
6
- const e = r.useContext(t);
7
- if (e === void 0)
8
- throw new Error("useCtx must be inside a Provider");
9
- return e;
10
- }
11
- return [o, t.Provider];
12
- }
13
- function c() {
14
- const t = r.createContext(void 0);
15
- function o() {
16
- const e = r.useContext(t);
17
- return e === void 0 ? {} : e;
18
- }
19
- return [o, t.Provider];
20
- }
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { ButtonWithForwardRef as n } from "./index6.mjs";
4
+ import i from "./index14.mjs";
5
+ import l from "./index45.mjs";
6
+ const a = m((o, r) => {
7
+ const { themeName: e = "alerts.closeBtn", ...s } = o;
8
+ return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
9
+ });
10
+ a.displayName = "AlertsCloseButton";
21
11
  export {
22
- c as createCtxNullable,
23
- u as default
12
+ a as default
24
13
  };
package/index126.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const g=require("react/jsx-runtime"),e=require("react-spring"),T=require("./index64.js"),u=t=>{const{isVisible:o,children:r,themeName:i,tokens:n,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=T(i,n,s);return d((c,p)=>p&&g.jsx(e.animated.div,{...a,style:c,className:m,children:r}))};module.exports=u;
1
+ "use client";
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function n(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);if(t===void 0)throw new Error("useCtx must be inside a Provider");return t}return[o,e.Provider]}function u(){const e=r.createContext(void 0);function o(){const t=r.useContext(e);return t===void 0?{}:t}return[o,e.Provider]}exports.createCtxNullable=u;exports.default=n;
package/index126.mjs CHANGED
@@ -1,14 +1,24 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import { useTransition as c, animated as g } from "react-spring";
3
- import l from "./index64.mjs";
4
- const w = (e) => {
5
- const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
- from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
- enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
- leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
- }), a = l(r, i, n);
10
- return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
11
- };
1
+ "use client";
2
+ import r from "react";
3
+ function u() {
4
+ const t = r.createContext(void 0);
5
+ function o() {
6
+ const e = r.useContext(t);
7
+ if (e === void 0)
8
+ throw new Error("useCtx must be inside a Provider");
9
+ return e;
10
+ }
11
+ return [o, t.Provider];
12
+ }
13
+ function c() {
14
+ const t = r.createContext(void 0);
15
+ function o() {
16
+ const e = r.useContext(t);
17
+ return e === void 0 ? {} : e;
18
+ }
19
+ return [o, t.Provider];
20
+ }
12
21
  export {
13
- w as default
22
+ c as createCtxNullable,
23
+ u as default
14
24
  };
package/index127.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index155.js"),r=require("./index156.js"),t=require("./index157.js"),o=require("./index158.js"),i=require("./index159.js"),a=require("./index160.js"),c=require("./index161.js"),n=require("./index162.js"),u=require("./index163.js"),s=require("./index164.js"),f=require("./index165.js"),l=require("./index166.js"),q=require("./index167.js"),d=require("./index168.js"),b=require("./index169.js"),v=require("./index170.js"),y=require("./index171.js"),g=require("./index172.js"),p=require("./index173.js"),C=require("./index174.js"),h=require("./index175.js"),m=require("./index176.js"),E=require("./index177.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index135.js"),r=require("./index136.js"),t=require("./index137.js"),o=require("./index138.js"),i=require("./index139.js"),a=require("./index140.js"),c=require("./index141.js"),n=require("./index142.js"),u=require("./index143.js"),s=require("./index144.js"),f=require("./index145.js"),l=require("./index146.js"),q=require("./index147.js"),d=require("./index148.js"),b=require("./index149.js"),v=require("./index150.js"),y=require("./index151.js"),g=require("./index152.js"),p=require("./index153.js"),C=require("./index154.js"),h=require("./index155.js"),m=require("./index156.js"),E=require("./index157.js");exports.Virtual=e;exports.Keyboard=r;exports.Mousewheel=t;exports.Navigation=o;exports.Pagination=i;exports.Scrollbar=a;exports.Parallax=c;exports.Zoom=n;exports.Controller=u;exports.A11y=s;exports.History=f;exports.HashNavigation=l;exports.Autoplay=q;exports.Thumbs=d;exports.FreeMode=b;exports.Grid=v;exports.Manipulation=y;exports.EffectFade=g;exports.EffectCube=p;exports.EffectFlip=C;exports.EffectCoverflow=h;exports.EffectCreative=m;exports.EffectCards=E;
package/index127.mjs CHANGED
@@ -1,26 +1,26 @@
1
- import { default as o } from "./index155.mjs";
2
- import { default as f } from "./index156.mjs";
3
- import { default as l } from "./index157.mjs";
4
- import { default as d } from "./index158.mjs";
5
- import { default as p } from "./index159.mjs";
6
- import { default as x } from "./index160.mjs";
7
- import { default as c } from "./index161.mjs";
8
- import { default as E } from "./index162.mjs";
9
- import { default as b } from "./index163.mjs";
10
- import { default as y } from "./index164.mjs";
11
- import { default as h } from "./index165.mjs";
12
- import { default as M } from "./index166.mjs";
13
- import { default as A } from "./index167.mjs";
14
- import { default as N } from "./index168.mjs";
15
- import { default as G } from "./index169.mjs";
16
- import { default as S } from "./index170.mjs";
17
- import { default as V } from "./index171.mjs";
18
- import { default as j } from "./index172.mjs";
19
- import { default as q } from "./index173.mjs";
20
- import { default as B } from "./index174.mjs";
21
- import { default as I } from "./index175.mjs";
22
- import { default as L } from "./index176.mjs";
23
- import { default as Q } from "./index177.mjs";
1
+ import { default as o } from "./index135.mjs";
2
+ import { default as f } from "./index136.mjs";
3
+ import { default as l } from "./index137.mjs";
4
+ import { default as d } from "./index138.mjs";
5
+ import { default as p } from "./index139.mjs";
6
+ import { default as x } from "./index140.mjs";
7
+ import { default as c } from "./index141.mjs";
8
+ import { default as E } from "./index142.mjs";
9
+ import { default as b } from "./index143.mjs";
10
+ import { default as y } from "./index144.mjs";
11
+ import { default as h } from "./index145.mjs";
12
+ import { default as M } from "./index146.mjs";
13
+ import { default as A } from "./index147.mjs";
14
+ import { default as N } from "./index148.mjs";
15
+ import { default as G } from "./index149.mjs";
16
+ import { default as S } from "./index150.mjs";
17
+ import { default as V } from "./index151.mjs";
18
+ import { default as j } from "./index152.mjs";
19
+ import { default as q } from "./index153.mjs";
20
+ import { default as B } from "./index154.mjs";
21
+ import { default as I } from "./index155.mjs";
22
+ import { default as L } from "./index156.mjs";
23
+ import { default as Q } from "./index157.mjs";
24
24
  export {
25
25
  y as A11y,
26
26
  A as Autoplay,
package/index128.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index178.js"),T=require("./index179.js"),d=require("./index180.js");function I(){return I=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},I.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(o=>t.push(o)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=l=>{let i=l;return l<0?i=t.length+l:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let l=y;l<h;l+=1)l>=o&&l<=p&&S.push(t[n(l)]);return S.map((l,i)=>e.cloneElement(l,{swiper:s,style:c,key:`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const B=e.createContext(null),Q=()=>e.useContext(B),X=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:o,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,l]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),L=e.useRef(null),{params:f,passedParams:k,rest:D,events:g}=T.g(y),{slides:v,slots:j}=J(o),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){l(E)}});const q=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=v;const E={cache:!1,slides:v,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||q(),r.current&&r.current.on("_beforeBreakpoint",_);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",_)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&q(),T.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:L.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=T.a(k,x.current,v,z.current,E=>E.key);return x.current=k,z.current=v,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:v,passedParams:k,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:L.current,paginationEl:R.current}),()=>{M()}}),N(()=>{T.u(r.current)},[i]);function U(){return f.virtual?K(r.current,v,i):v.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,I({ref:w,className:d.d(`${S}${a?` ${a}`:""}`)},D),e.createElement(X.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:L,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:o,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...l}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof S<"u"&&(i.current.swiperSlideIndex=S),t&&(t.current=i.current),!(!i.current||!o)){if(o.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return o.on("_slideClass",w),()=>{o&&o.off("_slideClass",w)}}}),N(()=>{o&&i.current&&!o.destroyed&&C(o.getSlideClasses(i.current))},[o]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,I({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},l),p&&e.createElement(B.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(B.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;exports.useSwiperSlide=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index158.js"),T=require("./index159.js"),d=require("./index160.js");function I(){return I=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},I.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(o=>t.push(o)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=l=>{let i=l;return l<0?i=t.length+l:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,S=[];for(let l=y;l<h;l+=1)l>=o&&l<=p&&S.push(t[n(l)]);return S.map((l,i)=>e.cloneElement(l,{swiper:s,style:c,key:`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const B=e.createContext(null),Q=()=>e.useContext(B),X=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:o,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[S,l]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),L=e.useRef(null),{params:f,passedParams:k,rest:D,events:g}=T.g(y),{slides:v,slots:j}=J(o),_=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){l(E)}});const q=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=v;const E={cache:!1,slides:v,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||q(),r.current&&r.current.on("_beforeBreakpoint",_);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",_)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&q(),T.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:L.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=T.a(k,x.current,v,z.current,E=>E.key);return x.current=k,z.current=v,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:v,passedParams:k,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:L.current,paginationEl:R.current}),()=>{M()}}),N(()=>{T.u(r.current)},[i]);function U(){return f.virtual?K(r.current,v,i):v.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,I({ref:w,className:d.d(`${S}${a?` ${a}`:""}`)},D),e.createElement(X.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:L,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:o,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:S,...l}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof S<"u"&&(i.current.swiperSlideIndex=S),t&&(t.current=i.current),!(!i.current||!o)){if(o.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return o.on("_slideClass",w),()=>{o&&o.off("_slideClass",w)}}}),N(()=>{o&&i.current&&!o.destroyed&&C(o.getSlideClasses(i.current))},[o]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,I({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},l),p&&e.createElement(B.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(B.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;exports.useSwiperSlide=Q;
package/index128.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import a, { forwardRef as W, useState as P, useRef as u, useEffect as k, useLayoutEffect as Q, createContext as q, useContext as X } from "react";
2
- import { S as Y } from "./index178.mjs";
3
- import { g as Z, m as ee, a as re, u as te } from "./index179.mjs";
4
- import { d as D, w as ne, n as se, b as ae, a as ie, e as F, u as oe } from "./index180.mjs";
2
+ import { S as Y } from "./index158.mjs";
3
+ import { g as Z, m as ee, a as re, u as te } from "./index159.mjs";
4
+ import { d as D, w as ne, n as se, b as ae, a as ie, e as F, u as oe } from "./index160.mjs";
5
5
  function L() {
6
6
  return L = Object.assign ? Object.assign.bind() : function(n) {
7
7
  for (var r = 1; r < arguments.length; r++) {
package/index13.js CHANGED
@@ -1 +1 @@
1
- "use strict";const o=require("react/jsx-runtime"),t=require("sanitize-html"),a=require("./index3.js"),e=require("./index103.js"),n=({content:r,themeName:s="wysiwyg",...l})=>{const i=t(r,{allowedTags:t.defaults.allowedTags.concat(["iframe"]),nonBooleanAttributes:[],allowedAttributes:{...t.defaults.allowedAttributes,"*":[...t.defaults.nonBooleanAttributes,...e.ariaAttributes,...e.booleanAttributes],iframe:["src","allow","allowfullscreen","frameborder","scrolling","target","title","height","width","referrerpolicy"]}});return o.jsx(a.default,{...l,themeName:s,dangerouslySetInnerHTML:{__html:i}})};module.exports=n;
1
+ "use strict";const o=require("react/jsx-runtime"),t=require("sanitize-html"),a=require("./index3.js"),e=require("./index104.js"),n=({content:r,themeName:i="wysiwyg",...s})=>{const l=t(r,{allowedTags:t.defaults.allowedTags.concat(["iframe","img"]),nonBooleanAttributes:[],allowedAttributes:{...t.defaults.allowedAttributes,"*":[...t.defaults.nonBooleanAttributes,...e.ariaAttributes,...e.booleanAttributes],iframe:["src","allow","allowfullscreen","frameborder","scrolling","target","title","height","width","referrerpolicy"],img:["src","srcset","alt","title","width","height","loading"]}});return o.jsx(a.default,{...s,themeName:i,dangerouslySetInnerHTML:{__html:l}})};module.exports=n;
package/index13.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import t from "sanitize-html";
3
- import i from "./index3.mjs";
4
- import { ariaAttributes as s, booleanAttributes as n } from "./index103.mjs";
5
- const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
3
+ import a from "./index3.mjs";
4
+ import { ariaAttributes as s, booleanAttributes as n } from "./index104.mjs";
5
+ const u = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
6
6
  const l = t(e, {
7
- allowedTags: t.defaults.allowedTags.concat(["iframe"]),
7
+ allowedTags: t.defaults.allowedTags.concat(["iframe", "img"]),
8
8
  nonBooleanAttributes: [],
9
9
  allowedAttributes: {
10
10
  ...t.defaults.allowedAttributes,
@@ -20,11 +20,12 @@ const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
20
20
  "height",
21
21
  "width",
22
22
  "referrerpolicy"
23
- ]
23
+ ],
24
+ img: ["src", "srcset", "alt", "title", "width", "height", "loading"]
24
25
  }
25
26
  });
26
- return /* @__PURE__ */ a(
27
- i,
27
+ return /* @__PURE__ */ i(
28
+ a,
28
29
  {
29
30
  ...o,
30
31
  themeName: r,
@@ -35,5 +36,5 @@ const w = ({ content: e, themeName: r = "wysiwyg", ...o }) => {
35
36
  );
36
37
  };
37
38
  export {
38
- w as default
39
+ u as default
39
40
  };
package/index130.mjs CHANGED
@@ -2,31 +2,31 @@ import { jsx as h } from "react/jsx-runtime";
2
2
  import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
3
3
  import { useSwiperController as w } from "./index71.mjs";
4
4
  import g from "./index6.mjs";
5
- const $ = (d) => {
5
+ const N = (d) => {
6
6
  const { themeName: l, tokens: u, slides: o, activeIndex: p, index: t } = d, { controller: e } = w(), s = y(), m = t === 0 ? o.length - 1 : t - 1, c = t === o.length - 1 ? 0 : t + 1, { keyboardProps: b } = P({
7
7
  onKeyUp: (i) => {
8
8
  i.key === "ArrowLeft" && (i.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), i.key === "ArrowRight" && (i.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(c));
9
9
  }
10
10
  }), { pressProps: f } = k({
11
11
  onPress: () => e == null ? void 0 : e.slideTo(t)
12
- }), v = o[t], r = t === p, { title: n, id: x } = v, a = n && n.length > 0;
12
+ }), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
13
13
  return /* @__PURE__ */ h(
14
14
  g,
15
15
  {
16
16
  as: "button",
17
17
  tabIndex: 0,
18
18
  role: "button",
19
- "aria-current": r ? "true" : "false",
20
- "aria-disabled": r,
19
+ "aria-current": n ? "true" : "false",
20
+ "aria-disabled": n,
21
21
  "aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
22
22
  "aria-labelledby": a ? x : void 0,
23
23
  ...b,
24
24
  ...f,
25
25
  themeName: `${l}.bullet`,
26
- tokens: { ...u, active: r }
26
+ tokens: { ...u, active: n }
27
27
  }
28
28
  );
29
29
  };
30
30
  export {
31
- $ as default
31
+ N as default
32
32
  };
package/index131.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index143.js"),$=require("./index154.js");function l(e,t){return t=u.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-g(t))%7;return a<0&&(a+=7),a}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function s(e,t){return c(e)-c(t)}function c(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let r=null;function m(){return r==null&&(r=new Intl.DateTimeFormat().resolvedOptions().timeZone),r}function i(e){return e.subtract({days:e.day-1})}const o=new Map;function y(e){if(Intl.Locale){let n=o.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&$.weekStartData[t]||0}function p(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((f(i(e),t)+n)/7)}exports.compareDate=d;exports.compareTime=s;exports.getDayOfWeek=f;exports.getLocalTimeZone=m;exports.getWeeksInMonth=p;exports.isSameDay=l;exports.startOfMonth=i;
1
+ "use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index64.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
package/index131.mjs CHANGED
@@ -1,53 +1,14 @@
1
- import { toCalendar as o } from "./index143.mjs";
2
- import { weekStartData as i } from "./index154.mjs";
3
- function p(e, a) {
4
- return a = o(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
5
- }
6
- function $(e, a) {
7
- let t = e.calendar.toJulianDay(e), n = Math.ceil(t + 1 - d(a)) % 7;
8
- return n < 0 && (n += 7), n;
9
- }
10
- function y(e, a) {
11
- return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
12
- }
13
- function g(e, a) {
14
- return c(e) - c(a);
15
- }
16
- function c(e) {
17
- return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
18
- }
19
- let r = null;
20
- function x() {
21
- return r == null && (r = new Intl.DateTimeFormat().resolvedOptions().timeZone), r;
22
- }
23
- function u(e) {
24
- return e.subtract({
25
- days: e.day - 1
26
- });
27
- }
28
- const f = /* @__PURE__ */ new Map();
29
- function l(e) {
30
- if (Intl.Locale) {
31
- let t = f.get(e);
32
- return t || (t = new Intl.Locale(e).maximize().region, t && f.set(e, t)), t;
33
- }
34
- let a = e.split("-")[1];
35
- return a === "u" ? void 0 : a;
36
- }
37
- function d(e) {
38
- let a = l(e);
39
- return a && i[a] || 0;
40
- }
41
- function h(e, a) {
42
- let t = e.calendar.getDaysInMonth(e);
43
- return Math.ceil(($(u(e), a) + t) / 7);
44
- }
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import { useTransition as c, animated as g } from "@react-spring/web";
3
+ import l from "./index64.mjs";
4
+ const w = (e) => {
5
+ const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
+ from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
7
+ enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
8
+ leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
9
+ }), a = l(r, i, n);
10
+ return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
11
+ };
45
12
  export {
46
- y as compareDate,
47
- g as compareTime,
48
- $ as getDayOfWeek,
49
- x as getLocalTimeZone,
50
- h as getWeeksInMonth,
51
- p as isSameDay,
52
- u as startOfMonth
13
+ w as default
53
14
  };
package/index132.js CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),r=require("./index131.js"),P=require("@react-aria/calendar"),v=require("@react-aria/focus"),O=require("@react-aria/utils"),$=require("react"),F=require("react-aria"),o=require("./index64.js");function I({themeName:c="calendar",tokens:l,state:e,date:i}){const u=$.useRef(null),{cellProps:f,buttonProps:q,isSelected:n,isOutsideVisibleRange:D,isDisabled:d,formattedDate:y,isInvalid:a}=P.useCalendarCell({date:i},e,u),h=e!=null&&e.highlightedRange?r.isSameDay(i,e==null?void 0:e.highlightedRange.start):n,g=e!=null&&e.highlightedRange?r.isSameDay(i,e==null?void 0:e.highlightedRange.end):n,{locale:m}=F.useLocale(),R=r.getDayOfWeek(i,m),C=n&&(h||R===0||i.day===1),S=n&&(g||R===6||i.day===i.calendar.getDaysInMonth(i)),{focusProps:b,isFocusVisible:p}=v.useFocusRing(),t=o(`${c}.cellContainer`,{...l,isFocusVisible:p}),x=o(`${c}.cell`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isRoundedLeft:C,isRoundedRight:S}),j=o(`${c}.cellDate`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isSelectionStart:h,isSelectionEnd:g});return s.jsx("td",{...f,"aria-disabled":!1,className:t,children:s.jsx("div",{...O.mergeProps(q,b),ref:u,hidden:D,className:x,children:s.jsx("div",{className:j,children:y})})})}module.exports=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index170.js"),$=require("./index181.js");function l(e,t){return t=u.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-g(t))%7;return a<0&&(a+=7),a}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function s(e,t){return c(e)-c(t)}function c(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let r=null;function m(){return r==null&&(r=new Intl.DateTimeFormat().resolvedOptions().timeZone),r}function i(e){return e.subtract({days:e.day-1})}const o=new Map;function y(e){if(Intl.Locale){let n=o.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&$.weekStartData[t]||0}function p(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((f(i(e),t)+n)/7)}exports.compareDate=d;exports.compareTime=s;exports.getDayOfWeek=f;exports.getLocalTimeZone=m;exports.getWeeksInMonth=p;exports.isSameDay=l;exports.startOfMonth=i;
package/index132.mjs CHANGED
@@ -1,29 +1,53 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { isSameDay as g, getDayOfWeek as v } from "./index131.mjs";
3
- import { useCalendarCell as O } from "@react-aria/calendar";
4
- import { useFocusRing as T } from "@react-aria/focus";
5
- import { mergeProps as F } from "@react-aria/utils";
6
- import { useRef as I } from "react";
7
- import { useLocale as L } from "react-aria";
8
- import r from "./index64.mjs";
9
- function w({ themeName: l = "calendar", tokens: n, state: e, date: o }) {
10
- const s = I(null), { cellProps: u, buttonProps: p, isSelected: i, isOutsideVisibleRange: R, isDisabled: d, formattedDate: $, isInvalid: f } = O({ date: o }, e, s), a = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.start) : i, m = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.end) : i, { locale: C } = L(), h = v(o, C), D = i && (a || h === 0 || o.day === 1), y = i && (m || h === 6 || o.day === o.calendar.getDaysInMonth(o)), { focusProps: b, isFocusVisible: x } = T(), S = r(`${l}.cellContainer`, { ...n, isFocusVisible: x }), t = r(`${l}.cell`, {
11
- ...n,
12
- isSelected: i,
13
- isInvalid: f,
14
- isDisabled: d,
15
- isRoundedLeft: D,
16
- isRoundedRight: y
17
- }), P = r(`${l}.cellDate`, {
18
- ...n,
19
- isSelected: i,
20
- isInvalid: f,
21
- isDisabled: d,
22
- isSelectionStart: a,
23
- isSelectionEnd: m
1
+ import { toCalendar as o } from "./index170.mjs";
2
+ import { weekStartData as i } from "./index181.mjs";
3
+ function p(e, a) {
4
+ return a = o(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
5
+ }
6
+ function $(e, a) {
7
+ let t = e.calendar.toJulianDay(e), n = Math.ceil(t + 1 - d(a)) % 7;
8
+ return n < 0 && (n += 7), n;
9
+ }
10
+ function y(e, a) {
11
+ return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
12
+ }
13
+ function g(e, a) {
14
+ return c(e) - c(a);
15
+ }
16
+ function c(e) {
17
+ return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
18
+ }
19
+ let r = null;
20
+ function x() {
21
+ return r == null && (r = new Intl.DateTimeFormat().resolvedOptions().timeZone), r;
22
+ }
23
+ function u(e) {
24
+ return e.subtract({
25
+ days: e.day - 1
24
26
  });
25
- return /* @__PURE__ */ c("td", { ...u, "aria-disabled": !1, className: S, children: /* @__PURE__ */ c("div", { ...F(p, b), ref: s, hidden: R, className: t, children: /* @__PURE__ */ c("div", { className: P, children: $ }) }) });
27
+ }
28
+ const f = /* @__PURE__ */ new Map();
29
+ function l(e) {
30
+ if (Intl.Locale) {
31
+ let t = f.get(e);
32
+ return t || (t = new Intl.Locale(e).maximize().region, t && f.set(e, t)), t;
33
+ }
34
+ let a = e.split("-")[1];
35
+ return a === "u" ? void 0 : a;
36
+ }
37
+ function d(e) {
38
+ let a = l(e);
39
+ return a && i[a] || 0;
40
+ }
41
+ function h(e, a) {
42
+ let t = e.calendar.getDaysInMonth(e);
43
+ return Math.ceil(($(u(e), a) + t) / 7);
26
44
  }
27
45
  export {
28
- w as default
46
+ y as compareDate,
47
+ g as compareTime,
48
+ $ as getDayOfWeek,
49
+ x as getLocalTimeZone,
50
+ h as getWeeksInMonth,
51
+ p as isSameDay,
52
+ u as startOfMonth
29
53
  };
package/index133.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index197.js"),l=require("@react-aria/utils"),u=require("@react-aria/focus");function t(a,e,r){let n=u.useHasTabbableChild(r)?void 0:0;var i;const b=d.generateId(e,(i=a.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),o=l.useLabels({...a,id:b,"aria-labelledby":d.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:l.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=t;
1
+ "use strict";const o=require("react/jsx-runtime"),r=require("./index132.js"),$=require("@react-aria/calendar"),F=require("@react-aria/focus"),I=require("@react-aria/utils"),L=require("react"),T=require("react-aria"),t=require("./index64.js");function V({themeName:i="calendar",tokens:l,state:n,date:e}){const a=L.useRef(null),{cellProps:y,buttonProps:g,isSelected:c,isOutsideVisibleRange:m,isDisabled:u,formattedDate:C,isInvalid:d}=$.useCalendarCell({date:e},n,a),s=n==null?void 0:n.highlightedRange,f=s==null?void 0:s.start,h=s==null?void 0:s.end,D=s&&f?r.isSameDay(e,f):c,q=s&&h?r.isSameDay(e,h):c,{locale:S}=T.useLocale(),R=r.getDayOfWeek(e,S),b=c&&(D||R===0||e.day===1),p=c&&(q||R===6||e.day===e.calendar.getDaysInMonth(e)),{focusProps:x,isFocusVisible:j}=F.useFocusRing(),P=t(`${i}.cellContainer`,{...l,isFocusVisible:j}),v=t(`${i}.cell`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isRoundedLeft:b,isRoundedRight:p}),O=t(`${i}.cellDate`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isSelectionStart:D,isSelectionEnd:q});return o.jsx("td",{...y,"aria-disabled":!1,className:P,children:o.jsx("div",{...I.mergeProps(g,x),ref:a,hidden:m,className:v,children:o.jsx("div",{className:O,children:C})})})}module.exports=V;
package/index133.mjs CHANGED
@@ -1,23 +1,29 @@
1
- import { generateId as i } from "./index197.mjs";
2
- import { useLabels as n, mergeProps as c } from "@react-aria/utils";
3
- import { useHasTabbableChild as f } from "@react-aria/focus";
4
- function m(a, e, l) {
5
- let r = f(l) ? void 0 : 0;
6
- var d;
7
- const b = i(e, (d = a.id) !== null && d !== void 0 ? d : e == null ? void 0 : e.selectedKey, "tabpanel"), o = n({
8
- ...a,
9
- id: b,
10
- "aria-labelledby": i(e, e == null ? void 0 : e.selectedKey, "tab")
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { isSameDay as D, getDayOfWeek as F } from "./index132.mjs";
3
+ import { useCalendarCell as I } from "@react-aria/calendar";
4
+ import { useFocusRing as L } from "@react-aria/focus";
5
+ import { mergeProps as V } from "@react-aria/utils";
6
+ import { useRef as W } from "react";
7
+ import { useLocale as j } from "react-aria";
8
+ import r from "./index64.mjs";
9
+ function B({ themeName: l = "calendar", tokens: i, state: c, date: e }) {
10
+ const t = W(null), { cellProps: $, buttonProps: C, isSelected: s, isOutsideVisibleRange: R, isDisabled: a, formattedDate: g, isInvalid: d } = I({ date: e }, c, t), o = c == null ? void 0 : c.highlightedRange, f = o == null ? void 0 : o.start, m = o == null ? void 0 : o.end, u = o && f ? D(e, f) : s, p = o && m ? D(e, m) : s, { locale: y } = j(), h = F(e, y), b = s && (u || h === 0 || e.day === 1), x = s && (p || h === 6 || e.day === e.calendar.getDaysInMonth(e)), { focusProps: S, isFocusVisible: P } = L(), v = r(`${l}.cellContainer`, { ...i, isFocusVisible: P }), O = r(`${l}.cell`, {
11
+ ...i,
12
+ isSelected: s,
13
+ isInvalid: d,
14
+ isDisabled: a,
15
+ isRoundedLeft: b,
16
+ isRoundedRight: x
17
+ }), T = r(`${l}.cellDate`, {
18
+ ...i,
19
+ isSelected: s,
20
+ isInvalid: d,
21
+ isDisabled: a,
22
+ isSelectionStart: u,
23
+ isSelectionEnd: p
11
24
  });
12
- return {
13
- tabPanelProps: c(o, {
14
- tabIndex: r,
15
- role: "tabpanel",
16
- "aria-describedby": a["aria-describedby"],
17
- "aria-details": a["aria-details"]
18
- })
19
- };
25
+ return /* @__PURE__ */ n("td", { ...$, "aria-disabled": !1, className: v, children: /* @__PURE__ */ n("div", { ...V(C, S), ref: t, hidden: R, className: O, children: /* @__PURE__ */ n("div", { className: T, children: g }) }) });
20
26
  }
21
27
  export {
22
- m as useTabPanel
28
+ B as default
23
29
  };
package/index134.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@react-aria/utils"),O=require("@react-aria/focus"),m=require("./index190.js");function S(s,o){let{elementType:r="button",isDisabled:e,onPress:l,onPressStart:u,onPressEnd:P,onPressUp:p,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:f,onClick:i,href:g,target:h,rel:y,type:d="button"}=s,n;r==="button"?n={type:d,disabled:e}:n={role:"button",tabIndex:e?void 0:0,href:r==="a"&&e?void 0:g,target:r==="a"?h:void 0,type:r==="input"?d:void 0,disabled:r==="input"?e:void 0,"aria-disabled":!e||r==="input"?void 0:e,rel:r==="a"?y:void 0};let{pressProps:C,isPressed:x}=m.usePress({onPressStart:u,onPressEnd:P,onPressChange:c,onPress:l,onPressUp:p,isDisabled:e,preventFocusOnPress:b,ref:o}),{focusableProps:t}=O.useFocusable(s,o);f&&(t.tabIndex=e?-1:t.tabIndex);let D=a.mergeProps(t,C,a.filterDOMProps(s,{labelable:!0}));return{isPressed:x,buttonProps:a.mergeProps(n,D,{"aria-haspopup":s["aria-haspopup"],"aria-expanded":s["aria-expanded"],"aria-controls":s["aria-controls"],"aria-pressed":s["aria-pressed"],onClick:F=>{i&&(i(F),console.warn("onClick is deprecated, please use onPress"))}})}}exports.useButton=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index199.js"),l=require("@react-aria/utils"),u=require("@react-aria/focus");function t(a,e,r){let n=u.useHasTabbableChild(r)?void 0:0;var i;const b=d.generateId(e,(i=a.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),o=l.useLabels({...a,id:b,"aria-labelledby":d.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:l.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=t;