@okam/stack-ui 1.44.0 → 1.44.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 (349) hide show
  1. package/CHANGELOG.md +26 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index145.js +1 -1
  6. package/index145.mjs +1 -1
  7. package/index149.mjs +1 -1
  8. package/index155.js +1 -1
  9. package/index155.mjs +4 -4
  10. package/index157.js +1 -1
  11. package/index157.mjs +4 -4
  12. package/index158.js +1 -1
  13. package/index158.mjs +2 -2
  14. package/index159.js +1 -1
  15. package/index159.mjs +1 -1
  16. package/index160.js +1 -1
  17. package/index160.mjs +1 -1
  18. package/index161.js +1 -2
  19. package/index161.mjs +39 -12
  20. package/index162.js +1 -1
  21. package/index162.mjs +12 -38
  22. package/index163.js +2 -1
  23. package/index163.mjs +26 -11
  24. package/index164.js +2 -1
  25. package/index164.mjs +38 -13
  26. package/index165.js +1 -1
  27. package/index165.mjs +21 -38
  28. package/index166.js +1 -2
  29. package/index166.mjs +44 -24
  30. package/index167.js +1 -1
  31. package/index167.mjs +25 -22
  32. package/index168.js +1 -1
  33. package/index168.mjs +40 -45
  34. package/index169.js +2 -1
  35. package/index169.mjs +57 -25
  36. package/index170.js +1 -1
  37. package/index170.mjs +39 -41
  38. package/index171.js +1 -2
  39. package/index171.mjs +30 -57
  40. package/index172.js +2 -1
  41. package/index172.mjs +8 -38
  42. package/index173.js +2 -1
  43. package/index173.mjs +9 -30
  44. package/index174.js +1 -2
  45. package/index174.mjs +32 -9
  46. package/index175.js +1 -2
  47. package/index175.mjs +14 -9
  48. package/index176.js +1 -1
  49. package/index176.mjs +16 -31
  50. package/index177.js +1 -1
  51. package/index177.mjs +11 -15
  52. package/index178.js +2 -1
  53. package/index178.mjs +47 -16
  54. package/index179.js +1 -2
  55. package/index179.mjs +36 -46
  56. package/index180.js +1 -1
  57. package/index180.mjs +31 -36
  58. package/index181.js +1 -1
  59. package/index181.mjs +20 -31
  60. package/index182.js +1 -1
  61. package/index182.mjs +32 -18
  62. package/index183.js +1 -1
  63. package/index183.mjs +14 -36
  64. package/index185.js +1 -1
  65. package/index185.mjs +3 -3
  66. package/index186.js +1 -1
  67. package/index186.mjs +23 -23
  68. package/index187.js +1 -1
  69. package/index187.mjs +12 -12
  70. package/index188.js +1 -1
  71. package/index188.mjs +104 -105
  72. package/index191.js +1 -1
  73. package/index191.mjs +203 -5
  74. package/index192.js +1 -2
  75. package/index192.mjs +62 -47
  76. package/index193.js +1 -1
  77. package/index193.mjs +141 -9
  78. package/index194.js +1 -1
  79. package/index194.mjs +110 -189
  80. package/index195.js +1 -1
  81. package/index195.mjs +213 -53
  82. package/index196.js +1 -1
  83. package/index196.mjs +176 -129
  84. package/index197.js +1 -1
  85. package/index197.mjs +61 -116
  86. package/index198.js +1 -1
  87. package/index198.mjs +265 -210
  88. package/index199.js +1 -1
  89. package/index199.mjs +88 -180
  90. package/index2.mjs +35 -35
  91. package/index200.js +1 -1
  92. package/index200.mjs +179 -60
  93. package/index201.js +1 -1
  94. package/index201.mjs +71 -266
  95. package/index202.js +1 -1
  96. package/index202.mjs +52 -92
  97. package/index203.js +1 -1
  98. package/index203.mjs +120 -182
  99. package/index204.js +1 -1
  100. package/index204.mjs +108 -76
  101. package/index205.js +1 -1
  102. package/index205.mjs +114 -50
  103. package/index206.js +1 -1
  104. package/index206.mjs +64 -118
  105. package/index207.js +1 -1
  106. package/index207.mjs +105 -111
  107. package/index208.js +1 -1
  108. package/index208.mjs +47 -117
  109. package/index209.js +1 -1
  110. package/index209.mjs +88 -67
  111. package/index210.js +1 -1
  112. package/index210.mjs +68 -108
  113. package/index211.js +1 -1
  114. package/index211.mjs +45 -41
  115. package/index212.js +1 -1
  116. package/index212.mjs +83 -77
  117. package/index213.js +5 -1
  118. package/index213.mjs +59 -49
  119. package/index214.js +1 -1
  120. package/index214.mjs +12 -57
  121. package/index215.js +1 -1
  122. package/index215.mjs +5 -99
  123. package/index216.js +2 -5
  124. package/index216.mjs +48 -79
  125. package/index217.js +1 -1
  126. package/index217.mjs +9 -130
  127. package/index218.js +1 -1
  128. package/index218.mjs +52 -184
  129. package/index219.js +1 -1
  130. package/index219.mjs +130 -121
  131. package/index220.js +1 -1
  132. package/index220.mjs +14 -134
  133. package/index221.js +1 -1
  134. package/index221.mjs +41 -73
  135. package/index222.js +1 -1
  136. package/index222.mjs +231 -14
  137. package/index223.js +1 -1
  138. package/index223.mjs +120 -90
  139. package/index224.js +1 -1
  140. package/index224.mjs +66 -100
  141. package/index225.js +7 -1
  142. package/index225.mjs +439 -4
  143. package/index226.js +1 -1
  144. package/index226.mjs +58 -3
  145. package/index227.js +1 -1
  146. package/index227.mjs +52 -123
  147. package/index228.js +1 -1
  148. package/index228.mjs +4 -30
  149. package/index229.js +1 -1
  150. package/index229.mjs +24 -50
  151. package/index230.js +1 -1
  152. package/index230.mjs +46 -43
  153. package/index231.js +1 -1
  154. package/index231.mjs +5 -37
  155. package/index232.js +1 -1
  156. package/index232.mjs +24 -113
  157. package/index233.js +1 -1
  158. package/index233.mjs +11 -76
  159. package/index234.js +1 -1
  160. package/index234.mjs +4 -101
  161. package/index235.js +1 -1
  162. package/index235.mjs +15 -98
  163. package/index236.js +1 -1
  164. package/index236.mjs +36 -119
  165. package/index237.js +1 -1
  166. package/index237.mjs +41 -70
  167. package/index238.js +1 -7
  168. package/index238.mjs +27 -434
  169. package/index239.js +1 -1
  170. package/index239.mjs +30 -57
  171. package/index240.js +1 -1
  172. package/index240.mjs +11 -4
  173. package/index241.js +1 -1
  174. package/index241.mjs +27 -23
  175. package/index242.js +1 -1
  176. package/index242.mjs +15 -47
  177. package/index243.js +1 -1
  178. package/index243.mjs +9 -5
  179. package/index244.js +1 -1
  180. package/index244.mjs +6 -24
  181. package/index245.js +1 -1
  182. package/index245.mjs +5 -12
  183. package/index246.js +1 -1
  184. package/index246.mjs +7 -4
  185. package/index247.js +1 -1
  186. package/index247.mjs +29 -14
  187. package/index248.js +1 -1
  188. package/index248.mjs +17 -42
  189. package/index249.js +1 -1
  190. package/index249.mjs +41 -55
  191. package/index250.js +1 -1
  192. package/index250.mjs +7 -42
  193. package/index251.js +1 -1
  194. package/index251.mjs +15 -31
  195. package/index252.js +1 -1
  196. package/index252.mjs +3 -32
  197. package/index253.js +1 -1
  198. package/index253.mjs +19 -14
  199. package/index254.js +1 -1
  200. package/index254.mjs +34 -10
  201. package/index255.js +1 -1
  202. package/index255.mjs +21 -28
  203. package/index256.js +1 -1
  204. package/index256.mjs +26 -14
  205. package/index257.js +1 -1
  206. package/index257.mjs +129 -8
  207. package/index258.js +1 -1
  208. package/index258.mjs +190 -6
  209. package/index259.js +1 -1
  210. package/index259.mjs +9 -5
  211. package/index260.js +1 -1
  212. package/index260.mjs +3 -7
  213. package/index261.js +1 -1
  214. package/index261.mjs +35 -28
  215. package/index262.js +1 -1
  216. package/index262.mjs +5 -17
  217. package/index263.js +1 -1
  218. package/index263.mjs +27 -42
  219. package/index264.js +1 -1
  220. package/index264.mjs +6 -8
  221. package/index265.js +1 -1
  222. package/index265.mjs +124 -16
  223. package/index266.js +1 -1
  224. package/index266.mjs +135 -3
  225. package/index267.js +1 -1
  226. package/index267.mjs +75 -19
  227. package/index268.js +1 -1
  228. package/index268.mjs +12 -32
  229. package/index269.js +1 -1
  230. package/index269.mjs +93 -20
  231. package/index270.js +1 -1
  232. package/index270.mjs +105 -53
  233. package/index271.js +1 -1
  234. package/index271.mjs +4 -27
  235. package/index272.js +1 -1
  236. package/index272.mjs +3 -144
  237. package/index273.js +1 -1
  238. package/index273.mjs +119 -207
  239. package/index274.js +1 -1
  240. package/index274.mjs +29 -22
  241. package/index275.js +1 -1
  242. package/index275.mjs +51 -49
  243. package/index276.js +1 -1
  244. package/index276.mjs +43 -45
  245. package/index277.js +1 -6
  246. package/index277.mjs +35 -111
  247. package/index278.js +1 -1
  248. package/index278.mjs +114 -72
  249. package/index279.js +1 -1
  250. package/index279.mjs +76 -73
  251. package/index28.js +1 -1
  252. package/index28.mjs +38 -94
  253. package/index280.js +1 -1
  254. package/index280.mjs +101 -7
  255. package/index281.js +1 -1
  256. package/index281.mjs +98 -12
  257. package/index282.js +1 -1
  258. package/index282.mjs +144 -9
  259. package/index283.js +1 -1
  260. package/index283.mjs +207 -127
  261. package/index284.js +1 -1
  262. package/index284.mjs +22 -43
  263. package/index285.js +1 -1
  264. package/index285.mjs +44 -226
  265. package/index286.js +1 -1
  266. package/index286.mjs +45 -30
  267. package/index287.js +6 -1
  268. package/index287.mjs +112 -8
  269. package/index288.js +1 -1
  270. package/index288.mjs +72 -4
  271. package/index289.js +1 -1
  272. package/index289.mjs +71 -33
  273. package/index29.js +1 -1
  274. package/index29.mjs +2 -2
  275. package/index290.js +1 -1
  276. package/index290.mjs +7 -5
  277. package/index291.js +1 -1
  278. package/index291.mjs +11 -29
  279. package/index292.js +1 -1
  280. package/index292.mjs +31 -6
  281. package/index293.js +1 -1
  282. package/index293.mjs +3 -4
  283. package/index294.js +1 -1
  284. package/index294.mjs +4 -3
  285. package/index30.js +1 -1
  286. package/index30.mjs +1 -1
  287. package/index329.js +1 -1
  288. package/index329.mjs +17 -59
  289. package/index33.js +1 -1
  290. package/index33.mjs +2 -2
  291. package/index330.js +1 -1
  292. package/index330.mjs +30 -7
  293. package/index331.js +1 -1
  294. package/index331.mjs +63 -27
  295. package/index332.js +1 -1
  296. package/index332.mjs +15 -87
  297. package/index333.js +1 -1
  298. package/index333.mjs +48 -7
  299. package/index334.js +1 -1
  300. package/index334.mjs +7 -26
  301. package/index335.js +1 -1
  302. package/index335.mjs +26 -32
  303. package/index336.js +1 -1
  304. package/index336.mjs +87 -6
  305. package/index337.js +1 -1
  306. package/index337.mjs +9 -6
  307. package/index338.js +1 -1
  308. package/index338.mjs +23 -48
  309. package/index339.js +1 -1
  310. package/index339.mjs +32 -28
  311. package/index34.js +1 -1
  312. package/index34.mjs +3 -3
  313. package/index340.js +1 -1
  314. package/index340.mjs +6 -15
  315. package/index341.js +1 -1
  316. package/index341.mjs +6 -21
  317. package/index342.js +1 -1
  318. package/index342.mjs +28 -28
  319. package/index345.js +1 -1
  320. package/index345.mjs +1 -1
  321. package/index35.js +1 -1
  322. package/index35.mjs +1 -1
  323. package/index36.js +1 -1
  324. package/index36.mjs +2 -2
  325. package/index38.js +1 -1
  326. package/index38.mjs +3 -3
  327. package/index39.js +1 -1
  328. package/index39.mjs +3 -3
  329. package/index40.js +1 -1
  330. package/index40.mjs +3 -3
  331. package/index42.js +1 -1
  332. package/index42.mjs +1 -1
  333. package/index44.js +1 -1
  334. package/index44.mjs +2 -2
  335. package/index45.js +1 -1
  336. package/index45.mjs +1 -1
  337. package/index48.js +1 -1
  338. package/index48.mjs +2 -2
  339. package/index52.js +1 -1
  340. package/index52.mjs +1 -1
  341. package/index54.js +1 -1
  342. package/index54.mjs +3 -3
  343. package/index56.js +1 -1
  344. package/index56.mjs +2 -2
  345. package/index57.js +1 -1
  346. package/index57.mjs +1 -1
  347. package/index59.js +1 -1
  348. package/index59.mjs +2 -2
  349. package/package.json +1 -1
