@okam/stack-ui 1.27.0 → 1.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
  2. package/index.d.ts +2 -0
  3. package/index.js +1 -1
  4. package/index.mjs +158 -151
  5. package/index10.js +1 -1
  6. package/index10.mjs +2 -2
  7. package/index100.js +1 -2
  8. package/index100.mjs +17 -12
  9. package/index101.js +2 -1
  10. package/index101.mjs +22 -45
  11. package/index102.js +1 -1
  12. package/index102.mjs +1 -1
  13. package/index103.js +1 -1
  14. package/index103.mjs +1 -1
  15. package/index107.js +1 -1
  16. package/index107.mjs +1 -1
  17. package/index108.js +1 -1
  18. package/index108.mjs +1 -1
  19. package/index11.js +1 -1
  20. package/index11.mjs +3 -3
  21. package/index112.js +1 -1
  22. package/index112.mjs +1 -1
  23. package/index113.js +1 -1
  24. package/index113.mjs +1 -1
  25. package/index114.js +1 -1
  26. package/index114.mjs +2 -2
  27. package/index116.js +1 -1
  28. package/index116.mjs +3 -3
  29. package/index118.js +1 -1
  30. package/index118.mjs +1 -1
  31. package/index119.js +1 -1
  32. package/index119.mjs +1 -1
  33. package/index12.js +1 -1
  34. package/index12.mjs +44 -15
  35. package/index121.js +1 -1
  36. package/index121.mjs +1 -1
  37. package/index122.js +1 -1
  38. package/index122.mjs +3 -3
  39. package/index124.js +1 -1
  40. package/index124.mjs +2 -2
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index126.js +1 -1
  44. package/index126.mjs +1 -1
  45. package/index128.js +1 -1
  46. package/index128.mjs +1 -1
  47. package/index13.js +1 -2
  48. package/index13.mjs +17 -20
  49. package/index131.js +1 -1
  50. package/index131.mjs +1 -1
  51. package/index132.js +1 -1
  52. package/index132.mjs +1 -1
  53. package/index133.js +1 -1
  54. package/index133.mjs +19 -49
  55. package/index134.js +1 -1
  56. package/index134.mjs +49 -25
  57. package/index135.js +1 -1
  58. package/index135.mjs +25 -19
  59. package/index137.js +1 -1
  60. package/index137.mjs +14 -14
  61. package/index138.js +1 -1
  62. package/index138.mjs +1 -1
  63. package/index139.js +1 -1
  64. package/index139.mjs +3 -3
  65. package/index14.js +1 -1
  66. package/index14.mjs +18 -17
  67. package/index140.js +1 -1
  68. package/index140.mjs +2 -2
  69. package/index143.js +1 -1
  70. package/index143.mjs +1 -1
  71. package/index147.js +1 -1
  72. package/index147.mjs +1 -1
  73. package/index15.js +1 -1
  74. package/index15.mjs +16 -83
  75. package/index159.js +11 -1
  76. package/index159.mjs +116 -2
  77. package/index16.js +1 -1
  78. package/index16.mjs +81 -28
  79. package/index160.js +1 -1
  80. package/index160.mjs +2 -6
  81. package/index161.js +1 -1
  82. package/index161.mjs +5 -64
  83. package/index162.js +1 -1
  84. package/index162.mjs +54 -16
  85. package/index163.js +1 -1
  86. package/index163.mjs +21 -49
  87. package/index164.js +1 -1
  88. package/index164.mjs +42 -143
  89. package/index165.js +1 -1
  90. package/index165.mjs +151 -18
  91. package/index166.js +1 -1
  92. package/index166.mjs +17 -14
  93. package/index167.js +1 -1
  94. package/index167.mjs +14 -34
  95. package/index168.js +1 -1
  96. package/index168.mjs +36 -79
  97. package/index169.js +1 -1
  98. package/index169.mjs +75 -23
  99. package/index17.js +1 -1
  100. package/index17.mjs +30 -32
  101. package/index170.js +1 -1
  102. package/index170.mjs +22 -13
  103. package/index171.js +1 -1
  104. package/index171.mjs +16 -48
  105. package/index172.js +1 -1
  106. package/index172.mjs +54 -2
  107. package/index173.js +1 -11
  108. package/index173.mjs +2 -116
  109. package/index174.js +1 -1
  110. package/index174.mjs +2 -2
  111. package/index175.js +1 -1
  112. package/index175.mjs +2 -2
  113. package/index176.js +1 -1
  114. package/index176.mjs +2 -2
  115. package/index177.js +1 -1
  116. package/index177.mjs +2 -2
  117. package/index178.js +1 -1
  118. package/index178.mjs +3 -3
  119. package/index179.js +1 -1
  120. package/index179.mjs +4 -4
  121. package/index18.js +1 -1
  122. package/index18.mjs +33 -31
  123. package/index180.js +1 -1
  124. package/index180.mjs +1 -1
  125. package/index181.js +1 -1
  126. package/index181.mjs +2 -2
  127. package/index182.js +1 -1
  128. package/index182.mjs +1 -1
  129. package/index183.js +1 -1
  130. package/index183.mjs +2 -2
  131. package/index184.js +1 -1
  132. package/index184.mjs +1 -1
  133. package/index185.js +1 -1
  134. package/index185.mjs +2 -2
  135. package/index186.js +1 -1
  136. package/index186.mjs +1 -1
  137. package/index187.js +1 -1
  138. package/index187.mjs +2 -2
  139. package/index188.js +1 -1
  140. package/index188.mjs +1 -1
  141. package/index19.js +1 -1
  142. package/index19.mjs +30 -33
  143. package/index191.js +1 -1
  144. package/index191.mjs +4 -4
  145. package/index192.js +1 -1
  146. package/index192.mjs +2 -2
  147. package/index193.js +1 -1
  148. package/index193.mjs +5 -5
  149. package/index194.js +1 -1
  150. package/index194.mjs +4 -4
  151. package/index195.js +1 -1
  152. package/index195.mjs +5 -5
  153. package/index196.js +1 -1
  154. package/index196.mjs +5 -5
  155. package/index197.js +1 -1
  156. package/index197.mjs +2 -2
  157. package/index2.js +1 -1
  158. package/index2.mjs +20 -20
  159. package/index20.js +1 -1
  160. package/index20.mjs +32 -67
  161. package/index21.js +1 -1
  162. package/index21.mjs +61 -58
  163. package/index22.js +1 -1
  164. package/index22.mjs +66 -52
  165. package/index224.js +1 -1
  166. package/index224.mjs +123 -306
  167. package/index225.js +1 -1
  168. package/index225.mjs +173 -186
  169. package/index226.js +1 -1
  170. package/index226.mjs +9 -8
  171. package/index227.js +1 -1
  172. package/index227.mjs +3 -26
  173. package/index228.js +1 -1
  174. package/index228.mjs +34 -53
  175. package/index229.js +1 -1
  176. package/index229.mjs +5 -46
  177. package/index23.js +1 -1
  178. package/index23.mjs +37 -41
  179. package/index230.js +1 -1
  180. package/index230.mjs +28 -123
  181. package/index231.js +1 -1
  182. package/index231.mjs +6 -130
  183. package/index232.js +1 -1
  184. package/index232.mjs +293 -159
  185. package/index233.js +1 -1
  186. package/index233.mjs +192 -9
  187. package/index234.js +1 -1
  188. package/index234.mjs +8 -3
  189. package/index235.js +1 -1
  190. package/index235.mjs +25 -35
  191. package/index236.js +1 -1
  192. package/index236.mjs +55 -5
  193. package/index237.js +1 -1
  194. package/index237.mjs +44 -27
  195. package/index238.js +1 -1
  196. package/index238.mjs +124 -6
  197. package/index24.js +1 -1
  198. package/index24.mjs +57 -20
  199. package/index242.js +1 -1
  200. package/index242.mjs +1 -1
  201. package/index243.js +1 -1
  202. package/index243.mjs +1 -1
  203. package/index245.js +1 -1
  204. package/index245.mjs +1 -1
  205. package/index246.js +1 -1
  206. package/index246.mjs +2 -2
  207. package/index248.js +1 -1
  208. package/index248.mjs +2 -2
  209. package/index249.js +1 -1
  210. package/index249.mjs +3 -3
  211. package/index25.js +1 -1
  212. package/index25.mjs +20 -50
  213. package/index251.js +1 -1
  214. package/index251.mjs +1 -1
  215. package/index26.js +1 -1
  216. package/index26.mjs +50 -17
  217. package/index260.js +1 -1
  218. package/index260.mjs +6 -2
  219. package/index261.mjs +2 -2
  220. package/index262.mjs +2 -2
  221. package/index263.mjs +2 -2
  222. package/index264.js +1 -1
  223. package/index264.mjs +2 -72
  224. package/index265.js +1 -1
  225. package/index265.mjs +72 -2
  226. package/index266.mjs +2 -2
  227. package/index267.js +1 -1
  228. package/index267.mjs +2 -19
  229. package/index268.js +1 -1
  230. package/index268.mjs +19 -2
  231. package/index269.js +1 -1
  232. package/index269.mjs +2 -6
  233. package/index27.js +1 -1
  234. package/index27.mjs +16 -32
  235. package/index28.js +1 -1
  236. package/index28.mjs +32 -23
  237. package/index29.js +1 -1
  238. package/index29.mjs +24 -8
  239. package/index3.js +1 -1
  240. package/index3.mjs +1 -1
  241. package/index30.js +1 -1
  242. package/index30.mjs +8 -32
  243. package/index31.js +1 -1
  244. package/index31.mjs +29 -30
  245. package/index32.js +1 -1
  246. package/index32.mjs +28 -98
  247. package/index33.js +1 -1
  248. package/index33.mjs +102 -8
  249. package/index34.js +1 -1
  250. package/index34.mjs +8 -46
  251. package/index35.js +1 -1
  252. package/index35.mjs +46 -18
  253. package/index36.js +2 -1
  254. package/index36.mjs +19 -6
  255. package/index37.js +1 -1
  256. package/index37.mjs +6 -46
  257. package/index38.js +1 -1
  258. package/index38.mjs +45 -23
  259. package/index39.js +2 -1
  260. package/index39.mjs +26 -5
  261. package/index4.js +1 -1
  262. package/index4.mjs +5 -5
  263. package/index40.js +1 -1
  264. package/index40.mjs +4 -7
  265. package/index41.js +1 -1
  266. package/index41.mjs +5 -5
  267. package/index42.js +1 -1
  268. package/index42.mjs +8 -5
  269. package/index43.js +1 -1
  270. package/index43.mjs +2 -2
  271. package/index44.js +1 -1
  272. package/index44.mjs +1 -1
  273. package/index45.js +1 -1
  274. package/index45.mjs +4 -4
  275. package/index46.js +1 -1
  276. package/index46.mjs +3 -9
  277. package/index47.js +1 -1
  278. package/index47.mjs +7 -9
  279. package/index48.js +1 -1
  280. package/index48.mjs +9 -9
  281. package/index49.js +1 -1
  282. package/index49.mjs +13 -46
  283. package/index50.js +1 -1
  284. package/index50.mjs +46 -8
  285. package/index51.js +1 -1
  286. package/index51.mjs +6 -69
  287. package/index52.js +1 -1
  288. package/index52.mjs +71 -8
  289. package/index53.js +1 -1
  290. package/index53.mjs +7 -12
  291. package/index54.js +1 -1
  292. package/index54.mjs +12 -9
  293. package/index55.js +1 -1
  294. package/index55.mjs +10 -17
  295. package/index56.js +1 -1
  296. package/index56.mjs +17 -13
  297. package/index57.js +1 -1
  298. package/index57.mjs +5 -5
  299. package/index58.js +1 -1
  300. package/index58.mjs +6 -6
  301. package/index59.js +1 -1
  302. package/index59.mjs +10 -8
  303. package/index6.js +1 -1
  304. package/index6.mjs +1 -1
  305. package/index60.js +1 -1
  306. package/index60.mjs +5 -5
  307. package/index61.js +1 -1
  308. package/index61.mjs +6 -8
  309. package/index62.js +1 -1
  310. package/index62.mjs +13 -14
  311. package/index63.js +1 -2
  312. package/index63.mjs +14 -23
  313. package/index64.js +1 -1
  314. package/index64.mjs +21 -15
  315. package/index65.js +1 -1
  316. package/index65.mjs +16 -14
  317. package/index66.js +1 -1
  318. package/index66.mjs +13 -40
  319. package/index67.js +1 -1
  320. package/index67.mjs +39 -36
  321. package/index68.js +1 -1
  322. package/index68.mjs +37 -11
  323. package/index69.js +1 -1
  324. package/index69.mjs +11 -10
  325. package/index7.js +1 -1
  326. package/index7.mjs +2 -2
  327. package/index70.js +1 -1
  328. package/index70.mjs +10 -13
  329. package/index71.js +2 -1
  330. package/index71.mjs +15 -2
  331. package/index72.js +1 -1
  332. package/index72.mjs +11 -8
  333. package/index73.js +1 -2
  334. package/index73.mjs +1 -7
  335. package/index74.js +1 -1
  336. package/index74.mjs +7 -6
  337. package/index75.js +1 -1
  338. package/index75.mjs +6 -6
  339. package/index76.js +2 -1
  340. package/index76.mjs +8 -25
  341. package/index77.js +2 -1
  342. package/index77.mjs +8 -2
  343. package/index78.js +1 -6
  344. package/index78.mjs +25 -94
  345. package/index79.js +1 -1
  346. package/index79.mjs +2 -69
  347. package/index8.js +1 -1
  348. package/index8.mjs +5 -5
  349. package/index80.js +6 -1
  350. package/index80.mjs +82 -29
  351. package/index81.js +1 -42
  352. package/index81.mjs +64 -65
  353. package/index82.js +1 -1
  354. package/index82.mjs +32 -150
  355. package/index83.js +42 -9
  356. package/index83.mjs +65 -52
  357. package/index84.js +1 -1
  358. package/index84.mjs +145 -31
  359. package/index85.js +9 -1
  360. package/index85.mjs +54 -10
  361. package/index86.js +1 -1
  362. package/index86.mjs +38 -28
  363. package/index87.js +1 -1
  364. package/index87.mjs +12 -5
  365. package/index88.js +1 -12
  366. package/index88.mjs +31 -36
  367. package/index89.js +1 -1
  368. package/index89.mjs +6 -29
  369. package/index9.js +1 -1
  370. package/index9.mjs +4 -4
  371. package/index90.js +12 -1
  372. package/index90.mjs +39 -12
  373. package/index91.js +1 -7
  374. package/index91.mjs +23 -13
  375. package/index92.js +1 -15
  376. package/index92.mjs +9 -67
  377. package/index93.js +7 -1
  378. package/index93.mjs +17 -5
  379. package/index94.js +13 -14
  380. package/index94.mjs +63 -17
  381. package/index95.js +1 -1
  382. package/index95.mjs +7 -42
  383. package/index96.js +16 -1
  384. package/index96.mjs +24 -44
  385. package/index97.js +1 -1
  386. package/index97.mjs +42 -48
  387. package/index98.js +1 -1
  388. package/index98.mjs +45 -17
  389. package/index99.js +1 -2
  390. package/index99.mjs +47 -21
  391. package/package.json +1 -1
