@okam/stack-ui 1.27.0 → 1.27.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
  2. package/index.d.ts +2 -0
  3. package/index.js +1 -1
  4. package/index.mjs +158 -151
  5. package/index10.js +1 -1
  6. package/index10.mjs +2 -2
  7. package/index100.js +1 -2
  8. package/index100.mjs +17 -12
  9. package/index101.js +2 -1
  10. package/index101.mjs +22 -45
  11. package/index102.js +1 -1
  12. package/index102.mjs +1 -1
  13. package/index103.js +1 -1
  14. package/index103.mjs +1 -1
  15. package/index107.js +1 -1
  16. package/index107.mjs +1 -1
  17. package/index108.js +1 -1
  18. package/index108.mjs +1 -1
  19. package/index11.js +1 -1
  20. package/index11.mjs +3 -3
  21. package/index112.js +1 -1
  22. package/index112.mjs +1 -1
  23. package/index113.js +1 -1
  24. package/index113.mjs +1 -1
  25. package/index114.js +1 -1
  26. package/index114.mjs +2 -2
  27. package/index116.js +1 -1
  28. package/index116.mjs +1 -1
  29. package/index118.js +1 -1
  30. package/index118.mjs +1 -1
  31. package/index119.js +1 -1
  32. package/index119.mjs +1 -1
  33. package/index12.js +2 -1
  34. package/index12.mjs +45 -15
  35. package/index121.js +1 -1
  36. package/index121.mjs +1 -1
  37. package/index122.js +1 -1
  38. package/index122.mjs +3 -3
  39. package/index124.js +1 -1
  40. package/index124.mjs +1 -1
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index128.js +1 -1
  44. package/index128.mjs +1 -1
  45. package/index13.js +1 -2
  46. package/index13.mjs +17 -20
  47. package/index131.js +1 -1
  48. package/index131.mjs +1 -1
  49. package/index132.js +1 -1
  50. package/index132.mjs +1 -1
  51. package/index134.js +1 -1
  52. package/index134.mjs +1 -1
  53. package/index135.js +1 -1
  54. package/index135.mjs +1 -1
  55. package/index138.js +1 -1
  56. package/index138.mjs +1 -1
  57. package/index139.js +1 -1
  58. package/index139.mjs +3 -3
  59. package/index14.js +1 -1
  60. package/index14.mjs +18 -17
  61. package/index140.js +1 -1
  62. package/index140.mjs +2 -2
  63. package/index15.js +1 -1
  64. package/index15.mjs +16 -83
  65. package/index16.js +1 -1
  66. package/index16.mjs +81 -28
  67. package/index17.js +1 -1
  68. package/index17.mjs +30 -32
  69. package/index174.js +1 -1
  70. package/index174.mjs +2 -2
  71. package/index175.js +1 -1
  72. package/index175.mjs +2 -2
  73. package/index176.js +1 -1
  74. package/index176.mjs +2 -2
  75. package/index177.js +1 -1
  76. package/index177.mjs +2 -2
  77. package/index178.js +1 -1
  78. package/index178.mjs +3 -3
  79. package/index179.js +1 -1
  80. package/index179.mjs +4 -4
  81. package/index18.js +1 -1
  82. package/index18.mjs +33 -31
  83. package/index180.js +1 -1
  84. package/index180.mjs +1 -1
  85. package/index181.js +1 -1
  86. package/index181.mjs +2 -2
  87. package/index182.js +1 -1
  88. package/index182.mjs +1 -1
  89. package/index183.js +1 -1
  90. package/index183.mjs +2 -2
  91. package/index184.js +1 -1
  92. package/index184.mjs +1 -1
  93. package/index185.js +1 -1
  94. package/index185.mjs +2 -2
  95. package/index186.js +1 -1
  96. package/index186.mjs +1 -1
  97. package/index187.js +1 -1
  98. package/index187.mjs +2 -2
  99. package/index188.js +1 -1
  100. package/index188.mjs +1 -1
  101. package/index19.js +1 -1
  102. package/index19.mjs +30 -33
  103. package/index191.js +1 -1
  104. package/index191.mjs +4 -4
  105. package/index192.js +1 -1
  106. package/index192.mjs +2 -2
  107. package/index193.js +1 -1
  108. package/index193.mjs +5 -5
  109. package/index194.js +1 -1
  110. package/index194.mjs +4 -4
  111. package/index195.js +1 -1
  112. package/index195.mjs +5 -5
  113. package/index196.js +1 -1
  114. package/index196.mjs +5 -5
  115. package/index197.js +1 -1
  116. package/index197.mjs +2 -2
  117. package/index2.js +1 -1
  118. package/index2.mjs +20 -20
  119. package/index20.js +1 -1
  120. package/index20.mjs +32 -67
  121. package/index208.js +1 -1
  122. package/index208.mjs +2 -2
  123. package/index21.js +1 -1
  124. package/index21.mjs +61 -58
  125. package/index210.js +1 -1
  126. package/index210.mjs +1 -1
  127. package/index213.js +1 -1
  128. package/index213.mjs +1 -1
  129. package/index22.js +1 -1
  130. package/index22.mjs +66 -52
  131. package/index224.js +1 -1
  132. package/index224.mjs +123 -306
  133. package/index225.js +1 -1
  134. package/index225.mjs +173 -186
  135. package/index226.js +1 -1
  136. package/index226.mjs +9 -8
  137. package/index227.js +1 -1
  138. package/index227.mjs +3 -26
  139. package/index228.js +1 -1
  140. package/index228.mjs +34 -53
  141. package/index229.js +1 -1
  142. package/index229.mjs +5 -46
  143. package/index23.js +1 -1
  144. package/index23.mjs +37 -41
  145. package/index230.js +1 -1
  146. package/index230.mjs +28 -123
  147. package/index231.js +1 -1
  148. package/index231.mjs +6 -130
  149. package/index232.js +1 -1
  150. package/index232.mjs +293 -159
  151. package/index233.js +1 -1
  152. package/index233.mjs +192 -9
  153. package/index234.js +1 -1
  154. package/index234.mjs +8 -3
  155. package/index235.js +1 -1
  156. package/index235.mjs +25 -35
  157. package/index236.js +1 -1
  158. package/index236.mjs +55 -5
  159. package/index237.js +1 -1
  160. package/index237.mjs +44 -27
  161. package/index238.js +1 -1
  162. package/index238.mjs +124 -6
  163. package/index24.js +1 -1
  164. package/index24.mjs +57 -20
  165. package/index242.js +1 -1
  166. package/index242.mjs +1 -1
  167. package/index243.js +1 -1
  168. package/index243.mjs +1 -1
  169. package/index245.js +1 -1
  170. package/index245.mjs +1 -1
  171. package/index246.js +1 -1
  172. package/index246.mjs +2 -2
  173. package/index248.js +1 -1
  174. package/index248.mjs +1 -1
  175. package/index249.js +1 -1
  176. package/index249.mjs +3 -3
  177. package/index25.js +1 -1
  178. package/index25.mjs +20 -50
  179. package/index250.js +1 -1
  180. package/index250.mjs +2 -2
  181. package/index251.js +1 -1
  182. package/index251.mjs +2 -23
  183. package/index252.js +1 -1
  184. package/index252.mjs +23 -2
  185. package/index26.js +1 -1
  186. package/index26.mjs +50 -17
  187. package/index260.js +1 -1
  188. package/index260.mjs +6 -2
  189. package/index261.mjs +2 -2
  190. package/index262.mjs +2 -2
  191. package/index263.mjs +2 -2
  192. package/index264.js +1 -1
  193. package/index264.mjs +2 -72
  194. package/index265.js +1 -1
  195. package/index265.mjs +72 -2
  196. package/index266.mjs +2 -2
  197. package/index267.js +1 -1
  198. package/index267.mjs +2 -19
  199. package/index268.js +1 -1
  200. package/index268.mjs +19 -2
  201. package/index269.js +1 -1
  202. package/index269.mjs +2 -6
  203. package/index27.js +1 -1
  204. package/index27.mjs +16 -32
  205. package/index28.js +1 -1
  206. package/index28.mjs +32 -23
  207. package/index29.js +1 -1
  208. package/index29.mjs +24 -8
  209. package/index3.js +1 -1
  210. package/index3.mjs +1 -1
  211. package/index30.js +1 -1
  212. package/index30.mjs +8 -32
  213. package/index31.js +1 -1
  214. package/index31.mjs +29 -30
  215. package/index32.js +1 -1
  216. package/index32.mjs +28 -98
  217. package/index33.js +1 -1
  218. package/index33.mjs +102 -8
  219. package/index34.js +1 -1
  220. package/index34.mjs +8 -46
  221. package/index35.js +1 -1
  222. package/index35.mjs +46 -18
  223. package/index36.js +2 -1
  224. package/index36.mjs +19 -6
  225. package/index37.js +1 -1
  226. package/index37.mjs +6 -46
  227. package/index38.js +1 -1
  228. package/index38.mjs +45 -23
  229. package/index39.js +2 -1
  230. package/index39.mjs +26 -5
  231. package/index4.js +1 -1
  232. package/index4.mjs +5 -5
  233. package/index40.js +1 -1
  234. package/index40.mjs +4 -7
  235. package/index41.js +1 -1
  236. package/index41.mjs +5 -5
  237. package/index42.js +1 -1
  238. package/index42.mjs +8 -5
  239. package/index43.js +1 -1
  240. package/index43.mjs +2 -2
  241. package/index44.js +1 -1
  242. package/index44.mjs +1 -1
  243. package/index45.js +1 -1
  244. package/index45.mjs +4 -4
  245. package/index46.js +1 -1
  246. package/index46.mjs +3 -9
  247. package/index47.js +1 -1
  248. package/index47.mjs +7 -9
  249. package/index48.js +1 -1
  250. package/index48.mjs +9 -9
  251. package/index49.js +1 -1
  252. package/index49.mjs +13 -46
  253. package/index50.js +1 -1
  254. package/index50.mjs +46 -8
  255. package/index51.js +1 -1
  256. package/index51.mjs +6 -69
  257. package/index52.js +1 -1
  258. package/index52.mjs +71 -8
  259. package/index53.js +1 -1
  260. package/index53.mjs +7 -12
  261. package/index54.js +1 -1
  262. package/index54.mjs +12 -9
  263. package/index55.js +1 -1
  264. package/index55.mjs +10 -17
  265. package/index56.js +1 -1
  266. package/index56.mjs +17 -13
  267. package/index57.js +1 -1
  268. package/index57.mjs +5 -5
  269. package/index58.js +1 -1
  270. package/index58.mjs +6 -6
  271. package/index59.js +1 -1
  272. package/index59.mjs +10 -8
  273. package/index6.js +1 -1
  274. package/index6.mjs +1 -1
  275. package/index60.js +1 -1
  276. package/index60.mjs +5 -5
  277. package/index61.js +1 -1
  278. package/index61.mjs +6 -8
  279. package/index62.js +1 -1
  280. package/index62.mjs +13 -14
  281. package/index63.js +1 -2
  282. package/index63.mjs +14 -23
  283. package/index64.js +1 -1
  284. package/index64.mjs +21 -15
  285. package/index65.js +1 -1
  286. package/index65.mjs +16 -14
  287. package/index66.js +1 -1
  288. package/index66.mjs +13 -40
  289. package/index67.js +1 -1
  290. package/index67.mjs +39 -36
  291. package/index68.js +1 -1
  292. package/index68.mjs +37 -11
  293. package/index69.js +1 -1
  294. package/index69.mjs +11 -10
  295. package/index7.js +1 -1
  296. package/index7.mjs +2 -2
  297. package/index70.js +1 -1
  298. package/index70.mjs +10 -13
  299. package/index71.js +2 -1
  300. package/index71.mjs +15 -2
  301. package/index72.js +1 -1
  302. package/index72.mjs +11 -8
  303. package/index73.js +1 -2
  304. package/index73.mjs +1 -7
  305. package/index74.js +1 -1
  306. package/index74.mjs +7 -6
  307. package/index75.js +1 -1
  308. package/index75.mjs +6 -6
  309. package/index76.js +2 -1
  310. package/index76.mjs +8 -25
  311. package/index77.js +2 -1
  312. package/index77.mjs +8 -2
  313. package/index78.js +1 -6
  314. package/index78.mjs +25 -94
  315. package/index79.js +1 -1
  316. package/index79.mjs +2 -69
  317. package/index8.js +1 -1
  318. package/index8.mjs +5 -5
  319. package/index80.js +6 -1
  320. package/index80.mjs +82 -29
  321. package/index81.js +1 -42
  322. package/index81.mjs +64 -65
  323. package/index82.js +1 -1
  324. package/index82.mjs +32 -150
  325. package/index83.js +42 -9
  326. package/index83.mjs +65 -52
  327. package/index84.js +1 -1
  328. package/index84.mjs +145 -31
  329. package/index85.js +9 -1
  330. package/index85.mjs +54 -10
  331. package/index86.js +1 -1
  332. package/index86.mjs +38 -28
  333. package/index87.js +1 -1
  334. package/index87.mjs +12 -5
  335. package/index88.js +1 -12
  336. package/index88.mjs +31 -36
  337. package/index89.js +1 -1
  338. package/index89.mjs +6 -29
  339. package/index9.js +1 -1
  340. package/index9.mjs +4 -4
  341. package/index90.js +12 -1
  342. package/index90.mjs +39 -12
  343. package/index91.js +1 -7
  344. package/index91.mjs +23 -13
  345. package/index92.js +1 -15
  346. package/index92.mjs +9 -67
  347. package/index93.js +7 -1
  348. package/index93.mjs +17 -5
  349. package/index94.js +13 -14
  350. package/index94.mjs +63 -17
  351. package/index95.js +1 -1
  352. package/index95.mjs +7 -42
  353. package/index96.js +16 -1
  354. package/index96.mjs +24 -44
  355. package/index97.js +1 -1
  356. package/index97.mjs +42 -48
  357. package/index98.js +1 -1
  358. package/index98.mjs +45 -17
  359. package/index99.js +1 -2
  360. package/index99.mjs +47 -21
  361. package/package.json +1 -1
