@greatapps/common 1.1.0 → 1.1.2

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 (91) hide show
  1. package/dist/components/handlers/SearchParamsHandler.mjs +2 -1
  2. package/dist/components/handlers/SearchParamsHandler.mjs.map +1 -1
  3. package/dist/components/layouts/MainLayout.mjs +14 -14
  4. package/dist/components/layouts/MainLayout.mjs.map +1 -1
  5. package/dist/components/layouts/MdSideBarNavigation.mjs +22 -19
  6. package/dist/components/layouts/MdSideBarNavigation.mjs.map +1 -1
  7. package/dist/components/layouts/NavBar.mjs +44 -25
  8. package/dist/components/layouts/NavBar.mjs.map +1 -1
  9. package/dist/components/layouts/NavBarItem.mjs +23 -0
  10. package/dist/components/layouts/NavBarItem.mjs.map +1 -0
  11. package/dist/components/layouts/NotificationItem.mjs +8 -1
  12. package/dist/components/layouts/NotificationItem.mjs.map +1 -1
  13. package/dist/components/layouts/ProfilePopover.mjs +141 -0
  14. package/dist/components/layouts/ProfilePopover.mjs.map +1 -0
  15. package/dist/components/layouts/SideBarNavigation.mjs +5 -5
  16. package/dist/components/layouts/SideBarNavigation.mjs.map +1 -1
  17. package/dist/components/ui/buttons/Button.mjs +2 -2
  18. package/dist/components/ui/buttons/Button.mjs.map +1 -1
  19. package/dist/components/ui/buttons/CancelButton.mjs +2 -2
  20. package/dist/components/ui/buttons/CancelButton.mjs.map +1 -1
  21. package/dist/components/ui/buttons/CopyButton.mjs +15 -11
  22. package/dist/components/ui/buttons/CopyButton.mjs.map +1 -1
  23. package/dist/components/ui/data-display/Accordion.mjs +18 -15
  24. package/dist/components/ui/data-display/Accordion.mjs.map +1 -1
  25. package/dist/components/ui/data-display/Badge.mjs +2 -2
  26. package/dist/components/ui/data-display/Badge.mjs.map +1 -1
  27. package/dist/components/ui/data-display/Card.mjs +8 -8
  28. package/dist/components/ui/data-display/Card.mjs.map +1 -1
  29. package/dist/components/ui/data-display/Pagination.mjs +20 -18
  30. package/dist/components/ui/data-display/Pagination.mjs.map +1 -1
  31. package/dist/components/ui/data-display/ScrollArea.mjs +26 -24
  32. package/dist/components/ui/data-display/ScrollArea.mjs.map +1 -1
  33. package/dist/components/ui/data-display/Separator.mjs +2 -2
  34. package/dist/components/ui/data-display/Separator.mjs.map +1 -1
  35. package/dist/components/ui/data-display/Table.mjs +19 -19
  36. package/dist/components/ui/data-display/Table.mjs.map +1 -1
  37. package/dist/components/ui/data-display/Tabs.mjs +5 -5
  38. package/dist/components/ui/data-display/Tabs.mjs.map +1 -1
  39. package/dist/components/ui/data-display/UserAvatar.mjs +49 -0
  40. package/dist/components/ui/data-display/UserAvatar.mjs.map +1 -0
  41. package/dist/components/ui/feedback/CircularProgress.mjs +40 -30
  42. package/dist/components/ui/feedback/CircularProgress.mjs.map +1 -1
  43. package/dist/components/ui/feedback/DefaultCircularProgress.mjs +20 -19
  44. package/dist/components/ui/feedback/DefaultCircularProgress.mjs.map +1 -1
  45. package/dist/components/ui/feedback/Progress.mjs +15 -15
  46. package/dist/components/ui/feedback/Progress.mjs.map +1 -1
  47. package/dist/components/ui/feedback/Toast.mjs +14 -10
  48. package/dist/components/ui/feedback/Toast.mjs.map +1 -1
  49. package/dist/components/ui/form/Calendar.mjs +8 -7
  50. package/dist/components/ui/form/Calendar.mjs.map +1 -1
  51. package/dist/components/ui/form/Checkbox.mjs +12 -12
  52. package/dist/components/ui/form/Checkbox.mjs.map +1 -1
  53. package/dist/components/ui/form/DatePicker.mjs +37 -33
  54. package/dist/components/ui/form/DatePicker.mjs.map +1 -1
  55. package/dist/components/ui/form/DateRangePicker.mjs +38 -32
  56. package/dist/components/ui/form/DateRangePicker.mjs.map +1 -1
  57. package/dist/components/ui/form/Input.mjs +2 -2
  58. package/dist/components/ui/form/Input.mjs.map +1 -1
  59. package/dist/components/ui/form/InputOtp.mjs +11 -8
  60. package/dist/components/ui/form/InputOtp.mjs.map +1 -1
  61. package/dist/components/ui/form/RadioGroup.mjs +6 -5
  62. package/dist/components/ui/form/RadioGroup.mjs.map +1 -1
  63. package/dist/components/ui/form/Select.mjs +51 -45
  64. package/dist/components/ui/form/Select.mjs.map +1 -1
  65. package/dist/components/ui/form/Switch.mjs +13 -13
  66. package/dist/components/ui/form/Switch.mjs.map +1 -1
  67. package/dist/components/ui/form/Textarea.mjs +2 -2
  68. package/dist/components/ui/form/Textarea.mjs.map +1 -1
  69. package/dist/components/ui/overlay/Command.mjs +39 -31
  70. package/dist/components/ui/overlay/Command.mjs.map +1 -1
  71. package/dist/components/ui/overlay/Dialog.mjs +37 -30
  72. package/dist/components/ui/overlay/Dialog.mjs.map +1 -1
  73. package/dist/components/ui/overlay/Popover.mjs +6 -6
  74. package/dist/components/ui/overlay/Popover.mjs.map +1 -1
  75. package/dist/components/ui/overlay/Sheet.mjs +40 -33
  76. package/dist/components/ui/overlay/Sheet.mjs.map +1 -1
  77. package/dist/components/ui/overlay/Tooltip.mjs +12 -10
  78. package/dist/components/ui/overlay/Tooltip.mjs.map +1 -1
  79. package/dist/index.mjs +6 -0
  80. package/dist/index.mjs.map +1 -1
  81. package/dist/providers/auth.provider.mjs +2 -1
  82. package/dist/providers/auth.provider.mjs.map +1 -1
  83. package/dist/providers/query.provider.mjs +5 -1
  84. package/dist/providers/query.provider.mjs.map +1 -1
  85. package/dist/providers/whitelabel.provider.mjs +5 -4
  86. package/dist/providers/whitelabel.provider.mjs.map +1 -1
  87. package/package.json +1 -1
  88. package/src/components/layouts/NavBarItem.tsx +29 -0
  89. package/src/components/layouts/ProfilePopover.tsx +171 -0
  90. package/src/components/ui/data-display/UserAvatar.tsx +67 -0
  91. package/src/index.ts +6 -0