package/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("./index134.js"),m=require("@react-aria/calendar"),p=require("@react-aria/i18n"),a=require("./index65.js"),y=require("./index135.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
@@ -1,9 +1,9 @@
1
1
  import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
- import { getWeeksInMonth as y } from "./index133.mjs";
2
+ import { getWeeksInMonth as y } from "./index134.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";
6
- import C from "./index134.mjs";
5
+ import c from "./index65.mjs";
6
+ import C from "./index135.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);
9
9
  return /* @__PURE__ */ u("table", { ...t, cellPadding: "0", className: p, children: [
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 @@
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 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,48 @@
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
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
+ import { usePress as f, FocusRing as b } from "react-aria";
4
+ import { useSwiperController as p } from "./index72.mjs";
5
+ import { ButtonWithForwardRef as w } from "./index6.mjs";
6
+ import h from "./index14.mjs";
7
+ const m = u(
8
+ (i, n) => {
9
+ const { themeName: a, tokens: l, customTheme: t, children: c, onSubmit: e, ...o } = i, { isDisabled: s } = o, { pressProps: d } = f({
10
+ onPress: () => e == null ? void 0 : e()
11
+ });
12
+ return /* @__PURE__ */ r(b, { within: !0, focusRingClass: "has-focus-ring", children: /* @__PURE__ */ r(
13
+ w,
14
+ {
15
+ themeName: a,
16
+ tokens: l,
17
+ ref: n,
18
+ ...d,
19
+ ...o,
20
+ "aria-disabled": s,
21
+ children: c
22
+ }
23
+ ) });
24
+ }
25
+ ), x = u(
26
+ (i, n) => {
27
+ 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(
28
+ typeof s == "number" ? (e + 1) / s : e
29
+ ), g = Math.round(
30
+ o && typeof s == "number" ? o.length / s : (o == null ? void 0 : o.length) ?? 1
31
+ ), v = N < g;
32
+ return /* @__PURE__ */ r(m, { onSubmit: () => t == null ? void 0 : t.slideNext(), ...l, ref: n, isDisabled: !d && !v, children: a || /* @__PURE__ */ r(h, { icon: "ArrowRight" }) });
33
+ }
34
+ ), P = u(
35
+ (i, n) => {
36
+ const { children: a, ...l } = i, { controller: t } = p(), { params: c, activeIndex: e = 1 } = t ?? {}, { loop: o } = c ?? {};
37
+ 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
38
  }
16
39
  );
40
+ m.displayName = "CarouselNavigationButton";
41
+ x.displayName = "CarouselNextNavigationButton";
42
+ P.displayName = "CarouselPrevNavigationButton";
17
43
  export {
18
- f as default
44
+ m as CarouselNavigationButton,
45
+ x as CarouselNextNavigationButton,
46
+ P as CarouselPrevNavigationButton,
47
+ m as default
19
48
  };
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("./index133.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
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTabPanel as m } from "./index135.mjs";
2
+ import { useTabPanel as m } from "./index133.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/index126.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index173.js");function X(t){let{PI:f,min:a,max:l,cos:m,round:A}=Math,_=t[0]|t[1]<<8|t[2]<<16,x=t[3]|t[4]<<8,C=(_&63)/63,G=(_>>6&63)/31.5-1,I=(_>>12&63)/31.5-1,O=(_>>18&31)/31,n=_>>23,k=(x>>3&63)/63,z=(x>>9&63)/63,H=x>>15,D=l(3,H?n?5:7:x&7),p=l(3,H?x&7:n?5:7),E=n?(t[5]&15)/15:1,F=(t[5]>>4)/15,J=n?6:5,L=0,q=(s,o,b)=>{let d=[];for(let i=0;i<o;i++)for(let u=i?0:1;u*o<s*(o-i);u++)d.push(((t[J+(L>>1)]>>((L++&1)<<2)&15)/7.5-1)*b);return d},K=q(D,p,O),N=q(3,3,k*1.25),Q=q(3,3,z*1.25),V=n&&q(5,5,F),j=Y(t),P=A(j>1?32:32*j),w=A(j>1?32/j:32),y=new Uint8Array(P*w*4),T=[],U=[];for(let s=0,o=0;s<w;s++)for(let b=0;b<P;b++,o+=4){let d=C,i=G,u=I,M=E;for(let e=0,r=l(D,n?5:3);e<r;e++)T[e]=m(f/P*(b+.5)*e);for(let e=0,r=l(p,n?5:3);e<r;e++)U[e]=m(f/w*(s+.5)*e);for(let e=0,r=0;e<p;e++)for(let c=e?0:1,g=U[e]*2;c*p<D*(p-e);c++,r++)d+=K[r]*T[c]*g;for(let e=0,r=0;e<3;e++)for(let c=e?0:1,g=U[e]*2;c<3-e;c++,r++){let v=T[c]*g;i+=N[r]*v,u+=Q[r]*v}if(n)for(let e=0,r=0;e<5;e++)for(let c=e?0:1,g=U[e]*2;c<5-e;c++,r++)M+=V[r]*T[c]*g;let R=d-2/3*i,S=(3*d-R+u)/2,W=S-u;y[o]=l(0,255*a(1,S)),y[o+1]=l(0,255*a(1,W)),y[o+2]=l(0,255*a(1,R)),y[o+3]=l(0,255*a(1,M))}return{w:P,h:w,rgba:y}}function Y(t){let f=t[3],a=t[2]&128,l=t[4]&128,m=l?a?5:7:f&7,A=l?f&7:a?5:7;return m/A}function Z(t){const{w:f,h:a,rgba:l}=X(B.c(t));return B.r(f,a,l)}exports.createPngDataUri=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index159.js");function X(t){let{PI:f,min:a,max:l,cos:m,round:A}=Math,_=t[0]|t[1]<<8|t[2]<<16,x=t[3]|t[4]<<8,C=(_&63)/63,G=(_>>6&63)/31.5-1,I=(_>>12&63)/31.5-1,O=(_>>18&31)/31,n=_>>23,k=(x>>3&63)/63,z=(x>>9&63)/63,H=x>>15,D=l(3,H?n?5:7:x&7),p=l(3,H?x&7:n?5:7),E=n?(t[5]&15)/15:1,F=(t[5]>>4)/15,J=n?6:5,L=0,q=(s,o,b)=>{let d=[];for(let i=0;i<o;i++)for(let u=i?0:1;u*o<s*(o-i);u++)d.push(((t[J+(L>>1)]>>((L++&1)<<2)&15)/7.5-1)*b);return d},K=q(D,p,O),N=q(3,3,k*1.25),Q=q(3,3,z*1.25),V=n&&q(5,5,F),j=Y(t),P=A(j>1?32:32*j),w=A(j>1?32/j:32),y=new Uint8Array(P*w*4),T=[],U=[];for(let s=0,o=0;s<w;s++)for(let b=0;b<P;b++,o+=4){let d=C,i=G,u=I,M=E;for(let e=0,r=l(D,n?5:3);e<r;e++)T[e]=m(f/P*(b+.5)*e);for(let e=0,r=l(p,n?5:3);e<r;e++)U[e]=m(f/w*(s+.5)*e);for(let e=0,r=0;e<p;e++)for(let c=e?0:1,g=U[e]*2;c*p<D*(p-e);c++,r++)d+=K[r]*T[c]*g;for(let e=0,r=0;e<3;e++)for(let c=e?0:1,g=U[e]*2;c<3-e;c++,r++){let v=T[c]*g;i+=N[r]*v,u+=Q[r]*v}if(n)for(let e=0,r=0;e<5;e++)for(let c=e?0:1,g=U[e]*2;c<5-e;c++,r++)M+=V[r]*T[c]*g;let R=d-2/3*i,S=(3*d-R+u)/2,W=S-u;y[o]=l(0,255*a(1,S)),y[o+1]=l(0,255*a(1,W)),y[o+2]=l(0,255*a(1,R)),y[o+3]=l(0,255*a(1,M))}return{w:P,h:w,rgba:y}}function Y(t){let f=t[3],a=t[2]&128,l=t[4]&128,m=l?a?5:7:f&7,A=l?f&7:a?5:7;return m/A}function Z(t){const{w:f,h:a,rgba:l}=X(B.c(t));return B.r(f,a,l)}exports.createPngDataUri=Z;
package/index126.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as W, r as X } from "./index173.mjs";
1
+ import { c as W, r as X } from "./index159.mjs";
2
2
  function Y(t) {
3
3
  let { PI: n, min: c, max: l, cos: A, round: g } = Math, _ = t[0] | t[1] << 8 | t[2] << 16, d = t[3] | t[4] << 8, I = (_ & 63) / 63, M = (_ >> 6 & 63) / 31.5 - 1, k = (_ >> 12 & 63) / 31.5 - 1, v = (_ >> 18 & 31) / 31, f = _ >> 23, z = (d >> 3 & 63) / 63, E = (d >> 9 & 63) / 63, H = d >> 15, D = l(3, H ? f ? 5 : 7 : d & 7), y = l(3, H ? d & 7 : f ? 5 : 7), F = f ? (t[5] & 15) / 15 : 1, J = (t[5] >> 4) / 15, K = f ? 6 : 5, L = 0, q = (u, o, b) => {
4
4
  let x = [];
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/index133.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index147.js"),$=require("./index158.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";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/index133.mjs CHANGED
@@ -1,53 +1,23 @@
1
- import { toCalendar as o } from "./index147.mjs";
2
- import { weekStartData as i } from "./index158.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
1
+ import { generateId as i } from "./index260.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")
26
11
  });
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);
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
+ };
44
20
  }
45
21
  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
22
+ m as useTabPanel
53
23
  };
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index147.js"),$=require("./index158.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/index134.mjs CHANGED
@@ -1,29 +1,53 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { isSameDay as g, getDayOfWeek as v } from "./index133.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 "./index147.mjs";
2
+ import { weekStartData as i } from "./index158.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/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";const r=require("react/jsx-runtime"),s=require("./index134.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;