@raystack/apsara 0.30.2 → 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 (41) hide show
  1. package/dist/label/label.cjs +3 -0
  2. package/dist/label/label.cjs.map +1 -1
  3. package/dist/label/label.d.ts +3 -0
  4. package/dist/label/label.d.ts.map +1 -1
  5. package/dist/label/label.js +3 -0
  6. package/dist/label/label.js.map +1 -1
  7. package/dist/popover/popover.cjs +3 -0
  8. package/dist/popover/popover.cjs.map +1 -1
  9. package/dist/popover/popover.d.ts +3 -0
  10. package/dist/popover/popover.d.ts.map +1 -1
  11. package/dist/popover/popover.js +3 -0
  12. package/dist/popover/popover.js.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/v1/components/label/index.d.ts +2 -0
  15. package/dist/v1/components/label/index.d.ts.map +1 -0
  16. package/dist/v1/components/label/label.cjs +28 -0
  17. package/dist/v1/components/label/label.cjs.map +1 -0
  18. package/dist/v1/components/label/label.d.ts +14 -0
  19. package/dist/v1/components/label/label.d.ts.map +1 -0
  20. package/dist/v1/components/label/label.js +26 -0
  21. package/dist/v1/components/label/label.js.map +1 -0
  22. package/dist/v1/components/label/label.module.css.cjs +8 -0
  23. package/dist/v1/components/label/label.module.css.cjs.map +1 -0
  24. package/dist/v1/components/label/label.module.css.js +4 -0
  25. package/dist/v1/components/label/label.module.css.js.map +1 -0
  26. package/dist/v1/components/popover/popover.cjs +2 -2
  27. package/dist/v1/components/popover/popover.cjs.map +1 -1
  28. package/dist/v1/components/popover/popover.d.ts +6 -2
  29. package/dist/v1/components/popover/popover.d.ts.map +1 -1
  30. package/dist/v1/components/popover/popover.js +2 -2
  31. package/dist/v1/components/popover/popover.js.map +1 -1
  32. package/dist/v1/components/popover/popover.module.css.cjs +1 -1
  33. package/dist/v1/components/popover/popover.module.css.js +1 -1
  34. package/dist/v1/index.cjs +4 -0
  35. package/dist/v1/index.cjs.map +1 -1
  36. package/dist/v1/index.d.ts +2 -0
  37. package/dist/v1/index.d.ts.map +1 -1
  38. package/dist/v1/index.js +2 -0
  39. package/dist/v1/index.js.map +1 -1
  40. package/dist/v1/style.css +1 -1
  41. package/package.json +1 -1
@@ -16,6 +16,9 @@ const label = index.cva(label_module.default.label, {
16
16
  size: "small",
17
17
  },
18
18
  });
