ivt 0.0.4 → 0.0.5

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 (166) 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.d.ts +14 -0
  11. package/dist/button/index.mjs +2 -0
  12. package/dist/button/index.mjs.map +1 -0
  13. package/dist/calendar/index.d.ts +11 -0
  14. package/dist/calendar/index.mjs +2 -0
  15. package/dist/calendar/index.mjs.map +1 -0
  16. package/dist/card/index.d.ts +12 -0
  17. package/dist/card/index.mjs +2 -0
  18. package/dist/card/index.mjs.map +1 -0
  19. package/dist/checkbox/index.d.ts +7 -0
  20. package/dist/checkbox/index.mjs +2 -0
  21. package/dist/checkbox/index.mjs.map +1 -0
  22. package/dist/chunks/TextWrap-apUajb0q.mjs +2 -0
  23. package/dist/chunks/TextWrap-apUajb0q.mjs.map +1 -0
  24. package/dist/chunks/accordion-CQGSj-IW.mjs +2 -0
  25. package/dist/chunks/accordion-CQGSj-IW.mjs.map +1 -0
  26. package/dist/chunks/bundle-mjs-CtG6Smj_.mjs +2 -0
  27. package/dist/chunks/bundle-mjs-CtG6Smj_.mjs.map +1 -0
  28. package/dist/chunks/button-D_c_ntEX.mjs +2 -0
  29. package/dist/chunks/button-D_c_ntEX.mjs.map +1 -0
  30. package/dist/chunks/check-DjRtCxG6.mjs +2 -0
  31. package/dist/chunks/check-DjRtCxG6.mjs.map +1 -0
  32. package/dist/chunks/chevron-down-BCzo9yB2.mjs +2 -0
  33. package/dist/chunks/chevron-down-BCzo9yB2.mjs.map +1 -0
  34. package/dist/chunks/chevron-left-DUJqO1vN.mjs +2 -0
  35. package/dist/chunks/chevron-left-DUJqO1vN.mjs.map +1 -0
  36. package/dist/chunks/chevron-right-CoNJE7ZW.mjs +2 -0
  37. package/dist/chunks/chevron-right-CoNJE7ZW.mjs.map +1 -0
  38. package/dist/chunks/command-eoEJKrZQ.mjs +2 -0
  39. package/dist/chunks/command-eoEJKrZQ.mjs.map +1 -0
  40. package/dist/chunks/createLucideIcon-CIn9dHnW.mjs +14 -0
  41. package/dist/chunks/createLucideIcon-CIn9dHnW.mjs.map +1 -0
  42. package/dist/chunks/dialog-TKsk0Iu2.mjs +2 -0
  43. package/dist/chunks/dialog-TKsk0Iu2.mjs.map +1 -0
  44. package/dist/chunks/index-B98y16WE.mjs +2 -0
  45. package/dist/chunks/index-B98y16WE.mjs.map +1 -0
  46. package/dist/chunks/index-BpJwNLRW.mjs +2 -0
  47. package/dist/chunks/index-BpJwNLRW.mjs.map +1 -0
  48. package/dist/chunks/index-C598HM8V.mjs +2 -0
  49. package/dist/chunks/index-C598HM8V.mjs.map +1 -0
  50. package/dist/chunks/index-CCYyT_rk.mjs +2 -0
  51. package/dist/chunks/index-CCYyT_rk.mjs.map +1 -0
  52. package/dist/chunks/index-CX5r7IKM.mjs +2 -0
  53. package/dist/chunks/index-CX5r7IKM.mjs.map +1 -0
  54. package/dist/chunks/index-CXrD_SvM.mjs +2 -0
  55. package/dist/chunks/index-CXrD_SvM.mjs.map +1 -0
  56. package/dist/chunks/index-ChLuxn93.mjs +2 -0
  57. package/dist/chunks/index-ChLuxn93.mjs.map +1 -0
  58. package/dist/chunks/index-CluuXDB_.mjs +2 -0
  59. package/dist/chunks/index-CluuXDB_.mjs.map +1 -0
  60. package/dist/chunks/index-D-s-TbR3.mjs +2 -0
  61. package/dist/chunks/index-D-s-TbR3.mjs.map +1 -0
  62. package/dist/chunks/index-DOx7g1Qo.mjs +2 -0
  63. package/dist/chunks/index-DOx7g1Qo.mjs.map +1 -0
  64. package/dist/chunks/index-Db2NO0t8.mjs +2 -0
  65. package/dist/chunks/index-Db2NO0t8.mjs.map +1 -0
  66. package/dist/chunks/index-DxtdpBCb.mjs +2 -0
  67. package/dist/chunks/index-DxtdpBCb.mjs.map +1 -0
  68. package/dist/chunks/index-DzMQps4Q.mjs +2 -0
  69. package/dist/chunks/index-DzMQps4Q.mjs.map +1 -0
  70. package/dist/chunks/input-BxTp3Q5l.mjs +2 -0
  71. package/dist/chunks/input-BxTp3Q5l.mjs.map +1 -0
  72. package/dist/chunks/label-BhQUf4a7.mjs +2 -0
  73. package/dist/chunks/label-BhQUf4a7.mjs.map +1 -0
  74. package/dist/chunks/pagination-qTGmkoRO.mjs +2 -0
  75. package/dist/chunks/pagination-qTGmkoRO.mjs.map +1 -0
  76. package/dist/chunks/popover-DDPhp0Sa.mjs +2 -0
  77. package/dist/chunks/popover-DDPhp0Sa.mjs.map +1 -0
  78. package/dist/chunks/progress-C_yWLgAi.mjs +2 -0
  79. package/dist/chunks/progress-C_yWLgAi.mjs.map +1 -0
  80. package/dist/chunks/scroll-area-CuX49k8h.mjs +2 -0
  81. package/dist/chunks/scroll-area-CuX49k8h.mjs.map +1 -0
  82. package/dist/chunks/select-BydKi4E_.mjs +2 -0
  83. package/dist/chunks/select-BydKi4E_.mjs.map +1 -0
  84. package/dist/chunks/skeleton-BFnps3wE.mjs +2 -0
  85. package/dist/chunks/skeleton-BFnps3wE.mjs.map +1 -0
  86. package/dist/chunks/sortable-7DK1K35h.mjs +2 -0
  87. package/dist/chunks/sortable-7DK1K35h.mjs.map +1 -0
  88. package/dist/chunks/table-DRvqJktC.mjs +2 -0
  89. package/dist/chunks/table-DRvqJktC.mjs.map +1 -0
  90. package/dist/chunks/tslib.es6-Cx3xzITX.mjs +2 -0
  91. package/dist/chunks/tslib.es6-Cx3xzITX.mjs.map +1 -0
  92. package/dist/chunks/utils-jIFl11as.mjs +2 -0
  93. package/dist/chunks/utils-jIFl11as.mjs.map +1 -0
  94. package/dist/chunks/x-xnz0lTd-.mjs +2 -0
  95. package/dist/chunks/x-xnz0lTd-.mjs.map +1 -0
  96. package/dist/command/index.d.ts +20 -0
  97. package/dist/command/index.mjs +2 -0
  98. package/dist/command/index.mjs.map +1 -0
  99. package/dist/data-table/index.d.ts +124 -0
  100. package/dist/data-table/index.mjs +2 -0
  101. package/dist/data-table/index.mjs.map +1 -0
  102. package/dist/dialog/index.d.ts +16 -0
  103. package/dist/dialog/index.mjs +2 -0
  104. package/dist/dialog/index.mjs.map +1 -0
  105. package/dist/dropdown-menu/index.d.ts +28 -0
  106. package/dist/dropdown-menu/index.mjs +2 -0
  107. package/dist/dropdown-menu/index.mjs.map +1 -0
  108. package/dist/dropzone/index.d.ts +84 -0
  109. package/dist/dropzone/index.mjs +7 -0
  110. package/dist/dropzone/index.mjs.map +1 -0
  111. package/dist/form/index.d.ts +28 -0
  112. package/dist/form/index.mjs +2 -0
  113. package/dist/form/index.mjs.map +1 -0
  114. package/dist/icon/index.d.ts +16 -0
  115. package/dist/icon/index.mjs +2 -0
  116. package/dist/icon/index.mjs.map +1 -0
  117. package/dist/index/index.d.ts +2 -0
  118. package/dist/index/index.mjs +2 -0
  119. package/dist/index/index.mjs.map +1 -0
  120. package/dist/index.css +7 -0
  121. package/dist/input/index.d.ts +6 -0
  122. package/dist/input/index.mjs +2 -0
  123. package/dist/input/index.mjs.map +1 -0
  124. package/dist/label/index.d.ts +7 -0
  125. package/dist/label/index.mjs +2 -0
  126. package/dist/label/index.mjs.map +1 -0
  127. package/dist/pagination/index.d.ts +18 -0
  128. package/dist/pagination/index.mjs +2 -0
  129. package/dist/pagination/index.mjs.map +1 -0
  130. package/dist/popover/index.d.ts +10 -0
  131. package/dist/popover/index.mjs +2 -0
  132. package/dist/popover/index.mjs.map +1 -0
  133. package/dist/progress/index.d.ts +7 -0
  134. package/dist/progress/index.mjs +2 -0
  135. package/dist/progress/index.mjs.map +1 -0
  136. package/dist/scroll-area/index.d.ts +8 -0
  137. package/dist/scroll-area/index.mjs +2 -0
  138. package/dist/scroll-area/index.mjs.map +1 -0
  139. package/dist/select/index.d.ts +16 -0
  140. package/dist/select/index.mjs +2 -0
  141. package/dist/select/index.mjs.map +1 -0
  142. package/dist/separator/index.d.ts +7 -0
  143. package/dist/separator/index.mjs +2 -0
  144. package/dist/separator/index.mjs.map +1 -0
  145. package/dist/sheet/index.d.ts +16 -0
  146. package/dist/sheet/index.mjs +2 -0
  147. package/dist/sheet/index.mjs.map +1 -0
  148. package/dist/skeleton/index.d.ts +6 -0
  149. package/dist/skeleton/index.mjs +2 -0
  150. package/dist/skeleton/index.mjs.map +1 -0
  151. package/dist/sortable/index.d.ts +109 -0
  152. package/dist/sortable/index.mjs +2 -0
  153. package/dist/sortable/index.mjs.map +1 -0
  154. package/dist/table/index.d.ts +13 -0
  155. package/dist/table/index.mjs +2 -0
  156. package/dist/table/index.mjs.map +1 -0
  157. package/dist/tabs/index.d.ts +10 -0
  158. package/dist/tabs/index.mjs +2 -0
  159. package/dist/tabs/index.mjs.map +1 -0
  160. package/dist/toast/index.d.ts +20 -0
  161. package/dist/toast/index.mjs +2 -0
  162. package/dist/toast/index.mjs.map +1 -0
  163. package/dist/tooltip/index.d.ts +10 -0
  164. package/dist/tooltip/index.mjs +2 -0
  165. package/dist/tooltip/index.mjs.map +1 -0
  166. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
