@raystack/apsara 0.30.0 → 0.30.1

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.
@@ -16,6 +16,9 @@ const headline = index.cva(headline_module.default.headline, {
16
16
  size: "small",
17
17
  },
18
18
  });
19
+ /**
20
+ * @deprecated Use Headline from '@raystack/apsara/v1' instead.
21
+ */
19
22
  function Headline({ children, className, size, ...props }) {
20
23
  return (jsxRuntime.jsxRuntimeExports.jsx("span", { className: headline({ size, className }), ...props, children: children }));
21
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headline.cjs","sources":["../../headline/headline.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype HeadlineProps = PropsWithChildren<VariantProps<typeof headline>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Headline({\n children,\n className,\n size,\n ...props\n}: HeadlineProps) {\n\n return (\n <span className={headline({ size, className })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAIA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAEA,uBAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKa,SAAA,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACM,EAAA;AAEd,IAAA,QACEC,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACtD,QAAQ,EAAA,CACJ,EACP;AACJ;;;;"}
1
+ {"version":3,"file":"headline.cjs","sources":["../../headline/headline.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype HeadlineProps = PropsWithChildren<VariantProps<typeof headline>> &\n HTMLAttributes<HTMLSpanElement>;\n\n/**\n * @deprecated Use Headline from '@raystack/apsara/v1' instead.\n */\nexport function Headline({\n children,\n className,\n size,\n ...props\n}: HeadlineProps) {\n\n return (\n <span className={headline({ size, className })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAIA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAEA,uBAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKH;;AAEG;AACa,SAAA,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACM,EAAA;AAEd,IAAA,QACEC,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACtD,QAAQ,EAAA,CACJ,EACP;AACJ;;;;"}
@@ -4,6 +4,9 @@ declare const headline: (props?: ({
4
4
  size?: "small" | "medium" | "large" | null | undefined;
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  type HeadlineProps = PropsWithChildren<VariantProps<typeof headline>> & HTMLAttributes<HTMLSpanElement>;
7
+ /**
8
+ * @deprecated Use Headline from '@raystack/apsara/v1' instead.
9
+ */
7
10
  export declare function Headline({ children, className, size, ...props }: HeadlineProps): import("react/jsx-runtime").JSX.Element;
8
11
  export {};
9
12
  //# sourceMappingURL=headline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,QAAQ;;mFAWZ,CAAC;AAEH,KAAK,aAAa,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,GACnE,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,aAAa,2CAOf"}
1
+ {"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,QAAQ;;mFAWZ,CAAC;AAEH,KAAK,aAAa,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,GACnE,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,aAAa,2CAOf"}
@@ -14,6 +14,9 @@ const headline = cva(styles.headline, {
14
14
  size: "small",
15
15
  },
16
16
  });
17
+ /**
18
+ * @deprecated Use Headline from '@raystack/apsara/v1' instead.
19
+ */
17
20
  function Headline({ children, className, size, ...props }) {
18
21
  return (jsxRuntimeExports.jsx("span", { className: headline({ size, className }), ...props, children: children }));
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headline.js","sources":["../../headline/headline.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype HeadlineProps = PropsWithChildren<VariantProps<typeof headline>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Headline({\n children,\n className,\n size,\n ...props\n}: HeadlineProps) {\n\n return (\n <span className={headline({ size, className })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKa,SAAA,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACM,EAAA;AAEd,IAAA,QACEA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACtD,QAAQ,EAAA,CACJ,EACP;AACJ;;;;"}
1
+ {"version":3,"file":"headline.js","sources":["../../headline/headline.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\ntype HeadlineProps = PropsWithChildren<VariantProps<typeof headline>> &\n HTMLAttributes<HTMLSpanElement>;\n\n/**\n * @deprecated Use Headline from '@raystack/apsara/v1' instead.\n */\nexport function Headline({\n children,\n className,\n size,\n ...props\n}: HeadlineProps) {\n\n return (\n <span className={headline({ size, className })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAKH;;AAEG;AACa,SAAA,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,KAAK,EACM,EAAA;AAEd,IAAA,QACEA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAM,GAAA,KAAK,YACtD,QAAQ,EAAA,CACJ,EACP;AACJ;;;;"}