@okam/stack-ui 1.27.0 → 1.27.3

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 (361) 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 +1 -1
  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 +2 -1
  34. package/index12.mjs +45 -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 +1 -1
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index128.js +1 -1
  44. package/index128.mjs +1 -1
  45. package/index13.js +1 -2
  46. package/index13.mjs +17 -20
  47. package/index131.js +1 -1
  48. package/index131.mjs +1 -1
  49. package/index132.js +1 -1
  50. package/index132.mjs +1 -1
  51. package/index134.js +1 -1
  52. package/index134.mjs +1 -1
  53. package/index135.js +1 -1
  54. package/index135.mjs +1 -1
  55. package/index138.js +1 -1
  56. package/index138.mjs +1 -1
  57. package/index139.js +1 -1
  58. package/index139.mjs +3 -3
  59. package/index14.js +1 -1
  60. package/index14.mjs +18 -17
  61. package/index140.js +1 -1
  62. package/index140.mjs +2 -2
  63. package/index15.js +1 -1
  64. package/index15.mjs +16 -83
  65. package/index16.js +1 -1
  66. package/index16.mjs +81 -28
  67. package/index17.js +1 -1
  68. package/index17.mjs +30 -32
  69. package/index174.js +1 -1
  70. package/index174.mjs +2 -2
  71. package/index175.js +1 -1
  72. package/index175.mjs +2 -2
  73. package/index176.js +1 -1
  74. package/index176.mjs +2 -2
  75. package/index177.js +1 -1
  76. package/index177.mjs +2 -2
  77. package/index178.js +1 -1
  78. package/index178.mjs +3 -3
  79. package/index179.js +1 -1
  80. package/index179.mjs +4 -4
  81. package/index18.js +1 -1
  82. package/index18.mjs +33 -31
  83. package/index180.js +1 -1
  84. package/index180.mjs +1 -1
  85. package/index181.js +1 -1
  86. package/index181.mjs +2 -2
  87. package/index182.js +1 -1
  88. package/index182.mjs +1 -1
  89. package/index183.js +1 -1
  90. package/index183.mjs +2 -2
  91. package/index184.js +1 -1
  92. package/index184.mjs +1 -1
  93. package/index185.js +1 -1
  94. package/index185.mjs +2 -2
  95. package/index186.js +1 -1
  96. package/index186.mjs +1 -1
  97. package/index187.js +1 -1
  98. package/index187.mjs +2 -2
  99. package/index188.js +1 -1
  100. package/index188.mjs +1 -1
  101. package/index19.js +1 -1
  102. package/index19.mjs +30 -33
  103. package/index191.js +1 -1
  104. package/index191.mjs +4 -4
  105. package/index192.js +1 -1
  106. package/index192.mjs +2 -2
  107. package/index193.js +1 -1
  108. package/index193.mjs +5 -5
  109. package/index194.js +1 -1
  110. package/index194.mjs +4 -4
  111. package/index195.js +1 -1
  112. package/index195.mjs +5 -5
  113. package/index196.js +1 -1
  114. package/index196.mjs +5 -5
  115. package/index197.js +1 -1
  116. package/index197.mjs +2 -2
  117. package/index2.js +1 -1
  118. package/index2.mjs +20 -20
  119. package/index20.js +1 -1
  120. package/index20.mjs +32 -67
  121. package/index208.js +1 -1
  122. package/index208.mjs +2 -2
  123. package/index21.js +1 -1
  124. package/index21.mjs +61 -58
  125. package/index210.js +1 -1
  126. package/index210.mjs +1 -1
  127. package/index213.js +1 -1
  128. package/index213.mjs +1 -1
  129. package/index22.js +1 -1
  130. package/index22.mjs +66 -52
  131. package/index224.js +1 -1
  132. package/index224.mjs +123 -306
  133. package/index225.js +1 -1
  134. package/index225.mjs +173 -186
  135. package/index226.js +1 -1
  136. package/index226.mjs +9 -8
  137. package/index227.js +1 -1
  138. package/index227.mjs +3 -26
  139. package/index228.js +1 -1
  140. package/index228.mjs +34 -53
  141. package/index229.js +1 -1
  142. package/index229.mjs +5 -46
  143. package/index23.js +1 -1
  144. package/index23.mjs +37 -41
  145. package/index230.js +1 -1
  146. package/index230.mjs +28 -123
  147. package/index231.js +1 -1
  148. package/index231.mjs +6 -130
  149. package/index232.js +1 -1
  150. package/index232.mjs +293 -159
  151. package/index233.js +1 -1
  152. package/index233.mjs +192 -9
  153. package/index234.js +1 -1
  154. package/index234.mjs +8 -3
  155. package/index235.js +1 -1
  156. package/index235.mjs +25 -35
  157. package/index236.js +1 -1
  158. package/index236.mjs +55 -5
  159. package/index237.js +1 -1
  160. package/index237.mjs +44 -27
  161. package/index238.js +1 -1
  162. package/index238.mjs +124 -6
  163. package/index24.js +1 -1
  164. package/index24.mjs +57 -20
  165. package/index242.js +1 -1
  166. package/index242.mjs +1 -1
  167. package/index243.js +1 -1
  168. package/index243.mjs +1 -1
  169. package/index245.js +1 -1
  170. package/index245.mjs +1 -1
  171. package/index246.js +1 -1
  172. package/index246.mjs +2 -2
  173. package/index248.js +1 -1
  174. package/index248.mjs +1 -1
  175. package/index249.js +1 -1
  176. package/index249.mjs +3 -3
  177. package/index25.js +1 -1
  178. package/index25.mjs +20 -50
  179. package/index250.js +1 -1
  180. package/index250.mjs +2 -2
  181. package/index251.js +1 -1
  182. package/index251.mjs +2 -23
  183. package/index252.js +1 -1
  184. package/index252.mjs +23 -2
  185. package/index26.js +1 -1
  186. package/index26.mjs +50 -17
  187. package/index260.js +1 -1
  188. package/index260.mjs +6 -2
  189. package/index261.mjs +2 -2
  190. package/index262.mjs +2 -2
  191. package/index263.mjs +2 -2
  192. package/index264.js +1 -1
  193. package/index264.mjs +2 -72
  194. package/index265.js +1 -1
  195. package/index265.mjs +72 -2
  196. package/index266.mjs +2 -2
  197. package/index267.js +1 -1
  198. package/index267.mjs +2 -19
  199. package/index268.js +1 -1
  200. package/index268.mjs +19 -2
  201. package/index269.js +1 -1
  202. package/index269.mjs +2 -6
  203. package/index27.js +1 -1
  204. package/index27.mjs +16 -32
  205. package/index28.js +1 -1
  206. package/index28.mjs +32 -23
  207. package/index29.js +1 -1
  208. package/index29.mjs +24 -8
  209. package/index3.js +1 -1
  210. package/index3.mjs +1 -1
  211. package/index30.js +1 -1
  212. package/index30.mjs +8 -32
  213. package/index31.js +1 -1
  214. package/index31.mjs +29 -30
  215. package/index32.js +1 -1
  216. package/index32.mjs +28 -98
  217. package/index33.js +1 -1
  218. package/index33.mjs +102 -8
  219. package/index34.js +1 -1
  220. package/index34.mjs +8 -46
  221. package/index35.js +1 -1
  222. package/index35.mjs +46 -18
  223. package/index36.js +2 -1
  224. package/index36.mjs +19 -6
  225. package/index37.js +1 -1
  226. package/index37.mjs +6 -46
  227. package/index38.js +1 -1
  228. package/index38.mjs +45 -23
  229. package/index39.js +2 -1
  230. package/index39.mjs +26 -5
  231. package/index4.js +1 -1
  232. package/index4.mjs +5 -5
  233. package/index40.js +1 -1
  234. package/index40.mjs +4 -7
  235. package/index41.js +1 -1
  236. package/index41.mjs +5 -5
  237. package/index42.js +1 -1
  238. package/index42.mjs +8 -5
  239. package/index43.js +1 -1
  240. package/index43.mjs +2 -2
  241. package/index44.js +1 -1
  242. package/index44.mjs +1 -1
  243. package/index45.js +1 -1
  244. package/index45.mjs +4 -4
  245. package/index46.js +1 -1
  246. package/index46.mjs +3 -9
  247. package/index47.js +1 -1
  248. package/index47.mjs +7 -9
  249. package/index48.js +1 -1
  250. package/index48.mjs +9 -9
  251. package/index49.js +1 -1
  252. package/index49.mjs +13 -46
  253. package/index50.js +1 -1
  254. package/index50.mjs +46 -8
  255. package/index51.js +1 -1
  256. package/index51.mjs +6 -69
  257. package/index52.js +1 -1
  258. package/index52.mjs +71 -8
  259. package/index53.js +1 -1
  260. package/index53.mjs +7 -12
  261. package/index54.js +1 -1
  262. package/index54.mjs +12 -9
  263. package/index55.js +1 -1
  264. package/index55.mjs +10 -17
  265. package/index56.js +1 -1
  266. package/index56.mjs +17 -13
  267. package/index57.js +1 -1
  268. package/index57.mjs +5 -5
  269. package/index58.js +1 -1
  270. package/index58.mjs +6 -6
  271. package/index59.js +1 -1
  272. package/index59.mjs +10 -8
  273. package/index6.js +1 -1
  274. package/index6.mjs +1 -1
  275. package/index60.js +1 -1
  276. package/index60.mjs +5 -5
  277. package/index61.js +1 -1
  278. package/index61.mjs +6 -8
  279. package/index62.js +1 -1
  280. package/index62.mjs +13 -14
  281. package/index63.js +1 -2
  282. package/index63.mjs +14 -23
  283. package/index64.js +1 -1
  284. package/index64.mjs +21 -15
  285. package/index65.js +1 -1
  286. package/index65.mjs +16 -14
  287. package/index66.js +1 -1
  288. package/index66.mjs +13 -40
  289. package/index67.js +1 -1
  290. package/index67.mjs +39 -36
  291. package/index68.js +1 -1
  292. package/index68.mjs +37 -11
  293. package/index69.js +1 -1
  294. package/index69.mjs +11 -10
  295. package/index7.js +1 -1
  296. package/index7.mjs +2 -2
  297. package/index70.js +1 -1
  298. package/index70.mjs +10 -13
  299. package/index71.js +2 -1
  300. package/index71.mjs +15 -2
  301. package/index72.js +1 -1
  302. package/index72.mjs +11 -8
  303. package/index73.js +1 -2
  304. package/index73.mjs +1 -7
  305. package/index74.js +1 -1
  306. package/index74.mjs +7 -6
  307. package/index75.js +1 -1
  308. package/index75.mjs +6 -6
  309. package/index76.js +2 -1
  310. package/index76.mjs +8 -25
  311. package/index77.js +2 -1
  312. package/index77.mjs +8 -2
  313. package/index78.js +1 -6
  314. package/index78.mjs +25 -94
  315. package/index79.js +1 -1
  316. package/index79.mjs +2 -69
  317. package/index8.js +1 -1
  318. package/index8.mjs +5 -5
  319. package/index80.js +6 -1
  320. package/index80.mjs +82 -29
  321. package/index81.js +1 -42
  322. package/index81.mjs +64 -65
  323. package/index82.js +1 -1
  324. package/index82.mjs +32 -150
  325. package/index83.js +42 -9
  326. package/index83.mjs +65 -52
  327. package/index84.js +1 -1
  328. package/index84.mjs +145 -31
  329. package/index85.js +9 -1
  330. package/index85.mjs +54 -10
  331. package/index86.js +1 -1
  332. package/index86.mjs +38 -28
  333. package/index87.js +1 -1
  334. package/index87.mjs +12 -5
  335. package/index88.js +1 -12
  336. package/index88.mjs +31 -36
  337. package/index89.js +1 -1
  338. package/index89.mjs +6 -29
  339. package/index9.js +1 -1
  340. package/index9.mjs +4 -4
  341. package/index90.js +12 -1
  342. package/index90.mjs +39 -12
  343. package/index91.js +1 -7
  344. package/index91.mjs +23 -13
  345. package/index92.js +1 -15
  346. package/index92.mjs +9 -67
  347. package/index93.js +7 -1
  348. package/index93.mjs +17 -5
  349. package/index94.js +13 -14
  350. package/index94.mjs +63 -17
  351. package/index95.js +1 -1
  352. package/index95.mjs +7 -42
  353. package/index96.js +16 -1
  354. package/index96.mjs +24 -44
  355. package/index97.js +1 -1
  356. package/index97.mjs +42 -48
  357. package/index98.js +1 -1
  358. package/index98.mjs +45 -17
  359. package/index99.js +1 -2
  360. package/index99.mjs +47 -21
  361. package/package.json +1 -1