package/index24.mjs CHANGED
@@ -1,23 +1,60 @@
1
1
  "use client";
2
- import { jsx as c } from "react/jsx-runtime";
3
- import h from "react";
4
- import f from "./index64.mjs";
5
- const u = ({
6
- as: e = "div",
7
- themeName: t = "box",
8
- tokens: o,
9
- customTheme: s,
10
- children: m,
11
- className: n,
12
- ...r
13
- }) => {
14
- const a = f(t, o, s);
15
- return /* @__PURE__ */ c(e, { ...r, className: a, children: m });
16
- }, p = h.forwardRef((e, t) => {
17
- const { as: o = "div", tokens: s, themeName: m = "box", customTheme: n, children: r, ...a } = e, d = f(m, s, n);
18
- return /* @__PURE__ */ c(o, { ...a, ref: t, className: d, children: r });
19
- });
2
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
+ import { useDateRangePicker as $ } from "@react-aria/datepicker";
4
+ import { useDateRangePickerState as x } from "@react-stately/datepicker";
5
+ import { useRef as T } from "react";
6
+ import s from "./index65.mjs";
7
+ import C from "./index6.mjs";
8
+ import S from "./index114.mjs";
9
+ import { Dialog as j } from "./index111.mjs";
10
+ import w from "./index14.mjs";
11
+ import { CalendarPopover as y } from "./index112.mjs";
12
+ import i from "./index113.mjs";
13
+ function K(a) {
14
+ const t = x(a), l = T(null), {
15
+ labelProps: u,
16
+ descriptionProps: v,
17
+ groupProps: b,
18
+ startFieldProps: c,
19
+ endFieldProps: m,
20
+ buttonProps: d,
21
+ dialogProps: g,
22
+ calendarProps: k
23
+ } = $(a, t, l), { label: p, buttonLabel: h, description: f, themeName: o = "datePicker", tokens: r, popoverPlacement: D, icon: N } = a, R = s(`${o}.container`, r), P = s(`${o}.dateField`, r), F = s(`${o}.label`, r);
24
+ return /* @__PURE__ */ n("div", { className: R, children: [
25
+ p && /* @__PURE__ */ e("span", { ...u, children: p }),
26
+ f && /* @__PURE__ */ e("div", { ...v, children: f }),
27
+ /* @__PURE__ */ e("div", { ...b, ref: l, children: /* @__PURE__ */ n(
28
+ C,
29
+ {
30
+ themeName: `${o}.button`,
31
+ tokens: { ...r },
32
+ type: "button",
33
+ ...d,
34
+ handlePress: d.onPress,
35
+ children: [
36
+ h && /* @__PURE__ */ e("p", { className: F, children: h }),
37
+ /* @__PURE__ */ n("div", { className: P, children: [
38
+ /* @__PURE__ */ e(i, { ...c }),
39
+ " -",
40
+ /* @__PURE__ */ e(i, { ...m }),
41
+ t.validationState === "invalid" && "❌"
42
+ ] }),
43
+ /* @__PURE__ */ e(w, { themeName: `${o}.icon`, tokens: { ...r }, icon: N ?? "ArrowDown" })
44
+ ]
45
+ }
46
+ ) }),
47
+ t.isOpen && /* @__PURE__ */ e(y, { triggerRef: l, state: t, placement: D, children: /* @__PURE__ */ n(j, { ...g, children: [
48
+ /* @__PURE__ */ n("div", { className: P, children: [
49
+ /* @__PURE__ */ e(i, { ...c }),
50
+ " -",
51
+ /* @__PURE__ */ e(i, { ...m }),
52
+ t.validationState === "invalid" && "❌"
53
+ ] }),
54
+ /* @__PURE__ */ e(S, { ...k })
55
+ ] }) })
56
+ ] });
57
+ }
20
58
  export {
21
- p as BoxWithForwardRef,
22
- u as default
59
+ K as default
23
60
  };
