ml-uikit 1.0.6 → 1.0.8

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 (160) hide show
  1. package/dist/components/button.d.ts +2 -11
  2. package/dist/components/button.d.ts.map +1 -1
  3. package/dist/components/ui/badge.d.ts +14 -3
  4. package/dist/components/ui/badge.d.ts.map +1 -1
  5. package/dist/components/ui/button-group.d.ts +1 -0
  6. package/dist/components/ui/button-group.d.ts.map +1 -1
  7. package/dist/components/ui/button.d.ts +2 -2
  8. package/dist/components/ui/button.d.ts.map +1 -1
  9. package/dist/components/ui/chart.d.ts +1 -1
  10. package/dist/components/ui/command.d.ts +7 -7
  11. package/dist/components/ui/empty.d.ts +1 -0
  12. package/dist/components/ui/empty.d.ts.map +1 -1
  13. package/dist/components/ui/input-group.d.ts +2 -2
  14. package/dist/components/ui/input-otp.d.ts +2 -2
  15. package/dist/components/ui/input.d.ts.map +1 -1
  16. package/dist/components/ui/item.d.ts +1 -1
  17. package/dist/components/ui/kbd.d.ts +1 -0
  18. package/dist/components/ui/kbd.d.ts.map +1 -1
  19. package/dist/components/ui/sheet.d.ts +1 -1
  20. package/dist/components/ui/sidebar.d.ts +2 -2
  21. package/dist/components/ui/skeleton.d.ts +1 -0
  22. package/dist/components/ui/skeleton.d.ts.map +1 -1
  23. package/dist/components/ui/table.d.ts +24 -2
  24. package/dist/components/ui/table.d.ts.map +1 -1
  25. package/dist/components/ui/textarea.d.ts.map +1 -1
  26. package/dist/components/ui/toggle-group.d.ts +2 -2
  27. package/dist/components/ui/toggle.d.ts +2 -2
  28. package/dist/components/ui/typography.d.ts +171 -0
  29. package/dist/components/ui/typography.d.ts.map +1 -0
  30. package/dist/index.cjs.js +1 -1
  31. package/dist/index.cjs10.js +1 -1
  32. package/dist/index.cjs10.js.map +1 -1
  33. package/dist/index.cjs11.js +1 -1
  34. package/dist/index.cjs11.js.map +1 -1
  35. package/dist/index.cjs2.js +1 -1
  36. package/dist/index.cjs23.js +1 -1
  37. package/dist/index.cjs23.js.map +1 -1
  38. package/dist/index.cjs24.js +1 -1
  39. package/dist/index.cjs27.js +1 -1
  40. package/dist/index.cjs27.js.map +1 -1
  41. package/dist/index.cjs28.js +1 -1
  42. package/dist/index.cjs30.js +1 -1
  43. package/dist/index.cjs31.js +1 -1
  44. package/dist/index.cjs31.js.map +1 -1
  45. package/dist/index.cjs33.js +1 -1
  46. package/dist/index.cjs33.js.map +1 -1
  47. package/dist/index.cjs34.js +1 -1
  48. package/dist/index.cjs34.js.map +1 -1
  49. package/dist/index.cjs35.js +1 -1
  50. package/dist/index.cjs35.js.map +1 -1
  51. package/dist/index.cjs36.js +1 -1
  52. package/dist/index.cjs36.js.map +1 -1
  53. package/dist/index.cjs37.js +1 -1
  54. package/dist/index.cjs37.js.map +1 -1
  55. package/dist/index.cjs38.js +1 -1
  56. package/dist/index.cjs38.js.map +1 -1
  57. package/dist/index.cjs39.js +1 -1
  58. package/dist/index.cjs39.js.map +1 -1
  59. package/dist/index.cjs40.js +1 -1
  60. package/dist/index.cjs40.js.map +1 -1
  61. package/dist/index.cjs41.js +1 -1
  62. package/dist/index.cjs41.js.map +1 -1
  63. package/dist/index.cjs42.js +1 -1
  64. package/dist/index.cjs42.js.map +1 -1
  65. package/dist/index.cjs43.js +1 -1
  66. package/dist/index.cjs43.js.map +1 -1
  67. package/dist/index.cjs44.js +1 -1
  68. package/dist/index.cjs44.js.map +1 -1
  69. package/dist/index.cjs45.js +1 -1
  70. package/dist/index.cjs45.js.map +1 -1
  71. package/dist/index.cjs46.js +1 -1
  72. package/dist/index.cjs46.js.map +1 -1
  73. package/dist/index.cjs47.js +1 -1
  74. package/dist/index.cjs47.js.map +1 -1
  75. package/dist/index.cjs48.js +1 -1
  76. package/dist/index.cjs48.js.map +1 -1
  77. package/dist/index.cjs49.js +1 -1
  78. package/dist/index.cjs49.js.map +1 -1
  79. package/dist/index.cjs50.js +1 -1
  80. package/dist/index.cjs50.js.map +1 -1
  81. package/dist/index.cjs51.js +1 -1
  82. package/dist/index.cjs51.js.map +1 -1
  83. package/dist/index.cjs52.js +1 -1
  84. package/dist/index.cjs52.js.map +1 -1
  85. package/dist/index.cjs53.js +1 -1
  86. package/dist/index.cjs53.js.map +1 -1
  87. package/dist/index.cjs54.js +1 -1
  88. package/dist/index.cjs54.js.map +1 -1
  89. package/dist/index.cjs55.js +1 -1
  90. package/dist/index.cjs55.js.map +1 -1
  91. package/dist/index.cjs8.js +1 -1
  92. package/dist/index.cjs8.js.map +1 -1
  93. package/dist/index.d.ts +2 -0
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.es.js +154 -151
  96. package/dist/index.es.js.map +1 -1
  97. package/dist/index.es10.js +31 -24
  98. package/dist/index.es10.js.map +1 -1
  99. package/dist/index.es11.js +22 -21
  100. package/dist/index.es11.js.map +1 -1
  101. package/dist/index.es2.js +1 -1
  102. package/dist/index.es23.js +24 -23
  103. package/dist/index.es23.js.map +1 -1
  104. package/dist/index.es24.js +1 -1
  105. package/dist/index.es27.js +13 -9
  106. package/dist/index.es27.js.map +1 -1
  107. package/dist/index.es28.js +1 -1
  108. package/dist/index.es30.js +1 -1
  109. package/dist/index.es31.js +8 -7
  110. package/dist/index.es31.js.map +1 -1
  111. package/dist/index.es33.js +91 -189
  112. package/dist/index.es33.js.map +1 -1
  113. package/dist/index.es34.js +165 -71
  114. package/dist/index.es34.js.map +1 -1
  115. package/dist/index.es35.js +85 -84
  116. package/dist/index.es35.js.map +1 -1
  117. package/dist/index.es36.js +92 -17
  118. package/dist/index.es36.js.map +1 -1
  119. package/dist/index.es37.js +19 -21
  120. package/dist/index.es37.js.map +1 -1
  121. package/dist/index.es38.js +16 -21
  122. package/dist/index.es38.js.map +1 -1
  123. package/dist/index.es39.js +16 -21
  124. package/dist/index.es39.js.map +1 -1
  125. package/dist/index.es40.js +25 -104
  126. package/dist/index.es40.js.map +1 -1
  127. package/dist/index.es41.js +111 -20
  128. package/dist/index.es41.js.map +1 -1
  129. package/dist/index.es42.js +19 -97
  130. package/dist/index.es42.js.map +1 -1
  131. package/dist/index.es43.js +77 -509
  132. package/dist/index.es43.js.map +1 -1
  133. package/dist/index.es44.js +526 -9
  134. package/dist/index.es44.js.map +1 -1
  135. package/dist/index.es45.js +15 -18
  136. package/dist/index.es45.js.map +1 -1
  137. package/dist/index.es46.js +18 -22
  138. package/dist/index.es46.js.map +1 -1
  139. package/dist/index.es47.js +19 -12
  140. package/dist/index.es47.js.map +1 -1
  141. package/dist/index.es48.js +13 -22
  142. package/dist/index.es48.js.map +1 -1
  143. package/dist/index.es49.js +17 -80
  144. package/dist/index.es49.js.map +1 -1
  145. package/dist/index.es50.js +186 -28
  146. package/dist/index.es50.js.map +1 -1
  147. package/dist/index.es51.js +38 -10
  148. package/dist/index.es51.js.map +1 -1
  149. package/dist/index.es52.js +13 -29
  150. package/dist/index.es52.js.map +1 -1
  151. package/dist/index.es53.js +30 -34
  152. package/dist/index.es53.js.map +1 -1
  153. package/dist/index.es54.js +37 -19
  154. package/dist/index.es54.js.map +1 -1
  155. package/dist/index.es55.js +18 -41
  156. package/dist/index.es55.js.map +1 -1
  157. package/dist/index.es8.js +71 -20
  158. package/dist/index.es8.js.map +1 -1
  159. package/dist/style.css +421 -34
  160. package/package.json +17 -3
