@schandlergarcia/sf-web-components 1.5.0 → 1.6.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 (61) hide show
  1. package/dist/components/library/heroui/Alert.d.ts +6 -5
  2. package/dist/components/library/heroui/Alert.js +7 -8
  3. package/dist/components/library/heroui/Alert.js.map +1 -1
  4. package/dist/components/library/heroui/Badge.d.ts +8 -5
  5. package/dist/components/library/heroui/Badge.js +2 -3
  6. package/dist/components/library/heroui/Badge.js.map +1 -1
  7. package/dist/components/library/heroui/Button.d.ts +16 -26
  8. package/dist/components/library/heroui/Button.js +21 -22
  9. package/dist/components/library/heroui/Button.js.map +1 -1
  10. package/dist/components/library/heroui/Card.d.ts +8 -5
  11. package/dist/components/library/heroui/Card.js +6 -7
  12. package/dist/components/library/heroui/Card.js.map +1 -1
  13. package/dist/components/library/heroui/Modal.d.ts +6 -2
  14. package/dist/components/library/heroui/Modal.js +2 -3
  15. package/dist/components/library/heroui/Modal.js.map +1 -1
  16. package/dist/components/library/heroui/Pagination.d.ts +6 -2
  17. package/dist/components/library/heroui/Pagination.js +4 -5
  18. package/dist/components/library/heroui/Pagination.js.map +1 -1
  19. package/dist/components/library/heroui/ProgressBar.d.ts +8 -5
  20. package/dist/components/library/heroui/ProgressBar.js +0 -1
  21. package/dist/components/library/heroui/ProgressBar.js.map +1 -1
  22. package/dist/components/library/heroui/ProgressCircle.d.ts +8 -5
  23. package/dist/components/library/heroui/ProgressCircle.js +0 -1
  24. package/dist/components/library/heroui/ProgressCircle.js.map +1 -1
  25. package/dist/components/library/heroui/ScrollShadow.d.ts +8 -5
  26. package/dist/components/library/heroui/ScrollShadow.js +3 -4
  27. package/dist/components/library/heroui/ScrollShadow.js.map +1 -1
  28. package/dist/components/library/heroui/Separator.d.ts +6 -2
  29. package/dist/components/library/heroui/Separator.js +4 -5
  30. package/dist/components/library/heroui/Separator.js.map +1 -1
  31. package/dist/components/library/heroui/Tabs.d.ts +6 -5
  32. package/dist/components/library/heroui/Tabs.js +7 -8
  33. package/dist/components/library/heroui/Tabs.js.map +1 -1
  34. package/dist/components/library/heroui/Toggle.d.ts +5 -4
  35. package/dist/components/library/heroui/Toggle.js +5 -6
  36. package/dist/components/library/heroui/Toggle.js.map +1 -1
  37. package/dist/components/library/heroui/Tooltip.d.ts +6 -2
  38. package/dist/components/library/heroui/Tooltip.js +2 -3
  39. package/dist/components/library/heroui/Tooltip.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/components/library/heroui/Alert.tsx +13 -0
  42. package/src/components/library/heroui/Badge.tsx +14 -0
  43. package/src/components/library/heroui/{Button.jsx → Button.tsx} +26 -8
  44. package/src/components/library/heroui/Card.tsx +14 -0
  45. package/src/components/library/heroui/{Modal.jsx → Modal.tsx} +5 -2
  46. package/src/components/library/heroui/Pagination.tsx +11 -0
  47. package/src/components/library/heroui/ProgressBar.tsx +14 -0
  48. package/src/components/library/heroui/ProgressCircle.tsx +14 -0
  49. package/src/components/library/heroui/ScrollShadow.tsx +14 -0
  50. package/src/components/library/heroui/Separator.tsx +11 -0
  51. package/src/components/library/heroui/{Tabs.jsx → Tabs.tsx} +8 -3
  52. package/src/components/library/heroui/{Toggle.jsx → Toggle.tsx} +6 -2
  53. package/src/components/library/heroui/{Tooltip.jsx → Tooltip.tsx} +5 -2
  54. package/src/components/library/heroui/Alert.jsx +0 -8
  55. package/src/components/library/heroui/Badge.jsx +0 -8
  56. package/src/components/library/heroui/Card.jsx +0 -8
  57. package/src/components/library/heroui/Pagination.jsx +0 -8
  58. package/src/components/library/heroui/ProgressBar.jsx +0 -8
  59. package/src/components/library/heroui/ProgressCircle.jsx +0 -8
  60. package/src/components/library/heroui/ScrollShadow.jsx +0 -8
  61. package/src/components/library/heroui/Separator.jsx +0 -8