package/index242.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index260.js");var i;function u(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(e.__exports)),e.__exports}exports.__require=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index261.js");var i;function u(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(e.__exports)),e.__exports}exports.__require=u;
package/index242.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index260.mjs";
1
+ import { __exports as e } from "./index261.mjs";
2
2
  var i;
3
3
  function u() {
4
4
  return i ? e : (i = 1, function(r) {
package/index243.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index261.js");var i;function o(){return i||(i=1,function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"parsePath",{enumerable:!0,get:function(){return a}});function a(r){const e=r.indexOf("#"),n=r.indexOf("?"),t=n>-1&&(e<0||n<e);return t||e>-1?{pathname:r.substring(0,t?n:e),query:t?r.substring(n,e>-1?e:void 0):"",hash:e>-1?r.slice(e):""}:{pathname:r,query:"",hash:""}}}(u.__exports)),u.__exports}exports.__require=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index262.js");var i;function o(){return i||(i=1,function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"parsePath",{enumerable:!0,get:function(){return a}});function a(r){const e=r.indexOf("#"),n=r.indexOf("?"),t=n>-1&&(e<0||n<e);return t||e>-1?{pathname:r.substring(0,t?n:e),query:t?r.substring(n,e>-1?e:void 0):"",hash:e>-1?r.slice(e):""}:{pathname:r,query:"",hash:""}}}(u.__exports)),u.__exports}exports.__require=o;
package/index243.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as u } from "./index261.mjs";
1
+ import { __exports as u } from "./index262.mjs";
2
2
  var a;
3
3
  function f() {
4
4
  return a ? u : (a = 1, function(s) {
package/index245.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index262.js");var d;function p(){return d||(d=1,function(m){Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(m,"getSortedRoutes",{enumerable:!0,get:function(){return f}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){e===void 0&&(e="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const r=i.map(s=>this.children.get(s)._smoosh(""+e+s+"/")).reduce((s,t)=>[...s,...t],[]);if(this.slugName!==null&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){const s=e==="/"?"/":e.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');r.unshift(s)}return this.restSlugName!==null&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,i,r){if(e.length===0){this.placeholder=!1;return}if(r)throw new Error("Catch-all must be the last part of the URL.");let s=e[0];if(s.startsWith("[")&&s.endsWith("]")){let l=function(h,o){if(h!==null&&h!==o)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+o+"').");i.forEach(u=>{if(u===o)throw new Error('You cannot have the same slug name "'+o+'" repeat within a single dynamic path');if(u.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+u+'" and "'+o+'" differ only by non-word symbols within a single dynamic path')}),i.push(o)},t=s.slice(1,-1),a=!1;if(t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1),a=!0),t.startsWith("...")&&(t=t.substring(3),r=!0),t.startsWith("[")||t.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+t+"').");if(t.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+t+"').");if(r)if(a){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,t),this.optionalRestSlugName=t,s="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,t),this.restSlugName=t,s="[...]"}else{if(a)throw new Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,t),this.slugName=t,s="[]"}}this.children.has(s)||this.children.set(s,new n),this.children.get(s)._insert(e.slice(1),i,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function f(g){const e=new n;return g.forEach(i=>e.insert(i)),e.smoosh()}}(c.__exports)),c.__exports}exports.__require=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index263.js");var d;function p(){return d||(d=1,function(m){Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(m,"getSortedRoutes",{enumerable:!0,get:function(){return f}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){e===void 0&&(e="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const r=i.map(s=>this.children.get(s)._smoosh(""+e+s+"/")).reduce((s,t)=>[...s,...t],[]);if(this.slugName!==null&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){const s=e==="/"?"/":e.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');r.unshift(s)}return this.restSlugName!==null&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,i,r){if(e.length===0){this.placeholder=!1;return}if(r)throw new Error("Catch-all must be the last part of the URL.");let s=e[0];if(s.startsWith("[")&&s.endsWith("]")){let l=function(h,o){if(h!==null&&h!==o)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+o+"').");i.forEach(u=>{if(u===o)throw new Error('You cannot have the same slug name "'+o+'" repeat within a single dynamic path');if(u.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+u+'" and "'+o+'" differ only by non-word symbols within a single dynamic path')}),i.push(o)},t=s.slice(1,-1),a=!1;if(t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1),a=!0),t.startsWith("...")&&(t=t.substring(3),r=!0),t.startsWith("[")||t.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+t+"').");if(t.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+t+"').");if(r)if(a){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,t),this.optionalRestSlugName=t,s="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,t),this.restSlugName=t,s="[...]"}else{if(a)throw new Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,t),this.slugName=t,s="[]"}}this.children.has(s)||this.children.set(s,new n),this.children.get(s)._insert(e.slice(1),i,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function f(g){const e=new n;return g.forEach(i=>e.insert(i)),e.smoosh()}}(c.__exports)),c.__exports}exports.__require=p;
package/index245.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as m } from "./index262.mjs";
1
+ import { __exports as m } from "./index263.mjs";
2
2
  var d;