@@ -1,24 +1,99 @@
1
- import * as t from "react";
2
- import * as o from "@radix-ui/react-popover";
3
- import { cn as d } from "./index.es56.js";
4
- const p = o.Root, l = o.Trigger, c = o.Anchor, s = t.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, i) => /* @__PURE__ */ t.createElement(o.Portal, null, /* @__PURE__ */ t.createElement(
5
- o.Content,
1
+ import * as e from "react";
2
+ import { ChevronLeft as s, ChevronRight as r, MoreHorizontal as m } from "lucide-react";
3
+ import { cn as n } from "./index.es56.js";
4
+ import { buttonVariants as c } from "./index.es10.js";
5
+ const p = ({ className: t, ...a }) => /* @__PURE__ */ e.createElement(
6
+ "nav",
7
+ {
8
+ role: "navigation",
9
+ "aria-label": "pagination",
10
+ className: n("mx-auto flex w-full justify-center", t),
11
+ ...a
12
+ }
13
+ );
14
+ p.displayName = "Pagination";
15
+ const g = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ e.createElement(
16
+ "ul",
6
17
  {
7
18
  ref: i,
8
- align: a,
9
- sideOffset: r,
10
- className: d(
11
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 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 origin-[--radix-popover-content-transform-origin]",
12
- e
19
+ className: n("flex flex-row items-center gap-1", t),
20
+ ...a
21
+ }
22
+ ));
23
+ g.displayName = "PaginationContent";
24
+ const N = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ e.createElement("li", { ref: i, className: n("", t), ...a }));
25
+ N.displayName = "PaginationItem";
26
+ const l = ({
27
+ className: t,
28
+ isActive: a,
29
+ size: i = "icon",
30
+ ...o
31
+ }) => /* @__PURE__ */ e.createElement(
32
+ "a",
33
+ {
34
+ "aria-current": a ? "page" : void 0,
35
+ className: n(
36
+ c({
37
+ variant: a ? "outline" : "ghost",
38
+ size: i
39
+ }),
40
+ t
13
41
  ),
14
- ...n
42
+ ...o
15
43
  }
16
- )));
17
- s.displayName = o.Content.displayName;
44
+ );
45
+ l.displayName = "PaginationLink";
46
+ const f = ({
47
+ className: t,
48
+ ...a
49
+ }) => /* @__PURE__ */ e.createElement(
50
+ l,
51
+ {
52
+ "aria-label": "Go to previous page",
53
+ size: "default",
54
+ className: n("gap-1 pl-2.5", t),
55
+ ...a
56
+ },
57
+ /* @__PURE__ */ e.createElement(s, { className: "h-4 w-4" }),
58
+ /* @__PURE__ */ e.createElement("span", null, "Previous")
59
+ );
60
+ f.displayName = "PaginationPrevious";
61
+ const u = ({
62
+ className: t,
63
+ ...a
64
+ }) => /* @__PURE__ */ e.createElement(
65
+ l,
66
+ {
67
+ "aria-label": "Go to next page",
68
+ size: "default",
69
+ className: n("gap-1 pr-2.5", t),
70
+ ...a
71
+ },
72
+ /* @__PURE__ */ e.createElement("span", null, "Next"),
73
+ /* @__PURE__ */ e.createElement(r, { className: "h-4 w-4" })
74
+ );
75
+ u.displayName = "PaginationNext";
76
+ const P = ({
77
+ className: t,
78
+ ...a
79
+ }) => /* @__PURE__ */ e.createElement(
80
+ "span",
81
+ {
82
+ "aria-hidden": !0,
83
+ className: n("flex h-9 w-9 items-center justify-center", t),
84
+ ...a
85
+ },
86
+ /* @__PURE__ */ e.createElement(m, { className: "h-4 w-4" }),
87
+ /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "More pages")
88
+ );
89
+ P.displayName = "PaginationEllipsis";
18
90
  export {
19
- p as Popover,
20
- c as PopoverAnchor,
21
- s as PopoverContent,
22
- l as PopoverTrigger
91
+ p as Pagination,
92
+ g as PaginationContent,
93
+ P as PaginationEllipsis,
94
+ N as PaginationItem,
95
+ l as PaginationLink,
96
+ u as PaginationNext,
97
+ f as PaginationPrevious
23
98
  };