package/index11.mjs CHANGED
@@ -2,9 +2,9 @@
2
2
  import { jsx as a, jsxs as R } from "react/jsx-runtime";
3
3
  import { useRef as d, useState as v } from "react";
4
4
  import { VisuallyHidden as j } from "react-aria";
5
- import { SwiperControllerContextProvider as w } from "./index100.mjs";
6
- import A from "./index24.mjs";
7
- import { CarouselPrevNavigationButton as M, CarouselNextNavigationButton as W } from "./index101.mjs";
5
+ import { SwiperControllerContextProvider as w } from "./index72.mjs";
6
+ import A from "./index25.mjs";
7
+ import { CarouselPrevNavigationButton as M, CarouselNextNavigationButton as W } from "./index12.mjs";
8
8
  import y from "./index102.mjs";
9
9
  import E from "./index103.mjs";
10
10
  const J = (f) => {
package/index112.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@react-aria/overlays"),f=require("react"),a=require("./index64.js");function v(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const m=v(f);function j({themeName:e="datePicker",tokens:o,...r}){const s=m.useRef(null),{state:c,children:i}={...r},{popoverProps:l,underlayProps:u}=n.usePopover({...r,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,o),p=a(`${e}.calendarPopover`,o);return t.jsxs(n.Overlay,{children:[t.jsx("div",{...u,className:d}),t.jsxs("div",{...l,ref:s,className:p,children:[t.jsx(n.DismissButton,{onDismiss:c.close}),i,t.jsx(n.DismissButton,{onDismiss:c.close})]})]})}exports.CalendarPopover=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@react-aria/overlays"),f=require("react"),a=require("./index65.js");function v(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const m=v(f);function j({themeName:e="datePicker",tokens:o,...r}){const s=m.useRef(null),{state:c,children:i}={...r},{popoverProps:l,underlayProps:u}=n.usePopover({...r,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,o),p=a(`${e}.calendarPopover`,o);return t.jsxs(n.Overlay,{children:[t.jsx("div",{...u,className:d}),t.jsxs("div",{...l,ref:s,className:p,children:[t.jsx(n.DismissButton,{onDismiss:c.close}),i,t.jsx(n.DismissButton,{onDismiss:c.close})]})]})}exports.CalendarPopover=j;
package/index112.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
3
3
  import * as P from "react";
4
- import t from "./index64.mjs";
4
+ import t from "./index65.mjs";
5
5
  function D({ themeName: r = "datePicker", tokens: s, ...n }) {
6
6
  const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
7
7
  {
package/index113.js CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),d=require("./index115.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),q=require("./index64.js");function p({segment:e,state:i}){const r=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,r),c=q("datePicker.dateSegment");return s.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsxs("div",{...t,ref:r,className:c,children:[s.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function x(e){const{locale:i}=u.useLocale(),r=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,r,t);return s.jsx("div",{...c,ref:t,className:"flex",children:r.segments.map((l,o)=>s.jsx(p,{segment:l,state:r},o))})}module.exports=x;
1
+ "use strict";const s=require("react/jsx-runtime"),d=require("./index115.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),q=require("./index65.js");function p({segment:e,state:i}){const r=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,r),c=q("datePicker.dateSegment");return s.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:s.jsxs("div",{...t,ref:r,className:c,children:[s.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function x(e){const{locale:i}=u.useLocale(),r=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,r,t);return s.jsx("div",{...c,ref:t,className:"flex",children:r.segments.map((l,o)=>s.jsx(p,{segment:l,state:r},o))})}module.exports=x;
package/index113.mjs CHANGED
@@ -5,7 +5,7 @@ import { useLocale as u } from "@react-aria/i18n";
5
5
  import { useDateFieldState as h } from "@react-stately/datepicker";
6
6
  import { useRef as s } from "react";
7
7
  import { FocusRing as p } from "react-aria";
8
- import x from "./index64.mjs";
8
+ import x from "./index65.mjs";
9
9
  function P({ segment: e, state: i }) {
10
10
  const t = s(null), { segmentProps: o } = f(e, i, t), l = x("datePicker.dateSegment");
11
11
  return /* @__PURE__ */ r(p, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c("div", { ...o, ref: t, className: l, children: [
package/index114.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),v=require("./index115.js"),R=require("@react-aria/calendar"),P=require("@react-aria/i18n"),m=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),h=require("./index6.js"),x=require("./index13.js"),p=require("./index3.js"),w=require("./index116.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=P.useLocale(),o=m.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=R.useRangeCalendar({...t},o,d),C=c(`${a}.container`,r),g=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:d,className:C,children:[e.jsxs("div",{className:g,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:f,children:[e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(x,{icon:((l=n==null?void 0:n.buttonPrev)==null?void 0:l.icon)??"ArrowLeft"})}),e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(x,{icon:((u=n==null?void 0:n.buttonNext)==null?void 0:u.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
1
+ "use strict";const e=require("react/jsx-runtime"),v=require("./index115.js"),R=require("@react-aria/calendar"),P=require("@react-aria/i18n"),m=require("@react-stately/calendar"),T=require("react"),c=require("./index65.js"),h=require("./index6.js"),x=require("./index14.js"),p=require("./index3.js"),w=require("./index116.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=P.useLocale(),o=m.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=R.useRangeCalendar({...t},o,d),C=c(`${a}.container`,r),g=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:d,className:C,children:[e.jsxs("div",{className:g,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:f,children:[e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(x,{icon:((l=n==null?void 0:n.buttonPrev)==null?void 0:l.icon)??"ArrowLeft"})}),e.jsx(h.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(x,{icon:((u=n==null?void 0:n.buttonNext)==null?void 0:u.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
package/index114.mjs CHANGED
@@ -4,9 +4,9 @@ import { useRangeCalendar as T } from "@react-aria/calendar";
4
4
  import { useLocale as y } from "@react-aria/i18n";
5
5
  import { useRangeCalendarState as P } from "@react-stately/calendar";
6
6
  import { useRef as B } from "react";
7
- import c from "./index64.mjs";
7
+ import c from "./index65.mjs";
8
8
  import p from "./index6.mjs";
9
- import h from "./index13.mjs";
9
+ import h from "./index14.mjs";
10
10
  import j from "./index3.mjs";
11
11
  import w from "./index116.mjs";
12
12
  function J({ buttons: e, tokens: a, customTheme: A, themeName: n = "calendar", ...s }) {
package/index116.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),b=require("./index133.js"),m=require("@react-aria/calendar"),p=require("@react-aria/i18n"),a=require("./index64.js"),y=require("./index134.js");function g({themeName:c="calendar",customTheme:$,tokens:l,state:n,...i}){const{locale:o}=p.useLocale(),{gridProps:t,headerProps:d,weekDays:h}=m.useCalendarGrid({...i},n),u=b.getWeeksInMonth(n.visibleRange.start,o),j=a(`${c}.calendarTable`,l),q=a(`${c}.dayLabel`,l);return e.jsxs("table",{...t,cellPadding:"0",className:j,children:[e.jsx("thead",{...d,children:e.jsx("tr",{children:h.map(r=>e.jsx("th",{className:q,children:r},`${r}`))})}),e.jsx("tbody",{children:[...new Array(u).keys()].map(r=>e.jsx("tr",{children:n.getDatesInWeek(r).map((s,x)=>s?e.jsx(y,{state:n,date:s},s==null?void 0:s.day):e.jsx("td",{},x))},r))})]})}module.exports=g;
1
+ "use strict";const e=require("react/jsx-runtime"),b=require("./index133.js"),m=require("@react-aria/calendar"),p=require("@react-aria/i18n"),a=require("./index65.js"),y=require("./index134.js");function g({themeName:c="calendar",customTheme:$,tokens:l,state:n,...i}){const{locale:o}=p.useLocale(),{gridProps:t,headerProps:d,weekDays:h}=m.useCalendarGrid({...i},n),u=b.getWeeksInMonth(n.visibleRange.start,o),j=a(`${c}.calendarTable`,l),q=a(`${c}.dayLabel`,l);return e.jsxs("table",{...t,cellPadding:"0",className:j,children:[e.jsx("thead",{...d,children:e.jsx("tr",{children:h.map(r=>e.jsx("th",{className:q,children:r},`${r}`))})}),e.jsx("tbody",{children:[...new Array(u).keys()].map(r=>e.jsx("tr",{children:n.getDatesInWeek(r).map((s,x)=>s?e.jsx(y,{state:n,date:s},s==null?void 0:s.day):e.jsx("td",{},x))},r))})]})}module.exports=g;
package/index116.mjs CHANGED
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
2
  import { getWeeksInMonth as y } from "./index133.mjs";
3
3
  import { useCalendarGrid as $ } from "@react-aria/calendar";
4
4
  import { useLocale as g } from "@react-aria/i18n";
5
- import c from "./index64.mjs";
5
+ import c from "./index65.mjs";
6
6
  import C from "./index134.mjs";
7
7
  function D({ themeName: l = "calendar", customTheme: T, tokens: n, state: o, ...s }) {
8
8
  const { locale: m } = g(), { gridProps: t, headerProps: i, weekDays: d } = $({ ...s }, o), h = y(o.visibleRange.start, m), p = c(`${l}.calendarTable`, n), f = c(`${l}.dayLabel`, n);
package/index118.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),r=require("react-aria"),l=require("./index24.js"),d=o=>{const{children:s,themeName:u,tokens:c,customTheme:i}=o,t=a.useRef(null),{dialogProps:n}=r.useDialog(o,t);return e.jsx(l.BoxWithForwardRef,{themeName:`${u}.dialog`,tokens:c,customTheme:i,ref:t,"aria-modal":!0,...n,children:e.jsx(r.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:e.jsx(r.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:s})})})};module.exports=d;
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),r=require("react-aria"),l=require("./index25.js"),d=o=>{const{children:s,themeName:u,tokens:c,customTheme:i}=o,t=a.useRef(null),{dialogProps:n}=r.useDialog(o,t);return e.jsx(l.BoxWithForwardRef,{themeName:`${u}.dialog`,tokens:c,customTheme:i,ref:t,"aria-modal":!0,...n,children:e.jsx(r.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:e.jsx(r.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:s})})})};module.exports=d;
package/index118.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import c from "react";
3
3
  import { useDialog as n, FocusRing as m, FocusScope as l } from "react-aria";
4
- import { BoxWithForwardRef as f } from "./index24.mjs";
4
+ import { BoxWithForwardRef as f } from "./index25.mjs";
5
5
  const p = (e) => {
6
6
  const { children: r, themeName: u, tokens: s, customTheme: a } = e, t = c.useRef(null), { dialogProps: i } = n(e, t);
7
7
  return /* @__PURE__ */ o(
package/index119.js CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),m=require("react"),h=require("react-aria"),o=require("./index24.js"),q=a=>{const{themeName:e,tokens:r,customTheme:n,children:c,state:u,...l}=a,t=m.useRef(null),{modalProps:i,underlayProps:d}=h.useModalOverlay(l,u,t);return s.jsx(o.default,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...d,children:s.jsx(o.BoxWithForwardRef,{ref:t,themeName:`${e}.overlay`,tokens:r,...i,children:c})})};module.exports=q;
1
+ "use strict";const s=require("react/jsx-runtime"),m=require("react"),h=require("react-aria"),o=require("./index25.js"),q=a=>{const{themeName:e,tokens:r,customTheme:n,children:c,state:u,...l}=a,t=m.useRef(null),{modalProps:i,underlayProps:d}=h.useModalOverlay(l,u,t);return s.jsx(o.default,{themeName:`${e}.underlay`,tokens:r,customTheme:n,...d,children:s.jsx(o.BoxWithForwardRef,{ref:t,themeName:`${e}.overlay`,tokens:r,...i,children:c})})};module.exports=q;
package/index119.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as u } from "react";
3
3
  import { useModalOverlay as c } from "react-aria";
4
- import h, { BoxWithForwardRef as i } from "./index24.mjs";
4
+ import h, { BoxWithForwardRef as i } from "./index25.mjs";
5
5
  const N = (m) => {
6
6
  const { themeName: e, tokens: o, customTheme: a, children: s, state: l, ...n } = m, r = u(null), { modalProps: d, underlayProps: f } = c(n, l, r);
7
7
  return /* @__PURE__ */ t(h, { themeName: `${e}.underlay`, tokens: o, customTheme: a, ...f, children: /* @__PURE__ */ t(i, { ref: r, themeName: `${e}.overlay`, tokens: o, ...d, children: s }) });
package/index12.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";const t=require("react/jsx-runtime"),i=require("isomorphic-dompurify"),l=require("./index3.js"),n=({content:e,themeName:r="wysiwyg",...s})=>t.jsx(l.default,{...s,themeName:r,dangerouslySetInnerHTML:{__html:i.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}});module.exports=n;
1
+ "use client";
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),v=require("react"),g=require("react-aria"),N=require("./index72.js"),b=require("./index6.js"),h=require("./index14.js"),d=v.forwardRef((n,i)=>{const{themeName:a,tokens:u,customTheme:e,children:l,onSubmit:o,...t}=n,{isDisabled:s}=t,{pressProps:c}=g.usePress({onPress:()=>o==null?void 0:o()});return r.jsx(g.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:r.jsx(b.ButtonWithForwardRef,{themeName:a,tokens:u,ref:i,...c,...t,"aria-disabled":s,children:l})})}),x=v.forwardRef((n,i)=>{const{children:a,...u}=n,{controller:e}=N.useSwiperController(),{params:l,activeIndex:o=1,slides:t}=e??{},{slidesPerView:s=1,loop:c}=l??{},f=Math.round(typeof s=="number"?(o+1)/s:o),m=Math.round(t&&typeof s=="number"?t.length/s:(t==null?void 0:t.length)??1),w=f<m,C=!c&&!w;return r.jsx(d,{onSubmit:()=>e==null?void 0:e.slideNext(),...u,ref:i,isDisabled:C,children:a||r.jsx(h,{icon:"ArrowRight"})})}),p=v.forwardRef((n,i)=>{const{children:a,...u}=n,{controller:e}=N.useSwiperController(),{params:l,activeIndex:o=1}=e??{},{loop:t}=l??{},c=!t&&!(o!==0);return r.jsx(d,{onSubmit:()=>e==null?void 0:e.slidePrev(),...u,ref:i,isDisabled:c,children:a||r.jsx(h,{icon:"ArrowLeft"})})});d.displayName="CarouselNavigationButton";x.displayName="CarouselNextNavigationButton";p.displayName="CarouselPrevNavigationButton";exports.CarouselNavigationButton=d;exports.CarouselNextNavigationButton=x;exports.CarouselPrevNavigationButton=p;exports.default=d;
package/index12.mjs CHANGED
@@ -1,19 +1,49 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import t from "isomorphic-dompurify";
3
- import a from "./index3.mjs";
4
- const f = ({ content: r, themeName: o = "wysiwyg", ...e }) => /* @__PURE__ */ l(
5
- a,
6
- {
7
- ...e,
8
- themeName: o,
9
- dangerouslySetInnerHTML: {
10
- __html: t.sanitize(r, {
11
- ADD_TAGS: ["iframe"],
12
- ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling", "target"]
13
- })
14
- }
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { forwardRef as u } from "react";
4
+ import { usePress as f, FocusRing as b } from "react-aria";
5
+ import { useSwiperController as p } from "./index72.mjs";
6
+ import { ButtonWithForwardRef as w } from "./index6.mjs";
7
+ import h from "./index14.mjs";
8
+ const m = u(
9
+ (i, n) => {
10
+ const { themeName: a, tokens: l, customTheme: t, children: c, onSubmit: e, ...o } = i, { isDisabled: s } = o, { pressProps: d } = f({
11
+ onPress: () => e == null ? void 0 : e()
12
+ });
13
+ return /* @__PURE__ */ r(b, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ r(
14
+ w,
15
+ {
16
+ themeName: a,
17
+ tokens: l,
18
+ ref: n,
19
+ ...d,
20
+ ...o,
21
+ "aria-disabled": s,
22
+ children: c
23
+ }
24
+ ) });
25
+ }
26
+ ), x = u(
27
+ (i, n) => {
28
+ const { children: a, ...l } = i, { controller: t } = p(), { params: c, activeIndex: e = 1, slides: o } = t ?? {}, { slidesPerView: s = 1, loop: d } = c ?? {}, N = Math.round(
29
+ typeof s == "number" ? (e + 1) / s : e
30
+ ), g = Math.round(
31
+ o && typeof s == "number" ? o.length / s : (o == null ? void 0 : o.length) ?? 1
32
+ ), v = N < g;
33
+ return /* @__PURE__ */ r(m, { onSubmit: () => t == null ? void 0 : t.slideNext(), ...l, ref: n, isDisabled: !d && !v, children: a || /* @__PURE__ */ r(h, { icon: "ArrowRight" }) });
34
+ }
35
+ ), P = u(
36
+ (i, n) => {
37
+ const { children: a, ...l } = i, { controller: t } = p(), { params: c, activeIndex: e = 1 } = t ?? {}, { loop: o } = c ?? {};
38
+ return /* @__PURE__ */ r(m, { onSubmit: () => t == null ? void 0 : t.slidePrev(), ...l, ref: n, isDisabled: !o && !(e !== 0), children: a || /* @__PURE__ */ r(h, { icon: "ArrowLeft" }) });
15
39
  }
16
40
  );
41
+ m.displayName = "CarouselNavigationButton";
42
+ x.displayName = "CarouselNextNavigationButton";
43
+ P.displayName = "CarouselPrevNavigationButton";
17
44
  export {
18
- f as default
45
+ m as CarouselNavigationButton,
46
+ x as CarouselNextNavigationButton,
47
+ P as CarouselPrevNavigationButton,
48
+ m as default
19
49
  };
package/index121.js CHANGED
@@ -1 +1 @@
1
- "use strict";const f=require("react/jsx-runtime"),t=require("react-spring"),y=require("./index64.js"),m=({isVisible:e,children:i,themeName:r,tokens:n,customTheme:s,...o})=>{const c=t.useTransition(e,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:t.config.stiff}),a=y(r,n,s);return c((u,p)=>p&&f.jsx(t.animated.div,{className:a,style:u,...o,children:i}))};module.exports=m;
1
+ "use strict";const f=require("react/jsx-runtime"),t=require("react-spring"),y=require("./index65.js"),m=({isVisible:e,children:i,themeName:r,tokens:n,customTheme:s,...o})=>{const c=t.useTransition(e,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:t.config.stiff}),a=y(r,n,s);return c((u,p)=>p&&f.jsx(t.animated.div,{className:a,style:u,...o,children:i}))};module.exports=m;
package/index121.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { useTransition as p, config as y, animated as d } from "react-spring";
3
- import l from "./index64.mjs";
3
+ import l from "./index65.mjs";
4
4
  const T = ({ isVisible: t, children: o, themeName: e, tokens: i, customTheme: n, ...r }) => {
5
5
  const a = p(t, {
6
6
  from: { opacity: 0 },
package/index122.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),d=require("./index67.js"),l=require("./index24.js"),h=require("./index33.js"),x=c=>{var u;const{themeName:t,tokens:n,customTheme:r,children:i,beforeTabContent:a,afterTabContent:o}=c,{tabState:s,defaultSelectedKey:m}=d.useMenu();return e.jsxs(e.Fragment,{children:[e.jsx(l.default,{themeName:`${t}.wrapper`,tokens:n,customTheme:r,children:i}),((u=s==null?void 0:s.selectedKey)==null?void 0:u.toString())===m?null:e.jsxs(l.default,{themeName:`${t}.tabWrapper`,tokens:n,customTheme:r,children:[a!==null&&a,e.jsx(h,{themeName:`${t}.tabPanel`,tokens:n,customTheme:r}),o!==null&&o]})]})};module.exports=x;
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("./index68.js"),l=require("./index25.js"),h=require("./index34.js"),x=c=>{var u;const{themeName:t,tokens:n,customTheme:r,children:i,beforeTabContent:a,afterTabContent:o}=c,{tabState:s,defaultSelectedKey:m}=d.useMenu();return e.jsxs(e.Fragment,{children:[e.jsx(l.default,{themeName:`${t}.wrapper`,tokens:n,customTheme:r,children:i}),((u=s==null?void 0:s.selectedKey)==null?void 0:u.toString())===m?null:e.jsxs(l.default,{themeName:`${t}.tabWrapper`,tokens:n,customTheme:r,children:[a!==null&&a,e.jsx(h,{themeName:`${t}.tabPanel`,tokens:n,customTheme:r}),o!==null&&o]})]})};module.exports=x;
package/index122.mjs CHANGED
@@ -1,7 +1,7 @@
1
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 "./index24.mjs";
4
- import d from "./index33.mjs";
2
+ import { useMenu as h } from "./index68.mjs";
3
+ import c from "./index25.mjs";
4
+ import d from "./index34.mjs";
5
5
  const T = (i) => {
6
6
  var a;
7
7
  const { themeName: e, tokens: t, customTheme: n, children: p, beforeTabContent: o, afterTabContent: m } = i, { tabState: r, defaultSelectedKey: u } = h();
package/index124.js CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),o=require("./index135.js"),l=require("react"),d=require("./index121.js"),b=require("./index24.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;
1
+ "use strict";const t=require("react/jsx-runtime"),o=require("./index135.js"),l=require("react"),d=require("./index121.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
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTabPanel as m } from "./index135.mjs";
3
3
  import c from "react";
4
4
  import p from "./index121.mjs";
5
- import { BoxWithForwardRef as s } from "./index24.mjs";
5
+ import { BoxWithForwardRef as s } from "./index25.mjs";
6
6
  function x({ state: e, customTheme: a, themeName: i = "tabPanel", tokens: n, ...f }) {
7
7
  var t;
8
8
  const r = c.useRef(null), { tabPanelProps: l } = m(f, e, r);
package/index125.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index13.js"),l=require("./index45.js"),t=i.forwardRef((r,s)=>{const{themeName:o="alerts.closeBtn",...n}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:o,...n,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),c=require("./index6.js"),u=require("./index14.js"),l=require("./index46.js"),t=i.forwardRef((r,s)=>{const{themeName:o="alerts.closeBtn",...n}=r;return e.jsx(c.ButtonWithForwardRef,{ref:s,themeName:o,...n,children:e.jsx(u,{icon:e.jsx(l,{})})})});t.displayName="AlertsCloseButton";module.exports=t;
package/index125.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as m } from "react";
3
3
  import { ButtonWithForwardRef as n } from "./index6.mjs";
4
- import i from "./index13.mjs";
5
- import l from "./index45.mjs";
4
+ import i from "./index14.mjs";
5
+ import l from "./index46.mjs";
6
6
  const a = m((o, r) => {
7
7
  const { themeName: e = "alerts.closeBtn", ...s } = o;
8
8
  return /* @__PURE__ */ t(n, { ref: r, themeName: e, ...s, children: /* @__PURE__ */ t(i, { icon: /* @__PURE__ */ t(l, {}) }) });
package/index128.js CHANGED
@@ -1 +1 @@
1
- "use strict";const g=require("react/jsx-runtime"),e=require("react-spring"),T=require("./index64.js"),u=t=>{const{isVisible:r,children:o,themeName:i,tokens:n,customTheme:s,...a}=t,d=e.useTransition(r,{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:o}))};module.exports=u;
1
+ "use strict";const g=require("react/jsx-runtime"),e=require("react-spring"),T=require("./index65.js"),u=t=>{const{isVisible:r,children:o,themeName:i,tokens:n,customTheme:s,...a}=t,d=e.useTransition(r,{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:o}))};module.exports=u;
package/index128.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
2
  import { useTransition as c, animated as g } from "react-spring";
3
- import l from "./index64.mjs";
3
+ import l from "./index65.mjs";
4
4
  const w = (e) => {
5
5
  const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
6
6
  from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
package/index13.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const a=require("./index106.js"),o=require("react/jsx-runtime"),t=require("react"),v=require("./index64.js"),x=require("./index104.js"),e=r=>Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),q=r=>{const{icon:s,...i}=r,n=t.useMemo(()=>t.lazy(()=>a(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>e(require("./index39.js"))),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index40.js"))),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>e(require("./index41.js"))),"../icons/Check.tsx":()=>Promise.resolve().then(()=>e(require("./index42.js"))),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index43.js"))),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>e(require("./index44.js"))),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>e(require("./index45.js"))),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>e(require("./index46.js"))),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>e(require("./index47.js"))),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>e(require("./index48.js"))),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>e(require("./index49.js"))),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>e(require("./index104.js"))),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>e(require("./index50.js"))),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>e(require("./index51.js"))),"../icons/Link.tsx":()=>Promise.resolve().then(()=>e(require("./index52.js"))),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>e(require("./index53.js"))),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>e(require("./index54.js"))),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>e(require("./index55.js"))),"../icons/Search.tsx":()=>Promise.resolve().then(()=>e(require("./index105.js"))),"../icons/Share.tsx":()=>Promise.resolve().then(()=>e(require("./index56.js"))),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>e(require("./index57.js"))),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>e(require("./index58.js"))),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>e(require("./index59.js"))),"../icons/X.tsx":()=>Promise.resolve().then(()=>e(require("./index60.js"))),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>e(require("./index61.js"))),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>e(require("./index62.js")))}),`../icons/${s||"ArrowRight"}.tsx`,3)),[s]);return o.jsx(t.Suspense,{fallback:o.jsx(x,{className:"overflow-visible pointer-events-none"}),children:o.jsx(n,{...i,className:"overflow-visible pointer-events-none",...r})})},P=r=>{const{icon:s,as:i="span",tokens:n,customTheme:m,themeName:h="icon",children:c,...l}=r,u=v(h,n,m);return typeof s!="string"?o.jsxs(i,{...l,className:u,children:[c,s]}):o.jsxs(i,{className:u,children:[c,o.jsx(q,{icon:s,...l})]})};module.exports=P;
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("isomorphic-dompurify"),l=require("./index3.js"),n=({content:e,themeName:r="wysiwyg",...s})=>t.jsx(l.default,{...s,themeName:r,dangerouslySetInnerHTML:{__html:i.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","target"]})}});module.exports=n;
package/index13.mjs CHANGED
@@ -1,22 +1,19 @@
1
- "use client";
2
- import l from "./index106.mjs";
3
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
4
- import { useMemo as x, lazy as h, Suspense as u } from "react";
5
- import d from "./index64.mjs";
6
- import b from "./index104.mjs";
7
- const f = (t) => {
8
- const { icon: o, ...s } = t, r = x(() => h(() => l(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index39.mjs"), "../icons/ArrowLeft.tsx": () => import("./index40.mjs"), "../icons/ArrowRight.tsx": () => import("./index41.mjs"), "../icons/Check.tsx": () => import("./index42.mjs"), "../icons/ChevronLeft.tsx": () => import("./index43.mjs"), "../icons/ChevronRight.tsx": () => import("./index44.mjs"), "../icons/CloseBtn.tsx": () => import("./index45.mjs"), "../icons/Facebook.tsx": () => import("./index46.mjs"), "../icons/FacebookColored.tsx": () => import("./index47.mjs"), "../icons/FacebookRounded.tsx": () => import("./index48.mjs"), "../icons/Globe.tsx": () => import("./index49.mjs"), "../icons/IconFallback.tsx": () => import("./index104.mjs"), "../icons/Instagram.tsx": () => import("./index50.mjs"), "../icons/InstagramColored.tsx": () => import("./index51.mjs"), "../icons/Link.tsx": () => import("./index52.mjs"), "../icons/LinkedIn.tsx": () => import("./index53.mjs"), "../icons/Mail.tsx": () => import("./index54.mjs"), "../icons/Plus.tsx": () => import("./index55.mjs"), "../icons/Search.tsx": () => import("./index105.mjs"), "../icons/Share.tsx": () => import("./index56.mjs"), "../icons/Twitter.tsx": () => import("./index57.mjs"), "../icons/TwitterColored.tsx": () => import("./index58.mjs"), "../icons/Upload.tsx": () => import("./index59.mjs"), "../icons/X.tsx": () => import("./index60.mjs"), "../icons/YouTube.tsx": () => import("./index61.mjs"), "../icons/YouTubeColored.tsx": () => import("./index62.mjs") }), `../icons/${o || "ArrowRight"}.tsx`, 3)), [o]);
9
- return /* @__PURE__ */ i(u, { fallback: /* @__PURE__ */ i(b, { className: "overflow-visible pointer-events-none" }), children: /* @__PURE__ */ i(r, { ...s, className: "overflow-visible pointer-events-none", ...t }) });
10
- }, g = (t) => {
11
- const { icon: o, as: s = "span", tokens: r, customTheme: p, themeName: a = "icon", children: n, ...e } = t, c = d(a, r, p);
12
- return typeof o != "string" ? /* @__PURE__ */ m(s, { ...e, className: c, children: [
13
- n,
14
- o
15
- ] }) : /* @__PURE__ */ m(s, { className: c, children: [
16
- n,
17
- /* @__PURE__ */ i(f, { icon: o, ...e })
18
- ] });
19
- };
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import t from "isomorphic-dompurify";
3
+ import a from "./index3.mjs";
4
+ const f = ({ content: r, themeName: o = "wysiwyg", ...e }) => /* @__PURE__ */ l(
5
+ a,
6
+ {
7
+ ...e,
8
+ themeName: o,
9
+ dangerouslySetInnerHTML: {
10
+ __html: t.sanitize(r, {
11
+ ADD_TAGS: ["iframe"],
12
+ ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling", "target"]
13
+ })
14
+ }
15
+ }
16
+ );
20
17
  export {
21
- g as default
18
+ f as default
22
19
  };
package/index131.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const r=require("react/jsx-runtime"),d=require("./index130.js"),a=require("./index24.js"),h=require("./index3.js"),m=n=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=n,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return r.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&r.jsx(h.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=m;
2
+ "use strict";const r=require("react/jsx-runtime"),d=require("./index130.js"),a=require("./index25.js"),h=require("./index3.js"),m=n=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=n,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return r.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&r.jsx(h.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=m;
package/index131.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
3
3
  import { useSwiperSlide as d } from "./index130.mjs";
4
- import p from "./index24.mjs";
4
+ import p from "./index25.mjs";
5
5
  import h from "./index3.mjs";
6
6
  const S = (r) => {
7
7
  const { themeName: e, title: t, tokens: s, id: n, children: m } = r, { isActive: l, isVisible: o } = d(), i = { ...s, isActive: l, isVisible: o };
package/index132.js CHANGED
@@ -1 +1 @@
1
- "use strict";const y=require("react/jsx-runtime"),o=require("react-aria"),P=require("./index100.js"),k=require("./index6.js"),q=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=P.useSwiperController(),s=o.useFocusManager(),p=t===0?i.length-1:t-1,b=t===i.length-1?0:t+1,{keyboardProps:v}=o.useKeyboard({onKeyUp:n=>{n.key==="ArrowLeft"&&(n.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(p)),n.key==="ArrowRight"&&(n.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(b))}}),{pressProps:h}=o.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),$=i[t],r=t===x,{title:a,id:f}=$,u=a&&a.length>0;return y.jsx(k.default,{as:"button",tabIndex:0,role:"button","aria-current":r?"true":"false","aria-disabled":r,"aria-label":u?void 0:`${t+1} / ${i.length}`,"aria-labelledby":u?f:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=q;
1
+ "use strict";const y=require("react/jsx-runtime"),o=require("react-aria"),P=require("./index72.js"),k=require("./index6.js"),q=d=>{const{themeName:l,tokens:c,slides:i,activeIndex:x,index:t}=d,{controller:e}=P.useSwiperController(),s=o.useFocusManager(),p=t===0?i.length-1:t-1,b=t===i.length-1?0:t+1,{keyboardProps:v}=o.useKeyboard({onKeyUp:n=>{n.key==="ArrowLeft"&&(n.preventDefault(),s==null||s.focusPrevious({wrap:!0}),e==null||e.slideTo(p)),n.key==="ArrowRight"&&(n.preventDefault(),s==null||s.focusNext({wrap:!0}),e==null||e.slideTo(b))}}),{pressProps:h}=o.usePress({onPress:()=>e==null?void 0:e.slideTo(t)}),$=i[t],r=t===x,{title:a,id:f}=$,u=a&&a.length>0;return y.jsx(k.default,{as:"button",tabIndex:0,role:"button","aria-current":r?"true":"false","aria-disabled":r,"aria-label":u?void 0:`${t+1} / ${i.length}`,"aria-labelledby":u?f:void 0,...v,...h,themeName:`${l}.bullet`,tokens:{...c,active:r}})};module.exports=q;
package/index132.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
3
- import { useSwiperController as w } from "./index100.mjs";
3
+ import { useSwiperController as w } from "./index72.mjs";
4
4
  import g from "./index6.mjs";
5
5
  const $ = (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({
package/index134.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("./index133.js"),P=require("@react-aria/calendar"),j=require("@react-aria/focus"),v=require("@react-aria/utils"),O=require("react"),F=require("react-aria"),o=require("./index64.js");function I({themeName:c="calendar",tokens:l,state:e,date:i}){const u=O.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?s.isSameDay(i,e==null?void 0:e.highlightedRange.start):n,g=e!=null&&e.highlightedRange?s.isSameDay(i,e==null?void 0:e.highlightedRange.end):n,{locale:C}=F.useLocale(),R=s.getDayOfWeek(i,C),S=n&&(h||R===0||i.day===1),b=n&&(g||R===6||i.day===i.calendar.getDaysInMonth(i)),{focusProps:m,isFocusVisible:p}=j.useFocusRing(),$=o(`${c}.cellContainer`,{...l,isFocusVisible:p}),t=o(`${c}.cell`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isRoundedLeft:S,isRoundedRight:b}),x=o(`${c}.cellDate`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isSelectionStart:h,isSelectionEnd:g});return r.jsx("td",{...f,"aria-disabled":!1,className:$,children:r.jsx("div",{...v.mergeProps(q,m),ref:u,hidden:D,className:t,children:r.jsx("div",{className:x,children:y})})})}module.exports=I;
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("./index133.js"),P=require("@react-aria/calendar"),j=require("@react-aria/focus"),v=require("@react-aria/utils"),O=require("react"),F=require("react-aria"),o=require("./index65.js");function I({themeName:c="calendar",tokens:l,state:e,date:i}){const u=O.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?s.isSameDay(i,e==null?void 0:e.highlightedRange.start):n,g=e!=null&&e.highlightedRange?s.isSameDay(i,e==null?void 0:e.highlightedRange.end):n,{locale:C}=F.useLocale(),R=s.getDayOfWeek(i,C),S=n&&(h||R===0||i.day===1),b=n&&(g||R===6||i.day===i.calendar.getDaysInMonth(i)),{focusProps:m,isFocusVisible:p}=j.useFocusRing(),$=o(`${c}.cellContainer`,{...l,isFocusVisible:p}),t=o(`${c}.cell`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isRoundedLeft:S,isRoundedRight:b}),x=o(`${c}.cellDate`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isSelectionStart:h,isSelectionEnd:g});return r.jsx("td",{...f,"aria-disabled":!1,className:$,children:r.jsx("div",{...v.mergeProps(q,m),ref:u,hidden:D,className:t,children:r.jsx("div",{className:x,children:y})})})}module.exports=I;
package/index134.mjs CHANGED
@@ -5,7 +5,7 @@ import { useFocusRing as T } from "@react-aria/focus";
5
5
  import { mergeProps as F } from "@react-aria/utils";
6
6
  import { useRef as I } from "react";
7
7
  import { useLocale as L } from "react-aria";
8
- import r from "./index64.mjs";
8
+ import r from "./index65.mjs";
9
9
  function w({ themeName: l = "calendar", tokens: n, state: e, date: o }) {
10
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
11
  ...n,
package/index135.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index269.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index260.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;
package/index135.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { generateId as i } from "./index269.mjs";
1
+ import { generateId as i } from "./index260.mjs";
2
2
  import { useLabels as n, mergeProps as c } from "@react-aria/utils";
3
3
  import { useHasTabbableChild as f } from "@react-aria/focus";
4
4
  function m(a, e, l) {
package/index138.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("./index224.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 a=require("@react-aria/utils"),O=require("@react-aria/focus"),m=require("./index232.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;
package/index138.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { mergeProps as i, filterDOMProps as F } from "@react-aria/utils";
2
2
  import { useFocusable as $ } from "@react-aria/focus";
3
- import { usePress as O } from "./index224.mjs";
3
+ import { usePress as O } from "./index232.mjs";
4
4
  function E(s, t) {
5
5
  let {
6
6
  elementType: r = "button",
package/index139.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index226.js"),x=require("@react-aria/focus"),T=require("@react-aria/utils"),V=require("./index224.js"),j=require("./index229.js"),v=require("react");function N(o){let{selectionManager:t,key:s,ref:c,shouldSelectOnPressUp:L,shouldUseVirtualFocus:d,focus:D,isDisabled:n,onAction:b,allowsDifferentPressOrigin:C,linkBehavior:u="action"}=o,F=T.useRouter(),a=e=>{if(e.pointerType==="keyboard"&&A.isNonContiguousSelectionModifier(e))t.toggleSelection(s);else{if(t.selectionMode==="none")return;if(t.isLink(s)){if(u==="selection"){let f=t.getItemProps(s);F.open(c.current,e,f.href,f.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(s)&&!t.disallowEmptySelection?t.toggleSelection(s):t.replaceSelection(s):e&&e.shiftKey?t.extendSelection(s):t.selectionBehavior==="toggle"||e&&(A.isCtrlKeyPressed(e)||e.pointerType==="touch"||e.pointerType==="virtual")?t.toggleSelection(s):t.replaceSelection(s)}};v.useEffect(()=>{s===t.focusedKey&&t.isFocused&&!d&&(D?D():document.activeElement!==c.current&&x.focusSafely(c.current))},[c,s,t.focusedKey,t.childFocusStrategy,t.isFocused,d]),n=n||t.isDisabled(s);let y={};!d&&!n?y={tabIndex:s===t.focusedKey?0:-1,onFocus(e){e.target===c.current&&t.setFocusedKey(s)}}:n&&(y.onMouseDown=e=>{e.preventDefault()});let E=t.isLink(s)&&u==="override",O=t.isLink(s)&&u!=="selection"&&u!=="none",r=!n&&t.canSelectItem(s)&&!E,k=(b||O)&&!n,l=k&&(t.selectionBehavior==="replace"?!r:!r||t.isEmpty),h=k&&r&&t.selectionBehavior==="replace",p=l||h,P=v.useRef(null),g=p&&r,m=v.useRef(!1),w=v.useRef(!1),S=e=>{if(b&&b(),O){let f=t.getItemProps(s);F.open(c.current,e,f.href,f.routerOptions)}},i={};L?(i.onPressStart=e=>{P.current=e.pointerType,m.current=g,e.pointerType==="keyboard"&&(!p||$())&&a(e)},C?(i.onPressUp=l?null:e=>{e.pointerType!=="keyboard"&&r&&a(e)},i.onPress=l?S:null):i.onPress=e=>{if(l||h&&e.pointerType!=="mouse"){if(e.pointerType==="keyboard"&&!K())return;S(e)}else e.pointerType!=="keyboard"&&r&&a(e)}):(i.onPressStart=e=>{P.current=e.pointerType,m.current=g,w.current=l,r&&(e.pointerType==="mouse"&&!l||e.pointerType==="keyboard"&&(!k||$()))&&a(e)},i.onPress=e=>{(e.pointerType==="touch"||e.pointerType==="pen"||e.pointerType==="virtual"||e.pointerType==="keyboard"&&p&&K()||e.pointerType==="mouse"&&w.current)&&(p?S(e):r&&a(e))}),y["data-key"]=s,i.preventFocusOnPress=d;let{pressProps:q,isPressed:B}=V.usePress(i),M=h?e=>{P.current==="mouse"&&(e.stopPropagation(),e.preventDefault(),S(e))}:void 0,{longPressProps:I}=j.useLongPress({isDisabled:!g,onLongPress(e){e.pointerType==="touch"&&(a(e),t.setSelectionBehavior("toggle"))}}),R=e=>{P.current==="touch"&&m.current&&e.preventDefault()},U=t.isLink(s)?e=>{T.openLink.isOpening||e.preventDefault()}:void 0;return{itemProps:T.mergeProps(y,r||l?q:{},g?I:{},{onDoubleClick:M,onDragStartCapture:R,onClick:U}),isPressed:B,isSelected:t.isSelected(s),isFocused:t.isFocused&&t.focusedKey===s,isDisabled:n,allowsSelection:r,hasAction:p}}function K(){let o=window.event;return(o==null?void 0:o.key)==="Enter"}function $(){let o=window.event;return(o==null?void 0:o.key)===" "||(o==null?void 0:o.code)==="Space"}exports.useSelectableItem=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index234.js"),x=require("@react-aria/focus"),T=require("@react-aria/utils"),V=require("./index232.js"),j=require("./index237.js"),v=require("react");function N(o){let{selectionManager:t,key:s,ref:c,shouldSelectOnPressUp:L,shouldUseVirtualFocus:d,focus:D,isDisabled:n,onAction:b,allowsDifferentPressOrigin:C,linkBehavior:u="action"}=o,F=T.useRouter(),a=e=>{if(e.pointerType==="keyboard"&&A.isNonContiguousSelectionModifier(e))t.toggleSelection(s);else{if(t.selectionMode==="none")return;if(t.isLink(s)){if(u==="selection"){let f=t.getItemProps(s);F.open(c.current,e,f.href,f.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(s)&&!t.disallowEmptySelection?t.toggleSelection(s):t.replaceSelection(s):e&&e.shiftKey?t.extendSelection(s):t.selectionBehavior==="toggle"||e&&(A.isCtrlKeyPressed(e)||e.pointerType==="touch"||e.pointerType==="virtual")?t.toggleSelection(s):t.replaceSelection(s)}};v.useEffect(()=>{s===t.focusedKey&&t.isFocused&&!d&&(D?D():document.activeElement!==c.current&&x.focusSafely(c.current))},[c,s,t.focusedKey,t.childFocusStrategy,t.isFocused,d]),n=n||t.isDisabled(s);let y={};!d&&!n?y={tabIndex:s===t.focusedKey?0:-1,onFocus(e){e.target===c.current&&t.setFocusedKey(s)}}:n&&(y.onMouseDown=e=>{e.preventDefault()});let E=t.isLink(s)&&u==="override",O=t.isLink(s)&&u!=="selection"&&u!=="none",r=!n&&t.canSelectItem(s)&&!E,k=(b||O)&&!n,l=k&&(t.selectionBehavior==="replace"?!r:!r||t.isEmpty),h=k&&r&&t.selectionBehavior==="replace",p=l||h,P=v.useRef(null),g=p&&r,m=v.useRef(!1),w=v.useRef(!1),S=e=>{if(b&&b(),O){let f=t.getItemProps(s);F.open(c.current,e,f.href,f.routerOptions)}},i={};L?(i.onPressStart=e=>{P.current=e.pointerType,m.current=g,e.pointerType==="keyboard"&&(!p||$())&&a(e)},C?(i.onPressUp=l?null:e=>{e.pointerType!=="keyboard"&&r&&a(e)},i.onPress=l?S:null):i.onPress=e=>{if(l||h&&e.pointerType!=="mouse"){if(e.pointerType==="keyboard"&&!K())return;S(e)}else e.pointerType!=="keyboard"&&r&&a(e)}):(i.onPressStart=e=>{P.current=e.pointerType,m.current=g,w.current=l,r&&(e.pointerType==="mouse"&&!l||e.pointerType==="keyboard"&&(!k||$()))&&a(e)},i.onPress=e=>{(e.pointerType==="touch"||e.pointerType==="pen"||e.pointerType==="virtual"||e.pointerType==="keyboard"&&p&&K()||e.pointerType==="mouse"&&w.current)&&(p?S(e):r&&a(e))}),y["data-key"]=s,i.preventFocusOnPress=d;let{pressProps:q,isPressed:B}=V.usePress(i),M=h?e=>{P.current==="mouse"&&(e.stopPropagation(),e.preventDefault(),S(e))}:void 0,{longPressProps:I}=j.useLongPress({isDisabled:!g,onLongPress(e){e.pointerType==="touch"&&(a(e),t.setSelectionBehavior("toggle"))}}),R=e=>{P.current==="touch"&&m.current&&e.preventDefault()},U=t.isLink(s)?e=>{T.openLink.isOpening||e.preventDefault()}:void 0;return{itemProps:T.mergeProps(y,r||l?q:{},g?I:{},{onDoubleClick:M,onDragStartCapture:R,onClick:U}),isPressed:B,isSelected:t.isSelected(s),isFocused:t.isFocused&&t.focusedKey===s,isDisabled:n,allowsSelection:r,hasAction:p}}function K(){let o=window.event;return(o==null?void 0:o.key)==="Enter"}function $(){let o=window.event;return(o==null?void 0:o.key)===" "||(o==null?void 0:o.code)==="Space"}exports.useSelectableItem=N;
package/index139.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { isNonContiguousSelectionModifier as U, isCtrlKeyPressed as R } from "./index226.mjs";
1
+ import { isNonContiguousSelectionModifier as U, isCtrlKeyPressed as R } from "./index234.mjs";
2
2
  import { focusSafely as V } from "@react-aria/focus";
3
3
  import { useRouter as N, openLink as j, mergeProps as q } from "@react-aria/utils";
4
- import { usePress as z } from "./index224.mjs";
5
- import { useLongPress as G } from "./index229.mjs";
4
+ import { usePress as z } from "./index232.mjs";
5
+ import { useLongPress as G } from "./index237.mjs";
6
6
  import { useEffect as H, useRef as h } from "react";
7
7
  function _(r) {
8
8
  let { selectionManager: t, key: o, ref: c, shouldSelectOnPressUp: K, shouldUseVirtualFocus: d, focus: $, isDisabled: n, onAction: g, allowsDifferentPressOrigin: O, linkBehavior: a = "action" } = r, T = N(), p = (e) => {
package/index14.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const h=require("react/jsx-runtime"),p=require("@react-aria/i18n"),l=require("lodash"),q=require("react-aria"),S=require("./index64.js"),y=r=>{const{as:o="time",date:s,tokens:n,customTheme:a,dateFormatterOptions:m={month:"long",day:"numeric",year:"numeric"},themeName:c="typography",...i}=r,u=q.useIsSSR(),e=new Date(s),t=p.useDateFormatter(m).format(e),d=S(c,n,a);return u||l.isEmpty(t)?null:h.jsx(o,{...i,dateTime:e.toISOString(),className:d,children:t})};module.exports=y;
2
+ "use strict";const a=require("./index106.js"),o=require("react/jsx-runtime"),t=require("react"),v=require("./index65.js"),x=require("./index104.js"),e=r=>Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),q=r=>{const{icon:s,...i}=r,n=t.useMemo(()=>t.lazy(()=>a(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>e(require("./index40.js"))),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index41.js"))),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>e(require("./index42.js"))),"../icons/Check.tsx":()=>Promise.resolve().then(()=>e(require("./index43.js"))),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>e(require("./index44.js"))),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>e(require("./index45.js"))),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>e(require("./index46.js"))),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>e(require("./index47.js"))),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>e(require("./index48.js"))),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>e(require("./index49.js"))),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>e(require("./index50.js"))),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>e(require("./index104.js"))),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>e(require("./index51.js"))),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>e(require("./index52.js"))),"../icons/Link.tsx":()=>Promise.resolve().then(()=>e(require("./index53.js"))),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>e(require("./index54.js"))),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>e(require("./index55.js"))),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>e(require("./index56.js"))),"../icons/Search.tsx":()=>Promise.resolve().then(()=>e(require("./index105.js"))),"../icons/Share.tsx":()=>Promise.resolve().then(()=>e(require("./index57.js"))),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>e(require("./index58.js"))),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>e(require("./index59.js"))),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>e(require("./index60.js"))),"../icons/X.tsx":()=>Promise.resolve().then(()=>e(require("./index61.js"))),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>e(require("./index62.js"))),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>e(require("./index63.js")))}),`../icons/${s||"ArrowRight"}.tsx`,3)),[s]);return o.jsx(t.Suspense,{fallback:o.jsx(x,{className:"overflow-visible pointer-events-none"}),children:o.jsx(n,{...i,className:"overflow-visible pointer-events-none",...r})})},P=r=>{const{icon:s,as:i="span",tokens:n,customTheme:m,themeName:h="icon",children:c,...l}=r,u=v(h,n,m);return typeof s!="string"?o.jsxs(i,{...l,className:u,children:[c,s]}):o.jsxs(i,{className:u,children:[c,o.jsx(q,{icon:s,...l})]})};module.exports=P;
package/index14.mjs CHANGED
@@ -1,21 +1,22 @@
1
1
  "use client";
2
- import { jsx as u } from "react/jsx-runtime";
3
- import { useDateFormatter as d } from "@react-aria/i18n";
4
- import { isEmpty as h } from "lodash";
5
- import { useIsSSR as l } from "react-aria";
6
- import S from "./index64.mjs";
7
- const F = (o) => {
8
- const {
9
- as: m = "time",
10
- date: r,
11
- tokens: a,
12
- customTheme: n,
13
- dateFormatterOptions: s = { month: "long", day: "numeric", year: "numeric" },
14
- themeName: i = "typography",
15
- ...p
16
- } = o, c = l(), t = new Date(r), e = d(s).format(t), f = S(i, a, n);
17
- return c || h(e) ? null : /* @__PURE__ */ u(m, { ...p, dateTime: t.toISOString(), className: f, children: e });
2
+ import l from "./index106.mjs";
3
+ import { jsxs as m, jsx as i } from "react/jsx-runtime";
4
+ import { useMemo as x, lazy as h, Suspense as u } from "react";
5
+ import d from "./index65.mjs";
6
+ import b from "./index104.mjs";
7
+ const f = (t) => {
8
+ const { icon: o, ...s } = t, r = x(() => h(() => l(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./index40.mjs"), "../icons/ArrowLeft.tsx": () => import("./index41.mjs"), "../icons/ArrowRight.tsx": () => import("./index42.mjs"), "../icons/Check.tsx": () => import("./index43.mjs"), "../icons/ChevronLeft.tsx": () => import("./index44.mjs"), "../icons/ChevronRight.tsx": () => import("./index45.mjs"), "../icons/CloseBtn.tsx": () => import("./index46.mjs"), "../icons/Facebook.tsx": () => import("./index47.mjs"), "../icons/FacebookColored.tsx": () => import("./index48.mjs"), "../icons/FacebookRounded.tsx": () => import("./index49.mjs"), "../icons/Globe.tsx": () => import("./index50.mjs"), "../icons/IconFallback.tsx": () => import("./index104.mjs"), "../icons/Instagram.tsx": () => import("./index51.mjs"), "../icons/InstagramColored.tsx": () => import("./index52.mjs"), "../icons/Link.tsx": () => import("./index53.mjs"), "../icons/LinkedIn.tsx": () => import("./index54.mjs"), "../icons/Mail.tsx": () => import("./index55.mjs"), "../icons/Plus.tsx": () => import("./index56.mjs"), "../icons/Search.tsx": () => import("./index105.mjs"), "../icons/Share.tsx": () => import("./index57.mjs"), "../icons/Twitter.tsx": () => import("./index58.mjs"), "../icons/TwitterColored.tsx": () => import("./index59.mjs"), "../icons/Upload.tsx": () => import("./index60.mjs"), "../icons/X.tsx": () => import("./index61.mjs"), "../icons/YouTube.tsx": () => import("./index62.mjs"), "../icons/YouTubeColored.tsx": () => import("./index63.mjs") }), `../icons/${o || "ArrowRight"}.tsx`, 3)), [o]);
9
+ return /* @__PURE__ */ i(u, { fallback: /* @__PURE__ */ i(b, { className: "overflow-visible pointer-events-none" }), children: /* @__PURE__ */ i(r, { ...s, className: "overflow-visible pointer-events-none", ...t }) });
10
+ }, g = (t) => {
11
+ const { icon: o, as: s = "span", tokens: r, customTheme: p, themeName: a = "icon", children: n, ...e } = t, c = d(a, r, p);
12
+ return typeof o != "string" ? /* @__PURE__ */ m(s, { ...e, className: c, children: [
13
+ n,
14
+ o
15
+ ] }) : /* @__PURE__ */ m(s, { className: c, children: [
16
+ n,
17
+ /* @__PURE__ */ i(f, { icon: o, ...e })
18
+ ] });
18
19
  };
19
20
  export {
20
- F as default
21
+ g as default
21
22
  };
package/index140.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index225.js"),b=require("./index230.js"),u=require("@react-aria/i18n"),g=require("react");function y(l){let{selectionManager:t,collection:o,disabledKeys:a,ref:e,keyboardDelegate:r}=l,i=u.useCollator({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,c=g.useMemo(()=>r||new b.ListKeyboardDelegate({collection:o,disabledKeys:a,disabledBehavior:s,ref:e,collator:i}),[r,o,a,e,i,s]),{collectionProps:n}=d.useSelectableCollection({...l,ref:e,selectionManager:t,keyboardDelegate:c});return{listProps:n}}exports.useSelectableList=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index233.js"),b=require("./index238.js"),u=require("@react-aria/i18n"),g=require("react");function y(l){let{selectionManager:t,collection:o,disabledKeys:a,ref:e,keyboardDelegate:r}=l,i=u.useCollator({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,c=g.useMemo(()=>r||new b.ListKeyboardDelegate({collection:o,disabledKeys:a,disabledBehavior:s,ref:e,collator:i}),[r,o,a,e,i,s]),{collectionProps:n}=d.useSelectableCollection({...l,ref:e,selectionManager:t,keyboardDelegate:c});return{listProps:n}}exports.useSelectableList=y;
package/index140.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { useSelectableCollection as b } from "./index225.mjs";
2
- import { ListKeyboardDelegate as n } from "./index230.mjs";
1
+ import { useSelectableCollection as b } from "./index233.mjs";
2
+ import { ListKeyboardDelegate as n } from "./index238.mjs";
3
3
  import { useCollator as f } from "@react-aria/i18n";
4
4
  import { useMemo as g } from "react";
5
5
  function u(a) {
package/index15.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),H=require("lodash"),T=require("react"),q=require("react-aria"),S=require("react-hook-form"),E=require("react-stately"),$=require("./index24.js"),I=require("./index6.js"),L=require("./index13.js"),b=require("./index3.js"),W=require("./index36.js"),A=require("./index107.js"),B=require("./index108.js"),j=n=>{var x;const{name:c,placeholderLabel:a,disabled:l,hookFormRef:u,isError:t=!1,errorMessage:i,themeName:e="select",tokens:d,customTheme:D,label:m,onSelectionChange:R,defaultValue:k,value:F,icon:M,popoverMatchesWidth:K,options:N,...g}=n,o=T.useRef(null),s=E.useSelectState({...g,children:W,selectedKey:F,defaultSelectedKey:k,items:N,onSelectionChange:R}),{triggerProps:v,menuProps:y,labelProps:w}=q.useSelect({...g,label:m},s,o),{onPress:h,onPressStart:f,...P}=v;return r.jsxs($.default,{themeName:`${e}.wrapper`,children:[m&&r.jsx(b.default,{...w,as:"label",themeName:`${e}.label`,children:m}),r.jsx(q.HiddenSelect,{...u,state:s,triggerRef:o,name:c,isDisabled:!0}),r.jsxs($.default,{themeName:`${e}.container`,children:[r.jsxs(I.ButtonWithForwardRef,{...P,handlePress:p=>{h==null||h(p),f==null||f(p)},ref:o,disabled:l,themeName:`${e}.button`,tokens:{...d,intent:t?"error":"default"},children:[s.selectedItem?s.selectedItem.rendered:a,r.jsx(L,{icon:M??"ArrowDown"})]}),s.isOpen&&o.current&&r.jsx(B,{tokens:d,state:s,triggerRef:o,placement:"bottom",themeName:`${e}.popover`,style:{[`--${e}-container-width`]:`${(x=o.current)==null?void 0:x.offsetWidth}px`},children:r.jsx(A.ListBox,{...y,themeName:e,state:s})}),t&&r.jsx(b.default,{tokens:{...d,isError:t},themeName:`${e}.errorMessage`,children:i})]})]})},C=n=>{const{name:c,required:a}=n,{register:l,formState:u}=S.useFormContext(),t=S.get(u.errors,c),i=(t==null?void 0:t.message)??void 0,{ref:e}=l(c,{required:a?"This is an error message":!1});return r.jsx(j,{...n,isError:!H.isEmpty(i),errorMessage:i,hookFormRef:e})};exports.ReactHookFormSelect=C;exports.default=j;
2
+ "use strict";const h=require("react/jsx-runtime"),p=require("@react-aria/i18n"),l=require("lodash"),q=require("react-aria"),S=require("./index65.js"),y=r=>{const{as:o="time",date:s,tokens:n,customTheme:a,dateFormatterOptions:m={month:"long",day:"numeric",year:"numeric"},themeName:c="typography",...i}=r,u=q.useIsSSR(),e=new Date(s),t=p.useDateFormatter(m).format(e),d=S(c,n,a);return u||l.isEmpty(t)?null:h.jsx(o,{...i,dateTime:e.toISOString(),className:d,children:t})};module.exports=y;