@rpcbase/ui 0.261.0 → 0.263.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/assets/sha256.worker-BEf4_Y9w.js.map +1 -0
- package/dist/components/FilesUploadField/index.d.ts +19 -6
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/components/FilesUploadField/sha256.d.ts +5 -0
- package/dist/components/FilesUploadField/sha256.d.ts.map +1 -0
- package/dist/components/FilesUploadField/sha256.worker.d.ts +4 -0
- package/dist/components/FilesUploadField/sha256.worker.d.ts.map +1 -0
- package/dist/components/ImagesField/index.d.ts +4 -2
- package/dist/components/ImagesField/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index298.js +11 -803
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +865 -28
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +26 -510
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +481 -755
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +786 -7428
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +7429 -7
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +6 -12
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +12 -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 +5 -469
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +464 -32
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +36 -18
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +17 -28
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +30 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +4 -59
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +59 -9
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +9 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +5 -9
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +9 -12
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +13 -3
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +3 -17
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +14 -23
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +23 -39
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +41 -5
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -25
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +24 -18
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +17 -32
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +34 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -9
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +8 -7
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +8 -9
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +9 -10
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +10 -7
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +7 -75
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +66 -153
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +147 -99
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +113 -13
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +12 -78
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +57 -23
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +45 -12
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +13 -16
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +15 -100
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +95 -50
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +5 -57
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +78 -41
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +58 -100
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +104 -46
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +51 -39
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +42 -142
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +123 -120
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +108 -224
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +174 -158
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +144 -213
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +309 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +5 -6
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +6 -7
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +5 -4
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +4 -4
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +6 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +21 -10
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +10 -128
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +122 -36
- package/dist/index359.js.map +1 -1
- package/dist/index360.js +38 -64
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +66 -115
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +112 -485
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +490 -13
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +13 -4
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -47
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +44 -15
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +19 -5
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +5 -27
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +27 -48
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +46 -27
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +27 -16
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +16 -41
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +42 -14
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +14 -10
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +9 -51
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +53 -43
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +43 -16
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +15 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +4 -4
- package/dist/index379.js.map +1 -1
- package/dist/index380.js +4 -9
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +9 -340
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +339 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -16
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +16 -111
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +109 -19
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +18 -18
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +21 -5
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +5 -20
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +19 -13
- package/dist/index389.js.map +1 -1
- package/dist/index390.js +13 -84
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +84 -7
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +9 -29
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +28 -9
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +9 -5
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +6 -252
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +250 -10
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +11 -10
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +10 -6
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +6 -22
- package/dist/index399.js.map +1 -1
- package/dist/index400.js +21 -21
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +21 -107
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +109 -15
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +15 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +10 -8
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +8 -242
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +238 -25
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +29 -51
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +51 -10
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +11 -128
- package/dist/index409.js.map +1 -1
- package/dist/index410.js +124 -35
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +36 -23
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +26 -11
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +11 -23
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +19 -13
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +14 -13
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +14 -322
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +323 -61
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +63 -4
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +4 -28
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +25 -468
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +452 -250
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +272 -0
- package/dist/index422.js.map +1 -0
- package/package.json +2 -1
package/dist/index364.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
//#region ../../node_modules/@base-ui/utils/usePreviousValue.mjs
|
|
4
|
+
function t(t) {
|
|
5
|
+
let [n, r] = e.useState({
|
|
6
|
+
current: t,
|
|
7
|
+
previous: null
|
|
8
|
+
});
|
|
9
|
+
return t !== n.current && r({
|
|
10
|
+
current: t,
|
|
11
|
+
previous: n.current
|
|
12
|
+
}), n.previous;
|
|
4
13
|
}
|
|
5
14
|
//#endregion
|
|
6
|
-
export {
|
|
15
|
+
export { t as usePreviousValue };
|
|
7
16
|
|
|
8
17
|
//# sourceMappingURL=index364.js.map
|
package/dist/index364.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index364.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index364.js","names":["React"],"sources":["../../../node_modules/@base-ui/utils/usePreviousValue.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * Returns a previous value of its argument.\n * @param value Current value.\n * @returns Previous value, or null if there is no previous value.\n */\nexport function usePreviousValue(value) {\n const [state, setState] = React.useState({\n current: value,\n previous: null\n });\n if (value !== state.current) {\n setState({\n current: value,\n previous: state.current\n });\n }\n return state.previous;\n}"],"x_google_ignoreList":[0],"mappings":";;;AASA,SAAgB,EAAiB,GAAO;CACtC,IAAM,CAAC,GAAO,KAAYA,EAAM,SAAS;EACvC,SAAS;EACT,UAAU;CACZ,CAAC;CAOD,OANI,MAAU,EAAM,WAClB,EAAS;EACP,SAAS;EACT,UAAU,EAAM;CAClB,CAAC,GAEI,EAAM;AACf"}
|
package/dist/index365.js
CHANGED
|
@@ -1,51 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/@base-ui/utils/useControlled.mjs
|
|
5
|
-
function n({ controlled: n, default: i, name: a, state: o = "value" }) {
|
|
6
|
-
let { current: s } = t.useRef(n !== void 0), [c, l] = t.useState(i), u = s ? n : c;
|
|
7
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8
|
-
t.useEffect(() => {
|
|
9
|
-
s !== (n !== void 0) && e([
|
|
10
|
-
`A component is changing the ${s ? "" : "un"}controlled ${o} state of ${a} to be ${s ? "un" : ""}controlled.`,
|
|
11
|
-
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
12
|
-
`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,
|
|
13
|
-
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
|
|
14
|
-
"More info: https://fb.me/react-controlled-components"
|
|
15
|
-
].join("\n"));
|
|
16
|
-
}, [
|
|
17
|
-
o,
|
|
18
|
-
a,
|
|
19
|
-
n
|
|
20
|
-
]);
|
|
21
|
-
let { current: c } = t.useRef(i);
|
|
22
|
-
t.useEffect(() => {
|
|
23
|
-
!s && r(c) !== r(i) && e([`A component is changing the default ${o} state of an uncontrolled ${a} after being initialized. To suppress this warning opt to use a controlled ${a}.`].join("\n"));
|
|
24
|
-
}, [i]);
|
|
25
|
-
}
|
|
26
|
-
return [u, t.useCallback((e) => {
|
|
27
|
-
s || l(e);
|
|
28
|
-
}, [])];
|
|
29
|
-
}
|
|
30
|
-
function r(e) {
|
|
31
|
-
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
32
|
-
try {
|
|
33
|
-
return JSON.stringify(e, function(e, r) {
|
|
34
|
-
if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
35
|
-
if (typeof r == "bigint") return `__bigint__:${r}`;
|
|
36
|
-
if (typeof r == "object" && r) {
|
|
37
|
-
let e = n.get(r);
|
|
38
|
-
if (e !== void 0) return `__object__:${e}`;
|
|
39
|
-
n.set(r, t), t += 1;
|
|
40
|
-
}
|
|
41
|
-
return r;
|
|
42
|
-
}
|
|
43
|
-
}) ?? `__top__:${typeof e}`;
|
|
44
|
-
} catch {
|
|
45
|
-
return "__unserializable__";
|
|
46
|
-
}
|
|
1
|
+
//#region ../../node_modules/@base-ui/utils/isElementDisabled.mjs
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
|
|
47
4
|
}
|
|
48
5
|
//#endregion
|
|
49
|
-
export {
|
|
6
|
+
export { e as isElementDisabled };
|
|
50
7
|
|
|
51
8
|
//# sourceMappingURL=index365.js.map
|
package/dist/index365.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index365.js","names":[
|
|
1
|
+
{"version":3,"file":"index365.js","names":[],"sources":["../../../node_modules/@base-ui/utils/isElementDisabled.mjs"],"sourcesContent":["export function isElementDisabled(element) {\n return element == null || element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true';\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAkB,GAAS;CACzC,OAAO,KAAW,QAAQ,EAAQ,aAAa,UAAU,KAAK,EAAQ,aAAa,eAAe,MAAM;AAC1G"}
|
package/dist/index366.js
CHANGED
|
@@ -1,22 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e from "./
|
|
2
|
+
import { error as e } from "./index203.js";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
//#region ../../node_modules/@base-ui/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
//#region ../../node_modules/@base-ui/utils/useControlled.mjs
|
|
5
|
+
function n({ controlled: n, default: i, name: a, state: o = "value" }) {
|
|
6
|
+
let { current: s } = t.useRef(n !== void 0), [c, l] = t.useState(i), u = s ? n : c;
|
|
7
|
+
if (process.env.NODE_ENV !== "production") {
|
|
8
|
+
t.useEffect(() => {
|
|
9
|
+
s !== (n !== void 0) && e([
|
|
10
|
+
`A component is changing the ${s ? "" : "un"}controlled ${o} state of ${a} to be ${s ? "un" : ""}controlled.`,
|
|
11
|
+
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
12
|
+
`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,
|
|
13
|
+
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
|
|
14
|
+
"More info: https://fb.me/react-controlled-components"
|
|
15
|
+
].join("\n"));
|
|
16
|
+
}, [
|
|
17
|
+
o,
|
|
18
|
+
a,
|
|
19
|
+
n
|
|
20
|
+
]);
|
|
21
|
+
let { current: c } = t.useRef(i);
|
|
22
|
+
t.useEffect(() => {
|
|
23
|
+
!s && r(c) !== r(i) && e([`A component is changing the default ${o} state of an uncontrolled ${a} after being initialized. To suppress this warning opt to use a controlled ${a}.`].join("\n"));
|
|
24
|
+
}, [i]);
|
|
25
|
+
}
|
|
26
|
+
return [u, t.useCallback((e) => {
|
|
27
|
+
s || l(e);
|
|
28
|
+
}, [])];
|
|
13
29
|
}
|
|
14
|
-
function
|
|
15
|
-
let n =
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
function r(e) {
|
|
31
|
+
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
32
|
+
try {
|
|
33
|
+
return JSON.stringify(e, function(e, r) {
|
|
34
|
+
if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
35
|
+
if (typeof r == "bigint") return `__bigint__:${r}`;
|
|
36
|
+
if (typeof r == "object" && r) {
|
|
37
|
+
let e = n.get(r);
|
|
38
|
+
if (e !== void 0) return `__object__:${e}`;
|
|
39
|
+
n.set(r, t), t += 1;
|
|
40
|
+
}
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
}) ?? `__top__:${typeof e}`;
|
|
44
|
+
} catch {
|
|
45
|
+
return "__unserializable__";
|
|
46
|
+
}
|
|
18
47
|
}
|
|
19
48
|
//#endregion
|
|
20
|
-
export {
|
|
49
|
+
export { n as useControlled };
|
|
21
50
|
|
|
22
51
|
//# sourceMappingURL=index366.js.map
|
package/dist/index366.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index366.js","names":["React"
|
|
1
|
+
{"version":3,"file":"index366.js","names":["React"],"sources":["../../../node_modules/@base-ui/utils/useControlled.mjs"],"sourcesContent":["'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nimport { error } from \"./error.mjs\";\nexport function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n error([`A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && serializeToDevModeString(defaultValue) !== serializeToDevModeString(defaultProp)) {\n error([`A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [defaultProp]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}\nfunction serializeToDevModeString(input) {\n let nextId = 0;\n const seen = new WeakMap();\n try {\n const result = JSON.stringify(input, function replacer(key, value) {\n if (key === '_owner' && this != null && typeof this === 'object' && '$$typeof' in this) {\n return undefined;\n }\n if (typeof value === 'bigint') {\n return `__bigint__:${value}`;\n }\n if (value !== null && typeof value === 'object') {\n const id = seen.get(value);\n if (id !== undefined) {\n return `__object__:${id}`;\n }\n seen.set(value, nextId);\n nextId += 1;\n }\n return value;\n });\n return result ?? `__top__:${typeof input}`;\n } catch {\n return '__unserializable__';\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,SAAgB,EAAc,EAC5B,eACA,SAAS,GACT,SACA,WAAQ,WACP;CAED,IAAM,EACJ,SAAS,MACPA,EAAM,OAAO,MAAe,KAAA,CAAS,GACnC,CAAC,GAAY,KAAYA,EAAM,SAAS,CAAW,GACnD,IAAQ,IAAe,IAAa;CAC1C,IAAA,QAAA,IAAA,aAA6B,cAAc;EACzC,EAAM,gBAAgB;GACpB,AAAI,OAAkB,MAAe,KAAA,MACnC,EAAM;IAAC,+BAA+B,IAAe,KAAK,KAAK,aAAa,EAAM,YAAY,EAAK,SAAS,IAAe,OAAO,GAAG;IAAc;IAA+E,qDAAqD,EAAK;IAAmD;IAA8H;GAAsD,CAAC,CAAC,KAAK,IAAI,CAAC;EAEnhB,GAAG;GAAC;GAAO;GAAM;EAAU,CAAC;EAC5B,IAAM,EACJ,SAAS,MACPA,EAAM,OAAO,CAAW;EAC5B,EAAM,gBAAgB;GACpB,AAAI,CAAC,KAAgB,EAAyB,CAAY,MAAM,EAAyB,CAAW,KAClG,EAAM,CAAC,uCAAuC,EAAM,4BAA4B,EAAK,6EAAkF,EAAK,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;EAE9L,GAAG,CAAC,CAAW,CAAC;CAClB;CAMA,OAAO,CAAC,GALuBA,EAAM,aAAY,MAAY;EAC3D,AAAK,KACH,EAAS,CAAQ;CAErB,GAAG,CAAC,CACgC,CAAC;AACvC;AACA,SAAS,EAAyB,GAAO;CACvC,IAAI,IAAS,GACP,oBAAO,IAAI,QAAQ;CACzB,IAAI;EAkBF,OAjBe,KAAK,UAAU,GAAO,SAAkB,GAAK,GAAO;GAC7D,YAAQ,YAAY,QAAQ,QAAQ,OAAO,QAAS,YAAY,cAAc,OAGlF;QAAI,OAAO,KAAU,UACnB,OAAO,cAAc;IAEvB,IAAsB,OAAO,KAAU,YAAnC,GAA6C;KAC/C,IAAM,IAAK,EAAK,IAAI,CAAK;KACzB,IAAI,MAAO,KAAA,GACT,OAAO,cAAc;KAGvB,AADA,EAAK,IAAI,GAAO,CAAM,GACtB,KAAU;IACZ;IACA,OAAO;GAVgB;EAWzB,CACY,KAAK,WAAW,OAAO;CACrC,QAAQ;EACN,OAAO;CACT;AACF"}
|
package/dist/index367.js
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./index183.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/select/root/SelectRootContext.mjs
|
|
5
|
+
var n = /*#__PURE__*/ t.createContext(null);
|
|
6
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "SelectRootContext");
|
|
7
|
+
var r = /*#__PURE__*/ t.createContext(null);
|
|
8
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "SelectFloatingContext");
|
|
9
|
+
function i() {
|
|
10
|
+
let r = t.useContext(n);
|
|
11
|
+
if (r === null) throw Error(process.env.NODE_ENV === "production" ? e(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function a() {
|
|
15
|
+
let n = t.useContext(r);
|
|
16
|
+
if (n === null) throw Error(process.env.NODE_ENV === "production" ? e(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
5
19
|
//#endregion
|
|
6
|
-
export {
|
|
20
|
+
export { r as SelectFloatingContext, n as SelectRootContext, a as useSelectFloatingContext, i as useSelectRootContext };
|
|
7
21
|
|
|
8
22
|
//# sourceMappingURL=index367.js.map
|
package/dist/index367.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index367.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index367.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/select/root/SelectRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectRootContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectRootContext.displayName = \"SelectRootContext\";\nexport const SelectFloatingContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectFloatingContext.displayName = \"SelectFloatingContext\";\nexport function useSelectRootContext() {\n const context = React.useContext(SelectRootContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(60));\n }\n return context;\n}\nexport function useSelectFloatingContext() {\n const context = React.useContext(SelectFloatingContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(61));\n }\n return context;\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAa,IAAiC,gBAAM,cAAc,IAAI;AACtE,QAAA,IAAA,aAA6B,iBAAc,EAAkB,cAAc;AAC3E,IAAa,IAAqC,gBAAM,cAAc,IAAI;AAC1E,QAAA,IAAA,aAA6B,iBAAc,EAAsB,cAAc;AAC/E,SAAgB,IAAuB;CACrC,IAAM,IAAUA,EAAM,WAAW,CAAiB;CAClD,IAAI,MAAY,MACd,MAAU,MAAA,QAAA,IAAA,aAA+B,eAA4GC,EAAoB,EAAE,IAAnH,0FAAoH;CAE9K,OAAO;AACT;AACA,SAAgB,IAA2B;CACzC,IAAM,IAAUD,EAAM,WAAW,CAAqB;CACtD,IAAI,MAAY,MACd,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAgHC,EAAoB,EAAE,IAAvH,8FAAwH;CAElL,OAAO;AACT"}
|
package/dist/index368.js
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customError: !1,
|
|
6
|
-
patternMismatch: !1,
|
|
7
|
-
rangeOverflow: !1,
|
|
8
|
-
rangeUnderflow: !1,
|
|
9
|
-
stepMismatch: !1,
|
|
10
|
-
tooLong: !1,
|
|
11
|
-
tooShort: !1,
|
|
12
|
-
typeMismatch: !1,
|
|
13
|
-
valid: null,
|
|
14
|
-
valueMissing: !1
|
|
15
|
-
}, n = {
|
|
16
|
-
valid: null,
|
|
17
|
-
touched: !1,
|
|
18
|
-
dirty: !1,
|
|
19
|
-
filled: !1,
|
|
20
|
-
focused: !1
|
|
21
|
-
}, r = {
|
|
22
|
-
disabled: !1,
|
|
23
|
-
...n
|
|
24
|
-
}, i = { valid(t) {
|
|
25
|
-
return t === null ? null : t ? { [e.valid]: "" } : { [e.invalid]: "" };
|
|
26
|
-
} };
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/field/control/FieldControlDataAttributes.mjs
|
|
2
|
+
var e = /*#__PURE__*/ function(e) {
|
|
3
|
+
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
4
|
+
}({});
|
|
27
5
|
//#endregion
|
|
28
|
-
export {
|
|
6
|
+
export { e as FieldControlDataAttributes };
|
|
29
7
|
|
|
30
8
|
//# sourceMappingURL=index368.js.map
|
package/dist/index368.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index368.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index368.js","names":[],"sources":["../../../node_modules/@base-ui/react/field/control/FieldControlDataAttributes.mjs"],"sourcesContent":["export let FieldControlDataAttributes = /*#__PURE__*/function (FieldControlDataAttributes) {\n /**\n * Present when the field is disabled.\n */\n FieldControlDataAttributes[\"disabled\"] = \"data-disabled\";\n /**\n * Present when the field is in a valid state.\n */\n FieldControlDataAttributes[\"valid\"] = \"data-valid\";\n /**\n * Present when the field is in an invalid state.\n */\n FieldControlDataAttributes[\"invalid\"] = \"data-invalid\";\n /**\n * Present when the field has been touched.\n */\n FieldControlDataAttributes[\"touched\"] = \"data-touched\";\n /**\n * Present when the field's value has changed.\n */\n FieldControlDataAttributes[\"dirty\"] = \"data-dirty\";\n /**\n * Present when the field is filled.\n */\n FieldControlDataAttributes[\"filled\"] = \"data-filled\";\n /**\n * Present when the field control is focused.\n */\n FieldControlDataAttributes[\"focused\"] = \"data-focused\";\n return FieldControlDataAttributes;\n}({});"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAA0C,uBAAU,GAA4B;CA6BzF,OAzBA,EAA2B,WAAc,iBAIzC,EAA2B,QAAW,cAItC,EAA2B,UAAa,gBAIxC,EAA2B,UAAa,gBAIxC,EAA2B,QAAW,cAItC,EAA2B,SAAY,eAIvC,EAA2B,UAAa,gBACjC;AACT,EAAE,CAAC,CAAC"}
|
package/dist/index369.js
CHANGED
|
@@ -1,51 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
validate: () => null,
|
|
28
|
-
validationMode: "onSubmit",
|
|
29
|
-
validationDebounceTime: 0,
|
|
30
|
-
shouldValidateOnChange: () => !1,
|
|
31
|
-
state: r,
|
|
32
|
-
markedDirtyRef: { current: !1 },
|
|
33
|
-
registerFieldControl: n,
|
|
34
|
-
validation: {
|
|
35
|
-
getValidationProps: (e, n = t) => n,
|
|
36
|
-
inputRef: { current: null },
|
|
37
|
-
registerInput: n,
|
|
38
|
-
commit: async () => {},
|
|
39
|
-
change: n
|
|
40
|
-
}
|
|
41
|
-
}, c = /*#__PURE__*/ o.createContext(s);
|
|
42
|
-
process.env.NODE_ENV !== "production" && (c.displayName = "FieldRootContext");
|
|
43
|
-
function l(t = !0) {
|
|
44
|
-
let r = o.useContext(c);
|
|
45
|
-
if (r.setValidityData === n && !t) throw Error(process.env.NODE_ENV === "production" ? e(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
46
|
-
return r;
|
|
47
|
-
}
|
|
1
|
+
import { FieldControlDataAttributes as e } from "./index368.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/internals/field-constants/constants.mjs
|
|
3
|
+
var t = {
|
|
4
|
+
badInput: !1,
|
|
5
|
+
customError: !1,
|
|
6
|
+
patternMismatch: !1,
|
|
7
|
+
rangeOverflow: !1,
|
|
8
|
+
rangeUnderflow: !1,
|
|
9
|
+
stepMismatch: !1,
|
|
10
|
+
tooLong: !1,
|
|
11
|
+
tooShort: !1,
|
|
12
|
+
typeMismatch: !1,
|
|
13
|
+
valid: null,
|
|
14
|
+
valueMissing: !1
|
|
15
|
+
}, n = {
|
|
16
|
+
valid: null,
|
|
17
|
+
touched: !1,
|
|
18
|
+
dirty: !1,
|
|
19
|
+
filled: !1,
|
|
20
|
+
focused: !1
|
|
21
|
+
}, r = {
|
|
22
|
+
disabled: !1,
|
|
23
|
+
...n
|
|
24
|
+
}, i = { valid(t) {
|
|
25
|
+
return t === null ? null : t ? { [e.valid]: "" } : { [e.invalid]: "" };
|
|
26
|
+
} };
|
|
48
27
|
//#endregion
|
|
49
|
-
export {
|
|
28
|
+
export { r as DEFAULT_FIELD_ROOT_STATE, n as DEFAULT_FIELD_STATE_ATTRIBUTES, t as DEFAULT_VALIDITY_STATE, i as fieldValidityMapping };
|
|
50
29
|
|
|
51
30
|
//# sourceMappingURL=index369.js.map
|
package/dist/index369.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index369.js","names":[
|
|
1
|
+
{"version":3,"file":"index369.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/field-constants/constants.mjs"],"sourcesContent":["import { FieldControlDataAttributes } from \"../../field/control/FieldControlDataAttributes.mjs\";\nexport const DEFAULT_VALIDITY_STATE = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: null,\n valueMissing: false\n};\nexport const DEFAULT_FIELD_STATE_ATTRIBUTES = {\n valid: null,\n touched: false,\n dirty: false,\n filled: false,\n focused: false\n};\nexport const DEFAULT_FIELD_ROOT_STATE = {\n disabled: false,\n ...DEFAULT_FIELD_STATE_ATTRIBUTES\n};\nexport const fieldValidityMapping = {\n valid(value) {\n if (value === null) {\n return null;\n }\n if (value) {\n return {\n [FieldControlDataAttributes.valid]: ''\n };\n }\n return {\n [FieldControlDataAttributes.invalid]: ''\n };\n }\n};"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAa,IAAyB;CACpC,UAAU;CACV,aAAa;CACb,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,cAAc;CACd,SAAS;CACT,UAAU;CACV,cAAc;CACd,OAAO;CACP,cAAc;AAChB,GACa,IAAiC;CAC5C,OAAO;CACP,SAAS;CACT,OAAO;CACP,QAAQ;CACR,SAAS;AACX,GACa,IAA2B;CACtC,UAAU;CACV,GAAG;AACL,GACa,IAAuB,EAClC,MAAM,GAAO;CASX,OARI,MAAU,OACL,OAEL,IACK,GACJ,EAA2B,QAAQ,GACtC,IAEK,GACJ,EAA2B,UAAU,GACxC;AACF,EACF"}
|
package/dist/index370.js
CHANGED
|
@@ -1,32 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
import e from "./index183.js";
|
|
3
|
+
import { EMPTY_OBJECT as t, NOOP as n } from "./index191.js";
|
|
4
|
+
import { DEFAULT_FIELD_ROOT_STATE as r, DEFAULT_FIELD_STATE_ATTRIBUTES as i, DEFAULT_VALIDITY_STATE as a } from "./index369.js";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs
|
|
7
|
+
var s = {
|
|
8
|
+
invalid: void 0,
|
|
9
|
+
name: void 0,
|
|
10
|
+
validityData: {
|
|
11
|
+
state: a,
|
|
12
|
+
errors: [],
|
|
13
|
+
error: "",
|
|
14
|
+
value: "",
|
|
15
|
+
initialValue: null
|
|
16
|
+
},
|
|
17
|
+
setValidityData: n,
|
|
18
|
+
disabled: void 0,
|
|
19
|
+
touched: i.touched,
|
|
20
|
+
setTouched: n,
|
|
21
|
+
dirty: i.dirty,
|
|
22
|
+
setDirty: n,
|
|
23
|
+
filled: i.filled,
|
|
24
|
+
setFilled: n,
|
|
25
|
+
focused: i.focused,
|
|
26
|
+
setFocused: n,
|
|
27
|
+
validate: () => null,
|
|
28
|
+
validationMode: "onSubmit",
|
|
29
|
+
validationDebounceTime: 0,
|
|
30
|
+
shouldValidateOnChange: () => !1,
|
|
31
|
+
state: r,
|
|
32
|
+
markedDirtyRef: { current: !1 },
|
|
33
|
+
registerFieldControl: n,
|
|
34
|
+
validation: {
|
|
35
|
+
getValidationProps: (e, n = t) => n,
|
|
36
|
+
inputRef: { current: null },
|
|
37
|
+
registerInput: n,
|
|
38
|
+
commit: async () => {},
|
|
39
|
+
change: n
|
|
40
|
+
}
|
|
41
|
+
}, c = /*#__PURE__*/ o.createContext(s);
|
|
42
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "FieldRootContext");
|
|
43
|
+
function l(t = !0) {
|
|
44
|
+
let r = o.useContext(c);
|
|
45
|
+
if (r.setValidityData === n && !t) throw Error(process.env.NODE_ENV === "production" ? e(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
46
|
+
return r;
|
|
28
47
|
}
|
|
29
48
|
//#endregion
|
|
30
|
-
export {
|
|
49
|
+
export { s as DEFAULT_FIELD_ROOT_CONTEXT, c as FieldRootContext, l as useFieldRootContext };
|
|
31
50
|
|
|
32
51
|
//# sourceMappingURL=index370.js.map
|
package/dist/index370.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index370.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/field-
|
|
1
|
+
{"version":3,"file":"index370.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { NOOP } from \"../noop.mjs\";\nimport { DEFAULT_FIELD_ROOT_STATE, DEFAULT_FIELD_STATE_ATTRIBUTES, DEFAULT_VALIDITY_STATE } from \"../field-constants/constants.mjs\";\nexport const DEFAULT_FIELD_ROOT_CONTEXT = {\n invalid: undefined,\n name: undefined,\n validityData: {\n state: DEFAULT_VALIDITY_STATE,\n errors: [],\n error: '',\n value: '',\n initialValue: null\n },\n setValidityData: NOOP,\n disabled: undefined,\n touched: DEFAULT_FIELD_STATE_ATTRIBUTES.touched,\n setTouched: NOOP,\n dirty: DEFAULT_FIELD_STATE_ATTRIBUTES.dirty,\n setDirty: NOOP,\n filled: DEFAULT_FIELD_STATE_ATTRIBUTES.filled,\n setFilled: NOOP,\n focused: DEFAULT_FIELD_STATE_ATTRIBUTES.focused,\n setFocused: NOOP,\n validate: () => null,\n validationMode: 'onSubmit',\n validationDebounceTime: 0,\n shouldValidateOnChange: () => false,\n state: DEFAULT_FIELD_ROOT_STATE,\n markedDirtyRef: {\n current: false\n },\n registerFieldControl: NOOP,\n validation: {\n getValidationProps: (_disabled, props = EMPTY_OBJECT) => props,\n inputRef: {\n current: null\n },\n registerInput: NOOP,\n commit: async () => {},\n change: NOOP\n }\n};\nexport const FieldRootContext = /*#__PURE__*/React.createContext(DEFAULT_FIELD_ROOT_CONTEXT);\nif (process.env.NODE_ENV !== \"production\") FieldRootContext.displayName = \"FieldRootContext\";\nexport function useFieldRootContext(optional = true) {\n const context = React.useContext(FieldRootContext);\n if (context.setValidityData === NOOP && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.' : _formatErrorMessage(28));\n }\n return context;\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;AAOA,IAAa,IAA6B;CACxC,SAAS,KAAA;CACT,MAAM,KAAA;CACN,cAAc;EACZ,OAAO;EACP,QAAQ,CAAC;EACT,OAAO;EACP,OAAO;EACP,cAAc;CAChB;CACA,iBAAiB;CACjB,UAAU,KAAA;CACV,SAAS,EAA+B;CACxC,YAAY;CACZ,OAAO,EAA+B;CACtC,UAAU;CACV,QAAQ,EAA+B;CACvC,WAAW;CACX,SAAS,EAA+B;CACxC,YAAY;CACZ,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB;CACxB,8BAA8B;CAC9B,OAAO;CACP,gBAAgB,EACd,SAAS,GACX;CACA,sBAAsB;CACtB,YAAY;EACV,qBAAqB,GAAW,IAAQ,MAAiB;EACzD,UAAU,EACR,SAAS,KACX;EACA,eAAe;EACf,QAAQ,YAAY,CAAC;EACrB,QAAQ;CACV;AACF,GACa,IAAgC,gBAAM,cAAc,CAA0B;AAC3F,QAAA,IAAA,aAA6B,iBAAc,EAAiB,cAAc;AAC1E,SAAgB,EAAoB,IAAW,IAAM;CACnD,IAAM,IAAUA,EAAM,WAAW,CAAgB;CACjD,IAAI,EAAQ,oBAAoB,KAAQ,CAAC,GACvC,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAyGC,EAAoB,EAAE,IAAhH,uFAAiH;CAE3K,OAAO;AACT"}
|
package/dist/index371.js
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { useIsoLayoutEffect as e } from "./index204.js";
|
|
3
|
+
import { useFieldRootContext as t } from "./index370.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
//#region ../../node_modules/@base-ui/react/internals/field-register-control/useRegisterFieldControl.mjs
|
|
6
|
+
function r(r, i, a, o, s = !0, c) {
|
|
7
|
+
let { registerFieldControl: l } = t(), u = n.useRef(null);
|
|
8
|
+
u.current ||= Symbol(), e(() => {
|
|
9
|
+
let e = u.current;
|
|
10
|
+
if (!(!e || !s)) return l(e, {
|
|
11
|
+
controlRef: r,
|
|
12
|
+
getValue: o,
|
|
13
|
+
id: i,
|
|
14
|
+
name: c,
|
|
15
|
+
value: a
|
|
16
|
+
}), () => {
|
|
17
|
+
l(e, void 0);
|
|
18
|
+
};
|
|
19
|
+
}, [
|
|
20
|
+
r,
|
|
21
|
+
s,
|
|
22
|
+
o,
|
|
23
|
+
i,
|
|
24
|
+
c,
|
|
25
|
+
l,
|
|
26
|
+
a
|
|
27
|
+
]);
|
|
17
28
|
}
|
|
18
29
|
//#endregion
|
|
19
|
-
export {
|
|
30
|
+
export { r as useRegisterFieldControl };
|
|
20
31
|
|
|
21
32
|
//# sourceMappingURL=index371.js.map
|
package/dist/index371.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index371.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/
|
|
1
|
+
{"version":3,"file":"index371.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/field-register-control/useRegisterFieldControl.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFieldRootContext } from \"../field-root-context/FieldRootContext.mjs\";\nexport function useRegisterFieldControl(controlRef, id, value, getFormValueOverride, enabled = true, name) {\n const {\n registerFieldControl\n } = useFieldRootContext();\n const sourceRef = React.useRef(null);\n if (!sourceRef.current) {\n sourceRef.current = Symbol();\n }\n useIsoLayoutEffect(() => {\n const source = sourceRef.current;\n if (!source || !enabled) {\n return undefined;\n }\n const registration = {\n controlRef,\n getValue: getFormValueOverride,\n id,\n name,\n value\n };\n registerFieldControl(source, registration);\n return () => {\n registerFieldControl(source, undefined);\n };\n }, [controlRef, enabled, getFormValueOverride, id, name, registerFieldControl, value]);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,SAAgB,EAAwB,GAAY,GAAI,GAAO,GAAsB,IAAU,IAAM,GAAM;CACzG,IAAM,EACJ,4BACE,EAAoB,GAClB,IAAYA,EAAM,OAAO,IAAI;CAInC,AAHA,AACE,EAAU,YAAU,OAAO,GAE7B,QAAyB;EACvB,IAAM,IAAS,EAAU;EACrB,OAAC,KAAU,CAAC,IAWhB,OADA,EAAqB,GAAQ;GAN3B;GACA,UAAU;GACV;GACA;GACA;EAEsC,CAAC,SAC5B;GACX,EAAqB,GAAQ,KAAA,CAAS;EACxC;CACF,GAAG;EAAC;EAAY;EAAS;EAAsB;EAAI;EAAM;EAAsB;CAAK,CAAC;AACvF"}
|
package/dist/index372.js
CHANGED
|
@@ -1,46 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
let e;
|
|
18
|
-
if (u) {
|
|
19
|
-
let t = d?.current;
|
|
20
|
-
e = n(t) && t.closest("label") != null ? l ?? null : h ?? m;
|
|
21
|
-
} else if (l != null) v.current = !0, e = l;
|
|
22
|
-
else if (v.current) e = m;
|
|
23
|
-
else {
|
|
24
|
-
y();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (e === void 0) {
|
|
28
|
-
y();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
_.current = !0, p(g.current, e);
|
|
32
|
-
}, [
|
|
33
|
-
l,
|
|
34
|
-
d,
|
|
35
|
-
h,
|
|
36
|
-
p,
|
|
37
|
-
u,
|
|
38
|
-
m,
|
|
39
|
-
g,
|
|
40
|
-
y
|
|
41
|
-
]), s.useEffect(() => y, [y]), f ?? m;
|
|
2
|
+
import { NOOP as e } from "./index191.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/internals/labelable-provider/LabelableContext.mjs
|
|
5
|
+
var n = /*#__PURE__*/ t.createContext({
|
|
6
|
+
controlId: void 0,
|
|
7
|
+
registerControlId: e,
|
|
8
|
+
labelId: void 0,
|
|
9
|
+
setLabelId: e,
|
|
10
|
+
messageIds: [],
|
|
11
|
+
setMessageIds: e,
|
|
12
|
+
getDescriptionProps: (e) => e
|
|
13
|
+
});
|
|
14
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "LabelableContext");
|
|
15
|
+
function r() {
|
|
16
|
+
return t.useContext(n);
|
|
42
17
|
}
|
|
43
18
|
//#endregion
|
|
44
|
-
export {
|
|
19
|
+
export { n as LabelableContext, r as useLabelableContext };
|
|
45
20
|
|
|
46
21
|
//# sourceMappingURL=index372.js.map
|