@acronis-platform/shadcn-uikit 0.30.1 → 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.
Files changed (48) hide show
  1. package/dist/_virtual/index.js +5 -3
  2. package/dist/_virtual/index.js.map +1 -1
  3. package/dist/_virtual/index2.js +3 -2
  4. package/dist/_virtual/index2.js.map +1 -1
  5. package/dist/_virtual/index3.js +2 -5
  6. package/dist/_virtual/index3.js.map +1 -1
  7. package/dist/components/ui/aspect-ratio.d.ts +5 -2
  8. package/dist/components/ui/aspect-ratio.js +16 -3
  9. package/dist/components/ui/aspect-ratio.js.map +1 -1
  10. package/dist/components/ui/avatar.d.ts +3 -4
  11. package/dist/components/ui/avatar.js +25 -23
  12. package/dist/components/ui/avatar.js.map +1 -1
  13. package/dist/components/ui/label.d.ts +1 -2
  14. package/dist/components/ui/label.js +8 -9
  15. package/dist/components/ui/label.js.map +1 -1
  16. package/dist/components/ui/sheet.d.ts +1 -1
  17. package/dist/components/ui/visually-hidden.d.ts +2 -2
  18. package/dist/components/ui/visually-hidden.js +25 -3
  19. package/dist/components/ui/visually-hidden.js.map +1 -1
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. package/dist/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js +1 -1
  34. 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
  35. 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
  36. package/package.json +1 -1
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
@@ -1,6 +1,8 @@
1
- import { __require as r } from "../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js";
2
- var i = r();
1
+ import { getDefaultExportFromCjs as t } from "./_commonjsHelpers.js";
2
+ import { __require as e } from "../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index2.js";
3
+ var r = e();
4
+ const i = /* @__PURE__ */ t(r);
3
5
  export {
4
- i as s
6
+ i as default
5
7
  };
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,6 @@
1
- var e = { exports: {} };
1
+ import { __require as r } from "../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js";
2
+ var i = r();
2
3
  export {
3
- e as __module
4
+ i as s
4
5
  };
5
6
  //# sourceMappingURL=index2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs as t } from "./_commonjsHelpers.js";
2
- import { __require as e } from "../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index2.js";
3
- var r = e();
4
- const i = /* @__PURE__ */ t(r);
1
+ var e = { exports: {} };
5
2
  export {
6
- i as default
3
+ e as __module
7
4
  };
8
5
  //# sourceMappingURL=index3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,6 @@
1
- import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
2
- declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
1
+ import * as React from 'react';
2
+ interface AspectRatioProps extends React.ComponentPropsWithoutRef<'div'> {
3
+ ratio?: number;
4
+ }
5
+ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
3
6
  export { AspectRatio };
@@ -1,6 +1,19 @@
1
- import { Root as o } from "../../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";
2
- const p = o;
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import { cn as l } from "../../lib/utils.js";
4
+ const m = r.forwardRef(
5
+ ({ ratio: o = 1, className: e, style: i, ...s }, a) => /* @__PURE__ */ t(
6
+ "div",
7
+ {
8
+ ref: a,
9
+ className: l("relative w-full", e),
10
+ style: { paddingBottom: `${100 / o}%`, ...i },
11
+ children: /* @__PURE__ */ t("div", { style: { position: "absolute", inset: 0 }, ...s })
12
+ }
13
+ )
14
+ );
15
+ m.displayName = "AspectRatio";
3
16
  export {
4
- p as AspectRatio
17
+ m as AspectRatio
5
18
  };
6
19
  //# sourceMappingURL=aspect-ratio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aspect-ratio.js","sources":["../../../src/components/ui/aspect-ratio.tsx"],"sourcesContent":["import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio'\n\nconst AspectRatio = AspectRatioPrimitive.Root\n\nexport { AspectRatio }\n"],"names":["AspectRatio","AspectRatioPrimitive.Root"],"mappings":";AAEA,MAAMA,IAAcC;"}