3
3
  function w() {
4
4
  return d ? m : (d = 1, function(c) {
package/index246.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index263.js"),c=require("./index264.js");var i;function s(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return u}});const n=c.__require(),o=/\/\[[^/]+?\](?=\/|$)/;function u(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}}(t.__exports)),t.__exports}exports.__require=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index264.js"),c=require("./index265.js");var i;function s(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return u}});const n=c.__require(),o=/\/\[[^/]+?\](?=\/|$)/;function u(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}}(t.__exports)),t.__exports}exports.__require=s;
package/index246.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { __exports as t } from "./index263.mjs";
2
- import { __require as c } from "./index264.mjs";
1
+ import { __exports as t } from "./index264.mjs";
2
+ import { __require as c } from "./index265.mjs";
3
3
  var i;
4
4
  function p() {
5
5
  return i ? t : (i = 1, function(r) {
package/index248.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index265.js"),M=require("./index164.js");var s;function b(){return s||(s=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"getRouteMatcher",{enumerable:!0,get:function(){return f}});const d=M.__require();function f(_){let{re:p,groups:c}=_;return l=>{const i=p.exec(l);if(!i)return!1;const r=t=>{try{return decodeURIComponent(t)}catch{throw new d.DecodeError("failed to decode param")}},a={};return Object.keys(c).forEach(t=>{const o=c[t],e=i[o.pos];e!==void 0&&(a[t]=~e.indexOf("/")?e.split("/").map(h=>r(h)):o.repeat?[r(e)]:r(e))}),a}}}(n.__exports)),n.__exports}exports.__require=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index266.js"),M=require("./index164.js");var s;function b(){return s||(s=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"getRouteMatcher",{enumerable:!0,get:function(){return f}});const d=M.__require();function f(_){let{re:p,groups:c}=_;return l=>{const i=p.exec(l);if(!i)return!1;const r=t=>{try{return decodeURIComponent(t)}catch{throw new d.DecodeError("failed to decode param")}},a={};return Object.keys(c).forEach(t=>{const o=c[t],e=i[o.pos];e!==void 0&&(a[t]=~e.indexOf("/")?e.split("/").map(h=>r(h)):o.repeat?[r(e)]:r(e))}),a}}}(n.__exports)),n.__exports}exports.__require=b;
package/index248.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as n } from "./index265.mjs";
1
+ import { __exports as n } from "./index266.mjs";
2
2
  import { __require as l } from "./index164.mjs";
3
3
  var s;
