@acronis-platform/shadcn-uikit 0.30.0 → 0.31.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/_virtual/index.js +5 -3
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +5 -2
- package/dist/components/ui/aspect-ratio.js +16 -3
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +3 -4
- package/dist/components/ui/avatar.js +25 -23
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -2
- package/dist/components/ui/label.js +8 -9
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/visually-hidden.d.ts +2 -2
- package/dist/components/ui/visually-hidden.js +25 -3
- package/dist/components/ui/visually-hidden.js.map +1 -1
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/fallback/AvatarFallback.js +31 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/fallback/AvatarFallback.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/image/AvatarImage.js +40 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/image/AvatarImage.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/image/useImageLoadingStatus.js +24 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/image/useImageLoadingStatus.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/AvatarRoot.js +31 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/AvatarRoot.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/AvatarRootContext.js +15 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/AvatarRootContext.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/stateAttributesMapping.js +7 -0
- package/dist/node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/avatar/root/stateAttributesMapping.js.map +1 -0
- package/dist/node_modules/.pnpm/@base-ui_utils@0.2.4_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/esm/store/useStore.js +1 -1
- package/dist/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/.pnpm/recharts@3.6.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react-is@19.2.3_react@18.3.1_redux@5.0.1/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/themes/acronis-white-label.css +1 -1
- package/package.json +2 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.8_@types_react-dom@18.3.7_@types_react@18.3.27__@types_7ad113d75fc6204492ebbfa91b49d130/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -44
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.8_@types_react-dom@18.3.7_@types_react@18.3.27__@types_7ad113d75fc6204492ebbfa91b49d130/node_modules/@radix-ui/react-aspect-ratio/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.11_@types_react-dom@18.3.7_@types_react@18.3.27__@types_reac_5f98ab88aaa31d5c2a223f717db04a0c/node_modules/@radix-ui/react-avatar/dist/index.js +0 -76
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.11_@types_react-dom@18.3.7_@types_react@18.3.27__@types_reac_5f98ab88aaa31d5c2a223f717db04a0c/node_modules/@radix-ui/react-avatar/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.3_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js +0 -58
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.3_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.4_@types_react-dom@18.3.7_@types_react@18.3.27__@ty_8f94b9a79abf42a8b3509cf40a0ac65d/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.4_@types_react-dom@18.3.7_@types_react@18.3.27__@ty_8f94b9a79abf42a8b3509cf40a0ac65d/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acronis-platform/shadcn-uikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Acronis shadcn UI component library built with TypeScript, following shadcn design principles",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"build:llms": "tsx scripts/generate-llms-txt.ts",
|
|
143
143
|
"generate:icons": "tsx scripts/generate-icons.ts",
|
|
144
144
|
"generate:icon-stories": "tsx scripts/generate-icon-stories.ts",
|
|
145
|
+
"generate:themes": "tsx scripts/generate-white-label-themes.ts",
|
|
145
146
|
"dev": "vite build --watch",
|
|
146
147
|
"type-check": "tsc --noEmit",
|
|
147
148
|
"test": "vitest",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { Primitive as d } from "../../../../../@radix-ui_react-primitive@2.1.4_@types_react-dom@18.3.7_@types_react@18.3.27__@types_re_31f1dfe54ed79c6f4643d427782d19d7/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
3
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
var m = "AspectRatio", o = s.forwardRef(
|
|
5
|
-
(r, i) => {
|
|
6
|
-
const { ratio: a = 1 / 1, style: e, ...p } = r;
|
|
7
|
-
return /* @__PURE__ */ t(
|
|
8
|
-
"div",
|
|
9
|
-
{
|
|
10
|
-
style: {
|
|
11
|
-
// ensures inner element is contained
|
|
12
|
-
position: "relative",
|
|
13
|
-
// ensures padding bottom trick maths works
|
|
14
|
-
width: "100%",
|
|
15
|
-
paddingBottom: `${100 / a}%`
|
|
16
|
-
},
|
|
17
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
18
|
-
children: /* @__PURE__ */ t(
|
|
19
|
-
d.div,
|
|
20
|
-
{
|
|
21
|
-
...p,
|
|
22
|
-
ref: i,
|
|
23
|
-
style: {
|
|
24
|
-
...e,
|
|
25
|
-
// ensures children expand in ratio
|
|
26
|
-
position: "absolute",
|
|
27
|
-
top: 0,
|
|
28
|
-
right: 0,
|
|
29
|
-
bottom: 0,
|
|
30
|
-
left: 0
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
o.displayName = m;
|
|
39
|
-
var f = o;
|
|
40
|
-
export {
|
|
41
|
-
o as AspectRatio,
|
|
42
|
-
f as Root
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-aspect-ratio@1.1.8_@types+react-dom@18.3.7_@types+react@18.3.27__@types_7ad113d75fc6204492ebbfa91b49d130/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs"],"sourcesContent":["// src/aspect-ratio.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"AspectRatio\";\nvar AspectRatio = React.forwardRef(\n (props, forwardedRef) => {\n const { ratio = 1 / 1, style, ...aspectRatioProps } = props;\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n style: {\n // ensures inner element is contained\n position: \"relative\",\n // ensures padding bottom trick maths works\n width: \"100%\",\n paddingBottom: `${100 / ratio}%`\n },\n \"data-radix-aspect-ratio-wrapper\": \"\",\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...aspectRatioProps,\n ref: forwardedRef,\n style: {\n ...style,\n // ensures children expand in ratio\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n )\n }\n );\n }\n);\nAspectRatio.displayName = NAME;\nvar Root = AspectRatio;\nexport {\n AspectRatio,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","AspectRatio","React","props","forwardedRef","ratio","style","aspectRatioProps","jsx","Primitive","Root"],"mappings":";;;AAIA,IAAIA,IAAO,eACPC,IAAcC,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,OAAAC,IAAQ,IAAI,GAAG,OAAAC,GAAO,GAAGC,EAAgB,IAAKJ;AACtD,WAAuB,gBAAAK;AAAA,MACrB;AAAA,MACA;AAAA,QACE,OAAO;AAAA;AAAA,UAEL,UAAU;AAAA;AAAA,UAEV,OAAO;AAAA,UACP,eAAe,GAAG,MAAMH,CAAK;AAAA,QACvC;AAAA,QACQ,mCAAmC;AAAA,QACnC,UAA0B,gBAAAG;AAAA,UACxBC,EAAU;AAAA,UACV;AAAA,YACE,GAAGF;AAAA,YACH,KAAKH;AAAA,YACL,OAAO;AAAA,cACL,GAAGE;AAAA;AAAA,cAEH,UAAU;AAAA,cACV,KAAK;AAAA,cACL,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,MAAM;AAAA,YACpB;AAAA,UACA;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,EACE;AACF;AACAL,EAAY,cAAcD;AACvB,IAACU,IAAOT;","x_google_ignoreList":[0]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
import { createContextScope as C } from "../../../../../@radix-ui_react-context@1.1.3_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
-
import { useCallbackRef as h } from "../../../../../@radix-ui_react-use-callback-ref@1.1.1_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
4
|
-
import { useLayoutEffect as f } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
5
|
-
import { Primitive as m } from "../../../../../@radix-ui_react-primitive@2.1.4_@types_react-dom@18.3.7_@types_react@18.3.27__@types_re_31f1dfe54ed79c6f4643d427782d19d7/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
6
|
-
import { useIsHydrated as _ } from "../../../../../@radix-ui_react-use-is-hydrated@0.1.0_@types_react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js";
|
|
7
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
-
var v = "Avatar", [y] = C(v), [x, A] = y(v), L = i.forwardRef(
|
|
9
|
-
(t, e) => {
|
|
10
|
-
const { __scopeAvatar: o, ...r } = t, [n, a] = i.useState("idle");
|
|
11
|
-
return /* @__PURE__ */ l(
|
|
12
|
-
x,
|
|
13
|
-
{
|
|
14
|
-
scope: o,
|
|
15
|
-
imageLoadingStatus: n,
|
|
16
|
-
onImageLoadingStatusChange: a,
|
|
17
|
-
children: /* @__PURE__ */ l(m.span, { ...r, ref: e })
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
L.displayName = v;
|
|
23
|
-
var S = "AvatarImage", E = i.forwardRef(
|
|
24
|
-
(t, e) => {
|
|
25
|
-
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
26
|
-
}, ...a } = t, u = A(S, o), s = N(r, a), d = h((c) => {
|
|
27
|
-
n(c), u.onImageLoadingStatusChange(c);
|
|
28
|
-
});
|
|
29
|
-
return f(() => {
|
|
30
|
-
s !== "idle" && d(s);
|
|
31
|
-
}, [s, d]), s === "loaded" ? /* @__PURE__ */ l(m.img, { ...a, ref: e, src: r }) : null;
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
E.displayName = S;
|
|
35
|
-
var I = "AvatarFallback", R = i.forwardRef(
|
|
36
|
-
(t, e) => {
|
|
37
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = t, a = A(I, o), [u, s] = i.useState(r === void 0);
|
|
38
|
-
return i.useEffect(() => {
|
|
39
|
-
if (r !== void 0) {
|
|
40
|
-
const d = window.setTimeout(() => s(!0), r);
|
|
41
|
-
return () => window.clearTimeout(d);
|
|
42
|
-
}
|
|
43
|
-
}, [r]), u && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(m.span, { ...n, ref: e }) : null;
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
R.displayName = I;
|
|
47
|
-
function p(t, e) {
|
|
48
|
-
return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
49
|
-
}
|
|
50
|
-
function N(t, { referrerPolicy: e, crossOrigin: o }) {
|
|
51
|
-
const r = _(), n = i.useRef(null), a = r ? (n.current || (n.current = new window.Image()), n.current) : null, [u, s] = i.useState(
|
|
52
|
-
() => p(a, t)
|
|
53
|
-
);
|
|
54
|
-
return f(() => {
|
|
55
|
-
s(p(a, t));
|
|
56
|
-
}, [a, t]), f(() => {
|
|
57
|
-
const d = (w) => () => {
|
|
58
|
-
s(w);
|
|
59
|
-
};
|
|
60
|
-
if (!a) return;
|
|
61
|
-
const c = d("loaded"), g = d("error");
|
|
62
|
-
return a.addEventListener("load", c), a.addEventListener("error", g), e && (a.referrerPolicy = e), typeof o == "string" && (a.crossOrigin = o), () => {
|
|
63
|
-
a.removeEventListener("load", c), a.removeEventListener("error", g);
|
|
64
|
-
};
|
|
65
|
-
}, [a, o, e]), u;
|
|
66
|
-
}
|
|
67
|
-
var H = L, j = E, B = R;
|
|
68
|
-
export {
|
|
69
|
-
L as Avatar,
|
|
70
|
-
R as AvatarFallback,
|
|
71
|
-
E as AvatarImage,
|
|
72
|
-
B as Fallback,
|
|
73
|
-
j as Image,
|
|
74
|
-
H as Root
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.11_@types+react-dom@18.3.7_@types+react@18.3.27__@types+reac_5f98ab88aaa31d5c2a223f717db04a0c/node_modules/@radix-ui/react-avatar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AVATAR_NAME","createAvatarContext","createContextScope","AvatarProvider","useAvatarContext","Avatar","React","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","useLayoutEffect","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","useIsHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback"],"mappings":";;;;;;;AAUA,IAAIA,IAAc,UACd,CAACC,CAAsC,IAAIC,EAAmBF,CAAW,GACzE,CAACG,GAAgBC,CAAgB,IAAIH,EAAoBD,CAAW,GACpEK,IAASC,EAAM;AAAA,EACjB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,eAAAC,GAAe,GAAGC,EAAW,IAAKH,GACpC,CAACI,GAAoBC,CAAqB,IAAIN,EAAM,SAAS,MAAM;AACzE,WAAuB,gBAAAO;AAAA,MACrBV;AAAA,MACA;AAAA,QACE,OAAOM;AAAA,QACP,oBAAAE;AAAA,QACA,4BAA4BC;AAAA,QAC5B,UAA0B,gBAAAC,EAAIC,EAAU,MAAM,EAAE,GAAGJ,GAAa,KAAKF,EAAY,CAAE;AAAA,MAC3F;AAAA,IACA;AAAA,EACE;AACF;AACAH,EAAO,cAAcL;AACrB,IAAIe,IAAa,eACbC,IAAcV,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,eAAAC,GAAe,KAAAQ,GAAK,uBAAAC,IAAwB,MAAM;AAAA,IAC1D,GAAG,GAAGC,EAAU,IAAKZ,GACfa,IAAUhB,EAAiBW,GAAYN,CAAa,GACpDE,IAAqBU,EAAsBJ,GAAKE,CAAU,GAC1DG,IAA4BC,EAAe,CAACC,MAAW;AAC3D,MAAAN,EAAsBM,CAAM,GAC5BJ,EAAQ,2BAA2BI,CAAM;AAAA,IAC3C,CAAC;AACDC,WAAAA,EAAgB,MAAM;AACpB,MAAId,MAAuB,UACzBW,EAA0BX,CAAkB;AAAA,IAEhD,GAAG,CAACA,GAAoBW,CAAyB,CAAC,GAC3CX,MAAuB,WAA2B,gBAAAE,EAAIC,EAAU,KAAK,EAAE,GAAGK,GAAY,KAAKX,GAAc,KAAAS,EAAG,CAAE,IAAI;AAAA,EAC3H;AACF;AACAD,EAAY,cAAcD;AAC1B,IAAIW,IAAgB,kBAChBC,IAAiBrB,EAAM;AAAA,EACzB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,eAAAC,GAAe,SAAAmB,GAAS,GAAGC,EAAa,IAAKtB,GAC/Ca,IAAUhB,EAAiBsB,GAAejB,CAAa,GACvD,CAACqB,GAAWC,CAAY,IAAIzB,EAAM,SAASsB,MAAY,MAAM;AACnE,WAAAtB,EAAM,UAAU,MAAM;AACpB,UAAIsB,MAAY,QAAQ;AACtB,cAAMI,IAAU,OAAO,WAAW,MAAMD,EAAa,EAAI,GAAGH,CAAO;AACnE,eAAO,MAAM,OAAO,aAAaI,CAAO;AAAA,MAC1C;AAAA,IACF,GAAG,CAACJ,CAAO,CAAC,GACLE,KAAaV,EAAQ,uBAAuB,WAA2B,gBAAAP,EAAIC,EAAU,MAAM,EAAE,GAAGe,GAAe,KAAKrB,EAAY,CAAE,IAAI;AAAA,EAC/I;AACF;AACAmB,EAAe,cAAcD;AAC7B,SAASO,EAAqBC,GAAOjB,GAAK;AACxC,SAAKiB,IAGAjB,KAGDiB,EAAM,QAAQjB,MAChBiB,EAAM,MAAMjB,IAEPiB,EAAM,YAAYA,EAAM,eAAe,IAAI,WAAW,aALpD,UAHA;AASX;AACA,SAASb,EAAsBJ,GAAK,EAAE,gBAAAkB,GAAgB,aAAAC,EAAW,GAAI;AACnE,QAAMC,IAAaC,EAAa,GAC1BC,IAAWjC,EAAM,OAAO,IAAI,GAC5B4B,IACCG,KACAE,EAAS,YACZA,EAAS,UAAU,IAAI,OAAO,MAAK,IAE9BA,EAAS,WAJQ,MAMpB,CAACC,GAAeC,CAAgB,IAAInC,EAAM;AAAA,IAC9C,MAAM2B,EAAqBC,GAAOjB,CAAG;AAAA,EACzC;AACEQ,SAAAA,EAAgB,MAAM;AACpB,IAAAgB,EAAiBR,EAAqBC,GAAOjB,CAAG,CAAC;AAAA,EACnD,GAAG,CAACiB,GAAOjB,CAAG,CAAC,GACfQ,EAAgB,MAAM;AACpB,UAAMiB,IAAe,CAAClB,MAAW,MAAM;AACrC,MAAAiB,EAAiBjB,CAAM;AAAA,IACzB;AACA,QAAI,CAACU,EAAO;AACZ,UAAMS,IAAaD,EAAa,QAAQ,GAClCE,IAAcF,EAAa,OAAO;AACxC,WAAAR,EAAM,iBAAiB,QAAQS,CAAU,GACzCT,EAAM,iBAAiB,SAASU,CAAW,GACvCT,MACFD,EAAM,iBAAiBC,IAErB,OAAOC,KAAgB,aACzBF,EAAM,cAAcE,IAEf,MAAM;AACX,MAAAF,EAAM,oBAAoB,QAAQS,CAAU,GAC5CT,EAAM,oBAAoB,SAASU,CAAW;AAAA,IAChD;AAAA,EACF,GAAG,CAACV,GAAOE,GAAaD,CAAc,CAAC,GAChCK;AACT;AACG,IAACK,IAAOxC,GACPyC,IAAQ9B,GACR+B,IAAWpB;","x_google_ignoreList":[0]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
function $(e, x = []) {
|
|
4
|
-
let o = [];
|
|
5
|
-
function f(r, n) {
|
|
6
|
-
const t = i.createContext(n);
|
|
7
|
-
t.displayName = r + "Context";
|
|
8
|
-
const c = o.length;
|
|
9
|
-
o = [...o, n];
|
|
10
|
-
const m = (a) => {
|
|
11
|
-
var l;
|
|
12
|
-
const { scope: s, children: C, ...p } = a, d = ((l = s == null ? void 0 : s[e]) == null ? void 0 : l[c]) || t, v = i.useMemo(() => p, Object.values(p));
|
|
13
|
-
return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
|
|
14
|
-
};
|
|
15
|
-
m.displayName = r + "Provider";
|
|
16
|
-
function S(a, s) {
|
|
17
|
-
var d;
|
|
18
|
-
const C = ((d = s == null ? void 0 : s[e]) == null ? void 0 : d[c]) || t, p = i.useContext(C);
|
|
19
|
-
if (p) return p;
|
|
20
|
-
if (n !== void 0) return n;
|
|
21
|
-
throw new Error(`\`${a}\` must be used within \`${r}\``);
|
|
22
|
-
}
|
|
23
|
-
return [m, S];
|
|
24
|
-
}
|
|
25
|
-
const u = () => {
|
|
26
|
-
const r = o.map((n) => i.createContext(n));
|
|
27
|
-
return function(t) {
|
|
28
|
-
const c = (t == null ? void 0 : t[e]) || r;
|
|
29
|
-
return i.useMemo(
|
|
30
|
-
() => ({ [`__scope${e}`]: { ...t, [e]: c } }),
|
|
31
|
-
[t, c]
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
return u.scopeName = e, [f, h(u, ...x)];
|
|
36
|
-
}
|
|
37
|
-
function h(...e) {
|
|
38
|
-
const x = e[0];
|
|
39
|
-
if (e.length === 1) return x;
|
|
40
|
-
const o = () => {
|
|
41
|
-
const f = e.map((u) => ({
|
|
42
|
-
useScope: u(),
|
|
43
|
-
scopeName: u.scopeName
|
|
44
|
-
}));
|
|
45
|
-
return function(r) {
|
|
46
|
-
const n = f.reduce((t, { useScope: c, scopeName: m }) => {
|
|
47
|
-
const a = c(r)[`__scope${m}`];
|
|
48
|
-
return { ...t, ...a };
|
|
49
|
-
}, {});
|
|
50
|
-
return i.useMemo(() => ({ [`__scope${x.scopeName}`]: n }), [n]);
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
return o.scopeName = x.scopeName, o;
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
$ as createContextScope
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-context@1.1.3_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n Context.displayName = rootComponentName + \"Context\";\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n BaseContext.displayName = rootComponentName + \"Context\";\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","rootComponentName","defaultContext","BaseContext","React","index","Provider","props","scope","children","context","Context","_a","value","jsx","useContext2","consumerName","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAoBA,SAASA,EAAmBC,GAAWC,IAAyB,IAAI;AAClE,MAAIC,IAAkB,CAAA;AACtB,WAASC,EAAeC,GAAmBC,GAAgB;AACzD,UAAMC,IAAcC,EAAM,cAAcF,CAAc;AACtD,IAAAC,EAAY,cAAcF,IAAoB;AAC9C,UAAMI,IAAQN,EAAgB;AAC9B,IAAAA,IAAkB,CAAC,GAAGA,GAAiBG,CAAc;AACrD,UAAMI,IAAW,CAACC,MAAU;;AAC1B,YAAM,EAAE,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAO,IAAKH,GAClCI,MAAUC,IAAAJ,KAAA,gBAAAA,EAAQX,OAAR,gBAAAe,EAAqBP,OAAUF,GACzCU,IAAQT,EAAM,QAAQ,MAAMM,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,aAAuB,gBAAAI,EAAIH,EAAQ,UAAU,EAAE,OAAAE,GAAO,UAAAJ,EAAQ,CAAE;AAAA,IAClE;AACA,IAAAH,EAAS,cAAcL,IAAoB;AAC3C,aAASc,EAAYC,GAAcR,GAAO;;AACxC,YAAMG,MAAUC,IAAAJ,KAAA,gBAAAA,EAAQX,OAAR,gBAAAe,EAAqBP,OAAUF,GACzCO,IAAUN,EAAM,WAAWO,CAAO;AACxC,UAAID,EAAS,QAAOA;AACpB,UAAIR,MAAmB,OAAQ,QAAOA;AACtC,YAAM,IAAI,MAAM,KAAKc,CAAY,4BAA4Bf,CAAiB,IAAI;AAAA,IACpF;AACA,WAAO,CAACK,GAAUS,CAAW;AAAA,EAC/B;AACA,QAAME,IAAc,MAAM;AACxB,UAAMC,IAAgBnB,EAAgB,IAAI,CAACG,MAClCE,EAAM,cAAcF,CAAc,CAC1C;AACD,WAAO,SAAkBM,GAAO;AAC9B,YAAMW,KAAWX,KAAA,gBAAAA,EAAQX,OAAcqB;AACvC,aAAOd,EAAM;AAAA,QACX,OAAO,EAAE,CAAC,UAAUP,CAAS,EAAE,GAAG,EAAE,GAAGW,GAAO,CAACX,CAAS,GAAGsB,EAAQ;QACnE,CAACX,GAAOW,CAAQ;AAAA,MACxB;AAAA,IACI;AAAA,EACF;AACA,SAAAF,EAAY,YAAYpB,GACjB,CAACG,GAAgBoB,EAAqBH,GAAa,GAAGnB,CAAsB,CAAC;AACtF;AACA,SAASsB,KAAwBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAY;AAAA,MACtB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAA/B,QAAgB;AAE7E,cAAMgC,IADaD,EAASH,CAAc,EACV,UAAU5B,CAAS,EAAE;AACrD,eAAO,EAAE,GAAG8B,GAAa,GAAGE,EAAY;AAAA,MAC1C,GAAG,CAAA,CAAE;AACL,aAAOzB,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUkB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC9F;AAAA,EACF;AACA,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
function o(t) {
|
|
3
|
-
const e = r.useRef(t);
|
|
4
|
-
return r.useEffect(() => {
|
|
5
|
-
e.current = t;
|
|
6
|
-
}), r.useMemo(() => (...n) => {
|
|
7
|
-
var u;
|
|
8
|
-
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
|
9
|
-
}, []);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as useCallbackRef
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EACxB,CAAC,GACME,EAAM,QAAQ,MAAM,IAAIC;;AAAS,YAAAC,IAAAH,EAAY,YAAZ,gBAAAG,EAAA,KAAAH,GAAsB,GAAGE;AAAA,KAAO,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { s as r } from "../../../../../../../_virtual/index.js";
|
|
2
|
-
function s() {
|
|
3
|
-
return r.useSyncExternalStore(
|
|
4
|
-
e,
|
|
5
|
-
() => !0,
|
|
6
|
-
() => !1
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
function e() {
|
|
10
|
-
return () => {
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
s as useIsHydrated
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.0_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs"],"sourcesContent":["// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useIsHydrated","useSyncExternalStore","subscribe"],"mappings":";AAEA,SAASA,IAAgB;AACvB,SAAOC,EAAAA;AAAAA,IACLC;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACV;AACA;AACA,SAASA,IAAY;AACnB,SAAO,MAAM;AAAA,EACb;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { Primitive as o } from "../../../../../@radix-ui_react-primitive@2.1.4_@types_react-dom@18.3.7_@types_react@18.3.27__@types_re_31f1dfe54ed79c6f4643d427782d19d7/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
3
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
var d = Object.freeze({
|
|
5
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6
|
-
position: "absolute",
|
|
7
|
-
border: 0,
|
|
8
|
-
width: 1,
|
|
9
|
-
height: 1,
|
|
10
|
-
padding: 0,
|
|
11
|
-
margin: -1,
|
|
12
|
-
overflow: "hidden",
|
|
13
|
-
clip: "rect(0, 0, 0, 0)",
|
|
14
|
-
whiteSpace: "nowrap",
|
|
15
|
-
wordWrap: "normal"
|
|
16
|
-
}), l = "VisuallyHidden", e = a.forwardRef(
|
|
17
|
-
(r, i) => /* @__PURE__ */ t(
|
|
18
|
-
o.span,
|
|
19
|
-
{
|
|
20
|
-
...r,
|
|
21
|
-
ref: i,
|
|
22
|
-
style: { ...d, ...r.style }
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
);
|
|
26
|
-
e.displayName = l;
|
|
27
|
-
var p = e;
|
|
28
|
-
export {
|
|
29
|
-
p as Root,
|
|
30
|
-
d as VISUALLY_HIDDEN_STYLES,
|
|
31
|
-
e as VisuallyHidden
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.4_@types+react-dom@18.3.7_@types+react@18.3.27__@ty_8f94b9a79abf42a8b3509cf40a0ac65d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["// src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar VISUALLY_HIDDEN_STYLES = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n});\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VISUALLY_HIDDEN_STYLES,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["VISUALLY_HIDDEN_STYLES","NAME","VisuallyHidden","React","props","forwardedRef","jsx","Primitive","Root"],"mappings":";;;AAIG,IAACA,IAAyB,OAAO,OAAO;AAAA;AAAA,EAEzC,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,UAAU;AACZ,CAAC,GACGC,IAAO,kBACPC,IAAiBC,EAAM;AAAA,EACzB,CAACC,GAAOC,MACiB,gBAAAC;AAAA,IACrBC,EAAU;AAAA,IACV;AAAA,MACE,GAAGH;AAAA,MACH,KAAKC;AAAA,MACL,OAAO,EAAE,GAAGL,GAAwB,GAAGI,EAAM,MAAK;AAAA,IAC1D;AAAA,EACA;AAEA;AACAF,EAAe,cAAcD;AAC1B,IAACO,IAAON;","x_google_ignoreList":[0]}
|