@@ -1,6 +1,7 @@
1
- export default function HeroUIAlert({ variant, ...props }: {
2
- [x: string]: any;
3
- variant?: string | undefined;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { Alert };
6
1
  import { Alert } from "@heroui/react";
2
+ export interface HeroUIAlertProps {
3
+ variant?: string;
4
+ [key: string]: any;
5
+ }
6
+ export default function HeroUIAlert({ variant, ...props }: HeroUIAlertProps): import("react/jsx-runtime").JSX.Element;
7
+ export { Alert };
@@ -1,12 +1,11 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
- import { Alert as e } from "@heroui/react";
4
- import { Alert as a } from "@heroui/react";
5
- function p({ variant: r = "default", ...t }) {
6
- return /* @__PURE__ */ o(e, { variant: r, ...t });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Alert as o } from "@heroui/react";
3
+ import { Alert as u } from "@heroui/react";
4
+ function n({ variant: r = "default", ...t }) {
5
+ return /* @__PURE__ */ e(o, { variant: r, ...t });
7
6
  }
8
7
  export {
9
- a as Alert,
10
- p as default
8
+ u as Alert,
9
+ n as default
11
10
  };
12
11
  //# sourceMappingURL=Alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../../src/components/library/heroui/Alert.jsx"],"sourcesContent":["import React from \"react\";\nimport { Alert } from \"@heroui/react\";\n\nexport default function HeroUIAlert({ variant = \"default\", ...props }) {\n return <Alert variant={variant} {...props} />;\n}\n\nexport { Alert };\n"],"names":["HeroUIAlert","variant","props","jsx","Alert"],"mappings":";;;;AAGA,SAAwBA,EAAY,EAAE,SAAAC,IAAU,WAAW,GAAGC,KAAS;AACrE,SAAO,gBAAAC,EAACC,GAAA,EAAM,SAAAH,GAAmB,GAAGC,EAAA,CAAO;AAC7C;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../../../src/components/library/heroui/Alert.tsx"],"sourcesContent":["import { Alert } from \"@heroui/react\";\n\nexport interface HeroUIAlertProps {\n variant?: string;\n [key: string]: any;\n}\n\nexport default function HeroUIAlert({ variant = \"default\", ...props }: HeroUIAlertProps) {\n const AlertAny = Alert as any;\n return <AlertAny variant={variant} {...props} />;\n}\n\nexport { Alert };\n"],"names":["HeroUIAlert","variant","props","jsx","Alert"],"mappings":";;;AAOA,SAAwBA,EAAY,EAAE,SAAAC,IAAU,WAAW,GAAGC,KAA2B;AAEvF,SAAO,gBAAAC,EADUC,GACT,EAAS,SAAAH,GAAmB,GAAGC,EAAA,CAAO;AAChD;"}
@@ -1,6 +1,9 @@
1
- export default function HeroUIBadge({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { Badge };
1
+ import type { ReactNode } from "react";
6
2
  import { Badge } from "@heroui/react";
3
+ import type { BadgeProps } from "@heroui/react";
4
+ export interface HeroUIBadgeProps extends BadgeProps {
5
+ children?: ReactNode;
6
+ }
7
+ export default function HeroUIBadge({ children, ...props }: HeroUIBadgeProps): import("react/jsx-runtime").JSX.Element;
8
+ export { Badge };
9
+ export type { BadgeProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Badge as t } from "@heroui/react";
4
3
  import { Badge as g } from "@heroui/react";
5
- function p({ children: r, ...o }) {
4
+ function m({ children: r, ...o }) {
6
5
  return /* @__PURE__ */ e(t, { ...o, children: r });
7
6
  }
8
7
  export {
9
8
  g as Badge,
10
- p as default
9
+ m as default
11
10
  };
12
11
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../../src/components/library/heroui/Badge.jsx"],"sourcesContent":["import React from \"react\";\nimport { Badge } from \"@heroui/react\";\n\nexport default function HeroUIBadge({ children, ...props }) {\n return <Badge {...props}>{children}</Badge>;\n}\n\nexport { Badge };\n"],"names":["HeroUIBadge","children","props","jsx","Badge"],"mappings":";;;;AAGA,SAAwBA,EAAY,EAAE,UAAAC,GAAU,GAAGC,KAAS;AAC1D,SAAO,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AACrC;"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../../src/components/library/heroui/Badge.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Badge } from \"@heroui/react\";\nimport type { BadgeProps } from \"@heroui/react\";\n\nexport interface HeroUIBadgeProps extends BadgeProps {\n children?: ReactNode;\n}\n\nexport default function HeroUIBadge({ children, ...props }: HeroUIBadgeProps) {\n return <Badge {...props}>{children}</Badge>;\n}\n\nexport { Badge };\nexport type { BadgeProps };\n"],"names":["HeroUIBadge","children","props","jsx","Badge"],"mappings":";;;AAQA,SAAwBA,EAAY,EAAE,UAAAC,GAAU,GAAGC,KAA2B;AAC5E,SAAO,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AACrC;"}
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from "react";
1
2
  /**
2
3
  * HeroUI v3 Button wrapper with shadcn compatibility.
3
4
  *
@@ -6,29 +7,18 @@
6
7
  * - outline -> bordered
7
8
  * - ghost -> light
8
9
  */
9
- export default function HeroUIButton({ variant, size, fullWidth, onClick, children, className, ...props }: {
10
- [x: string]: any;
11
- variant?: string | undefined;
12
- size?: string | undefined;
13
- fullWidth: any;
14
- onClick: any;
15
- children: any;
16
- className?: string | undefined;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- /**
19
- * HeroUI v3 Button wrapper with shadcn compatibility.
20
- *
21
- * Maps shadcn variants to HeroUI:
22
- * - primary/secondary/destructive -> solid
23
- * - outline -> bordered
24
- * - ghost -> light
25
- */
26
- export function Button({ variant, size, fullWidth, onClick, children, className, ...props }: {
27
- [x: string]: any;
28
- variant?: string | undefined;
29
- size?: string | undefined;
30
- fullWidth: any;
31
- onClick: any;
32
- children: any;
33
- className?: string | undefined;
34
- }): import("react/jsx-runtime").JSX.Element;
10
+ type ShadcnVariant = "primary" | "secondary" | "destructive" | "outline" | "ghost";
11
+ export interface HeroUIButtonProps {
12
+ variant?: ShadcnVariant;
13
+ size?: "sm" | "md" | "lg";
14
+ fullWidth?: boolean;
15
+ onClick?: () => void;
16
+ children?: ReactNode;
17
+ className?: string;
18
+ disabled?: boolean;
19
+ type?: "button" | "submit" | "reset";
20
+ [key: string]: any;
21
+ }
22
+ export default function HeroUIButton({ variant, size, fullWidth, onClick, children, className, ...props }: HeroUIButtonProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare const Button: typeof HeroUIButton;
24
+ export {};
@@ -1,45 +1,44 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import "react";
1
+ import { jsx as l } from "react/jsx-runtime";
3
2
  import { Button as m } from "@heroui/react";
4
3
  function p({
5
4
  variant: o = "primary",
6
- size: r = "md",
7
- fullWidth: t,
8
- onClick: e,
9
- children: a,
10
- className: i = "",
11
- ...n
5
+ size: t = "md",
6
+ fullWidth: r,
7
+ onClick: n,
8
+ children: e,
9
+ className: s = "",
10
+ ...a
12
11
  }) {
13
- const s = {
12
+ const i = {
14
13
  primary: "solid",
15
14
  secondary: "solid",
16
15
  destructive: "solid",
17
16
  outline: "bordered",
18
17
  ghost: "light"
19
- }, d = {
18
+ }, u = {
20
19
  primary: "primary",
21
20
  secondary: "default",
22
21
  destructive: "danger",
23
22
  outline: "default",
24
23
  ghost: "default"
25
- }, l = s[o] || "solid", u = d[o] || "primary";
26
- return /* @__PURE__ */ c(
24
+ }, d = i[o], c = u[o];
25
+ return /* @__PURE__ */ l(
27
26
  m,
28
27
  {
29
- variant: l,
30
- color: u,
31
- size: r,
32
- fullWidth: t,
33
- onPress: e,
34
- className: i,
35
- ...n,
36
- children: a
28
+ variant: d,
29
+ color: c,
30
+ size: t,
31
+ fullWidth: r,
32
+ onPress: n,
33
+ className: s,
34
+ ...a,
35
+ children: e
37
36
  }
38
37
  );
39
38
  }
40
- const g = p;
39
+ const h = p;
41
40
  export {
42
- g as Button,
41
+ h as Button,
43
42
  p as default
44
43
  };
45
44
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../../src/components/library/heroui/Button.jsx"],"sourcesContent":["import React from \"react\";\nimport { Button as HeroButton } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Button wrapper with shadcn compatibility.\n *\n * Maps shadcn variants to HeroUI:\n * - primary/secondary/destructive -> solid\n * - outline -> bordered\n * - ghost -> light\n */\nexport default function HeroUIButton({\n variant = \"primary\",\n size = \"md\",\n fullWidth,\n onClick,\n children,\n className = \"\",\n ...props\n}) {\n // Map shadcn variants to HeroUI variants\n const variantMap = {\n primary: \"solid\",\n secondary: \"solid\",\n destructive: \"solid\",\n outline: \"bordered\",\n ghost: \"light\"\n };\n\n // Map shadcn variants to HeroUI colors\n const colorMap = {\n primary: \"primary\",\n secondary: \"default\",\n destructive: \"danger\",\n outline: \"default\",\n ghost: \"default\"\n };\n\n const heroVariant = variantMap[variant] || \"solid\";\n const heroColor = colorMap[variant] || \"primary\";\n\n return (\n <HeroButton\n variant={heroVariant}\n color={heroColor}\n size={size}\n fullWidth={fullWidth}\n onPress={onClick}\n className={className}\n {...props}\n >\n {children}\n </HeroButton>\n );\n}\n\n// Also export as Button for shadcn compatibility\nexport const Button = HeroUIButton;\n"],"names":["HeroUIButton","variant","size","fullWidth","onClick","children","className","props","variantMap","colorMap","heroVariant","heroColor","jsx","HeroButton","Button"],"mappings":";;;AAWA,SAAwBA,EAAa;AAAA,EACnC,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAAG;AAED,QAAMC,IAAa;AAAA,IACjB,SAAS;AAAA,IACT,WAAW;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GAIHC,IAAW;AAAA,IACf,SAAS;AAAA,IACT,WAAW;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GAGHC,IAAcF,EAAWP,CAAO,KAAK,SACrCU,IAAYF,EAASR,CAAO,KAAK;AAEvC,SACE,gBAAAW;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,SAASH;AAAA,MACT,OAAOC;AAAA,MACP,MAAAT;AAAA,MACA,WAAAC;AAAA,MACA,SAASC;AAAA,MACT,WAAAE;AAAA,MACC,GAAGC;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;AAGO,MAAMS,IAASd;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../../src/components/library/heroui/Button.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Button as HeroButton } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Button wrapper with shadcn compatibility.\n *\n * Maps shadcn variants to HeroUI:\n * - primary/secondary/destructive -> solid\n * - outline -> bordered\n * - ghost -> light\n */\n\ntype ShadcnVariant = \"primary\" | \"secondary\" | \"destructive\" | \"outline\" | \"ghost\";\n\nexport interface HeroUIButtonProps {\n variant?: ShadcnVariant;\n size?: \"sm\" | \"md\" | \"lg\";\n fullWidth?: boolean;\n onClick?: () => void;\n children?: ReactNode;\n className?: string;\n disabled?: boolean;\n type?: \"button\" | \"submit\" | \"reset\";\n [key: string]: any;\n}\n\nexport default function HeroUIButton({\n variant = \"primary\",\n size = \"md\",\n fullWidth,\n onClick,\n children,\n className = \"\",\n ...props\n}: HeroUIButtonProps) {\n // Map shadcn variants to HeroUI variants\n const variantMap: Record<ShadcnVariant, string> = {\n primary: \"solid\",\n secondary: \"solid\",\n destructive: \"solid\",\n outline: \"bordered\",\n ghost: \"light\"\n };\n\n // Map shadcn variants to HeroUI colors\n const colorMap: Record<ShadcnVariant, string> = {\n primary: \"primary\",\n secondary: \"default\",\n destructive: \"danger\",\n outline: \"default\",\n ghost: \"default\"\n };\n\n const heroVariant = variantMap[variant];\n const heroColor = colorMap[variant];\n\n const HeroButtonAny = HeroButton as any;\n\n return (\n <HeroButtonAny\n variant={heroVariant}\n color={heroColor}\n size={size}\n fullWidth={fullWidth}\n onPress={onClick}\n className={className}\n {...props}\n >\n {children}\n </HeroButtonAny>\n );\n}\n\n// Also export as Button for shadcn compatibility\nexport const Button = HeroUIButton;\n\n"],"names":["HeroUIButton","variant","size","fullWidth","onClick","children","className","props","variantMap","colorMap","heroVariant","heroColor","jsx","HeroButton","Button"],"mappings":";;AA0BA,SAAwBA,EAAa;AAAA,EACnC,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAAsB;AAEpB,QAAMC,IAA4C;AAAA,IAChD,SAAS;AAAA,IACT,WAAW;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GAIHC,IAA0C;AAAA,IAC9C,SAAS;AAAA,IACT,WAAW;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GAGHC,IAAcF,EAAWP,CAAO,GAChCU,IAAYF,EAASR,CAAO;AAIlC,SACE,gBAAAW;AAAA,IAHoBC;AAAAA,IAGnB;AAAA,MACC,SAASH;AAAA,MACT,OAAOC;AAAA,MACP,MAAAT;AAAA,MACA,WAAAC;AAAA,MACA,SAASC;AAAA,MACT,WAAAE;AAAA,MACC,GAAGC;AAAA,MAEH,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;AAGO,MAAMS,IAASd;"}
@@ -1,6 +1,9 @@
1
- export default function HeroUICard({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { Card };
1
+ import type { ReactNode } from "react";
6
2
  import { Card } from "@heroui/react";
3
+ import type { CardProps } from "@heroui/react";
4
+ export interface HeroUICardProps extends CardProps {
5
+ children?: ReactNode;
6
+ }
7
+ export default function HeroUICard({ children, ...props }: HeroUICardProps): import("react/jsx-runtime").JSX.Element;
8
+ export { Card };
9
+ export type { CardProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import "react";
3
- import { Card as m } from "@heroui/react";
4
- import { Card as n } from "@heroui/react";
5
- function p({ children: r, ...o }) {
6
- return /* @__PURE__ */ t(m, { ...o, children: r });
2
+ import { Card as a } from "@heroui/react";
3
+ import { Card as i } from "@heroui/react";
4
+ function m({ children: r, ...o }) {
5
+ return /* @__PURE__ */ t(a, { ...o, children: r });
7
6
  }
8
7
  export {
9
- n as Card,
10
- p as default
8
+ i as Card,
9
+ m as default
11
10
  };
12
11
  //# sourceMappingURL=Card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sources":["../../../../src/components/library/heroui/Card.jsx"],"sourcesContent":["import React from \"react\";\nimport { Card } from \"@heroui/react\";\n\nexport default function HeroUICard({ children, ...props }) {\n return <Card {...props}>{children}</Card>;\n}\n\nexport { Card };\n"],"names":["HeroUICard","children","props","jsx","Card"],"mappings":";;;;AAGA,SAAwBA,EAAW,EAAE,UAAAC,GAAU,GAAGC,KAAS;AACzD,SAAO,gBAAAC,EAACC,GAAA,EAAM,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AACpC;"}
1
+ {"version":3,"file":"Card.js","sources":["../../../../src/components/library/heroui/Card.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Card } from \"@heroui/react\";\nimport type { CardProps } from \"@heroui/react\";\n\nexport interface HeroUICardProps extends CardProps {\n children?: ReactNode;\n}\n\nexport default function HeroUICard({ children, ...props }: HeroUICardProps) {\n return <Card {...props}>{children}</Card>;\n}\n\nexport { Card };\nexport type { CardProps };\n"],"names":["HeroUICard","children","props","jsx","Card"],"mappings":";;;AAQA,SAAwBA,EAAW,EAAE,UAAAC,GAAU,GAAGC,KAA0B;AAC1E,SAAO,gBAAAC,EAACC,GAAA,EAAM,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AACpC;"}
@@ -1,3 +1,5 @@
1
+ import { Modal } from "@heroui/react";
2
+ import type { ModalProps } from "@heroui/react";
1
3
  /**
2
4
  * HeroUI v3 Modal — compound component.
3
5
  *
@@ -22,6 +24,8 @@
22
24
  * </Modal.Backdrop>
23
25
  * </Modal>
24
26
  */
25
- export default function HeroUIModal(props: any): import("react/jsx-runtime").JSX.Element;
27
+ export interface HeroUIModalProps extends ModalProps {
28
+ }
29
+ export default function HeroUIModal(props: HeroUIModalProps): import("react/jsx-runtime").JSX.Element;
26
30
  export { Modal };
27
- import { Modal } from "@heroui/react";
31
+ export type { ModalProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Modal as t } from "@heroui/react";
4
- import { Modal as i } from "@heroui/react";
3
+ import { Modal as l } from "@heroui/react";
5
4
  function f(o) {
6
5
  return /* @__PURE__ */ r(t, { ...o });
7
6
  }
8
7
  export {
9
- i as Modal,
8
+ l as Modal,
10
9
  f as default
11
10
  };
12
11
  //# sourceMappingURL=Modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sources":["../../../../src/components/library/heroui/Modal.jsx"],"sourcesContent":["import React from \"react\";\nimport { Modal } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Modal — compound component.\n *\n * Sub-components via dot notation on the named `Modal` export:\n * Modal.Backdrop, Modal.Container, Modal.Dialog,\n * Modal.CloseTrigger, Modal.Header, Modal.Icon,\n * Modal.Heading, Modal.Body, Modal.Footer\n *\n * @example\n * import { Modal } from \"@/components/library\";\n * <Modal>\n * <Button>Open</Button>\n * <Modal.Backdrop>\n * <Modal.Container>\n * <Modal.Dialog>\n * <Modal.CloseTrigger />\n * <Modal.Header><Modal.Heading>Title</Modal.Heading></Modal.Header>\n * <Modal.Body>…</Modal.Body>\n * <Modal.Footer>…</Modal.Footer>\n * </Modal.Dialog>\n * </Modal.Container>\n * </Modal.Backdrop>\n * </Modal>\n */\nexport default function HeroUIModal(props) {\n return <Modal {...props} />;\n}\n\nexport { Modal };\n"],"names":["HeroUIModal","props","jsx","Modal"],"mappings":";;;;AA2BA,SAAwBA,EAAYC,GAAO;AACzC,SAAO,gBAAAC,EAACC,GAAA,EAAO,GAAGF,EAAA,CAAO;AAC3B;"}
1
+ {"version":3,"file":"Modal.js","sources":["../../../../src/components/library/heroui/Modal.tsx"],"sourcesContent":["import { Modal } from \"@heroui/react\";\nimport type { ModalProps } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Modal — compound component.\n *\n * Sub-components via dot notation on the named `Modal` export:\n * Modal.Backdrop, Modal.Container, Modal.Dialog,\n * Modal.CloseTrigger, Modal.Header, Modal.Icon,\n * Modal.Heading, Modal.Body, Modal.Footer\n *\n * @example\n * import { Modal } from \"@/components/library\";\n * <Modal>\n * <Button>Open</Button>\n * <Modal.Backdrop>\n * <Modal.Container>\n * <Modal.Dialog>\n * <Modal.CloseTrigger />\n * <Modal.Header><Modal.Heading>Title</Modal.Heading></Modal.Header>\n * <Modal.Body>…</Modal.Body>\n * <Modal.Footer>…</Modal.Footer>\n * </Modal.Dialog>\n * </Modal.Container>\n * </Modal.Backdrop>\n * </Modal>\n */\nexport interface HeroUIModalProps extends ModalProps {}\n\nexport default function HeroUIModal(props: HeroUIModalProps) {\n return <Modal {...props} />;\n}\n\nexport { Modal };\nexport type { ModalProps };\n"],"names":["HeroUIModal","props","jsx","Modal"],"mappings":";;;AA6BA,SAAwBA,EAAYC,GAAyB;AAC3D,SAAO,gBAAAC,EAACC,GAAA,EAAO,GAAGF,EAAA,CAAO;AAC3B;"}
@@ -1,3 +1,7 @@
1
- export default function HeroUIPagination(props: any): import("react/jsx-runtime").JSX.Element;
2
- export { Pagination };
3
1
  import { Pagination } from "@heroui/react";
2
+ import type { PaginationProps } from "@heroui/react";
3
+ export interface HeroUIPaginationProps extends PaginationProps {
4
+ }
5
+ export default function HeroUIPagination(props: HeroUIPaginationProps): import("react/jsx-runtime").JSX.Element;
6
+ export { Pagination };
7
+ export type { PaginationProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Pagination as t } from "@heroui/react";
4
- import { Pagination as p } from "@heroui/react";
5
- function m(o) {
3
+ import { Pagination as m } from "@heroui/react";
4
+ function a(o) {
6
5
  return /* @__PURE__ */ r(t, { ...o });
7
6
  }
8
7
  export {
9
- p as Pagination,
10
- m as default
8
+ m as Pagination,
9
+ a as default
11
10
  };
12
11
  //# sourceMappingURL=Pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.js","sources":["../../../../src/components/library/heroui/Pagination.jsx"],"sourcesContent":["import React from \"react\";\nimport { Pagination } from \"@heroui/react\";\n\nexport default function HeroUIPagination(props) {\n return <Pagination {...props} />;\n}\n\nexport { Pagination };\n"],"names":["HeroUIPagination","props","jsx","Pagination"],"mappings":";;;;AAGA,SAAwBA,EAAiBC,GAAO;AAC9C,SAAO,gBAAAC,EAACC,GAAA,EAAY,GAAGF,EAAA,CAAO;AAChC;"}
1
+ {"version":3,"file":"Pagination.js","sources":["../../../../src/components/library/heroui/Pagination.tsx"],"sourcesContent":["import { Pagination } from \"@heroui/react\";\nimport type { PaginationProps } from \"@heroui/react\";\n\nexport interface HeroUIPaginationProps extends PaginationProps {}\n\nexport default function HeroUIPagination(props: HeroUIPaginationProps) {\n return <Pagination {...props} />;\n}\n\nexport { Pagination };\nexport type { PaginationProps };\n"],"names":["HeroUIPagination","props","jsx","Pagination"],"mappings":";;;AAKA,SAAwBA,EAAiBC,GAA8B;AACrE,SAAO,gBAAAC,EAACC,GAAA,EAAY,GAAGF,EAAA,CAAO;AAChC;"}
@@ -1,6 +1,9 @@
1
- export default function HeroUIProgressBar({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { ProgressBar };
1
+ import type { ReactNode } from "react";
6
2
  import { ProgressBar } from "@heroui/react";
3
+ import type { ProgressBarProps } from "@heroui/react";
4
+ export interface HeroUIProgressBarProps extends ProgressBarProps {
5
+ children?: ReactNode;
6
+ }
7
+ export default function HeroUIProgressBar({ children, ...props }: HeroUIProgressBarProps): import("react/jsx-runtime").JSX.Element;
8
+ export { ProgressBar };
9
+ export type { ProgressBarProps };
@@ -1,5 +1,4 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "react";
3
2
  import { ProgressBar as s } from "@heroui/react";
4
3
  import { ProgressBar as g } from "@heroui/react";
5
4
  function f({ children: r, ...o }) {
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sources":["../../../../src/components/library/heroui/ProgressBar.jsx"],"sourcesContent":["import React from \"react\";\nimport { ProgressBar } from \"@heroui/react\";\n\nexport default function HeroUIProgressBar({ children, ...props }) {\n return <ProgressBar {...props}>{children}</ProgressBar>;\n}\n\nexport { ProgressBar };\n"],"names":["HeroUIProgressBar","children","props","jsx","ProgressBar"],"mappings":";;;;AAGA,SAAwBA,EAAkB,EAAE,UAAAC,GAAU,GAAGC,KAAS;AAChE,SAAO,gBAAAC,EAACC,GAAA,EAAa,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC3C;"}
1
+ {"version":3,"file":"ProgressBar.js","sources":["../../../../src/components/library/heroui/ProgressBar.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { ProgressBar } from \"@heroui/react\";\nimport type { ProgressBarProps } from \"@heroui/react\";\n\nexport interface HeroUIProgressBarProps extends ProgressBarProps {\n children?: ReactNode;\n}\n\nexport default function HeroUIProgressBar({ children, ...props }: HeroUIProgressBarProps) {\n return <ProgressBar {...props}>{children}</ProgressBar>;\n}\n\nexport { ProgressBar };\nexport type { ProgressBarProps };\n"],"names":["HeroUIProgressBar","children","props","jsx","ProgressBar"],"mappings":";;;AAQA,SAAwBA,EAAkB,EAAE,UAAAC,GAAU,GAAGC,KAAiC;AACxF,SAAO,gBAAAC,EAACC,GAAA,EAAa,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC3C;"}
@@ -1,6 +1,9 @@
1
- export default function HeroUIProgressCircle({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { ProgressCircle };
1
+ import type { ReactNode } from "react";
6
2
  import { ProgressCircle } from "@heroui/react";
3
+ import type { ProgressCircleProps } from "@heroui/react";
4
+ export interface HeroUIProgressCircleProps extends ProgressCircleProps {
5
+ children?: ReactNode;
6
+ }
7
+ export default function HeroUIProgressCircle({ children, ...props }: HeroUIProgressCircleProps): import("react/jsx-runtime").JSX.Element;
8
+ export { ProgressCircle };
9
+ export type { ProgressCircleProps };
@@ -1,5 +1,4 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "react";
3
2
  import { ProgressCircle as s } from "@heroui/react";
4
3
  import { ProgressCircle as l } from "@heroui/react";
5
4
  function f({ children: r, ...o }) {
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircle.js","sources":["../../../../src/components/library/heroui/ProgressCircle.jsx"],"sourcesContent":["import React from \"react\";\nimport { ProgressCircle } from \"@heroui/react\";\n\nexport default function HeroUIProgressCircle({ children, ...props }) {\n return <ProgressCircle {...props}>{children}</ProgressCircle>;\n}\n\nexport { ProgressCircle };\n"],"names":["HeroUIProgressCircle","children","props","jsx","ProgressCircle"],"mappings":";;;;AAGA,SAAwBA,EAAqB,EAAE,UAAAC,GAAU,GAAGC,KAAS;AACnE,SAAO,gBAAAC,EAACC,GAAA,EAAgB,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC9C;"}
1
+ {"version":3,"file":"ProgressCircle.js","sources":["../../../../src/components/library/heroui/ProgressCircle.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { ProgressCircle } from \"@heroui/react\";\nimport type { ProgressCircleProps } from \"@heroui/react\";\n\nexport interface HeroUIProgressCircleProps extends ProgressCircleProps {\n children?: ReactNode;\n}\n\nexport default function HeroUIProgressCircle({ children, ...props }: HeroUIProgressCircleProps) {\n return <ProgressCircle {...props}>{children}</ProgressCircle>;\n}\n\nexport { ProgressCircle };\nexport type { ProgressCircleProps };\n"],"names":["HeroUIProgressCircle","children","props","jsx","ProgressCircle"],"mappings":";;;AAQA,SAAwBA,EAAqB,EAAE,UAAAC,GAAU,GAAGC,KAAoC;AAC9F,SAAO,gBAAAC,EAACC,GAAA,EAAgB,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC9C;"}
@@ -1,6 +1,9 @@
1
- export default function HeroUIScrollShadow({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export { ScrollShadow };
1
+ import type { ReactNode } from "react";
6
2
  import { ScrollShadow } from "@heroui/react";
3
+ import type { ScrollShadowProps } from "@heroui/react";
4
+ export interface HeroUIScrollShadowProps extends ScrollShadowProps {
5
+ children?: ReactNode;
6
+ }
7
+ export default function HeroUIScrollShadow({ children, ...props }: HeroUIScrollShadowProps): import("react/jsx-runtime").JSX.Element;
8
+ export { ScrollShadow };
9
+ export type { ScrollShadowProps };
@@ -1,9 +1,8 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import "react";
3
- import { ScrollShadow as l } from "@heroui/react";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { ScrollShadow as t } from "@heroui/react";
4
3
  import { ScrollShadow as c } from "@heroui/react";
5
4
  function e({ children: o, ...r }) {
6
- return /* @__PURE__ */ t(l, { ...r, children: o });
5
+ return /* @__PURE__ */ l(t, { ...r, children: o });
7
6
  }
8
7
  export {
9
8
  c as ScrollShadow,
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollShadow.js","sources":["../../../../src/components/library/heroui/ScrollShadow.jsx"],"sourcesContent":["import React from \"react\";\nimport { ScrollShadow } from \"@heroui/react\";\n\nexport default function HeroUIScrollShadow({ children, ...props }) {\n return <ScrollShadow {...props}>{children}</ScrollShadow>;\n}\n\nexport { ScrollShadow };\n"],"names":["HeroUIScrollShadow","children","props","jsx","ScrollShadow"],"mappings":";;;;AAGA,SAAwBA,EAAmB,EAAE,UAAAC,GAAU,GAAGC,KAAS;AACjE,SAAO,gBAAAC,EAACC,GAAA,EAAc,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC5C;"}
1
+ {"version":3,"file":"ScrollShadow.js","sources":["../../../../src/components/library/heroui/ScrollShadow.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { ScrollShadow } from \"@heroui/react\";\nimport type { ScrollShadowProps } from \"@heroui/react\";\n\nexport interface HeroUIScrollShadowProps extends ScrollShadowProps {\n children?: ReactNode;\n}\n\nexport default function HeroUIScrollShadow({ children, ...props }: HeroUIScrollShadowProps) {\n return <ScrollShadow {...props}>{children}</ScrollShadow>;\n}\n\nexport { ScrollShadow };\nexport type { ScrollShadowProps };\n"],"names":["HeroUIScrollShadow","children","props","jsx","ScrollShadow"],"mappings":";;;AAQA,SAAwBA,EAAmB,EAAE,UAAAC,GAAU,GAAGC,KAAkC;AAC1F,SAAO,gBAAAC,EAACC,GAAA,EAAc,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AAC5C;"}
@@ -1,3 +1,7 @@
1
- export default function HeroUISeparator(props: any): import("react/jsx-runtime").JSX.Element;
2
- export { Separator };
3
1
  import { Separator } from "@heroui/react";
2
+ import type { SeparatorProps } from "@heroui/react";
3
+ export interface HeroUISeparatorProps extends SeparatorProps {
4
+ }
5
+ export default function HeroUISeparator(props: HeroUISeparatorProps): import("react/jsx-runtime").JSX.Element;
6
+ export { Separator };
7
+ export type { SeparatorProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Separator as t } from "@heroui/react";
4
- import { Separator as n } from "@heroui/react";
5
- function m(r) {
3
+ import { Separator as i } from "@heroui/react";
4
+ function p(r) {
6
5
  return /* @__PURE__ */ o(t, { ...r });
7
6
  }
8
7
  export {
9
- n as Separator,
10
- m as default
8
+ i as Separator,
9
+ p as default
11
10
  };
12
11
  //# sourceMappingURL=Separator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.js","sources":["../../../../src/components/library/heroui/Separator.jsx"],"sourcesContent":["import React from \"react\";\nimport { Separator } from \"@heroui/react\";\n\nexport default function HeroUISeparator(props) {\n return <Separator {...props} />;\n}\n\nexport { Separator };\n"],"names":["HeroUISeparator","props","jsx","Separator"],"mappings":";;;;AAGA,SAAwBA,EAAgBC,GAAO;AAC7C,SAAO,gBAAAC,EAACC,GAAA,EAAW,GAAGF,EAAA,CAAO;AAC/B;"}
1
+ {"version":3,"file":"Separator.js","sources":["../../../../src/components/library/heroui/Separator.tsx"],"sourcesContent":["import { Separator } from \"@heroui/react\";\nimport type { SeparatorProps } from \"@heroui/react\";\n\nexport interface HeroUISeparatorProps extends SeparatorProps {}\n\nexport default function HeroUISeparator(props: HeroUISeparatorProps) {\n return <Separator {...props} />;\n}\n\nexport { Separator };\nexport type { SeparatorProps };\n"],"names":["HeroUISeparator","props","jsx","Separator"],"mappings":";;;AAKA,SAAwBA,EAAgBC,GAA6B;AACnE,SAAO,gBAAAC,EAACC,GAAA,EAAW,GAAGF,EAAA,CAAO;AAC/B;"}
@@ -1,3 +1,4 @@
1
+ import { Tabs } from "@heroui/react";
1
2
  /**
2
3
  * HeroUI v3 Tabs — compound component.
3
4
  *
@@ -16,9 +17,9 @@
16
17
  * <Tabs.Panel id="analytics">…</Tabs.Panel>
17
18
  * </Tabs>
18
19
  */
19
- export default function HeroUITabs({ variant, ...props }: {
20
- [x: string]: any;
21
- variant?: string | undefined;
22
- }): import("react/jsx-runtime").JSX.Element;
20
+ export interface HeroUITabsProps {
21
+ variant?: string;
22
+ [key: string]: any;
23
+ }
24
+ export default function HeroUITabs({ variant, ...props }: HeroUITabsProps): import("react/jsx-runtime").JSX.Element;
23
25
  export { Tabs };
24
- import { Tabs } from "@heroui/react";
@@ -1,12 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import "react";
3
- import { Tabs as m } from "@heroui/react";
4
- import { Tabs as b } from "@heroui/react";
5
- function f({ variant: r = "primary", ...o }) {
6
- return /* @__PURE__ */ t(m, { variant: r, ...o });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { Tabs as s } from "@heroui/react";
3
+ import { Tabs as p } from "@heroui/react";
4
+ function b({ variant: r = "primary", ...o }) {
5
+ return /* @__PURE__ */ a(s, { variant: r, ...o });
7
6
  }
8
7
  export {
9
- b as Tabs,
10
- f as default
8
+ p as Tabs,
9
+ b as default
11
10
  };
12
11
  //# sourceMappingURL=Tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sources":["../../../../src/components/library/heroui/Tabs.jsx"],"sourcesContent":["import React from \"react\";\nimport { Tabs } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Tabs — compound component.\n *\n * Sub-components via dot notation on the named `Tabs` export:\n * Tabs.List, Tabs.ListContainer, Tabs.Tab, Tabs.Panel,\n * Tabs.Separator, Tabs.Indicator\n *\n * @example\n * import { Tabs } from \"@/components/library\";\n * <Tabs>\n * <Tabs.List aria-label=\"Options\">\n * <Tabs.Tab id=\"overview\">Overview</Tabs.Tab>\n * <Tabs.Tab id=\"analytics\">Analytics</Tabs.Tab>\n * </Tabs.List>\n * <Tabs.Panel id=\"overview\">…</Tabs.Panel>\n * <Tabs.Panel id=\"analytics\">…</Tabs.Panel>\n * </Tabs>\n */\nexport default function HeroUITabs({ variant = \"primary\", ...props }) {\n return <Tabs variant={variant} {...props} />;\n}\n\nexport { Tabs };\n"],"names":["HeroUITabs","variant","props","jsx","Tabs"],"mappings":";;;;AAqBA,SAAwBA,EAAW,EAAE,SAAAC,IAAU,WAAW,GAAGC,KAAS;AACpE,SAAO,gBAAAC,EAACC,GAAA,EAAK,SAAAH,GAAmB,GAAGC,EAAA,CAAO;AAC5C;"}
1
+ {"version":3,"file":"Tabs.js","sources":["../../../../src/components/library/heroui/Tabs.tsx"],"sourcesContent":["import { Tabs } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Tabs — compound component.\n *\n * Sub-components via dot notation on the named `Tabs` export:\n * Tabs.List, Tabs.ListContainer, Tabs.Tab, Tabs.Panel,\n * Tabs.Separator, Tabs.Indicator\n *\n * @example\n * import { Tabs } from \"@/components/library\";\n * <Tabs>\n * <Tabs.List aria-label=\"Options\">\n * <Tabs.Tab id=\"overview\">Overview</Tabs.Tab>\n * <Tabs.Tab id=\"analytics\">Analytics</Tabs.Tab>\n * </Tabs.List>\n * <Tabs.Panel id=\"overview\">…</Tabs.Panel>\n * <Tabs.Panel id=\"analytics\">…</Tabs.Panel>\n * </Tabs>\n */\nexport interface HeroUITabsProps {\n variant?: string;\n [key: string]: any;\n}\n\nexport default function HeroUITabs({ variant = \"primary\", ...props }: HeroUITabsProps) {\n const TabsAny = Tabs as any;\n return <TabsAny variant={variant} {...props} />;\n}\n\nexport { Tabs };\n"],"names":["HeroUITabs","variant","props","jsx","Tabs"],"mappings":";;;AAyBA,SAAwBA,EAAW,EAAE,SAAAC,IAAU,WAAW,GAAGC,KAA0B;AAErF,SAAO,gBAAAC,EADSC,GACR,EAAQ,SAAAH,GAAmB,GAAGC,EAAA,CAAO;AAC/C;"}
@@ -1,4 +1,5 @@
1
- export default function HeroUIToggle({ label, ...props }: {
2
- [x: string]: any;
3
- label?: string | undefined;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ import type { SwitchProps } from "@heroui/react";
2
+ export interface HeroUIToggleProps extends Omit<SwitchProps, 'isSelected' | 'onChange'> {
3
+ label?: string;
4
+ }
5
+ export default function HeroUIToggle({ label, ...props }: HeroUIToggleProps): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Switch as o } from "@heroui/react";
4
- import { useThemeMode as m } from "../theme/AppThemeProvider.js";
5
- function f({ label: t = "Dark mode", ...r }) {
6
- const { mode: n, toggle: i } = m();
7
- return /* @__PURE__ */ e(o, { isSelected: n === "dark", onChange: i, ...r, children: /* @__PURE__ */ e(o.Content, { children: t }) });
3
+ import { useThemeMode as i } from "../theme/AppThemeProvider.js";
4
+ function a({ label: t = "Dark mode", ...r }) {
5
+ const { mode: n, toggle: d } = i();
6
+ return /* @__PURE__ */ e(o, { isSelected: n === "dark", onChange: d, ...r, children: /* @__PURE__ */ e(o.Content, { children: t }) });
8
7
  }
9
8
  export {
10
- f as default
9
+ a as default
11
10
  };
12
11
  //# sourceMappingURL=Toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.js","sources":["../../../../src/components/library/heroui/Toggle.jsx"],"sourcesContent":["import React from \"react\";\nimport { Switch } from \"@heroui/react\";\nimport { useThemeMode } from \"../theme/AppThemeProvider\";\n\nexport default function HeroUIToggle({ label = \"Dark mode\", ...props }) {\n const { mode, toggle } = useThemeMode();\n const isSelected = mode === \"dark\";\n\n return (\n <Switch isSelected={isSelected} onChange={toggle} {...props}>\n <Switch.Content>{label}</Switch.Content>\n </Switch>\n );\n}\n"],"names":["HeroUIToggle","label","props","mode","toggle","useThemeMode","jsx","Switch"],"mappings":";;;;AAIA,SAAwBA,EAAa,EAAE,OAAAC,IAAQ,aAAa,GAAGC,KAAS;AACtE,QAAM,EAAE,MAAAC,GAAM,QAAAC,EAAA,IAAWC,EAAA;AAGzB,SACE,gBAAAC,EAACC,GAAA,EAAO,YAHSJ,MAAS,QAGM,UAAUC,GAAS,GAAGF,GACpD,UAAA,gBAAAI,EAACC,EAAO,SAAP,EAAgB,UAAAN,EAAA,CAAM,GACzB;AAEJ;"}
1
+ {"version":3,"file":"Toggle.js","sources":["../../../../src/components/library/heroui/Toggle.tsx"],"sourcesContent":["import { Switch } from \"@heroui/react\";\nimport type { SwitchProps } from \"@heroui/react\";\nimport { useThemeMode } from \"../theme/AppThemeProvider\";\n\nexport interface HeroUIToggleProps extends Omit<SwitchProps, 'isSelected' | 'onChange'> {\n label?: string;\n}\n\nexport default function HeroUIToggle({ label = \"Dark mode\", ...props }: HeroUIToggleProps) {\n const { mode, toggle } = useThemeMode();\n const isSelected = mode === \"dark\";\n\n return (\n <Switch isSelected={isSelected} onChange={toggle} {...props}>\n <Switch.Content>{label}</Switch.Content>\n </Switch>\n );\n}\n"],"names":["HeroUIToggle","label","props","mode","toggle","useThemeMode","jsx","Switch"],"mappings":";;;AAQA,SAAwBA,EAAa,EAAE,OAAAC,IAAQ,aAAa,GAAGC,KAA4B;AACzF,QAAM,EAAE,MAAAC,GAAM,QAAAC,EAAA,IAAWC,EAAA;AAGzB,SACE,gBAAAC,EAACC,GAAA,EAAO,YAHSJ,MAAS,QAGM,UAAUC,GAAS,GAAGF,GACpD,UAAA,gBAAAI,EAACC,EAAO,SAAP,EAAgB,UAAAN,EAAA,CAAM,GACzB;AAEJ;"}
@@ -1,3 +1,5 @@
1
+ import { Tooltip } from "@heroui/react";
2
+ import type { TooltipProps } from "@heroui/react";
1
3
  /**
2
4
  * HeroUI v3 Tooltip — compound component.
3
5
  *
@@ -11,6 +13,8 @@
11
13
  * <Tooltip.Content>Helpful info</Tooltip.Content>
12
14
  * </Tooltip>
13
15
  */
14
- export default function HeroUITooltip(props: any): import("react/jsx-runtime").JSX.Element;
16
+ export interface HeroUITooltipProps extends TooltipProps {
17
+ }
18
+ export default function HeroUITooltip(props: HeroUITooltipProps): import("react/jsx-runtime").JSX.Element;
15
19
  export { Tooltip };
16
- import { Tooltip } from "@heroui/react";
20
+ export type { TooltipProps };
@@ -1,12 +1,11 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Tooltip as t } from "@heroui/react";
4
- import { Tooltip as n } from "@heroui/react";
3
+ import { Tooltip as l } from "@heroui/react";
5
4
  function e(o) {
6
5
  return /* @__PURE__ */ r(t, { ...o });
7
6
  }
8
7
  export {
9
- n as Tooltip,
8
+ l as Tooltip,
10
9
  e as default
11
10
  };
12
11
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/library/heroui/Tooltip.jsx"],"sourcesContent":["import React from \"react\";\nimport { Tooltip } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Tooltip — compound component.\n *\n * Sub-components via dot notation on the named `Tooltip` export:\n * Tooltip.Trigger, Tooltip.Content, Tooltip.Arrow\n *\n * @example\n * import { Tooltip } from \"@/components/library\";\n * <Tooltip>\n * <Tooltip.Trigger><Button>Hover me</Button></Tooltip.Trigger>\n * <Tooltip.Content>Helpful info</Tooltip.Content>\n * </Tooltip>\n */\nexport default function HeroUITooltip(props) {\n return <Tooltip {...props} />;\n}\n\nexport { Tooltip };\n"],"names":["HeroUITooltip","props","jsx","Tooltip"],"mappings":";;;;AAgBA,SAAwBA,EAAcC,GAAO;AAC3C,SAAO,gBAAAC,EAACC,GAAA,EAAS,GAAGF,EAAA,CAAO;AAC7B;"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/library/heroui/Tooltip.tsx"],"sourcesContent":["import { Tooltip } from \"@heroui/react\";\nimport type { TooltipProps } from \"@heroui/react\";\n\n/**\n * HeroUI v3 Tooltip — compound component.\n *\n * Sub-components via dot notation on the named `Tooltip` export:\n * Tooltip.Trigger, Tooltip.Content, Tooltip.Arrow\n *\n * @example\n * import { Tooltip } from \"@/components/library\";\n * <Tooltip>\n * <Tooltip.Trigger><Button>Hover me</Button></Tooltip.Trigger>\n * <Tooltip.Content>Helpful info</Tooltip.Content>\n * </Tooltip>\n */\nexport interface HeroUITooltipProps extends TooltipProps {}\n\nexport default function HeroUITooltip(props: HeroUITooltipProps) {\n return <Tooltip {...props} />;\n}\n\nexport { Tooltip };\nexport type { TooltipProps };\n"],"names":["HeroUITooltip","props","jsx","Tooltip"],"mappings":";;;AAkBA,SAAwBA,EAAcC,GAA2B;AAC/D,SAAO,gBAAAC,EAACC,GAAA,EAAS,GAAGF,EAAA,CAAO;AAC7B;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,13 @@
1
+ import { Alert } from "@heroui/react";
2
+
3
+ export interface HeroUIAlertProps {
4
+ variant?: string;
5
+ [key: string]: any;
6
+ }
7
+
8
+ export default function HeroUIAlert({ variant = "default", ...props }: HeroUIAlertProps) {
9
+ const AlertAny = Alert as any;
10
+ return <AlertAny variant={variant} {...props} />;
11
+ }
12
+
13
+ export { Alert };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { Badge } from "@heroui/react";
3
+ import type { BadgeProps } from "@heroui/react";
4
+
5
+ export interface HeroUIBadgeProps extends BadgeProps {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export default function HeroUIBadge({ children, ...props }: HeroUIBadgeProps) {
10
+ return <Badge {...props}>{children}</Badge>;
11
+ }
12
+
13
+ export { Badge };
14
+ export type { BadgeProps };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type { ReactNode } from "react";
2
2
  import { Button as HeroButton } from "@heroui/react";
3
3
 
4
4
  /**
@@ -9,6 +9,21 @@ import { Button as HeroButton } from "@heroui/react";
9
9
  * - outline -> bordered
10
10
  * - ghost -> light
11
11
  */
12
+
13
+ type ShadcnVariant = "primary" | "secondary" | "destructive" | "outline" | "ghost";
14
+
15
+ export interface HeroUIButtonProps {
16
+ variant?: ShadcnVariant;
17
+ size?: "sm" | "md" | "lg";
18
+ fullWidth?: boolean;
19
+ onClick?: () => void;
20
+ children?: ReactNode;
21
+ className?: string;
22
+ disabled?: boolean;
23
+ type?: "button" | "submit" | "reset";
24
+ [key: string]: any;
25
+ }
26
+
12
27
  export default function HeroUIButton({
13
28
  variant = "primary",
14
29
  size = "md",
@@ -17,9 +32,9 @@ export default function HeroUIButton({
17
32
  children,
18
33
  className = "",
19
34
  ...props
20
- }) {
35
+ }: HeroUIButtonProps) {
21
36
  // Map shadcn variants to HeroUI variants
22
- const variantMap = {
37
+ const variantMap: Record<ShadcnVariant, string> = {
23
38
  primary: "solid",
24
39
  secondary: "solid",
25
40
  destructive: "solid",
@@ -28,7 +43,7 @@ export default function HeroUIButton({
28
43
  };
29
44
 
30
45
  // Map shadcn variants to HeroUI colors
31
- const colorMap = {
46
+ const colorMap: Record<ShadcnVariant, string> = {
32
47
  primary: "primary",
33
48
  secondary: "default",
34
49
  destructive: "danger",
@@ -36,11 +51,13 @@ export default function HeroUIButton({
36
51
  ghost: "default"
37
52
  };
38
53
 
39
- const heroVariant = variantMap[variant] || "solid";
40
- const heroColor = colorMap[variant] || "primary";
54
+ const heroVariant = variantMap[variant];
55
+ const heroColor = colorMap[variant];
56
+
57
+ const HeroButtonAny = HeroButton as any;
41
58
 
42
59
  return (
43
- <HeroButton
60
+ <HeroButtonAny
44
61
  variant={heroVariant}
45
62
  color={heroColor}
46
63
  size={size}
@@ -50,9 +67,10 @@ export default function HeroUIButton({
50
67
  {...props}
51
68
  >
52
69
  {children}
53
- </HeroButton>
70
+ </HeroButtonAny>
54
71
  );
55
72
  }
56
73
 
57
74
  // Also export as Button for shadcn compatibility
58
75
  export const Button = HeroUIButton;
76
+
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { Card } from "@heroui/react";
3
+ import type { CardProps } from "@heroui/react";
4
+
5
+ export interface HeroUICardProps extends CardProps {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export default function HeroUICard({ children, ...props }: HeroUICardProps) {
10
+ return <Card {...props}>{children}</Card>;
11
+ }
12
+
13
+ export { Card };
14
+ export type { CardProps };
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import { Modal } from "@heroui/react";
2
+ import type { ModalProps } from "@heroui/react";
3
3
 
4
4
  /**
5
5
  * HeroUI v3 Modal — compound component.
@@ -25,8 +25,11 @@ import { Modal } from "@heroui/react";
25
25
  * </Modal.Backdrop>
26
26
  * </Modal>
27
27
  */
28
- export default function HeroUIModal(props) {
28
+ export interface HeroUIModalProps extends ModalProps {}
29
+
30
+ export default function HeroUIModal(props: HeroUIModalProps) {
29
31
  return <Modal {...props} />;
30
32
  }
31
33
 
32
34
  export { Modal };
35
+ export type { ModalProps };
@@ -0,0 +1,11 @@
1
+ import { Pagination } from "@heroui/react";
2
+ import type { PaginationProps } from "@heroui/react";
3
+
4
+ export interface HeroUIPaginationProps extends PaginationProps {}
5
+
6
+ export default function HeroUIPagination(props: HeroUIPaginationProps) {
7
+ return <Pagination {...props} />;
8
+ }
9
+
10
+ export { Pagination };
11
+ export type { PaginationProps };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { ProgressBar } from "@heroui/react";
3
+ import type { ProgressBarProps } from "@heroui/react";
4
+
5
+ export interface HeroUIProgressBarProps extends ProgressBarProps {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export default function HeroUIProgressBar({ children, ...props }: HeroUIProgressBarProps) {
10
+ return <ProgressBar {...props}>{children}</ProgressBar>;
11
+ }
12
+
13
+ export { ProgressBar };
14
+ export type { ProgressBarProps };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { ProgressCircle } from "@heroui/react";
3
+ import type { ProgressCircleProps } from "@heroui/react";
4
+
5
+ export interface HeroUIProgressCircleProps extends ProgressCircleProps {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export default function HeroUIProgressCircle({ children, ...props }: HeroUIProgressCircleProps) {
10
+ return <ProgressCircle {...props}>{children}</ProgressCircle>;
11
+ }
12
+
13
+ export { ProgressCircle };
14
+ export type { ProgressCircleProps };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { ScrollShadow } from "@heroui/react";
3
+ import type { ScrollShadowProps } from "@heroui/react";
4
+
5
+ export interface HeroUIScrollShadowProps extends ScrollShadowProps {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export default function HeroUIScrollShadow({ children, ...props }: HeroUIScrollShadowProps) {
10
+ return <ScrollShadow {...props}>{children}</ScrollShadow>;
11
+ }
12
+
13
+ export { ScrollShadow };
14
+ export type { ScrollShadowProps };
@@ -0,0 +1,11 @@
1
+ import { Separator } from "@heroui/react";
2
+ import type { SeparatorProps } from "@heroui/react";
3
+
4
+ export interface HeroUISeparatorProps extends SeparatorProps {}
5
+
6
+ export default function HeroUISeparator(props: HeroUISeparatorProps) {
7
+ return <Separator {...props} />;
8
+ }
9
+
10
+ export { Separator };
11
+ export type { SeparatorProps };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Tabs } from "@heroui/react";
3
2
 
4
3
  /**
@@ -19,8 +18,14 @@ import { Tabs } from "@heroui/react";
19
18
  * <Tabs.Panel id="analytics">…</Tabs.Panel>
20
19
  * </Tabs>
21
20
  */
22
- export default function HeroUITabs({ variant = "primary", ...props }) {
23
- return <Tabs variant={variant} {...props} />;
21
+ export interface HeroUITabsProps {
22
+ variant?: string;
23
+ [key: string]: any;
24
+ }
25
+
26
+ export default function HeroUITabs({ variant = "primary", ...props }: HeroUITabsProps) {
27
+ const TabsAny = Tabs as any;
28
+ return <TabsAny variant={variant} {...props} />;
24
29
  }
25
30
 
26
31
  export { Tabs };
@@ -1,8 +1,12 @@
1
- import React from "react";
2
1
  import { Switch } from "@heroui/react";
2
+ import type { SwitchProps } from "@heroui/react";
3
3
  import { useThemeMode } from "../theme/AppThemeProvider";
4
4
 
5
- export default function HeroUIToggle({ label = "Dark mode", ...props }) {
5
+ export interface HeroUIToggleProps extends Omit<SwitchProps, 'isSelected' | 'onChange'> {
6
+ label?: string;
7
+ }
8
+
9
+ export default function HeroUIToggle({ label = "Dark mode", ...props }: HeroUIToggleProps) {
6
10
  const { mode, toggle } = useThemeMode();
7
11
  const isSelected = mode === "dark";
8
12
 
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import { Tooltip } from "@heroui/react";
2
+ import type { TooltipProps } from "@heroui/react";
3
3
 
4
4
  /**
5
5
  * HeroUI v3 Tooltip — compound component.
@@ -14,8 +14,11 @@ import { Tooltip } from "@heroui/react";
14
14
  * <Tooltip.Content>Helpful info</Tooltip.Content>
15
15
  * </Tooltip>
16
16
  */
17
- export default function HeroUITooltip(props) {
17
+ export interface HeroUITooltipProps extends TooltipProps {}
18
+
19
+ export default function HeroUITooltip(props: HeroUITooltipProps) {
18
20
  return <Tooltip {...props} />;
19
21
  }
20
22
 
21
23
  export { Tooltip };
24
+ export type { TooltipProps };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Alert } from "@heroui/react";
3
-
4
- export default function HeroUIAlert({ variant = "default", ...props }) {
5
- return <Alert variant={variant} {...props} />;
6
- }
7
-
8
- export { Alert };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Badge } from "@heroui/react";
3
-
4
- export default function HeroUIBadge({ children, ...props }) {
5
- return <Badge {...props}>{children}</Badge>;
6
- }
7
-
8
- export { Badge };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Card } from "@heroui/react";
3
-
4
- export default function HeroUICard({ children, ...props }) {
5
- return <Card {...props}>{children}</Card>;
6
- }
7
-
8
- export { Card };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Pagination } from "@heroui/react";
3
-
4
- export default function HeroUIPagination(props) {
5
- return <Pagination {...props} />;
6
- }
7
-
8
- export { Pagination };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ProgressBar } from "@heroui/react";
3
-
4
- export default function HeroUIProgressBar({ children, ...props }) {
5
- return <ProgressBar {...props}>{children}</ProgressBar>;
6
- }
7
-
8
- export { ProgressBar };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ProgressCircle } from "@heroui/react";
3
-
4
- export default function HeroUIProgressCircle({ children, ...props }) {
5
- return <ProgressCircle {...props}>{children}</ProgressCircle>;
6
- }
7
-
8
- export { ProgressCircle };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ScrollShadow } from "@heroui/react";
3
-
4
- export default function HeroUIScrollShadow({ children, ...props }) {
5
- return <ScrollShadow {...props}>{children}</ScrollShadow>;
6
- }
7
-
8
- export { ScrollShadow };
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { Separator } from "@heroui/react";
3
-
4
- export default function HeroUISeparator(props) {
5
- return <Separator {...props} />;
6
- }
7
-
8
- export { Separator };