4
4
  function q() {
package/index249.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index266.js"),I=require("./index264.js"),q=require("./index267.js"),v=require("./index242.js");var E;function A(){return E||(E=1,function(d){Object.defineProperty(d,"__esModule",{value:!0});function S(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}S(d,{getRouteRegex:function(){return h},getNamedRouteRegex:function(){return K},getNamedMiddlewareRegex:function(){return k}});const x=I.__require(),l=q.__require(),_=v.__require(),M="nxtP",N="nxtI";function g(e){const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1));const t=e.startsWith("...");return t&&(e=e.slice(3)),{key:e,repeat:t,optional:r}}function m(e){const r=(0,_.removeTrailingSlash)(e).slice(1).split("/"),t={};let a=1;return{parameterizedRoute:r.map(s=>{const o=x.INTERCEPTION_ROUTE_MARKERS.find(i=>s.startsWith(i)),u=s.match(/\[((?:\[.*\])|.+)\]/);if(o&&u){const{key:i,optional:c,repeat:n}=g(u[1]);return t[i]={pos:a++,repeat:n,optional:c},"/"+(0,l.escapeStringRegexp)(o)+"([^/]+?)"}else if(u){const{key:i,repeat:c,optional:n}=g(u[1]);return t[i]={pos:a++,repeat:c,optional:n},c?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,l.escapeStringRegexp)(s)}).join(""),groups:t}}function h(e){const{parameterizedRoute:r,groups:t}=m(e);return{re:new RegExp("^"+r+"(?:/)?$"),groups:t}}function T(){let e=0;return()=>{let r="",t=++e;for(;t>0;)r+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return r}}function y(e){let{interceptionMarker:r,getSafeRouteKey:t,segment:a,routeKeys:s,keyPrefix:o}=e;const{key:u,optional:i,repeat:c}=g(a);let n=u.replace(/\W/g,"");o&&(n=""+o+n);let R=!1;(n.length===0||n.length>30)&&(R=!0),isNaN(parseInt(n.slice(0,1)))||(R=!0),R&&(n=t()),o?s[n]=""+o+u:s[n]=u;const f=r?(0,l.escapeStringRegexp)(r):"";return c?i?"(?:/"+f+"(?<"+n+">.+?))?":"/"+f+"(?<"+n+">.+?)":"/"+f+"(?<"+n+">[^/]+?)"}function P(e,r){const t=(0,_.removeTrailingSlash)(e).slice(1).split("/"),a=T(),s={};return{namedParameterizedRoute:t.map(o=>{const u=x.INTERCEPTION_ROUTE_MARKERS.some(c=>o.startsWith(c)),i=o.match(/\[((?:\[.*\])|.+)\]/);if(u&&i){const[c]=o.split(i[0]);return y({getSafeRouteKey:a,interceptionMarker:c,segment:i[1],routeKeys:s,keyPrefix:r?N:void 0})}else return i?y({getSafeRouteKey:a,segment:i[1],routeKeys:s,keyPrefix:r?M:void 0}):"/"+(0,l.escapeStringRegexp)(o)}).join(""),routeKeys:s}}function K(e,r){const t=P(e,r);return{...h(e),namedRegex:"^"+t.namedParameterizedRoute+"(?:/)?$",routeKeys:t.routeKeys}}function k(e,r){const{parameterizedRoute:t}=m(e),{catchAll:a=!0}=r;if(t==="/")return{namedRegex:"^/"+(a?".*":"")+"$"};const{namedParameterizedRoute:s}=P(e,!1);let o=a?"(?:(/.*)?)":"";return{namedRegex:"^"+s+o+"$"}}}(p.__exports)),p.__exports}exports.__require=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index267.js"),I=require("./index265.js"),q=require("./index268.js"),v=require("./index242.js");var E;function A(){return E||(E=1,function(d){Object.defineProperty(d,"__esModule",{value:!0});function S(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}S(d,{getRouteRegex:function(){return h},getNamedRouteRegex:function(){return K},getNamedMiddlewareRegex:function(){return k}});const x=I.__require(),l=q.__require(),_=v.__require(),M="nxtP",N="nxtI";function g(e){const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1));const t=e.startsWith("...");return t&&(e=e.slice(3)),{key:e,repeat:t,optional:r}}function m(e){const r=(0,_.removeTrailingSlash)(e).slice(1).split("/"),t={};let a=1;return{parameterizedRoute:r.map(s=>{const o=x.INTERCEPTION_ROUTE_MARKERS.find(i=>s.startsWith(i)),u=s.match(/\[((?:\[.*\])|.+)\]/);if(o&&u){const{key:i,optional:c,repeat:n}=g(u[1]);return t[i]={pos:a++,repeat:n,optional:c},"/"+(0,l.escapeStringRegexp)(o)+"([^/]+?)"}else if(u){const{key:i,repeat:c,optional:n}=g(u[1]);return t[i]={pos:a++,repeat:c,optional:n},c?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,l.escapeStringRegexp)(s)}).join(""),groups:t}}function h(e){const{parameterizedRoute:r,groups:t}=m(e);return{re:new RegExp("^"+r+"(?:/)?$"),groups:t}}function T(){let e=0;return()=>{let r="",t=++e;for(;t>0;)r+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return r}}function y(e){let{interceptionMarker:r,getSafeRouteKey:t,segment:a,routeKeys:s,keyPrefix:o}=e;const{key:u,optional:i,repeat:c}=g(a);let n=u.replace(/\W/g,"");o&&(n=""+o+n);let R=!1;(n.length===0||n.length>30)&&(R=!0),isNaN(parseInt(n.slice(0,1)))||(R=!0),R&&(n=t()),o?s[n]=""+o+u:s[n]=u;const f=r?(0,l.escapeStringRegexp)(r):"";return c?i?"(?:/"+f+"(?<"+n+">.+?))?":"/"+f+"(?<"+n+">.+?)":"/"+f+"(?<"+n+">[^/]+?)"}function P(e,r){const t=(0,_.removeTrailingSlash)(e).slice(1).split("/"),a=T(),s={};return{namedParameterizedRoute:t.map(o=>{const u=x.INTERCEPTION_ROUTE_MARKERS.some(c=>o.startsWith(c)),i=o.match(/\[((?:\[.*\])|.+)\]/);if(u&&i){const[c]=o.split(i[0]);return y({getSafeRouteKey:a,interceptionMarker:c,segment:i[1],routeKeys:s,keyPrefix:r?N:void 0})}else return i?y({getSafeRouteKey:a,segment:i[1],routeKeys:s,keyPrefix:r?M:void 0}):"/"+(0,l.escapeStringRegexp)(o)}).join(""),routeKeys:s}}function K(e,r){const t=P(e,r);return{...h(e),namedRegex:"^"+t.namedParameterizedRoute+"(?:/)?$",routeKeys:t.routeKeys}}function k(e,r){const{parameterizedRoute:t}=m(e),{catchAll:a=!0}=r;if(t==="/")return{namedRegex:"^/"+(a?".*":"")+"$"};const{namedParameterizedRoute:s}=P(e,!1);let o=a?"(?:(/.*)?)":"";return{namedRegex:"^"+s+o+"$"}}}(p.__exports)),p.__exports}exports.__require=A;
package/index249.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { __exports as p } from "./index266.mjs";
2
- import { __require as k } from "./index264.mjs";
3
- import { __require as q } from "./index267.mjs";
1
+ import { __exports as p } from "./index267.mjs";
2
+ import { __require as k } from "./index265.mjs";
3
+ import { __require as q } from "./index268.mjs";
4
4
  import { __require as A } from "./index242.mjs";