24
99
  //# sourceMappingURL=index.es36.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es36.js","sources":["../src/components/ui/popover.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 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 origin-[--radix-popover-content-transform-origin]\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverAnchor","PopoverContent","React","className","align","sideOffset","props","ref","cn"],"mappings":";;;AAKA,MAAMA,IAAUC,EAAiB,MAE3BC,IAAiBD,EAAiB,SAElCE,IAAgBF,EAAiB,QAEjCG,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,KAASC,MAC5D,gBAAAL,EAAA,cAACJ,EAAiB,QAAjB,MACC,gBAAAI,EAAA;AAAA,EAACJ,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAS;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACF,CACD;AACDL,EAAe,cAAcH,EAAiB,QAAQ;"}
1
+ {"version":3,"file":"index.es36.js","sources":["../src/components/ui/pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ButtonProps, buttonVariants } from \"@/components/ui/button\"\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n)\nPagination.displayName = \"Pagination\"\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n))\nPaginationContent.displayName = \"PaginationContent\"\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n))\nPaginationItem.displayName = \"PaginationItem\"\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">\n\nconst PaginationLink = ({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n)\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n"],"names":["Pagination","className","props","React","cn","PaginationContent","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;AAMA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEzB,MAAMK,IAAoBF,EAAM,WAG9B,CAAC,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAASI,MAC1B,gBAAAH,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAG;AAAA,IACA,WAAWF,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAEhC,MAAME,IAAiBJ,EAAM,WAG3B,CAAC,EAAE,WAAAF,GAAW,GAAGC,KAASI,sCACzB,MAAA,EAAG,KAAAA,GAAU,WAAWF,EAAG,IAAIH,CAAS,GAAI,GAAGC,GAAO,CACxD;AACDK,EAAe,cAAc;AAO7B,MAAMC,IAAiB,CAAC;AAAA,EACtB,WAAAP;AAAA,EACA,UAAAQ;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGR;AACL,MACE,gBAAAC,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcM,IAAW,SAAS;A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EAAmB,cAAc;"}
@@ -1,26 +1,24 @@
1
- import * as r from "react";
2
- import * as e from "@radix-ui/react-progress";
3
- import { cn as s } from "./index.es56.js";
4
- const m = r.forwardRef(({ className: a, value: l, ...o }, t) => /* @__PURE__ */ r.createElement(
5
- e.Root,
1
+ import * as t from "react";
2
+ import * as o from "@radix-ui/react-popover";
3
+ import { cn as d } from "./index.es56.js";
4
+ const p = o.Root, l = o.Trigger, c = o.Anchor, s = t.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, i) => /* @__PURE__ */ t.createElement(o.Portal, null, /* @__PURE__ */ t.createElement(
5
+ o.Content,
6
6
  {
7
- ref: t,
8
- className: s(
9
- "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
10
- a
7
+ ref: i,
8
+ align: a,
9
+ sideOffset: r,
10
+ className: d(
11
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 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 origin-[--radix-popover-content-transform-origin]",
12
+ e
11
13
  ),
12
- ...o
13
- },
14
- /* @__PURE__ */ r.createElement(
15
- e.Indicator,
16
- {
17
- className: "h-full w-full flex-1 bg-primary transition-all",
18
- style: { transform: `translateX(-${100 - (l || 0)}%)` }
19
- }
20
- )
21
- ));
22
- m.displayName = e.Root.displayName;
14
+ ...n
15
+ }
16
+ )));
17
+ s.displayName = o.Content.displayName;
23
18
  export {
24
- m as Progress
19
+ p as Popover,
20
+ c as PopoverAnchor,
21
+ s as PopoverContent,
22
+ l as PopoverTrigger
25
23
  };
26
24
  //# sourceMappingURL=index.es37.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es37.js","sources":["../src/components/ui/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn(\n \"relative h-2 w-full overflow-hidden rounded-full bg-primary/20\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"],"names":["Progress","React","className","value","props","ref","ProgressPrimitive","cn"],"mappings":";;;AAOA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,GAASC,MACjC,gBAAAJ,EAAA;AAAA,EAACK,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA;AAAA,IAACK,EAAkB;AAAA,IAAlB;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,WAAW,eAAe,OAAOH,KAAS,EAAE,KAAA;AAAA,IAAK;AAAA,EAAA;AAE9D,CACD;AACDH,EAAS,cAAcM,EAAkB,KAAK;"}
1
+ {"version":3,"file":"index.es37.js","sources":["../src/components/ui/popover.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 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 origin-[--radix-popover-content-transform-origin]\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverAnchor","PopoverContent","React","className","align","sideOffset","props","ref","cn"],"mappings":";;;AAKA,MAAMA,IAAUC,EAAiB,MAE3BC,IAAiBD,EAAiB,SAElCE,IAAgBF,EAAiB,QAEjCG,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,KAASC,MAC5D,gBAAAL,EAAA,cAACJ,EAAiB,QAAjB,MACC,gBAAAI,EAAA;AAAA,EAACJ,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAS;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACF,CACD;AACDL,EAAe,cAAcH,EAAiB,QAAQ;"}
@@ -1,31 +1,26 @@
1
- import * as e from "react";
2
- import * as r from "@radix-ui/react-radio-group";
3
- import { Circle as s } from "lucide-react";
4
- import { cn as i } from "./index.es56.js";
5
- const m = e.forwardRef(({ className: a, ...o }, t) => /* @__PURE__ */ e.createElement(
6
- r.Root,
7
- {
8
- className: i("grid gap-2", a),
9
- ...o,
10
- ref: t
11
- }
12
- ));
13
- m.displayName = r.Root.displayName;
14
- const l = e.forwardRef(({ className: a, ...o }, t) => /* @__PURE__ */ e.createElement(
15
- r.Item,
1
+ import * as r from "react";
2
+ import * as e from "@radix-ui/react-progress";
3
+ import { cn as s } from "./index.es56.js";
4
+ const m = r.forwardRef(({ className: a, value: l, ...o }, t) => /* @__PURE__ */ r.createElement(
5
+ e.Root,
16
6
  {
17
7
  ref: t,
18
- className: i(
19
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
8
+ className: s(
9
+ "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
20
10
  a
21
11
  ),
22
12
  ...o
23
13
  },
24
- /* @__PURE__ */ e.createElement(r.Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ e.createElement(s, { className: "h-3.5 w-3.5 fill-primary" }))
14
+ /* @__PURE__ */ r.createElement(
15
+ e.Indicator,
16
+ {
17
+ className: "h-full w-full flex-1 bg-primary transition-all",
18
+ style: { transform: `translateX(-${100 - (l || 0)}%)` }
19
+ }
20
+ )
25
21
  ));
26
- l.displayName = r.Item.displayName;
22
+ m.displayName = e.Root.displayName;
27
23
  export {
28
- m as RadioGroup,
29
- l as RadioGroupItem
24
+ m as Progress
30
25
  };
31
26
  //# sourceMappingURL=index.es38.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es38.js","sources":["../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-3.5 w-3.5 fill-primary\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","RadioGroupPrimitive","cn","RadioGroupItem","Circle"],"mappings":";;;;AAMA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,WAAWC,EAAG,cAAcJ,CAAS;AAAA,IACpC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,CAGL;AACDJ,EAAW,cAAcK,EAAoB,KAAK;AAElD,MAAME,IAAiBN,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA,cAACI,EAAoB,WAApB,EAA8B,WAAU,sCACvC,gBAAAJ,EAAA,cAACO,GAAA,EAAO,WAAU,2BAAA,CAA2B,CAC/C;AAAA,CAGL;AACDD,EAAe,cAAcF,EAAoB,KAAK;"}
1
+ {"version":3,"file":"index.es38.js","sources":["../src/components/ui/progress.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn(\n \"relative h-2 w-full overflow-hidden rounded-full bg-primary/20\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"],"names":["Progress","React","className","value","props","ref","ProgressPrimitive","cn"],"mappings":";;;AAOA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,EAAA,GAASC,MACjC,gBAAAJ,EAAA;AAAA,EAACK,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA;AAAA,IAACK,EAAkB;AAAA,IAAlB;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,WAAW,eAAe,OAAOH,KAAS,EAAE,KAAA;AAAA,IAAK;AAAA,EAAA;AAE9D,CACD;AACDH,EAAS,cAAcM,EAAkB,KAAK;"}
@@ -1,36 +1,31 @@
1
1
  import * as e from "react";
2
- import * as r from "@radix-ui/react-scroll-area";
3
- import { cn as c } from "./index.es56.js";
4
- const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
2
+ import * as r from "@radix-ui/react-radio-group";
3
+ import { Circle as s } from "lucide-react";
4
+ import { cn as i } from "./index.es56.js";
5
+ const m = e.forwardRef(({ className: a, ...o }, t) => /* @__PURE__ */ e.createElement(
5
6
  r.Root,
6
7
  {
7
- ref: t,
8
- className: c("relative overflow-hidden", a),
9
- ...o
10
- },
11
- /* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
12
- /* @__PURE__ */ e.createElement(n, null),
13
- /* @__PURE__ */ e.createElement(r.Corner, null)
8
+ className: i("grid gap-2", a),
9
+ ...o,
10
+ ref: t
11
+ }
14
12
  ));
15
13
  m.displayName = r.Root.displayName;
16
- const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
17
- r.ScrollAreaScrollbar,
14
+ const l = e.forwardRef(({ className: a, ...o }, t) => /* @__PURE__ */ e.createElement(
15
+ r.Item,
18
16
  {
19
17
  ref: t,
20
- orientation: l,
21
- className: c(
22
- "flex touch-none select-none transition-colors",
23
- l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
24
- l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
18
+ className: i(
19
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
25
20
  a
26
21
  ),
27
22
  ...o
28
23
  },
29
- /* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
24
+ /* @__PURE__ */ e.createElement(r.Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ e.createElement(s, { className: "h-3.5 w-3.5 fill-primary" }))
30
25
  ));
31
- n.displayName = r.ScrollAreaScrollbar.displayName;
26
+ l.displayName = r.Item.displayName;
32
27
  export {
33
- m as ScrollArea,
34
- n as ScrollBar
28
+ m as RadioGroup,
29
+ l as RadioGroupItem
35
30
  };
36
31
  //# sourceMappingURL=index.es39.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es39.js","sources":["../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive","cn","ScrollBar","orientation"],"mappings":";;;AAKA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AAAA,kCAEHE,EAAoB,UAApB,EAA6B,WAAU,qCACrCH,CACH;AAAA,kCACCK,GAAA,IAAU;AAAA,EACX,gBAAAP,EAAA,cAACK,EAAoB,QAApB,IAA2B;AAC9B,CACD;AACDN,EAAW,cAAcM,EAAoB,KAAK;AAElD,MAAME,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAO,IAAc,YAAY,GAAGL,EAAA,GAASC,MACpD,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,aAAAI;AAAA,IACA,WAAWF;AAAA,MACT;AAAA,MACAE,MAAgB,cACd;AAAA,MACFA,MAAgB,gBACd;AAAA,MACFP;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA,cAACK,EAAoB,iBAApB,EAAoC,WAAU,yCAAA,CAAyC;AAC1F,CACD;AACDE,EAAU,cAAcF,EAAoB,oBAAoB;"}
1
+ {"version":3,"file":"index.es39.js","sources":["../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-3.5 w-3.5 fill-primary\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","RadioGroupPrimitive","cn","RadioGroupItem","Circle"],"mappings":";;;;AAMA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,WAAWC,EAAG,cAAcJ,CAAS;AAAA,IACpC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,CAGL;AACDJ,EAAW,cAAcK,EAAoB,KAAK;AAElD,MAAME,IAAiBN,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA,cAACI,EAAoB,WAApB,EAA8B,WAAU,sCACvC,gBAAAJ,EAAA,cAACO,GAAA,EAAO,WAAU,2BAAA,CAA2B,CAC/C;AAAA,CAGL;AACDD,EAAe,cAAcF,EAAoB,KAAK;"}
@@ -1,115 +1,36 @@
1
1
  import * as e from "react";
2
- import * as t from "@radix-ui/react-select";
3
- import { ChevronDown as s, Check as i, ChevronUp as p } from "lucide-react";
4
- import { cn as o } from "./index.es56.js";
5
- const x = t.Root, b = t.Group, S = t.Value, f = e.forwardRef(({ className: r, children: l, ...a }, n) => /* @__PURE__ */ e.createElement(
6
- t.Trigger,
2
+ import * as r from "@radix-ui/react-scroll-area";
3
+ import { cn as c } from "./index.es56.js";
4
+ const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
5
+ r.Root,
7
6
  {
8
- ref: n,
9
- className: o(
10
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
11
- r
12
- ),
13
- ...a
14
- },
15
- l,
16
- /* @__PURE__ */ e.createElement(t.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(s, { className: "h-4 w-4 opacity-50" }))
17
- ));
18
- f.displayName = t.Trigger.displayName;
19
- const c = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
20
- t.ScrollUpButton,
21
- {
22
- ref: a,
23
- className: o(
24
- "flex cursor-default items-center justify-center py-1",
25
- r
26
- ),
27
- ...l
28
- },
29
- /* @__PURE__ */ e.createElement(p, { className: "h-4 w-4" })
30
- ));
31
- c.displayName = t.ScrollUpButton.displayName;
32
- const d = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
33
- t.ScrollDownButton,
34
- {
35
- ref: a,
36
- className: o(
37
- "flex cursor-default items-center justify-center py-1",
38
- r
39
- ),
40
- ...l
41
- },
42
- /* @__PURE__ */ e.createElement(s, { className: "h-4 w-4" })
43
- ));
44
- d.displayName = t.ScrollDownButton.displayName;
45
- const u = e.forwardRef(({ className: r, children: l, position: a = "popper", ...n }, m) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
46
- t.Content,
47
- {
48
- ref: m,
49
- className: o(
50
- "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 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 origin-[--radix-select-content-transform-origin]",
51
- a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
52
- r
53
- ),
54
- position: a,
55
- ...n
7
+ ref: t,
8
+ className: c("relative overflow-hidden", a),
9
+ ...o
56
10
  },
57
- /* @__PURE__ */ e.createElement(c, null),
58
- /* @__PURE__ */ e.createElement(
59
- t.Viewport,
60
- {
61
- className: o(
62
- "p-1",
63
- a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
64
- )
65
- },
66
- l
67
- ),
68
- /* @__PURE__ */ e.createElement(d, null)
69
- )));
70
- u.displayName = t.Content.displayName;
71
- const w = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
72
- t.Label,
73
- {
74
- ref: a,
75
- className: o("px-2 py-1.5 text-sm font-semibold", r),
76
- ...l
77
- }
11
+ /* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
12
+ /* @__PURE__ */ e.createElement(n, null),
13
+ /* @__PURE__ */ e.createElement(r.Corner, null)
78
14
  ));
