ivt 0.0.2 → 0.0.3

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 (124) hide show
  1. package/dist/accordion/index.d.ts +13 -0
  2. package/dist/accordion/index.mjs +2 -0
  3. package/dist/accordion/index.mjs.map +1 -0
  4. package/dist/badge/index.d.ts +13 -0
  5. package/dist/badge/index.mjs +2 -0
  6. package/dist/badge/index.mjs.map +1 -0
  7. package/dist/base/index.d.ts +15 -0
  8. package/dist/base/index.mjs +2 -0
  9. package/dist/base/index.mjs.map +1 -0
  10. package/dist/button/index.mjs +1 -1
  11. package/dist/checkbox/index.mjs +1 -1
  12. package/dist/checkbox/index.mjs.map +1 -1
  13. package/dist/chunks/TextWrap-B2WOcyfj.mjs +2 -0
  14. package/dist/chunks/TextWrap-B2WOcyfj.mjs.map +1 -0
  15. package/dist/chunks/accordion-CEMX6Rna.mjs +2 -0
  16. package/dist/chunks/accordion-CEMX6Rna.mjs.map +1 -0
  17. package/dist/chunks/{bundle-mjs-i8Dy217m.mjs → bundle-mjs-HknDzN6Z.mjs} +1 -1
  18. package/dist/chunks/{bundle-mjs-i8Dy217m.mjs.map → bundle-mjs-HknDzN6Z.mjs.map} +1 -1
  19. package/dist/chunks/{button-wdTQzPzE.mjs → button-DR1cWE8S.mjs} +2 -2
  20. package/dist/chunks/{button-wdTQzPzE.mjs.map → button-DR1cWE8S.mjs.map} +1 -1
  21. package/dist/chunks/check-wZkDbgjO.mjs +2 -0
  22. package/dist/chunks/{check-C0vjuPKS.mjs.map → check-wZkDbgjO.mjs.map} +1 -1
  23. package/dist/chunks/chevron-down-BbjHXP7j.mjs +2 -0
  24. package/dist/chunks/chevron-down-BbjHXP7j.mjs.map +1 -0
  25. package/dist/chunks/chevron-right-NuCkf5RR.mjs +2 -0
  26. package/dist/chunks/chevron-right-NuCkf5RR.mjs.map +1 -0
  27. package/dist/chunks/command-BvsI_sq9.mjs +2 -0
  28. package/dist/chunks/command-BvsI_sq9.mjs.map +1 -0
  29. package/dist/chunks/{createLucideIcon-CaVwnuel.mjs → createLucideIcon-DHet3kMe.mjs} +1 -1
  30. package/dist/chunks/{createLucideIcon-CaVwnuel.mjs.map → createLucideIcon-DHet3kMe.mjs.map} +1 -1
  31. package/dist/chunks/dialog-B7nAaDwF.mjs +2 -0
  32. package/dist/chunks/dialog-B7nAaDwF.mjs.map +1 -0
  33. package/dist/chunks/index-B25rp7IZ.mjs +2 -0
  34. package/dist/chunks/index-B25rp7IZ.mjs.map +1 -0
  35. package/dist/chunks/index-BESNMrh8.mjs +2 -0
  36. package/dist/chunks/index-BESNMrh8.mjs.map +1 -0
  37. package/dist/chunks/index-BsTRBWyW.mjs +2 -0
  38. package/dist/chunks/index-BsTRBWyW.mjs.map +1 -0
  39. package/dist/chunks/index-CJMeIDw8.mjs +2 -0
  40. package/dist/chunks/index-CJMeIDw8.mjs.map +1 -0
  41. package/dist/chunks/{index-BFS8ltTk.mjs → index-CjcSvOxo.mjs} +2 -2
  42. package/dist/chunks/{index-BFS8ltTk.mjs.map → index-CjcSvOxo.mjs.map} +1 -1
  43. package/dist/chunks/{index-BYh8JZrY.mjs → index-Cv2row07.mjs} +1 -1
  44. package/dist/chunks/{index-BYh8JZrY.mjs.map → index-Cv2row07.mjs.map} +1 -1
  45. package/dist/chunks/index-D5hJSEl1.mjs +2 -0
  46. package/dist/chunks/index-D5hJSEl1.mjs.map +1 -0
  47. package/dist/chunks/index-D6Orj-nf.mjs +2 -0
  48. package/dist/chunks/index-D6Orj-nf.mjs.map +1 -0
  49. package/dist/chunks/index-EftYm3Nj.mjs +2 -0
  50. package/dist/chunks/index-EftYm3Nj.mjs.map +1 -0
  51. package/dist/chunks/index-ew5utTUc.mjs +2 -0
  52. package/dist/chunks/index-ew5utTUc.mjs.map +1 -0
  53. package/dist/chunks/input-B2w6lnoj.mjs +2 -0
  54. package/dist/chunks/input-B2w6lnoj.mjs.map +1 -0
  55. package/dist/chunks/label-DXr1d22R.mjs +2 -0
  56. package/dist/chunks/label-DXr1d22R.mjs.map +1 -0
  57. package/dist/chunks/pagination-Cgu8tTUI.mjs +2 -0
  58. package/dist/chunks/pagination-Cgu8tTUI.mjs.map +1 -0
  59. package/dist/chunks/popover-BDcGFNWg.mjs +2 -0
  60. package/dist/chunks/popover-BDcGFNWg.mjs.map +1 -0
  61. package/dist/chunks/scroll-area-BEfzUuiC.mjs +2 -0
  62. package/dist/chunks/scroll-area-BEfzUuiC.mjs.map +1 -0
  63. package/dist/chunks/select-ByQjLEt1.mjs +2 -0
  64. package/dist/chunks/select-ByQjLEt1.mjs.map +1 -0
  65. package/dist/chunks/skeleton-BiE2soDg.mjs +2 -0
  66. package/dist/chunks/skeleton-BiE2soDg.mjs.map +1 -0
  67. package/dist/chunks/table-yo_IkKny.mjs +2 -0
  68. package/dist/chunks/table-yo_IkKny.mjs.map +1 -0
  69. package/dist/chunks/{utils-BxzjgHWL.mjs → utils-BpbSpG2q.mjs} +2 -2
  70. package/dist/chunks/{utils-BxzjgHWL.mjs.map → utils-BpbSpG2q.mjs.map} +1 -1
  71. package/dist/command/index.mjs +1 -1
  72. package/dist/command/index.mjs.map +1 -1
  73. package/dist/data-table/index.d.ts +108 -0
  74. package/dist/data-table/index.mjs +2 -0
  75. package/dist/data-table/index.mjs.map +1 -0
  76. package/dist/dialog/index.mjs +1 -1
  77. package/dist/dropdown-menu/index.d.ts +28 -0
  78. package/dist/dropdown-menu/index.mjs +2 -0
  79. package/dist/dropdown-menu/index.mjs.map +1 -0
  80. package/dist/form/index.d.ts +28 -0
  81. package/dist/form/index.mjs +2 -0
  82. package/dist/form/index.mjs.map +1 -0
  83. package/dist/icon/index.mjs +1 -1
  84. package/dist/index/index.d.ts +2 -8
  85. package/dist/index/index.mjs +1 -1
  86. package/dist/index.css +2 -2
  87. package/dist/input/index.mjs +1 -1
  88. package/dist/input/index.mjs.map +1 -1
  89. package/dist/label/index.mjs +1 -1
  90. package/dist/label/index.mjs.map +1 -1
  91. package/dist/pagination/index.d.ts +18 -0
  92. package/dist/pagination/index.mjs +2 -0
  93. package/dist/pagination/index.mjs.map +1 -0
  94. package/dist/popover/index.mjs +1 -1
  95. package/dist/popover/index.mjs.map +1 -1
  96. package/dist/scroll-area/index.d.ts +8 -0
  97. package/dist/scroll-area/index.mjs +2 -0
  98. package/dist/scroll-area/index.mjs.map +1 -0
  99. package/dist/select/index.mjs +1 -1
  100. package/dist/separator/index.d.ts +7 -0
  101. package/dist/separator/index.mjs +2 -0
  102. package/dist/separator/index.mjs.map +1 -0
  103. package/dist/sheet/index.d.ts +16 -0
  104. package/dist/sheet/index.mjs +2 -0
  105. package/dist/sheet/index.mjs.map +1 -0
  106. package/dist/skeleton/index.d.ts +6 -0
  107. package/dist/skeleton/index.mjs +2 -0
  108. package/dist/skeleton/index.mjs.map +1 -0
  109. package/dist/table/index.d.ts +13 -0
  110. package/dist/table/index.mjs +2 -0
  111. package/dist/table/index.mjs.map +1 -0
  112. package/dist/tooltip/index.d.ts +10 -0
  113. package/dist/tooltip/index.mjs +2 -0
  114. package/dist/tooltip/index.mjs.map +1 -0
  115. package/package.json +74 -11
  116. package/dist/chunks/check-C0vjuPKS.mjs +0 -2
  117. package/dist/chunks/dialog-D3SFDLse.mjs +0 -2
  118. package/dist/chunks/dialog-D3SFDLse.mjs.map +0 -1
  119. package/dist/chunks/index-CcK8TqAW.mjs +0 -2
  120. package/dist/chunks/index-CcK8TqAW.mjs.map +0 -1
  121. package/dist/chunks/index-KqnDJftu.mjs +0 -2
  122. package/dist/chunks/index-KqnDJftu.mjs.map +0 -1
  123. package/dist/chunks/select-CS-g8TjD.mjs +0 -2
  124. package/dist/chunks/select-CS-g8TjD.mjs.map +0 -1