19
+ /**
20
+ * @deprecated Use Label from '@raystack/apsara/v1' instead.
21
+ */
19
22
  function Label({ children, className, size, ...props }) {
20
23
  return (jsxRuntime.jsxRuntimeExports.jsx("label", { className: label({ size, className }), ...props, children: children }));
21
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"label.cjs","sources":["../../label/label.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype LabelProps = PropsWithChildren<VariantProps<typeof label>> &\n HTMLAttributes<HTMLLabelElement>;\n\nexport function Label({ children, className, size, ...props }: LabelProps) {\n return (\n <label className={label({ size, className })} {...props}>\n {children}\n </label>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAIA,MAAM,KAAK,GAAGA,SAAG,CAACC,oBAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAEA,oBAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKa,SAAA,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAc,EAAA;AACvE,IAAA,QACEC,gCAAO,CAAA,OAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACpD,QAAQ,EAAA,CACH,EACR;AACJ;;;;"}
1
+ {"version":3,"file":"label.cjs","sources":["../../label/label.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype LabelProps = PropsWithChildren<VariantProps<typeof label>> &\n HTMLAttributes<HTMLLabelElement>;\n\n/**\n * @deprecated Use Label from '@raystack/apsara/v1' instead.\n */\nexport function Label({ children, className, size, ...props }: LabelProps) {\n return (\n <label className={label({ size, className })} {...props}>\n {children}\n </label>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAIA,MAAM,KAAK,GAAGA,SAAG,CAACC,oBAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAEA,oBAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKH;;AAEG;AACa,SAAA,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAc,EAAA;AACvE,IAAA,QACEC,gCAAO,CAAA,OAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACpD,QAAQ,EAAA,CACH,EACR;AACJ;;;;"}
@@ -4,6 +4,9 @@ declare const label: (props?: ({
4
4
  size?: "small" | "medium" | "large" | null | undefined;
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  type LabelProps = PropsWithChildren<VariantProps<typeof label>> & HTMLAttributes<HTMLLabelElement>;
7
+ /**
8
+ * @deprecated Use Label from '@raystack/apsara/v1' instead.
9
+ */
7
10
  export declare function Label({ children, className, size, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
8
11
  export {};
9
12
  //# sourceMappingURL=label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,KAAK;;mFAWT,CAAC;AAEH,KAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEnC,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAMxE"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,KAAK;;mFAWT,CAAC;AAEH,KAAK,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,GAC7D,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEnC;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAMxE"}
@@ -14,6 +14,9 @@ const label = cva(styles.label, {
14
14
  size: "small",
15
15
  },
16
16
  });
17
+ /**
18
+ * @deprecated Use Label from '@raystack/apsara/v1' instead.
19
+ */
17
20
  function Label({ children, className, size, ...props }) {
18
21
  return (jsxRuntimeExports.jsx("label", { className: label({ size, className }), ...props, children: children }));
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":["../../label/label.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype LabelProps = PropsWithChildren<VariantProps<typeof label>> &\n HTMLAttributes<HTMLLabelElement>;\n\nexport function Label({ children, className, size, ...props }: LabelProps) {\n return (\n <label className={label({ size, className })} {...props}>\n {children}\n </label>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKa,SAAA,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAc,EAAA;AACvE,IAAA,QACEA,qBAAO,CAAA,OAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACpD,QAAQ,EAAA,CACH,EACR;AACJ;;;;"}
1
+ {"version":3,"file":"label.js","sources":["../../label/label.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype LabelProps = PropsWithChildren<VariantProps<typeof label>> &\n HTMLAttributes<HTMLLabelElement>;\n\n/**\n * @deprecated Use Label from '@raystack/apsara/v1' instead.\n */\nexport function Label({ children, className, size, ...props }: LabelProps) {\n return (\n <label className={label({ size, className })} {...props}>\n {children}\n </label>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKH;;AAEG;AACa,SAAA,KAAK,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAc,EAAA;AACvE,IAAA,QACEA,qBAAO,CAAA,OAAA,EAAA,EAAA,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACpD,QAAQ,EAAA,CACH,EACR;AACJ;;;;"}
@@ -9,6 +9,9 @@ var index$1 = require('../node_modules/.pnpm/class-variance-authority@0.7.1/node
9
9
  const popoverContent = index$1.cva(popover_module.default.popover);
10
10
  const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, align: align, sideOffset: sideOffset, className: popoverContent({ className }), ...props }) })));
11
11
  PopoverContent.displayName = index.Content.displayName;
12
+ /**
13
+ * @deprecated Use Popover from '@raystack/apsara/v1' instead.
14
+ */
12
15
  const Popover = Object.assign(index.Root, {
13
16
  Trigger: index.Trigger,
14
17
  Close: index.Close,
@@ -1 +1 @@
1
- {"version":3,"file":"popover.cjs","sources":["../../popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport React from \"react\";\nimport styles from \"./popover.module.css\";\nimport { cva } from \"class-variance-authority\";\n\nconst popoverContent = cva(styles.popover);\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={popoverContent({ className })}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["cva","styles","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;;;AAKA,MAAM,cAAc,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,CAAC,CAAC;AAE3C,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC/DC,gCAAA,CAACC,YAAuB,EACtB,EAAA,QAAA,EAAAD,gCAAA,CAACE,aAAwB,EAAA,EACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GACpC,KAAK,EAAA,CACT,EACsB,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,aAAwB,CAAC,WAAW,CAAC;AAErD,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,UAAqB,EAAE;IAC1D,OAAO,EAAEC,aAAwB;IACjC,KAAK,EAAEC,WAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}
1
+ {"version":3,"file":"popover.cjs","sources":["../../popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport React from \"react\";\nimport styles from \"./popover.module.css\";\nimport { cva } from \"class-variance-authority\";\n\nconst popoverContent = cva(styles.popover);\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={popoverContent({ className })}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n\n/**\n * @deprecated Use Popover from '@raystack/apsara/v1' instead.\n */\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["cva","styles","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;;;AAKA,MAAM,cAAc,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,CAAC,CAAC;AAE3C,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC/DC,gCAAA,CAACC,YAAuB,EACtB,EAAA,QAAA,EAAAD,gCAAA,CAACE,aAAwB,EAAA,EACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GACpC,KAAK,EAAA,CACT,EACsB,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,aAAwB,CAAC,WAAW,CAAC;AAGlE;;AAEG;AACU,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,UAAqB,EAAE;IAC1D,OAAO,EAAEC,aAAwB;IACjC,KAAK,EAAEC,WAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}
@@ -1,5 +1,8 @@
1
1
  import * as PopoverPrimitive from "@radix-ui/react-popover";
2
2
  import React from "react";
3
+ /**
4
+ * @deprecated Use Popover from '@raystack/apsara/v1' instead.
5
+ */
3
6
  export declare const Popover: React.FC<PopoverPrimitive.PopoverProps> & {
4
7
  Trigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
8
  Close: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B;;GAEG;AACH,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
@@ -7,6 +7,9 @@ import { cva } from '../node_modules/.pnpm/class-variance-authority@0.7.1/node_m
7
7
  const popoverContent = cva(styles.popover);
8
8
  const PopoverContent = React__default.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { ref: ref, align: align, sideOffset: sideOffset, className: popoverContent({ className }), ...props }) })));
9
9
  PopoverContent.displayName = $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;
10
+ /**
11
+ * @deprecated Use Popover from '@raystack/apsara/v1' instead.
12
+ */
10
13
  const Popover = Object.assign($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, {
11
14
  Trigger: $cb5cc270b50c6fcd$export$41fb9f06171c75f4,
12
15
  Close: $cb5cc270b50c6fcd$export$f39c2d165cd861fe,
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport React from \"react\";\nimport styles from \"./popover.module.css\";\nimport { cva } from \"class-variance-authority\";\n\nconst popoverContent = cva(styles.popover);\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={popoverContent({ className })}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["React","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;AAKA,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE3C,MAAM,cAAc,GAAGA,cAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC/DC,qBAAA,CAACC,yCAAuB,EACtB,EAAA,QAAA,EAAAD,qBAAA,CAACE,yCAAwB,EAAA,EACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GACpC,KAAK,EAAA,CACT,EACsB,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,yCAAwB,CAAC,WAAW,CAAC;AAErD,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,yCAAqB,EAAE;IAC1D,OAAO,EAAEC,yCAAwB;IACjC,KAAK,EAAEC,yCAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}
1
+ {"version":3,"file":"popover.js","sources":["../../popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport React from \"react\";\nimport styles from \"./popover.module.css\";\nimport { cva } from \"class-variance-authority\";\n\nconst popoverContent = cva(styles.popover);\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={popoverContent({ className })}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n\n/**\n * @deprecated Use Popover from '@raystack/apsara/v1' instead.\n */\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["React","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;AAKA,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE3C,MAAM,cAAc,GAAGA,cAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC/DC,qBAAA,CAACC,yCAAuB,EACtB,EAAA,QAAA,EAAAD,qBAAA,CAACE,yCAAwB,EAAA,EACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,GACpC,KAAK,EAAA,CACT,EACsB,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,yCAAwB,CAAC,WAAW,CAAC;AAGlE;;AAEG;AACU,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,yCAAqB,EAAE;IAC1D,OAAO,EAAEC,yCAAwB;IACjC,KAAK,EAAEC,yCAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}