79
- w.displayName = t.Label.displayName;
80
- const g = e.forwardRef(({ className: r, children: l, ...a }, n) => /* @__PURE__ */ e.createElement(
81
- t.Item,
15
+ m.displayName = r.Root.displayName;
16
+ const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
17
+ r.ScrollAreaScrollbar,
82
18
  {
83
- ref: n,
84
- className: o(
85
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
86
- r
19
+ ref: t,
20
+ orientation: l,
21
+ className: c(
22
+ "flex touch-none select-none transition-colors",
23
+ l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
24
+ l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
25
+ a
87
26
  ),
88
- ...a
27
+ ...o
89
28
  },
90
- /* @__PURE__ */ e.createElement("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(i, { className: "h-4 w-4" }))),
91
- /* @__PURE__ */ e.createElement(t.ItemText, null, l)
92
- ));
93
- g.displayName = t.Item.displayName;
94
- const y = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
95
- t.Separator,
96
- {
97
- ref: a,
98
- className: o("-mx-1 my-1 h-px bg-muted", r),
99
- ...l
100
- }
29
+ /* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
101
30
  ));
102
- y.displayName = t.Separator.displayName;
31
+ n.displayName = r.ScrollAreaScrollbar.displayName;
103
32
  export {
104
- x as Select,
105
- u as SelectContent,
106
- b as SelectGroup,
107
- g as SelectItem,
108
- w as SelectLabel,
109
- d as SelectScrollDownButton,
110
- c as SelectScrollUpButton,
111
- y as SelectSeparator,
112
- f as SelectTrigger,
113
- S as SelectValue
33
+ m as ScrollArea,
34
+ n as ScrollBar
114
35
  };
115
36
  //# sourceMappingURL=index.es40.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es40.js","sources":["../src/components/ui/select.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 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 origin-[--radix-select-content-transform-origin]\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"px-2 py-1.5 text-sm font-semibold\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","cn","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSepar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AAI,EAAA,cAACc,GAAA,EAAM,WAAU,UAAA,CAAU,CAC7B,CACF;AAAA,EACA,gBAAAd,EAAA,cAACJ,EAAgB,UAAhB,MAA0BM,CAAS;AACtC,CACD;AACDW,EAAW,cAAcjB,EAAgB,KAAK;AAE9C,MAAMmB,IAAkBf,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAJ,EAAA;AAAA,EAACJ,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWC,EAAG,4BAA4BJ,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AACN,CACD;AACDY,EAAgB,cAAcnB,EAAgB,UAAU;"}
1
+ {"version":3,"file":"index.es40.js","sources":["../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive","cn","ScrollBar","orientation"],"mappings":";;;AAKA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AAAA,kCAEHE,EAAoB,UAApB,EAA6B,WAAU,qCACrCH,CACH;AAAA,kCACCK,GAAA,IAAU;AAAA,EACX,gBAAAP,EAAA,cAACK,EAAoB,QAApB,IAA2B;AAC9B,CACD;AACDN,EAAW,cAAcM,EAAoB,KAAK;AAElD,MAAME,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAO,IAAc,YAAY,GAAGL,EAAA,GAASC,MACpD,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,aAAAI;AAAA,IACA,WAAWF;AAAA,MACT;AAAA,MACAE,MAAgB,cACd;AAAA,MACFA,MAAgB,gBACd;AAAA,MACFP;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA,cAACK,EAAoB,iBAApB,EAAoC,WAAU,yCAAA,CAAyC;AAC1F,CACD;AACDE,EAAU,cAAcF,EAAoB,oBAAoB;"}