5
5
  var E;
6
6
  function j() {
package/index25.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),g=require("./index115.js"),P=require("@react-aria/calendar"),m=require("@react-aria/i18n"),R=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),u=require("./index6.js"),h=require("./index13.js"),p=require("./index3.js"),w=require("./index116.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var d,l;const{locale:x}=m.useLocale(),o=R.useCalendarState({...t,locale:x,createCalendar:g.createCalendar}),q=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=P.useCalendar({...t},o),C=c(`${a}.container`,r),f=c(`${a}.header`,r),v=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:q,className:C,children:[e.jsxs("div",{className:f,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:v,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),d=require("react"),i=require("./index65.js"),l=({as:e="div",themeName:t="box",tokens:o,customTheme:s,children:r,className:n,...a})=>{const c=i(t,o,s);return u.jsx(e,{...a,className:c,children:r})},h=d.forwardRef((e,t)=>{const{as:o="div",tokens:s,themeName:r="box",customTheme:n,children:a,...c}=e,m=i(r,s,n);return u.jsx(o,{...c,ref:t,className:m,children:a})});exports.BoxWithForwardRef=h;exports.default=l;
package/index25.mjs CHANGED
@@ -1,53 +1,23 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
3
- import { createCalendar as T } from "./index115.mjs";
4
- import { useCalendar as y } from "@react-aria/calendar";
5
- import { useLocale as P } from "@react-aria/i18n";
6
- import { useCalendarState as B } from "@react-stately/calendar";
7
- import { useRef as j } from "react";
8
- import c from "./index64.mjs";
9
- import f from "./index6.mjs";
10
- import p from "./index13.mjs";
11
- import w from "./index3.mjs";
12
- import A from "./index116.mjs";
13
- function J({ buttons: e, tokens: o, customTheme: L, themeName: a = "calendar", ...s }) {
14
- var l, m;
15
- const { locale: h } = P(), d = B({
16
- ...s,
17
- locale: h,
18
- createCalendar: T
19
- }), C = j(null), { calendarProps: u, prevButtonProps: n, nextButtonProps: i, title: $ } = y({ ...s }, d), v = c(`${a}.container`, o), g = c(`${a}.header`, o), x = c(`${a}.navigationButtonsContainer`, o);
20
- return /* @__PURE__ */ t("div", { ...u, ref: C, className: v, children: [
21
- /* @__PURE__ */ t("div", { className: g, children: [
22
- /* @__PURE__ */ r(w, { as: "p", tokens: { size: "h6" }, children: $ }),
23
- /* @__PURE__ */ t("div", { className: x, children: [
24
- /* @__PURE__ */ r(
25
- f,
26
- {
27
- themeName: `${a}.navigationButtons`,
28
- tokens: { ...o },
29
- type: "button",
30
- ...n,
31
- handlePress: n == null ? void 0 : n.onPress,
32
- children: /* @__PURE__ */ r(p, { icon: ((l = e == null ? void 0 : e.buttonPrev) == null ? void 0 : l.icon) ?? "ArrowLeft" })
33
- }
34
- ),
35
- /* @__PURE__ */ r(
36
- f,
37
- {
38
- themeName: `${a}.navigationButtons`,
39
- tokens: { ...o },
40
- type: "button",
41
- ...i,
42
- handlePress: i == null ? void 0 : i.onPress,
43
- children: /* @__PURE__ */ r(p, { icon: ((m = e == null ? void 0 : e.buttonNext) == null ? void 0 : m.icon) ?? "ArrowRight" })
44
- }
45
- )
46
- ] })
47
- ] }),
48
- /* @__PURE__ */ r(A, { state: d })
49
- ] });
50
- }
2
+ import { jsx as c } from "react/jsx-runtime";
3
+ import h from "react";
4
+ import f from "./index65.mjs";
5
+ const u = ({
6
+ as: e = "div",
7
+ themeName: t = "box",
8
+ tokens: o,
9
+ customTheme: s,
10
+ children: m,
11
+ className: n,
12
+ ...r
13
+ }) => {
14
+ const a = f(t, o, s);
15
+ return /* @__PURE__ */ c(e, { ...r, className: a, children: m });
16
+ }, p = h.forwardRef((e, t) => {
17
+ const { as: o = "div", tokens: s, themeName: m = "box", customTheme: n, children: r, ...a } = e, d = f(m, s, n);
18
+ return /* @__PURE__ */ c(o, { ...a, ref: t, className: d, children: r });
19
+ });
51
20
  export {
52
- J as default
21
+ p as BoxWithForwardRef,
22
+ u as default
53
23
  };
package/index250.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index250.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var a = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- a as __module
3
+ r as __exports
4
4
  };
package/index251.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index268.js"),o=require("./index243.js");var i;function f(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return s}});const u=o.__require();function s(t,a){if(typeof t!="string")return!1;const{pathname:n}=(0,u.parsePath)(t);return n===a||n.startsWith(a+"/")}}(e.__exports)),e.__exports}exports.__require=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
package/index251.mjs CHANGED
@@ -1,25 +1,4 @@
1
- import { __exports as e } from "./index268.mjs";
2
- import { __require as f } from "./index243.mjs";
3
- var n;
4
- function p() {
5
- return n ? e : (n = 1, function(r) {
6
- Object.defineProperty(r, "__esModule", {
7
- value: !0
8
- }), Object.defineProperty(r, "pathHasPrefix", {
9
- enumerable: !0,
10
- get: function() {
11
- return u;
12
- }
13
- });
14
- const s = f();
15
- function u(t, a) {
16
- if (typeof t != "string")
17
- return !1;
18
- const { pathname: i } = (0, s.parsePath)(t);
19
- return i === a || i.startsWith(a + "/");
20
- }
21
- }(e), e);
22
- }
1
+ var a = { exports: {} };
23
2
  export {
24
- p as __require
3
+ a as __module
25
4
  };
