@okam/stack-ui 1.29.0 → 1.30.0

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 (413) hide show
  1. package/components/Accordion/components/AccordionItem.d.ts +1 -0
  2. package/components/Accordion/index.d.ts +2 -1
  3. package/components/Accordion/interface.d.ts +3 -2
  4. package/components/Alerts/components/AlertsCloseButton.d.ts +1 -1
  5. package/components/Alerts/index.d.ts +2 -1
  6. package/components/Alerts/interface.d.ts +4 -3
  7. package/components/Box/index.d.ts +3 -2
  8. package/components/Button/index.d.ts +8 -4
  9. package/components/Button/interface.d.ts +3 -2
  10. package/components/Calendar/index.d.ts +5 -1
  11. package/components/Calendar/interface.d.ts +2 -1
  12. package/components/Carousel/components/CarouselNavigationButton.d.ts +3 -3
  13. package/components/Date/index.d.ts +2 -1
  14. package/components/Date/interface.d.ts +2 -1
  15. package/components/Icon/index.d.ts +2 -1
  16. package/components/Icon/interface.d.ts +2 -1
  17. package/components/Lightbox/hooks/overlay/index.d.ts +75 -0
  18. package/components/Lightbox/index.d.ts +2 -1
  19. package/components/Lightbox/interface.d.ts +3 -2
  20. package/components/Menu/Menu.d.ts +2 -1
  21. package/components/Menu/interface.d.ts +5 -4
  22. package/components/Modal/index.d.ts +2 -1
  23. package/components/Modal/interface.d.ts +2 -1
  24. package/components/Popover/index.d.ts +2 -1
  25. package/components/Popover/interface.d.ts +3 -2
  26. package/components/ShareButton/index.d.ts +2 -1
  27. package/components/ShareButton/interface.d.ts +2 -2
  28. package/components/SidePanel/index.d.ts +3 -3
  29. package/components/SidePanel/interface.d.ts +5 -4
  30. package/components/Typography/index.d.ts +3 -2
  31. package/components/Video/index.d.ts +2 -1
  32. package/components/Video/interface.d.ts +2 -1
  33. package/components/WysiwygBlock/attributes.d.ts +2 -0
  34. package/components/WysiwygBlock/index.d.ts +2 -1
  35. package/components/WysiwygBlock/interface.d.ts +2 -1
  36. package/components/fields/Checkbox/Checkbox.interface.d.ts +2 -1
  37. package/components/fields/Checkbox/index.d.ts +2 -1
  38. package/components/fields/CheckboxGroup/index.d.ts +2 -1
  39. package/components/fields/CheckboxGroup/interface.d.ts +2 -1
  40. package/components/fields/DatePicker/index.d.ts +2 -1
  41. package/components/fields/DatePicker/interface.d.ts +2 -1
  42. package/components/fields/Radio/Radio.interface.d.ts +3 -2
  43. package/components/fields/Radio/index.d.ts +3 -2
  44. package/components/fields/RadioGroup/index.d.ts +2 -1
  45. package/components/fields/RadioGroup/interface.d.ts +2 -1
  46. package/components/fields/SearchField/index.d.ts +2 -1
  47. package/components/fields/SearchField/interface.d.ts +2 -1
  48. package/components/fields/Select/Select.d.ts +2 -1
  49. package/components/fields/Select/Select.interface.d.ts +3 -2
  50. package/components/fields/TextArea/index.d.ts +2 -1
  51. package/components/fields/TextInputField/interface.d.ts +3 -2
  52. package/index.d.ts +1 -0
  53. package/index.js +1 -1
  54. package/index.mjs +41 -38
  55. package/index100.js +1 -2
  56. package/index100.mjs +22 -21
  57. package/index101.js +2 -1
  58. package/index101.mjs +22 -63
  59. package/index102.js +1 -1
  60. package/index102.mjs +58 -24
  61. package/index103.js +1 -1
  62. package/index103.mjs +29 -4
  63. package/index104.js +1 -1
  64. package/index104.mjs +52 -11
  65. package/index105.js +1 -1
  66. package/index105.mjs +4 -14
  67. package/index106.js +1 -1
  68. package/index106.mjs +11 -23
  69. package/index107.js +1 -1
  70. package/index107.mjs +13 -22
  71. package/index108.js +1 -1
  72. package/index108.mjs +23 -39
  73. package/index109.js +1 -2
  74. package/index109.mjs +22 -12
  75. package/index11.js +1 -1
  76. package/index11.mjs +2 -2
  77. package/index110.js +1 -1
  78. package/index110.mjs +38 -7
  79. package/index111.js +2 -1
  80. package/index111.mjs +12 -21
  81. package/index112.js +1 -1
  82. package/index112.mjs +7 -38
  83. package/index113.js +1 -1
  84. package/index113.mjs +20 -48
  85. package/index114.js +1 -1
  86. package/index114.mjs +38 -40
  87. package/index115.js +1 -1
  88. package/index115.mjs +47 -11
  89. package/index116.js +1 -1
  90. package/index116.mjs +41 -26
  91. package/index117.js +1 -1
  92. package/index117.mjs +14 -20
  93. package/index118.js +1 -1
  94. package/index118.mjs +30 -8
  95. package/index119.js +1 -1
  96. package/index119.mjs +20 -30
  97. package/index120.js +1 -1
  98. package/index120.mjs +8 -14
  99. package/index121.js +1 -1
  100. package/index121.mjs +29 -16
  101. package/index122.js +1 -1
  102. package/index122.mjs +15 -21
  103. package/index123.js +1 -1
  104. package/index123.mjs +17 -11
  105. package/index124.js +1 -2
  106. package/index124.mjs +20 -21
  107. package/index125.js +1 -1
  108. package/index125.mjs +11 -12
  109. package/index126.js +2 -1
  110. package/index126.mjs +22 -46
  111. package/index127.js +1 -1
  112. package/index127.mjs +12 -241
  113. package/index128.js +1 -2
  114. package/index128.mjs +46 -13
  115. package/index129.js +1 -1
  116. package/index129.mjs +239 -28
  117. package/index13.js +1 -1
  118. package/index13.mjs +8 -5
  119. package/index130.js +2 -1
  120. package/index130.mjs +13 -51
  121. package/index131.js +1 -1
  122. package/index131.mjs +30 -27
  123. package/index132.js +1 -1
  124. package/index132.mjs +49 -19
  125. package/index133.js +1 -1
  126. package/index133.mjs +26 -61
  127. package/index134.js +1 -1
  128. package/index134.mjs +17 -91
  129. package/index135.js +1 -1
  130. package/index135.mjs +59 -29
  131. package/index136.js +1 -1
  132. package/index136.mjs +90 -117
  133. package/index137.js +1 -1
  134. package/index137.mjs +32 -26
  135. package/index138.js +1 -1
  136. package/index138.mjs +118 -121
  137. package/index139.js +1 -1
  138. package/index139.mjs +27 -134
  139. package/index14.js +1 -1
  140. package/index14.mjs +3 -3
  141. package/index140.js +1 -1
  142. package/index140.mjs +122 -12
  143. package/index141.js +1 -1
  144. package/index141.mjs +131 -92
  145. package/index142.js +1 -1
  146. package/index142.mjs +12 -104
  147. package/index143.js +1 -1
  148. package/index143.mjs +95 -5
  149. package/index144.js +1 -1
  150. package/index144.mjs +106 -3
  151. package/index145.js +1 -1
  152. package/index145.mjs +5 -125
  153. package/index146.js +1 -1
  154. package/index146.mjs +3 -29
  155. package/index147.js +1 -1
  156. package/index147.mjs +113 -39
  157. package/index148.js +1 -1
  158. package/index148.mjs +19 -34
  159. package/index149.js +1 -1
  160. package/index149.mjs +40 -26
  161. package/index150.js +1 -1
  162. package/index150.mjs +29 -98
  163. package/index151.js +1 -1
  164. package/index151.mjs +28 -68
  165. package/index152.js +1 -1
  166. package/index152.mjs +90 -78
  167. package/index153.js +1 -1
  168. package/index153.mjs +78 -98
  169. package/index154.js +1 -1
  170. package/index154.mjs +101 -199
  171. package/index155.js +1 -1
  172. package/index155.mjs +98 -65
  173. package/index156.js +1 -1
  174. package/index156.mjs +185 -127
  175. package/index157.js +1 -1
  176. package/index157.mjs +54 -109
  177. package/index158.js +1 -1
  178. package/index158.mjs +126 -202
  179. package/index159.js +1 -1
  180. package/index159.mjs +104 -175
  181. package/index16.js +1 -1
  182. package/index16.mjs +2 -2
  183. package/index160.js +1 -1
  184. package/index160.mjs +208 -60
  185. package/index161.js +1 -1
  186. package/index161.mjs +178 -246
  187. package/index162.js +1 -1
  188. package/index162.mjs +63 -91
  189. package/index163.js +1 -1
  190. package/index163.mjs +250 -166
  191. package/index164.js +1 -1
  192. package/index164.mjs +91 -78
  193. package/index165.js +1 -1
  194. package/index165.mjs +170 -54
  195. package/index166.js +1 -1
  196. package/index166.mjs +72 -114
  197. package/index167.js +1 -1
  198. package/index167.mjs +51 -109
  199. package/index168.js +1 -1
  200. package/index168.mjs +112 -108
  201. package/index169.js +1 -1
  202. package/index169.mjs +109 -65
  203. package/index170.js +1 -1
  204. package/index170.mjs +117 -105
  205. package/index171.js +1 -1
  206. package/index171.mjs +68 -48
  207. package/index172.js +1 -1
  208. package/index172.mjs +108 -91
  209. package/index173.js +1 -1
  210. package/index173.mjs +37 -55
  211. package/index174.js +1 -1
  212. package/index174.mjs +80 -43
  213. package/index175.js +1 -1
  214. package/index175.mjs +52 -81
  215. package/index176.js +1 -5
  216. package/index176.mjs +42 -66
  217. package/index177.js +1 -1
  218. package/index177.mjs +87 -1999
  219. package/index178.js +5 -1
  220. package/index178.mjs +79 -58
  221. package/index179.js +1 -1
  222. package/index179.mjs +1998 -175
  223. package/index18.js +1 -1
  224. package/index18.mjs +7 -7
  225. package/index180.js +1 -1
  226. package/index180.mjs +59 -5
  227. package/index181.js +1 -1
  228. package/index181.mjs +183 -125
  229. package/index182.js +1 -1
  230. package/index182.mjs +5 -179
  231. package/index183.js +1 -1
  232. package/index183.mjs +129 -8
  233. package/index184.js +1 -1
  234. package/index184.mjs +179 -3
  235. package/index185.js +1 -1
  236. package/index185.mjs +8 -35
  237. package/index186.js +1 -1
  238. package/index186.mjs +3 -5
  239. package/index187.js +1 -1
  240. package/index187.mjs +35 -28
  241. package/index188.js +1 -1
  242. package/index188.mjs +5 -6
  243. package/index189.js +1 -1
  244. package/index189.mjs +26 -310
  245. package/index19.js +1 -1
  246. package/index19.mjs +2 -2
  247. package/index190.js +1 -1
  248. package/index190.mjs +6 -192
  249. package/index191.js +1 -1
  250. package/index191.mjs +339 -7
  251. package/index192.js +1 -1
  252. package/index192.mjs +180 -23
  253. package/index193.js +1 -1
  254. package/index193.mjs +6 -53
  255. package/index194.js +1 -1
  256. package/index194.mjs +24 -44
  257. package/index195.js +1 -1
  258. package/index195.mjs +55 -124
  259. package/index196.js +1 -1
  260. package/index196.mjs +46 -5
  261. package/index197.js +1 -1
  262. package/index197.mjs +108 -26
  263. package/index198.js +1 -1
  264. package/index198.mjs +32 -6
  265. package/index199.js +1 -1
  266. package/index199.mjs +5 -7
  267. package/index2.js +1 -1
  268. package/index2.mjs +19 -19
  269. package/index20.js +1 -1
  270. package/index20.mjs +1 -1
  271. package/index200.js +1 -1
  272. package/index200.mjs +28 -7
  273. package/index201.js +1 -1
  274. package/index201.mjs +7 -5
  275. package/index202.js +1 -1
  276. package/index202.mjs +7 -5
  277. package/index203.js +1 -1
  278. package/index203.mjs +7 -9
  279. package/index204.js +1 -0
  280. package/index204.mjs +7 -0
  281. package/index205.js +1 -0
  282. package/index205.mjs +8 -0
  283. package/index206.js +1 -0
  284. package/index206.mjs +12 -0
  285. package/index21.js +1 -1
  286. package/index21.mjs +8 -8
  287. package/index22.js +1 -1
  288. package/index22.mjs +2 -2
  289. package/index23.js +1 -1
  290. package/index23.mjs +3 -3
  291. package/index24.js +1 -1
  292. package/index24.mjs +14 -14
  293. package/index26.js +1 -1
  294. package/index26.mjs +28 -21
  295. package/index27.js +1 -1
  296. package/index27.mjs +12 -12
  297. package/index28.js +1 -1
  298. package/index28.mjs +6 -6
  299. package/index29.js +1 -1
  300. package/index29.mjs +1 -1
  301. package/index30.js +1 -1
  302. package/index30.mjs +14 -8
  303. package/index31.js +1 -1
  304. package/index31.mjs +18 -18
  305. package/index32.js +1 -1
  306. package/index32.mjs +1 -1
  307. package/index33.mjs +43 -43
  308. package/index34.js +1 -1
  309. package/index34.mjs +1 -1
  310. package/index35.js +1 -1
  311. package/index35.mjs +3 -3
  312. package/index36.mjs +10 -10
  313. package/index4.js +1 -1
  314. package/index4.mjs +3 -3
  315. package/index6.js +1 -1
  316. package/index6.mjs +34 -33
  317. package/index65.js +1 -1
  318. package/index65.mjs +1 -1
  319. package/index66.js +1 -1
  320. package/index66.mjs +2 -2
  321. package/index67.js +1 -1
  322. package/index67.mjs +1 -1
  323. package/index69.js +1 -1
  324. package/index69.mjs +1 -1
  325. package/index7.mjs +4 -4
  326. package/index70.js +1 -1
  327. package/index70.mjs +1 -1
  328. package/index71.js +1 -1
  329. package/index71.mjs +1 -1
  330. package/index72.js +2 -1
  331. package/index72.mjs +27 -2
  332. package/index73.js +1 -2
  333. package/index73.mjs +2 -9
  334. package/index74.js +1 -1
  335. package/index74.mjs +7 -6
  336. package/index75.js +1 -1
  337. package/index75.mjs +6 -6
  338. package/index76.js +1 -1
  339. package/index76.mjs +6 -6
  340. package/index77.js +2 -1
  341. package/index77.mjs +8 -25
  342. package/index78.js +1 -1
  343. package/index78.mjs +25 -2
  344. package/index79.js +1 -6
  345. package/index79.mjs +2 -94
  346. package/index8.js +1 -1
  347. package/index8.mjs +42 -23
  348. package/index80.js +6 -1
  349. package/index80.mjs +79 -54
  350. package/index81.js +1 -1
  351. package/index81.mjs +61 -33
  352. package/index82.js +1 -42
  353. package/index82.mjs +34 -67
  354. package/index83.js +42 -1
  355. package/index83.mjs +69 -154
  356. package/index84.js +1 -9
  357. package/index84.mjs +149 -47
  358. package/index85.js +9 -1
  359. package/index85.mjs +48 -36
  360. package/index86.js +1 -1
  361. package/index86.mjs +40 -8
  362. package/index87.js +1 -1
  363. package/index87.mjs +9 -31
  364. package/index88.js +1 -1
  365. package/index88.mjs +35 -6
  366. package/index89.js +1 -12
  367. package/index89.mjs +6 -40
  368. package/index9.js +1 -1
  369. package/index9.mjs +7 -7
  370. package/index90.js +12 -1
  371. package/index90.mjs +36 -25
  372. package/index91.js +1 -1
  373. package/index91.mjs +24 -8
  374. package/index92.js +1 -7
  375. package/index92.mjs +7 -13
  376. package/index93.js +6 -14
  377. package/index93.mjs +13 -65
  378. package/index94.js +15 -1
  379. package/index94.mjs +71 -7
  380. package/index95.js +1 -16
  381. package/index95.mjs +7 -25
  382. package/index96.js +16 -1
  383. package/index96.mjs +20 -37
  384. package/index97.js +1 -1
  385. package/index97.mjs +40 -43
  386. package/index98.js +1 -1
  387. package/index98.mjs +44 -47
  388. package/index99.js +1 -1
  389. package/index99.mjs +48 -17
  390. package/package.json +1 -1
  391. package/providers/Translation/index.d.ts +4 -0
  392. package/providers/Translation/interface.d.ts +16 -0
  393. package/theme/Accordion/index.d.ts +12 -12
  394. package/theme/Alerts/index.d.ts +22 -22
  395. package/theme/Box/index.d.ts +8 -8
  396. package/theme/Button/index.d.ts +2 -2
  397. package/theme/Calendar/index.d.ts +12 -12
  398. package/theme/Carousel/index.d.ts +11 -11
  399. package/theme/Checkbox/index.d.ts +8 -8
  400. package/theme/CheckboxGroup/index.d.ts +3 -3
  401. package/theme/DatePicker/index.d.ts +9 -9
  402. package/theme/Image/index.d.ts +1 -1
  403. package/theme/LightBox/index.d.ts +9 -9
  404. package/theme/Radio/index.d.ts +6 -6
  405. package/theme/RadioGroup/index.d.ts +3 -3
  406. package/theme/Search/index.d.ts +3 -3
  407. package/theme/ShareButton/index.d.ts +10 -10
  408. package/theme/SidePanel/index.d.ts +3 -3
  409. package/theme/TextArea/index.d.ts +2 -2
  410. package/theme/Typography/index.d.ts +2 -2
  411. package/transitions/ModalTransition.d.ts +3 -6
  412. package/transitions/RenderWithSlide.d.ts +3 -6
  413. package/transitions/SidePanelTransition.d.ts +3 -6
