@satoshibits/react-json-schema-builder 1.0.2 → 1.0.3
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/index.cjs100.js +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs103.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +6 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +6 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +6 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -6
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -6
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -6
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs48.js +1 -6
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -6
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js +2 -2
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +2 -2
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +6 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +6 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.es100.js +11 -21
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +26 -11
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +4 -27
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +22 -4
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +4 -4
- package/dist/index.es15.js +5 -5
- package/dist/index.es2.js +21 -20
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es20.js +6 -6
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es29.js +1 -1
- package/dist/index.es3.js +1 -0
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es35.js +811 -95
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +10 -114
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +10 -56
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +10 -24
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +113 -42
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es40.js +99 -71
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +52 -56
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +19 -827
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +45 -10
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +86 -10
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +60 -10
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +2 -2
- package/dist/index.es48.js +8 -21
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +5 -9
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +15 -32
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +3 -12
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +38 -8
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +18 -5
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +11 -11
- package/dist/index.es55.js +1 -1
- package/dist/index.es56.js +3 -26
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es58.js +42 -62
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +25 -28
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es60.js +64 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +7 -24
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +123 -31
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +14 -3
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +129 -41
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +10 -7
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +204 -113
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +13 -15
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +31 -132
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +7 -10
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +26 -212
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +4 -13
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +5 -7
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +27 -3
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +50 -28
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +9 -50
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +25 -9
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +2 -2
- package/dist/index.es78.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/packages/builder/context.d.ts +1 -0
- package/dist/packages/builder/context.d.ts.map +1 -1
- package/dist/packages/builder/schema-builder.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.es50.js
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
import { forwardRef as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { forwardRef as s, createElement as c } from "react";
|
|
2
|
+
import { mergeClasses as n, toKebabCase as f } from "./index.es51.js";
|
|
3
|
+
import l from "./index.es52.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.477.0 - ISC
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the ISC license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"svg",
|
|
22
|
-
{
|
|
23
|
-
ref: l,
|
|
24
|
-
...b,
|
|
25
|
-
width: r,
|
|
26
|
-
height: r,
|
|
27
|
-
stroke: m,
|
|
28
|
-
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
-
className: d("lucide", s),
|
|
30
|
-
...f
|
|
31
|
-
},
|
|
32
|
-
[
|
|
33
|
-
...u.map(([p, c]) => o(p, c)),
|
|
34
|
-
...Array.isArray(t) ? t : [t]
|
|
35
|
-
]
|
|
36
|
-
)
|
|
37
|
-
);
|
|
10
|
+
const u = (e, r) => {
|
|
11
|
+
const o = s(
|
|
12
|
+
({ className: t, ...a }, m) => c(l, {
|
|
13
|
+
ref: m,
|
|
14
|
+
iconNode: r,
|
|
15
|
+
className: n(`lucide-${f(e)}`, t),
|
|
16
|
+
...a
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
return o.displayName = `${e}`, o;
|
|
20
|
+
};
|
|
38
21
|
export {
|
|
39
|
-
|
|
22
|
+
u as default
|
|
40
23
|
};
|
|
41
24
|
//# sourceMappingURL=index.es50.js.map
|
package/dist/index.es50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/
|
|
1
|
+
{"version":3,"file":"index.es50.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js"],"sourcesContent":["/**\n * @license lucide-react v0.477.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props\n })\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":["createLucideIcon","iconName","iconNode","Component","forwardRef","className","props","ref","createElement","Icon","mergeClasses","toKebabCase"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWK,MAACA,IAAmB,CAACC,GAAUC,MAAa;AAC/C,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAO,GAAEC,MAAQC,EAAcC,GAAM;AAAA,MACpD,KAAAF;AAAA,MACA,UAAAL;AAAA,MACA,WAAWQ,EAAa,UAAUC,EAAYV,CAAQ,CAAC,IAAII,CAAS;AAAA,MACpE,GAAGC;AAAA,IACJ,CAAA;AAAA,EACF;AACD,SAAAH,EAAU,cAAc,GAAGF,CAAQ,IAC5BE;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es51.js
CHANGED
|
@@ -4,18 +4,9 @@
|
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: 24,
|
|
10
|
-
height: 24,
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
stroke: "currentColor",
|
|
14
|
-
strokeWidth: 2,
|
|
15
|
-
strokeLinecap: "round",
|
|
16
|
-
strokeLinejoin: "round"
|
|
17
|
-
};
|
|
7
|
+
const n = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (...e) => e.filter((o, r, t) => !!o && o.trim() !== "" && t.indexOf(o) === r).join(" ").trim();
|
|
18
8
|
export {
|
|
19
|
-
|
|
9
|
+
i as mergeClasses,
|
|
10
|
+
n as toKebabCase
|
|
20
11
|
};
|
|
21
12
|
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/
|
|
1
|
+
{"version":3,"file":"index.es51.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js"],"sourcesContent":["/**\n * @license lucide-react v0.477.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toKebabCase };\n//# sourceMappingURL=utils.js.map\n"],"names":["toKebabCase","string","mergeClasses","classes","className","index","array"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOK,MAACA,IAAc,CAACC,MAAWA,EAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAW,GACnFC,IAAe,IAAIC,MAAYA,EAAQ,OAAO,CAACC,GAAWC,GAAOC,MAC9D,EAAQF,KAAcA,EAAU,KAAI,MAAO,MAAME,EAAM,QAAQF,CAAS,MAAMC,CACtF,EAAE,KAAK,GAAG,EAAE,KAAI;","x_google_ignoreList":[0]}
|
package/dist/index.es52.js
CHANGED
|
@@ -1,11 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { forwardRef as i, createElement as o } from "react";
|
|
2
|
+
import b from "./index.es53.js";
|
|
3
|
+
import { mergeClasses as d } from "./index.es51.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.477.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const N = i(
|
|
11
|
+
({
|
|
12
|
+
color: m = "currentColor",
|
|
13
|
+
size: r = 24,
|
|
14
|
+
strokeWidth: e = 2,
|
|
15
|
+
absoluteStrokeWidth: a,
|
|
16
|
+
className: s = "",
|
|
17
|
+
children: t,
|
|
18
|
+
iconNode: u,
|
|
19
|
+
...f
|
|
20
|
+
}, l) => o(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
ref: l,
|
|
24
|
+
...b,
|
|
25
|
+
width: r,
|
|
26
|
+
height: r,
|
|
27
|
+
stroke: m,
|
|
28
|
+
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
+
className: d("lucide", s),
|
|
30
|
+
...f
|
|
31
|
+
},
|
|
32
|
+
[
|
|
33
|
+
...u.map(([p, c]) => o(p, c)),
|
|
34
|
+
...Array.isArray(t) ? t : [t]
|
|
35
|
+
]
|
|
36
|
+
)
|
|
37
|
+
);
|
|
8
38
|
export {
|
|
9
|
-
|
|
39
|
+
N as default
|
|
10
40
|
};
|
|
11
41
|
//# sourceMappingURL=index.es52.js.map
|
package/dist/index.es52.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es52.js","sources":["../../../node_modules/.pnpm/
|
|
1
|
+
{"version":3,"file":"index.es52.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js"],"sourcesContent":["/**\n * @license lucide-react v0.477.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => {\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n"],"names":["Icon","forwardRef","color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode","rest","ref","createElement","defaultAttributes","mergeClasses","tag","attrs"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWK,MAACA,IAAOC;AAAA,EACX,CAAC;AAAA,IACC,OAAAC,IAAQ;AAAA,IACR,MAAAC,IAAO;AAAA,IACP,aAAAC,IAAc;AAAA,IACd,qBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EACJ,GAAEC,MACMC;AAAA,IACL;AAAA,IACA;AAAA,MACE,KAAAD;AAAA,MACA,GAAGE;AAAA,MACH,OAAOT;AAAA,MACP,QAAQA;AAAA,MACR,QAAQD;AAAA,MACR,aAAaG,IAAsB,OAAOD,CAAW,IAAI,KAAK,OAAOD,CAAI,IAAIC;AAAA,MAC7E,WAAWS,EAAa,UAAUP,CAAS;AAAA,MAC3C,GAAGG;AAAA,IACJ;AAAA,IACD;AAAA,MACE,GAAGD,EAAS,IAAI,CAAC,CAACM,GAAKC,CAAK,MAAMJ,EAAcG,GAAKC,CAAK,CAAC;AAAA,MAC3D,GAAG,MAAM,QAAQR,CAAQ,IAAIA,IAAW,CAACA,CAAQ;AAAA,IACzD;AAAA,EACK;AAEL;","x_google_ignoreList":[0]}
|
package/dist/index.es53.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.477.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
17
|
+
};
|
|
5
18
|
export {
|
|
6
|
-
|
|
19
|
+
t as default
|
|
7
20
|
};
|
|
8
21
|
//# sourceMappingURL=index.es53.js.map
|
package/dist/index.es53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es53.js","sources":["../../../node_modules/.pnpm/
|
|
1
|
+
{"version":3,"file":"index.es53.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js"],"sourcesContent":["/**\n * @license lucide-react v0.477.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n"],"names":["defaultAttributes"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOG,IAACA,IAAoB;AAAA,EACtB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAClB;","x_google_ignoreList":[0]}
|
package/dist/index.es54.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { composeEventHandlers as p } from "./index.es57.js";
|
|
3
|
-
import { useComposedRefs as R } from "./index.
|
|
4
|
-
import { createContextScope as V, createContext as q } from "./index.
|
|
5
|
-
import { useId as C } from "./index.
|
|
6
|
-
import { useControllableState as K } from "./index.
|
|
7
|
-
import { DismissableLayer as U } from "./index.
|
|
8
|
-
import { FocusScope as Y } from "./index.
|
|
9
|
-
import { Portal as Z } from "./index.
|
|
3
|
+
import { useComposedRefs as R } from "./index.es59.js";
|
|
4
|
+
import { createContextScope as V, createContext as q } from "./index.es60.js";
|
|
5
|
+
import { useId as C } from "./index.es65.js";
|
|
6
|
+
import { useControllableState as K } from "./index.es70.js";
|
|
7
|
+
import { DismissableLayer as U } from "./index.es62.js";
|
|
8
|
+
import { FocusScope as Y } from "./index.es64.js";
|
|
9
|
+
import { Portal as Z } from "./index.es67.js";
|
|
10
10
|
import { Presence as _ } from "./index.es77.js";
|
|
11
|
-
import { Primitive as g } from "./index.
|
|
12
|
-
import { useFocusGuards as z } from "./index.
|
|
13
|
-
import J from "./index.
|
|
14
|
-
import { hideOthers as Q } from "./index.
|
|
11
|
+
import { Primitive as g } from "./index.es68.js";
|
|
12
|
+
import { useFocusGuards as z } from "./index.es63.js";
|
|
13
|
+
import J from "./index.es75.js";
|
|
14
|
+
import { hideOthers as Q } from "./index.es74.js";
|
|
15
15
|
import { Slot as X } from "./index.es33.js";
|
|
16
16
|
import { jsx as i, jsxs as y, Fragment as I } from "react/jsx-runtime";
|
|
17
17
|
var h = "Dialog", [O, Ne] = V(h), [ee, u] = O(h), x = (e) => {
|
package/dist/index.es55.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { Primitive as v } from "./index.
|
|
2
|
+
import { Primitive as v } from "./index.es68.js";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
|
|
5
5
|
const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
package/dist/index.es56.js
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof n == "function")
|
|
4
|
-
return n(o);
|
|
5
|
-
n != null && (n.current = o);
|
|
6
|
-
}
|
|
7
|
-
function i(...n) {
|
|
8
|
-
return (o) => {
|
|
9
|
-
let u = !1;
|
|
10
|
-
const c = n.map((t) => {
|
|
11
|
-
const e = l(t, o);
|
|
12
|
-
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
-
});
|
|
14
|
-
if (u)
|
|
15
|
-
return () => {
|
|
16
|
-
for (let t = 0; t < c.length; t++) {
|
|
17
|
-
const e = c[t];
|
|
18
|
-
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function s(...n) {
|
|
24
|
-
return f.useCallback(i(...n), n);
|
|
1
|
+
function m(t, [a, n]) {
|
|
2
|
+
return Math.min(n, Math.max(a, t));
|
|
25
3
|
}
|
|
26
4
|
export {
|
|
27
|
-
|
|
28
|
-
s as useComposedRefs
|
|
5
|
+
m as clamp
|
|
29
6
|
};
|
|
30
7
|
//# sourceMappingURL=index.es56.js.map
|
package/dist/index.es56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es56.js","sources":["../../../node_modules/.pnpm/@radix-ui+
|
|
1
|
+
{"version":3,"file":"index.es56.js","sources":["../../../node_modules/.pnpm/@radix-ui+number@1.1.0/node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
|
package/dist/index.es58.js
CHANGED
|
@@ -1,69 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { createContextScope as O } from "./index.es60.js";
|
|
3
|
+
import { useComposedRefs as S } from "./index.es59.js";
|
|
4
|
+
import { Slot as x } from "./index.es33.js";
|
|
5
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
6
|
+
function h(s) {
|
|
7
|
+
const f = s + "CollectionProvider", [A, N] = O(f), [_, m] = A(
|
|
8
|
+
f,
|
|
9
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
10
|
+
), u = (c) => {
|
|
11
|
+
const { scope: e, children: l } = c, o = n.useRef(null), t = n.useRef(/* @__PURE__ */ new Map()).current;
|
|
12
|
+
return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
7
13
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${t}\``);
|
|
14
|
-
}
|
|
15
|
-
return [p, i];
|
|
16
|
-
}
|
|
17
|
-
function w(t, c = []) {
|
|
18
|
-
let n = [];
|
|
19
|
-
function p(r, e) {
|
|
20
|
-
const o = u.createContext(e), s = n.length;
|
|
21
|
-
n = [...n, e];
|
|
22
|
-
const d = (x) => {
|
|
23
|
-
const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
|
|
24
|
-
return /* @__PURE__ */ f(S.Provider, { value: h, children: v });
|
|
25
|
-
};
|
|
26
|
-
d.displayName = r + "Provider";
|
|
27
|
-
function C(x, m) {
|
|
28
|
-
const v = m?.[t]?.[s] || o, a = u.useContext(v);
|
|
29
|
-
if (a) return a;
|
|
30
|
-
if (e !== void 0) return e;
|
|
31
|
-
throw new Error(`\`${x}\` must be used within \`${r}\``);
|
|
14
|
+
u.displayName = f;
|
|
15
|
+
const a = s + "CollectionSlot", p = n.forwardRef(
|
|
16
|
+
(c, e) => {
|
|
17
|
+
const { scope: l, children: o } = c, t = m(a, l), r = S(e, t.collectionRef);
|
|
18
|
+
return /* @__PURE__ */ d(x, { ref: r, children: o });
|
|
32
19
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
20
|
+
);
|
|
21
|
+
p.displayName = a;
|
|
22
|
+
const C = s + "CollectionItemSlot", R = "data-radix-collection-item", M = n.forwardRef(
|
|
23
|
+
(c, e) => {
|
|
24
|
+
const { scope: l, children: o, ...t } = c, r = n.useRef(null), I = S(e, r), i = m(C, l);
|
|
25
|
+
return n.useEffect(() => (i.itemMap.set(r, { ref: r, ...t }), () => void i.itemMap.delete(r))), /* @__PURE__ */ d(x, { [R]: "", ref: I, children: o });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
M.displayName = C;
|
|
29
|
+
function E(c) {
|
|
30
|
+
const e = m(s + "CollectionConsumer", c);
|
|
31
|
+
return n.useCallback(() => {
|
|
32
|
+
const o = e.collectionRef.current;
|
|
33
|
+
if (!o) return [];
|
|
34
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
35
|
+
return Array.from(e.itemMap.values()).sort(
|
|
36
|
+
(i, T) => t.indexOf(i.ref.current) - t.indexOf(T.ref.current)
|
|
42
37
|
);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const n = () => {
|
|
51
|
-
const p = t.map((i) => ({
|
|
52
|
-
useScope: i(),
|
|
53
|
-
scopeName: i.scopeName
|
|
54
|
-
}));
|
|
55
|
-
return function(r) {
|
|
56
|
-
const e = p.reduce((o, { useScope: s, scopeName: d }) => {
|
|
57
|
-
const x = s(r)[`__scope${d}`];
|
|
58
|
-
return { ...o, ...x };
|
|
59
|
-
}, {});
|
|
60
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
return n.scopeName = c.scopeName, n;
|
|
38
|
+
}, [e.collectionRef, e.itemMap]);
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
{ Provider: u, Slot: p, ItemSlot: M },
|
|
42
|
+
E,
|
|
43
|
+
N
|
|
44
|
+
];
|
|
64
45
|
}
|
|
65
46
|
export {
|
|
66
|
-
|
|
67
|
-
w as createContextScope
|
|
47
|
+
h as createCollection
|
|
68
48
|
};
|
|
69
49
|
//# sourceMappingURL=index.es58.js.map
|
package/dist/index.es58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es58.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es58.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-collection@1.1.2_@types+react-dom@18.3.5_@types+react@18.3.18__@types+r_f0ca6b954f28db1d942bcdb5b2347248/node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":";;;;;AAQA,SAASA,EAAiBC,GAAM;AAC9B,QAAMC,IAAgBD,IAAO,sBACvB,CAACE,GAAyBC,CAAqB,IAAIC,EAAmBH,CAAa,GACnF,CAACI,GAAwBC,CAAoB,IAAIJ;AAAA,IACrDD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAK,EAAA;AAAA,EACvE,GACKM,IAAqB,CAACC,MAAU;AACpC,UAAM,EAAE,OAAAC,GAAO,UAAAC,EAAQ,IAAKF,GACtBG,IAAMC,EAAM,OAAO,IAAI,GACvBC,IAAUD,EAAM,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACxD,WAAuB,gBAAAE,EAAIT,GAAwB,EAAE,OAAAI,GAAO,SAAAI,GAAS,eAAeF,GAAK,UAAAD,GAAU;AAAA,EACpG;AACD,EAAAH,EAAmB,cAAcN;AACjC,QAAMc,IAAuBf,IAAO,kBAC9BgB,IAAiBJ,EAAM;AAAA,IAC3B,CAACJ,GAAOS,MAAiB;AACvB,YAAM,EAAE,OAAAR,GAAO,UAAAC,EAAQ,IAAKF,GACtBU,IAAUZ,EAAqBS,GAAsBN,CAAK,GAC1DU,IAAeC,EAAgBH,GAAcC,EAAQ,aAAa;AACxE,aAAuB,gBAAAJ,EAAIO,GAAM,EAAE,KAAKF,GAAc,UAAAT,EAAQ,CAAE;AAAA,IACtE;AAAA,EACG;AACD,EAAAM,EAAe,cAAcD;AAC7B,QAAMO,IAAiBtB,IAAO,sBACxBuB,IAAiB,8BACjBC,IAAqBZ,EAAM;AAAA,IAC/B,CAACJ,GAAOS,MAAiB;AACvB,YAAM,EAAE,OAAAR,GAAO,UAAAC,GAAU,GAAGe,EAAU,IAAGjB,GACnCG,IAAMC,EAAM,OAAO,IAAI,GACvBO,IAAeC,EAAgBH,GAAcN,CAAG,GAChDO,IAAUZ,EAAqBgB,GAAgBb,CAAK;AAC1DG,aAAAA,EAAM,UAAU,OACdM,EAAQ,QAAQ,IAAIP,GAAK,EAAE,KAAAA,GAAK,GAAGc,GAAU,GACtC,MAAM,KAAKP,EAAQ,QAAQ,OAAOP,CAAG,EAC7C,GACsB,gBAAAG,EAAIO,GAAM,EAAO,CAACE,CAAc,GAAG,IAAM,KAAKJ,GAAc,UAAAT,GAAU;AAAA,IACnG;AAAA,EACG;AACD,EAAAc,EAAmB,cAAcF;AACjC,WAASI,EAAcjB,GAAO;AAC5B,UAAMS,IAAUZ,EAAqBN,IAAO,sBAAsBS,CAAK;AAWvE,WAViBG,EAAM,YAAY,MAAM;AACvC,YAAMe,IAAiBT,EAAQ,cAAc;AAC7C,UAAI,CAACS,EAAgB,QAAO,CAAE;AAC9B,YAAMC,IAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIJ,CAAc,GAAG,CAAC;AAKtF,aAJc,MAAM,KAAKL,EAAQ,QAAQ,QAAQ,EACtB;AAAA,QACzB,CAACW,GAAGC,MAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MACnF;AAAA,IAEF,GAAE,CAACZ,EAAQ,eAAeA,EAAQ,OAAO,CAAC;AAAA,EAE/C;AACE,SAAO;AAAA,IACL,EAAE,UAAUX,GAAoB,MAAMS,GAAgB,UAAUQ,EAAoB;AAAA,IACpFE;AAAA,IACAvB;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
package/dist/index.es59.js
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
onChange: s = () => {
|
|
7
|
-
}
|
|
8
|
-
}) {
|
|
9
|
-
const [e, n] = v({ defaultProp: r, onChange: s }), o = t !== void 0, i = o ? t : e, u = f(s), d = l.useCallback(
|
|
10
|
-
(c) => {
|
|
11
|
-
if (o) {
|
|
12
|
-
const a = typeof c == "function" ? c(t) : c;
|
|
13
|
-
a !== t && u(a);
|
|
14
|
-
} else
|
|
15
|
-
n(c);
|
|
16
|
-
},
|
|
17
|
-
[o, t, n, u]
|
|
18
|
-
);
|
|
19
|
-
return [i, d];
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
function l(n, o) {
|
|
3
|
+
if (typeof n == "function")
|
|
4
|
+
return n(o);
|
|
5
|
+
n != null && (n.current = o);
|
|
20
6
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
function i(...n) {
|
|
8
|
+
return (o) => {
|
|
9
|
+
let u = !1;
|
|
10
|
+
const c = n.map((t) => {
|
|
11
|
+
const e = l(t, o);
|
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
+
});
|
|
14
|
+
if (u)
|
|
15
|
+
return () => {
|
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
|
17
|
+
const e = c[t];
|
|
18
|
+
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function s(...n) {
|
|
24
|
+
return f.useCallback(i(...n), n);
|
|
29
25
|
}
|
|
30
26
|
export {
|
|
31
|
-
|
|
27
|
+
i as composeRefs,
|
|
28
|
+
s as useComposedRefs
|
|
32
29
|
};
|
|
33
30
|
//# sourceMappingURL=index.es59.js.map
|
package/dist/index.es59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es59.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es59.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/composeRefs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index.es60.js
CHANGED
|
@@ -1,9 +1,69 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
+
function $(t, c) {
|
|
4
|
+
const n = u.createContext(c), p = (r) => {
|
|
5
|
+
const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
|
|
6
|
+
return /* @__PURE__ */ f(n.Provider, { value: s, children: e });
|
|
7
|
+
};
|
|
8
|
+
p.displayName = t + "Provider";
|
|
9
|
+
function i(r) {
|
|
10
|
+
const e = u.useContext(n);
|
|
11
|
+
if (e) return e;
|
|
12
|
+
if (c !== void 0) return c;
|
|
13
|
+
throw new Error(`\`${r}\` must be used within \`${t}\``);
|
|
14
|
+
}
|
|
15
|
+
return [p, i];
|
|
16
|
+
}
|
|
17
|
+
function w(t, c = []) {
|
|
18
|
+
let n = [];
|
|
19
|
+
function p(r, e) {
|
|
20
|
+
const o = u.createContext(e), s = n.length;
|
|
21
|
+
n = [...n, e];
|
|
22
|
+
const d = (x) => {
|
|
23
|
+
const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
|
|
24
|
+
return /* @__PURE__ */ f(S.Provider, { value: h, children: v });
|
|
25
|
+
};
|
|
26
|
+
d.displayName = r + "Provider";
|
|
27
|
+
function C(x, m) {
|
|
28
|
+
const v = m?.[t]?.[s] || o, a = u.useContext(v);
|
|
29
|
+
if (a) return a;
|
|
30
|
+
if (e !== void 0) return e;
|
|
31
|
+
throw new Error(`\`${x}\` must be used within \`${r}\``);
|
|
32
|
+
}
|
|
33
|
+
return [d, C];
|
|
34
|
+
}
|
|
35
|
+
const i = () => {
|
|
36
|
+
const r = n.map((e) => u.createContext(e));
|
|
37
|
+
return function(o) {
|
|
38
|
+
const s = o?.[t] || r;
|
|
39
|
+
return u.useMemo(
|
|
40
|
+
() => ({ [`__scope${t}`]: { ...o, [t]: s } }),
|
|
41
|
+
[o, s]
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return i.scopeName = t, [p, P(i, ...c)];
|
|
46
|
+
}
|
|
47
|
+
function P(...t) {
|
|
48
|
+
const c = t[0];
|
|
49
|
+
if (t.length === 1) return c;
|
|
50
|
+
const n = () => {
|
|
51
|
+
const p = t.map((i) => ({
|
|
52
|
+
useScope: i(),
|
|
53
|
+
scopeName: i.scopeName
|
|
54
|
+
}));
|
|
55
|
+
return function(r) {
|
|
56
|
+
const e = p.reduce((o, { useScope: s, scopeName: d }) => {
|
|
57
|
+
const x = s(r)[`__scope${d}`];
|
|
58
|
+
return { ...o, ...x };
|
|
59
|
+
}, {});
|
|
60
|
+
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
return n.scopeName = c.scopeName, n;
|
|
5
64
|
}
|
|
6
65
|
export {
|
|
7
|
-
|
|
66
|
+
$ as createContext,
|
|
67
|
+
w as createContextScope
|
|
8
68
|
};
|
|
9
69
|
//# sourceMappingURL=index.es60.js.map
|