package/index233.mjs CHANGED
@@ -1,80 +1,15 @@
1
- import { CalendarDate as v } from "./index219.mjs";
2
- import { mod as y } from "./index226.mjs";
3
- const b = 347997, h = 1080, M = 24 * h, T = 29, m = 12 * h + 793, w = T * M + m;
4
- function a(e) {
5
- return y(e * 7 + 1, 19) < 7;
1
+ const t = (o) => {
2
+ var n;
3
+ return (n = o == null ? void 0 : o.ownerDocument) !== null && n !== void 0 ? n : document;
4
+ }, e = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
5
+ function d(o) {
6
+ return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
6
7
  }
7
- function i(e) {
8
- let r = Math.floor((235 * e - 234) / 19), t = 12084 + 13753 * r, f = r * 29 + Math.floor(t / 25920);
9
- return y(3 * (f + 1), 7) < 3 && (f += 1), f;
10
- }
11
- function p(e) {
12
- let r = i(e - 1), t = i(e);
13
- return i(e + 1) - t === 356 ? 2 : t - r === 382 ? 1 : 0;
14
- }
15
- function c(e) {
16
- return i(e) + p(e);
17
- }
18
- function Y(e) {
19
- return c(e + 1) - c(e);
20
- }
21
- function A(e) {
22
- let r = Y(e);
23
- switch (r > 380 && (r -= 30), r) {
24
- case 353:
25
- return 0;
26
- case 354:
27
- return 1;
28
- case 355:
29
- return 2;
30
- }
31
- }
32
- function s(e, r) {
33
- if (r >= 6 && !a(e) && r++, r === 4 || r === 7 || r === 9 || r === 11 || r === 13) return 29;
34
- let t = A(e);
35
- return r === 2 ? t === 2 ? 30 : 29 : r === 3 ? t === 0 ? 29 : 30 : r === 6 ? a(e) ? 30 : 0 : 30;
36
- }
37
- class O {
38
- fromJulianDay(r) {
39
- let t = r - b, f = t * M / w, n = Math.floor((19 * f + 234) / 235) + 1, u = c(n), o = Math.floor(t - u);
40
- for (; o < 1; )
41
- n--, u = c(n), o = Math.floor(t - u);
42
- let $ = 1, l = 0;
43
- for (; l < o; )
44
- l += s(n, $), $++;
45
- $--, l -= s(n, $);
46
- let g = o - l;
47
- return new v(this, n, $, g);
48
- }
49
- toJulianDay(r) {
50
- let t = c(r.year);
51
- for (let f = 1; f < r.month; f++) t += s(r.year, f);
52
- return t + r.day + b;
53
- }
54
- getDaysInMonth(r) {
55
- return s(r.year, r.month);
56
- }
57
- getMonthsInYear(r) {
58
- return a(r.year) ? 13 : 12;
59
- }
60
- getDaysInYear(r) {
61
- return Y(r.year);
62
- }
63
- getYearsInEra() {
64
- return 9999;
65
- }
66
- getEras() {
67
- return [
68
- "AM"
69
- ];
70
- }
71
- balanceYearMonth(r, t) {
72
- t.year !== r.year && (a(t.year) && !a(r.year) && t.month > 6 ? r.month-- : !a(t.year) && a(r.year) && t.month > 6 && r.month++);
73
- }
74
- constructor() {
75
- this.identifier = "hebrew";
76
- }
8
+ function c(o) {
9
+ return d(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
77
10
  }
78
11
  export {
79
- O as HebrewCalendar
12
+ t as getOwnerDocument,
13
+ e as getOwnerWindow,
14
+ c as isShadowRoot
80
15
  };
package/index234.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index219.js"),f=1723856,y=1824665,u=5500;function i(a,r,e,t){return a+365*r+Math.floor(r/4)+30*(e-1)+t-1}function s(a,r){let e=Math.floor(4*(r-a)/1461),t=1+Math.floor((r-i(a,e,1,1))/30),n=r+1-i(a,e,t,1);return[e,t,n]}function $(a){return Math.floor(a%4/3)}function E(a,r){return r%13!==0?30:$(a)+5}class l{fromJulianDay(r){let[e,t,n]=s(f,r),o="AM";return e<=0&&(o="AA",e+=u),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="AA"&&(e-=u),i(f,e,r.month,r.day)}getDaysInMonth(r){return E(r.year,r.month)}getMonthsInYear(){return 13}getDaysInYear(r){return 365+$(r.year)}getYearsInEra(r){return r.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class b extends l{fromJulianDay(r){let[e,t,n]=s(f,r);return e+=u,new c.CalendarDate(this,"AA",e,t,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...r){super(...r),this.identifier="ethioaa"}}class C extends l{fromJulianDay(r){let[e,t,n]=s(y,r),o="CE";return e<=0&&(o="BCE",e=1-e),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="BCE"&&(e=1-e),i(y,e,r.month,r.day)}getDaysInMonth(r){let e=r.year;return r.era==="BCE"&&(e=1-e),E(e,r.month)}isInverseEra(r){return r.era==="BCE"}balanceDate(r){r.year<=0&&(r.era=r.era==="BCE"?"CE":"BCE",r.year=1-r.year)}getEras(){return["BCE","CE"]}getYearsInEra(r){return r.era==="BCE"?9999:9715}constructor(...r){super(...r),this.identifier="coptic"}}exports.CopticCalendar=C;exports.EthiopicAmeteAlemCalendar=b;exports.EthiopicCalendar=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=!1;function t(){return e}exports.shadowDOM=t;
package/index234.mjs CHANGED
@@ -1,104 +1,7 @@
1
- import { CalendarDate as s } from "./index219.mjs";
2
- const i = 1723856, $ = 1824665, c = 5500;
3
- function f(a, r, e, t) {
4
- return a + 365 * r + Math.floor(r / 4) + 30 * (e - 1) + t - 1;
5
- }
6
- function u(a, r) {
7
- let e = Math.floor(4 * (r - a) / 1461), t = 1 + Math.floor((r - f(a, e, 1, 1)) / 30), n = r + 1 - f(a, e, t, 1);
8
- return [
9
- e,
10
- t,
11
- n
12
- ];
13
- }
14
- function l(a) {
15
- return Math.floor(a % 4 / 3);
16
- }
17
- function y(a, r) {
18
- return r % 13 !== 0 ? 30 : l(a) + 5;
19
- }
20
- class b {
21
- fromJulianDay(r) {
22
- let [e, t, n] = u(i, r), o = "AM";
23
- return e <= 0 && (o = "AA", e += c), new s(this, o, e, t, n);
24
- }
25
- toJulianDay(r) {
26
- let e = r.year;
27
- return r.era === "AA" && (e -= c), f(i, e, r.month, r.day);
28
- }
29
- getDaysInMonth(r) {
30
- return y(r.year, r.month);
31
- }
32
- getMonthsInYear() {
33
- return 13;
34
- }
35
- getDaysInYear(r) {
36
- return 365 + l(r.year);
37
- }
38
- getYearsInEra(r) {
39
- return r.era === "AA" ? 9999 : 9991;
40
- }
41
- getEras() {
42
- return [
43
- "AA",
44
- "AM"
45
- ];
46
- }
47
- constructor() {
48
- this.identifier = "ethiopic";
49
- }
50
- }
51
- class h extends b {
52
- fromJulianDay(r) {
53
- let [e, t, n] = u(i, r);
54
- return e += c, new s(this, "AA", e, t, n);
55
- }
56
- getEras() {
57
- return [
58
- "AA"
59
- ];
60
- }
61
- getYearsInEra() {
62
- return 9999;
63
- }
64
- constructor(...r) {
65
- super(...r), this.identifier = "ethioaa";
66
- }
67
- }
68
- class C extends b {
69
- fromJulianDay(r) {
70
- let [e, t, n] = u($, r), o = "CE";
71
- return e <= 0 && (o = "BCE", e = 1 - e), new s(this, o, e, t, n);
72
- }
73
- toJulianDay(r) {
74
- let e = r.year;
75
- return r.era === "BCE" && (e = 1 - e), f($, e, r.month, r.day);
76
- }
77
- getDaysInMonth(r) {
78
- let e = r.year;
79
- return r.era === "BCE" && (e = 1 - e), y(e, r.month);
80
- }
81
- isInverseEra(r) {
82
- return r.era === "BCE";
83
- }
84
- balanceDate(r) {
85
- r.year <= 0 && (r.era = r.era === "BCE" ? "CE" : "BCE", r.year = 1 - r.year);
86
- }
87
- getEras() {
88
- return [
89
- "BCE",
90
- "CE"
91
- ];
92
- }
93
- getYearsInEra(r) {
94
- return r.era === "BCE" ? 9999 : 9715;
95
- }
96
- constructor(...r) {
97
- super(...r), this.identifier = "coptic";
98
- }
1
+ let e = !1;
2
+ function f() {
3
+ return e;
99
4
  }
100
5
  export {
101
- C as CopticCalendar,
102
- h as EthiopicAmeteAlemCalendar,
103
- b as EthiopicCalendar
6
+ f as shadowDOM
104
7
  };
package/index235.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};exports.weekStartData=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(r){var o,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(o=0;o<u;o++)r[o]&&(e=n(r[o]))&&(t&&(t+=" "),t+=e)}else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,o,e=0,t="",u=arguments.length;e<u;e++)(r=arguments[e])&&(o=n(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=f;exports.default=f;
package/index235.mjs CHANGED
@@ -1,100 +1,17 @@
1
- const A = {
2
- "001": 1,
3
- AD: 1,
4
- AE: 6,
5
- AF: 6,
6
- AI: 1,
7
- AL: 1,
8
- AM: 1,
9
- AN: 1,
10
- AR: 1,
11
- AT: 1,
12
- AU: 1,
13
- AX: 1,
14
- AZ: 1,
15
- BA: 1,
16
- BE: 1,
17
- BG: 1,
18
- BH: 6,
19
- BM: 1,
20
- BN: 1,
21
- BY: 1,
22
- CH: 1,
23
- CL: 1,
24
- CM: 1,
25
- CN: 1,
26
- CR: 1,
27
- CY: 1,
28
- CZ: 1,
29
- DE: 1,
30
- DJ: 6,
31
- DK: 1,
32
- DZ: 6,
33
- EC: 1,
34
- EE: 1,
35
- EG: 6,
36
- ES: 1,
37
- FI: 1,
38
- FJ: 1,
39
- FO: 1,
40
- FR: 1,
41
- GB: 1,
42
- GE: 1,
43
- GF: 1,
44
- GP: 1,
45
- GR: 1,
46
- HR: 1,
47
- HU: 1,
48
- IE: 1,
49
- IQ: 6,
50
- IR: 6,
51
- IS: 1,
52
- IT: 1,
53
- JO: 6,
54
- KG: 1,
55
- KW: 6,
56
- KZ: 1,
57
- LB: 1,
58
- LI: 1,
59
- LK: 1,
60
- LT: 1,
61
- LU: 1,
62
- LV: 1,
63
- LY: 6,
64
- MC: 1,
65
- MD: 1,
66
- ME: 1,
67
- MK: 1,
68
- MN: 1,
69
- MQ: 1,
70
- MV: 5,
71
- MY: 1,
72
- NL: 1,
73
- NO: 1,
74
- NZ: 1,
75
- OM: 6,
76
- PL: 1,
77
- QA: 6,
78
- RE: 1,
79
- RO: 1,
80
- RS: 1,
81
- RU: 1,
82
- SD: 6,
83
- SE: 1,
84
- SI: 1,
85
- SK: 1,
86
- SM: 1,
87
- SY: 6,
88
- TJ: 1,
89
- TM: 1,
90
- TR: 1,
91
- UA: 1,
92
- UY: 1,
93
- UZ: 1,
94
- VA: 1,
95
- VN: 1,
96
- XK: 1
97
- };
1
+ function a(r) {
2
+ var n, f, t = "";
3
+ if (typeof r == "string" || typeof r == "number") t += r;
4
+ else if (typeof r == "object") if (Array.isArray(r)) {
5
+ var o = r.length;
6
+ for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
7
+ } else for (f in r) r[f] && (t && (t += " "), t += f);
8
+ return t;
9
+ }
10
+ function i() {
11
+ for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
12
+ return t;
13
+ }
98
14
  export {
99
- A as weekStartData
15
+ i as clsx,
16
+ i as default
100
17
  };
package/index236.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),v={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},x={...v,customError:!0,valid:!1},c={isInvalid:!1,validationDetails:v,validationErrors:[]},h=n.createContext({}),I="__formValidationState"+Date.now();function R(e){if(e[I]){let{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}=e[I];return{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}}return w(e)}function w(e){let{isInvalid:a,validationState:t,name:i,value:d,builtinValidation:l,validate:s,validationBehavior:o="aria"}=e;t&&(a||(a=t==="invalid"));let V=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:x}:null,m=n.useMemo(()=>{if(!s||d==null)return null;let r=F(s,d);return T(r)},[s,d]);l!=null&&l.validationDetails.valid&&(l=void 0);let u=n.useContext(h),A=n.useMemo(()=>i?Array.isArray(i)?i.flatMap(r=>D(u[r])):D(u[i]):[],[u,i]),[C,L]=n.useState(u),[g,$]=n.useState(!1);u!==C&&(L(u),$(!1));let b=n.useMemo(()=>T(g?[]:A),[g,A]),M=n.useRef(c),[E,p]=n.useState(c),f=n.useRef(c),_=()=>{if(!O)return;S(!1);let r=m||l||M.current;y(r,f.current)||(f.current=r,p(r))},[O,S]=n.useState(!1);return n.useEffect(_),{realtimeValidation:V||b||m||l||c,displayValidation:o==="native"?V||b||E:V||b||m||l||E,updateValidation(r){o==="aria"&&!y(E,r)?p(r):M.current=r},resetValidation(){let r=c;y(r,f.current)||(f.current=r,p(r)),o==="native"&&S(!1),$(!0)},commitValidation(){o==="native"&&S(!0),$(!0)}}}function D(e){return e?Array.isArray(e)?e:[e]:[]}function F(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return D(t)}return[]}function T(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:x}:null}function y(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,i)=>t===a.validationErrors[i])&&Object.entries(e.validationDetails).every(([t,i])=>a.validationDetails[t]===i)}function U(...e){let a=new Set,t=!1,i={...v};for(let s of e){var d,l;for(let o of s.validationErrors)a.add(o);t||(t=s.isInvalid);for(let o in i)(d=i)[l=o]||(d[l]=s.validationDetails[o])}return i.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:i}}exports.DEFAULT_VALIDATION_RESULT=c;exports.FormValidationContext=h;exports.VALID_VALIDITY_STATE=v;exports.mergeValidation=U;exports.privateValidationStateProp=I;exports.useFormValidationState=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(l){if(n())l.focus({preventScroll:!0});else{let e=s(l);l.focus(),f(e)}}let r=null;function n(){if(r==null){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch{}}return r}function s(l){let e=l.parentNode,o=[],t=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==t;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&o.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return t instanceof HTMLElement&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),o}function f(l){for(let{element:e,scrollTop:o,scrollLeft:t}of l)e.scrollTop=o,e.scrollLeft=t}exports.focusWithoutScrolling=c;
package/index236.mjs CHANGED
@@ -1,128 +1,45 @@
1
- import { createContext as O, useMemo as I, useContext as U, useState as f, useRef as T, useEffect as R } from "react";
2
- const D = {
3
- badInput: !1,
4
- customError: !1,
5
- patternMismatch: !1,
6
- rangeOverflow: !1,
7
- rangeUnderflow: !1,
8
- stepMismatch: !1,
9
- tooLong: !1,
10
- tooShort: !1,
11
- typeMismatch: !1,
12
- valueMissing: !1,
13
- valid: !0
14
- }, L = {
15
- ...D,
16
- customError: !0,
17
- valid: !1
18
- }, u = {
19
- isInvalid: !1,
20
- validationDetails: D,
21
- validationErrors: []
22
- }, B = O({}), h = "__formValidationState" + Date.now();
23
- function P(a) {
24
- if (a[h]) {
25
- let { realtimeValidation: e, displayValidation: t, updateValidation: i, resetValidation: o, commitValidation: l } = a[h];
26
- return {
27
- realtimeValidation: e,
28
- displayValidation: t,
29
- updateValidation: i,
30
- resetValidation: o,
31
- commitValidation: l
32
- };
1
+ function f(l) {
2
+ if (c()) l.focus({
3
+ preventScroll: !0
4
+ });
5
+ else {
6
+ let e = n(l);
7
+ l.focus(), s(e);
33
8
  }
34
- return Q(a);
35
9
  }
36
- function Q(a) {
37
- let { isInvalid: e, validationState: t, name: i, value: o, builtinValidation: l, validate: d, validationBehavior: n = "aria" } = a;
38
- t && (e || (e = t === "invalid"));
39
- let v = e !== void 0 ? {
40
- isInvalid: e,
41
- validationErrors: [],
42
- validationDetails: L
43
- } : null, V = I(() => {
44
- if (!d || o == null) return null;
45
- let r = Y(d, o);
46
- return C(r);
47
- }, [
48
- d,
49
- o
50
- ]);
51
- l != null && l.validationDetails.valid && (l = void 0);
52
- let s = U(B), A = I(() => i ? Array.isArray(i) ? i.flatMap((r) => S(s[r])) : S(s[i]) : [], [
53
- s,
54
- i
55
- ]), [M, _] = f(s), [x, m] = f(!1);
56
- s !== M && (_(s), m(!1));
57
- let $ = I(() => C(x ? [] : A), [
58
- x,
59
- A
60
- ]), g = T(u), [b, E] = f(u), c = T(u), w = () => {
61
- if (!F) return;
62
- p(!1);
63
- let r = V || l || g.current;
64
- y(r, c.current) || (c.current = r, E(r));
65
- }, [F, p] = f(!1);
66
- return R(w), {
67
- realtimeValidation: v || $ || V || l || u,
68
- displayValidation: n === "native" ? v || $ || b : v || $ || V || l || b,
69
- updateValidation(r) {
70
- n === "aria" && !y(b, r) ? E(r) : g.current = r;
71
- },
72
- resetValidation() {
73
- let r = u;
74
- y(r, c.current) || (c.current = r, E(r)), n === "native" && p(!1), m(!0);
75
- },
76
- commitValidation() {
77
- n === "native" && p(!0), m(!0);
10
+ let r = null;
11
+ function c() {
12
+ if (r == null) {
13
+ r = !1;
14
+ try {
15
+ document.createElement("div").focus({
16
+ get preventScroll() {
17
+ return r = !0, !0;
18
+ }
19
+ });
20
+ } catch {
78
21
  }
79
- };
80
- }
81
- function S(a) {
82
- return a ? Array.isArray(a) ? a : [
83
- a
84
- ] : [];
85
- }
86
- function Y(a, e) {
87
- if (typeof a == "function") {
88
- let t = a(e);
89
- if (t && typeof t != "boolean") return S(t);
90
22
  }
91
- return [];
23
+ return r;
92
24
  }
93
- function C(a) {
94
- return a.length ? {
95
- isInvalid: !0,
96
- validationErrors: a,
97
- validationDetails: L
98
- } : null;
25
+ function n(l) {
26
+ let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
27
+ for (; e instanceof HTMLElement && e !== t; )
28
+ (e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
29
+ element: e,
30
+ scrollTop: e.scrollTop,
31
+ scrollLeft: e.scrollLeft
32
+ }), e = e.parentNode;
33
+ return t instanceof HTMLElement && o.push({
34
+ element: t,
35
+ scrollTop: t.scrollTop,
36
+ scrollLeft: t.scrollLeft
37
+ }), o;
99
38
  }
100
- function y(a, e) {
101
- return a === e ? !0 : !!a && !!e && a.isInvalid === e.isInvalid && a.validationErrors.length === e.validationErrors.length && a.validationErrors.every((t, i) => t === e.validationErrors[i]) && Object.entries(a.validationDetails).every(([t, i]) => e.validationDetails[t] === i);
102
- }
103
- function k(...a) {
104
- let e = /* @__PURE__ */ new Set(), t = !1, i = {
105
- ...D
106
- };
107
- for (let d of a) {
108
- var o, l;
109
- for (let n of d.validationErrors) e.add(n);
110
- t || (t = d.isInvalid);
111
- for (let n in i) (o = i)[l = n] || (o[l] = d.validationDetails[n]);
112
- }
113
- return i.valid = !t, {
114
- isInvalid: t,
115
- validationErrors: [
116
- ...e
117
- ],
118
- validationDetails: i
119
- };
39
+ function s(l) {
40
+ for (let { element: e, scrollTop: o, scrollLeft: t } of l)
41
+ e.scrollTop = o, e.scrollLeft = t;
120
42
  }
121
43
  export {
122
- u as DEFAULT_VALIDATION_RESULT,
123
- B as FormValidationContext,
124
- D as VALID_VALIDITY_STATE,
125
- k as mergeValidation,
126
- h as privateValidationStateProp,
127
- P as useFormValidationState
44
+ f as focusWithoutScrolling
128
45
  };
package/index237.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index329.js"),m=require("react"),E=require("./index240.js"),d=require("./index256.js");function y(n,e,t){let{validationBehavior:v,focus:s}=n;E.useLayoutEffect(()=>{if(v==="native"&&(t!=null&&t.current)&&!t.current.disabled){let a=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(a),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(M(t.current))}});let l=m.useRef(!1),u=d.useEffectEvent(()=>{l.current||e.resetValidation()}),c=d.useEffectEvent(a=>{var i;e.displayValidation.isInvalid||e.commitValidation();let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;if(!a.defaultPrevented&&t&&o&&b(o)===t.current){var r;s?s():(r=t.current)===null||r===void 0||r.focus(),g.setInteractionModality("keyboard")}a.preventDefault()}),f=d.useEffectEvent(()=>{e.commitValidation()});m.useEffect(()=>{let a=t==null?void 0:t.current;if(!a)return;let i=a.form,o=i==null?void 0:i.reset;return i&&(i.reset=()=>{l.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,o==null||o.call(i),l.current=!1}),a.addEventListener("invalid",c),a.addEventListener("change",f),i==null||i.addEventListener("reset",u),()=>{a.removeEventListener("invalid",c),a.removeEventListener("change",f),i==null||i.removeEventListener("reset",u),i&&(i.reset=o)}},[t,v])}function h(n){let e=n.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function M(n){return{isInvalid:!n.validity.valid,validationDetails:h(n),validationErrors:n.validationMessage?[n.validationMessage]:[]}}function b(n){for(let e=0;e<n.elements.length;e++){let t=n.elements[e];if(!t.validity.valid)return t}return null}exports.useFormValidation=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let i=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(i)&&i.some($=>t.test($.brand))||t.test(window.navigator.userAgent)}function r(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function n(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const o=n(function(){return r(/^Mac/i)}),c=n(function(){return r(/^iPhone/i)}),u=n(function(){return r(/^iPad/i)||o()&&navigator.maxTouchPoints>1}),s=n(function(){return c()||u()}),f=n(function(){return o()||s()}),l=n(function(){return a(/AppleWebKit/i)&&!d()}),d=n(function(){return a(/Chrome/i)}),v=n(function(){return a(/Android/i)}),w=n(function(){return a(/Firefox/i)});exports.isAndroid=v;exports.isAppleDevice=f;exports.isChrome=d;exports.isFirefox=w;exports.isIOS=s;exports.isIPad=u;exports.isIPhone=c;exports.isMac=o;exports.isWebKit=l;
package/index237.mjs CHANGED
@@ -1,75 +1,46 @@
1
- import { setInteractionModality as f } from "./index329.mjs";
2
- import { useRef as g, useEffect as $ } from "react";
3
- import { useLayoutEffect as p } from "./index240.mjs";
4
- import { useEffectEvent as d } from "./index256.mjs";
5
- function w(a, e, t) {
6
- let { validationBehavior: v, focus: s } = a;
7
- p(() => {
8
- if (v === "native" && (t != null && t.current) && !t.current.disabled) {
9
- let n = e.realtimeValidation.isInvalid ? e.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
10
- t.current.setCustomValidity(n), t.current.hasAttribute("title") || (t.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(h(t.current));
11
- }
12
- });
13
- let r = g(!1), u = d(() => {
14
- r.current || e.resetValidation();
15
- }), c = d((n) => {
16
- var i;
17
- e.displayValidation.isInvalid || e.commitValidation();
18
- let o = t == null || (i = t.current) === null || i === void 0 ? void 0 : i.form;
19
- if (!n.defaultPrevented && t && o && y(o) === t.current) {
20
- var l;
21
- s ? s() : (l = t.current) === null || l === void 0 || l.focus(), f("keyboard");
22
- }
23
- n.preventDefault();
24
- }), m = d(() => {
25
- e.commitValidation();
26
- });
27
- $(() => {
28
- let n = t == null ? void 0 : t.current;
29
- if (!n) return;
30
- let i = n.form, o = i == null ? void 0 : i.reset;
31
- return i && (i.reset = () => {
32
- r.current = !window.event || window.event.type === "message" && window.event.target instanceof MessagePort, o == null || o.call(i), r.current = !1;
33
- }), n.addEventListener("invalid", c), n.addEventListener("change", m), i == null || i.addEventListener("reset", u), () => {
34
- n.removeEventListener("invalid", c), n.removeEventListener("change", m), i == null || i.removeEventListener("reset", u), i && (i.reset = o);
35
- };
36
- }, [
37
- t,
38
- v
39
- ]);
1
+ function t(a) {
2
+ var e;
3
+ if (typeof window > "u" || window.navigator == null) return !1;
4
+ let o = (e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands;
5
+ return Array.isArray(o) && o.some((c) => a.test(c.brand)) || a.test(window.navigator.userAgent);
40
6
  }
41
- function b(a) {
42
- let e = a.validity;
43
- return {
44
- badInput: e.badInput,
45
- customError: e.customError,
46
- patternMismatch: e.patternMismatch,
47
- rangeOverflow: e.rangeOverflow,
48
- rangeUnderflow: e.rangeUnderflow,
49
- stepMismatch: e.stepMismatch,
50
- tooLong: e.tooLong,
51
- tooShort: e.tooShort,
52
- typeMismatch: e.typeMismatch,
53
- valueMissing: e.valueMissing,
54
- valid: e.valid
55
- };
7
+ function r(a) {
8
+ var e;
9
+ return typeof window < "u" && window.navigator != null ? a.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
56
10
  }
57
- function h(a) {
58
- return {
59
- isInvalid: !a.validity.valid,
60
- validationDetails: b(a),
61
- validationErrors: a.validationMessage ? [
62
- a.validationMessage
63
- ] : []
64
- };
65
- }
66
- function y(a) {
67
- for (let e = 0; e < a.elements.length; e++) {
68
- let t = a.elements[e];
69
- if (!t.validity.valid) return t;
70
- }
71
- return null;
11
+ function n(a) {
12
+ if (process.env.NODE_ENV === "test") return a;
13
+ let e = null;
14
+ return () => (e == null && (e = a()), e);
72
15
  }
16
+ const i = n(function() {
17
+ return r(/^Mac/i);
18
+ }), s = n(function() {
19
+ return r(/^iPhone/i);
20
+ }), u = n(function() {
21
+ return r(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
22
+ i() && navigator.maxTouchPoints > 1;
23
+ }), $ = n(function() {
24
+ return s() || u();
25
+ }), f = n(function() {
26
+ return i() || $();
27
+ }), l = n(function() {
28
+ return t(/AppleWebKit/i) && !d();
29
+ }), d = n(function() {
30
+ return t(/Chrome/i);
31
+ }), v = n(function() {
32
+ return t(/Android/i);
33
+ }), w = n(function() {
34
+ return t(/Firefox/i);
35
+ });
73
36
  export {
74
- w as useFormValidation
37
+ v as isAndroid,
38
+ f as isAppleDevice,
39
+ d as isChrome,
40
+ w as isFirefox,
41
+ $ as isIOS,
42
+ u as isIPad,
43
+ s as isIPhone,
44
+ i as isMac,
45
+ l as isWebKit
75
46
  };