package/index106.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),u=require("react-aria"),p=require("./index64.js"),l=require("./index3.js"),h=({item:o,state:i,themeName:t="li"})=>{const e=a.useRef(null),{optionProps:s,isFocusVisible:c}=u.useOption({key:o.key},i,e),r=p(t);return n.jsx(l.TypographyWithForwardRef,{as:"li",...s,tokens:{className:`${r} ${c?"has-focus-ring":""}`},ref:e,children:o.rendered})},x=o=>{const i=a.useRef(null),{listBoxRef:t=i,state:e,themeName:s="option"}=o,{listBoxProps:c}=u.useListBox(o,e,t);return n.jsx(u.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:n.jsx(l.TypographyWithForwardRef,{...c,ref:t,as:"ul",themeName:`${s}.ul`,children:[...e.collection].map(r=>n.jsx(h,{themeName:`${s}.li`,item:r,state:e},r.key))})})};exports.ListBox=x;exports.Option=h;
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("lodash.isequal"),t=require("react"),c=r=>e.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...r,children:[e.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[e.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),e.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),i=t.memo(c,s);module.exports=i;
package/index106.mjs CHANGED
@@ -1,25 +1,13 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import u from "react";
3
- import { useListBox as m, FocusScope as a, useOption as f } from "react-aria";
4
- import p from "./index64.mjs";
5
- import { TypographyWithForwardRef as l } from "./index3.mjs";
6
- const h = ({ item: o, state: i, themeName: t = "li" }) => {
7
- const e = u.useRef(null), { optionProps: s, isFocusVisible: c } = f({ key: o.key }, i, e), r = p(t);
8
- return /* @__PURE__ */ n(
9
- l,
10
- {
11
- as: "li",
12
- ...s,
13
- tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
14
- ref: e,
15
- children: o.rendered
16
- }
17
- );
18
- }, k = (o) => {
19
- const i = u.useRef(null), { listBoxRef: t = i, state: e, themeName: s = "option" } = o, { listBoxProps: c } = m(o, e, t);
20
- return /* @__PURE__ */ n(a, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ n(l, { ...c, ref: t, as: "ul", themeName: `${s}.ul`, children: [...e.collection].map((r) => /* @__PURE__ */ n(h, { themeName: `${s}.li`, item: r, state: e }, r.key)) }) });
21
- };
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import e from "lodash.isequal";
3
+ import { memo as l } from "react";
4
+ const i = (t) => /* @__PURE__ */ o("svg", { width: 20, height: 20, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ...t, children: [
5
+ /* @__PURE__ */ o("g", { stroke: "currentColor", clipPath: "url(#a)", children: [
6
+ /* @__PURE__ */ r("circle", { cx: "8.2727", cy: "8.2727", r: "7.2727" }),
7
+ /* @__PURE__ */ r("path", { d: "M13.4551 13.4531L19.5005 19.4986" })
8
+ ] }),
9
+ /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M0 0h14v14H0z" }) }) })
10
+ ] }), s = l(i, e);
22
11
  export {
23
- k as ListBox,
24
- h as Option
12
+ s as default
25
13
  };
