@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.
Files changed (49) 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/dist/themes/acronis-white-label.css +1 -1
  37. package/package.json +2 -1
  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 +0 -44
  39. 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
  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 +0 -76
  41. 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
  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 +0 -58
  43. 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
  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 +0 -14
  45. 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
  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 +0 -16
  47. 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
  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 +0 -33
  49. 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;