1
+ {"version":3,"file":"aspect-ratio.js","sources":["../../../src/components/ui/aspect-ratio.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\ninterface AspectRatioProps extends React.ComponentPropsWithoutRef<'div'> {\n ratio?: number\n}\n\nconst AspectRatio = React.forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 1, className, style, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('relative w-full', className)}\n style={{ paddingBottom: `${100 / ratio}%`, ...style }}\n >\n <div style={{ position: 'absolute', inset: 0 }} {...props} />\n </div>\n )\n)\nAspectRatio.displayName = 'AspectRatio'\n\nexport { AspectRatio }\n"],"names":["AspectRatio","React","ratio","className","style","props","ref","jsx","cn"],"mappings":";;;AAQA,MAAMA,IAAcC,EAAM;AAAA,EACxB,CAAC,EAAE,OAAAC,IAAQ,GAAG,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,GAASC,MAC1C,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE,EAAG,mBAAmBL,CAAS;AAAA,MAC1C,OAAO,EAAE,eAAe,GAAG,MAAMD,CAAK,KAAK,GAAGE,EAAA;AAAA,MAE9C,UAAA,gBAAAG,EAAC,OAAA,EAAI,OAAO,EAAE,UAAU,YAAY,OAAO,EAAA,GAAM,GAAGF,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGjE;AACAL,EAAY,cAAc;"}
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
- declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
2
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AvatarRootProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
3
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AvatarImageProps, "ref"> & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
4
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AvatarFallbackProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
5
  export { Avatar, AvatarImage, AvatarFallback };
@@ -1,43 +1,45 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Root as o, Image as f, Fallback as t } from "../../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";
4
- import { cn as m } from "../../lib/utils.js";
5
- const d = s.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ r(
6
- o,
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { cn as o } from "../../lib/utils.js";
4
+ import { AvatarRoot as m } from "../../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";
5
+ import { AvatarImage as f } from "../../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";
6
+ import { AvatarFallback as s } from "../../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";
7
+ const c = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ l(
8
+ m,
7
9
  {
8
- ref: l,
9
- className: m(
10
+ ref: e,
11
+ className: o(
10
12
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
11
13
  a
12
14
  ),
13
- ...e
15
+ ...r
14
16
  }
15
17
  ));
16
- d.displayName = o.displayName;
17
- const i = s.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ r(
18
+ c.displayName = "Avatar";
19
+ const i = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ l(
18
20
  f,
19
21
  {
20
- ref: l,
21
- className: m("aspect-square h-full w-full", a),
22
- ...e
22
+ ref: e,
23
+ className: o("aspect-square h-full w-full", a),
24
+ ...r
23
25
  }
24
26
  ));
25
- i.displayName = f.displayName;
26
- const c = s.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ r(
27
- t,
27
+ i.displayName = "AvatarImage";
28
+ const d = t.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ l(
29
+ s,
28
30
  {
29
- ref: l,
30
- className: m(
31
+ ref: e,
32
+ className: o(
31
33
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
32
34
  a
33
35
  ),
34
- ...e
36
+ ...r
35
37
  }
36
38
  ));
37
- c.displayName = t.displayName;
39
+ d.displayName = "AvatarFallback";
38
40
  export {
39
- d as Avatar,
40
- c as AvatarFallback,
41
+ c as Avatar,
42
+ d as AvatarFallback,
41
43
  i as AvatarImage
42
44
  };
43
45
  //# sourceMappingURL=avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n))\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n"],"names":["Avatar","React","className","props","ref","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":";;;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAO,cAAcM,EAAqB;AAE1C,MAAME,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAL;AAAA,IACA,WAAWG,EAAG,+BAA+BL,CAAS;AAAA,IACrD,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAY,cAAcC,EAAsB;AAEhD,MAAMC,IAAiBT,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACM;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDO,EAAe,cAAcC,EAAyB;"}
1
+ {"version":3,"file":"avatar.js","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Avatar as BaseAvatar } from \"@base-ui/react/avatar\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Avatar = React.forwardRef<\n HTMLSpanElement,\n React.ComponentPropsWithoutRef<typeof BaseAvatar.Root>\n>(({ className, ...props }, ref) => (\n <BaseAvatar.Root\n ref={ref}\n className={cn(\n \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n))\nAvatar.displayName = \"Avatar\"\n\nconst AvatarImage = React.forwardRef<\n HTMLImageElement,\n React.ComponentPropsWithoutRef<typeof BaseAvatar.Image>\n>(({ className, ...props }, ref) => (\n <BaseAvatar.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n))\nAvatarImage.displayName = \"AvatarImage\"\n\nconst AvatarFallback = React.forwardRef<\n HTMLSpanElement,\n React.ComponentPropsWithoutRef<typeof BaseAvatar.Fallback>\n>(({ className, ...props }, ref) => (\n <BaseAvatar.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n))\nAvatarFallback.displayName = \"AvatarFallback\"\n\nexport { Avatar, AvatarImage, AvatarFallback }\n"],"names":["Avatar","React","className","props","ref","jsx","BaseAvatar.Root","cn","AvatarImage","BaseAvatar.Image","AvatarFallback","BaseAvatar.Fallback"],"mappings":";;;;;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAO,cAAc;AAErB,MAAMQ,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAL;AAAA,IACA,WAAWG,EAAG,+BAA+BL,CAAS;AAAA,IACrD,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAY,cAAc;AAE1B,MAAME,IAAiBT,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACM;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDO,EAAe,cAAc;"}
@@ -1,5 +1,4 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
- import * as LabelPrimitive from '@radix-ui/react-label';
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
4
  export { Label };
@@ -1,13 +1,12 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import * as o from "@radix-ui/react-label";
4
- import { cva as i } from "../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
5
- import { cn as s } from "../../lib/utils.js";
6
- const l = i(
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { cva as l } from "../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
+ import { cn as m } from "../../lib/utils.js";
5
+ const s = l(
7
6
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8
- ), p = m.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ t(o.Root, { ref: r, className: s(l(), a), ...e }));
9
- p.displayName = o.Root.displayName;
7
+ ), i = t.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ r("label", { ref: o, className: m(s(), e), ...a }));
8
+ i.displayName = "Label";
10
9
  export {
11
- p as Label
10
+ i as Label
12
11
  };