5
+
6
+ export { Input };
@@ -0,0 +1,2 @@
1
+ export{I as Input}from"../chunks/input-BxTp3Q5l.mjs";import"react";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as LabelPrimitive from '@radix-ui/react-label';
4
+
5
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+
7
+ export { Label };
@@ -0,0 +1,2 @@
1
+ export{L as Label}from"../chunks/label-BhQUf4a7.mjs";import"react";import"../chunks/index-DxtdpBCb.mjs";import"react-dom";import"@radix-ui/react-slot";import"react/jsx-runtime";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Button } from '../button/index.js';
4
+ import 'class-variance-authority/types';
5
+ import 'class-variance-authority';
6
+
7
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
8
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
9
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
10
+ type PaginationLinkProps = {
11
+ isActive?: boolean;
12
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
13
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
14
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
15
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
16
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
17
+
18
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -0,0 +1,2 @@
1
+ export{P as Pagination,a as PaginationContent,f as PaginationEllipsis,c as PaginationItem,b as PaginationLink,e as PaginationNext,d as PaginationPrevious}from"../chunks/pagination-qTGmkoRO.mjs";import"react";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";import"../chunks/chevron-left-DUJqO1vN.mjs";import"../chunks/createLucideIcon-CIn9dHnW.mjs";import"../chunks/chevron-right-CoNJE7ZW.mjs";import"../chunks/button-D_c_ntEX.mjs";import"@radix-ui/react-slot";import"class-variance-authority";
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 PopoverPrimitive from '@radix-ui/react-popover';
4
+
5
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
7
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
8
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -0,0 +1,2 @@
1
+ export{P as Popover,c as PopoverAnchor,b as PopoverContent,a as PopoverTrigger}from"../chunks/popover-DDPhp0Sa.mjs";import"react";import"../chunks/index-CX5r7IKM.mjs";import"../chunks/index-CCYyT_rk.mjs";import"react/jsx-runtime";import"../chunks/index-CXrD_SvM.mjs";import"../chunks/index-DxtdpBCb.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-ChLuxn93.mjs";import"../chunks/tslib.es6-Cx3xzITX.mjs";import"../chunks/index-Db2NO0t8.mjs";import"../chunks/index-DOx7g1Qo.mjs";import"../chunks/index-DzMQps4Q.mjs";import"../chunks/index-D-s-TbR3.mjs";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
4
+
5
+ declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+
7
+ export { Progress };
@@ -0,0 +1,2 @@
1
+ export{P as Progress}from"../chunks/progress-C_yWLgAi.mjs";import"react";import"../chunks/index-CCYyT_rk.mjs";import"react/jsx-runtime";import"../chunks/index-DxtdpBCb.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
4
+
5
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
7
+
8
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,2 @@
1
+ export{S as ScrollArea,a as ScrollBar}from"../chunks/scroll-area-CuX49k8h.mjs";import"react";import"../chunks/index-DxtdpBCb.mjs";import"react-dom";import"@radix-ui/react-slot";import"react/jsx-runtime";import"../chunks/index-CX5r7IKM.mjs";import"../chunks/index-CCYyT_rk.mjs";import"../chunks/index-BpJwNLRW.mjs";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as SelectPrimitive from '@radix-ui/react-select';
4
+
5
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
7
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
8
+ declare function SelectTrigger({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
9
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
15
+
16
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,2 @@
1
+ export{S as Select,a as SelectContent,b as SelectGroup,c as SelectItem,d as SelectLabel,e as SelectScrollDownButton,f as SelectScrollUpButton,g as SelectSeparator,h as SelectTrigger,i as SelectValue}from"../chunks/select-BydKi4E_.mjs";import"react";import"@radix-ui/react-select";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";import"../chunks/check-DjRtCxG6.mjs";import"../chunks/createLucideIcon-CIn9dHnW.mjs";import"../chunks/chevron-down-BCzo9yB2.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
4
+
5
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+
7
+ export { Separator };
@@ -0,0 +1,2 @@
1
+ import*as r from"react";import{P as t}from"../chunks/index-DxtdpBCb.mjs";import{jsx as o}from"react/jsx-runtime";import{c as a}from"../chunks/utils-jIFl11as.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/bundle-mjs-CtG6Smj_.mjs";var i="horizontal",e=["horizontal","vertical"],n=r.forwardRef(((r,a)=>{const{decorative:n,orientation:l=i,...s}=r,c=function(r){return e.includes(r)}(l)?l:i,m=n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"};return o(t.div,{"data-orientation":c,...m,...s,ref:a})}));n.displayName="Separator";var l=n;function s({className:t,orientation:o="horizontal",decorative:i=!0,...e}){return r.createElement(l,{"data-slot":"separator-root",decorative:i,orientation:o,className:a("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...e})}export{s as Separator};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-separator/dist/index.mjs","../../src/components/ui/separator/separator.tsx"],"sourcesContent":["// packages/react/separator/src/separator.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Separator\";\nvar DEFAULT_ORIENTATION = \"horizontal\";\nvar ORIENTATIONS = [\"horizontal\", \"vertical\"];\nvar Separator = React.forwardRef((props, forwardedRef) => {\n const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n const ariaOrientation = orientation === \"vertical\" ? orientation : void 0;\n const semanticProps = decorative ? { role: \"none\" } : { \"aria-orientation\": ariaOrientation, role: \"separator\" };\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-orientation\": orientation,\n ...semanticProps,\n ...domProps,\n ref: forwardedRef\n }\n );\n});\nSeparator.displayName = NAME;\nfunction isValidOrientation(orientation) {\n return ORIENTATIONS.includes(orientation);\n}\nvar Root = Separator;\nexport {\n Root,\n Separator\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator-root\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"names":["DEFAULT_ORIENTATION","ORIENTATIONS","Separator","React","forwardRef","props","forwardedRef","decorative","orientation","orientationProp","domProps","includes","isValidOrientation","semanticProps","role","jsx","Primitive","div","ref","displayName","Root","className","createElement","SeparatorPrimitive","data-slot","cn"],"mappings":"2PAOA,IACMA,EAAsB,aACtBC,EAAe,CAAC,aAAc,YAiB9BC,EAAkBC,EAAAC,YAA6C,CAACC,EAAOC,KAC3E,MAAMC,WAAEA,EAAYC,YAAaC,EAAkBT,KAAwBU,GAAaL,EAClFG,EAqBR,SAA4BA,GAC1B,OAAOP,EAAaU,SAASH,EAC/B,CAvBsBI,CAAmBH,GAAmBA,EAAkBT,EAGtEa,EAAgBN,EAClB,CAAEO,KAAM,QACR,CAAE,mBAHkC,aAAhBN,EAA6BA,OAAc,EAGxBM,KAAM,aAEjD,OACEC,EAACC,EAAUC,IAAV,CACC,mBAAkBT,KACdK,KACAH,EACJQ,IAAKZ,GAAA,IAKXJ,EAAUiB,YAtCG,YA8Cb,IAAMC,EAAOlB,EChDb,SAASA,GAAUmB,UACjBA,EAASb,YACTA,EAAc,aAAYD,WAC1BA,GAAa,KACVF,IAEH,OACEF,EAAAmB,cAACC,EAAuB,CACtBC,YAAU,iBACVjB,WAAYA,EACZC,YAAaA,EACba,UAAWI,EACT,iKACAJ,MAEEhB,GAGV","x_google_ignoreList":[0]}
@@ -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,T as n,D as r,P as i,O as l}from"../chunks/index-CluuXDB_.mjs";import{c as m}from"../chunks/utils-jIFl11as.mjs";import{X as c}from"../chunks/x-xnz0lTd-.mjs";import"../chunks/index-CX5r7IKM.mjs";import"../chunks/index-CCYyT_rk.mjs";import"react/jsx-runtime";import"../chunks/index-Db2NO0t8.mjs";import"../chunks/index-D-s-TbR3.mjs";import"../chunks/index-CXrD_SvM.mjs";import"../chunks/index-DxtdpBCb.mjs";import"react-dom";import"@radix-ui/react-slot";import"../chunks/index-ChLuxn93.mjs";import"../chunks/tslib.es6-Cx3xzITX.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";import"../chunks/createLucideIcon-CIn9dHnW.mjs";function d({...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(i,{"data-slot":"sheet-portal",...t})}function h({className:t,...a}){return e.createElement(l,{"data-slot":"sheet-overlay",className:m("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:n="right",...r}){return e.createElement(p,null,e.createElement(h,null),e.createElement(o,{"data-slot":"sheet-content",className:m("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"===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","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","top"===n&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b","bottom"===n&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",t),...r},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(c,{className:"size-4"}),e.createElement("span",{className:"sr-only"},"Close"))))}function b({className:t,...a}){return e.createElement("div",{"data-slot":"sheet-header",className:m("flex flex-col space-y-2 text-center sm:text-left",t),...a})}function g({className:t,...a}){return e.createElement("div",{"data-slot":"sheet-footer",className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})}function j({className:t,...a}){return e.createElement(n,{"data-slot":"sheet-title",className:m("text-foreground text-lg font-semibold",t),...a})}function k({className:t,...a}){return e.createElement(r,{"data-slot":"sheet-description",className:m("text-muted-foreground text-sm",t),...a})}export{d as Sheet,f as SheetClose,x as SheetContent,k as SheetDescription,g as SheetFooter,b as SheetHeader,j 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":"uqBAMA,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-BFnps3wE.mjs";import"react";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,109 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UniqueIdentifier, DndContextProps, DragOverlay } from '@dnd-kit/core';
3
+ import { SortableContextProps } from '@dnd-kit/sortable';
4
+ import { SlotProps } from '@radix-ui/react-slot';
5
+ import * as React from 'react';
6
+ import { ButtonProps } from '../button/index.js';
7
+ import 'class-variance-authority/types';
8
+ import 'class-variance-authority';
9
+
10
+ interface SortableProps<TData extends {
11
+ id: UniqueIdentifier;
12
+ }> extends DndContextProps {
13
+ /**
14
+ * An array of data items that the sortable component will render.
15
+ * @example
16
+ * value={[
17
+ * { id: 1, name: 'Item 1' },
18
+ * { id: 2, name: 'Item 2' },
19
+ * ]}
20
+ */
21
+ value: TData[];
22
+ /**
23
+ * An optional callback function that is called when the order of the data items changes.
24
+ * It receives the new array of items as its argument.
25
+ * @example
26
+ * onValueChange={(items) => console.log(items)}
27
+ */
28
+ onValueChange?: (items: TData[]) => void;
29
+ /**
30
+ * An optional callback function that is called when an item is moved.
31
+ * It receives an event object with `activeIndex` and `overIndex` properties, representing the original and new positions of the moved item.
32
+ * This will override the default behavior of updating the order of the data items.
33
+ * @type (event: { activeIndex: number; overIndex: number }) => void
34
+ * @example
35
+ * onMove={(event) => console.log(`Item moved from index ${event.activeIndex} to index ${event.overIndex}`)}
36
+ */
37
+ onMove?: (event: {
38
+ activeIndex: number;
39
+ overIndex: number;
40
+ }) => void;
41
+ /**
42
+ * A collision detection strategy that will be used to determine the closest sortable item.
43
+ * @default closestCenter
44
+ * @type DndContextProps["collisionDetection"]
45
+ */
46
+ collisionDetection?: DndContextProps["collisionDetection"];
47
+ /**
48
+ * An array of modifiers that will be used to modify the behavior of the sortable component.
49
+ * @default
50
+ * [restrictToVerticalAxis, restrictToParentElement]
51
+ * @type Modifier[]
52
+ */
53
+ modifiers?: DndContextProps["modifiers"];
54
+ /**
55
+ * A sorting strategy that will be used to determine the new order of the data items.
56
+ * @default verticalListSortingStrategy
57
+ * @type SortableContextProps["strategy"]
58
+ */
59
+ strategy?: SortableContextProps["strategy"];
60
+ /**
61
+ * Specifies the axis for the drag-and-drop operation. It can be "vertical", "horizontal", or "both".
62
+ * @default "vertical"
63
+ * @type "vertical" | "horizontal" | "mixed"
64
+ */
65
+ orientation?: "vertical" | "horizontal" | "mixed";
66
+ /**
67
+ * An optional React node that is rendered on top of the sortable component.
68
+ * It can be used to display additional information or controls.
69
+ * @default null
70
+ * @type React.ReactNode | null
71
+ * @example
72
+ * overlay={<Skeleton className="w-full h-8" />}
73
+ */
74
+ overlay?: React.ReactNode | null;
75
+ }
76
+ declare function Sortable<TData extends {
77
+ id: UniqueIdentifier;
78
+ }>({ value, onValueChange, collisionDetection, modifiers, strategy, onMove, orientation, overlay, children, ...props }: SortableProps<TData>): react_jsx_runtime.JSX.Element;
79
+ interface SortableOverlayProps extends React.ComponentPropsWithRef<typeof DragOverlay> {
80
+ activeId?: UniqueIdentifier | null;
81
+ }
82
+ declare const SortableOverlay: React.ForwardRefExoticComponent<SortableOverlayProps & React.RefAttributes<HTMLDivElement>>;
83
+ interface SortableItemProps extends SlotProps {
84
+ /**
85
+ * The unique identifier of the item.
86
+ * @example "item-1"
87
+ * @type UniqueIdentifier
88
+ */
89
+ value: UniqueIdentifier;
90
+ /**
91
+ * Specifies whether the item should act as a trigger for the drag-and-drop action.
92
+ * @default false
93
+ * @type boolean | undefined
94
+ */
95
+ asTrigger?: boolean;
96
+ /**
97
+ * Merges the item's props into its immediate child.
98
+ * @default false
99
+ * @type boolean | undefined
100
+ */
101
+ asChild?: boolean;
102
+ }
103
+ declare const SortableItem: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
104
+ interface SortableDragHandleProps extends ButtonProps {
105
+ withHandle?: boolean;
106
+ }
107
+ declare const SortableDragHandle: React.ForwardRefExoticComponent<SortableDragHandleProps & React.RefAttributes<HTMLButtonElement>>;
108
+
109
+ export { Sortable, SortableDragHandle, SortableItem, SortableOverlay };
@@ -0,0 +1,2 @@
1
+ export{S as Sortable,a as SortableDragHandle,b as SortableItem,c as SortableOverlay}from"../chunks/sortable-7DK1K35h.mjs";import"react";import"react-dom";import"@radix-ui/react-slot";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.mjs";import"../chunks/button-D_c_ntEX.mjs";import"class-variance-authority";
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-DRvqJktC.mjs";import"react";import"../chunks/utils-jIFl11as.mjs";import"../chunks/bundle-mjs-CtG6Smj_.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 TabsPrimitive from '@radix-ui/react-tabs';
4
+
5
+ declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
6
+ declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
7
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
8
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{c as t,P as a}from"../chunks/index-CX5r7IKM.mjs";import{c as n}from"../chunks/index-CCYyT_rk.mjs";import{c as o,R as r,I as i}from"../chunks/index-C598HM8V.mjs";import{P as s}from"../chunks/index-DxtdpBCb.mjs";import{u as c}from"../chunks/index-BpJwNLRW.mjs";import{u as d}from"../chunks/index-D-s-TbR3.mjs";import{u as l}from"../chunks/index-Db2NO0t8.mjs";import{jsx as u}from"react/jsx-runtime";import{c as m}from"../chunks/utils-jIFl11as.mjs";import"@radix-ui/react-collection";import"react-dom";import"@radix-ui/react-slot";import"../chunks/bundle-mjs-CtG6Smj_.mjs";var f="Tabs",[p,b]=n(f,[o]),v=o(),[h,g]=p(f),x=e.forwardRef(((e,t)=>{const{__scopeTabs:a,value:n,onValueChange:o,defaultValue:r,orientation:i="horizontal",dir:m,activationMode:f="automatic",...p}=e,b=c(m),[v,g]=d({prop:n,onChange:o,defaultProp:r});return u(h,{scope:a,baseId:l(),value:v,onValueChange:g,orientation:i,dir:b,activationMode:f,children:u(s.div,{dir:b,"data-orientation":i,...p,ref:t})})}));x.displayName=f;var y="TabsList",k=e.forwardRef(((e,t)=>{const{__scopeTabs:a,loop:n=!0,...o}=e,i=g(y,a),c=v(a);return u(r,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:n,children:u(s.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})}));k.displayName=y;var j="TabsTrigger",w=e.forwardRef(((e,a)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...c}=e,d=g(j,n),l=v(n),m=C(d.baseId,o),f=T(d.baseId,o),p=o===d.value;return u(i,{asChild:!0,...l,focusable:!r,active:p,children:u(s.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:m,...c,ref:a,onMouseDown:t(e.onMouseDown,(e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(o)})),onKeyDown:t(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(o)})),onFocus:t(e.onFocus,(()=>{const e="manual"!==d.activationMode;p||r||!e||d.onValueChange(o)}))})})}));w.displayName=j;var N="TabsContent",_=e.forwardRef(((t,n)=>{const{__scopeTabs:o,value:r,forceMount:i,children:c,...d}=t,l=g(N,o),m=C(l.baseId,r),f=T(l.baseId,r),p=r===l.value,b=e.useRef(p);return e.useEffect((()=>{const e=requestAnimationFrame((()=>b.current=!1));return()=>cancelAnimationFrame(e)}),[]),u(a,{present:i||p,children:({present:e})=>u(s.div,{"data-state":p?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!e,id:f,tabIndex:0,...d,ref:n,style:{...t.style,animationDuration:b.current?"0s":void 0},children:e&&c})})}));function C(e,t){return`${e}-trigger-${t}`}function T(e,t){return`${e}-content-${t}`}_.displayName=N;var I=x,D=k,E=w,M=_;function R({className:t,...a}){return e.createElement(I,{"data-slot":"tabs",className:m("flex flex-col gap-2",t),...a})}function V({className:t,...a}){return e.createElement(D,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...a})}function F({className:t,...a}){return e.createElement(E,{"data-slot":"tabs-trigger",className:m("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/50 inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a})}function $({className:t,...a}){return e.createElement(M,{"data-slot":"tabs-content",className:m("flex-1 outline-none",t),...a})}export{R as Tabs,$ as TabsContent,V as TabsList,F as TabsTrigger};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-tabs/dist/index.mjs","../../src/components/ui/tabs/tabs.tsx"],"sourcesContent":["\"use client\";\n\n// packages/react/tabs/src/tabs.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar TABS_NAME = \"Tabs\";\nvar [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [\n createRovingFocusGroupScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);\nvar Tabs = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeTabs,\n value: valueProp,\n onValueChange,\n defaultValue,\n orientation = \"horizontal\",\n dir,\n activationMode = \"automatic\",\n ...tabsProps\n } = props;\n const direction = useDirection(dir);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /* @__PURE__ */ jsx(\n TabsProvider,\n {\n scope: __scopeTabs,\n baseId: useId(),\n value,\n onValueChange: setValue,\n orientation,\n dir: direction,\n activationMode,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n \"data-orientation\": orientation,\n ...tabsProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nTabs.displayName = TABS_NAME;\nvar TAB_LIST_NAME = \"TabsList\";\nvar TabsList = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, loop = true, ...listProps } = props;\n const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);\n return /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation: context.orientation,\n dir: context.dir,\n loop,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"tablist\",\n \"aria-orientation\": context.orientation,\n ...listProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nTabsList.displayName = TAB_LIST_NAME;\nvar TRIGGER_NAME = \"TabsTrigger\";\nvar TabsTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, value, disabled = false, ...triggerProps } = props;\n const context = useTabsContext(TRIGGER_NAME, __scopeTabs);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n return /* @__PURE__ */ jsx(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !disabled,\n active: isSelected,\n children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"tab\",\n \"aria-selected\": isSelected,\n \"aria-controls\": contentId,\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n id: triggerId,\n ...triggerProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onValueChange(value);\n } else {\n event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if ([\" \", \"Enter\"].includes(event.key)) context.onValueChange(value);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => {\n const isAutomaticActivation = context.activationMode !== \"manual\";\n if (!isSelected && !disabled && isAutomaticActivation) {\n context.onValueChange(value);\n }\n })\n }\n )\n }\n );\n }\n);\nTabsTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"TabsContent\";\nvar TabsContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeTabs, value, forceMount, children, ...contentProps } = props;\n const context = useTabsContext(CONTENT_NAME, __scopeTabs);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n const isMountAnimationPreventedRef = React.useRef(isSelected);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-orientation\": context.orientation,\n role: \"tabpanel\",\n \"aria-labelledby\": triggerId,\n hidden: !present,\n id: contentId,\n tabIndex: 0,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n animationDuration: isMountAnimationPreventedRef.current ? \"0s\" : void 0\n },\n children: present && children\n }\n ) });\n }\n);\nTabsContent.displayName = CONTENT_NAME;\nfunction makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nvar Root2 = Tabs;\nvar List = TabsList;\nvar Trigger = TabsTrigger;\nvar Content = TabsContent;\nexport {\n Content,\n List,\n Root2 as Root,\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n Trigger,\n createTabsScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Tabs({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Root>) {\n return (\n <TabsPrimitive.Root\n data-slot=\"tabs\"\n className={cn(\"flex flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction TabsList({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.List>) {\n return (\n <TabsPrimitive.List\n data-slot=\"tabs-list\"\n className={cn(\n \"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n \"data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/50 inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsContent({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Content>) {\n return (\n <TabsPrimitive.Content\n data-slot=\"tabs-content\"\n className={cn(\"flex-1 outline-none\", className)}\n {...props}\n />\n );\n}\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"names":["TABS_NAME","createTabsContext","createTabsScope","createContextScope","createRovingFocusGroupScope","useRovingFocusGroupScope","TabsProvider","useTabsContext","Tabs","React","forwardRef","props","forwardedRef","__scopeTabs","value","valueProp","onValueChange","defaultValue","orientation","dir","activationMode","tabsProps","direction","useDirection","setValue","useControllableState","prop","onChange","defaultProp","jsx","scope","baseId","useId","children","Primitive","div","ref","displayName","TAB_LIST_NAME","TabsList","loop","listProps","context","rovingFocusGroupScope","RovingFocusGroup.Root","asChild","role","TRIGGER_NAME","TabsTrigger","disabled","triggerProps","triggerId","makeTriggerId","contentId","makeContentId","isSelected","RovingFocusGroup.Item","focusable","active","button","type","id","onMouseDown","composeEventHandlers","event","ctrlKey","preventDefault","onKeyDown","includes","key","onFocus","isAutomaticActivation","CONTENT_NAME","TabsContent","forceMount","contentProps","isMountAnimationPreventedRef","useRef","useEffect","rAF","requestAnimationFrame","current","cancelAnimationFrame","Presence","present","hidden","tabIndex","style","animationDuration","Root","List","Trigger","Content","className","createElement","TabsPrimitive","data-slot","cn"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,20 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import * as ToastPrimitives from '@radix-ui/react-toast';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as React from 'react';
6
+
7
+ declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
8
+ declare const ToastViewport: ({ className, ...props }: React.ComponentProps<typeof ToastPrimitives.Viewport>) => react_jsx_runtime.JSX.Element;
9
+ declare const toastVariants: (props?: ({
10
+ variant?: "default" | "destructive" | null | undefined;
11
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
12
+ declare const Toast: ({ className, variant, ...props }: React.ComponentProps<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>) => react_jsx_runtime.JSX.Element;
13
+ declare const ToastAction: ({ className, ...props }: React.ComponentProps<typeof ToastPrimitives.Action>) => react_jsx_runtime.JSX.Element;
14
+ declare const ToastClose: ({ className, ...props }: React.ComponentProps<typeof ToastPrimitives.Close>) => react_jsx_runtime.JSX.Element;
15
+ declare const ToastTitle: ({ className, ...props }: React.ComponentProps<typeof ToastPrimitives.Title>) => react_jsx_runtime.JSX.Element;
16
+ declare const ToastDescription: ({ className, ...props }: React.ComponentProps<typeof ToastPrimitives.Description>) => react_jsx_runtime.JSX.Element;
17
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
18
+ type ToastActionElement = React.ReactElement<typeof ToastAction>;
19
+
20
+ export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport };
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import*as t from"react-dom";import{u as r,P as o,c as n,a as s,b as a}from"../chunks/index-CX5r7IKM.mjs";import{createCollection as i}from"@radix-ui/react-collection";import{c}from"../chunks/index-CCYyT_rk.mjs";import{B as d,R as u,P as l}from"../chunks/index-CXrD_SvM.mjs";import{P as p,d as f}from"../chunks/index-DxtdpBCb.mjs";import{u as m}from"../chunks/index-D-s-TbR3.mjs";import{V as v}from"../chunks/index-B98y16WE.mjs";import{jsx as w,jsxs as h,Fragment as x}from"react/jsx-runtime";import{cva as y}from"class-variance-authority";import{c as g}from"../chunks/utils-jIFl11as.mjs";import{X as E}from"../chunks/x-xnz0lTd-.mjs";import"@radix-ui/react-slot";import"../chunks/bundle-mjs-CtG6Smj_.mjs";import"../chunks/createLucideIcon-CIn9dHnW.mjs";var T="ToastProvider",[b,R,C]=i("Toast"),[P,N]=c("Toast",[C]),[k,D]=P(T),L=t=>{const{__scopeToast:r,label:o="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=t,[c,d]=e.useState(null),[u,l]=e.useState(0),p=e.useRef(!1),f=e.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${T}\`. Expected non-empty \`string\`.`),w(b.Provider,{scope:r,children:w(k,{scope:r,label:o,duration:n,swipeDirection:s,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:e.useCallback((()=>l((e=>e+1))),[]),onToastRemove:e.useCallback((()=>l((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:i})})};L.displayName=T;var S="ToastViewport",_=["F8"],F="toast.viewportPause",I="toast.viewportResume",A=e.forwardRef(((t,o)=>{const{__scopeToast:n,hotkey:s=_,label:a="Notifications ({hotkey})",...i}=t,c=D(S,n),u=R(n),l=e.useRef(null),f=e.useRef(null),m=e.useRef(null),v=e.useRef(null),x=r(o,v,c.onViewportChange),y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0;e.useEffect((()=>{const e=e=>{0!==s.length&&s.every((t=>e[t]||e.code===t))&&v.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[s]),e.useEffect((()=>{const e=l.current,t=v.current;if(g&&e&&t){const r=()=>{if(!c.isClosePausedRef.current){const e=new CustomEvent(F);t.dispatchEvent(e),c.isClosePausedRef.current=!0}},o=()=>{if(c.isClosePausedRef.current){const e=new CustomEvent(I);t.dispatchEvent(e),c.isClosePausedRef.current=!1}},n=t=>{!e.contains(t.relatedTarget)&&o()},s=()=>{e.contains(document.activeElement)||o()};return e.addEventListener("focusin",r),e.addEventListener("focusout",n),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",o),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",n),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",o)}}}),[g,c.isClosePausedRef]);const E=e.useCallback((({tabbingDirection:e})=>{const t=u().map((t=>{const r=t.ref.current,o=[r,...ee(r)];return"forwards"===e?o:o.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[u]);return e.useEffect((()=>{const e=v.current;if(e){const t=t=>{const r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){const r=document.activeElement,o=t.shiftKey;if(t.target===e&&o)return void f.current?.focus();const n=E({tabbingDirection:o?"backwards":"forwards"}),s=n.findIndex((e=>e===r));te(n.slice(s+1))?t.preventDefault():o?f.current?.focus():m.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[u,E]),h(d,{ref:l,role:"region","aria-label":a.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&w(M,{ref:f,onFocusFromOutsideViewport:()=>{te(E({tabbingDirection:"forwards"}))}}),w(b.Slot,{scope:n,children:w(p.ol,{tabIndex:-1,...i,ref:x})}),g&&w(M,{ref:m,onFocusFromOutsideViewport:()=>{te(E({tabbingDirection:"backwards"}))}})]})}));A.displayName=S;var j="ToastFocusProxy",M=e.forwardRef(((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...n}=e,s=D(j,r);return w(v,{"aria-hidden":!0,tabIndex:0,...n,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!s.viewport?.contains(t)&&o()}})}));M.displayName=j;var K="Toast",O=e.forwardRef(((e,t)=>{const{forceMount:r,open:a,defaultOpen:i,onOpenChange:c,...d}=e,[u=!0,l]=m({prop:a,defaultProp:i,onChange:c});return w(o,{present:r||u,children:w(B,{open:u,...d,ref:t,onClose:()=>l(!1),onPause:s(e.onPause),onResume:s(e.onResume),onSwipeStart:n(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:n(e.onSwipeMove,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)})),onSwipeCancel:n(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:n(e.onSwipeEnd,(e=>{const{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),l(!1)}))})})}));O.displayName=K;var[V,$]=P(K,{onClose(){}}),B=e.forwardRef(((o,a)=>{const{__scopeToast:i,type:c="foreground",duration:d,open:l,onClose:f,onEscapeKeyDown:m,onPause:v,onResume:y,onSwipeStart:g,onSwipeMove:E,onSwipeCancel:T,onSwipeEnd:R,...C}=o,P=D(K,i),[N,k]=e.useState(null),L=r(a,(e=>k(e))),S=e.useRef(null),_=e.useRef(null),A=d||P.duration,j=e.useRef(0),M=e.useRef(A),O=e.useRef(0),{onToastAdd:$,onToastRemove:B}=P,X=s((()=>{const e=N?.contains(document.activeElement);e&&P.viewport?.focus(),f()})),q=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(O.current),j.current=(new Date).getTime(),O.current=window.setTimeout(X,e))}),[X]);e.useEffect((()=>{const e=P.viewport;if(e){const t=()=>{q(M.current),y?.()},r=()=>{const e=(new Date).getTime()-j.current;M.current=M.current-e,window.clearTimeout(O.current),v?.()};return e.addEventListener(F,r),e.addEventListener(I,t),()=>{e.removeEventListener(F,r),e.removeEventListener(I,t)}}}),[P.viewport,A,v,y,q]),e.useEffect((()=>{l&&!P.isClosePausedRef.current&&q(A)}),[l,A,P.isClosePausedRef,q]),e.useEffect((()=>($(),()=>B())),[$,B]);const H=e.useMemo((()=>N?J(N):null),[N]);return P.viewport?h(x,{children:[H&&w(U,{__scopeToast:i,role:"status","aria-live":"foreground"===c?"assertive":"polite","aria-atomic":!0,children:H}),w(V,{scope:i,onClose:X,children:t.createPortal(w(b.ItemSlot,{scope:i,children:w(u,{asChild:!0,onEscapeKeyDown:n(m,(()=>{P.isFocusedToastEscapeKeyDownRef.current||X(),P.isFocusedToastEscapeKeyDownRef.current=!1})),children:w(p.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":P.swipeDirection,...C,ref:L,style:{userSelect:"none",touchAction:"none",...o.style},onKeyDown:n(o.onKeyDown,(e=>{"Escape"===e.key&&(m?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,X()))})),onPointerDown:n(o.onPointerDown,(e=>{0===e.button&&(S.current={x:e.clientX,y:e.clientY})})),onPointerMove:n(o.onPointerMove,(e=>{if(!S.current)return;const t=e.clientX-S.current.x,r=e.clientY-S.current.y,o=Boolean(_.current),n=["left","right"].includes(P.swipeDirection),s=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,a=n?s(0,t):0,i=n?0:s(0,r),c="touch"===e.pointerType?10:2,d={x:a,y:i},u={originalEvent:e,delta:d};o?(_.current=d,Q("toast.swipeMove",E,u,{discrete:!1})):Z(d,P.swipeDirection,c)?(_.current=d,Q("toast.swipeStart",g,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(r)>c)&&(S.current=null)})),onPointerUp:n(o.onPointerUp,(e=>{const t=_.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),_.current=null,S.current=null,t){const r=e.currentTarget,o={originalEvent:e,delta:t};Z(t,P.swipeDirection,P.swipeThreshold)?Q("toast.swipeEnd",R,o,{discrete:!0}):Q("toast.swipeCancel",T,o,{discrete:!0}),r.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),P.viewport)})]}):null})),U=t=>{const{__scopeToast:r,children:o,...n}=t,i=D(K,r),[c,d]=e.useState(!1),[u,p]=e.useState(!1);return function(e=()=>{}){const t=s(e);a((()=>{let e=0,r=0;return e=window.requestAnimationFrame((()=>r=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}}),[t])}((()=>d(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>p(!0)),1e3);return()=>window.clearTimeout(e)}),[]),u?null:w(l,{asChild:!0,children:w(v,{...n,children:c&&h(x,{children:[i.label," ",o]})})})},X=e.forwardRef(((e,t)=>{const{__scopeToast:r,...o}=e;return w(p.div,{...o,ref:t})}));X.displayName="ToastTitle";var q=e.forwardRef(((e,t)=>{const{__scopeToast:r,...o}=e;return w(p.div,{...o,ref:t})}));q.displayName="ToastDescription";var H="ToastAction",W=e.forwardRef(((e,t)=>{const{altText:r,...o}=e;return r.trim()?w(G,{altText:r,asChild:!0,children:w(z,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${H}\`. Expected non-empty \`string\`.`),null)}));W.displayName=H;var Y="ToastClose",z=e.forwardRef(((e,t)=>{const{__scopeToast:r,...o}=e,s=$(Y,r);return w(G,{asChild:!0,children:w(p.button,{type:"button",...o,ref:t,onClick:n(e.onClick,s.onClose)})})}));z.displayName=Y;var G=e.forwardRef(((e,t)=>{const{__scopeToast:r,altText:o,...n}=e;return w(p.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...n,ref:t})}));function J(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const r=e.ariaHidden||e.hidden||"none"===e.style.display,o=""===e.dataset.radixToastAnnounceExclude;if(!r)if(o){const r=e.dataset.radixToastAnnounceAlt;r&&t.push(r)}else t.push(...J(e))}})),t}function Q(e,t,r,{discrete:o}){const n=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),o?f(n,s):n.dispatchEvent(s)}var Z=(e,t,r=0)=>{const o=Math.abs(e.x),n=Math.abs(e.y),s=o>n;return"left"===t||"right"===t?s&&o>r:!s&&n>r};function ee(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function te(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var re=A,oe=O,ne=X,se=q,ae=W,ie=z;const ce=L,de=({className:e,...t})=>React.createElement(re,{"data-slot":"toast-viewport",className:g("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",e),...t}),ue=y("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive-foreground bg-destructive-foreground text-destructive"}},defaultVariants:{variant:"default"}}),le=({className:e,variant:t,...r})=>React.createElement(oe,{"data-slot":"toast-root",className:g(ue({variant:t}),e),...r}),pe=({className:e,...t})=>React.createElement(ae,{"data-slot":"toast-action",className:g("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none disabled:opacity-50",e),...t}),fe=({className:e,...t})=>React.createElement(ie,{"data-slot":"toast-close",className:g("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t},React.createElement(E,{className:"h-4 w-4"})),me=({className:e,...t})=>React.createElement(ne,{"data-slot":"toast-title",className:g("text-sm font-semibold",e),...t}),ve=({className:e,...t})=>React.createElement(se,{"data-slot":"toast-description",className:g("text-sm opacity-90",e),...t});export{le as Toast,pe as ToastAction,fe as ToastClose,ve as ToastDescription,ce as ToastProvider,me as ToastTitle,de as ToastViewport};
2
+ //# sourceMappingURL=index.mjs.map