package/index107.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("react"),s=require("react-aria"),i=require("./index25.js"),f=o=>{const n=m.useRef(null),{popoverRef:t=n,state:r,children:c,themeName:u="popover",tokens:l,customTheme:h,triggerRef:x,...d}=o,{popoverProps:p,underlayProps:a}=s.usePopover({...o,popoverRef:t,triggerRef:x},r);return e.jsxs(s.Overlay,{children:[e.jsx("div",{...a,style:{position:"fixed",inset:0}}),e.jsx(i.default,{...d,children:e.jsxs(i.BoxWithForwardRef,{...p,ref:t,themeName:u,tokens:l,children:[e.jsx(s.DismissButton,{onDismiss:r.close}),c,e.jsx(s.DismissButton,{onDismiss:r.close})]})})]})};module.exports=f;
1
+ "use strict";const i=(r,n,t)=>{const e=r[n];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})};module.exports=i;
package/index107.mjs CHANGED
@@ -1,25 +1,16 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import u from "react";
3
- import { usePopover as h, Overlay as v, DismissButton as i } from "react-aria";
4
- import x, { BoxWithForwardRef as R } from "./index25.mjs";
5
- const j = (r) => {
6
- const n = u.useRef(null), { popoverRef: s = n, state: o, children: m, themeName: p = "popover", tokens: f, customTheme: P, triggerRef: l, ...c } = r, { popoverProps: d, underlayProps: a } = h(
7
- {
8
- ...r,
9
- popoverRef: s,
10
- triggerRef: l
11
- },
12
- o
13
- );
14
- return /* @__PURE__ */ t(v, { children: [
15
- /* @__PURE__ */ e("div", { ...a, style: { position: "fixed", inset: 0 } }),
16
- /* @__PURE__ */ e(x, { ...c, children: /* @__PURE__ */ t(R, { ...d, ref: s, themeName: p, tokens: f, children: [
17
- /* @__PURE__ */ e(i, { onDismiss: o.close }),
18
- m,
19
- /* @__PURE__ */ e(i, { onDismiss: o.close })
20
- ] }) })
21
- ] });
1
+ const l = (r, n, t) => {
2
+ const e = r[n];
3
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
+ o.bind(
6
+ null,
7
+ new Error(
8
+ "Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
9
+ )
10
+ )
11
+ );
12
+ });
22
13
  };