@@ -1,3 +1,4 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
1
2
  import { Check, Copy } from "lucide-react";
2
3
  import { toast } from "sonner";
3
4
  import { Toast } from "../feedback/Toast";
@@ -13,20 +14,23 @@ function CopyButton({
13
14
  }) {
14
15
  const { isCopied, copy } = useCopyToClipboard({
15
16
  onSuccess: () => {
16
- toast.custom((t) => /* @__PURE__ */ React.createElement(Toast, { variant: "success", message: successMessage, toastId: t }));
17
+ toast.custom((t) => /* @__PURE__ */ jsx(Toast, { variant: "success", message: successMessage, toastId: t }));
17
18
  }
18
19
  });
19
- return /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(
20
- TooltipTrigger,
21
- {
22
- asChild: true,
23
- onClick: (e) => {
24
- e.stopPropagation();
25
- copy(textToCopy);
20
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [
21
+ /* @__PURE__ */ jsx(
22
+ TooltipTrigger,
23
+ {
24
+ asChild: true,
25
+ onClick: (e) => {
26
+ e.stopPropagation();
27
+ copy(textToCopy);
28
+ },
29
+ children: /* @__PURE__ */ jsx("span", { className: cn("cursor-pointer text-gray-500", className), children: isCopied ? /* @__PURE__ */ jsx(Check, { size }) : /* @__PURE__ */ jsx(Copy, { size }) })
26
30
  }
27
- },
28
- /* @__PURE__ */ React.createElement("span", { className: cn("cursor-pointer text-gray-500", className) }, isCopied ? /* @__PURE__ */ React.createElement(Check, { size }) : /* @__PURE__ */ React.createElement(Copy, { size }))
29
- ), /* @__PURE__ */ React.createElement(TooltipContent, null, isCopied ? "Copiado!" : tooltipText));
31
+ ),
32
+ /* @__PURE__ */ jsx(TooltipContent, { children: isCopied ? "Copiado!" : tooltipText })
33
+ ] });
30
34
  }