package/index252.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index269.js"),o=require("./index243.js");var i;function f(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return s}});const u=o.__require();function s(t,a){if(typeof t!="string")return!1;const{pathname:n}=(0,u.parsePath)(t);return n===a||n.startsWith(a+"/")}}(e.__exports)),e.__exports}exports.__require=f;
package/index252.mjs CHANGED
@@ -1,4 +1,25 @@
1
- var r = {};
1
+ import { __exports as e } from "./index269.mjs";
2
+ import { __require as f } from "./index243.mjs";
3
+ var n;
4
+ function p() {
5
+ return n ? e : (n = 1, function(r) {
6
+ Object.defineProperty(r, "__esModule", {
7
+ value: !0
8
+ }), Object.defineProperty(r, "pathHasPrefix", {
9
+ enumerable: !0,
10
+ get: function() {
11
+ return u;
12
+ }
13
+ });
14
+ const s = f();
15
+ function u(t, a) {
16
+ if (typeof t != "string")
17
+ return !1;
18
+ const { pathname: i } = (0, s.parsePath)(t);
19
+ return i === a || i.startsWith(a + "/");
20
+ }
21
+ }(e), e);
22
+ }
2
23
  export {
3
- r as __exports
24
+ p as __require
4
25
  };
package/index26.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const e=require("react/jsx-runtime"),c=require("react-aria"),l=require("./index117.js"),d=require("./index118.js"),u=require("./index119.js"),q=s=>{const{children:o,transitionComponent:a=l,state:r,themeName:n,tokens:i,...t}=s;return e.jsx(c.OverlayContainer,{children:e.jsx(a,{isVisible:r.isOpen,children:e.jsx(u,{themeName:n,tokens:i,state:r,...t,children:e.jsx(d,{themeName:n,tokens:i,...t,children:o})})})})};module.exports=q;
2
+ "use strict";const e=require("react/jsx-runtime"),g=require("./index115.js"),P=require("@react-aria/calendar"),m=require("@react-aria/i18n"),R=require("@react-stately/calendar"),T=require("react"),c=require("./index65.js"),u=require("./index6.js"),h=require("./index14.js"),p=require("./index3.js"),w=require("./index116.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var d,l;const{locale:x}=m.useLocale(),o=R.useCalendarState({...t,locale:x,createCalendar:g.createCalendar}),q=T.useRef(null),{calendarProps:$,prevButtonProps:s,nextButtonProps:i,title:j}=P.useCalendar({...t},o),C=c(`${a}.container`,r),f=c(`${a}.header`,r),v=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...$,ref:q,className:C,children:[e.jsxs("div",{className:f,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:j}),e.jsxs("div",{className:v,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
package/index26.mjs CHANGED
@@ -1,20 +1,53 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { OverlayContainer as l } from "react-aria";
4
- import s from "./index117.mjs";
5
- import d from "./index118.mjs";
6
- import p from "./index119.mjs";
7
- const O = (e) => {
8
- const {
9
- children: a,
10
- transitionComponent: m = s,
11
- state: r,
12
- themeName: t,
13
- tokens: i,
14
- ...n
15
- } = e;
16
- return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(m, { isVisible: r.isOpen, children: /* @__PURE__ */ o(p, { themeName: t, tokens: i, state: r, ...n, children: /* @__PURE__ */ o(d, { themeName: t, tokens: i, ...n, children: a }) }) }) });
17
- };
2
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
3
+ import { createCalendar as T } from "./index115.mjs";
4
+ import { useCalendar as y } from "@react-aria/calendar";
5
+ import { useLocale as P } from "@react-aria/i18n";
6
+ import { useCalendarState as B } from "@react-stately/calendar";
7
+ import { useRef as j } from "react";
8
+ import c from "./index65.mjs";
9
+ import f from "./index6.mjs";
10
+ import p from "./index14.mjs";
11
+ import w from "./index3.mjs";
12
+ import A from "./index116.mjs";
13
+ function J({ buttons: e, tokens: o, customTheme: L, themeName: a = "calendar", ...s }) {
14
+ var l, m;
15
+ const { locale: h } = P(), d = B({
16
+ ...s,
17
+ locale: h,
18
+ createCalendar: T
19
+ }), C = j(null), { calendarProps: u, prevButtonProps: n, nextButtonProps: i, title: $ } = y({ ...s }, d), v = c(`${a}.container`, o), g = c(`${a}.header`, o), x = c(`${a}.navigationButtonsContainer`, o);
20
+ return /* @__PURE__ */ t("div", { ...u, ref: C, className: v, children: [
21
+ /* @__PURE__ */ t("div", { className: g, children: [
22
+ /* @__PURE__ */ r(w, { as: "p", tokens: { size: "h6" }, children: $ }),
23
+ /* @__PURE__ */ t("div", { className: x, children: [
24
+ /* @__PURE__ */ r(
25
+ f,
26
+ {
27
+ themeName: `${a}.navigationButtons`,
28
+ tokens: { ...o },
29
+ type: "button",
30
+ ...n,
31
+ handlePress: n == null ? void 0 : n.onPress,
32
+ children: /* @__PURE__ */ r(p, { icon: ((l = e == null ? void 0 : e.buttonPrev) == null ? void 0 : l.icon) ?? "ArrowLeft" })
33
+ }
34
+ ),
35
+ /* @__PURE__ */ r(
36
+ f,
37
+ {
38
+ themeName: `${a}.navigationButtons`,
39
+ tokens: { ...o },
40
+ type: "button",
41
+ ...i,
42
+ handlePress: i == null ? void 0 : i.onPress,
43
+ children: /* @__PURE__ */ r(p, { icon: ((m = e == null ? void 0 : e.buttonNext) == null ? void 0 : m.icon) ?? "ArrowRight" })
44
+ }
45
+ )
46
+ ] })
47
+ ] }),
48
+ /* @__PURE__ */ r(A, { state: d })
49
+ ] });
50
+ }
18
51
  export {
19
- O as default
52
+ J as default
20
53
  };