23
14
  export {
24
- j as default
15
+ l as default
25
16
  };
package/index108.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index136.js"),o=require("./index137.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),u=require("react-aria"),p=require("./index64.js"),l=require("./index3.js"),h=({item:o,state:i,themeName:t="li"})=>{const e=a.useRef(null),{optionProps:s,isFocusVisible:c}=u.useOption({key:o.key},i,e),r=p(t);return n.jsx(l.TypographyWithForwardRef,{as:"li",...s,tokens:{className:`${r} ${c?"has-focus-ring":""}`},ref:e,children:o.rendered})},x=o=>{const i=a.useRef(null),{listBoxRef:t=i,state:e,themeName:s="option"}=o,{listBoxProps:c}=u.useListBox(o,e,t);return n.jsx(u.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:n.jsx(l.TypographyWithForwardRef,{...c,ref:t,as:"ul",themeName:`${s}.ul`,children:[...e.collection].map(r=>n.jsx(h,{themeName:`${s}.li`,item:r,state:e},r.key))})})};exports.ListBox=x;exports.Option=h;
package/index108.mjs CHANGED
@@ -1,41 +1,25 @@
1
- import { useFormValidationState as r, mergeValidation as o } from "./index136.mjs";
2
- import { useControlledState as b } from "./index137.mjs";
3
- import { useRef as v } from "react";
4
- function y(e = {}) {
5
- let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
6
- ...e,
7
- value: i
8
- }), f = n.displayValidation.isInvalid;
9
- var s;
10
- return {
11
- ...n,
12
- value: i,
13
- setValue(a) {
14
- e.isReadOnly || e.isDisabled || l(a);
15
- },
16
- isDisabled: e.isDisabled || !1,
17
- isReadOnly: e.isReadOnly || !1,
18
- isSelected(a) {
19
- return i.includes(a);
20
- },
21
- addValue(a) {
22
- e.isReadOnly || e.isDisabled || i.includes(a) || l(i.concat(a));
23
- },
24
- removeValue(a) {
25
- e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
26
- },
27
- toggleValue(a) {
28
- e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
29
- },
30
- setInvalid(a, t) {
31
- let d = new Map(u.current);
32
- t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
33
- },
34
- validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
35
- isInvalid: f,
36
- isRequired: c
37
- };
38
- }
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import u from "react";
3
+ import { useListBox as m, FocusScope as a, useOption as f } from "react-aria";
4
+ import p from "./index64.mjs";
5
+ import { TypographyWithForwardRef as l } from "./index3.mjs";
6
+ const h = ({ item: o, state: i, themeName: t = "li" }) => {
7
+ const e = u.useRef(null), { optionProps: s, isFocusVisible: c } = f({ key: o.key }, i, e), r = p(t);
8
+ return /* @__PURE__ */ n(
9
+ l,
10
+ {
11
+ as: "li",
12
+ ...s,
13
+ tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
14
+ ref: e,
15
+ children: o.rendered
16
+ }
17
+ );
18
+ }, k = (o) => {
19
+ const i = u.useRef(null), { listBoxRef: t = i, state: e, themeName: s = "option" } = o, { listBoxProps: c } = m(o, e, t);
20
+ return /* @__PURE__ */ n(a, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ n(l, { ...c, ref: t, as: "ul", themeName: `${s}.ul`, children: [...e.collection].map((r) => /* @__PURE__ */ n(h, { themeName: `${s}.li`, item: r, state: e }, r.key)) }) });
21
+ };
39
22
  export {
40
- y as useCheckboxGroupState
23
+ k as ListBox,
24
+ h as Option
41
25
  };