31
35
  export {
32
36
  CopyButton
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/buttons/CopyButton.tsx"],"sourcesContent":["import { Check, Copy } from \"lucide-react\";\nimport { toast } from \"sonner\";\nimport { Toast } from \"../feedback/Toast\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"../overlay/Tooltip\";\nimport useCopyToClipboard from \"../../../hooks/copy-to-clipboard.hook\";\nimport { cn } from \"../../../infra/utils/clsx\";\n\ninterface CopyButtonProps {\n textToCopy: string;\n size?: number;\n className?: string;\n tooltipText?: string;\n successMessage?: string;\n}\n\nexport function CopyButton({\n textToCopy,\n size = 14,\n className,\n tooltipText = \"Copiar link\",\n successMessage = \"Link copiado\",\n}: CopyButtonProps) {\n const { isCopied, copy } = useCopyToClipboard({\n onSuccess: () => {\n toast.custom((t) => (\n <Toast variant=\"success\" message={successMessage} toastId={t} />\n ));\n },\n });\n\n return (\n <Tooltip>\n <TooltipTrigger\n asChild\n onClick={(e: React.MouseEvent) => {\n e.stopPropagation();\n copy(textToCopy);\n }}\n >\n <span className={cn(\"cursor-pointer text-gray-500\", className)}>\n {isCopied ? <Check size={size} /> : <Copy size={size} />}\n </span>\n </TooltipTrigger>\n <TooltipContent>{isCopied ? \"Copiado!\" : tooltipText}</TooltipContent>\n </Tooltip>\n );\n}\n"],"mappings":"AAAA,SAAS,OAAO,YAAY;AAC5B,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,OAAO,wBAAwB;AAC/B,SAAS,UAAU;AAUZ,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAAA,EACd,iBAAiB;AACnB,GAAoB;AAClB,QAAM,EAAE,UAAU,KAAK,IAAI,mBAAmB;AAAA,IAC5C,WAAW,MAAM;AACf,YAAM,OAAO,CAAC,MACZ,oCAAC,SAAM,SAAQ,WAAU,SAAS,gBAAgB,SAAS,GAAG,CAC/D;AAAA,IACH;AAAA,EACF,CAAC;AAED,SACE,oCAAC,eACC;AAAA,IAAC;AAAA;AAAA,MACC,SAAO;AAAA,MACP,SAAS,CAAC,MAAwB;AAChC,UAAE,gBAAgB;AAClB,aAAK,UAAU;AAAA,MACjB;AAAA;AAAA,IAEA,oCAAC,UAAK,WAAW,GAAG,gCAAgC,SAAS,KAC1D,WAAW,oCAAC,SAAM,MAAY,IAAK,oCAAC,QAAK,MAAY,CACxD;AAAA,EACF,GACA,oCAAC,sBAAgB,WAAW,aAAa,WAAY,CACvD;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/buttons/CopyButton.tsx"],"sourcesContent":["import { Check, Copy } from \"lucide-react\";\nimport { toast } from \"sonner\";\nimport { Toast } from \"../feedback/Toast\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"../overlay/Tooltip\";\nimport useCopyToClipboard from \"../../../hooks/copy-to-clipboard.hook\";\nimport { cn } from \"../../../infra/utils/clsx\";\n\ninterface CopyButtonProps {\n textToCopy: string;\n size?: number;\n className?: string;\n tooltipText?: string;\n successMessage?: string;\n}\n\nexport function CopyButton({\n textToCopy,\n size = 14,\n className,\n tooltipText = \"Copiar link\",\n successMessage = \"Link copiado\",\n}: CopyButtonProps) {\n const { isCopied, copy } = useCopyToClipboard({\n onSuccess: () => {\n toast.custom((t) => (\n <Toast variant=\"success\" message={successMessage} toastId={t} />\n ));\n },\n });\n\n return (\n <Tooltip>\n <TooltipTrigger\n asChild\n onClick={(e: React.MouseEvent) => {\n e.stopPropagation();\n copy(textToCopy);\n }}\n >\n <span className={cn(\"cursor-pointer text-gray-500\", className)}>\n {isCopied ? <Check size={size} /> : <Copy size={size} />}\n </span>\n </TooltipTrigger>\n <TooltipContent>{isCopied ? \"Copiado!\" : tooltipText}</TooltipContent>\n </Tooltip>\n );\n}\n"],"mappings":"AAyBQ,cAMJ,YANI;AAzBR,SAAS,OAAO,YAAY;AAC5B,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,OAAO,wBAAwB;AAC/B,SAAS,UAAU;AAUZ,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAAA,EACd,iBAAiB;AACnB,GAAoB;AAClB,QAAM,EAAE,UAAU,KAAK,IAAI,mBAAmB;AAAA,IAC5C,WAAW,MAAM;AACf,YAAM,OAAO,CAAC,MACZ,oBAAC,SAAM,SAAQ,WAAU,SAAS,gBAAgB,SAAS,GAAG,CAC/D;AAAA,IACH;AAAA,EACF,CAAC;AAED,SACE,qBAAC,WACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAO;AAAA,QACP,SAAS,CAAC,MAAwB;AAChC,YAAE,gBAAgB;AAClB,eAAK,UAAU;AAAA,QACjB;AAAA,QAEA,8BAAC,UAAK,WAAW,GAAG,gCAAgC,SAAS,GAC1D,qBAAW,oBAAC,SAAM,MAAY,IAAK,oBAAC,QAAK,MAAY,GACxD;AAAA;AAAA,IACF;AAAA,IACA,oBAAC,kBAAgB,qBAAW,aAAa,aAAY;AAAA,KACvD;AAEJ;","names":[]}
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import * as React from "react";
3
4
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
5
  import { ChevronDownIcon } from "lucide-react";