@@ -0,0 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+
5
+ declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
7
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
8
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ side?: "top" | "right" | "bottom" | "left";
10
+ }): react_jsx_runtime.JSX.Element;
11
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
12
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
13
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
14
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
15
+
16
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{R as t,b as a,C as s,a as o,X as n,T as r,D as i,P as l,O as c}from"../chunks/index-D5hJSEl1.mjs";import{c as d}from"../chunks/utils-BpbSpG2q.mjs";import"../chunks/createLucideIcon-DHet3kMe.mjs";import"../chunks/index-ew5utTUc.mjs";import"react/jsx-runtime";import"../chunks/index-BsTRBWyW.mjs";import"../chunks/index-CJMeIDw8.mjs";import"../chunks/index-D6Orj-nf.mjs";import"../chunks/index-Cv2row07.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-BESNMrh8.mjs";import"../chunks/bundle-mjs-HknDzN6Z.mjs";function m({...a}){return e.createElement(t,{"data-slot":"sheet",...a})}function u({...t}){return e.createElement(a,{"data-slot":"sheet-trigger",...t})}function f({...t}){return e.createElement(s,{"data-slot":"sheet-close",...t})}function p({...t}){return e.createElement(l,{"data-slot":"sheet-portal",...t})}function h({className:t,...a}){return e.createElement(c,{"data-slot":"sheet-overlay",className:d("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function x({className:t,children:a,side:r="right",...i}){return e.createElement(p,null,e.createElement(h,null),e.createElement(o,{"data-slot":"sheet-content",className:d("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===r&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===r&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===r&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b","bottom"===r&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",t),...i},a,e.createElement(s,{className:"border-border-grid-container bg-card ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 cursor-pointer rounded-sm border p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none"},e.createElement(n,{className:"size-4"}),e.createElement("span",{className:"sr-only"},"Close"))))}function g({className:t,...a}){return e.createElement("div",{"data-slot":"sheet-header",className:d("flex flex-col space-y-2 text-center sm:text-left",t),...a})}function b({className:t,...a}){return e.createElement("div",{"data-slot":"sheet-footer",className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})}function E({className:t,...a}){return e.createElement(r,{"data-slot":"sheet-title",className:d("text-foreground text-lg font-semibold",t),...a})}function N({className:t,...a}){return e.createElement(i,{"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",t),...a})}export{m as Sheet,f as SheetClose,x as SheetContent,N as SheetDescription,b as SheetFooter,g as SheetHeader,E as SheetTitle,u as SheetTrigger};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/components/ui/sheet/sheet.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />;\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />;\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />;\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = \"right\",\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 gap-4 p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n side === \"right\" &&\n \"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm\",\n side === \"left\" &&\n \"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm\",\n side === \"top\" &&\n \"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b\",\n side === \"bottom\" &&\n \"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t\",\n className,\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"border-border-grid-container bg-card ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 cursor-pointer rounded-sm border p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\">\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn(\"text-foreground text-lg font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"names":["Sheet","props","React","createElement","SheetPrimitive","data-slot","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","cn","SheetContent","children","side","XIcon","span","SheetHeader","div","SheetFooter","SheetTitle","SheetDescription"],"mappings":"mjBAMA,SAASA,MAAWC,IAClB,OAAOC,EAAAC,cAACC,EAAmB,CAACC,YAAU,WAAYJ,GACpD,CAEA,SAASK,MACJL,IAEH,OAAOC,EAAAC,cAACC,EAAsB,CAACC,YAAU,mBAAoBJ,GAC/D,CAEA,SAASM,MACJN,IAEH,OAAOC,EAAAC,cAACC,EAAoB,CAACC,YAAU,iBAAkBJ,GAC3D,CAEA,SAASO,MACJP,IAEH,OAAOC,EAAAC,cAACC,EAAqB,CAACC,YAAU,kBAAmBJ,GAC7D,CAEA,SAASQ,GAAaC,UACpBA,KACGT,IAEH,OACEC,EAAAC,cAACC,EAAsB,CACrBC,YAAU,gBACVK,UAAWC,EACT,yJACAD,MAEET,GAGV,CAEA,SAASW,GAAaF,UACpBA,EAASG,SACTA,EAAQC,KACRA,EAAO,WACJb,IAIH,OACEC,gBAACM,EACC,KAAAN,EAAAC,cAACM,EACD,MAAAP,EAAAC,cAACC,EAAsB,CACrBC,YAAU,gBACVK,UAAWC,EACT,mMACS,UAATG,GACE,mIACO,SAATA,GACE,gIACO,QAATA,GACE,oGACO,WAATA,GACE,6GACFJ,MAEET,GAEHY,EACDX,EAAAC,cAACC,EAAoB,CAACM,UAAU,6SAC9BR,EAACa,cAAAA,EAAAA,CAAML,UAAU,WACjBR,EAACc,cAAAA,OAAAA,CAAKN,UAAU,WAAU,WAKpC,CAEA,SAASO,GAAYP,UAAEA,KAAcT,IACnC,OACEC,EAACgB,cAAAA,MAAAA,CACCb,YAAU,eACVK,UAAWC,EACT,mDACAD,MAEET,GAGV,CAEA,SAASkB,GAAYT,UAAEA,KAAcT,IACnC,OACEC,EAACgB,cAAAA,MAAAA,CACCb,YAAU,eACVK,UAAWC,EACT,gEACAD,MAEET,GAGV,CAEA,SAASmB,GAAWV,UAClBA,KACGT,IAEH,OACEC,EAAAC,cAACC,EAAoB,CACnBC,YAAU,cACVK,UAAWC,EAAG,wCAAyCD,MACnDT,GAGV,CAEA,SAASoB,GAAiBX,UACxBA,KACGT,IAEH,OACEC,EAAAC,cAACC,EAA0B,CACzBC,YAAU,oBACVK,UAAWC,EAAG,gCAAiCD,MAC3CT,GAGV"}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+
4
+ declare function Skeleton({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
5
+
6
+ export { Skeleton };
@@ -0,0 +1,2 @@
1
+ export{S as Skeleton}from"../chunks/skeleton-BiE2soDg.mjs";import"react";import"../chunks/utils-BpbSpG2q.mjs";import"../chunks/bundle-mjs-HknDzN6Z.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
5
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
6
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
7
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
8
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
9
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
10
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
11
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
12
+
13
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
@@ -0,0 +1,2 @@
1
+ export{T as Table,b as TableBody,g as TableCaption,f as TableCell,c as TableFooter,d as TableHead,a as TableHeader,e as TableRow}from"../chunks/table-yo_IkKny.mjs";import"react";import"../chunks/utils-BpbSpG2q.mjs";import"../chunks/bundle-mjs-HknDzN6Z.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+
5
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
6
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
7
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
8
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{c as t,b as n,d as o,P as r}from"../chunks/index-ew5utTUc.mjs";import{P as i,D as a}from"../chunks/index-D6Orj-nf.mjs";import{u as s}from"../chunks/index-BsTRBWyW.mjs";import{c as l,R as c,A as u,C as d,a as p}from"../chunks/index-EftYm3Nj.mjs";import{P as f}from"../chunks/index-Cv2row07.mjs";import{Slottable as m}from"@radix-ui/react-slot";import{u as h}from"../chunks/index-CJMeIDw8.mjs";import{jsx as g,jsxs as y}from"react/jsx-runtime";import{c as v}from"../chunks/utils-BpbSpG2q.mjs";import"react-dom";import"../chunks/index-CjcSvOxo.mjs";import"../chunks/bundle-mjs-HknDzN6Z.mjs";var x=e.forwardRef(((e,t)=>g(f.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));x.displayName="VisuallyHidden";var b=x,[w,T]=t("Tooltip",[l]),C=l(),E="TooltipProvider",k=700,_="tooltip.open",[D,P]=w(E),R=t=>{const{__scopeTooltip:n,delayDuration:o=k,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=t,[s,l]=e.useState(!0),c=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),g(D,{scope:n,isOpenDelayed:s,delayDuration:o,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i,children:a})};R.displayName=E;var L="Tooltip",[O,M]=w(L),j=t=>{const{__scopeTooltip:n,children:o,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:u}=t,d=P(L,t.__scopeTooltip),p=C(n),[f,m]=e.useState(null),y=s(),v=e.useRef(0),x=l??d.disableHoverableContent,b=u??d.delayDuration,w=e.useRef(!1),[T=!1,E]=h({prop:r,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(_))):d.onClose(),a?.(e)}}),k=e.useMemo((()=>T?w.current?"delayed-open":"instant-open":"closed"),[T]),D=e.useCallback((()=>{window.clearTimeout(v.current),v.current=0,w.current=!1,E(!0)}),[E]),R=e.useCallback((()=>{window.clearTimeout(v.current),v.current=0,E(!1)}),[E]),M=e.useCallback((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{w.current=!0,E(!0),v.current=0}),b)}),[b,E]);return e.useEffect((()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)}),[]),g(c,{...p,children:g(O,{scope:n,contentId:y,open:T,stateAttribute:k,trigger:f,onTriggerChange:m,onTriggerEnter:e.useCallback((()=>{d.isOpenDelayed?M():D()}),[d.isOpenDelayed,M,D]),onTriggerLeave:e.useCallback((()=>{x?R():(window.clearTimeout(v.current),v.current=0)}),[R,x]),onOpen:D,onClose:R,disableHoverableContent:x,children:o})})};j.displayName=L;var I="TooltipTrigger",N=e.forwardRef(((t,r)=>{const{__scopeTooltip:i,...a}=t,s=M(I,i),l=P(I,i),c=C(i),d=e.useRef(null),p=n(r,d,s.onTriggerChange),m=e.useRef(!1),h=e.useRef(!1),y=e.useCallback((()=>m.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",y)),[y]),g(u,{asChild:!0,...c,children:g(f.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:o(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),h.current=!0))})),onPointerLeave:o(t.onPointerLeave,(()=>{s.onTriggerLeave(),h.current=!1})),onPointerDown:o(t.onPointerDown,(()=>{m.current=!0,document.addEventListener("pointerup",y,{once:!0})})),onFocus:o(t.onFocus,(()=>{m.current||s.onOpen()})),onBlur:o(t.onBlur,s.onClose),onClick:o(t.onClick,s.onClose)})})}));N.displayName=I;var H="TooltipPortal",[A,B]=w(H,{forceMount:void 0}),S=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:a}=e,s=M(H,t);return g(A,{scope:t,forceMount:n,children:g(r,{present:n||s.open,children:g(i,{asChild:!0,container:a,children:o})})})};S.displayName=H;var z="TooltipContent",F=e.forwardRef(((e,t)=>{const n=B(z,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...a}=e,s=M(z,e.__scopeTooltip);return g(r,{present:o||s.open,children:s.disableHoverableContent?g(V,{side:i,...a,ref:t}):g(K,{side:i,...a,ref:t})})})),K=e.forwardRef(((t,o)=>{const r=M(z,t.__scopeTooltip),i=P(z,t.__scopeTooltip),a=e.useRef(null),s=n(o,a),[l,c]=e.useState(null),{trigger:u,onClose:d}=r,p=a.current,{onPointerInTransitChange:f}=i,m=e.useCallback((()=>{c(null),f(!1)}),[f]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return o}(o,function(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}(o,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())]);c(i),f(!0)}),[f]);return e.useEffect((()=>()=>m()),[m]),e.useEffect((()=>{if(u&&p){const e=e=>h(e,p),t=e=>h(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}}),[u,p,h,m]),e.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=u?.contains(t)||p?.contains(t),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>o!=c>o&&n<(l-a)*(o-s)/(c-s)+a&&(r=!r)}return r}(n,l);o?m():r&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,p,l,d,m]),g(V,{...t,ref:s})})),[X,Y]=w(L,{isInside:!1}),V=e.forwardRef(((t,n)=>{const{__scopeTooltip:o,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=t,u=M(z,o),p=C(o),{onClose:f}=u;return e.useEffect((()=>(document.addEventListener(_,f),()=>document.removeEventListener(_,f))),[f]),e.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,f]),g(a,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:y(d,{"data-state":u.stateAttribute,...p,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g(m,{children:r}),g(X,{scope:o,isInside:!0,children:g(b,{id:u.contentId,role:"tooltip",children:i||r})})]})})}));F.displayName=z;var W="TooltipArrow";e.forwardRef(((e,t)=>{const{__scopeTooltip:n,...o}=e,r=C(n);return Y(W,n).isInside?null:g(p,{...r,...o,ref:t})})).displayName=W;var q=R,G=j,J=N,Q=S,U=F;function Z({delayDuration:t=0,...n}){return e.createElement(q,{"data-slot":"tooltip-provider",delayDuration:t,...n})}function $({...t}){return e.createElement(Z,null,e.createElement(G,{"data-slot":"tooltip",...t}))}function ee({...t}){return e.createElement(J,{"data-slot":"tooltip-trigger",...t})}function te({className:t,sideOffset:n=0,children:o,...r}){return e.createElement(Q,null,e.createElement(U,{"data-slot":"tooltip-content",sideOffset:n,className:v("bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md px-3 py-1.5 text-sm shadow-md drop-shadow",t),...r},o))}export{$ as Tooltip,te as TooltipContent,Z as TooltipProvider,ee as TooltipTrigger};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs","../../node_modules/@radix-ui/react-tooltip/dist/index.mjs","../../src/components/ui/tooltip/tooltip.tsx"],"sourcesContent":["// packages/react/visually-hidden/src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: {\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\",\n ...props.style\n }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// packages/react/tooltip/src/tooltip.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slottable } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport * as VisuallyHiddenPrimitive from \"@radix-ui/react-visually-hidden\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar [createTooltipContext, createTooltipScope] = createContextScope(\"Tooltip\", [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar PROVIDER_NAME = \"TooltipProvider\";\nvar DEFAULT_DELAY_DURATION = 700;\nvar TOOLTIP_OPEN = \"tooltip.open\";\nvar [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);\nvar TooltipProvider = (props) => {\n const {\n __scopeTooltip,\n delayDuration = DEFAULT_DELAY_DURATION,\n skipDelayDuration = 300,\n disableHoverableContent = false,\n children\n } = props;\n const [isOpenDelayed, setIsOpenDelayed] = React.useState(true);\n const isPointerInTransitRef = React.useRef(false);\n const skipDelayTimerRef = React.useRef(0);\n React.useEffect(() => {\n const skipDelayTimer = skipDelayTimerRef.current;\n return () => window.clearTimeout(skipDelayTimer);\n }, []);\n return /* @__PURE__ */ jsx(\n TooltipProviderContextProvider,\n {\n scope: __scopeTooltip,\n isOpenDelayed,\n delayDuration,\n onOpen: React.useCallback(() => {\n window.clearTimeout(skipDelayTimerRef.current);\n setIsOpenDelayed(false);\n }, []),\n onClose: React.useCallback(() => {\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(\n () => setIsOpenDelayed(true),\n skipDelayDuration\n );\n }, [skipDelayDuration]),\n isPointerInTransitRef,\n onPointerInTransitChange: React.useCallback((inTransit) => {\n isPointerInTransitRef.current = inTransit;\n }, []),\n disableHoverableContent,\n children\n }\n );\n};\nTooltipProvider.displayName = PROVIDER_NAME;\nvar TOOLTIP_NAME = \"Tooltip\";\nvar [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);\nvar Tooltip = (props) => {\n const {\n __scopeTooltip,\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n disableHoverableContent: disableHoverableContentProp,\n delayDuration: delayDurationProp\n } = props;\n const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const [trigger, setTrigger] = React.useState(null);\n const contentId = useId();\n const openTimerRef = React.useRef(0);\n const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;\n const delayDuration = delayDurationProp ?? providerContext.delayDuration;\n const wasOpenDelayedRef = React.useRef(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: (open2) => {\n if (open2) {\n providerContext.onOpen();\n document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));\n } else {\n providerContext.onClose();\n }\n onOpenChange?.(open2);\n }\n });\n const stateAttribute = React.useMemo(() => {\n return open ? wasOpenDelayedRef.current ? \"delayed-open\" : \"instant-open\" : \"closed\";\n }, [open]);\n const handleOpen = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = 0;\n wasOpenDelayedRef.current = false;\n setOpen(true);\n }, [setOpen]);\n const handleClose = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = 0;\n setOpen(false);\n }, [setOpen]);\n const handleDelayedOpen = React.useCallback(() => {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = window.setTimeout(() => {\n wasOpenDelayedRef.current = true;\n setOpen(true);\n openTimerRef.current = 0;\n }, delayDuration);\n }, [delayDuration, setOpen]);\n React.useEffect(() => {\n return () => {\n if (openTimerRef.current) {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = 0;\n }\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n TooltipContextProvider,\n {\n scope: __scopeTooltip,\n contentId,\n open,\n stateAttribute,\n trigger,\n onTriggerChange: setTrigger,\n onTriggerEnter: React.useCallback(() => {\n if (providerContext.isOpenDelayed) handleDelayedOpen();\n else handleOpen();\n }, [providerContext.isOpenDelayed, handleDelayedOpen, handleOpen]),\n onTriggerLeave: React.useCallback(() => {\n if (disableHoverableContent) {\n handleClose();\n } else {\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = 0;\n }\n }, [handleClose, disableHoverableContent]),\n onOpen: handleOpen,\n onClose: handleClose,\n disableHoverableContent,\n children\n }\n ) });\n};\nTooltip.displayName = TOOLTIP_NAME;\nvar TRIGGER_NAME = \"TooltipTrigger\";\nvar TooltipTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTooltip, ...triggerProps } = props;\n const context = useTooltipContext(TRIGGER_NAME, __scopeTooltip);\n const providerContext = useTooltipProviderContext(TRIGGER_NAME, __scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);\n const isPointerDownRef = React.useRef(false);\n const hasPointerMoveOpenedRef = React.useRef(false);\n const handlePointerUp = React.useCallback(() => isPointerDownRef.current = false, []);\n React.useEffect(() => {\n return () => document.removeEventListener(\"pointerup\", handlePointerUp);\n }, [handlePointerUp]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n \"aria-describedby\": context.open ? context.contentId : void 0,\n \"data-state\": context.stateAttribute,\n ...triggerProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {\n if (event.pointerType === \"touch\") return;\n if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {\n context.onTriggerEnter();\n hasPointerMoveOpenedRef.current = true;\n }\n }),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => {\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n }),\n onPointerDown: composeEventHandlers(props.onPointerDown, () => {\n isPointerDownRef.current = true;\n document.addEventListener(\"pointerup\", handlePointerUp, { once: true });\n }),\n onFocus: composeEventHandlers(props.onFocus, () => {\n if (!isPointerDownRef.current) context.onOpen();\n }),\n onBlur: composeEventHandlers(props.onBlur, context.onClose),\n onClick: composeEventHandlers(props.onClick, context.onClose)\n }\n ) });\n }\n);\nTooltipTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"TooltipPortal\";\nvar [PortalProvider, usePortalContext] = createTooltipContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar TooltipPortal = (props) => {\n const { __scopeTooltip, forceMount, children, container } = props;\n const context = useTooltipContext(PORTAL_NAME, __scopeTooltip);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeTooltip, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nTooltipPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"TooltipContent\";\nvar TooltipContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeTooltip);\n const { forceMount = portalContext.forceMount, side = \"top\", ...contentProps } = props;\n const context = useTooltipContext(CONTENT_NAME, props.__scopeTooltip);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.disableHoverableContent ? /* @__PURE__ */ jsx(TooltipContentImpl, { side, ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(TooltipContentHoverable, { side, ...contentProps, ref: forwardedRef }) });\n }\n);\nvar TooltipContentHoverable = React.forwardRef((props, forwardedRef) => {\n const context = useTooltipContext(CONTENT_NAME, props.__scopeTooltip);\n const providerContext = useTooltipProviderContext(CONTENT_NAME, props.__scopeTooltip);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [pointerGraceArea, setPointerGraceArea] = React.useState(null);\n const { trigger, onClose } = context;\n const content = ref.current;\n const { onPointerInTransitChange } = providerContext;\n const handleRemoveGraceArea = React.useCallback(() => {\n setPointerGraceArea(null);\n onPointerInTransitChange(false);\n }, [onPointerInTransitChange]);\n const handleCreateGraceArea = React.useCallback(\n (event, hoverTarget) => {\n const currentTarget = event.currentTarget;\n const exitPoint = { x: event.clientX, y: event.clientY };\n const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);\n setPointerGraceArea(graceArea);\n onPointerInTransitChange(true);\n },\n [onPointerInTransitChange]\n );\n React.useEffect(() => {\n return () => handleRemoveGraceArea();\n }, [handleRemoveGraceArea]);\n React.useEffect(() => {\n if (trigger && content) {\n const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);\n const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);\n trigger.addEventListener(\"pointerleave\", handleTriggerLeave);\n content.addEventListener(\"pointerleave\", handleContentLeave);\n return () => {\n trigger.removeEventListener(\"pointerleave\", handleTriggerLeave);\n content.removeEventListener(\"pointerleave\", handleContentLeave);\n };\n }\n }, [trigger, content, handleCreateGraceArea, handleRemoveGraceArea]);\n React.useEffect(() => {\n if (pointerGraceArea) {\n const handleTrackPointerGrace = (event) => {\n const target = event.target;\n const pointerPosition = { x: event.clientX, y: event.clientY };\n const hasEnteredTarget = trigger?.contains(target) || content?.contains(target);\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, pointerGraceArea);\n if (hasEnteredTarget) {\n handleRemoveGraceArea();\n } else if (isPointerOutsideGraceArea) {\n handleRemoveGraceArea();\n onClose();\n }\n };\n document.addEventListener(\"pointermove\", handleTrackPointerGrace);\n return () => document.removeEventListener(\"pointermove\", handleTrackPointerGrace);\n }\n }, [trigger, content, pointerGraceArea, onClose, handleRemoveGraceArea]);\n return /* @__PURE__ */ jsx(TooltipContentImpl, { ...props, ref: composedRefs });\n});\nvar [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false });\nvar TooltipContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeTooltip,\n children,\n \"aria-label\": ariaLabel,\n onEscapeKeyDown,\n onPointerDownOutside,\n ...contentProps\n } = props;\n const context = useTooltipContext(CONTENT_NAME, __scopeTooltip);\n const popperScope = usePopperScope(__scopeTooltip);\n const { onClose } = context;\n React.useEffect(() => {\n document.addEventListener(TOOLTIP_OPEN, onClose);\n return () => document.removeEventListener(TOOLTIP_OPEN, onClose);\n }, [onClose]);\n React.useEffect(() => {\n if (context.trigger) {\n const handleScroll = (event) => {\n const target = event.target;\n if (target?.contains(context.trigger)) onClose();\n };\n window.addEventListener(\"scroll\", handleScroll, { capture: true });\n return () => window.removeEventListener(\"scroll\", handleScroll, { capture: true });\n }\n }, [context.trigger, onClose]);\n return /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: (event) => event.preventDefault(),\n onDismiss: onClose,\n children: /* @__PURE__ */ jsxs(\n PopperPrimitive.Content,\n {\n \"data-state\": context.stateAttribute,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-tooltip-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-tooltip-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-tooltip-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-tooltip-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-tooltip-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n },\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(VisuallyHiddenPrimitive.Root, { id: context.contentId, role: \"tooltip\", children: ariaLabel || children }) })\n ]\n }\n )\n }\n );\n }\n);\nTooltipContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"TooltipArrow\";\nvar TooltipArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTooltip, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeTooltip);\n const visuallyHiddenContentContext = useVisuallyHiddenContentContext(\n ARROW_NAME,\n __scopeTooltip\n );\n return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nTooltipArrow.displayName = ARROW_NAME;\nfunction getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch (Math.min(top, bottom, right, left)) {\n case left:\n return \"left\";\n case right:\n return \"right\";\n case top:\n return \"top\";\n case bottom:\n return \"bottom\";\n default:\n throw new Error(\"unreachable\");\n }\n}\nfunction getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n const paddedExitPoints = [];\n switch (exitSide) {\n case \"top\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding }\n );\n break;\n case \"bottom\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x + padding, y: exitPoint.y - padding }\n );\n break;\n case \"left\":\n paddedExitPoints.push(\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding }\n );\n break;\n case \"right\":\n paddedExitPoints.push(\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x - padding, y: exitPoint.y + padding }\n );\n break;\n }\n return paddedExitPoints;\n}\nfunction getPointsFromRect(rect) {\n const { top, right, bottom, left } = rect;\n return [\n { x: left, y: top },\n { x: right, y: top },\n { x: right, y: bottom },\n { x: left, y: bottom }\n ];\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b) => {\n if (a.x < b.x) return -1;\n else if (a.x > b.x) return 1;\n else if (a.y < b.y) return -1;\n else if (a.y > b.y) return 1;\n else return 0;\n });\n return getHullPresorted(newPoints);\n}\nfunction getHullPresorted(points) {\n if (points.length <= 1) return points.slice();\n const upperHull = [];\n for (let i = 0; i < points.length; i++) {\n const p = points[i];\n while (upperHull.length >= 2) {\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();\n else break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for (let i = points.length - 1; i >= 0; i--) {\n const p = points[i];\n while (lowerHull.length >= 2) {\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();\n else break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) {\n return upperHull;\n } else {\n return upperHull.concat(lowerHull);\n }\n}\nvar Provider = TooltipProvider;\nvar Root3 = Tooltip;\nvar Trigger = TooltipTrigger;\nvar Portal = TooltipPortal;\nvar Content2 = TooltipContent;\nvar Arrow2 = TooltipArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n Portal,\n Provider,\n Root3 as Root,\n Tooltip,\n TooltipArrow,\n TooltipContent,\n TooltipPortal,\n TooltipProvider,\n TooltipTrigger,\n Trigger,\n createTooltipScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md px-3 py-1.5 text-sm shadow-md drop-shadow\",\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"names":["VisuallyHidden","React","forwardRef","props","forwardedRef","jsx","Primitive","span","ref","style","position","border","width","height","padding","margin","overflow","clip","whiteSpace","wordWrap","displayName","Root","createTooltipContext","createTooltipScope","createContextScope","createPopperScope","usePopperScope","PROVIDER_NAME","DEFAULT_DELAY_DURATION","TOOLTIP_OPEN","TooltipProviderContextProvider","useTooltipProviderContext","TooltipProvider","__scopeTooltip","delayDuration","skipDelayDuration","disableHoverableContent","children","isOpenDelayed","setIsOpenDelayed","useState","isPointerInTransitRef","useRef","skipDelayTimerRef","useEffect","skipDelayTimer","current","window","clearTimeout","scope","onOpen","useCallback","onClose","setTimeout","onPointerInTransitChange","inTransit","TOOLTIP_NAME","TooltipContextProvider","useTooltipContext","Tooltip","open","openProp","defaultOpen","onOpenChange","disableHoverableContentProp","delayDurationProp","providerContext","popperScope","trigger","setTrigger","contentId","useId","openTimerRef","wasOpenDelayedRef","setOpen","useControllableState","prop","defaultProp","onChange","document","dispatchEvent","CustomEvent","stateAttribute","useMemo","handleOpen","handleClose","handleDelayedOpen","PopperPrimitive.Root","onTriggerChange","onTriggerEnter","onTriggerLeave","TRIGGER_NAME","TooltipTrigger","triggerProps","context","composedRefs","useComposedRefs","isPointerDownRef","hasPointerMoveOpenedRef","handlePointerUp","removeEventListener","PopperPrimitive.Anchor","asChild","button","onPointerMove","composeEventHandlers","event","pointerType","onPointerLeave","onPointerDown","addEventListener","once","onFocus","onBlur","onClick","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","TooltipPortal","container","Presence","present","PortalPrimitive","CONTENT_NAME","TooltipContent","portalContext","side","contentProps","TooltipContentImpl","TooltipContentHoverable","pointerGraceArea","setPointerGraceArea","content","handleRemoveGraceArea","handleCreateGraceArea","hoverTarget","currentTarget","exitPoint","x","clientX","y","clientY","paddedExitPoints","exitSide","push","getPaddedExitPoints","point","rect","top","Math","abs","bottom","right","left","min","Error","getExitSideFromRect","getBoundingClientRect","graceArea","points","newPoints","slice","sort","a","b","length","upperHull","i","p","q","r","pop","lowerHull","concat","getHullPresorted","getHull","getPointsFromRect","handleTriggerLeave","handleContentLeave","handleTrackPointerGrace","target","pointerPosition","hasEnteredTarget","contains","isPointerOutsideGraceArea","polygon","inside","j","xi","yi","xj","yj","isPointInPolygon","VisuallyHiddenContentContextProvider","useVisuallyHiddenContentContext","isInside","ariaLabel","onEscapeKeyDown","onPointerDownOutside","handleScroll","capture","DismissableLayer","disableOutsidePointerEvents","onFocusOutside","preventDefault","onDismiss","jsxs","PopperPrimitive.Content","Slottable","VisuallyHiddenPrimitive.Root","id","role","ARROW_NAME","arrowProps","PopperPrimitive.Arrow","Provider","Trigger","Portal","Content","createElement","TooltipPrimitive","data-slot","className","sideOffset","cn"],"mappings":"2mBAOA,IAMMA,EAAuBC,EAAAC,YAC3B,CAACC,EAA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AcwG,EAM7B,IAAMyF,EAAa,eAMQpN,EAAAC,YACzB,CAACC,EAAuCC,KACtC,MAAM6B,eAAEA,KAAmBqL,GAAenN,EACpCgE,EAAczC,EAAeO,GAOnC,OANqCkK,EACnCkB,EACApL,GAIkCmK,SAAW,KAC7C/L,EAAiBkN,EAAhB,IAA0BpJ,KAAiBmJ,EAAY9M,IAAKJ,GAAc,IAKpEgB,YAAciM,EA8I3B,IAAMG,EAAWxL,EACXX,EAAOsC,EACP8J,EAAU7H,EACV8H,EAASnG,EACToG,EAAU9F,ECnuBhB,SAAS7F,GAAgBE,cACvBA,EAAgB,KACb/B,IAEH,OACEF,EAAA2N,cAACC,EAAyB,CACxBC,YAAU,mBACV5L,cAAeA,KACX/B,GAGV,CAEA,SAASwD,MACJxD,IAEH,OACEF,EAAC+B,cAAAA,EAAAA,KACC/B,EAAC4N,cAAAA,EAAqB,CAACC,YAAU,aAAc3N,IAGrD,CAEA,SAASyF,OACJzF,IAEH,OAAOF,EAAA2N,cAACC,EAAwB,CAACC,YAAU,qBAAsB3N,GACnE,CAEA,SAAS0H,IAAekG,UACtBA,EAASC,WACTA,EAAa,EAAC3L,SACdA,KACGlC,IAEH,OACEF,gBAAC4N,EACC,KAAA5N,EAAA2N,cAACC,EAAwB,CACvBC,YAAU,kBACVE,WAAYA,EACZD,UAAWE,EACT,0YACAF,MAEE5N,GAEHkC,GAIT","x_google_ignoreList":[0,1]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Investtools",
3
3
  "name": "ivt",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "description": "Ivt Components Library",
6
6
  "keywords": [
7
7
  "ivt",
@@ -23,7 +23,8 @@
23
23
  "lint": "eslint .",
24
24
  "preview": "vite preview",
25
25
  "storybook": "storybook dev -p 6006",
26
- "build-storybook": "storybook build"
26
+ "build-storybook": "storybook build",
27
+ "prepare": "husky"
27
28
  },
28
29
  "files": [
29
30
  "dist/**/*",
@@ -31,6 +32,18 @@
31
32
  "LICENSE.md"
32
33
  ],
33
34
  "exports": {
35
+ "./accordion": {
36
+ "import": "./dist/accordion/index.mjs",
37
+ "types": "./dist/accordion/index.d.ts"
38
+ },
39
+ "./badge": {
40
+ "import": "./dist/badge/index.mjs",
41
+ "types": "./dist/badge/index.d.ts"
42
+ },
43
+ "./base": {
44
+ "import": "./dist/base/index.mjs",
45
+ "types": "./dist/base/index.d.ts"
46
+ },
34
47
  "./button": {
35
48
  "import": "./dist/button/index.mjs",
36
49
  "types": "./dist/button/index.d.ts"
@@ -43,10 +56,29 @@
43
56
  "import": "./dist/command/index.mjs",
44
57
  "types": "./dist/command/index.d.ts"
45
58
  },
59
+ "./data-table": {
60
+ "import": "./dist/data-table/index.mjs",
61
+ "types": "./dist/data-table/index.d.ts"
62
+ },
46
63
  "./dialog": {
47
64
  "import": "./dist/dialog/index.mjs",
48
65
  "types": "./dist/dialog/index.d.ts"
49
66
  },
67
+ "./dropdown-menu": {
68
+ "import": "./dist/dropdown-menu/index.mjs",
69
+ "types": "./dist/dropdown-menu/index.d.ts"
70
+ },
71
+ "./form": {
72
+ "import": "./dist/form/index.mjs",
73
+ "types": "./dist/form/index.d.ts"
74
+ },
75
+ "./icon": {
76
+ "import": "./dist/icon/index.mjs",
77
+ "types": "./dist/icon/index.d.ts"
78
+ },
79
+ "./index.css": {
80
+ "import": "./dist/index.css"
81
+ },
50
82
  "./input": {
51
83
  "import": "./dist/input/index.mjs",
52
84
  "types": "./dist/input/index.d.ts"
@@ -55,24 +87,41 @@
55
87
  "import": "./dist/label/index.mjs",
56
88
  "types": "./dist/label/index.d.ts"
57
89
  },
90
+ "./pagination": {
91
+ "import": "./dist/pagination/index.mjs",
92
+ "types": "./dist/pagination/index.d.ts"
93
+ },
58
94
  "./popover": {
59
95
  "import": "./dist/popover/index.mjs",
60
96
  "types": "./dist/popover/index.d.ts"
61
97
  },
98
+ "./scroll-area": {
99
+ "import": "./dist/scroll-area/index.mjs",
100
+ "types": "./dist/scroll-area/index.d.ts"
101
+ },
62
102
  "./select": {
63
103
  "import": "./dist/select/index.mjs",
64
104
  "types": "./dist/select/index.d.ts"
65
105
  },
66
- ".": {
67
- "import": "./dist/index/index.mjs",
68
- "types": "./dist/index/index.d.ts"
106
+ "./separator": {
107
+ "import": "./dist/separator/index.mjs",
108
+ "types": "./dist/separator/index.d.ts"
69
109
  },
70
- "./icon": {
71
- "import": "./dist/icon/index.mjs",
72
- "types": "./dist/icon/index.d.ts"
110
+ "./skeleton": {
111
+ "import": "./dist/skeleton/index.mjs",
112
+ "types": "./dist/skeleton/index.d.ts"
73
113
  },
74
- "./index.css": {
75
- "import": "./dist/index.css"
114
+ "./sheet": {
115
+ "import": "./dist/sheet/index.mjs",
116
+ "types": "./dist/sheet/index.d.ts"
117
+ },
118
+ "./table": {
119
+ "import": "./dist/table/index.mjs",
120
+ "types": "./dist/table/index.d.ts"
121
+ },
122
+ "./tooltip": {
123
+ "import": "./dist/tooltip/index.mjs",
124
+ "types": "./dist/tooltip/index.d.ts"
76
125
  }
77
126
  },
78
127
  "skipLibCheck": true,
@@ -90,18 +139,25 @@
90
139
  }
91
140
  },
92
141
  "dependencies": {
142
+ "@radix-ui/react-accordion": "^1.2.3",
93
143
  "@radix-ui/react-checkbox": "^1.1.4",
94
144
  "@radix-ui/react-dialog": "^1.1.6",
145
+ "@radix-ui/react-dropdown-menu": "^2.1.6",
95
146
  "@radix-ui/react-label": "^2.1.2",
96
147
  "@radix-ui/react-popover": "^1.1.6",
148
+ "@radix-ui/react-scroll-area": "^1.2.3",
97
149
  "@radix-ui/react-select": "^2.1.6",
150
+ "@radix-ui/react-separator": "^1.1.2",
98
151
  "@radix-ui/react-slot": "^1.1.2",
152
+ "@radix-ui/react-tooltip": "^1.1.8",
99
153
  "class-variance-authority": "^0.7.1",
100
154
  "cmdk": "^1.0.0"
101
155
  },
102
156
  "devDependencies": {
103
157
  "@chromatic-com/storybook": "^3.2.5",
104
158
  "@eslint/js": "^9.21.0",
159
+ "@hookform/resolvers": "^4.1.3",
160
+ "@radix-ui/react-icons": "^1.3.2",
105
161
  "@rollup/plugin-alias": "^5.1.1",
106
162
  "@rollup/plugin-commonjs": "^28.0.3",
107
163
  "@rollup/plugin-node-resolve": "^16.0.0",
@@ -120,6 +176,8 @@
120
176
  "@storybook/theming": "^8.6.4",
121
177
  "@tailwindcss/postcss": "^4.0.12",
122
178
  "@tailwindcss/vite": "^4.0.12",
179
+ "@tanstack/react-query": "^5.67.3",
180
+ "@tanstack/react-table": "^8.21.2",
123
181
  "@types/node": "^22.13.10",
124
182
  "@types/react": "^19.0.10",
125
183
  "@types/react-dom": "^19.0.4",
@@ -133,9 +191,13 @@
133
191
  "eslint-plugin-react-refresh": "^0.4.19",
134
192
  "eslint-plugin-storybook": "^0.11.4",
135
193
  "globals": "^15.15.0",
194
+ "husky": "^9.1.7",
195
+ "lint-staged": "^15.5.0",
136
196
  "lucide-react": "^0.479.0",
137
197
  "playwright": "^1.51.0",
198
+ "prettier": "^3.5.3",
138
199
  "prettier-plugin-tailwindcss": "^0.6.11",
200
+ "react-hook-form": "^7.54.2",
139
201
  "rollup-plugin-dts": "^6.1.1",
140
202
  "rollup-plugin-peer-deps-external": "^2.2.4",
141
203
  "rollup-plugin-postcss": "^4.0.2",
@@ -147,7 +209,8 @@
147
209
  "typescript-eslint": "^8.24.1",
148
210
  "vite": "^6.2.0",
149
211
  "vite-plugin-dts": "^4.5.3",
150
- "vitest": "^3.0.8"
212
+ "vitest": "^3.0.8",
213
+ "zod": "^3.24.2"
151
214
  },
152
215
  "eslintConfig": {
153
216
  "extends": [
@@ -1,2 +0,0 @@
1
- import{c}from"./createLucideIcon-CaVwnuel.mjs";const e=c("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);export{e as C};
2
- //# sourceMappingURL=check-C0vjuPKS.mjs.map
@@ -1,2 +0,0 @@
1
- import*as e from"react";import{b as t,c as o,d as a,P as n,a as r,e as s}from"./index-KqnDJftu.mjs";import{u as i,P as l,h as c,R as d,a as u,F as f,D as p}from"./index-CcK8TqAW.mjs";import{P as m}from"./index-BYh8JZrY.mjs";import{Slot as g}from"@radix-ui/react-slot";import{jsx as h,jsxs as v,Fragment as D}from"react/jsx-runtime";import{c as b}from"./utils-BxzjgHWL.mjs";import{c as y}from"./createLucideIcon-CaVwnuel.mjs";const _=y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var N="Dialog",[R,E]=o(N),[x,w]=R(N),C=o=>{const{__scopeDialog:a,children:n,open:r,defaultOpen:s,onOpenChange:l,modal:c=!0}=o,d=e.useRef(null),u=e.useRef(null),[f=!1,p]=t({prop:r,defaultProp:s,onChange:l});return h(x,{scope:a,triggerRef:d,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),open:f,onOpenChange:p,onOpenToggle:e.useCallback((()=>p((e=>!e))),[p]),modal:c,children:n})};C.displayName=N;var I="DialogTrigger",O=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...n}=e,s=w(I,o),i=r(t,s.triggerRef);return h(m.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":X(s.open),...n,ref:i,onClick:a(e.onClick,s.onOpenToggle)})}));O.displayName=I;var F="DialogPortal",[P,k]=R(F,{forceMount:void 0}),M=t=>{const{__scopeDialog:o,forceMount:a,children:r,container:s}=t,i=w(F,o);return h(P,{scope:o,forceMount:a,children:e.Children.map(r,(e=>h(n,{present:a||i.open,children:h(l,{asChild:!0,container:s,children:e})})))})};M.displayName=F;var A="DialogOverlay",j=e.forwardRef(((e,t)=>{const o=k(A,e.__scopeDialog),{forceMount:a=o.forceMount,...r}=e,s=w(A,e.__scopeDialog);return s.modal?h(n,{present:a||s.open,children:h(z,{...r,ref:t})}):null}));j.displayName=A;var z=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...a}=e,n=w(A,o);return h(d,{as:g,allowPinchZoom:!0,shards:[n.contentRef],children:h(m.div,{"data-state":X(n.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})})),T="DialogContent",$=e.forwardRef(((e,t)=>{const o=k(T,e.__scopeDialog),{forceMount:a=o.forceMount,...r}=e,s=w(T,e.__scopeDialog);return h(n,{present:a||s.open,children:s.modal?h(W,{...r,ref:t}):h(B,{...r,ref:t})})}));$.displayName=T;var W=e.forwardRef(((t,o)=>{const n=w(T,t.__scopeDialog),s=e.useRef(null),i=r(o,n.contentRef,s);return e.useEffect((()=>{const e=s.current;if(e)return c(e)}),[]),h(S,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(t.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:a(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()})),onFocusOutside:a(t.onFocusOutside,(e=>e.preventDefault()))})})),B=e.forwardRef(((t,o)=>{const a=w(T,t.__scopeDialog),n=e.useRef(!1),r=e.useRef(!1);return h(S,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||a.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(r.current=!0));const o=e.target,s=a.triggerRef.current?.contains(o);s&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&r.current&&e.preventDefault()}})})),S=e.forwardRef(((t,o)=>{const{__scopeDialog:a,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...l}=t,c=w(T,a),d=e.useRef(null),m=r(o,d);return u(),v(D,{children:[h(f,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h(p,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":X(c.open),...l,ref:m,onDismiss:()=>c.onOpenChange(!1)})}),v(D,{children:[h(Q,{titleId:c.titleId}),h(Y,{contentRef:d,descriptionId:c.descriptionId})]})]})})),q="DialogTitle",H=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...a}=e,n=w(q,o);return h(m.h2,{id:n.titleId,...a,ref:t})}));H.displayName=q;var K="DialogDescription",L=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...a}=e,n=w(K,o);return h(m.p,{id:n.descriptionId,...a,ref:t})}));L.displayName=K;var U="DialogClose",V=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...n}=e,r=w(U,o);return h(m.button,{type:"button",...n,ref:t,onClick:a(e.onClick,(()=>r.onOpenChange(!1)))})}));function X(e){return e?"open":"closed"}V.displayName=U;var Z="DialogTitleWarning",[G,J]=s(Z,{contentName:T,titleName:q,docsSlug:"dialog"}),Q=({titleId:t})=>{const o=J(Z),a=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return e.useEffect((()=>{if(t){document.getElementById(t)||console.error(a)}}),[a,t]),null},Y=({contentRef:t,descriptionId:o})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=t.current?.getAttribute("aria-describedby");if(o&&e){document.getElementById(o)||console.warn(a)}}),[a,t,o]),null},ee=C,te=O,oe=M,ae=j,ne=$,re=H,se=L,ie=V;function le({...t}){return e.createElement(ee,{"data-slot":"dialog",...t})}function ce({...t}){return e.createElement(te,{"data-slot":"dialog-trigger",...t})}function de({...t}){return e.createElement(oe,{"data-slot":"dialog-portal",...t})}function ue({...t}){return e.createElement(ie,{"data-slot":"dialog-close",...t})}function fe({className:t,...o}){return e.createElement(ae,{"data-slot":"dialog-overlay",className:b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...o})}function pe({className:t,children:o,...a}){return e.createElement(de,{"data-slot":"dialog-portal"},e.createElement(fe,null),e.createElement(ne,{"data-slot":"dialog-content",className:b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a},o,e.createElement(ie,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},e.createElement(_,null),e.createElement("span",{className:"sr-only"},"Close"))))}function me({className:t,...o}){return e.createElement("div",{"data-slot":"dialog-header",className:b("flex flex-col gap-2 text-center sm:text-left",t),...o})}function ge({className:t,...o}){return e.createElement("div",{"data-slot":"dialog-footer",className:b("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o})}function he({className:t,...o}){return e.createElement(re,{"data-slot":"dialog-title",className:b("text-lg leading-none font-semibold",t),...o})}function ve({className:t,...o}){return e.createElement(se,{"data-slot":"dialog-description",className:b("text-muted-foreground text-sm",t),...o})}export{ne as C,le as D,ae as O,oe as P,ee as R,ue as a,pe as b,ve as c,ge as d,me as e,fe as f,de as g,he as h,ce as i};
2
- //# sourceMappingURL=dialog-D3SFDLse.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog-D3SFDLse.mjs","sources":["../../node_modules/lucide-react/dist/esm/icons/x.js","../../node_modules/@radix-ui/react-dialog/dist/index.mjs","../../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n];\nconst X = createLucideIcon(\"X\", __iconNode);\n\nexport { __iconNode, X as default };\n//# sourceMappingURL=x.js.map\n","\"use client\";\n\n// packages/react/dialog/src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content>) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\">\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["X","createLucideIcon","d","key","DIALOG_NAME","createDialogContext","createDialogScope","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","open","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","useRef","contentRef","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","titleId","descriptionId","onOpenToggle","useCallback","prevOpen","displayName","TRIGGER_NAME","DialogTrigger","forwardRef","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","button","type","getState","ref","onClick","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","DialogPortal","container","Children","map","child","Presence","present","PortalPrimitive","asChild","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","RemoveScroll","as","Slot","allowPinchZoom","shards","div","style","pointerEvents","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","useEffect","content","current","hideOthers","DialogContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","defaultPrevented","onInteractOutside","target","targetIsTrigger","contains","onOpenAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","role","id","onDismiss","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","h2","DESCRIPTION_NAME","DialogDescription","descriptionProps","p","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","contentName","titleName","docsSlug","titleWarningContext","MESSAGE","document","getElementById","console","error","describedById","getAttribute","warn","Root","Trigger","Portal","Overlay","Content","Title","Description","Close","createElement","DialogPrimitive","data-slot","className","cn","XIcon","span","DialogHeader","DialogFooter"],"mappings":"yaAGO,MAgBDA,EAAIC,EAAiB,IAhBS,CAClC,CAAC,OAAQ,CAAEC,EAAG,aAAcC,IAAK,WACjC,CAAC,OAAQ,CAAED,EAAG,aAAcC,IAAK,aCiBnC,IAAMC,EAAc,UAGbC,EAAqBC,GAAqBC,EAAmBH,IAc7DI,EAAgBC,GAAoBJ,EAAwCD,GAU7EM,EAAiCC,IACrC,MAAMC,cACJA,EAAAC,SACAA,EACAC,KAAMC,EAAAC,YACNA,EAAAC,aAC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GAAqB,CACpBC,YAAU,eACVC,UAAWC,EAAG,qCAAsCD,MAChDvJ,GAGV,CAEA,SAASsH,IAAkBiC,UACzBA,KACGvJ,IAEH,OACES,EAAA2I,cAACC,GAA2B,CAC1BC,YAAU,qBACVC,UAAWC,EAAG,gCAAiCD,MAC3CvJ,GAGV","x_google_ignoreList":[0,1]}
@@ -1,2 +0,0 @@
1
- import*as e from"react";import{useState as t}from"react";import{u as n,f as r,a as o,d as a}from"./index-KqnDJftu.mjs";import{P as c,d as i}from"./index-BYh8JZrY.mjs";import{jsx as u}from"react/jsx-runtime";import s from"react-dom";var l=e["useId".toString()]||(()=>{}),d=0;function f(t){const[r,o]=e.useState(l());return n((()=>{o((e=>e??String(d++)))}),[t]),t||(r?`radix-${r}`:"")}var v,p="dismissableLayer.update",m="dismissableLayer.pointerDownOutside",h="dismissableLayer.focusOutside",y=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,onDismiss:g,...w}=t,S=e.useContext(y),[C,L]=e.useState(null),P=C?.ownerDocument??globalThis?.document,[,k]=e.useState({}),T=o(n,(e=>L(e))),x=Array.from(S.layers),[R]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),A=x.indexOf(R),O=C?x.indexOf(C):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,M=O>=A,D=function(t,n=globalThis?.document){const o=r(t),a=e.useRef(!1),c=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){let t=function(){b(m,o,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",c.current),c.current=t,n.addEventListener("click",c.current,{once:!0})):t()}else n.removeEventListener("click",c.current);a.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",c.current)}}),[n,o]),{onPointerDownCapture:()=>a.current=!0}}((e=>{const t=e.target,n=[...S.branches].some((e=>e.contains(t)));M&&!n&&(l?.(e),f?.(e),e.defaultPrevented||g?.())}),P),W=function(t,n=globalThis?.document){const o=r(t),a=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!a.current){b(h,o,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,o]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}((e=>{const t=e.target;[...S.branches].some((e=>e.contains(t)))||(d?.(e),f?.(e),e.defaultPrevented||g?.())}),P);return function(t,n=globalThis?.document){const o=r(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[o,n])}((e=>{O===S.layers.size-1&&(s?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))}),P),e.useEffect((()=>{if(C)return i&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(v=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),E(),()=>{i&&1===S.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=v)}}),[C,P,i,S]),e.useEffect((()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),E())}),[C,S]),e.useEffect((()=>{const e=()=>k({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)}),[]),u(c.div,{...w,ref:T,style:{pointerEvents:N?M?"auto":"none":void 0,...t.style},onFocusCapture:a(t.onFocusCapture,W.onFocusCapture),onBlurCapture:a(t.onBlurCapture,W.onBlurCapture),onPointerDownCapture:a(t.onPointerDownCapture,D.onPointerDownCapture)})}));g.displayName="DismissableLayer";function E(){const e=new CustomEvent(p);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?i(o,a):o.dispatchEvent(a)}e.forwardRef(((t,n)=>{const r=e.useContext(y),a=e.useRef(null),i=o(n,a);return e.useEffect((()=>{const e=a.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),u(c.div,{...t,ref:i})})).displayName="DismissableLayerBranch";var w="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},L=e.forwardRef(((t,n)=>{const{loop:a=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...d}=t,[f,v]=e.useState(null),p=r(s),m=r(l),h=e.useRef(null),y=o(n,(e=>v(e))),g=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(i){let e=function(e){if(g.paused||!f)return;const t=e.target;f.contains(t)?h.current=t:x(h.current,{select:!0})},t=function(e){if(g.paused||!f)return;const t=e.relatedTarget;null!==t&&(f.contains(t)||x(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&x(f)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return f&&r.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[i,f,g.paused]),e.useEffect((()=>{if(f){R.add(g);const t=document.activeElement;if(!f.contains(t)){const n=new CustomEvent(w,C);f.addEventListener(w,p),f.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(x(r,{select:t}),document.activeElement!==n)return}((e=P(f),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&x(f))}return()=>{f.removeEventListener(w,p),setTimeout((()=>{const e=new CustomEvent(S,C);f.addEventListener(S,m),f.dispatchEvent(e),e.defaultPrevented||x(t??document.body,{select:!0}),f.removeEventListener(S,m),R.remove(g)}),0)}}var e}),[f,p,m,g]);const E=e.useCallback((e=>{if(!a&&!i)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,o]=function(e){const t=P(e),n=k(t,e),r=k(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),a&&x(o,{select:!0})):(e.preventDefault(),a&&x(r,{select:!0})):n===t&&e.preventDefault()}}),[a,i,g.paused]);return u(c.div,{tabIndex:-1,...d,ref:y,onKeyDown:E})}));function P(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function k(e,t){for(const n of e)if(!T(n,{upTo:t}))return n}function T(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function x(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}L.displayName="FocusScope";var R=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=A(e,t),e.unshift(t)},remove(t){e=A(e,t),e[0]?.resume()}}}();function A(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var O=e.forwardRef(((t,r)=>{const{container:o,...a}=t,[i,l]=e.useState(!1);n((()=>l(!0)),[]);const d=o||i&&globalThis?.document?.body;return d?s.createPortal(u(c.div,{...a,ref:r}),d):null}));O.displayName="Portal";var N=0;function M(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??D()),document.body.insertAdjacentElement("beforeend",e[1]??D()),N++,()=>{1===N&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),N--}}),[])}function D(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};function F(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var I="right-scroll-bar-position",B="width-before-scroll-bar";function _(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var j="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,K=new WeakMap;function X(e,n){var r,o,a,c=(r=null,o=function(t){return e.forEach((function(e){return _(e,t)}))},(a=t((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade);return j((function(){var t=K.get(c);if(t){var n=new Set(t),r=new Set(e),o=c.current;n.forEach((function(e){r.has(e)||_(e,null)})),r.forEach((function(e){n.has(e)||_(e,o)}))}K.set(c,e)}),[e]),c}function Y(e){return e}var z=function(t){var n=t.sideCar,r=F(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,W({},r))};z.isSideCarExport=!0;var H=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Y);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=W({async:!0,ssr:!1},e),t}(),Z=function(){},q=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Z,onWheelCapture:Z,onTouchMoveCapture:Z}),a=o[0],c=o[1],i=t.forwardProps,u=t.children,s=t.className,l=t.removeScrollBar,d=t.enabled,f=t.shards,v=t.sideCar,p=t.noIsolation,m=t.inert,h=t.allowPinchZoom,y=t.as,g=void 0===y?"div":y,E=t.gapMode,b=F(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=v,S=X([r,n]),C=W(W({},b),a);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:H,removeScrollBar:l,shards:f,noIsolation:p,inert:m,setCallbacks:c,allowPinchZoom:!!h,lockRef:r,gapMode:E}),i?e.cloneElement(e.Children.only(u),W(W({},C),{ref:S})):e.createElement(g,W({},C,{className:s,ref:S}),u))}));q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:B,zeroRight:I};function U(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var $=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=U())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},G=function(){var t,n=(t=$(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},J={left:0,top:0,right:0,gap:0},Q=function(e){return parseInt(e||"",10)||0},V=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return J;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Q(n),Q(r),Q(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ee=G(),te="data-scroll-locked",ne=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(te,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(I," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(B," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(I," .").concat(I," {\n right: 0 ").concat(r,";\n }\n \n .").concat(B," .").concat(B," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(te,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},re=function(){var e=parseInt(document.body.getAttribute(te)||"0",10);return isFinite(e)?e:0},oe=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(te,(re()+1).toString()),function(){var e=re()-1;e<=0?document.body.removeAttribute(te):document.body.setAttribute(te,e.toString())}}),[]);var c=e.useMemo((function(){return V(a)}),[a]);return e.createElement(ee,{styles:ne(c,!n,a,r?"":"!important")})},ae=!1;if("undefined"!=typeof window)try{var ce=Object.defineProperty({},"passive",{get:function(){return ae=!0,!0}});window.addEventListener("test",ce,ce),window.removeEventListener("test",ce,ce)}catch(e){ae=!1}var ie=!!ae&&{passive:!1},ue=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},se=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),le(e,r)){var o=de(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},le=function(e,t){return"v"===e?function(e){return ue(e,"overflowY")}(t):function(e){return ue(e,"overflowX")}(t)},de=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},fe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ve=function(e){return[e.deltaX,e.deltaY]},pe=function(e){return e&&"current"in e?e.current:e},me=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},he=0,ye=[];function ge(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ee,be=(Ee=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(he++)[0],c=e.useState(G)[0],i=e.useRef(t);e.useEffect((function(){i.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(pe),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var u=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var n,a=fe(e),c=r.current,u="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=se(d,l);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=se(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(u||s)&&(o.current=n),!n)return!0;var v=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,i=t.contains(c),u=!1,s=a>0,l=0,d=0;do{var f=de(e,c),v=f[0],p=f[1]-f[2]-o*v;(v||p)&&le(e,c)&&(l+=p,d+=v),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!i&&c!==document.body||i&&(t.contains(c)||t===c));return(s&&Math.abs(l)<1||!s&&Math.abs(d)<1)&&(u=!0),u}(v,t,e,"h"===v?u:s)}),[]),s=e.useCallback((function(e){var t=e;if(ye.length&&ye[ye.length-1]===c){var r="deltaY"in t?ve(t):fe(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(i.current.shards||[]).map(pe).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?u(t,a[0]):!i.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),l=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:ge(r)};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=fe(e),o.current=void 0}),[]),f=e.useCallback((function(e){l(e.type,ve(e),e.target,u(e,t.lockRef.current))}),[]),v=e.useCallback((function(e){l(e.type,fe(e),e.target,u(e,t.lockRef.current))}),[]);e.useEffect((function(){return ye.push(c),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",s,ie),document.addEventListener("touchmove",s,ie),document.addEventListener("touchstart",d,ie),function(){ye=ye.filter((function(e){return e!==c})),document.removeEventListener("wheel",s,ie),document.removeEventListener("touchmove",s,ie),document.removeEventListener("touchstart",d,ie)}}),[]);var p=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(c,{styles:me(a)}):null,p?e.createElement(oe,{gapMode:t.gapMode}):null)},H.useMedium(Ee),z),we=e.forwardRef((function(t,n){return e.createElement(q,W({},t,{ref:n,sideCar:be}))}));we.classNames=q.classNames;var Se=new WeakMap,Ce=new WeakMap,Le={},Pe=0,ke=function(e){return e&&(e.host||ke(e.parentNode))},Te=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=ke(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Le[n]||(Le[n]=new WeakMap);var a=Le[n],c=[],i=new Set,u=new Set(o),s=function(e){e&&!i.has(e)&&(i.add(e),s(e.parentNode))};o.forEach(s);var l=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(i.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(Se.get(e)||0)+1,s=(a.get(e)||0)+1;Se.set(e,u),a.set(e,s),c.push(e),1===u&&o&&Ce.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return l(t),i.clear(),Pe++,function(){c.forEach((function(e){var t=Se.get(e)-1,o=a.get(e)-1;Se.set(e,t),a.set(e,o),t||(Ce.has(e)||e.removeAttribute(r),Ce.delete(e)),o||e.removeAttribute(n)})),--Pe||(Se=new WeakMap,Se=new WeakMap,Ce=new WeakMap,Le={})}},xe=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Te(r,o,n,"aria-hidden")):function(){return null}};export{g as D,L as F,O as P,we as R,M as a,xe as h,f as u};
2
- //# sourceMappingURL=index-CcK8TqAW.mjs.map