package/index260.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=new WeakMap;function f(a,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${t.get(a)}-${r}-${e}`}exports.generateId=f;exports.tabsIds=t;
package/index260.mjs CHANGED
@@ -1,4 +1,8 @@
1
- var r = {};
1
+ const f = /* @__PURE__ */ new WeakMap();
2
+ function $(t, e, a) {
3
+ return typeof e == "string" && (e = e.replace(/\s+/g, "")), `${f.get(t)}-${a}-${e}`;
4
+ }
2
5
  export {
3
- r as __exports
6
+ $ as generateId,
7
+ f as tabsIds
4
8
  };
package/index261.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
package/index262.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var e = {};
1
+ var a = {};
2
2
  export {
3
- e as __exports
3
+ a as __exports
4
4
  };
package/index263.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var a = {};
1
+ var e = {};
2
2
  export {
3
- a as __exports
3
+ e as __exports
4
4
  };
package/index264.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index276.js"),R=require("./index277.js");var s;function _(){return s||(s=1,function(c){Object.defineProperty(c,"__esModule",{value:!0});function a(n,e){for(var r in e)Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}a(c,{INTERCEPTION_ROUTE_MARKERS:function(){return i},isInterceptionRouteAppPath:function(){return f},extractInterceptionRouteInformation:function(){return l}});const p=R.__require(),i=["(..)(..)","(.)","(..)","(...)"];function f(n){return n.split("/").find(e=>i.find(r=>e.startsWith(r)))!==void 0}function l(n){let e,r,t;for(const o of n.split("/"))if(r=i.find(d=>o.startsWith(d)),r){[e,t]=n.split(r,2);break}if(!e||!r||!t)throw new Error(`Invalid interception route: ${n}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(e=(0,p.normalizeAppPath)(e),r){case"(.)":e==="/"?t=`/${t}`:t=e+"/"+t;break;case"(..)":if(e==="/")throw new Error(`Invalid interception route: ${n}. Cannot use (..) marker at the root level, use (.) instead.`);t=e.split("/").slice(0,-1).concat(t).join("/");break;case"(...)":t="/"+t;break;case"(..)(..)":const o=e.split("/");if(o.length<=2)throw new Error(`Invalid interception route: ${n}. Cannot use (..)(..) marker at the root level or one level up.`);t=o.slice(0,-2).concat(t).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:e,interceptedRoute:t}}}(u.__exports)),u.__exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index264.mjs CHANGED
@@ -1,74 +1,4 @@
1
- import { __exports as u } from "./index276.mjs";
2
- import { __require as d } from "./index277.mjs";
3
- var a;
4
- function h() {
5
- return a ? u : (a = 1, function(c) {
6
- Object.defineProperty(c, "__esModule", {
7
- value: !0
8
- });
9
- function s(n, e) {
10
- for (var r in e) Object.defineProperty(n, r, {
11
- enumerable: !0,
12
- get: e[r]
13
- });
14
- }
15
- s(c, {
16
- INTERCEPTION_ROUTE_MARKERS: function() {
17
- return i;
18
- },
19
- isInterceptionRouteAppPath: function() {
20
- return f;
21
- },
22
- extractInterceptionRouteInformation: function() {
23
- return l;
24
- }
25
- });
26
- const p = d(), i = [
27
- "(..)(..)",
28
- "(.)",
29
- "(..)",
30
- "(...)"
31
- ];
32
- function f(n) {
33
- return n.split("/").find((e) => i.find((r) => e.startsWith(r))) !== void 0;
34
- }
35
- function l(n) {
36
- let e, r, t;
37
- for (const o of n.split("/"))
38
- if (r = i.find((R) => o.startsWith(R)), r) {
39
- [e, t] = n.split(r, 2);
40
- break;
41
- }
42
- if (!e || !r || !t)
43
- throw new Error(`Invalid interception route: ${n}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
44
- switch (e = (0, p.normalizeAppPath)(e), r) {
45
- case "(.)":
46
- e === "/" ? t = `/${t}` : t = e + "/" + t;
47
- break;
48
- case "(..)":
49
- if (e === "/")
50
- throw new Error(`Invalid interception route: ${n}. Cannot use (..) marker at the root level, use (.) instead.`);
51
- t = e.split("/").slice(0, -1).concat(t).join("/");
52
- break;
53
- case "(...)":
54
- t = "/" + t;
55
- break;
56
- case "(..)(..)":
57
- const o = e.split("/");
58
- if (o.length <= 2)
59
- throw new Error(`Invalid interception route: ${n}. Cannot use (..)(..) marker at the root level or one level up.`);
60
- t = o.slice(0, -2).concat(t).join("/");
61
- break;
62
- default:
63
- throw new Error("Invariant: unexpected marker");
64
- }
65
- return {
66
- interceptingRoute: e,
67
- interceptedRoute: t
68
- };
69
- }
70
- }(u), u);
71
- }
1
+ var a = {};
72
2
  export {
73
- h as __require
3
+ a as __exports
74
4
  };
package/index265.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index276.js"),R=require("./index277.js");var s;function _(){return s||(s=1,function(c){Object.defineProperty(c,"__esModule",{value:!0});function a(n,e){for(var r in e)Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}a(c,{INTERCEPTION_ROUTE_MARKERS:function(){return i},isInterceptionRouteAppPath:function(){return f},extractInterceptionRouteInformation:function(){return l}});const p=R.__require(),i=["(..)(..)","(.)","(..)","(...)"];function f(n){return n.split("/").find(e=>i.find(r=>e.startsWith(r)))!==void 0}function l(n){let e,r,t;for(const o of n.split("/"))if(r=i.find(d=>o.startsWith(d)),r){[e,t]=n.split(r,2);break}if(!e||!r||!t)throw new Error(`Invalid interception route: ${n}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(e=(0,p.normalizeAppPath)(e),r){case"(.)":e==="/"?t=`/${t}`:t=e+"/"+t;break;case"(..)":if(e==="/")throw new Error(`Invalid interception route: ${n}. Cannot use (..) marker at the root level, use (.) instead.`);t=e.split("/").slice(0,-1).concat(t).join("/");break;case"(...)":t="/"+t;break;case"(..)(..)":const o=e.split("/");if(o.length<=2)throw new Error(`Invalid interception route: ${n}. Cannot use (..)(..) marker at the root level or one level up.`);t=o.slice(0,-2).concat(t).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:e,interceptedRoute:t}}}(u.__exports)),u.__exports}exports.__require=_;