@rpcbase/ui 0.234.0 → 0.235.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index151.js +4 -4
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +6 -6
- package/dist/index167.js +4 -4
- package/dist/index169.js +1 -1
- package/dist/index172.js +9 -9
- package/dist/index175.js +1 -1
- package/dist/index176.js +4 -4
- package/dist/index178.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index184.js +12 -12
- package/dist/index187.js +6 -6
- package/dist/index189.js +3 -3
- package/dist/index190.js +1 -1
- package/dist/index193.js +3 -3
- package/dist/index194.js +5 -5
- package/dist/index256.js +20 -14
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +58 -146
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +6 -30
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +46 -44
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +4 -12
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +28 -43
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +14 -93
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -86
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +21 -105
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +50 -51
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +25 -11
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +41 -37
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +39 -8
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +45 -117
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +20 -17
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +69 -14
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +17 -3
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -36
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +27 -20
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +13 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +18 -8
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +35 -18
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +260 -26
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +277 -15
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +69 -20
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +92 -59
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +83 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +3 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +27 -48
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +17 -4
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +35 -30
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -15
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +3 -5
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +25 -20
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +26 -49
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +4 -26
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +76 -39
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +265 -35
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -45
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +10 -20
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +25 -70
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +16 -17
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +125 -11
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +5 -27
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +39 -12
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +63 -16
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +13 -36
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +7 -262
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -278
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -68
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +10 -99
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +7 -83
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +133 -3
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +399 -29
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +52 -16
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +12 -35
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +11 -16
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +13 -3
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +150 -22
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +27 -25
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +10 -4
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +44 -74
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +10 -268
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +44 -11
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +95 -10
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +86 -25
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +104 -15
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +50 -123
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +11 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +34 -37
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +8 -65
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +116 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +17 -7
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +15 -5
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +3 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +36 -10
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +20 -7
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +9 -133
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +7 -398
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +8 -52
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +11 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +8 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +13 -8
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +3 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +3 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +16 -12
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +19 -3
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +28 -3
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +15 -16
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +2 -2
- package/dist/index347.js +8 -8
- package/dist/index348.js +4 -4
- package/dist/index349.js +3 -3
- package/dist/index350.js +5 -5
- package/dist/index352.js +1 -1
- package/dist/index362.js +10 -19
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +17 -4
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +5 -11
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -17
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +20 -5
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +43 -19
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +13 -40
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +4 -17
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +200 -4
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +74 -197
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +20 -77
- package/dist/index372.js.map +1 -1
- package/dist/index374.js +3 -3
- package/dist/index375.js +1 -1
- package/dist/index376.js +3 -3
- package/dist/index378.js +2 -2
- package/dist/index380.js +1 -1
- package/dist/index381.js +2 -2
- package/dist/index407.js +1 -1
- package/dist/index417.js +1 -1
- package/dist/index418.js +1 -1
- package/dist/index421.js +1 -1
- package/dist/index422.js +1 -1
- package/dist/index427.js +2 -2
- package/dist/index429.js +2 -2
- package/dist/index44.js +1 -1
- package/dist/index45.js +2 -2
- package/dist/index49.js +28 -28
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +17 -17
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index70.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index74.js +2 -6
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -8
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +5 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +6 -2
- package/dist/index78.js.map +1 -1
- package/dist/index8.js +533 -698
- package/dist/index8.js.map +1 -1
- package/package.json +1 -1
package/dist/index338.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
process.env.NODE_ENV !== "production"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
|
|
9
|
-
return e;
|
|
1
|
+
let n;
|
|
2
|
+
process.env.NODE_ENV !== "production" && (n = /* @__PURE__ */ new Set());
|
|
3
|
+
function s(...o) {
|
|
4
|
+
if (process.env.NODE_ENV !== "production") {
|
|
5
|
+
const e = o.join(" ");
|
|
6
|
+
n.has(e) || (n.add(e), console.warn(`Base UI: ${e}`));
|
|
7
|
+
}
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
s as useSelectGroupContext
|
|
10
|
+
s as warn
|
|
14
11
|
};
|
|
15
12
|
//# sourceMappingURL=index338.js.map
|
package/dist/index338.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index338.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index338.js","sources":["../../../node_modules/@base-ui/utils/esm/warn.js"],"sourcesContent":["let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function warn(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.warn(`Base UI: ${messageKey}`);\n }\n }\n}"],"names":["set","warn","messages","messageKey"],"mappings":"AAAA,IAAIA;AACA,QAAQ,IAAI,aAAa,iBAC3BA,IAAM,oBAAI,IAAG;AAER,SAASC,KAAQC,GAAU;AAChC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAaD,EAAS,KAAK,GAAG;AACpC,IAAKF,EAAI,IAAIG,CAAU,MACrBH,EAAI,IAAIG,CAAU,GAClB,QAAQ,KAAK,YAAYA,CAAU,EAAE;AAAA,EAEzC;AACF;","x_google_ignoreList":[0]}
|
package/dist/index339.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
function i(r, n) {
|
|
2
|
+
const o = {};
|
|
3
|
+
for (const t in r) {
|
|
4
|
+
const e = r[t];
|
|
5
|
+
if (n?.hasOwnProperty(t)) {
|
|
6
|
+
const s = n[t](e);
|
|
7
|
+
s != null && Object.assign(o, s);
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
e === !0 ? o[`data-${t.toLowerCase()}`] = "" : e && (o[`data-${t.toLowerCase()}`] = e.toString());
|
|
11
|
+
}
|
|
12
|
+
return o;
|
|
8
13
|
}
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
i as getStateAttributesProps
|
|
11
16
|
};
|
|
12
17
|
//# sourceMappingURL=index339.js.map
|
package/dist/index339.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index339.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index339.js","sources":["../../../node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js"],"sourcesContent":["export function getStateAttributesProps(state, customMapping) {\n const props = {};\n\n /* eslint-disable-next-line guard-for-in */\n for (const key in state) {\n const value = state[key];\n if (customMapping?.hasOwnProperty(key)) {\n const customProps = customMapping[key](value);\n if (customProps != null) {\n Object.assign(props, customProps);\n }\n continue;\n }\n if (value === true) {\n props[`data-${key.toLowerCase()}`] = '';\n } else if (value) {\n props[`data-${key.toLowerCase()}`] = value.toString();\n }\n }\n return props;\n}"],"names":["getStateAttributesProps","state","customMapping","props","key","value","customProps"],"mappings":"AAAO,SAASA,EAAwBC,GAAOC,GAAe;AAC5D,QAAMC,IAAQ,CAAA;AAGd,aAAWC,KAAOH,GAAO;AACvB,UAAMI,IAAQJ,EAAMG,CAAG;AACvB,QAAIF,GAAe,eAAeE,CAAG,GAAG;AACtC,YAAME,IAAcJ,EAAcE,CAAG,EAAEC,CAAK;AAC5C,MAAIC,KAAe,QACjB,OAAO,OAAOH,GAAOG,CAAW;AAElC;AAAA,IACF;AACA,IAAID,MAAU,KACZF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAI,KAC5BC,MACTF,EAAM,QAAQC,EAAI,YAAW,CAAE,EAAE,IAAIC,EAAM,SAAQ;AAAA,EAEvD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
|
package/dist/index340.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
function n
|
|
2
|
-
|
|
3
|
-
return e;
|
|
4
|
-
if (!e && r)
|
|
5
|
-
return r;
|
|
6
|
-
if (e || r)
|
|
7
|
-
return {
|
|
8
|
-
...e,
|
|
9
|
-
...r
|
|
10
|
-
};
|
|
1
|
+
function t(n, o) {
|
|
2
|
+
return typeof n == "function" ? n(o) : n;
|
|
11
3
|
}
|
|
12
4
|
export {
|
|
13
|
-
|
|
5
|
+
t as resolveClassName
|
|
14
6
|
};
|
|
15
7
|
//# sourceMappingURL=index340.js.map
|
package/dist/index340.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index340.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index340.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveClassName.js"],"sourcesContent":["/**\n * If the provided className is a string, it will be returned as is.\n * Otherwise, the function will call the className function with the state as the first argument.\n *\n * @param className\n * @param state\n */\nexport function resolveClassName(className, state) {\n return typeof className === 'function' ? className(state) : className;\n}"],"names":["resolveClassName","className","state"],"mappings":"AAOO,SAASA,EAAiBC,GAAWC,GAAO;AACjD,SAAO,OAAOD,KAAc,aAAaA,EAAUC,CAAK,IAAID;AAC9D;","x_google_ignoreList":[0]}
|
package/dist/index341.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function s(...o) {
|
|
4
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5
|
-
const e = o.join(" ");
|
|
6
|
-
n.has(e) || (n.add(e), console.warn(`Base UI: ${e}`));
|
|
7
|
-
}
|
|
1
|
+
function e(n, o) {
|
|
2
|
+
return typeof n == "function" ? n(o) : n;
|
|
8
3
|
}
|
|
9
4
|
export {
|
|
10
|
-
|
|
5
|
+
e as resolveStyle
|
|
11
6
|
};
|
|
12
7
|
//# sourceMappingURL=index341.js.map
|
package/dist/index341.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index341.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index341.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveStyle.js"],"sourcesContent":["/**\n * If the provided style is an object, it will be returned as is.\n * Otherwise, the function will call the style function with the state as the first argument.\n *\n * @param style\n * @param state\n */\nexport function resolveStyle(style, state) {\n return typeof style === 'function' ? style(state) : style;\n}"],"names":["resolveStyle","style","state"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAO;AACzC,SAAO,OAAOD,KAAU,aAAaA,EAAMC,CAAK,IAAID;AACtD;","x_google_ignoreList":[0]}
|
package/dist/index342.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { SafeReact as f } from "./index356.js";
|
|
3
|
+
let o = 0;
|
|
4
|
+
function l(u, t = "mui") {
|
|
5
|
+
const [e, s] = n.useState(u), c = u || e;
|
|
6
|
+
return n.useEffect(() => {
|
|
7
|
+
e == null && (o += 1, s(`${t}-${o}`));
|
|
8
|
+
}, [e, t]), c;
|
|
9
|
+
}
|
|
10
|
+
const a = f.useId;
|
|
11
|
+
function I(u, t) {
|
|
12
|
+
if (a !== void 0) {
|
|
13
|
+
const e = a();
|
|
14
|
+
return u ?? (t ? `${t}-${e}` : e);
|
|
11
15
|
}
|
|
12
|
-
return
|
|
16
|
+
return l(u, t);
|
|
13
17
|
}
|
|
14
18
|
export {
|
|
15
|
-
|
|
19
|
+
I as useId
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=index342.js.map
|
package/dist/index342.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index342.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index342.js","sources":["../../../node_modules/@base-ui/utils/esm/useId.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.js\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}"],"names":["globalId","useGlobalId","idOverride","prefix","defaultId","setDefaultId","React","id","maybeReactUseId","SafeReact","useId","reactId"],"mappings":";;AAIA,IAAIA,IAAW;AAGf,SAASC,EAAYC,GAAYC,IAAS,OAAO;AAC/C,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAM,SAASJ,CAAU,GACrDK,IAAKL,KAAcE;AACzB,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAIF,KAAa,SAKfJ,KAAY,GACZK,EAAa,GAAGF,CAAM,IAAIH,CAAQ,EAAE;AAAA,EAExC,GAAG,CAACI,GAAWD,CAAM,CAAC,GACfI;AACT;AACA,MAAMC,IAAkBC,EAAU;AAQ3B,SAASC,EAAMR,GAAYC,GAAQ;AAExC,MAAIK,MAAoB,QAAW;AACjC,UAAMG,IAAUH,EAAe;AAC/B,WAAON,MAAeC,IAAS,GAAGA,CAAM,IAAIQ,CAAO,KAAKA;AAAA,EAC1D;AAIA,SAAOV,EAAYC,GAAYC,CAAM;AACvC;","x_google_ignoreList":[0]}
|
package/dist/index343.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import c, { getCountryCallingCode as b } from "./index164.js";
|
|
2
|
+
import g from "./index331.js";
|
|
3
|
+
import C from "./index332.js";
|
|
4
|
+
import h from "./index314.js";
|
|
5
|
+
function P(i, r, l, N, n) {
|
|
6
|
+
var e = r || l ? b(r || l, n) : N;
|
|
7
|
+
if (i.indexOf(e) === 0) {
|
|
8
|
+
n = new c(n), n.selectNumberingPlan(r || l, e);
|
|
9
|
+
var o = i.slice(e.length), f = C(o, r, n), m = f.nationalNumber, u = C(i, r, n), t = u.nationalNumber;
|
|
10
|
+
if (!g(t, n.nationalNumberPattern()) && g(m, n.nationalNumberPattern()) || h(t, r, n) === "TOO_LONG")
|
|
11
|
+
return {
|
|
12
|
+
countryCallingCode: e,
|
|
13
|
+
number: o
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
number: i
|
|
18
|
+
};
|
|
3
19
|
}
|
|
4
20
|
export {
|
|
5
|
-
|
|
21
|
+
P as default
|
|
6
22
|
};
|
|
7
23
|
//# sourceMappingURL=index343.js.map
|
package/dist/index343.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index343.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index343.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string} [country] — Exact country of the phone number.\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {\n var countryCallingCode = country || defaultCountry ? getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber;\n\n // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, country, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n return {\n number: number\n };\n}\n//# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map"],"names":["extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","number","country","defaultCountry","defaultCallingCode","metadata","countryCallingCode","getCountryCallingCode","Metadata","possibleShorterNumber","_extractNationalNumbe","extractNationalNumber","possibleShorterNationalNumber","_extractNationalNumbe2","nationalNumber","matchesEntirely","checkNumberLength"],"mappings":";;;;AAgBe,SAASA,EAAgEC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AACrJ,MAAIC,IAAqBJ,KAAWC,IAAiBI,EAAsBL,KAAWC,GAAgBE,CAAQ,IAAID;AAClH,MAAIH,EAAO,QAAQK,CAAkB,MAAM,GAAG;AAC5C,IAAAD,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBH,KAAWC,GAAgBG,CAAkB;AAC1E,QAAIG,IAAwBR,EAAO,MAAMK,EAAmB,MAAM,GAC9DI,IAAwBC,EAAsBF,GAAuBP,GAASG,CAAQ,GACxFO,IAAgCF,EAAsB,gBACpDG,IAAyBF,EAAsBV,GAAQC,GAASG,CAAQ,GAC1ES,IAAiBD,EAAuB;AAU1C,QAAI,CAACE,EAAgBD,GAAgBT,EAAS,sBAAqB,CAAE,KAAKU,EAAgBH,GAA+BP,EAAS,sBAAqB,CAAE,KAAKW,EAAkBF,GAAgBZ,GAASG,CAAQ,MAAM;AACrN,aAAO;AAAA,QACL,oBAAoBC;AAAA,QACpB,QAAQG;AAAA,MAChB;AAAA,EAEE;AACA,SAAO;AAAA,IACL,QAAQR;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index344.js
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function F(l, i) {
|
|
2
|
+
if (l && i.numberingPlan.nationalPrefixForParsing()) {
|
|
3
|
+
var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
|
|
4
|
+
if (n) {
|
|
5
|
+
var r, P, v = n.length - 1, e = v > 0 && n[v];
|
|
6
|
+
if (i.nationalPrefixTransformRule() && e)
|
|
7
|
+
r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
|
|
8
|
+
else {
|
|
9
|
+
var o = n[0];
|
|
10
|
+
r = l.slice(o.length), e && (P = n[1]);
|
|
11
|
+
}
|
|
12
|
+
var f;
|
|
13
|
+
if (e) {
|
|
14
|
+
var s = l.indexOf(n[1]), a = l.slice(0, s);
|
|
15
|
+
a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
|
|
16
|
+
} else
|
|
17
|
+
f = n[0];
|
|
18
|
+
return {
|
|
19
|
+
nationalNumber: r,
|
|
20
|
+
nationalPrefix: f,
|
|
21
|
+
carrierCode: P
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
nationalNumber: l
|
|
27
|
+
};
|
|
3
28
|
}
|
|
4
29
|
export {
|
|
5
|
-
|
|
30
|
+
F as default
|
|
6
31
|
};
|
|
7
32
|
//# sourceMappingURL=index344.js.map
|
package/dist/index344.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index344.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index344.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
|
package/dist/index345.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import I from "./index164.js";
|
|
2
|
+
import { VALID_DIGITS as l } from "./index160.js";
|
|
3
|
+
var c = new RegExp("([" + l + "])");
|
|
4
|
+
function D(t, r, f, n) {
|
|
5
|
+
if (r) {
|
|
6
|
+
var a = new I(n);
|
|
7
|
+
a.selectNumberingPlan(r, f);
|
|
8
|
+
var i = new RegExp(a.IDDPrefix());
|
|
9
|
+
if (t.search(i) === 0) {
|
|
10
|
+
t = t.slice(t.match(i)[0].length);
|
|
11
|
+
var e = t.match(c);
|
|
12
|
+
if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
|
-
return l(u, t);
|
|
17
16
|
}
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
D as default
|
|
20
19
|
};
|
|
21
20
|
//# sourceMappingURL=index345.js.map
|
package/dist/index345.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index345.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index345.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n }\n // Check if the number is IDD-prefixed.\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"names":["CAPTURING_DIGIT_PATTERN","VALID_DIGITS","stripIddPrefix","number","country","callingCode","metadata","countryMetadata","Metadata","IDDPrefixPattern","matchedGroups"],"mappings":";;AAEA,IAAIA,IAA0B,IAAI,OAAO,OAAOC,IAAe,IAAI;AACpD,SAASC,EAAeC,GAAQC,GAASC,GAAaC,GAAU;AAC7E,MAAKF,GAIL;AAAA,QAAIG,IAAkB,IAAIC,EAASF,CAAQ;AAC3C,IAAAC,EAAgB,oBAAoBH,GAASC,CAAW;AACxD,QAAII,IAAmB,IAAI,OAAOF,EAAgB,UAAS,CAAE;AAC7D,QAAIJ,EAAO,OAAOM,CAAgB,MAAM,GAIxC;AAAA,MAAAN,IAASA,EAAO,MAAMA,EAAO,MAAMM,CAAgB,EAAE,CAAC,EAAE,MAAM;AAK9D,UAAIC,IAAgBP,EAAO,MAAMH,CAAuB;AACxD,UAAI,EAAAU,KAAiBA,EAAc,CAAC,KAAK,QAAQA,EAAc,CAAC,EAAE,SAAS,KACrEA,EAAc,CAAC,MAAM;AAI3B,eAAOP;AAAA;AAAA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index346.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as l from "react-dom";
|
|
2
|
-
import { useAnimationFrame as b } from "./
|
|
3
|
-
import { useStableCallback as A } from "./
|
|
2
|
+
import { useAnimationFrame as b } from "./index302.js";
|
|
3
|
+
import { useStableCallback as A } from "./index262.js";
|
|
4
4
|
import { resolveRef as d } from "./index383.js";
|
|
5
5
|
import { TransitionStatusDataAttributes as h } from "./index174.js";
|
|
6
6
|
function y(c, f = !1, m = !0) {
|
package/dist/index347.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getWindow as d, isOverflowElement as m } from "./
|
|
2
|
-
import { addEventListener as T } from "./
|
|
3
|
-
import { isIOS as E, isWebKit as H } from "./
|
|
4
|
-
import { ownerDocument as a } from "./
|
|
5
|
-
import { useIsoLayoutEffect as z } from "./
|
|
6
|
-
import { Timeout as k } from "./
|
|
7
|
-
import { AnimationFrame as j } from "./
|
|
8
|
-
import { NOOP as F } from "./
|
|
1
|
+
import { getWindow as d, isOverflowElement as m } from "./index309.js";
|
|
2
|
+
import { addEventListener as T } from "./index300.js";
|
|
3
|
+
import { isIOS as E, isWebKit as H } from "./index301.js";
|
|
4
|
+
import { ownerDocument as a } from "./index284.js";
|
|
5
|
+
import { useIsoLayoutEffect as z } from "./index261.js";
|
|
6
|
+
import { Timeout as k } from "./index285.js";
|
|
7
|
+
import { AnimationFrame as j } from "./index302.js";
|
|
8
|
+
import { NOOP as F } from "./index264.js";
|
|
9
9
|
let Y = {}, C = {}, O = "";
|
|
10
10
|
function R(s) {
|
|
11
11
|
if (typeof document > "u")
|
package/dist/index348.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useId as f } from "./
|
|
2
|
-
import { useRefWithInit as u } from "./
|
|
3
|
-
import { useIsoLayoutEffect as g } from "./
|
|
4
|
-
import { isElement as E } from "./
|
|
1
|
+
import { useId as f } from "./index342.js";
|
|
2
|
+
import { useRefWithInit as u } from "./index258.js";
|
|
3
|
+
import { useIsoLayoutEffect as g } from "./index261.js";
|
|
4
|
+
import { isElement as E } from "./index309.js";
|
|
5
5
|
import { useFloatingParentNodeId as d } from "./index382.js";
|
|
6
6
|
import { FloatingRootStore as S } from "./index384.js";
|
|
7
7
|
function C(p) {
|
package/dist/index349.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { useId as E } from "./
|
|
3
|
-
import { EMPTY_OBJECT as P } from "./
|
|
4
|
-
import { getFloatingFocusElement as S } from "./
|
|
2
|
+
import { useId as E } from "./index342.js";
|
|
3
|
+
import { EMPTY_OBJECT as P } from "./index264.js";
|
|
4
|
+
import { getFloatingFocusElement as S } from "./index290.js";
|
|
5
5
|
import { useFloatingParentNodeId as F } from "./index382.js";
|
|
6
6
|
const y = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
7
|
function $(c, g = {}) {
|
package/dist/index350.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { Store as l } from "./
|
|
3
|
-
import { useStore as a } from "./
|
|
4
|
-
import { useStableCallback as f } from "./
|
|
5
|
-
import { useIsoLayoutEffect as c } from "./
|
|
6
|
-
import { NOOP as h } from "./
|
|
2
|
+
import { Store as l } from "./index283.js";
|
|
3
|
+
import { useStore as a } from "./index277.js";
|
|
4
|
+
import { useStableCallback as f } from "./index262.js";
|
|
5
|
+
import { useIsoLayoutEffect as c } from "./index261.js";
|
|
6
|
+
import { NOOP as h } from "./index264.js";
|
|
7
7
|
class g extends l {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new ReactStore instance.
|
package/dist/index352.js
CHANGED
package/dist/index362.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function D(_) {
|
|
4
|
-
var t = _.indexOf(a);
|
|
5
|
-
if (t < 0)
|
|
6
|
-
return null;
|
|
7
|
-
var e = t + a.length;
|
|
8
|
-
if (e >= _.length)
|
|
1
|
+
function t(r) {
|
|
2
|
+
if (r == null)
|
|
9
3
|
return "";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
if (typeof r == "string")
|
|
5
|
+
return r;
|
|
6
|
+
try {
|
|
7
|
+
return JSON.stringify(r);
|
|
8
|
+
} catch {
|
|
9
|
+
return String(r);
|
|
10
|
+
}
|
|
15
11
|
}
|
|
16
12
|
export {
|
|
17
|
-
|
|
18
|
-
u as RFC3966_ISDN_SUBADDRESS_,
|
|
19
|
-
a as RFC3966_PHONE_CONTEXT_,
|
|
20
|
-
l as RFC3966_PREFIX_,
|
|
21
|
-
D as default,
|
|
22
|
-
S as isPhoneContextValid
|
|
13
|
+
t as serializeValue
|
|
23
14
|
};
|
|
24
15
|
//# sourceMappingURL=index362.js.map
|
package/dist/index362.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index362.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index362.js","sources":["../../../node_modules/@base-ui/react/esm/internals/serializeValue.js"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"names":["serializeValue","value"],"mappings":"AAAO,SAASA,EAAeC,GAAO;AACpC,MAAIA,KAAS;AACX,WAAO;AAET,MAAI,OAAOA,KAAU;AACnB,WAAOA;AAET,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,OAAOA,CAAK;AAAA,EACrB;AACF;","x_google_ignoreList":[0]}
|
package/dist/index363.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function t(i) {
|
|
3
|
+
const o = e.useRef(""), n = e.useCallback((r) => {
|
|
4
|
+
r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
|
|
5
|
+
}, [i]);
|
|
6
|
+
return {
|
|
7
|
+
onClick: e.useCallback((r) => {
|
|
8
|
+
if (r.detail === 0) {
|
|
9
|
+
i(r, "keyboard");
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
"pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
|
|
13
|
+
}, [i]),
|
|
14
|
+
onPointerDown: n
|
|
15
|
+
};
|
|
16
|
+
}
|
|
4
17
|
export {
|
|
5
|
-
|
|
18
|
+
t as useEnhancedClickHandler
|
|
6
19
|
};
|
|
7
20
|
//# sourceMappingURL=index363.js.map
|
package/dist/index363.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}"],"names":["useEnhancedClickHandler","handler","lastClickInteractionTypeRef","React","handlePointerDown","event"],"mappings":";AAUO,SAASA,EAAwBC,GAAS;AAC/C,QAAMC,IAA8BC,EAAM,OAAO,EAAE,GAC7CC,IAAoBD,EAAM,YAAY,CAAAE,MAAS;AACnD,IAAIA,EAAM,qBAGVH,EAA4B,UAAUG,EAAM,aAC5CJ,EAAQI,GAAOA,EAAM,WAAW;AAAA,EAClC,GAAG,CAACJ,CAAO,CAAC;AAeZ,SAAO;AAAA,IACL,SAfkBE,EAAM,YAAY,CAAAE,MAAS;AAE7C,UAAIA,EAAM,WAAW,GAAG;AACtB,QAAAJ,EAAQI,GAAO,UAAU;AACzB;AAAA,MACF;AACA,MAAI,iBAAiBA,IAEnBJ,EAAQI,GAAOA,EAAM,WAAW,IAEhCJ,EAAQI,GAAOH,EAA4B,OAAO,GAEpDA,EAA4B,UAAU;AAAA,IACxC,GAAG,CAACD,CAAO,CAAC;AAAA,IAGV,eAAeG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
|
package/dist/index364.js
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return r;
|
|
6
|
-
try {
|
|
7
|
-
return JSON.stringify(r);
|
|
8
|
-
} catch {
|
|
9
|
-
return String(r);
|
|
10
|
-
}
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
const e = [];
|
|
3
|
+
function n(t) {
|
|
4
|
+
o.useEffect(t, e);
|
|
11
5
|
}
|
|
12
6
|
export {
|
|
13
|
-
|
|
7
|
+
n as useOnMount
|
|
14
8
|
};
|
|
15
9
|
//# sourceMappingURL=index364.js.map
|
package/dist/index364.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/utils/esm/useOnMount.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}"],"names":["EMPTY","useOnMount","fn","React"],"mappings":";AAGA,MAAMA,IAAQ,CAAA;AAKP,SAASC,EAAWC,GAAI;AAG7B,EAAAC,EAAM,UAAUD,GAAIF,CAAK;AAE3B;","x_google_ignoreList":[0]}
|
package/dist/index365.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
|
|
5
|
-
}, [i]);
|
|
6
|
-
return {
|
|
7
|
-
onClick: e.useCallback((r) => {
|
|
8
|
-
if (r.detail === 0) {
|
|
9
|
-
i(r, "keyboard");
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
"pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
|
|
13
|
-
}, [i]),
|
|
14
|
-
onPointerDown: n
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
let a = /* @__PURE__ */ (function(d) {
|
|
2
|
+
return d.disabled = "data-disabled", d.valid = "data-valid", d.invalid = "data-invalid", d.touched = "data-touched", d.dirty = "data-dirty", d.filled = "data-filled", d.focused = "data-focused", d;
|
|
3
|
+
})({});
|
|
17
4
|
export {
|
|
18
|
-
|
|
5
|
+
a as FieldControlDataAttributes
|
|
19
6
|
};
|
|
20
7
|
//# sourceMappingURL=index365.js.map
|