@okam/stack-ui 1.29.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/components/WysiwygBlock/attributes.d.ts +2 -0
  2. package/index101.js +1 -1
  3. package/index101.mjs +3 -3
  4. package/index102.js +1 -1
  5. package/index102.mjs +1 -1
  6. package/index103.js +1 -1
  7. package/index103.mjs +52 -4
  8. package/index104.js +1 -1
  9. package/index104.mjs +4 -11
  10. package/index105.js +1 -1
  11. package/index105.mjs +11 -14
  12. package/index106.js +1 -1
  13. package/index106.mjs +13 -22
  14. package/index107.js +1 -1
  15. package/index107.mjs +19 -19
  16. package/index108.js +1 -1
  17. package/index108.mjs +22 -38
  18. package/index109.js +1 -2
  19. package/index109.mjs +38 -12
  20. package/index110.js +2 -1
  21. package/index110.mjs +12 -7
  22. package/index111.js +1 -1
  23. package/index111.mjs +7 -21
  24. package/index112.js +1 -1
  25. package/index112.mjs +21 -38
  26. package/index113.js +1 -1
  27. package/index113.mjs +38 -49
  28. package/index114.js +1 -1
  29. package/index114.mjs +49 -40
  30. package/index115.js +1 -1
  31. package/index115.mjs +40 -13
  32. package/index116.js +1 -1
  33. package/index116.mjs +14 -26
  34. package/index117.js +1 -1
  35. package/index117.mjs +23 -17
  36. package/index118.js +1 -1
  37. package/index118.mjs +19 -8
  38. package/index119.js +1 -1
  39. package/index119.mjs +9 -30
  40. package/index120.js +1 -1
  41. package/index120.mjs +30 -15
  42. package/index121.js +1 -1
  43. package/index121.mjs +13 -15
  44. package/index122.js +1 -1
  45. package/index122.mjs +17 -21
  46. package/index123.js +1 -1
  47. package/index123.mjs +21 -11
  48. package/index124.js +1 -2
  49. package/index124.mjs +11 -22
  50. package/index125.js +2 -1
  51. package/index125.mjs +22 -12
  52. package/index126.js +1 -1
  53. package/index126.mjs +12 -46
  54. package/index127.js +1 -1
  55. package/index127.mjs +46 -241
  56. package/index128.js +1 -2
  57. package/index128.mjs +241 -13
  58. package/index129.js +2 -1
  59. package/index129.mjs +12 -29
  60. package/index13.js +1 -1
  61. package/index13.mjs +8 -5
  62. package/index130.js +1 -1
  63. package/index130.mjs +30 -51
  64. package/index131.js +1 -1
  65. package/index131.mjs +49 -25
  66. package/index132.js +1 -1
  67. package/index132.mjs +25 -19
  68. package/index133.js +1 -1
  69. package/index133.mjs +17 -58
  70. package/index134.js +1 -1
  71. package/index134.mjs +57 -90
  72. package/index135.js +1 -1
  73. package/index135.mjs +91 -28
  74. package/index136.js +1 -1
  75. package/index136.mjs +30 -120
  76. package/index137.js +1 -1
  77. package/index137.mjs +119 -25
  78. package/index138.js +1 -1
  79. package/index138.mjs +25 -122
  80. package/index139.js +1 -1
  81. package/index139.mjs +122 -132
  82. package/index14.js +1 -1
  83. package/index14.mjs +3 -3
  84. package/index140.js +1 -1
  85. package/index140.mjs +132 -12
  86. package/index141.js +1 -1
  87. package/index141.mjs +12 -93
  88. package/index142.js +1 -1
  89. package/index142.mjs +87 -98
  90. package/index143.js +1 -1
  91. package/index143.mjs +106 -5
  92. package/index144.js +1 -1
  93. package/index144.mjs +5 -3
  94. package/index145.js +1 -1
  95. package/index145.mjs +3 -125
  96. package/index146.js +1 -1
  97. package/index146.mjs +117 -21
  98. package/index147.js +1 -1
  99. package/index147.mjs +15 -37
  100. package/index148.js +1 -1
  101. package/index148.mjs +41 -34
  102. package/index149.js +1 -1
  103. package/index149.mjs +32 -25
  104. package/index150.js +1 -1
  105. package/index150.mjs +22 -98
  106. package/index151.js +1 -1
  107. package/index151.mjs +99 -63
  108. package/index152.js +1 -1
  109. package/index152.mjs +55 -79
  110. package/index153.js +1 -1
  111. package/index153.mjs +102 -98
  112. package/index154.js +1 -1
  113. package/index154.mjs +98 -200
  114. package/index155.js +1 -1
  115. package/index155.mjs +186 -51
  116. package/index156.js +1 -1
  117. package/index156.mjs +51 -128
  118. package/index157.js +1 -1
  119. package/index157.mjs +129 -107
  120. package/index158.js +1 -1
  121. package/index158.mjs +101 -199
  122. package/index159.js +1 -1
  123. package/index159.mjs +198 -171
  124. package/index16.js +1 -1
  125. package/index16.mjs +2 -2
  126. package/index160.js +1 -1
  127. package/index160.mjs +182 -61
  128. package/index161.js +1 -1
  129. package/index161.mjs +60 -249
  130. package/index162.js +1 -1
  131. package/index162.mjs +249 -88
  132. package/index163.js +1 -1
  133. package/index163.mjs +93 -170
  134. package/index164.js +1 -1
  135. package/index164.mjs +170 -80
  136. package/index165.js +1 -1
  137. package/index165.mjs +75 -49
  138. package/index166.js +1 -1
  139. package/index166.mjs +49 -117
  140. package/index167.js +1 -1
  141. package/index167.mjs +118 -108
  142. package/index168.js +1 -1
  143. package/index168.mjs +106 -112
  144. package/index169.js +1 -1
  145. package/index169.mjs +113 -63
  146. package/index170.js +1 -1
  147. package/index170.mjs +70 -108
  148. package/index171.js +1 -1
  149. package/index171.mjs +108 -50
  150. package/index172.js +1 -1
  151. package/index172.mjs +34 -75
  152. package/index173.js +1 -1
  153. package/index173.mjs +71 -48
  154. package/index174.js +1 -1
  155. package/index174.mjs +57 -43
  156. package/index175.js +1 -1
  157. package/index175.mjs +43 -86
  158. package/index176.js +1 -5
  159. package/index176.mjs +81 -62
  160. package/index177.js +5 -1
  161. package/index177.mjs +72 -2003
  162. package/index178.js +1 -1
  163. package/index178.mjs +2006 -54
  164. package/index179.js +1 -1
  165. package/index179.mjs +56 -185
  166. package/index18.js +1 -1
  167. package/index18.mjs +1 -1
  168. package/index180.js +1 -1
  169. package/index180.mjs +188 -5
  170. package/index181.js +1 -1
  171. package/index181.mjs +5 -130
  172. package/index182.js +1 -1
  173. package/index182.mjs +123 -172
  174. package/index183.js +1 -1
  175. package/index183.mjs +178 -8
  176. package/index184.js +1 -1
  177. package/index184.mjs +9 -3
  178. package/index185.js +1 -1
  179. package/index185.mjs +3 -36
  180. package/index186.js +1 -1
  181. package/index186.mjs +36 -5
  182. package/index187.js +1 -1
  183. package/index187.mjs +5 -29
  184. package/index188.js +1 -1
  185. package/index188.mjs +29 -6
  186. package/index189.js +1 -1
  187. package/index189.mjs +6 -313
  188. package/index19.js +1 -1
  189. package/index19.mjs +2 -2
  190. package/index190.js +1 -1
  191. package/index190.mjs +301 -180
  192. package/index191.js +1 -1
  193. package/index191.mjs +192 -8
  194. package/index192.js +1 -1
  195. package/index192.mjs +7 -25
  196. package/index193.js +1 -1
  197. package/index193.mjs +26 -55
  198. package/index194.js +1 -1
  199. package/index194.mjs +55 -46
  200. package/index195.js +1 -1
  201. package/index195.mjs +45 -123
  202. package/index196.js +1 -1
  203. package/index196.mjs +124 -5
  204. package/index197.js +1 -1
  205. package/index197.mjs +5 -28
  206. package/index198.js +1 -1
  207. package/index198.mjs +28 -6
  208. package/index199.js +1 -1
  209. package/index199.mjs +7 -8
  210. package/index20.js +1 -1
  211. package/index20.mjs +1 -1
  212. package/index200.js +1 -1
  213. package/index200.mjs +6 -6
  214. package/index201.js +1 -1
  215. package/index201.mjs +6 -3
  216. package/index202.js +1 -1
  217. package/index202.mjs +4 -5
  218. package/index203.js +1 -1
  219. package/index203.mjs +5 -9
  220. package/index204.js +1 -0
  221. package/index204.mjs +12 -0
  222. package/index23.js +1 -1
  223. package/index23.mjs +3 -3
  224. package/index24.js +1 -1
  225. package/index24.mjs +4 -4
  226. package/index26.js +1 -1
  227. package/index26.mjs +2 -2
  228. package/index27.js +1 -1
  229. package/index27.mjs +3 -3
  230. package/index29.js +1 -1
  231. package/index29.mjs +1 -1
  232. package/index31.js +1 -1
  233. package/index31.mjs +2 -2
  234. package/index32.js +1 -1
  235. package/index32.mjs +1 -1
  236. package/index34.js +1 -1
  237. package/index34.mjs +1 -1
  238. package/index35.js +1 -1
  239. package/index35.mjs +2 -2
  240. package/index65.js +1 -1
  241. package/index65.mjs +1 -1
  242. package/index66.js +1 -1
  243. package/index66.mjs +1 -1
  244. package/index67.js +1 -1
  245. package/index67.mjs +1 -1
  246. package/index69.js +1 -1
  247. package/index69.mjs +1 -1
  248. package/index70.js +1 -1
  249. package/index70.mjs +1 -1
  250. package/index71.js +1 -1
  251. package/index71.mjs +1 -1
  252. package/index97.js +1 -1
  253. package/index97.mjs +3 -3
  254. package/index98.js +1 -1
  255. package/index98.mjs +1 -1
  256. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export declare const ariaAttributes: string[];
