@okam/stack-ui 1.32.4 → 1.32.5
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.
- package/components/fields/Checkbox/index.d.ts +6 -0
- package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
- package/components/fields/Select/Select.d.ts +4 -1
- package/components/fields/Select/Select.interface.d.ts +1 -0
- package/components/fields/TextArea/index.d.ts +4 -1
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +153 -151
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +8 -8
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +2 -2
- package/index140.js +1 -1
- package/index140.mjs +23 -23
- package/index141.js +1 -1
- package/index141.mjs +3 -3
- package/index144.js +1 -1
- package/index144.mjs +21 -23
- package/index145.js +1 -1
- package/index145.mjs +38 -113
- package/index146.js +1 -1
- package/index146.mjs +25 -22
- package/index147.js +1 -1
- package/index147.mjs +251 -35
- package/index148.js +1 -1
- package/index148.mjs +106 -25
- package/index149.js +1 -1
- package/index149.mjs +320 -242
- package/index150.js +1 -1
- package/index150.mjs +23 -105
- package/index151.js +1 -1
- package/index151.mjs +104 -323
- package/index152.js +1 -1
- package/index152.mjs +106 -20
- package/index153.js +1 -1
- package/index153.mjs +83 -107
- package/index154.js +1 -1
- package/index154.mjs +26 -83
- package/index155.js +1 -1
- package/index155.mjs +20 -25
- package/index156.js +1 -1
- package/index156.mjs +17 -123
- package/index157.js +1 -1
- package/index157.mjs +122 -24
- package/index158.js +1 -1
- package/index158.mjs +71 -17
- package/index159.js +1 -1
- package/index159.mjs +338 -62
- package/index16.js +1 -1
- package/index16.mjs +144 -67
- package/index160.js +1 -1
- package/index160.mjs +42 -346
- package/index161.js +1 -1
- package/index161.mjs +29 -43
- package/index162.js +1 -1
- package/index162.mjs +24 -28
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +2 -2
- package/index169.js +1 -1
- package/index169.mjs +4 -4
- package/index17.js +1 -1
- package/index17.mjs +95 -26
- package/index170.js +1 -1
- package/index170.mjs +2 -2
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +4 -4
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +205 -197
- package/index186.js +1 -1
- package/index186.mjs +24 -64
- package/index187.js +1 -1
- package/index187.mjs +4 -143
- package/index188.js +1 -1
- package/index188.mjs +3 -124
- package/index189.js +1 -1
- package/index189.mjs +116 -215
- package/index190.js +1 -1
- package/index190.mjs +23 -184
- package/index191.js +1 -1
- package/index191.mjs +51 -69
- package/index192.js +1 -1
- package/index192.mjs +43 -278
- package/index193.js +1 -1
- package/index193.mjs +31 -92
- package/index194.js +1 -1
- package/index194.mjs +109 -184
- package/index195.js +1 -1
- package/index195.mjs +77 -84
- package/index196.js +1 -1
- package/index196.mjs +101 -58
- package/index197.js +1 -1
- package/index197.mjs +98 -127
- package/index198.js +1 -1
- package/index198.mjs +188 -101
- package/index199.js +1 -1
- package/index199.mjs +52 -110
- package/index20.js +1 -1
- package/index20.mjs +105 -31
- package/index200.js +1 -1
- package/index200.mjs +138 -67
- package/index201.js +1 -1
- package/index201.mjs +119 -105
- package/index202.js +1 -1
- package/index202.mjs +219 -47
- package/index203.js +1 -1
- package/index203.mjs +185 -88
- package/index204.js +1 -1
- package/index204.mjs +62 -63
- package/index205.js +1 -1
- package/index205.mjs +275 -52
- package/index206.js +1 -1
- package/index206.mjs +93 -94
- package/index207.js +1 -5
- package/index207.mjs +183 -75
- package/index208.js +1 -1
- package/index208.mjs +73 -2014
- package/index209.js +1 -1
- package/index209.mjs +56 -57
- package/index21.js +1 -1
- package/index21.mjs +132 -59
- package/index210.js +1 -1
- package/index210.mjs +123 -185
- package/index211.js +1 -1
- package/index211.mjs +110 -205
- package/index212.js +1 -1
- package/index212.mjs +122 -24
- package/index213.js +1 -1
- package/index213.mjs +72 -4
- package/index214.js +1 -1
- package/index214.mjs +110 -3
- package/index215.js +1 -1
- package/index215.mjs +51 -124
- package/index216.js +1 -1
- package/index216.mjs +93 -29
- package/index217.js +1 -1
- package/index217.mjs +70 -51
- package/index218.js +1 -1
- package/index218.mjs +56 -44
- package/index219.js +1 -1
- package/index219.mjs +98 -36
- package/index220.js +5 -1
- package/index220.mjs +78 -111
- package/index221.js +1 -1
- package/index221.mjs +2021 -73
- package/index222.js +1 -1
- package/index222.mjs +57 -99
- package/index223.js +1 -1
- package/index223.mjs +189 -98
- package/index224.js +1 -1
- package/index224.mjs +3 -3
- package/index225.js +1 -1
- package/index225.mjs +1 -1
- package/index226.js +1 -1
- package/index226.mjs +3 -3
- package/index227.js +1 -1
- package/index227.mjs +34 -34
- package/index230.js +1 -1
- package/index230.mjs +2 -2
- package/index231.js +1 -1
- package/index231.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +34 -34
- package/index269.js +1 -1
- package/index269.mjs +4 -130
- package/index270.js +1 -1
- package/index270.mjs +22 -188
- package/index271.js +1 -1
- package/index271.mjs +46 -8
- package/index272.js +1 -1
- package/index272.mjs +5 -3
- package/index273.js +1 -1
- package/index273.mjs +6 -37
- package/index274.js +1 -1
- package/index274.mjs +14 -5
- package/index275.js +1 -1
- package/index275.mjs +24 -29
- package/index276.js +1 -1
- package/index276.mjs +28 -6
- package/index277.js +1 -1
- package/index277.mjs +26 -135
- package/index278.js +1 -1
- package/index278.mjs +9 -197
- package/index279.js +1 -1
- package/index279.mjs +25 -19
- package/index280.js +1 -1
- package/index280.mjs +9 -28
- package/index281.js +1 -1
- package/index281.mjs +5 -46
- package/index282.js +1 -1
- package/index282.mjs +7 -48
- package/index283.js +1 -1
- package/index283.mjs +12 -99
- package/index284.js +1 -1
- package/index284.mjs +8 -5
- package/index285.js +1 -1
- package/index285.mjs +130 -71
- package/index286.js +1 -1
- package/index286.mjs +185 -53
- package/index287.js +1 -1
- package/index287.mjs +9 -7
- package/index288.js +1 -1
- package/index288.mjs +3 -11
- package/index289.js +1 -1
- package/index289.mjs +35 -46
- package/index290.js +1 -1
- package/index290.mjs +5 -24
- package/index291.js +1 -1
- package/index291.mjs +30 -6
- package/index292.js +1 -1
- package/index292.mjs +6 -14
- package/index293.js +1 -1
- package/index293.mjs +48 -24
- package/index294.js +1 -1
- package/index294.mjs +16 -29
- package/index295.js +1 -1
- package/index295.mjs +16 -32
- package/index296.js +1 -1
- package/index296.mjs +16 -10
- package/index297.js +1 -1
- package/index297.mjs +16 -10
- package/index298.js +1 -1
- package/index298.mjs +16 -6
- package/index299.js +1 -1
- package/index299.mjs +16 -8
- package/index300.js +1 -1
- package/index300.mjs +16 -14
- package/index301.js +1 -1
- package/index301.mjs +16 -9
- package/index302.js +1 -1
- package/index302.mjs +16 -5
- package/index303.js +1 -1
- package/index303.mjs +16 -49
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +15 -15
- package/index307.js +1 -1
- package/index307.mjs +12 -12
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +12 -12
- package/index315.js +1 -1
- package/index315.mjs +15 -15
- package/index316.js +1 -1
- package/index316.mjs +15 -15
- package/index317.js +1 -1
- package/index317.mjs +15 -15
- package/index318.js +1 -1
- package/index318.mjs +15 -15
- package/index319.js +1 -1
- package/index319.mjs +12 -12
- package/index320.js +1 -1
- package/index320.mjs +15 -15
- package/index321.js +1 -1
- package/index321.mjs +15 -15
- package/index322.js +1 -1
- package/index322.mjs +15 -15
- package/index323.js +1 -1
- package/index323.mjs +15 -15
- package/index324.js +1 -1
- package/index324.mjs +15 -15
- package/index325.js +1 -1
- package/index325.mjs +12 -12
- package/index326.js +1 -1
- package/index326.mjs +15 -15
- package/index327.js +1 -1
- package/index327.mjs +15 -15
- package/index328.js +1 -1
- package/index328.mjs +141 -16
- package/index329.js +1 -1
- package/index329.mjs +198 -16
- package/index330.js +1 -1
- package/index330.mjs +23 -16
- package/index331.js +1 -1
- package/index331.mjs +47 -16
- package/index332.js +1 -1
- package/index332.mjs +49 -16
- package/index333.js +1 -1
- package/index333.mjs +101 -16
- package/index334.js +1 -1
- package/index334.mjs +71 -15
- package/index335.js +1 -1
- package/index335.mjs +59 -16
- package/index336.js +1 -1
- package/index336.mjs +8 -16
- package/index337.js +1 -1
- package/index337.mjs +12 -16
- package/index338.js +1 -1
- package/index338.mjs +7 -4
- package/index339.js +1 -1
- package/index339.mjs +68 -6
- package/index340.js +1 -1
- package/index340.mjs +27 -65
- package/index341.js +1 -1
- package/index341.mjs +6 -30
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +20 -6
- package/index344.js +1 -1
- package/index344.mjs +3 -20
- package/index345.js +1 -1
- package/index345.mjs +6 -72
- package/index347.js +1 -1
- package/index347.mjs +71 -7
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +7 -7
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +4 -4
- package/index357.js +1 -1
- package/index357.mjs +4 -4
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +4 -4
- package/index362.js +1 -1
- package/index362.mjs +7 -7
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +7 -7
- package/index370.js +1 -1
- package/index370.mjs +3 -3
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +4 -4
- package/index376.js +1 -1
- package/index376.mjs +7 -7
- package/index377.js +1 -1
- package/index377.mjs +4 -4
- package/index378.js +1 -1
- package/index378.mjs +4 -4
- package/index379.js +1 -1
- package/index379.mjs +7 -7
- package/index380.js +1 -1
- package/index380.mjs +4 -4
- package/index381.js +1 -1
- package/index381.mjs +8 -6
- package/package.json +1 -1
package/index227.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
import o from "./
|
|
3
|
-
import e from "./
|
|
4
|
-
import t from "./
|
|
5
|
-
import p from "./
|
|
6
|
-
import $ from "./
|
|
7
|
-
import f from "./
|
|
8
|
-
import m from "./
|
|
9
|
-
import s from "./
|
|
10
|
-
import a from "./
|
|
11
|
-
import b from "./
|
|
12
|
-
import i from "./
|
|
13
|
-
import x from "./
|
|
14
|
-
import c from "./
|
|
15
|
-
import d from "./
|
|
16
|
-
import R from "./
|
|
17
|
-
import l from "./
|
|
18
|
-
import E from "./
|
|
19
|
-
import S from "./
|
|
20
|
-
import h from "./
|
|
21
|
-
import L from "./
|
|
22
|
-
import T from "./
|
|
23
|
-
import u from "./
|
|
24
|
-
import I from "./
|
|
25
|
-
import P from "./
|
|
26
|
-
import U from "./
|
|
27
|
-
import k from "./
|
|
28
|
-
import n from "./
|
|
29
|
-
import v from "./
|
|
30
|
-
import K from "./
|
|
31
|
-
import N from "./
|
|
32
|
-
import z from "./
|
|
33
|
-
import A from "./
|
|
34
|
-
import B from "./
|
|
1
|
+
import r from "./index294.mjs";
|
|
2
|
+
import o from "./index295.mjs";
|
|
3
|
+
import e from "./index296.mjs";
|
|
4
|
+
import t from "./index297.mjs";
|
|
5
|
+
import p from "./index298.mjs";
|
|
6
|
+
import $ from "./index299.mjs";
|
|
7
|
+
import f from "./index300.mjs";
|
|
8
|
+
import m from "./index301.mjs";
|
|
9
|
+
import s from "./index302.mjs";
|
|
10
|
+
import a from "./index303.mjs";
|
|
11
|
+
import b from "./index304.mjs";
|
|
12
|
+
import i from "./index305.mjs";
|
|
13
|
+
import x from "./index306.mjs";
|
|
14
|
+
import c from "./index307.mjs";
|
|
15
|
+
import d from "./index308.mjs";
|
|
16
|
+
import R from "./index309.mjs";
|
|
17
|
+
import l from "./index310.mjs";
|
|
18
|
+
import E from "./index311.mjs";
|
|
19
|
+
import S from "./index312.mjs";
|
|
20
|
+
import h from "./index313.mjs";
|
|
21
|
+
import L from "./index314.mjs";
|
|
22
|
+
import T from "./index315.mjs";
|
|
23
|
+
import u from "./index316.mjs";
|
|
24
|
+
import I from "./index317.mjs";
|
|
25
|
+
import P from "./index318.mjs";
|
|
26
|
+
import U from "./index319.mjs";
|
|
27
|
+
import k from "./index320.mjs";
|
|
28
|
+
import n from "./index321.mjs";
|
|
29
|
+
import v from "./index322.mjs";
|
|
30
|
+
import K from "./index323.mjs";
|
|
31
|
+
import N from "./index324.mjs";
|
|
32
|
+
import z from "./index325.mjs";
|
|
33
|
+
import A from "./index326.mjs";
|
|
34
|
+
import B from "./index327.mjs";
|
|
35
35
|
var C = {};
|
|
36
36
|
C = {
|
|
37
37
|
"ar-AE": r,
|
package/index230.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index273.js"),w=require("./index174.js"),m=require("./index284.js");require("react");let d=null,L=new Set,u=new Map,a=!1,s=!1;function c(e,n){for(let t of L)t(e,n)}function y(e){return!(e.metaKey||!w.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function f(e){a=!0,y(e)&&(d="keyboard",c("keyboard",e))}function o(e){d="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(a=!0,c("pointer",e))}function l(e){m.isVirtualClick(e)&&(a=!0,d="virtual")}function b(e){e.target===window||e.target===document||(!a&&!s&&(d="virtual",c("virtual",e)),a=!1,s=!1)}function $(){a=!1,s=!0}function v(e){if(typeof window>"u"||u.get(i.getOwnerWindow(e)))return;const n=i.getOwnerWindow(e),t=i.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){a=!0,r.apply(this,arguments)},t.addEventListener("keydown",f,!0),t.addEventListener("keyup",f,!0),t.addEventListener("click",l,!0),n.addEventListener("focus",b,!0),n.addEventListener("blur",$,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),u.set(n,{focus:r})}const p=(e,n)=>{const t=i.getOwnerWindow(e),r=i.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),u.has(t)&&(t.HTMLElement.prototype.focus=u.get(t).focus,r.removeEventListener("keydown",f,!0),r.removeEventListener("keyup",f,!0),r.removeEventListener("click",l,!0),t.removeEventListener("focus",b,!0),t.removeEventListener("blur",$,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),u.delete(t))};function E(e){const n=i.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&E();function g(){return d}function k(e){d=e,c(e,null)}exports.addWindowFocusTracking=E;exports.getInteractionModality=g;exports.hasSetupGlobalListeners=u;exports.setInteractionModality=k;
|
package/index230.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getOwnerDocument as v, getOwnerWindow as s } from "./
|
|
1
|
+
import { getOwnerDocument as v, getOwnerWindow as s } from "./index273.mjs";
|
|
2
2
|
import { isMac as m } from "./index174.mjs";
|
|
3
|
-
import { isVirtualClick as L } from "./
|
|
3
|
+
import { isVirtualClick as L } from "./index284.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
let f = null, y = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
6
6
|
function u(e, n) {
|
package/index231.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./index170.js"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./index170.js"),i=require("./index152.js");function b(e,r,f){return r!=null&&e.compare(r)<0||f!=null&&e.compare(f)>0}function D(e,r,f,n,s){let t={};for(let c in r)t[c]=Math.floor(r[c]/2),t[c]>0&&r[c]%2===0&&t[c]--;let o=l(e,r,f).subtract(t);return a(e,o,r,f,n,s)}function l(e,r,f,n,s){let t=e;return r.years?t=i.startOfYear(e):r.months?t=i.startOfMonth(e):r.weeks&&(t=i.startOfWeek(e,f)),a(e,t,r,f,n,s)}function p(e,r,f,n,s){let t={...r};t.days?t.days--:t.weeks?t.weeks--:t.months?t.months--:t.years&&t.years--;let o=l(e,r,f).subtract(t);return a(e,o,r,f,n,s)}function a(e,r,f,n,s,t){if(s&&e.compare(s)>=0){let o=i.maxDate(r,l($.toCalendarDate(s),f,n));o&&(r=o)}if(t&&e.compare(t)<=0){let o=i.minDate(r,p($.toCalendarDate(t),f,n));o&&(r=o)}return r}function u(e,r,f){if(r){let n=i.maxDate(e,$.toCalendarDate(r));n&&(e=n)}if(f){let n=i.minDate(e,$.toCalendarDate(f));n&&(e=n)}return e}function y(e,r,f){if(!f)return e;for(;e.compare(r)>=0&&f(e);)e=e.subtract({days:1});return e.compare(r)>=0?e:null}exports.alignCenter=D;exports.alignEnd=p;exports.alignStart=l;exports.constrainStart=a;exports.constrainValue=u;exports.isInvalid=b;exports.previousAvailableDate=y;
|
package/index231.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toCalendarDate as o } from "./index170.mjs";
|
|
2
|
-
import { startOfYear as l, startOfMonth as x, startOfWeek as w, maxDate as i, minDate as b } from "./
|
|
2
|
+
import { startOfYear as l, startOfMonth as x, startOfWeek as w, maxDate as i, minDate as b } from "./index152.mjs";
|
|
3
3
|
function m(f, e, t) {
|
|
4
4
|
return e != null && f.compare(e) < 0 || t != null && f.compare(t) > 0;
|
|
5
5
|
}
|
package/index266.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./
|
|
1
|
+
"use strict";const e=require("./index348.js"),r=require("./index349.js"),t=require("./index350.js"),s=require("./index351.js"),u=require("./index352.js"),n=require("./index353.js"),i=require("./index354.js"),o=require("./index355.js"),c=require("./index356.js"),q=require("./index357.js"),R=require("./index358.js"),l=require("./index359.js"),E=require("./index360.js"),S=require("./index361.js"),h=require("./index362.js"),L=require("./index363.js"),T=require("./index364.js"),a=require("./index365.js"),I=require("./index366.js"),P=require("./index367.js"),U=require("./index368.js"),d=require("./index369.js"),f=require("./index370.js"),p=require("./index371.js"),k=require("./index372.js"),K=require("./index373.js"),N=require("./index374.js"),b=require("./index375.js"),v=require("./index376.js"),z=require("./index377.js"),A=require("./index378.js"),B=require("./index379.js"),C=require("./index380.js"),D=require("./index381.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
|
package/index266.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import r from "./
|
|
2
|
-
import o from "./
|
|
3
|
-
import e from "./
|
|
4
|
-
import t from "./
|
|
5
|
-
import p from "./
|
|
6
|
-
import $ from "./
|
|
7
|
-
import m from "./
|
|
8
|
-
import f from "./
|
|
9
|
-
import a from "./
|
|
10
|
-
import s from "./
|
|
11
|
-
import c from "./
|
|
12
|
-
import d from "./
|
|
13
|
-
import i from "./
|
|
14
|
-
import x from "./
|
|
15
|
-
import b from "./
|
|
16
|
-
import R from "./
|
|
17
|
-
import l from "./
|
|
18
|
-
import E from "./
|
|
19
|
-
import S from "./
|
|
20
|
-
import h from "./
|
|
21
|
-
import L from "./
|
|
22
|
-
import T from "./
|
|
23
|
-
import u from "./
|
|
24
|
-
import I from "./
|
|
25
|
-
import P from "./
|
|
26
|
-
import U from "./
|
|
27
|
-
import k from "./
|
|
28
|
-
import n from "./
|
|
29
|
-
import v from "./
|
|
30
|
-
import K from "./
|
|
31
|
-
import N from "./
|
|
32
|
-
import z from "./
|
|
33
|
-
import A from "./
|
|
34
|
-
import B from "./
|
|
1
|
+
import r from "./index348.mjs";
|
|
2
|
+
import o from "./index349.mjs";
|
|
3
|
+
import e from "./index350.mjs";
|
|
4
|
+
import t from "./index351.mjs";
|
|
5
|
+
import p from "./index352.mjs";
|
|
6
|
+
import $ from "./index353.mjs";
|
|
7
|
+
import m from "./index354.mjs";
|
|
8
|
+
import f from "./index355.mjs";
|
|
9
|
+
import a from "./index356.mjs";
|
|
10
|
+
import s from "./index357.mjs";
|
|
11
|
+
import c from "./index358.mjs";
|
|
12
|
+
import d from "./index359.mjs";
|
|
13
|
+
import i from "./index360.mjs";
|
|
14
|
+
import x from "./index361.mjs";
|
|
15
|
+
import b from "./index362.mjs";
|
|
16
|
+
import R from "./index363.mjs";
|
|
17
|
+
import l from "./index364.mjs";
|
|
18
|
+
import E from "./index365.mjs";
|
|
19
|
+
import S from "./index366.mjs";
|
|
20
|
+
import h from "./index367.mjs";
|
|
21
|
+
import L from "./index368.mjs";
|
|
22
|
+
import T from "./index369.mjs";
|
|
23
|
+
import u from "./index370.mjs";
|
|
24
|
+
import I from "./index371.mjs";
|
|
25
|
+
import P from "./index372.mjs";
|
|
26
|
+
import U from "./index373.mjs";
|
|
27
|
+
import k from "./index374.mjs";
|
|
28
|
+
import n from "./index375.mjs";
|
|
29
|
+
import v from "./index376.mjs";
|
|
30
|
+
import K from "./index377.mjs";
|
|
31
|
+
import N from "./index378.mjs";
|
|
32
|
+
import z from "./index379.mjs";
|
|
33
|
+
import A from "./index380.mjs";
|
|
34
|
+
import B from "./index381.mjs";
|
|
35
35
|
var C = {};
|
|
36
36
|
C = {
|
|
37
37
|
"ar-AE": r,
|
package/index269.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}exports._=i;
|
package/index269.mjs
CHANGED
|
@@ -1,133 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function o(e, n) {
|
|
5
|
-
e === void 0 && (e = {}), n === void 0 && (n = {}), Object.keys(n).forEach((t) => {
|
|
6
|
-
typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
const u = {
|
|
10
|
-
body: {},
|
|
11
|
-
addEventListener() {
|
|
12
|
-
},
|
|
13
|
-
removeEventListener() {
|
|
14
|
-
},
|
|
15
|
-
activeElement: {
|
|
16
|
-
blur() {
|
|
17
|
-
},
|
|
18
|
-
nodeName: ""
|
|
19
|
-
},
|
|
20
|
-
querySelector() {
|
|
21
|
-
return null;
|
|
22
|
-
},
|
|
23
|
-
querySelectorAll() {
|
|
24
|
-
return [];
|
|
25
|
-
},
|
|
26
|
-
getElementById() {
|
|
27
|
-
return null;
|
|
28
|
-
},
|
|
29
|
-
createEvent() {
|
|
30
|
-
return {
|
|
31
|
-
initEvent() {
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
createElement() {
|
|
36
|
-
return {
|
|
37
|
-
children: [],
|
|
38
|
-
childNodes: [],
|
|
39
|
-
style: {},
|
|
40
|
-
setAttribute() {
|
|
41
|
-
},
|
|
42
|
-
getElementsByTagName() {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
createElementNS() {
|
|
48
|
-
return {};
|
|
49
|
-
},
|
|
50
|
-
importNode() {
|
|
51
|
-
return null;
|
|
52
|
-
},
|
|
53
|
-
location: {
|
|
54
|
-
hash: "",
|
|
55
|
-
host: "",
|
|
56
|
-
hostname: "",
|
|
57
|
-
href: "",
|
|
58
|
-
origin: "",
|
|
59
|
-
pathname: "",
|
|
60
|
-
protocol: "",
|
|
61
|
-
search: ""
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
function c() {
|
|
65
|
-
const e = typeof document < "u" ? document : {};
|
|
66
|
-
return o(e, u), e;
|
|
67
|
-
}
|
|
68
|
-
const i = {
|
|
69
|
-
document: u,
|
|
70
|
-
navigator: {
|
|
71
|
-
userAgent: ""
|
|
72
|
-
},
|
|
73
|
-
location: {
|
|
74
|
-
hash: "",
|
|
75
|
-
host: "",
|
|
76
|
-
hostname: "",
|
|
77
|
-
href: "",
|
|
78
|
-
origin: "",
|
|
79
|
-
pathname: "",
|
|
80
|
-
protocol: "",
|
|
81
|
-
search: ""
|
|
82
|
-
},
|
|
83
|
-
history: {
|
|
84
|
-
replaceState() {
|
|
85
|
-
},
|
|
86
|
-
pushState() {
|
|
87
|
-
},
|
|
88
|
-
go() {
|
|
89
|
-
},
|
|
90
|
-
back() {
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
CustomEvent: function() {
|
|
94
|
-
return this;
|
|
95
|
-
},
|
|
96
|
-
addEventListener() {
|
|
97
|
-
},
|
|
98
|
-
removeEventListener() {
|
|
99
|
-
},
|
|
100
|
-
getComputedStyle() {
|
|
101
|
-
return {
|
|
102
|
-
getPropertyValue() {
|
|
103
|
-
return "";
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
Image() {
|
|
108
|
-
},
|
|
109
|
-
Date() {
|
|
110
|
-
},
|
|
111
|
-
screen: {},
|
|
112
|
-
setTimeout() {
|
|
113
|
-
},
|
|
114
|
-
clearTimeout() {
|
|
115
|
-
},
|
|
116
|
-
matchMedia() {
|
|
117
|
-
return {};
|
|
118
|
-
},
|
|
119
|
-
requestAnimationFrame(e) {
|
|
120
|
-
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
121
|
-
},
|
|
122
|
-
cancelAnimationFrame(e) {
|
|
123
|
-
typeof setTimeout > "u" || clearTimeout(e);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
function s() {
|
|
127
|
-
const e = typeof window < "u" ? window : {};
|
|
128
|
-
return o(e, i), e;
|
|
1
|
+
function a(e, t) {
|
|
2
|
+
if (t.has(e))
|
|
3
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
129
4
|
}
|
|
130
5
|
export {
|
|
131
|
-
|
|
132
|
-
c as g
|
|
6
|
+
a as _
|
|
133
7
|
};
|
package/index270.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index283.js"),a=require("./index172.js"),n=require("react");function o(c){let[u,l]=n.useState(c),e=n.useRef(null),r=f.useEffectEvent(()=>{if(!e.current)return;let t=e.current.next();if(t.done){e.current=null;return}u===t.value?r():l(t.value)});a.useLayoutEffect(()=>{e.current&&r()});let s=f.useEffectEvent(t=>{e.current=t(u),r()});return[u,s]}exports.useValueEffect=o;
|
package/index270.mjs
CHANGED
|
@@ -1,193 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} catch {
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
delete t[n];
|
|
14
|
-
} catch {
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function M(e, t) {
|
|
19
|
-
return t === void 0 && (t = 0), setTimeout(e, t);
|
|
20
|
-
}
|
|
21
|
-
function C() {
|
|
22
|
-
return Date.now();
|
|
23
|
-
}
|
|
24
|
-
function T(e) {
|
|
25
|
-
const t = c();
|
|
26
|
-
let n;
|
|
27
|
-
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
|
|
28
|
-
}
|
|
29
|
-
function v(e, t) {
|
|
30
|
-
t === void 0 && (t = "x");
|
|
31
|
-
const n = c();
|
|
32
|
-
let r, i, s;
|
|
33
|
-
const l = T(e);
|
|
34
|
-
return n.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
35
|
-
}
|
|
36
|
-
function p(e) {
|
|
37
|
-
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
38
|
-
}
|
|
39
|
-
function b(e) {
|
|
40
|
-
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
41
|
-
}
|
|
42
|
-
function w() {
|
|
43
|
-
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
|
44
|
-
for (let n = 1; n < arguments.length; n += 1) {
|
|
45
|
-
const r = n < 0 || arguments.length <= n ? void 0 : arguments[n];
|
|
46
|
-
if (r != null && !b(r)) {
|
|
47
|
-
const i = Object.keys(Object(r)).filter((s) => t.indexOf(s) < 0);
|
|
48
|
-
for (let s = 0, l = i.length; s < l; s += 1) {
|
|
49
|
-
const o = i[s], a = Object.getOwnPropertyDescriptor(r, o);
|
|
50
|
-
a !== void 0 && a.enumerable && (p(e[o]) && p(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o]) : !p(e[o]) && p(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o])) : e[o] = r[o]);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return e;
|
|
55
|
-
}
|
|
56
|
-
function O(e, t, n) {
|
|
57
|
-
e.style.setProperty(t, n);
|
|
58
|
-
}
|
|
59
|
-
function P(e) {
|
|
60
|
-
let {
|
|
61
|
-
swiper: t,
|
|
62
|
-
targetPosition: n,
|
|
63
|
-
side: r
|
|
64
|
-
} = e;
|
|
65
|
-
const i = c(), s = -t.translate;
|
|
66
|
-
let l = null, o;
|
|
67
|
-
const a = t.params.speed;
|
|
68
|
-
t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID);
|
|
69
|
-
const d = n > s ? "next" : "prev", g = (f, m) => d === "next" && f >= m || d === "prev" && f <= m, h = () => {
|
|
70
|
-
o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
|
|
71
|
-
const f = Math.max(Math.min((o - l) / a, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
72
|
-
let u = s + m * (n - s);
|
|
73
|
-
if (g(u, n) && (u = n), t.wrapperEl.scrollTo({
|
|
74
|
-
[r]: u
|
|
75
|
-
}), g(u, n)) {
|
|
76
|
-
t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
77
|
-
t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
|
|
78
|
-
[r]: u
|
|
79
|
-
});
|
|
80
|
-
}), i.cancelAnimationFrame(t.cssModeFrameID);
|
|
1
|
+
import { useEffectEvent as u } from "./index283.mjs";
|
|
2
|
+
import { useLayoutEffect as l } from "./index172.mjs";
|
|
3
|
+
import { useState as o, useRef as s } from "react";
|
|
4
|
+
function p(a) {
|
|
5
|
+
let [f, c] = o(a), e = s(null), r = u(() => {
|
|
6
|
+
if (!e.current) return;
|
|
7
|
+
let t = e.current.next();
|
|
8
|
+
if (t.done) {
|
|
9
|
+
e.current = null;
|
|
81
10
|
return;
|
|
82
11
|
}
|
|
83
|
-
t.
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
function L(e, t) {
|
|
96
|
-
const n = t.contains(e);
|
|
97
|
-
return !n && t instanceof HTMLSlotElement ? [...t.assignedElements()].includes(e) : n;
|
|
98
|
-
}
|
|
99
|
-
function _(e) {
|
|
100
|
-
try {
|
|
101
|
-
console.warn(e);
|
|
102
|
-
return;
|
|
103
|
-
} catch {
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function A(e, t) {
|
|
107
|
-
t === void 0 && (t = []);
|
|
108
|
-
const n = document.createElement(e);
|
|
109
|
-
return n.classList.add(...Array.isArray(t) ? t : S(t)), n;
|
|
110
|
-
}
|
|
111
|
-
function k(e) {
|
|
112
|
-
const t = c(), n = y(), r = e.getBoundingClientRect(), i = n.body, s = e.clientTop || i.clientTop || 0, l = e.clientLeft || i.clientLeft || 0, o = e === t ? t.scrollY : e.scrollTop, a = e === t ? t.scrollX : e.scrollLeft;
|
|
113
|
-
return {
|
|
114
|
-
top: r.top + o - s,
|
|
115
|
-
left: r.left + a - l
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function D(e, t) {
|
|
119
|
-
const n = [];
|
|
120
|
-
for (; e.previousElementSibling; ) {
|
|
121
|
-
const r = e.previousElementSibling;
|
|
122
|
-
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
123
|
-
}
|
|
124
|
-
return n;
|
|
125
|
-
}
|
|
126
|
-
function I(e, t) {
|
|
127
|
-
const n = [];
|
|
128
|
-
for (; e.nextElementSibling; ) {
|
|
129
|
-
const r = e.nextElementSibling;
|
|
130
|
-
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
131
|
-
}
|
|
132
|
-
return n;
|
|
133
|
-
}
|
|
134
|
-
function W(e, t) {
|
|
135
|
-
return c().getComputedStyle(e, null).getPropertyValue(t);
|
|
136
|
-
}
|
|
137
|
-
function H(e) {
|
|
138
|
-
let t = e, n;
|
|
139
|
-
if (t) {
|
|
140
|
-
for (n = 0; (t = t.previousSibling) !== null; )
|
|
141
|
-
t.nodeType === 1 && (n += 1);
|
|
142
|
-
return n;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
function K(e, t) {
|
|
146
|
-
const n = [];
|
|
147
|
-
let r = e.parentElement;
|
|
148
|
-
for (; r; )
|
|
149
|
-
t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
|
|
150
|
-
return n;
|
|
151
|
-
}
|
|
152
|
-
function q(e, t) {
|
|
153
|
-
function n(r) {
|
|
154
|
-
r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
|
|
155
|
-
}
|
|
156
|
-
t && e.addEventListener("transitionend", n);
|
|
157
|
-
}
|
|
158
|
-
function R(e, t, n) {
|
|
159
|
-
const r = c();
|
|
160
|
-
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
161
|
-
}
|
|
162
|
-
function V(e) {
|
|
163
|
-
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
164
|
-
}
|
|
165
|
-
function B(e) {
|
|
166
|
-
return (t) => Math.abs(t) > 0 && e.browser && e.browser.need3dFix && Math.abs(t) % 90 === 0 ? t + 1e-3 : t;
|
|
12
|
+
f === t.value ? r() : c(t.value);
|
|
13
|
+
});
|
|
14
|
+
l(() => {
|
|
15
|
+
e.current && r();
|
|
16
|
+
});
|
|
17
|
+
let n = u((t) => {
|
|
18
|
+
e.current = t(f), r();
|
|
19
|
+
});
|
|
20
|
+
return [
|
|
21
|
+
f,
|
|
22
|
+
n
|
|
23
|
+
];
|
|
167
24
|
}
|
|
168
25
|
export {
|
|
169
|
-
|
|
170
|
-
k as b,
|
|
171
|
-
A as c,
|
|
172
|
-
C as d,
|
|
173
|
-
j as e,
|
|
174
|
-
R as f,
|
|
175
|
-
F as g,
|
|
176
|
-
H as h,
|
|
177
|
-
S as i,
|
|
178
|
-
v as j,
|
|
179
|
-
q as k,
|
|
180
|
-
p as l,
|
|
181
|
-
V as m,
|
|
182
|
-
M as n,
|
|
183
|
-
B as o,
|
|
184
|
-
W as p,
|
|
185
|
-
I as q,
|
|
186
|
-
D as r,
|
|
187
|
-
O as s,
|
|
188
|
-
P as t,
|
|
189
|
-
_ as u,
|
|
190
|
-
L as v,
|
|
191
|
-
w,
|
|
192
|
-
E as x
|
|
26
|
+
p as useValueEffect
|
|
193
27
|
};
|
package/index271.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),u={prefix:String(Math.round(Math.random()*1e10)),current:0},d=e.createContext(u),l=e.createContext(!1);let f=!!(typeof window<"u"&&window.document&&window.document.createElement),s=new WeakMap;function v(r=!1){let t=e.useContext(d),n=e.useRef(null);if(n.current===null&&!r){var a,c;let o=(c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||c===void 0||(a=c.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(o){let i=s.get(o);i==null?s.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,s.delete(o))}n.current=++t.current}return n.current}function S(r){let t=e.useContext(d);t===u&&!f&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=v(!!r),a=t===u&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return r||`${a}-${n}`}function p(r){let t=e.useId(),[n]=e.useState($()),a=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${u.prefix}`;return r||`${a}-${t}`}const b=typeof e.useId=="function"?p:S;function x(){return!1}function m(){return!0}function g(r){return()=>{}}function $(){return typeof e.useSyncExternalStore=="function"?e.useSyncExternalStore(g,x,m):e.useContext(l)}exports.useIsSSR=$;exports.useSSRSafeId=b;
|
package/index271.mjs
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import a, { useContext as s, useState as f, useRef as l } from "react";
|
|
2
|
+
const c = {
|
|
3
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
4
|
+
current: 0
|
|
5
|
+
}, $ = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
|
|
6
|
+
let v = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function S(t = !1) {
|
|
8
|
+
let e = s($), r = l(null);
|
|
9
|
+
if (r.current === null && !t) {
|
|
10
|
+
var n, u;
|
|
11
|
+
let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
12
|
+
if (o) {
|
|
13
|
+
let i = d.get(o);
|
|
14
|
+
i == null ? d.set(o, {
|
|
15
|
+
id: e.current,
|
|
16
|
+
state: o.memoizedState
|
|
17
|
+
}) : o.memoizedState !== i.state && (e.current = i.id, d.delete(o));
|
|
7
18
|
}
|
|
8
|
-
|
|
19
|
+
r.current = ++e.current;
|
|
20
|
+
}
|
|
21
|
+
return r.current;
|
|
22
|
+
}
|
|
23
|
+
function b(t) {
|
|
24
|
+
let e = s($);
|
|
25
|
+
e === c && !v && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
26
|
+
let r = S(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
27
|
+
return t || `${n}-${r}`;
|
|
28
|
+
}
|
|
29
|
+
function x(t) {
|
|
30
|
+
let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
|
|
31
|
+
return t || `${n}-${e}`;
|
|
32
|
+
}
|
|
33
|
+
const C = typeof a.useId == "function" ? x : b;
|
|
34
|
+
function m() {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
function w() {
|
|
38
|
+
return !0;
|
|
39
|
+
}
|
|
40
|
+
function g(t) {
|
|
41
|
+
return () => {
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function y() {
|
|
45
|
+
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : s(p);
|
|
9
46
|
}
|
|
10
47
|
export {
|
|
11
|
-
|
|
48
|
+
y as useIsSSR,
|
|
49
|
+
C as useSSRSafeId
|
|
12
50
|
};
|