@@ -6,7 +7,7 @@ import { cn } from "../../../infra/utils/clsx";
6
7
  function Accordion({
7
8
  ...props
8
9
  }) {
9
- return /* @__PURE__ */ React.createElement(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
10
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
10
11
  }
11
12
  function AccordionItem({
12
13
  className,
@@ -14,7 +15,7 @@ function AccordionItem({
14
15
  ...props
15
16
  }) {
16
17
  const itemRef = React.useRef(null);
17
- return /* @__PURE__ */ React.createElement(
18
+ return /* @__PURE__ */ jsx(
18
19
  AccordionPrimitive.Item,
19
20
  {
20
21
  ref: itemRef,
@@ -25,9 +26,9 @@ function AccordionItem({
25
26
  const trigger = itemRef.current?.querySelector("[data-slot='accordion-trigger']");
26
27
  trigger?.click();
27
28
  },
28
- ...props
29
- },
30
- children
29
+ ...props,
30
+ children
31
+ }
31
32
  );
32
33
  }
33
34
  function AccordionTrigger({
@@ -35,7 +36,7 @@ function AccordionTrigger({
35
36
  children,
36
37
  ...props
37
38
  }) {
38
- return /* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React.createElement(
39
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
39
40
  AccordionPrimitive.Trigger,
40
41
  {
41
42
  "data-slot": "accordion-trigger",
@@ -43,25 +44,27 @@ function AccordionTrigger({
43
44
  "cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
44
45
  className
45
46
  ),
46
- ...props
47
- },
48
- children,
49
- /* @__PURE__ */ React.createElement(ChevronDownIcon, { className: "size-5! text-gray-950 pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200" })
50
- ));
47
+ ...props,
48
+ children: [
49
+ children,
50
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-5! text-gray-950 pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200" })
51
+ ]
52
+ }
53
+ ) });
51
54
  }
52
55
  function AccordionContent({
53
56
  className,
54
57
  children,
55
58
  ...props
56
59
  }) {
57
- return /* @__PURE__ */ React.createElement(
60
+ return /* @__PURE__ */ jsx(
58
61
  AccordionPrimitive.Content,
59
62
  {
60
63
  "data-slot": "accordion-content",
61
64
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
62
- ...props
63
- },
64
- /* @__PURE__ */ React.createElement("div", { className: cn("pt-3 paragraph-small-regular text-gray-500", className) }, children)
65
+ ...props,
66
+ children: /* @__PURE__ */ jsx("div", { className: cn("pt-3 paragraph-small-regular text-gray-500", className), children })
67
+ }
65
68
  );
66
69
  }