2
+ export declare const booleanAttributes: string[];
package/index101.js CHANGED
@@ -1 +1 @@
1
- "use strict";const a=require("react/jsx-runtime"),M=require("./index126.js"),n=require("./index127.js"),o=require("./index64.js"),N=require("./index128.js"),T=p=>{const{slides:c,slidesPerView:d=1,spaceBetween:u=50,themeName:r,tokens:s,customTheme:m,modules:i,a11y:t,children:w=e=>a.jsx(N,{...e}),...h}=p,b=o(`${r}.slide.wrapper`,s),x=o(`${r}.swiper.swiper`,s,m),g=o(`${r}.swiper.wrapper`,s),y=["A11y"],S=[...(i==null?void 0:i.filter(e=>e!=="Pagination"))??[],...y].map(e=>M[e]),{itemRoleDescriptionMessage:q="slide",slideRole:R="group",containerRoleDescriptionMessage:f="carousel"}=t??{};return a.jsx(n.Swiper,{tabIndex:0,...h,watchSlidesProgress:!0,role:"group","aria-roledescription":f??void 0,slidesPerView:d,spaceBetween:u,className:x,wrapperClass:g,modules:S,keyboard:{enabled:!0,onlyInViewport:!1},a11y:{...t,enabled:!1},children:c.map(e=>{const{id:l,title:j}=e;return a.jsx(n.SwiperSlide,{className:b,...j?{"aria-labelledby":l}:{"aria-label":e.ariaLabel},role:R,"aria-roledescription":q??void 0,children:w({...e,themeName:`${r}.slide`,tokens:s})},l)})})};module.exports=T;
1
+ "use strict";const a=require("react/jsx-runtime"),M=require("./index127.js"),n=require("./index128.js"),o=require("./index64.js"),N=require("./index129.js"),T=p=>{const{slides:c,slidesPerView:d=1,spaceBetween:u=50,themeName:r,tokens:s,customTheme:m,modules:i,a11y:t,children:w=e=>a.jsx(N,{...e}),...h}=p,b=o(`${r}.slide.wrapper`,s),x=o(`${r}.swiper.swiper`,s,m),g=o(`${r}.swiper.wrapper`,s),y=["A11y"],S=[...(i==null?void 0:i.filter(e=>e!=="Pagination"))??[],...y].map(e=>M[e]),{itemRoleDescriptionMessage:q="slide",slideRole:R="group",containerRoleDescriptionMessage:f="carousel"}=t??{};return a.jsx(n.Swiper,{tabIndex:0,...h,watchSlidesProgress:!0,role:"group","aria-roledescription":f??void 0,slidesPerView:d,spaceBetween:u,className:x,wrapperClass:g,modules:S,keyboard:{enabled:!0,onlyInViewport:!1},a11y:{...t,enabled:!1},children:c.map(e=>{const{id:l,title:j}=e;return a.jsx(n.SwiperSlide,{className:b,...j?{"aria-labelledby":l}:{"aria-label":e.ariaLabel},role:R,"aria-roledescription":q??void 0,children:w({...e,themeName:`${r}.slide`,tokens:s})},l)})})};module.exports=T;
package/index101.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import * as M from "./index126.mjs";
3
- import { Swiper as N, SwiperSlide as $ } from "./index127.mjs";
2
+ import * as M from "./index127.mjs";
3
+ import { Swiper as N, SwiperSlide as $ } from "./index128.mjs";
4
4
  import a from "./index64.mjs";