13
12
  //# sourceMappingURL=label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":["../../../src/components/ui/label.tsx"],"sourcesContent":["import * as React from 'react'\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst labelVariants = cva(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'\n)\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive","cn"],"mappings":";;;;;AAMA,MAAMA,IAAgBC;AAAA,EACpB;AACF,GAEMC,IAAQC,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC,EAACC,EAAe,MAAf,EAAoB,KAAAF,GAAU,WAAWG,EAAGT,EAAA,GAAiBI,CAAS,GAAI,GAAGC,GAAO,CACtF;AACDH,EAAM,cAAcM,EAAe,KAAK;"}
1
+ {"version":3,"file":"label.js","sources":["../../../src/components/ui/label.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst labelVariants = cva(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'\n)\n\nconst Label = React.forwardRef<\n HTMLLabelElement,\n React.ComponentPropsWithoutRef<'label'> & VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <label ref={ref} className={cn(labelVariants(), className)} {...props} />\n))\nLabel.displayName = 'Label'\n\nexport { Label }\n"],"names":["labelVariants","cva","Label","React","className","props","ref","cn"],"mappings":";;;;AAKA,MAAMA,IAAgBC;AAAA,EACpB;AACF,GAEMC,IAAQC,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,wBACzB,SAAA,EAAM,KAAAA,GAAU,WAAWC,EAAGP,EAAA,GAAiBI,CAAS,GAAI,GAAGC,GAAO,CACxE;AACDH,EAAM,cAAc;"}
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<Omit<import('@base-ui/
7
7
  declare const SheetPortal: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').DialogBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: ({
10
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
10
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof Dialog.Popup>, VariantProps<typeof sheetVariants> {
13
13
  portal?: boolean;
@@ -1,3 +1,3 @@
1
- import * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';
2
- declare const VisuallyHidden: import('react').ForwardRefExoticComponent<VisuallyHiddenPrimitive.VisuallyHiddenProps & import('react').RefAttributes<HTMLSpanElement>>;
1
+ import * as React from 'react';
2
+ declare const VisuallyHidden: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
3
3
  export { VisuallyHidden };
@@ -1,6 +1,28 @@
1
- import { Root as o } from "../../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";
2
- const i = o;
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ const e = a.forwardRef(
4
+ (i, o) => /* @__PURE__ */ r(
5
+ "span",
6
+ {
7
+ ref: o,
8
+ style: {
9
+ position: "absolute",
10
+ border: 0,
11
+ width: 1,
12
+ height: 1,
13
+ padding: 0,
14
+ margin: -1,
15
+ overflow: "hidden",
16
+ clip: "rect(0, 0, 0, 0)",
17
+ whiteSpace: "nowrap",
18
+ wordWrap: "normal"
19
+ },
20
+ ...i
21
+ }
22
+ )
23
+ );
24
+ e.displayName = "VisuallyHidden";
3
25
  export {
4
- i as VisuallyHidden
26
+ e as VisuallyHidden
5
27
  };
6
28
  //# sourceMappingURL=visually-hidden.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visually-hidden.js","sources":["../../../src/components/ui/visually-hidden.tsx"],"sourcesContent":["import * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden'\n\nconst VisuallyHidden = VisuallyHiddenPrimitive.Root\n\nexport { VisuallyHidden }\n"],"names":["VisuallyHidden","VisuallyHiddenPrimitive.Root"],"mappings":";AAEA,MAAMA,IAAiBC;"}
1
+ {"version":3,"file":"visually-hidden.js","sources":["../../../src/components/ui/visually-hidden.tsx"],"sourcesContent":["import * as React from 'react'\n\nconst VisuallyHidden = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<'span'>>(\n (props, ref) => (\n <span\n ref={ref}\n style={{\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 }}\n {...props}\n />\n )\n)\nVisuallyHidden.displayName = 'VisuallyHidden'\n\nexport { VisuallyHidden }\n"],"names":["VisuallyHidden","React","props","ref","jsx"],"mappings":";;AAEA,MAAMA,IAAiBC,EAAM;AAAA,EAC3B,CAACC,GAAOC,MACN,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,OAAO;AAAA,QACL,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,UAAU;AAAA,MAAA;AAAA,MAEX,GAAGD;AAAA,IAAA;AAAA,EAAA;AAGV;AACAF,EAAe,cAAc;"}
@@ -0,0 +1,31 @@
1
+ import * as t from "react";
2
+ import { useTimeout as u } from "../../../../../../../@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/useTimeout.js";
3
+ import { useRenderElement as d } from "../../utils/useRenderElement.js";
4
+ import { useAvatarRootContext as c } from "../root/AvatarRootContext.js";
5
+ import { avatarStateAttributesMapping as f } from "../root/stateAttributesMapping.js";
6
+ const p = /* @__PURE__ */ t.forwardRef(function(s, o) {
7
+ const {
8
+ className: v,
9
+ render: A,
10
+ delay: e,
11
+ ...n
12
+ } = s, {
13
+ imageLoadingStatus: a
14
+ } = c(), [i, m] = t.useState(e === void 0), r = u();
15
+ t.useEffect(() => (e !== void 0 && r.start(e, () => m(!0)), r.clear), [r, e]);
16
+ const l = t.useMemo(() => ({
17
+ imageLoadingStatus: a
18
+ }), [a]);
19
+ return d("span", s, {
20
+ state: l,
21
+ ref: o,
22
+ props: n,
23
+ stateAttributesMapping: f,
24
+ enabled: a !== "loaded" && i
25
+ });
26
+ });
27
+ process.env.NODE_ENV !== "production" && (p.displayName = "AvatarFallback");
28
+ export {
29
+ p as AvatarFallback
30
+ };
31
+ //# sourceMappingURL=AvatarFallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarFallback.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { useRenderElement } from \"../../utils/useRenderElement.js\";\nimport { useAvatarRootContext } from \"../root/AvatarRootContext.js\";\nimport { avatarStateAttributesMapping } from \"../root/stateAttributesMapping.js\";\n\n/**\n * Rendered when the image fails to load or when no image is provided.\n * Renders a `<span>` element.\n *\n * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)\n */\nexport const AvatarFallback = /*#__PURE__*/React.forwardRef(function AvatarFallback(componentProps, forwardedRef) {\n const {\n className,\n render,\n delay,\n ...elementProps\n } = componentProps;\n const {\n imageLoadingStatus\n } = useAvatarRootContext();\n const [delayPassed, setDelayPassed] = React.useState(delay === undefined);\n const timeout = useTimeout();\n React.useEffect(() => {\n if (delay !== undefined) {\n timeout.start(delay, () => setDelayPassed(true));\n }\n return timeout.clear;\n }, [timeout, delay]);\n const state = React.useMemo(() => ({\n imageLoadingStatus\n }), [imageLoadingStatus]);\n const element = useRenderElement('span', componentProps, {\n state,\n ref: forwardedRef,\n props: elementProps,\n stateAttributesMapping: avatarStateAttributesMapping,\n enabled: imageLoadingStatus !== 'loaded' && delayPassed\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") AvatarFallback.displayName = \"AvatarFallback\";"],"names":["AvatarFallback","React","componentProps","forwardedRef","className","render","delay","elementProps","imageLoadingStatus","useAvatarRootContext","delayPassed","setDelayPassed","timeout","useTimeout","state","useRenderElement","avatarStateAttributesMapping"],"mappings":";;;;;AAcY,MAACA,IAA8B,gBAAAC,EAAM,WAAW,SAAwBC,GAAgBC,GAAc;AAChH,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAML,GACE;AAAA,IACJ,oBAAAM;AAAA,EACJ,IAAMC,EAAoB,GAClB,CAACC,GAAaC,CAAc,IAAIV,EAAM,SAASK,MAAU,MAAS,GAClEM,IAAUC,EAAU;AAC1B,EAAAZ,EAAM,UAAU,OACVK,MAAU,UACZM,EAAQ,MAAMN,GAAO,MAAMK,EAAe,EAAI,CAAC,GAE1CC,EAAQ,QACd,CAACA,GAASN,CAAK,CAAC;AACnB,QAAMQ,IAAQb,EAAM,QAAQ,OAAO;AAAA,IACjC,oBAAAO;AAAA,EACJ,IAAM,CAACA,CAAkB,CAAC;AAQxB,SAPgBO,EAAiB,QAAQb,GAAgB;AAAA,IACvD,OAAAY;AAAA,IACA,KAAKX;AAAA,IACL,OAAOI;AAAA,IACP,wBAAwBS;AAAA,IACxB,SAASR,MAAuB,YAAYE;AAAA,EAChD,CAAG;AAEH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcV,EAAe,cAAc;","x_google_ignoreList":[0]}
@@ -0,0 +1,40 @@
1
+ import * as s from "react";
2
+ import { useStableCallback as u } from "../../../../../../../@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/useStableCallback.js";
3
+ import { useIsoLayoutEffect as d } from "../../../../../../../@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/useIsoLayoutEffect.js";
4
+ import { useRenderElement as l } from "../../utils/useRenderElement.js";
5
+ import { useAvatarRootContext as p } from "../root/AvatarRootContext.js";
6
+ import { avatarStateAttributesMapping as v } from "../root/stateAttributesMapping.js";
7
+ import { useImageLoadingStatus as A } from "./useImageLoadingStatus.js";
8
+ const I = /* @__PURE__ */ s.forwardRef(function(t, i) {
9
+ const {
10
+ className: b,
11
+ render: L,
12
+ onLoadingStatusChange: a,
13
+ referrerPolicy: m,
14
+ crossOrigin: n,
15
+ ...c
16
+ } = t, f = p(), e = A(t.src, {
17
+ referrerPolicy: m,
18
+ crossOrigin: n
19
+ }), r = u((o) => {
20
+ a == null || a(o), f.setImageLoadingStatus(o);
21
+ });
22
+ d(() => {
23
+ e !== "idle" && r(e);
24
+ }, [e, r]);
25
+ const g = s.useMemo(() => ({
26
+ imageLoadingStatus: e
27
+ }), [e]);
28
+ return l("img", t, {
29
+ state: g,
30
+ ref: i,
31
+ props: c,
32
+ stateAttributesMapping: v,
33
+ enabled: e === "loaded"
34
+ });
35
+ });
36
+ process.env.NODE_ENV !== "production" && (I.displayName = "AvatarImage");
37
+ export {
38
+ I as AvatarImage
39
+ };
40
+ //# sourceMappingURL=AvatarImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarImage.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRenderElement } from \"../../utils/useRenderElement.js\";\nimport { useAvatarRootContext } from \"../root/AvatarRootContext.js\";\nimport { avatarStateAttributesMapping } from \"../root/stateAttributesMapping.js\";\nimport { useImageLoadingStatus } from \"./useImageLoadingStatus.js\";\n\n/**\n * The image to be displayed in the avatar.\n * Renders an `<img>` element.\n *\n * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)\n */\nexport const AvatarImage = /*#__PURE__*/React.forwardRef(function AvatarImage(componentProps, forwardedRef) {\n const {\n className,\n render,\n onLoadingStatusChange: onLoadingStatusChangeProp,\n referrerPolicy,\n crossOrigin,\n ...elementProps\n } = componentProps;\n const context = useAvatarRootContext();\n const imageLoadingStatus = useImageLoadingStatus(componentProps.src, {\n referrerPolicy,\n crossOrigin\n });\n const handleLoadingStatusChange = useStableCallback(status => {\n onLoadingStatusChangeProp?.(status);\n context.setImageLoadingStatus(status);\n });\n useIsoLayoutEffect(() => {\n if (imageLoadingStatus !== 'idle') {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n const state = React.useMemo(() => ({\n imageLoadingStatus\n }), [imageLoadingStatus]);\n const element = useRenderElement('img', componentProps, {\n state,\n ref: forwardedRef,\n props: elementProps,\n stateAttributesMapping: avatarStateAttributesMapping,\n enabled: imageLoadingStatus === 'loaded'\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") AvatarImage.displayName = \"AvatarImage\";"],"names":["AvatarImage","React","componentProps","forwardedRef","className","render","onLoadingStatusChangeProp","referrerPolicy","crossOrigin","elementProps","context","useAvatarRootContext","imageLoadingStatus","useImageLoadingStatus","handleLoadingStatusChange","useStableCallback","status","useIsoLayoutEffect","state","useRenderElement","avatarStateAttributesMapping"],"mappings":";;;;;;;AAgBY,MAACA,IAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,uBAAuBC;AAAA,IACvB,gBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMP,GACEQ,IAAUC,EAAoB,GAC9BC,IAAqBC,EAAsBX,EAAe,KAAK;AAAA,IACnE,gBAAAK;AAAA,IACA,aAAAC;AAAA,EACJ,CAAG,GACKM,IAA4BC,EAAkB,CAAAC,MAAU;AAC5D,IAAAV,KAAA,QAAAA,EAA4BU,IAC5BN,EAAQ,sBAAsBM,CAAM;AAAA,EACtC,CAAC;AACD,EAAAC,EAAmB,MAAM;AACvB,IAAIL,MAAuB,UACzBE,EAA0BF,CAAkB;AAAA,EAEhD,GAAG,CAACA,GAAoBE,CAAyB,CAAC;AAClD,QAAMI,IAAQjB,EAAM,QAAQ,OAAO;AAAA,IACjC,oBAAAW;AAAA,EACJ,IAAM,CAACA,CAAkB,CAAC;AAQxB,SAPgBO,EAAiB,OAAOjB,GAAgB;AAAA,IACtD,OAAAgB;AAAA,IACA,KAAKf;AAAA,IACL,OAAOM;AAAA,IACP,wBAAwBW;AAAA,IACxB,SAASR,MAAuB;AAAA,EACpC,CAAG;AAEH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcZ,EAAY,cAAc;","x_google_ignoreList":[0]}
@@ -0,0 +1,24 @@
1
+ import * as d from "react";
2
+ import { useIsoLayoutEffect as f } from "../../../../../../../@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/useIsoLayoutEffect.js";
3
+ import { NOOP as m } from "../../../../../../../@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/empty.js";
4
+ function p(o, {
5
+ referrerPolicy: e,
6
+ crossOrigin: a
7
+ }) {
8
+ const [i, r] = d.useState("idle");
9
+ return f(() => {
10
+ if (!o)
11
+ return r("error"), m;
12
+ let n = !0;
13
+ const t = new window.Image(), u = (s) => () => {
14
+ n && r(s);
15
+ };
16
+ return r("loading"), t.onload = u("loaded"), t.onerror = u("error"), e && (t.referrerPolicy = e), t.crossOrigin = a ?? null, t.src = o, () => {
17
+ n = !1;
18
+ };
19
+ }, [o, a, e]), i;
20
+ }
21
+ export {
22
+ p as useImageLoadingStatus
23
+ };
24
+ //# sourceMappingURL=useImageLoadingStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImageLoadingStatus.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { NOOP } from \"../../utils/noop.js\";\nexport function useImageLoadingStatus(src, {\n referrerPolicy,\n crossOrigin\n}) {\n const [loadingStatus, setLoadingStatus] = React.useState('idle');\n useIsoLayoutEffect(() => {\n if (!src) {\n setLoadingStatus('error');\n return NOOP;\n }\n let isMounted = true;\n const image = new window.Image();\n const updateStatus = status => () => {\n if (!isMounted) {\n return;\n }\n setLoadingStatus(status);\n };\n setLoadingStatus('loading');\n image.onload = updateStatus('loaded');\n image.onerror = updateStatus('error');\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n image.crossOrigin = crossOrigin ?? null;\n image.src = src;\n return () => {\n isMounted = false;\n };\n }, [src, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}"],"names":["useImageLoadingStatus","src","referrerPolicy","crossOrigin","loadingStatus","setLoadingStatus","React","useIsoLayoutEffect","NOOP","isMounted","image","updateStatus","status"],"mappings":";;;AAKO,SAASA,EAAsBC,GAAK;AAAA,EACzC,gBAAAC;AAAA,EACA,aAAAC;AACF,GAAG;AACD,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAAM,SAAS,MAAM;AAC/D,SAAAC,EAAmB,MAAM;AACvB,QAAI,CAACN;AACH,aAAAI,EAAiB,OAAO,GACjBG;AAET,QAAIC,IAAY;AAChB,UAAMC,IAAQ,IAAI,OAAO,MAAK,GACxBC,IAAe,CAAAC,MAAU,MAAM;AACnC,MAAKH,KAGLJ,EAAiBO,CAAM;AAAA,IACzB;AACA,WAAAP,EAAiB,SAAS,GAC1BK,EAAM,SAASC,EAAa,QAAQ,GACpCD,EAAM,UAAUC,EAAa,OAAO,GAChCT,MACFQ,EAAM,iBAAiBR,IAEzBQ,EAAM,cAAcP,KAAe,MACnCO,EAAM,MAAMT,GACL,MAAM;AACX,MAAAQ,IAAY;AAAA,IACd;AAAA,EACF,GAAG,CAACR,GAAKE,GAAaD,CAAc,CAAC,GAC9BE;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ import * as e from "react";
2
+ import { useRenderElement as p } from "../../utils/useRenderElement.js";
3
+ import { AvatarRootContext as u } from "./AvatarRootContext.js";
4
+ import { avatarStateAttributesMapping as c } from "./stateAttributesMapping.js";
5
+ import { jsx as d } from "react/jsx-runtime";
6
+ const f = /* @__PURE__ */ e.forwardRef(function(o, r) {
7
+ const {
8
+ className: v,
9
+ render: R,
10
+ ...s
11
+ } = o, [t, a] = e.useState("idle"), n = e.useMemo(() => ({
12
+ imageLoadingStatus: t
13
+ }), [t]), i = e.useMemo(() => ({
14
+ imageLoadingStatus: t,
15
+ setImageLoadingStatus: a
16
+ }), [t, a]), m = p("span", o, {
17
+ state: n,
18
+ ref: r,
19
+ props: s,
20
+ stateAttributesMapping: c
21
+ });
22
+ return /* @__PURE__ */ d(u.Provider, {
23
+ value: i,
24
+ children: m
25
+ });
26
+ });
27
+ process.env.NODE_ENV !== "production" && (f.displayName = "AvatarRoot");
28
+ export {
29
+ f as AvatarRoot
30
+ };
31
+ //# sourceMappingURL=AvatarRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarRoot.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRenderElement } from \"../../utils/useRenderElement.js\";\nimport { AvatarRootContext } from \"./AvatarRootContext.js\";\nimport { avatarStateAttributesMapping } from \"./stateAttributesMapping.js\";\n\n/**\n * Displays a user's profile picture, initials, or fallback icon.\n * Renders a `<span>` element.\n *\n * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const AvatarRoot = /*#__PURE__*/React.forwardRef(function AvatarRoot(componentProps, forwardedRef) {\n const {\n className,\n render,\n ...elementProps\n } = componentProps;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');\n const state = React.useMemo(() => ({\n imageLoadingStatus\n }), [imageLoadingStatus]);\n const contextValue = React.useMemo(() => ({\n imageLoadingStatus,\n setImageLoadingStatus\n }), [imageLoadingStatus, setImageLoadingStatus]);\n const element = useRenderElement('span', componentProps, {\n state,\n ref: forwardedRef,\n props: elementProps,\n stateAttributesMapping: avatarStateAttributesMapping\n });\n return /*#__PURE__*/_jsx(AvatarRootContext.Provider, {\n value: contextValue,\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") AvatarRoot.displayName = \"AvatarRoot\";"],"names":["AvatarRoot","React","componentProps","forwardedRef","className","render","elementProps","imageLoadingStatus","setImageLoadingStatus","state","contextValue","element","useRenderElement","avatarStateAttributesMapping","_jsx","AvatarRootContext"],"mappings":";;;;;AAcY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAgBC,GAAc;AACxG,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMJ,GACE,CAACK,GAAoBC,CAAqB,IAAIP,EAAM,SAAS,MAAM,GACnEQ,IAAQR,EAAM,QAAQ,OAAO;AAAA,IACjC,oBAAAM;AAAA,EACJ,IAAM,CAACA,CAAkB,CAAC,GAClBG,IAAeT,EAAM,QAAQ,OAAO;AAAA,IACxC,oBAAAM;AAAA,IACA,uBAAAC;AAAA,EACJ,IAAM,CAACD,GAAoBC,CAAqB,CAAC,GACzCG,IAAUC,EAAiB,QAAQV,GAAgB;AAAA,IACvD,OAAAO;AAAA,IACA,KAAKN;AAAA,IACL,OAAOG;AAAA,IACP,wBAAwBO;AAAA,EAC5B,CAAG;AACD,SAAoBC,gBAAAA,EAAKC,EAAkB,UAAU;AAAA,IACnD,OAAOL;AAAA,IACP,UAAUC;AAAA,EACd,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcX,EAAW,cAAc;","x_google_ignoreList":[0]}
@@ -0,0 +1,15 @@
1
+ import r from "../../../../../../../@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/formatErrorMessage.js";
2
+ import * as o from "react";
3
+ const e = /* @__PURE__ */ o.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (e.displayName = "AvatarRootContext");
5
+ function a() {
6
+ const t = o.useContext(e);
7
+ if (t === void 0)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : r(13));
9
+ return t;
10
+ }
11
+ export {
12
+ e as AvatarRootContext,
13
+ a as useAvatarRootContext
14
+ };
15
+ //# sourceMappingURL=AvatarRootContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarRootContext.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const AvatarRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") AvatarRootContext.displayName = \"AvatarRootContext\";\nexport function useAvatarRootContext() {\n const context = React.useContext(AvatarRootContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.' : _formatErrorMessage(13));\n }\n return context;\n}"],"names":["AvatarRootContext","React","useAvatarRootContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS;AACvE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AACpE,SAASE,IAAuB;AACrC,QAAMC,IAAUF,EAAM,WAAWD,CAAiB;AAClD,MAAIG,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,6FAA6FC,EAAoB,EAAE,CAAC;AAE9K,SAAOD;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ const t = {
2
+ imageLoadingStatus: () => null
3
+ };
4
+ export {
5
+ t as avatarStateAttributesMapping
6
+ };
7
+ //# sourceMappingURL=stateAttributesMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stateAttributesMapping.js","sources":["../../../../../../../../../../../../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"],"sourcesContent":["export const avatarStateAttributesMapping = {\n imageLoadingStatus: () => null\n};"],"names":["avatarStateAttributesMapping"],"mappings":"AAAY,MAACA,IAA+B;AAAA,EAC1C,oBAAoB,MAAM;AAC5B;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import * as c from "react";
2
- import { s as i } from "../../../../../../../../_virtual/index.js";
2
+ import { s as i } from "../../../../../../../../_virtual/index2.js";
3
3
  import { w as S } from "../../../../../../../../_virtual/with-selector.js";
4
4
  import { isReactVersionAtLeast as a } from "../reactVersion.js";
5
5
  const u = a(19), m = u ? p : l;
@@ -1,4 +1,4 @@
1
- import e from "../../../../../_virtual/index3.js";
1
+ import e from "../../../../../_virtual/index.js";
2
2
  export {
3
3
  e as EventEmitter,
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import t from "../../../../../../../_virtual/index3.js";
1
+ import t from "../../../../../../../_virtual/index.js";
2
2
  var r = new t(), n = "recharts.syncEvent.tooltip";
3
3
  export {
4
4
  n as TOOLTIP_SYNC_EVENT,
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../../../../../_virtual/index2.js";
1
+ import { __module as r } from "../../../../../../_virtual/index3.js";
2
2
  import { __require as o } from "../cjs/use-sync-external-store-shim.production.js";
3
3
  import { __require as i } from "../cjs/use-sync-external-store-shim.development.js";
4
4
  var e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acronis-platform/shadcn-uikit",
3
- "version": "0.30.1",
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",
@@ -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]}