67
70
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Accordion.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDownIcon } from \"lucide-react\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Accordion({\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />\n}\n\nfunction AccordionItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n const itemRef = React.useRef<HTMLDivElement>(null);\n\n return (\n <AccordionPrimitive.Item\n ref={itemRef}\n data-slot=\"accordion-item\"\n className={cn(\"cursor-pointer border rounded-lg p-5\", className)}\n onClick={(e) => {\n // Evita abrir/fechar quando o clique já é no Trigger\n if ((e.target as HTMLElement).closest(\"[data-slot='accordion-trigger']\")) return;\n\n // Procura o trigger interno e clica nele\n const trigger = itemRef.current?.querySelector(\"[data-slot='accordion-trigger']\") as HTMLElement | null;\n trigger?.click();\n }}\n {...props}\n >\n {children}\n </AccordionPrimitive.Item>\n );\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n \"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"size-5! text-gray-950 pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n )\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pt-3 paragraph-small-regular text-gray-500\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"],"mappings":";AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AACpC,SAAS,uBAAuB;AAChC,SAAS,UAAU;AAEnB,SAAS,UAAU;AAAA,EACjB,GAAG;AACL,GAAyD;AACvD,SAAO,oCAAC,mBAAmB,MAAnB,EAAwB,aAAU,aAAa,GAAG,OAAO;AACnE;AAEA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyD;AACvD,QAAM,UAAU,MAAM,OAAuB,IAAI;AAEjD,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,KAAK;AAAA,MACL,aAAU;AAAA,MACV,WAAW,GAAG,wCAAwC,SAAS;AAAA,MAC/D,SAAS,CAAC,MAAM;AAEd,YAAK,EAAE,OAAuB,QAAQ,iCAAiC,EAAG;AAG1E,cAAM,UAAU,QAAQ,SAAS,cAAc,iCAAiC;AAChF,iBAAS,MAAM;AAAA,MACjB;AAAA,MACC,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4D;AAC1D,SACE,oCAAC,mBAAmB,QAAnB,EAA0B,WAAU,UACnC;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,IAEH;AAAA,IACD,oCAAC,mBAAgB,WAAU,wGAAuG;AAAA,EACpI,CACF;AAEJ;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4D;AAC1D,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV,WAAU;AAAA,MACT,GAAG;AAAA;AAAA,IAEJ,oCAAC,SAAI,WAAW,GAAG,8CAA8C,SAAS,KAAI,QAAS;AAAA,EACzF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/Accordion.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDownIcon } from \"lucide-react\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Accordion({\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />\n}\n\nfunction AccordionItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n const itemRef = React.useRef<HTMLDivElement>(null);\n\n return (\n <AccordionPrimitive.Item\n ref={itemRef}\n data-slot=\"accordion-item\"\n className={cn(\"cursor-pointer border rounded-lg p-5\", className)}\n onClick={(e) => {\n // Evita abrir/fechar quando o clique já é no Trigger\n if ((e.target as HTMLElement).closest(\"[data-slot='accordion-trigger']\")) return;\n\n // Procura o trigger interno e clica nele\n const trigger = itemRef.current?.querySelector(\"[data-slot='accordion-trigger']\") as HTMLElement | null;\n trigger?.click();\n }}\n {...props}\n >\n {children}\n </AccordionPrimitive.Item>\n );\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n \"cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"size-5! text-gray-950 pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n )\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn(\"pt-3 paragraph-small-regular text-gray-500\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"],"mappings":";AAUS,cAqCH,YArCG;AART,YAAY,WAAW;AACvB,YAAY,wBAAwB;AACpC,SAAS,uBAAuB;AAChC,SAAS,UAAU;AAEnB,SAAS,UAAU;AAAA,EACjB,GAAG;AACL,GAAyD;AACvD,SAAO,oBAAC,mBAAmB,MAAnB,EAAwB,aAAU,aAAa,GAAG,OAAO;AACnE;AAEA,SAAS,cAAc;AAAA,EACrB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAyD;AACvD,QAAM,UAAU,MAAM,OAAuB,IAAI;AAEjD,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,KAAK;AAAA,MACL,aAAU;AAAA,MACV,WAAW,GAAG,wCAAwC,SAAS;AAAA,MAC/D,SAAS,CAAC,MAAM;AAEd,YAAK,EAAE,OAAuB,QAAQ,iCAAiC,EAAG;AAG1E,cAAM,UAAU,QAAQ,SAAS,cAAc,iCAAiC;AAChF,iBAAS,MAAM;AAAA,MACjB;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4D;AAC1D,SACE,oBAAC,mBAAmB,QAAnB,EAA0B,WAAU,QACnC;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,QACD,oBAAC,mBAAgB,WAAU,wGAAuG;AAAA;AAAA;AAAA,EACpI,GACF;AAEJ;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4D;AAC1D,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV,WAAU;AAAA,MACT,GAAG;AAAA,MAEJ,8BAAC,SAAI,WAAW,GAAG,8CAA8C,SAAS,GAAI,UAAS;AAAA;AAAA,EACzF;AAEJ;","names":[]}
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { Slot } from "@radix-ui/react-slot";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { cn } from "../../../infra/utils/clsx";
@@ -25,7 +25,7 @@ function Badge({
25
25
  ...props
26
26
  }) {
27
27
  const Comp = asChild ? Slot : "span";
28
- return /* @__PURE__ */ React.createElement(
28
+ return /* @__PURE__ */ jsx(
29
29
  Comp,
30
30
  {
31
31
  "data-slot": "badge",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n"],"mappings":"AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAEA,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,GAC8D;AAC5D,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,MAClD,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/Badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n"],"mappings":"AAoCI;AAnCJ,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAEA,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,GAC8D;AAC5D,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,MAClD,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,7 +1,7 @@
1
- import * as React from "react";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../../../infra/utils/clsx";
3
3
  function Card({ className, ...props }) {
4
- return /* @__PURE__ */ React.createElement(
4
+ return /* @__PURE__ */ jsx(
5
5
  "div",
6
6
  {
7
7
  "data-slot": "card",
@@ -14,7 +14,7 @@ function Card({ className, ...props }) {
14
14
  );
15
15
  }
16
16
  function CardHeader({ className, ...props }) {
17
- return /* @__PURE__ */ React.createElement(
17
+ return /* @__PURE__ */ jsx(
18
18
  "div",
19
19
  {
20
20
  "data-slot": "card-header",
@@ -27,7 +27,7 @@ function CardHeader({ className, ...props }) {
27
27
  );
28
28
  }
29
29
  function CardTitle({ className, ...props }) {
30
- return /* @__PURE__ */ React.createElement(
30
+ return /* @__PURE__ */ jsx(
31
31
  "div",
32
32
  {
33
33
  "data-slot": "card-title",
@@ -37,7 +37,7 @@ function CardTitle({ className, ...props }) {
37
37
  );
38
38
  }
39
39
  function CardDescription({ className, ...props }) {
40
- return /* @__PURE__ */ React.createElement(
40
+ return /* @__PURE__ */ jsx(
41
41
  "div",
42
42
  {
43
43
  "data-slot": "card-description",
@@ -47,7 +47,7 @@ function CardDescription({ className, ...props }) {
47
47
  );
48
48
  }
49
49
  function CardAction({ className, ...props }) {
50
- return /* @__PURE__ */ React.createElement(
50
+ return /* @__PURE__ */ jsx(
51
51
  "div",
52
52
  {
53
53
  "data-slot": "card-action",
@@ -60,7 +60,7 @@ function CardAction({ className, ...props }) {
60
60
  );
61
61
  }
62
62
  function CardContent({ className, ...props }) {
63
- return /* @__PURE__ */ React.createElement(
63
+ return /* @__PURE__ */ jsx(
64
64
  "div",
65
65
  {
66
66
  "data-slot": "card-content",
@@ -70,7 +70,7 @@ function CardContent({ className, ...props }) {
70
70
  );
71
71
  }
72
72
  function CardFooter({ className, ...props }) {
73
- return /* @__PURE__ */ React.createElement(
73
+ return /* @__PURE__ */ jsx(
74
74
  "div",
75
75
  {
76
76
  "data-slot": "card-footer",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Card.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../../infra/utils/clsx\";\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n );\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Card,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,GAAgC;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,2CAA2C,SAAS;AAAA,MACjE,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/Card.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../../infra/utils/clsx\";\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n );\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n );\n}\n\nex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AAgC;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,2CAA2C,SAAS;AAAA,MACjE,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import {
3
3
  ChevronLeftIcon,
4
4
  ChevronRightIcon,
@@ -7,7 +7,7 @@ import {
7
7
  import { cn } from "../../../infra/utils/clsx";
8
8
  import { buttonVariants } from "../buttons/Button";
9
9
  function Pagination({ className, ...props }) {
10
- return /* @__PURE__ */ React.createElement(
10
+ return /* @__PURE__ */ jsx(
11
11
  "nav",
12
12
  {
13
13
  role: "navigation",
@@ -22,7 +22,7 @@ function PaginationContent({
22
22
  className,
23
23
  ...props
24
24
  }) {
25
- return /* @__PURE__ */ React.createElement(
25
+ return /* @__PURE__ */ jsx(
26
26
  "ul",
27
27
  {
28
28
  "data-slot": "pagination-content",
@@ -32,7 +32,7 @@ function PaginationContent({
32
32
  );
33
33
  }
34
34
  function PaginationItem({ ...props }) {
35
- return /* @__PURE__ */ React.createElement("li", { "data-slot": "pagination-item", ...props });
35
+ return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
36
36
  }
37
37
  function PaginationLink({
38
38
  className,
@@ -40,7 +40,7 @@ function PaginationLink({
40
40
  size = "icon-sm",
41
41
  ...props
42
42
  }) {
43
- return /* @__PURE__ */ React.createElement(
43
+ return /* @__PURE__ */ jsx(
44
44
  "a",
45
45
  {
46
46
  "aria-current": isActive ? "page" : void 0,
@@ -61,46 +61,48 @@ function PaginationPrevious({
61
61
  className,
62
62
  ...props
63
63
  }) {
64
- return /* @__PURE__ */ React.createElement(
64
+ return /* @__PURE__ */ jsx(
65
65
  PaginationLink,
66
66
  {
67
67
  "aria-label": "Go to previous page",
68
68
  size: "default",
69
69
  className: cn("gap-1 size-8 sm:pl-2.5", className),
70
- ...props
71
- },
72
- /* @__PURE__ */ React.createElement(ChevronLeftIcon, null)
70
+ ...props,
71
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
72
+ }
73
73
  );
74
74
  }
75
75
  function PaginationNext({
76
76
  className,
77
77
  ...props
78
78
  }) {
79
- return /* @__PURE__ */ React.createElement(
79
+ return /* @__PURE__ */ jsx(
80
80
  PaginationLink,
81
81
  {
82
82
  "aria-label": "Go to next page",
83
83
  size: "default",
84
84
  className: cn("gap-1 size-8 sm:pr-2.5", className),
85
- ...props
86
- },
87
- /* @__PURE__ */ React.createElement(ChevronRightIcon, null)
85
+ ...props,
86
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
87
+ }
88
88
  );
89
89
  }
90
90
  function PaginationEllipsis({
91
91
  className,
92
92
  ...props
93
93
  }) {
94
- return /* @__PURE__ */ React.createElement(
94
+ return /* @__PURE__ */ jsxs(
95
95
  "span",
96
96
  {
97
97
  "aria-hidden": true,
98
98
  "data-slot": "pagination-ellipsis",
99
99
  className: cn("flex size-9 items-center justify-center", className),
100
- ...props
101
- },
102
- /* @__PURE__ */ React.createElement(MoreHorizontalIcon, { className: "size-4 mt-1.5" }),
103
- /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "More pages")
100
+ ...props,
101
+ children: [
102
+ /* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4 mt-1.5" }),
103
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
104
+ ]
105
+ }
104
106
  );
105
107
  }
106
108
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\nimport { cn } from \"../../../infra/utils/clsx\"\nimport { Button, buttonVariants } from \"../buttons/Button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn(\"flex flex-row items-center gap-1.5\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof Button>, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon-sm\",\n ...props\n}: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={isActive}\n className={cn(\n buttonVariants({\n variant: isActive ? \"secondary\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 size-8 sm:pl-2.5\", className)}\n {...props}\n >\n <ChevronLeftIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 size-8 sm:pr-2.5\", className)}\n {...props}\n >\n <ChevronRightIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-4 mt-1.5\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\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EA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,GAAG;AACL,GAAgD;AAC9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX,MAAK;AAAA,MACL,WAAW,GAAG,0BAA0B,SAAS;AAAA,MAChD,GAAG;AAAA;AAAA,IAEJ,oCAAC,sBAAiB;AAAA,EACpB;AAEJ;AAEA,SAAS,mBAAmB;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAAiC;AAC/B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,MACX,aAAU;AAAA,MACV,WAAW,GAAG,2CAA2C,SAAS;AAAA,MACjE,GAAG;AAAA;AAAA,IAEJ,oCAAC,sBAAmB,WAAU,iBAAgB;AAAA,IAC9C,oCAAC,UAAK,WAAU,aAAU,YAAU;AAAA,EACtC;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/Pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\nimport { cn } from \"../../../infra/utils/clsx\"\nimport { Button, buttonVariants } from \"../buttons/Button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn(\"flex flex-row items-center gap-1.5\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof Button>, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon-sm\",\n ...props\n}: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={isActive}\n className={cn(\n buttonVariants({\n variant: isActive ? \"secondary\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 size-8 sm:pl-2.5\", className)}\n {...props}\n >\n <ChevronLeftIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 size-8 sm:pr-2.5\", className)}\n {...props}\n >\n <ChevronRightIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-4 mt-1.5\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n"],"mappings":"AAWI,cA4FA,YA5FA;AAVJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB,SAAiB,sBAAsB;AAEvC,SAAS,WAAW,EAAE,WAAW,GAAG,MAAM,GAAgC;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAW;AAAA,MACX,aAAU;AAAA,MACV,WAAW,GAAG,sCAAsC,SAAS;AAAA,MAC5D,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,kBAAkB;AAAA,EACzB;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jE,GAAG;AAAA,MAEJ;AAAA,4BAAC,sBAAmB,WAAU,iBAAgB;AAAA,QAC9C,oBAAC,UAAK,WAAU,WAAU,wBAAU;AAAA;AAAA;AAAA,EACtC;AAEJ;","names":[]}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
4
4
  import { cn } from "../../../infra/utils/clsx";
5
5
  function ScrollArea({
@@ -7,23 +7,25 @@ function ScrollArea({
7
7
  children,
8
8
  ...props
9
9
  }) {
10
- return /* @__PURE__ */ React.createElement(
10
+ return /* @__PURE__ */ jsxs(
11
11
  ScrollAreaPrimitive.Root,
12
12
  {
13
13
  "data-slot": "scroll-area",
14
14
  className: cn("relative", className),
15
- ...props
16
- },
17
- /* @__PURE__ */ React.createElement(
18
- ScrollAreaPrimitive.Viewport,
19
- {
20
- "data-slot": "scroll-area-viewport",
21
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
22
- },
23
- children
24
- ),
25
- /* @__PURE__ */ React.createElement(ScrollBar, null),
26
- /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Corner, null)
15
+ ...props,
16
+ children: [
17
+ /* @__PURE__ */ jsx(
18
+ ScrollAreaPrimitive.Viewport,
19
+ {
20
+ "data-slot": "scroll-area-viewport",
21
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
22
+ children
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsx(ScrollBar, {}),
26
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
27
+ ]
28
+ }
27
29
  );
28
30
  }
29
31
  function ScrollBar({
@@ -31,7 +33,7 @@ function ScrollBar({
31
33
  orientation = "vertical",
32
34
  ...props
33
35
  }) {
34
- return /* @__PURE__ */ React.createElement(
36
+ return /* @__PURE__ */ jsx(
35
37
  ScrollAreaPrimitive.ScrollAreaScrollbar,
36
38
  {
37
39
  "data-slot": "scroll-area-scrollbar",
@@ -42,15 +44,15 @@ function ScrollBar({
42
44
  orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
43
45
  className
44
46
  ),
45
- ...props
46
- },
47
- /* @__PURE__ */ React.createElement(
48
- ScrollAreaPrimitive.ScrollAreaThumb,
49
- {
50
- "data-slot": "scroll-area-thumb",
51
- className: "bg-border relative flex-1 rounded-full"
52
- }
53
- )
47
+ ...props,
48
+ children: /* @__PURE__ */ jsx(
49
+ ScrollAreaPrimitive.ScrollAreaThumb,
50
+ {
51
+ "data-slot": "scroll-area-thumb",
52
+ className: "bg-border relative flex-1 rounded-full"
53
+ }
54
+ )
55
+ }
54
56
  );
55
57
  }
56
58
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/ScrollArea.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction ScrollArea({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n className={cn(\"relative\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n )\n}\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={cn(\n \"flex touch-none p-px transition-colors select-none\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n )\n}\n\nexport { ScrollArea, ScrollBar }\n"],"mappings":";AAEA,YAAY,WAAW;AACvB,YAAY,yBAAyB;AACrC,SAAS,UAAU;AAEnB,SAAS,WAAW;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA0D;AACxD,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,YAAY,SAAS;AAAA,MAClC,GAAG;AAAA;AAAA,IAEJ;AAAA,MAAC,oBAAoB;AAAA,MAApB;AAAA,QACC,aAAU;AAAA,QACV,WAAU;AAAA;AAAA,MAET;AAAA,IACH;AAAA,IACA,oCAAC,eAAU;AAAA,IACX,oCAAC,oBAAoB,QAApB,IAA2B;AAAA,EAC9B;AAEJ;AAEA,SAAS,UAAU;AAAA,EACjB;AAAA,EACA,cAAc;AAAA,EACd,GAAG;AACL,GAAyE;AACvE,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,gBAAgB,cACd;AAAA,QACF,gBAAgB,gBACd;AAAA,QACF;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,IAEJ;AAAA,MAAC,oBAAoB;AAAA,MAApB;AAAA,QACC,aAAU;AAAA,QACV,WAAU;AAAA;AAAA,IACZ;AAAA,EACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/ScrollArea.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction ScrollArea({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n className={cn(\"relative\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n )\n}\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={cn(\n \"flex touch-none p-px transition-colors select-none\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n )\n}\n\nexport { ScrollArea, ScrollBar }\n"],"mappings":";AAYI,SAKE,KALF;AATJ,YAAY,yBAAyB;AACrC,SAAS,UAAU;AAEnB,SAAS,WAAW;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA0D;AACxD,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,YAAY,SAAS;AAAA,MAClC,GAAG;AAAA,MAEJ;AAAA;AAAA,UAAC,oBAAoB;AAAA,UAApB;AAAA,YACC,aAAU;AAAA,YACV,WAAU;AAAA,YAET;AAAA;AAAA,QACH;AAAA,QACA,oBAAC,aAAU;AAAA,QACX,oBAAC,oBAAoB,QAApB,EAA2B;AAAA;AAAA;AAAA,EAC9B;AAEJ;AAEA,SAAS,UAAU;AAAA,EACjB;AAAA,EACA,cAAc;AAAA,EACd,GAAG;AACL,GAAyE;AACvE,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,gBAAgB,cACd;AAAA,QACF,gBAAgB,gBACd;AAAA,QACF;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC,oBAAoB;AAAA,QAApB;AAAA,UACC,aAAU;AAAA,UACV,WAAU;AAAA;AAAA,MACZ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
4
  import { cn } from "../../../infra/utils/clsx";
5
5
  function Separator({
@@ -8,7 +8,7 @@ function Separator({
8
8
  decorative = true,
9
9
  ...props
10
10
  }) {
11
- return /* @__PURE__ */ React.createElement(
11
+ return /* @__PURE__ */ jsx(
12
12
  SeparatorPrimitive.Root,
13
13
  {
14
14
  "data-slot": "separator",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Separator.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n"],"mappings":";AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AACpC,SAAS,UAAU;AAEnB,SAAS,UAAU;AAAA,EACjB;AAAA,EACA,cAAc;AAAA,EACd,aAAa;AAAA,EACb,GAAG;AACL,GAAyD;AACvD,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/data-display/Separator.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n"],"mappings":";AAaI;AAVJ,YAAY,wBAAwB;AACpC,SAAS,UAAU;AAEnB,SAAS,UAAU;AAAA,EACjB;AAAA,EACA,cAAc;AAAA,EACd,aAAa;AAAA,EACb,GAAG;AACL,GAAyD;AACvD,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,aAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { cn } from "../../../infra/utils/clsx";
4
4
  function Table({ className, ...props }) {
5
- return /* @__PURE__ */ React.createElement(
5
+ return /* @__PURE__ */ jsx(
6
6
  "div",
7
7
  {
8
8
  "data-slot": "table-container",
9
- className: "relative w-full overflow-x-auto"
10
- },
11
- /* @__PURE__ */ React.createElement(
12
- "table",
13
- {
14
- "data-slot": "table",
15
- className: cn("w-full caption-bottom text-sm", className),
16
- ...props
17
- }
18
- )
9
+ className: "relative w-full overflow-x-auto",
10
+ children: /* @__PURE__ */ jsx(
11
+ "table",
12
+ {
13
+ "data-slot": "table",
14
+ className: cn("w-full caption-bottom text-sm", className),
15
+ ...props
16
+ }
17
+ )
18
+ }
19
19
  );
20
20
  }
21
21
  function TableHeader({ className, ...props }) {
22
- return /* @__PURE__ */ React.createElement(
22
+ return /* @__PURE__ */ jsx(
23
23
  "thead",
24
24
  {
25
25
  "data-slot": "table-header",
@@ -29,7 +29,7 @@ function TableHeader({ className, ...props }) {
29
29
  );
30
30
  }
31
31
  function TableBody({ className, ...props }) {
32
- return /* @__PURE__ */ React.createElement(
32
+ return /* @__PURE__ */ jsx(
33
33
  "tbody",
34
34
  {
35
35
  "data-slot": "table-body",
@@ -39,7 +39,7 @@ function TableBody({ className, ...props }) {
39
39
  );
40
40
  }
41
41
  function TableFooter({ className, ...props }) {
42
- return /* @__PURE__ */ React.createElement(
42
+ return /* @__PURE__ */ jsx(
43
43
  "tfoot",
44
44
  {
45
45
  "data-slot": "table-footer",
@@ -52,7 +52,7 @@ function TableFooter({ className, ...props }) {
52
52
  );
53
53
  }
54
54
  function TableRow({ className, ...props }) {
55
- return /* @__PURE__ */ React.createElement(
55
+ return /* @__PURE__ */ jsx(
56
56
  "tr",
57
57
  {
58
58
  "data-slot": "table-row",
@@ -65,7 +65,7 @@ function TableRow({ className, ...props }) {
65
65
  );
66
66
  }
67
67
  function TableHead({ className, ...props }) {
68
- return /* @__PURE__ */ React.createElement(
68
+ return /* @__PURE__ */ jsx(
69
69
  "th",
70
70
  {
71
71
  "data-slot": "table-head",
@@ -78,7 +78,7 @@ function TableHead({ className, ...props }) {
78
78
  );
79
79
  }
80
80
  function TableCell({ className, ...props }) {
81
- return /* @__PURE__ */ React.createElement(
81
+ return /* @__PURE__ */ jsx(
82
82
  "td",
83
83
  {
84
84
  "data-slot": "table-cell",
@@ -94,7 +94,7 @@ function TableCaption({
94
94
  className,
95
95
  ...props
96
96
  }) {
97
- return /* @__PURE__ */ React.createElement(
97
+ return /* @__PURE__ */ jsx(
98
98
  "caption",
99
99
  {
100
100
  "data-slot": "table-caption",