5
- import I from "./index128.mjs";
5
+ import I from "./index129.mjs";
6
6
  const D = (p) => {
7
7
  const {
8
8
  slides: n,
package/index102.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index25.js"),p=require("./index129.js"),d=a=>{const{themeName:r,tokens:i,slides:t,activeIndex:s,paginationGroupLabel:n}=a;return e.jsx(l.default,{as:"div",themeName:`${r}.wrapper`,tokens:i,role:"group","aria-label":n,children:e.jsx(c.FocusScope,{children:t.map((o,u)=>e.jsx(p,{index:u,activeIndex:s,slides:t,themeName:r,tokens:i},JSON.stringify(o)))})})};module.exports=d;
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index25.js"),p=require("./index130.js"),d=a=>{const{themeName:r,tokens:i,slides:t,activeIndex:s,paginationGroupLabel:n}=a;return e.jsx(l.default,{as:"div",themeName:`${r}.wrapper`,tokens:i,role:"group","aria-label":n,children:e.jsx(c.FocusScope,{children:t.map((o,u)=>e.jsx(p,{index:u,activeIndex:s,slides:t,themeName:r,tokens:i},JSON.stringify(o)))})})};module.exports=d;
package/index102.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { FocusScope as p } from "react-aria";
3
3
  import s from "./index25.mjs";
4
- import u from "./index129.mjs";
4
+ import u from "./index130.mjs";
5
5
  const h = (i) => {
6
6
  const { themeName: o, tokens: r, slides: a, activeIndex: t, paginationGroupLabel: n } = i;
7
7
  return /* @__PURE__ */ e(
package/index103.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("react"),o=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),r=s.memo(o);module.exports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],r=["disabled","checked","selected","required"];exports.ariaAttributes=a;exports.booleanAttributes=r;
package/index103.mjs CHANGED
@@ -1,6 +1,54 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { memo as r } from "react";
3
- const m = (o) => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", ...o }), e = r(m);
1
+ const a = [
2
+ "aria-activedescendant",
3
+ "aria-atomic",
4
+ "aria-autocomplete",
5
+ "aria-busy",
6
+ "aria-checked",
7
+ "aria-colcount",
8
+ "aria-colindex",
9
+ "aria-colspan",
10
+ "aria-controls",
11
+ "aria-current",
12
+ "aria-describedby",
13
+ "aria-details",
14
+ "aria-disabled",
15
+ "aria-dropeffect",
16
+ "aria-errormessage",
17
+ "aria-expanded",
18
+ "aria-flowto",
19
+ "aria-grabbed",
20
+ "aria-haspopup",
21
+ "aria-hidden",
22
+ "aria-invalid",
23
+ "aria-keyshortcuts",
24
+ "aria-label",
25
+ "aria-labelledby",
26
+ "aria-level",
27
+ "aria-live",
28
+ "aria-modal",
29
+ "aria-multiline",
30
+ "aria-multiselectable",
31
+ "aria-orientation",
32
+ "aria-owns",
33
+ "aria-placeholder",
34
+ "aria-posinset",
35
+ "aria-pressed",
36
+ "aria-readonly",
37
+ "aria-relevant",
38
+ "aria-required",
39
+ "aria-roledescription",
40
+ "aria-rowcount",
41
+ "aria-rowindex",
42
+ "aria-rowspan",
43
+ "aria-selected",
44
+ "aria-setsize",
45
+ "aria-sort",
46
+ "aria-valuemax",
47
+ "aria-valuemin",
48
+ "aria-valuenow",
49
+ "aria-valuetext"
50
+ ], r = ["disabled", "checked", "selected", "required"];
4
51
  export {
5
- e as default
52
+ a as ariaAttributes,
53
+ r as booleanAttributes
6
54
  };
package/index104.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("react"),o=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),r=s.memo(o);module.exports=r;
package/index104.mjs CHANGED
@@ -1,13 +1,6 @@
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);
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { memo as r } from "react";
3
+ const m = (o) => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", height: 48, width: 48, fill: "currentColor", ...o }), e = r(m);
11
4
  export {
12
- s as default
5
+ e as default
13
6
  };
