@rpcbase/ui 0.237.0 → 0.239.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/AddressAutocompleteInput/index.d.ts.map +1 -1
- package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
- package/dist/helpers/useMapsLibrary.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/index16.js +228 -196
- package/dist/index16.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +6 -6
- package/dist/index167.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index172.js +3 -3
- package/dist/index175.js +1 -1
- package/dist/index176.js +4 -4
- package/dist/index182.js +1 -1
- package/dist/index184.js +12 -12
- package/dist/index187.js +5 -5
- 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/index22.js.map +1 -1
- package/dist/index256.js +14 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +146 -58
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +30 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +9 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +44 -46
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +12 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +43 -28
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +93 -14
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +86 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +105 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +51 -50
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +11 -25
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +37 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +8 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +117 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +17 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +14 -69
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +3 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +36 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +20 -27
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +9 -13
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +20 -37
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +59 -255
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +6 -278
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +10 -67
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +47 -96
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +4 -84
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +29 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +15 -28
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +5 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +22 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +51 -16
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +25 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +41 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +38 -27
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +45 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +20 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +65 -264
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +17 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +11 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +26 -24
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +13 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +15 -122
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index300.js +36 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +260 -38
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +275 -62
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +68 -13
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +99 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +83 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +15 -6
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +34 -133
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +15 -398
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +3 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +27 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -14
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +75 -151
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +267 -28
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -9
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -49
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +25 -11
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +15 -43
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +119 -89
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -86
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +39 -104
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +60 -47
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +13 -11
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +7 -37
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +5 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +3 -116
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +10 -17
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -15
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +133 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +398 -35
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +52 -20
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +11 -9
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -8
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +3 -3
- package/dist/index346.js +2 -2
- package/dist/index348.js +8 -8
- package/dist/index349.js +3 -3
- package/dist/index350.js +2 -2
- package/dist/index351.js +5 -5
- package/dist/index353.js +1 -1
- package/dist/index362.js +21 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +4 -12
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +5 -16
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +11 -5
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +15 -19
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +19 -43
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +40 -13
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +17 -4
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +4 -200
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +197 -74
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +77 -20
- 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/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/package.json +1 -1
package/dist/index324.js
CHANGED
|
@@ -1,56 +1,69 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { useRefWithInit as u } from "./index280.js";
|
|
2
|
+
import { useOnMount as h } from "./index364.js";
|
|
3
|
+
const s = null;
|
|
4
|
+
let l = globalThis.requestAnimationFrame;
|
|
5
|
+
class o {
|
|
6
|
+
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
7
|
+
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
8
|
+
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
9
|
+
* be much more efficient if there is a call pattern that alterns as
|
|
10
|
+
* "request-cancel-request-cancel-…".
|
|
11
|
+
* But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
|
|
12
|
+
* frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
|
|
13
|
+
callbacks = [];
|
|
14
|
+
callbacksCount = 0;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
startId = 1;
|
|
17
|
+
isScheduled = !1;
|
|
18
|
+
tick = (t) => {
|
|
19
|
+
this.isScheduled = !1;
|
|
20
|
+
const e = this.callbacks, r = this.callbacksCount;
|
|
21
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, r > 0)
|
|
22
|
+
for (let i = 0; i < e.length; i += 1)
|
|
23
|
+
e[i]?.(t);
|
|
24
|
+
};
|
|
25
|
+
request(t) {
|
|
26
|
+
const e = this.nextId;
|
|
27
|
+
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
28
|
+
const r = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
|
|
29
|
+
return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
|
|
17
30
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
22
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
23
|
-
e % 2 ? i(Object(t), !0).forEach(function(n) {
|
|
24
|
-
p(r, n, t[n]);
|
|
25
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(n) {
|
|
26
|
-
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
27
|
-
});
|
|
31
|
+
cancel(t) {
|
|
32
|
+
const e = t - this.startId;
|
|
33
|
+
e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
|
|
28
34
|
}
|
|
29
|
-
return r;
|
|
30
|
-
}
|
|
31
|
-
function p(r, e, t) {
|
|
32
|
-
return (e = b(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
33
|
-
}
|
|
34
|
-
function b(r) {
|
|
35
|
-
var e = y(r, "string");
|
|
36
|
-
return o(e) == "symbol" ? e : e + "";
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
const c = new o();
|
|
37
|
+
class a {
|
|
38
|
+
static create() {
|
|
39
|
+
return new a();
|
|
40
|
+
}
|
|
41
|
+
static request(t) {
|
|
42
|
+
return c.request(t);
|
|
43
|
+
}
|
|
44
|
+
static cancel(t) {
|
|
45
|
+
return c.cancel(t);
|
|
46
|
+
}
|
|
47
|
+
currentId = s;
|
|
48
|
+
/**
|
|
49
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
50
|
+
*/
|
|
51
|
+
request(t) {
|
|
52
|
+
this.cancel(), this.currentId = c.request(() => {
|
|
53
|
+
this.currentId = s, t();
|
|
54
|
+
});
|
|
45
55
|
}
|
|
46
|
-
|
|
56
|
+
cancel = () => {
|
|
57
|
+
this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
|
|
58
|
+
};
|
|
59
|
+
disposeEffect = () => this.cancel;
|
|
47
60
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}), t);
|
|
61
|
+
function k() {
|
|
62
|
+
const n = u(a.create).current;
|
|
63
|
+
return h(n.disposeEffect), n;
|
|
52
64
|
}
|
|
53
65
|
export {
|
|
54
|
-
|
|
66
|
+
a as AnimationFrame,
|
|
67
|
+
k as useAnimationFrame
|
|
55
68
|
};
|
|
56
69
|
//# sourceMappingURL=index324.js.map
|
package/dist/index324.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index324.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index324.js","sources":["../../../node_modules/@base-ui/utils/esm/useAnimationFrame.js"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.js\";\nimport { useOnMount } from \"./useOnMount.js\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nconst scheduler = new Scheduler();\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"names":["EMPTY","LAST_RAF","Scheduler","timestamp","currentCallbacks","currentCallbacksCount","fn","id","didRAFChange","index","scheduler","AnimationFrame","useAn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OH,CAAE;AAAA,EAC5B;AAAA,EACA,YAAYP;AAAA;AAAA;AAAA;AAAA,EAKZ,QAAQM,GAAI;AACV,SAAK,OAAM,GACX,KAAK,YAAYI,EAAU,QAAQ,MAAM;AACvC,WAAK,YAAYV,GACjBM,EAAE;AAAA,IACJ,CAAC;AAAA,EACH;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAcN,MACrBU,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAYV;AAAA,EAErB;AAAA,EACA,gBAAgB,MACP,KAAK;AAEhB;AAKO,SAASY,IAAoB;AAClC,QAAMC,IAAUC,EAAeH,EAAe,MAAM,EAAE;AACtD,SAAAI,EAAWF,EAAQ,aAAa,GACzBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index325.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { j as s } from "./index30.js";
|
|
2
|
+
const e = "base-ui-disable-scrollbar", r = {
|
|
3
|
+
className: e,
|
|
4
|
+
getElement(l) {
|
|
5
|
+
return /* @__PURE__ */ s.jsx("style", {
|
|
6
|
+
nonce: l,
|
|
7
|
+
href: e,
|
|
8
|
+
precedence: "base-ui:low",
|
|
9
|
+
children: `.${e}{scrollbar-width:none}.${e}::-webkit-scrollbar{display:none}`
|
|
10
|
+
});
|
|
9
11
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
};
|
|
13
|
+
process.env.NODE_ENV !== "production" && (r.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
r as styleDisableScrollbar
|
|
14
16
|
};
|
|
15
17
|
//# sourceMappingURL=index325.js.map
|
package/dist/index325.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index325.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index325.js","sources":["../../../node_modules/@base-ui/react/esm/utils/styles.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst DISABLE_SCROLLBAR_CLASS_NAME = 'base-ui-disable-scrollbar';\nexport const styleDisableScrollbar = {\n className: DISABLE_SCROLLBAR_CLASS_NAME,\n getElement(nonce) {\n return /*#__PURE__*/_jsx(\"style\", {\n nonce: nonce,\n href: DISABLE_SCROLLBAR_CLASS_NAME,\n precedence: \"base-ui:low\",\n children: `.${DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.${DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`\n });\n }\n};\nif (process.env.NODE_ENV !== \"production\") styleDisableScrollbar.getElement.displayName = \"styleDisableScrollbar.getElement\";"],"names":["DISABLE_SCROLLBAR_CLASS_NAME","styleDisableScrollbar","nonce","_jsx"],"mappings":";AACA,MAAMA,IAA+B,6BACxBC,IAAwB;AAAA,EACnC,WAAWD;AAAA,EACX,WAAWE,GAAO;AAChB,WAAoBC,gBAAAA,EAAAA,IAAK,SAAS;AAAA,MAChC,OAAOD;AAAA,MACP,MAAMF;AAAA,MACN,YAAY;AAAA,MACZ,UAAU,IAAIA,CAA4B,0BAA0BA,CAA4B;AAAA,IACtG,CAAK;AAAA,EACH;AACF;AACI,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,WAAW,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index326.js
CHANGED
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r && (e = r);
|
|
7
|
-
var n = 0;
|
|
8
|
-
return function() {
|
|
9
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14
|
-
}
|
|
15
|
-
function l(e, t) {
|
|
16
|
-
if (e) {
|
|
17
|
-
if (typeof e == "string") return o(e, t);
|
|
18
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
19
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? o(e, t) : void 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function o(e, t) {
|
|
23
|
-
(t == null || t > e.length) && (t = e.length);
|
|
24
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
function c(e) {
|
|
28
|
-
for (var t = "", r = u(e.split("")), n; !(n = r()).done; ) {
|
|
29
|
-
var a = n.value;
|
|
30
|
-
t += f(a, t) || "";
|
|
31
|
-
}
|
|
32
|
-
return t;
|
|
33
|
-
}
|
|
34
|
-
function f(e, t, r) {
|
|
35
|
-
return e === "+" ? t ? void 0 : "+" : i(e);
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
const t = /* @__PURE__ */ o.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "ToolbarRootContext");
|
|
4
|
+
function r(e) {
|
|
5
|
+
return o.useContext(t);
|
|
36
6
|
}
|
|
37
7
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
8
|
+
t as ToolbarRootContext,
|
|
9
|
+
r as useToolbarRootContext
|
|
40
10
|
};
|
|
41
11
|
//# sourceMappingURL=index326.js.map
|
package/dist/index326.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index326.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index326.js","sources":["../../../node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const ToolbarRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ToolbarRootContext.displayName = \"ToolbarRootContext\";\nexport function useToolbarRootContext(optional) {\n const context = React.useContext(ToolbarRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.' : _formatErrorMessage(69));\n }\n return context;\n}"],"names":["ToolbarRootContext","React","useToolbarRootContext","optional"],"mappings":";AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,EAAsBC,GAAU;AAK9C,SAJgBF,EAAM,WAAWD,CAAkB;AAKrD;","x_google_ignoreList":[0]}
|
package/dist/index327.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (t[0] !== "+")
|
|
6
|
-
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
7
|
-
return "tel:".concat(t).concat(e ? ";ext=" + e : "");
|
|
1
|
+
import { EMPTY_OBJECT as r } from "./index286.js";
|
|
2
|
+
import { DISABLED_TRANSITIONS_STYLE as o } from "./index192.js";
|
|
3
|
+
function T(t) {
|
|
4
|
+
return t === "starting" ? o : r;
|
|
8
5
|
}
|
|
9
6
|
export {
|
|
10
|
-
|
|
7
|
+
T as getDisabledMountTransitionStyles
|
|
11
8
|
};
|
|
12
9
|
//# sourceMappingURL=index327.js.map
|
package/dist/index327.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index327.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index327.js","sources":["../../../node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.js"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { DISABLED_TRANSITIONS_STYLE } from \"../internals/constants.js\";\nexport function getDisabledMountTransitionStyles(transitionStatus) {\n return transitionStatus === 'starting' ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;\n}"],"names":["getDisabledMountTransitionStyles","transitionStatus","DISABLED_TRANSITIONS_STYLE","EMPTY_OBJECT"],"mappings":";;AAEO,SAASA,EAAiCC,GAAkB;AACjE,SAAOA,MAAqB,aAAaC,IAA6BC;AACxE;","x_google_ignoreList":[0]}
|
package/dist/index328.js
CHANGED
|
@@ -1,120 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import T, { getCountryCallingCode as O } from "./index164.js";
|
|
4
|
-
import s, { isViablePhoneNumberStart as v } from "./index329.js";
|
|
5
|
-
import w from "./index330.js";
|
|
6
|
-
import y from "./index326.js";
|
|
7
|
-
import { isPossibleNumber as S } from "./index316.js";
|
|
8
|
-
import x from "./index165.js";
|
|
9
|
-
import R from "./index331.js";
|
|
10
|
-
import E from "./index320.js";
|
|
11
|
-
import I from "./index332.js";
|
|
12
|
-
import A from "./index168.js";
|
|
13
|
-
import p from "./index333.js";
|
|
14
|
-
var H = 250, L = new RegExp("[" + P + d + "]"), U = new RegExp("[^" + d + "#]+$");
|
|
15
|
-
function Z(t, r, n) {
|
|
16
|
-
if (r = r || {}, n = new T(n), r.defaultCountry && !n.hasCountry(r.defaultCountry))
|
|
17
|
-
throw r.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
|
|
18
|
-
var e = G(t, r.v2, r.extract), l = e.number, c = e.ext, i = e.error;
|
|
19
|
-
if (!l) {
|
|
20
|
-
if (r.v2)
|
|
21
|
-
throw i === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
var a = D(l, r.defaultCountry, r.defaultCallingCode, n), o = a.country, u = a.nationalNumber, N = a.countryCallingCode, _ = a.countryCallingCodeSource, f = a.carrierCode;
|
|
25
|
-
if (!n.hasSelectedNumberingPlan()) {
|
|
26
|
-
if (r.v2)
|
|
27
|
-
throw new m("INVALID_COUNTRY");
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
if (!u || u.length < g) {
|
|
31
|
-
if (r.v2)
|
|
32
|
-
throw new m("TOO_SHORT");
|
|
33
|
-
return {};
|
|
34
|
-
}
|
|
35
|
-
if (u.length > h) {
|
|
36
|
-
if (r.v2)
|
|
37
|
-
throw new m("TOO_LONG");
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
if (r.v2) {
|
|
41
|
-
var C = new x(N, u, n.metadata);
|
|
42
|
-
return o && (C.country = o), f && (C.carrierCode = f), c && (C.ext = c), C.__countryCallingCodeSource = _, C;
|
|
43
|
-
}
|
|
44
|
-
var b = (r.extended ? n.hasSelectedNumberingPlan() : o) ? R(u, n.nationalNumberPattern()) : !1;
|
|
45
|
-
return r.extended ? {
|
|
46
|
-
country: o,
|
|
47
|
-
countryCallingCode: N,
|
|
48
|
-
carrierCode: f,
|
|
49
|
-
valid: b,
|
|
50
|
-
possible: b ? !0 : !!(r.extended === !0 && n.possibleLengths() && S(u, o, n)),
|
|
51
|
-
phone: u,
|
|
52
|
-
ext: c
|
|
53
|
-
} : b ? M(o, u, c) : {};
|
|
54
|
-
}
|
|
55
|
-
function F(t, r, n) {
|
|
56
|
-
if (t) {
|
|
57
|
-
if (t.length > H) {
|
|
58
|
-
if (n)
|
|
59
|
-
throw new m("TOO_LONG");
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (r === !1)
|
|
63
|
-
return t;
|
|
64
|
-
var e = t.search(L);
|
|
65
|
-
if (!(e < 0))
|
|
66
|
-
return t.slice(e).replace(U, "");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function G(t, r, n) {
|
|
70
|
-
var e = p(t, {
|
|
71
|
-
extractFormattedPhoneNumber: function(i) {
|
|
72
|
-
return F(i, n, r);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (!e)
|
|
76
|
-
return {};
|
|
77
|
-
if (!s(e))
|
|
78
|
-
return v(e) ? {
|
|
79
|
-
error: "TOO_SHORT"
|
|
80
|
-
} : {};
|
|
81
|
-
var l = w(e);
|
|
82
|
-
return l.ext ? l : {
|
|
83
|
-
number: e
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function M(t, r, n) {
|
|
87
|
-
var e = {
|
|
88
|
-
country: t,
|
|
89
|
-
phone: r
|
|
90
|
-
};
|
|
91
|
-
return n && (e.ext = n), e;
|
|
92
|
-
}
|
|
93
|
-
function D(t, r, n, e) {
|
|
94
|
-
var l = E(y(t), void 0, r, n, e.metadata), c = l.countryCallingCodeSource, i = l.countryCallingCode, a = l.number, o;
|
|
95
|
-
if (i)
|
|
96
|
-
e.selectNumberingPlan(i);
|
|
97
|
-
else if (a && (r || n))
|
|
98
|
-
e.selectNumberingPlan(r, n), r && (o = r), i = n || O(r, e.metadata);
|
|
99
|
-
else return {};
|
|
100
|
-
if (!a)
|
|
101
|
-
return {
|
|
102
|
-
countryCallingCodeSource: c,
|
|
103
|
-
countryCallingCode: i
|
|
104
|
-
};
|
|
105
|
-
var u = I(y(a), o, e), N = u.nationalNumber, _ = u.carrierCode, f = A(i, {
|
|
106
|
-
nationalNumber: N,
|
|
107
|
-
metadata: e
|
|
108
|
-
});
|
|
109
|
-
return f && (o = f, f === "001" || e.selectNumberingPlan(o)), {
|
|
110
|
-
country: o,
|
|
111
|
-
countryCallingCode: i,
|
|
112
|
-
countryCallingCodeSource: c,
|
|
113
|
-
nationalNumber: N,
|
|
114
|
-
carrierCode: _
|
|
115
|
-
};
|
|
1
|
+
function t(E, m = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2
|
+
return Math.max(m, Math.min(E, r));
|
|
116
3
|
}
|
|
117
4
|
export {
|
|
118
|
-
|
|
5
|
+
t as clamp
|
|
119
6
|
};
|
|
120
7
|
//# sourceMappingURL=index328.js.map
|
package/dist/index328.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index328.js","sources":["../../../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined, defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","getCountry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oBU,CAAO,IAGjC;AAAA,IACL,SAASA;AAAA,IACT,oBAAoBE;AAAA,IACpB,0BAA0BC;AAAA,IAC1B,gBAAgBF;AAAA,IAChB,aAAaG;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index328.js","sources":["../../../node_modules/@base-ui/react/esm/internals/clamp.js"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"names":["clamp","val","min","max"],"mappings":"AAAO,SAASA,EAAMC,GAAKC,IAAM,OAAO,kBAAkBC,IAAM,OAAO,kBAAkB;AACvF,SAAO,KAAK,IAAID,GAAK,KAAK,IAAID,GAAKE,CAAG,CAAC;AACzC;","x_google_ignoreList":[0]}
|
package/dist/index329.js
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
);
|
|
9
|
-
function A(N) {
|
|
10
|
-
return N.length >= e && T.test(N);
|
|
11
|
-
}
|
|
12
|
-
function o(N) {
|
|
13
|
-
return P.test(N);
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const t = /* @__PURE__ */ e.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "CSPContext");
|
|
4
|
+
const n = {
|
|
5
|
+
disableStyleElements: !1
|
|
6
|
+
};
|
|
7
|
+
function o() {
|
|
8
|
+
return e.useContext(t) ?? n;
|
|
14
9
|
}
|
|
15
10
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
A as default,
|
|
19
|
-
o as isViablePhoneNumberStart
|
|
11
|
+
t as CSPContext,
|
|
12
|
+
o as useCSPContext
|
|
20
13
|
};
|
|
21
14
|
//# sourceMappingURL=index329.js.map
|
package/dist/index329.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index329.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index329.js","sources":["../../../node_modules/@base-ui/react/esm/csp-provider/CSPContext.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * @internal\n */\nexport const CSPContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CSPContext.displayName = \"CSPContext\";\nconst DEFAULT_CSP_CONTEXT_VALUE = {\n disableStyleElements: false\n};\n\n/**\n * @internal\n */\nexport function useCSPContext() {\n return React.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;\n}"],"names":["CSPContext","React","DEFAULT_CSP_CONTEXT_VALUE","useCSPContext"],"mappings":";AAMY,MAACA,IAA0B,gBAAAC,EAAM,cAAc,MAAS;AAChE,QAAQ,IAAI,aAAa,iBAAcD,EAAW,cAAc;AACpE,MAAME,IAA4B;AAAA,EAChC,sBAAsB;AACxB;AAKO,SAASC,IAAgB;AAC9B,SAAOF,EAAM,WAAWD,CAAU,KAAKE;AACzC;","x_google_ignoreList":[0]}
|
package/dist/index330.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return {};
|
|
7
|
-
for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
|
|
8
|
-
if (r[t])
|
|
9
|
-
return {
|
|
10
|
-
number: i,
|
|
11
|
-
ext: r[t]
|
|
12
|
-
};
|
|
13
|
-
t++;
|
|
14
|
-
}
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = /* @__PURE__ */ t.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "DirectionContext");
|
|
4
|
+
function o() {
|
|
5
|
+
return t.useContext(e)?.direction ?? "ltr";
|
|
15
6
|
}
|
|
16
7
|
export {
|
|
17
|
-
|
|
8
|
+
e as DirectionContext,
|
|
9
|
+
o as useDirection
|
|
18
10
|
};
|
|
19
11
|
//# sourceMappingURL=index330.js.map
|
package/dist/index330.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index330.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index330.js","sources":["../../../node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * @internal\n */\nexport const DirectionContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") DirectionContext.displayName = \"DirectionContext\";\nexport function useDirection() {\n const context = React.useContext(DirectionContext);\n return context?.direction ?? 'ltr';\n}"],"names":["DirectionContext","React","useDirection"],"mappings":";AAMY,MAACA,IAAgC,gBAAAC,EAAM,cAAc,MAAS;AACtE,QAAQ,IAAI,aAAa,iBAAcD,EAAiB,cAAc;AACnE,SAASE,IAAe;AAE7B,SADgBD,EAAM,WAAWD,CAAgB,GACjC,aAAa;AAC/B;","x_google_ignoreList":[0]}
|