package/index109.js CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
1
+ "use strict";const e=require("react/jsx-runtime"),m=require("react"),s=require("react-aria"),i=require("./index25.js"),f=o=>{const n=m.useRef(null),{popoverRef:t=n,state:r,children:c,themeName:u="popover",tokens:l,customTheme:h,triggerRef:x,...d}=o,{popoverProps:p,underlayProps:a}=s.usePopover({...o,popoverRef:t,triggerRef:x},r);return e.jsxs(s.Overlay,{children:[e.jsx("div",{...a,style:{position:"fixed",inset:0}}),e.jsx(i.default,{...d,children:e.jsxs(i.BoxWithForwardRef,{...p,ref:t,themeName:u,tokens:l,children:[e.jsx(s.DismissButton,{onDismiss:r.close}),c,e.jsx(s.DismissButton,{onDismiss:r.close})]})})]})};module.exports=f;
package/index109.mjs CHANGED
@@ -1,15 +1,25 @@
1
- "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { createContext as u, useContext as c } from "react";
4
- const o = u(null), i = (t) => {
5
- const { children: e, state: r } = t;
6
- return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import u from "react";
3
+ import { usePopover as h, Overlay as v, DismissButton as i } from "react-aria";
4
+ import x, { BoxWithForwardRef as R } from "./index25.mjs";
5
+ const j = (r) => {
6
+ const n = u.useRef(null), { popoverRef: s = n, state: o, children: m, themeName: p = "popover", tokens: f, customTheme: P, triggerRef: l, ...c } = r, { popoverProps: d, underlayProps: a } = h(
7
+ {
8
+ ...r,
9
+ popoverRef: s,
10
+ triggerRef: l
11
+ },
12
+ o
13
+ );
14
+ return /* @__PURE__ */ t(v, { children: [
15
+ /* @__PURE__ */ e("div", { ...a, style: { position: "fixed", inset: 0 } }),
16
+ /* @__PURE__ */ e(x, { ...c, children: /* @__PURE__ */ t(R, { ...d, ref: s, themeName: p, tokens: f, children: [
17
+ /* @__PURE__ */ e(i, { onDismiss: o.close }),
18
+ m,
19
+ /* @__PURE__ */ e(i, { onDismiss: o.close })
20
+ ] }) })
21
+ ] });
7
22
  };
8
- function C() {
9
- const t = c(o);
10
- return t || null;
11
- }
12
23
  export {
13
- i as CheckboxGroupProvider,
14
- C as useCheckboxGroupCtx
24
+ j as default
15
25
  };
package/index11.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),k=require("react-aria"),L=require("./index71.js"),A=require("./index25.js"),g=require("./index12.js"),I=require("./index101.js"),w=require("./index102.js"),M=p=>{const{id:l,themeName:i="carousel",tokens:r,customTheme:W,slides:x,a11y:n,modules:a,prevButton:h=g.CarouselPrevNavigationButton,nextButton:N=g.CarouselNextNavigationButton,onSwiper:u,onSlideChange:c,...b}=p,m=s.useRef(null),j=s.useRef(null),{enabled:B=!0,paginationGroupLabel:C="pagination",...f}=n??{},v=a==null?void 0:a.includes("Navigation"),q=a==null?void 0:a.includes("Pagination"),[$,P]=s.useState(),[d,R]=s.useState(0),o=x.map((e,S)=>({...e,ariaLabel:e.ariaLabel??`${S+1} / ${x.length}`}));return t.jsx(A.default,{themeName:`${i}.carouselWrapper`,tokens:r,children:t.jsxs(L.SwiperControllerContextProvider,{controller:$,children:[v&&t.jsx(h,{themeName:`${i}.navigation.button`,tokens:{...r,order:"prev"},ref:m,"aria-label":n==null?void 0:n.prevSlideMessage,"aria-controls":l}),t.jsx(I,{themeName:i,tokens:r,id:l,slides:o,onSwiper:e=>{P(e),u==null||u(e)},onSlideChange:e=>{R(e.activeIndex),c==null||c(e)},a11y:f,modules:a,...b}),v&&t.jsx(N,{themeName:`${i}.navigation.button`,tokens:{...r,order:"next"},ref:j,"aria-label":n==null?void 0:n.nextSlideMessage,"aria-controls":l}),q&&t.jsx(w,{themeName:`${i}.pagination`,tokens:r,activeIndex:d,slides:o,paginationGroupLabel:C}),B&&t.jsx(k.VisuallyHidden,{children:t.jsx("div",{"aria-live":"polite",children:o[d].title??o[d].ariaLabel})})]})})};module.exports=M;
2
+ "use strict";const t=require("react/jsx-runtime"),s=require("react"),k=require("react-aria"),L=require("./index71.js"),A=require("./index25.js"),g=require("./index12.js"),I=require("./index102.js"),w=require("./index103.js"),M=p=>{const{id:l,themeName:i="carousel",tokens:r,customTheme:W,slides:x,a11y:n,modules:a,prevButton:h=g.CarouselPrevNavigationButton,nextButton:N=g.CarouselNextNavigationButton,onSwiper:u,onSlideChange:c,...b}=p,m=s.useRef(null),j=s.useRef(null),{enabled:B=!0,paginationGroupLabel:C="pagination",...f}=n??{},v=a==null?void 0:a.includes("Navigation"),q=a==null?void 0:a.includes("Pagination"),[$,P]=s.useState(),[d,R]=s.useState(0),o=x.map((e,S)=>({...e,ariaLabel:e.ariaLabel??`${S+1} / ${x.length}`}));return t.jsx(A.default,{themeName:`${i}.carouselWrapper`,tokens:r,children:t.jsxs(L.SwiperControllerContextProvider,{controller:$,children:[v&&t.jsx(h,{themeName:`${i}.navigation.button`,tokens:{...r,order:"prev"},ref:m,"aria-label":n==null?void 0:n.prevSlideMessage,"aria-controls":l}),t.jsx(I,{themeName:i,tokens:r,id:l,slides:o,onSwiper:e=>{P(e),u==null||u(e)},onSlideChange:e=>{R(e.activeIndex),c==null||c(e)},a11y:f,modules:a,...b}),v&&t.jsx(N,{themeName:`${i}.navigation.button`,tokens:{...r,order:"next"},ref:j,"aria-label":n==null?void 0:n.nextSlideMessage,"aria-controls":l}),q&&t.jsx(w,{themeName:`${i}.pagination`,tokens:r,activeIndex:d,slides:o,paginationGroupLabel:C}),B&&t.jsx(k.VisuallyHidden,{children:t.jsx("div",{"aria-live":"polite",children:o[d].title??o[d].ariaLabel})})]})})};module.exports=M;
package/index11.mjs CHANGED
@@ -5,8 +5,8 @@ import { VisuallyHidden as j } from "react-aria";
5
5
  import { SwiperControllerContextProvider as w } from "./index71.mjs";