package/index105.js CHANGED
@@ -1 +1 @@
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;
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/index105.mjs CHANGED
@@ -1,16 +1,13 @@
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
- });
13
- };
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);
14
11
  export {
15
- l as default
12
+ s as default
16
13
  };
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 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/index106.mjs CHANGED
@@ -1,25 +1,16 @@
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)) }) });
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
+ });
21
13
  };
22
14
  export {
23
- k as ListBox,
24
- h as Option
15
+ l as default
25
16
  };
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";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/index107.mjs CHANGED
@@ -1,25 +1,25 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
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(
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,
7
10
  {
8
- ...r,
9
- popoverRef: s,
10
- triggerRef: l
11
- },
12
- o
11
+ as: "li",
12
+ ...s,
13
+ tokens: { className: `${r} ${c ? "has-focus-ring" : ""}` },
14
+ ref: e,
15
+ children: o.rendered
16
+ }
13
17
  );
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
- ] });
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)) }) });
22
21
  };
23
22
  export {
24
- j as default
23
+ k as ListBox,
24
+ h as Option
25
25
  };
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";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/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);
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
15
11
  },
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
- }
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
+ ] });
22
+ };
39
23
  export {
40
- y as useCheckboxGroupState
24
+ j as default
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index137.js"),o=require("./index138.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/index109.mjs CHANGED
@@ -1,15 +1,41 @@
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;
1
+ import { useFormValidationState as r, mergeValidation as o } from "./index137.mjs";
2
+ import { useControlledState as b } from "./index138.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
+ };
11
38
  }
12
39
  export {
13
- i as CheckboxGroupProvider,
14
- C as useCheckboxGroupCtx
40
+ y as useCheckboxGroupState
15
41
  };
package/index110.js CHANGED
@@ -1 +1,2 @@
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 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/index110.mjs CHANGED
@@ -1,10 +1,15 @@
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
+ "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;
7
11
  }
8
12
  export {
9
- u as Dialog
13
+ i as CheckboxGroupProvider,
14
+ C as useCheckboxGroupCtx
10
15
  };
package/index111.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 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 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/index111.mjs CHANGED
@@ -1,24 +1,10 @@
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
+ 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 });
21
7
  }
22
8
  export {
23
- D as CalendarPopover
9
+ u as Dialog
24
10
  };
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 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/index112.mjs CHANGED
@@ -1,41 +1,24 @@
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 { 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
+ ] });
38
21
  }
39
22
  export {
40
- R as default
23
+ D as CalendarPopover
41
24
  };
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";const r=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"),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;