6
6
  import A from "./index25.mjs";
7
7
  import { CarouselPrevNavigationButton as M, CarouselNextNavigationButton as W } from "./index12.mjs";
8
- import y from "./index101.mjs";
9
- import E from "./index102.mjs";
8
+ import y from "./index102.mjs";
9
+ import E from "./index103.mjs";
10
10
  const J = (f) => {
11
11
  const {
12
12
  id: s,
package/index110.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),s=require("react-aria");function u({title:c,children:t,...r}){const e=n.useRef(null),{dialogProps:i}=s.useDialog(r,e);return o.jsx("div",{...i,ref:e,children:t})}exports.Dialog=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index138.js"),o=require("./index139.js"),v=require("react");function V(e={}){let[a,l]=o.useControlledState(e.value,e.defaultValue||[],e.onChange),f=!!e.isRequired&&a.length===0,u=v.useRef(new Map),n=c.useFormValidationState({...e,value:a}),r=n.displayValidation.isInvalid;var s;return{...n,value:a,setValue(i){e.isReadOnly||e.isDisabled||l(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return a.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||a.includes(i)||l(a.concat(i))},removeValue(i){e.isReadOnly||e.isDisabled||a.includes(i)&&l(a.filter(t=>t!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(a.includes(i)?l(a.filter(t=>t!==i)):l(a.concat(i)))},setInvalid(i,t){let d=new Map(u.current);t.isInvalid?d.set(i,t):d.delete(i),u.current=d,n.updateValidation(c.mergeValidation(...d.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:r?"invalid":null,isInvalid:r,isRequired:f}}exports.useCheckboxGroupState=V;
package/index110.mjs CHANGED
@@ -1,10 +1,41 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useRef as f } from "react";
3
- import { useDialog as l } from "react-aria";
4
- function u({ title: m, children: r, ...t }) {
5
- const o = f(null), { dialogProps: i } = l(t, o);
6
- return /* @__PURE__ */ e("div", { ...i, ref: o, children: r });
1
+ import { useFormValidationState as r, mergeValidation as o } from "./index138.mjs";
2
+ import { useControlledState as b } from "./index139.mjs";
3
+ import { useRef as v } from "react";
4
+ function y(e = {}) {
5
+ let [i, l] = b(e.value, e.defaultValue || [], e.onChange), c = !!e.isRequired && i.length === 0, u = v(/* @__PURE__ */ new Map()), n = r({
6
+ ...e,
7
+ value: i
8
+ }), f = n.displayValidation.isInvalid;
9
+ var s;
10
+ return {
11
+ ...n,
12
+ value: i,
13
+ setValue(a) {
14
+ e.isReadOnly || e.isDisabled || l(a);
15
+ },
16
+ isDisabled: e.isDisabled || !1,
17
+ isReadOnly: e.isReadOnly || !1,
18
+ isSelected(a) {
19
+ return i.includes(a);
20
+ },
21
+ addValue(a) {
22
+ e.isReadOnly || e.isDisabled || i.includes(a) || l(i.concat(a));
23
+ },
24
+ removeValue(a) {
25
+ e.isReadOnly || e.isDisabled || i.includes(a) && l(i.filter((t) => t !== a));
26
+ },
27
+ toggleValue(a) {
28
+ e.isReadOnly || e.isDisabled || (i.includes(a) ? l(i.filter((t) => t !== a)) : l(i.concat(a)));
29
+ },
30
+ setInvalid(a, t) {
31
+ let d = new Map(u.current);
32
+ t.isInvalid ? d.set(a, t) : d.delete(a), u.current = d, n.updateValidation(o(...d.values()));
33
+ },
34
+ validationState: (s = e.validationState) !== null && s !== void 0 ? s : f ? "invalid" : null,
35
+ isInvalid: f,
36
+ isRequired: c
37
+ };
7
38
  }
8
39
  export {
9
- u as Dialog
40
+ y as useCheckboxGroupState
10
41
  };
package/index111.js CHANGED
@@ -1 +1,2 @@
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 r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const m=v(f);function j({themeName:e="datePicker",tokens:r,...o}){const s=m.useRef(null),{state:c,children:i}={...o},{popoverProps:l,underlayProps:u}=n.usePopover({...o,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,r),p=a(`${e}.calendarPopover`,r);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 client";
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),o=t.createContext(null),c=e=>{const{children:r,state:n}=e;return u.jsx(o.Provider,{value:n,children:r})};function s(){const e=t.useContext(o);return e||null}exports.CheckboxGroupProvider=c;exports.useCheckboxGroupCtx=s;
package/index111.mjs CHANGED
@@ -1,24 +1,15 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
3
- import * as P from "react";
4
- import t from "./index64.mjs";
5
- function D({ themeName: r = "datePicker", tokens: s, ...n }) {
6
- const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
7
- {
8
- ...n,
9
- popoverRef: a
10
- },
11
- e
12
- ), d = t(`${r}.calendarUnderlay`, s), u = t(`${r}.calendarPopover`, s);
13
- return /* @__PURE__ */ c(f, { children: [
14
- /* @__PURE__ */ o("div", { ...m, className: d }),
15
- /* @__PURE__ */ c("div", { ...p, ref: a, className: u, children: [
16
- /* @__PURE__ */ o(i, { onDismiss: e.close }),
17
- l,
18
- /* @__PURE__ */ o(i, { onDismiss: e.close })
19
- ] })
20
- ] });
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { createContext as u, useContext as c } from "react";
4
+ const o = u(null), i = (t) => {
5
+ const { children: e, state: r } = t;
6
+ return /* @__PURE__ */ n(o.Provider, { value: r, children: e });
7
+ };
8
+ function C() {
9
+ const t = c(o);
10
+ return t || null;
21
11
  }
22
12
  export {
23
- D as CalendarPopover
13
+ i as CheckboxGroupProvider,
14
+ C as useCheckboxGroupCtx
24
15
  };
package/index112.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("./index114.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),x=require("./index64.js");function p({segment:e,state:i}){const s=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,s),c=x("datePicker.dateSegment");return r.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:r.jsxs("div",{...t,ref:s,className:c,children:[r.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 q(e){const{locale:i}=u.useLocale(),s=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,s,t);return r.jsx("div",{...c,ref:t,className:"flex",children:s.segments.map((l,o)=>r.jsx(p,{segment:l,state:s},o))})}module.exports=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),s=require("react-aria");function u({title:c,children:t,...r}){const e=n.useRef(null),{dialogProps:i}=s.useDialog(r,e);return o.jsx("div",{...i,ref:e,children:t})}exports.Dialog=u;
package/index112.mjs CHANGED
@@ -1,41 +1,10 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { createCalendar as d } from "./index114.mjs";
3
- import { useDateField as m, useDateSegment as f } from "@react-aria/datepicker";
4
- import { useLocale as u } from "@react-aria/i18n";
5
- import { useDateFieldState as h } from "@react-stately/datepicker";
6
- import { useRef as s } from "react";
7
- import { FocusRing as p } from "react-aria";
8
- import x from "./index64.mjs";
9
- function P({ segment: e, state: i }) {
10
- const t = s(null), { segmentProps: o } = f(e, i, t), l = x("datePicker.dateSegment");
11
- return /* @__PURE__ */ r(p, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c("div", { ...o, ref: t, className: l, children: [
12
- /* @__PURE__ */ r(
13
- "span",
14
- {
15
- "aria-hidden": "true",
16
- style: {
17
- visibility: e.isPlaceholder ? "visible" : "hidden",
18
- height: e.isPlaceholder ? "" : 0,
19
- pointerEvents: "none",
20
- display: e.isPlaceholder ? "block" : "none"
21
- },
22
- children: e.placeholder
23
- }
24
- ),
25
- e.isPlaceholder ? "" : e.text
26
- ] }) });
27
- }
28
- function R(e) {
29
- const { locale: i } = u(), t = h({
30
- ...e,
31
- locale: i,
32
- createCalendar: d
33
- }), o = s(null), { fieldProps: l } = m(e, t, o);
34
- return /* @__PURE__ */ r("div", { ...l, ref: o, className: "flex", children: t.segments.map((a, n) => (
35
- // eslint-disable-next-line react/no-array-index-key
36
- /* @__PURE__ */ r(P, { segment: a, state: t }, n)
37
- )) });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useRef as f } from "react";
3
+ import { useDialog as l } from "react-aria";
4
+ function u({ title: m, children: r, ...t }) {
5
+ const o = f(null), { dialogProps: i } = l(t, o);
6
+ return /* @__PURE__ */ e("div", { ...i, ref: o, children: r });
38
7
  }
39
8
  export {
40
- R as default
9
+ u as Dialog
41
10
  };
package/index113.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),v=require("./index114.js"),R=require("@react-aria/calendar"),m=require("@react-aria/i18n"),P=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),h=require("./index6.js"),x=require("./index14.js"),p=require("./index3.js"),w=require("./index115.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=m.useLocale(),o=P.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:j,prevButtonProps:s,nextButtonProps:i,title:C}=R.useRangeCalendar({...t},o,d),g=c(`${a}.container`,r),$=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...j,ref:d,className:g,children:[e.jsxs("div",{className:$,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:C}),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";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 r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const m=v(f);function j({themeName:e="datePicker",tokens:r,...o}){const s=m.useRef(null),{state:c,children:i}={...o},{popoverProps:l,underlayProps:u}=n.usePopover({...o,popoverRef:s},c),d=a(`${e}.calendarUnderlay`,r),p=a(`${e}.calendarPopover`,r);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/index113.mjs CHANGED
@@ -1,52 +1,24 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { createCalendar as R } from "./index114.mjs";
3
- import { useRangeCalendar as T } from "@react-aria/calendar";
4
- import { useLocale as y } from "@react-aria/i18n";
5
- import { useRangeCalendarState as P } from "@react-stately/calendar";
6
- import { useRef as B } from "react";
7
- import c from "./index64.mjs";
8
- import p from "./index6.mjs";
9
- import h from "./index14.mjs";
10
- import j from "./index3.mjs";
11
- import w from "./index115.mjs";
12
- function J({ buttons: e, tokens: a, customTheme: A, themeName: n = "calendar", ...s }) {
13
- var m, f;
14
- const { locale: g } = y(), d = P({
15
- ...s,
16
- locale: g,
17
- createCalendar: R
18
- }), l = B(null), { calendarProps: C, prevButtonProps: o, nextButtonProps: i, title: u } = T({ ...s }, d, l), $ = c(`${n}.container`, a), v = c(`${n}.header`, a), x = c(`${n}.navigationButtonsContainer`, a);
19
- return /* @__PURE__ */ t("div", { ...C, ref: l, className: $, children: [
20
- /* @__PURE__ */ t("div", { className: v, children: [
21
- /* @__PURE__ */ r(j, { as: "p", tokens: { size: "h6" }, children: u }),
22
- /* @__PURE__ */ t("div", { className: x, children: [
23
- /* @__PURE__ */ r(
24
- p,
25
- {
26
- themeName: `${n}.navigationButtons`,
27
- tokens: { ...a },
28
- type: "button",
29
- ...o,
30
- handlePress: o == null ? void 0 : o.onPress,
31
- children: /* @__PURE__ */ r(h, { icon: ((m = e == null ? void 0 : e.buttonPrev) == null ? void 0 : m.icon) ?? "ArrowLeft" })
32
- }
33
- ),
34
- /* @__PURE__ */ r(
35
- p,
36
- {
37
- themeName: `${n}.navigationButtons`,
38
- tokens: { ...a },
39
- type: "button",
40
- ...i,
41
- handlePress: i == null ? void 0 : i.onPress,
42
- children: /* @__PURE__ */ r(h, { icon: ((f = e == null ? void 0 : e.buttonNext) == null ? void 0 : f.icon) ?? "ArrowRight" })
43
- }
44
- )
45
- ] })
46
- ] }),
47
- /* @__PURE__ */ r(w, { state: d })
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { usePopover as v, Overlay as f, DismissButton as i } from "@react-aria/overlays";
3
+ import * as P from "react";
4
+ import t from "./index64.mjs";
5
+ function D({ themeName: r = "datePicker", tokens: s, ...n }) {
6
+ const a = P.useRef(null), { state: e, children: l } = { ...n }, { popoverProps: p, underlayProps: m } = v(
7
+ {
8
+ ...n,
9
+ popoverRef: a
10
+ },
11
+ e
12
+ ), d = t(`${r}.calendarUnderlay`, s), u = t(`${r}.calendarPopover`, s);
13
+ return /* @__PURE__ */ c(f, { children: [
14
+ /* @__PURE__ */ o("div", { ...m, className: d }),
15
+ /* @__PURE__ */ c("div", { ...p, ref: a, className: u, children: [
16
+ /* @__PURE__ */ o(i, { onDismiss: e.close }),
17
+ l,
18
+ /* @__PURE__ */ o(i, { onDismiss: e.close })
19
+ ] })
48
20
  ] });
49
21
  }
50
22
  export {
51
- J as default
23
+ D as CalendarPopover
52
24
  };
package/index114.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index146.js"),e=require("./index152.js"),i=require("./index141.js"),c=require("./index151.js"),t=require("./index149.js"),a=require("./index150.js"),l=require("./index145.js"),s=require("./index148.js"),d=require("./index147.js");function u(r){switch(r){case"buddhist":return new n.BuddhistCalendar;case"ethiopic":return new e.EthiopicCalendar;case"ethioaa":return new e.EthiopicAmeteAlemCalendar;case"coptic":return new e.CopticCalendar;case"hebrew":return new c.HebrewCalendar;case"indian":return new t.IndianCalendar;case"islamic-civil":return new a.IslamicCivilCalendar;case"islamic-tbla":return new a.IslamicTabularCalendar;case"islamic-umalqura":return new a.IslamicUmalquraCalendar;case"japanese":return new l.JapaneseCalendar;case"persian":return new s.PersianCalendar;case"roc":return new d.TaiwanCalendar;case"gregory":default:return new i.GregorianCalendar}}exports.createCalendar=u;
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("./index116.js"),n=require("@react-aria/datepicker"),u=require("@react-aria/i18n"),h=require("@react-stately/datepicker"),a=require("react"),f=require("react-aria"),x=require("./index64.js");function p({segment:e,state:i}){const s=a.useRef(null),{segmentProps:t}=n.useDateSegment(e,i,s),c=x("datePicker.dateSegment");return r.jsx(f.FocusRing,{focusRingClass:"has-focus-ring",children:r.jsxs("div",{...t,ref:s,className:c,children:[r.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 q(e){const{locale:i}=u.useLocale(),s=h.useDateFieldState({...e,locale:i,createCalendar:d.createCalendar}),t=a.useRef(null),{fieldProps:c}=n.useDateField(e,s,t);return r.jsx("div",{...c,ref:t,className:"flex",children:s.segments.map((l,o)=>r.jsx(p,{segment:l,state:s},o))})}module.exports=q;
package/index114.mjs CHANGED
@@ -1,43 +1,41 @@
1
- import { BuddhistCalendar as a } from "./index146.mjs";
2
- import { CopticCalendar as r, EthiopicAmeteAlemCalendar as c, EthiopicCalendar as n } from "./index152.mjs";
3
- import { GregorianCalendar as t } from "./index141.mjs";
4
- import { HebrewCalendar as d } from "./index151.mjs";
5
- import { IndianCalendar as f } from "./index149.mjs";
6
- import { IslamicUmalquraCalendar as o, IslamicTabularCalendar as i, IslamicCivilCalendar as $ } from "./index150.mjs";
7
- import { JapaneseCalendar as s } from "./index145.mjs";
8
- import { PersianCalendar as b } from "./index148.mjs";
9
- import { TaiwanCalendar as p } from "./index147.mjs";
10
- function q(e) {
11
- switch (e) {
12
- case "buddhist":
13
- return new a();
14
- case "ethiopic":
15
- return new n();
16
- case "ethioaa":
17
- return new c();
18
- case "coptic":
19
- return new r();
20
- case "hebrew":
21
- return new d();
22
- case "indian":
23
- return new f();
24
- case "islamic-civil":
25
- return new $();
26
- case "islamic-tbla":
27
- return new i();
28
- case "islamic-umalqura":
29
- return new o();
30
- case "japanese":
31
- return new s();
32
- case "persian":
33
- return new b();
34
- case "roc":
35
- return new p();
36
- case "gregory":
37
- default:
38
- return new t();
39
- }
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { createCalendar as d } from "./index116.mjs";
3
+ import { useDateField as m, useDateSegment as f } from "@react-aria/datepicker";
4
+ import { useLocale as u } from "@react-aria/i18n";
5
+ import { useDateFieldState as h } from "@react-stately/datepicker";
6
+ import { useRef as s } from "react";
7
+ import { FocusRing as p } from "react-aria";
8
+ import x from "./index64.mjs";
9
+ function P({ segment: e, state: i }) {
10
+ const t = s(null), { segmentProps: o } = f(e, i, t), l = x("datePicker.dateSegment");
11
+ return /* @__PURE__ */ r(p, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c("div", { ...o, ref: t, className: l, children: [
12
+ /* @__PURE__ */ r(
13
+ "span",
14
+ {
15
+ "aria-hidden": "true",
16
+ style: {
17
+ visibility: e.isPlaceholder ? "visible" : "hidden",
18
+ height: e.isPlaceholder ? "" : 0,
19
+ pointerEvents: "none",
20
+ display: e.isPlaceholder ? "block" : "none"
21
+ },
22
+ children: e.placeholder
23
+ }
24
+ ),
25
+ e.isPlaceholder ? "" : e.text
26
+ ] }) });
27
+ }
28
+ function R(e) {
29
+ const { locale: i } = u(), t = h({
30
+ ...e,
31
+ locale: i,
32
+ createCalendar: d
33
+ }), o = s(null), { fieldProps: l } = m(e, t, o);
34
+ return /* @__PURE__ */ r("div", { ...l, ref: o, className: "flex", children: t.segments.map((a, n) => (
35
+ // eslint-disable-next-line react/no-array-index-key
36
+ /* @__PURE__ */ r(P, { segment: a, state: t }, n)
37
+ )) });
40
38
  }
41
39
  export {
42
- q as createCalendar
40
+ R as default
43
41
  };
package/index115.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),b=require("./index130.js"),q=require("@react-aria/calendar"),p=require("@react-aria/i18n"),a=require("./index64.js"),y=require("./index131.js");function g({themeName:c="calendar",customTheme:k,tokens:l,state:n,...i}){const{locale:o}=p.useLocale(),{gridProps:t,headerProps:d,weekDays:h}=q.useCalendarGrid({...i},n),u=b.getWeeksInMonth(n.visibleRange.start,o),j=a(`${c}.calendarTable`,l),x=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:x,children:r},`${r}`))})}),e.jsx("tbody",{children:[...new Array(u).keys()].map(r=>e.jsx("tr",{children:n.getDatesInWeek(r).map((s,m)=>s?e.jsx(y,{state:n,date:s},s==null?void 0:s.day):e.jsx("td",{},m))},r))})]})}module.exports=g;
1
+ "use strict";const e=require("react/jsx-runtime"),v=require("./index116.js"),R=require("@react-aria/calendar"),m=require("@react-aria/i18n"),P=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),h=require("./index6.js"),x=require("./index14.js"),p=require("./index3.js"),w=require("./index117.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var l,u;const{locale:q}=m.useLocale(),o=P.useRangeCalendarState({...t,locale:q,createCalendar:v.createCalendar}),d=T.useRef(null),{calendarProps:j,prevButtonProps:s,nextButtonProps:i,title:C}=R.useRangeCalendar({...t},o,d),g=c(`${a}.container`,r),$=c(`${a}.header`,r),f=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...j,ref:d,className:g,children:[e.jsxs("div",{className:$,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:C}),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;