@0xchain/ui 1.1.0-beta.4 → 1.1.0-beta.43

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 (198) hide show
  1. package/LICENSE +21 -0
  2. package/dist/accordion.js +64 -0
  3. package/dist/alert-dialog.js +146 -0
  4. package/dist/{alert.mjs → alert.js} +26 -26
  5. package/dist/aspect-ratio.js +10 -0
  6. package/dist/avatar.js +53 -0
  7. package/dist/{badge.mjs → badge.js} +17 -16
  8. package/dist/breadcrumb.d.ts +2 -20
  9. package/dist/breadcrumb.js +103 -0
  10. package/dist/button.d.ts +2 -15
  11. package/dist/{button.mjs → button.js} +18 -17
  12. package/dist/calendar.d.ts +2 -23
  13. package/dist/calendar.js +186 -0
  14. package/dist/card.d.ts +2 -18
  15. package/dist/card.js +90 -0
  16. package/dist/carousel.d.ts +2 -42
  17. package/dist/carousel.js +198 -0
  18. package/dist/checkbox.d.ts +2 -7
  19. package/dist/{checkbox.mjs → checkbox.js} +16 -16
  20. package/dist/collapsible.d.ts +2 -10
  21. package/dist/collapsible.js +34 -0
  22. package/dist/command.d.ts +2 -31
  23. package/dist/command.js +170 -0
  24. package/dist/components/ui/accordion.d.ts +8 -0
  25. package/dist/components/ui/accordion.d.ts.map +1 -0
  26. package/dist/components/ui/alert-dialog.d.ts +15 -0
  27. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  28. package/dist/components/ui/alert.d.ts +10 -0
  29. package/dist/components/ui/alert.d.ts.map +1 -0
  30. package/dist/components/ui/aspect-ratio.d.ts +4 -0
  31. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  32. package/dist/components/ui/avatar.d.ts +7 -0
  33. package/dist/components/ui/avatar.d.ts.map +1 -0
  34. package/dist/components/ui/badge.d.ts +10 -0
  35. package/dist/components/ui/badge.d.ts.map +1 -0
  36. package/dist/components/ui/breadcrumb.d.ts +12 -0
  37. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  38. package/dist/components/ui/button.d.ts +11 -0
  39. package/dist/components/ui/button.d.ts.map +1 -0
  40. package/dist/components/ui/calendar.d.ts +9 -0
  41. package/dist/components/ui/calendar.d.ts.map +1 -0
  42. package/dist/components/ui/card.d.ts +10 -0
  43. package/dist/components/ui/card.d.ts.map +1 -0
  44. package/dist/components/ui/carousel.d.ts +20 -0
  45. package/dist/components/ui/carousel.d.ts.map +1 -0
  46. package/dist/components/ui/checkbox.d.ts +5 -0
  47. package/dist/components/ui/checkbox.d.ts.map +1 -0
  48. package/dist/components/ui/collapsible.d.ts +6 -0
  49. package/dist/components/ui/collapsible.d.ts.map +1 -0
  50. package/dist/components/ui/command.d.ts +19 -0
  51. package/dist/components/ui/command.d.ts.map +1 -0
  52. package/dist/components/ui/context-menu.d.ts +26 -0
  53. package/dist/components/ui/context-menu.d.ts.map +1 -0
  54. package/dist/components/ui/dialog.d.ts +16 -0
  55. package/dist/components/ui/dialog.d.ts.map +1 -0
  56. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  57. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  58. package/dist/components/ui/hover-card.d.ts +7 -0
  59. package/dist/components/ui/hover-card.d.ts.map +1 -0
  60. package/dist/components/ui/input.d.ts +4 -0
  61. package/dist/components/ui/input.d.ts.map +1 -0
  62. package/dist/components/ui/label.d.ts +5 -0
  63. package/dist/components/ui/label.d.ts.map +1 -0
  64. package/dist/components/ui/menubar.d.ts +27 -0
  65. package/dist/components/ui/menubar.d.ts.map +1 -0
  66. package/dist/components/ui/navigation-menu.d.ts +15 -0
  67. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  68. package/dist/components/ui/pagination.d.ts +14 -0
  69. package/dist/components/ui/pagination.d.ts.map +1 -0
  70. package/dist/components/ui/popover.d.ts +8 -0
  71. package/dist/components/ui/popover.d.ts.map +1 -0
  72. package/dist/components/ui/progress.d.ts +5 -0
  73. package/dist/components/ui/progress.d.ts.map +1 -0
  74. package/dist/components/ui/radio-group.d.ts +6 -0
  75. package/dist/components/ui/radio-group.d.ts.map +1 -0
  76. package/dist/components/ui/resizable.d.ts +9 -0
  77. package/dist/components/ui/resizable.d.ts.map +1 -0
  78. package/dist/components/ui/scroll-area.d.ts +6 -0
  79. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  80. package/dist/components/ui/select.d.ts +16 -0
  81. package/dist/components/ui/select.d.ts.map +1 -0
  82. package/dist/components/ui/separator.d.ts +5 -0
  83. package/dist/components/ui/separator.d.ts.map +1 -0
  84. package/dist/components/ui/sheet.d.ts +14 -0
  85. package/dist/components/ui/sheet.d.ts.map +1 -0
  86. package/dist/components/ui/skeleton.d.ts +3 -0
  87. package/dist/components/ui/skeleton.d.ts.map +1 -0
  88. package/dist/components/ui/slider.d.ts +5 -0
  89. package/dist/components/ui/slider.d.ts.map +1 -0
  90. package/dist/components/ui/sonner.d.ts +4 -0
  91. package/dist/components/ui/sonner.d.ts.map +1 -0
  92. package/dist/components/ui/switch.d.ts +5 -0
  93. package/dist/components/ui/switch.d.ts.map +1 -0
  94. package/dist/components/ui/table.d.ts +11 -0
  95. package/dist/components/ui/table.d.ts.map +1 -0
  96. package/dist/components/ui/tabs.d.ts +8 -0
  97. package/dist/components/ui/tabs.d.ts.map +1 -0
  98. package/dist/components/ui/textarea.d.ts +4 -0
  99. package/dist/components/ui/textarea.d.ts.map +1 -0
  100. package/dist/components/ui/toggle-group.d.ts +8 -0
  101. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  102. package/dist/components/ui/toggle.d.ts +10 -0
  103. package/dist/components/ui/toggle.d.ts.map +1 -0
  104. package/dist/components/ui/tooltip.d.ts +8 -0
  105. package/dist/components/ui/tooltip.d.ts.map +1 -0
  106. package/dist/context-menu.d.ts +2 -42
  107. package/dist/context-menu.js +223 -0
  108. package/dist/dialog.d.ts +2 -27
  109. package/dist/dialog.js +136 -0
  110. package/dist/dropdown-menu.d.ts +2 -42
  111. package/dist/dropdown-menu.js +231 -0
  112. package/dist/form.d.ts +1 -38
  113. package/dist/form.js +116 -0
  114. package/dist/hover-card.d.ts +2 -11
  115. package/dist/hover-card.js +38 -0
  116. package/dist/index.d.ts +44 -0
  117. package/dist/index.d.ts.map +1 -0
  118. package/dist/input.d.ts +2 -6
  119. package/dist/{input.mjs → input.js} +9 -9
  120. package/dist/label.d.ts +2 -7
  121. package/dist/{label.mjs → label.js} +12 -12
  122. package/dist/lib/utils.d.ts +3 -0
  123. package/dist/lib/utils.d.ts.map +1 -0
  124. package/dist/menubar.d.ts +2 -44
  125. package/dist/menubar.js +251 -0
  126. package/dist/navigation-menu.d.ts +2 -26
  127. package/dist/{navigation-menu.mjs → navigation-menu.js} +89 -89
  128. package/dist/pagination.d.ts +2 -33
  129. package/dist/pagination.js +116 -0
  130. package/dist/popover.d.ts +2 -13
  131. package/dist/popover.js +44 -0
  132. package/dist/progress.d.ts +2 -7
  133. package/dist/progress.js +31 -0
  134. package/dist/radio-group.d.ts +2 -9
  135. package/dist/radio-group.js +45 -0
  136. package/dist/resizable.d.ts +2 -13
  137. package/dist/resizable.js +48 -0
  138. package/dist/scroll-area.d.ts +2 -9
  139. package/dist/scroll-area.js +60 -0
  140. package/dist/select.d.ts +2 -27
  141. package/dist/select.js +169 -0
  142. package/dist/separator.d.ts +2 -7
  143. package/dist/separator.js +26 -0
  144. package/dist/sheet.d.ts +2 -23
  145. package/dist/sheet.js +126 -0
  146. package/dist/skeleton.d.ts +2 -5
  147. package/dist/skeleton.js +15 -0
  148. package/dist/slider.d.ts +2 -7
  149. package/dist/{slider.mjs → slider.js} +33 -33
  150. package/dist/sonner.d.ts +2 -6
  151. package/dist/sonner.js +22 -0
  152. package/dist/switch.d.ts +2 -7
  153. package/dist/{switch.mjs → switch.js} +15 -15
  154. package/dist/table.d.ts +2 -20
  155. package/dist/table.js +114 -0
  156. package/dist/tabs.d.ts +2 -13
  157. package/dist/{tabs.mjs → tabs.js} +37 -37
  158. package/dist/textarea.d.ts +2 -6
  159. package/dist/{textarea.mjs → textarea.js} +8 -8
  160. package/dist/toggle-group.d.ts +2 -16
  161. package/dist/toggle-group.js +62 -0
  162. package/dist/toggle.d.ts +2 -14
  163. package/dist/{toggle.mjs → toggle.js} +16 -16
  164. package/dist/tooltip.d.ts +2 -13
  165. package/dist/tooltip.js +55 -0
  166. package/dist/utils-CzDCF-Ah.js +8 -0
  167. package/package.json +138 -89
  168. package/dist/accordion.mjs +0 -64
  169. package/dist/alert-dialog.mjs +0 -146
  170. package/dist/aspect-ratio.mjs +0 -10
  171. package/dist/avatar.mjs +0 -53
  172. package/dist/breadcrumb.mjs +0 -102
  173. package/dist/calendar.mjs +0 -173
  174. package/dist/card.mjs +0 -90
  175. package/dist/carousel.mjs +0 -177
  176. package/dist/collapsible.mjs +0 -34
  177. package/dist/command.mjs +0 -170
  178. package/dist/context-menu.mjs +0 -223
  179. package/dist/dialog.mjs +0 -136
  180. package/dist/dropdown-menu.mjs +0 -231
  181. package/dist/form.mjs +0 -101
  182. package/dist/hover-card.mjs +0 -38
  183. package/dist/menubar.mjs +0 -251
  184. package/dist/pagination.mjs +0 -116
  185. package/dist/popover.mjs +0 -44
  186. package/dist/progress.mjs +0 -31
  187. package/dist/radio-group.mjs +0 -45
  188. package/dist/resizable.mjs +0 -48
  189. package/dist/scroll-area.mjs +0 -60
  190. package/dist/select.mjs +0 -169
  191. package/dist/separator.mjs +0 -26
  192. package/dist/sheet.mjs +0 -126
  193. package/dist/skeleton.mjs +0 -15
  194. package/dist/sonner.mjs +0 -22
  195. package/dist/table.mjs +0 -114
  196. package/dist/toggle-group.mjs +0 -62
  197. package/dist/tooltip.mjs +0 -55
  198. package/dist/utils-B7J70Nno.js +0 -8
@@ -1,33 +1,2 @@
1
- import { ClassProp } from 'class-variance-authority/types';
2
- import { JSX } from 'react/jsx-runtime';
3
- import * as React_2 from 'react';
4
- import { VariantProps } from 'class-variance-authority';
5
-
6
- declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
- asChild?: boolean;
8
- }): JSX.Element;
9
-
10
- declare const buttonVariants: (props?: ({
11
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
12
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
13
- } & ClassProp) | undefined) => string;
14
-
15
- export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
16
-
17
- export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
18
-
19
- export declare function PaginationEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
20
-
21
- export declare function PaginationItem({ ...props }: React_2.ComponentProps<"li">): JSX.Element;
22
-
23
- export declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): JSX.Element;
24
-
25
- declare type PaginationLinkProps = {
26
- isActive?: boolean;
27
- } & Pick<React_2.ComponentProps<typeof Button>, "size"> & React_2.ComponentProps<"a">;
28
-
29
- export declare function PaginationNext({ className, ...props }: React_2.ComponentProps<typeof PaginationLink>): JSX.Element;
30
-
31
- export declare function PaginationPrevious({ className, ...props }: React_2.ComponentProps<typeof PaginationLink>): JSX.Element;
32
-
33
- export { }
1
+ export * from './components/ui/pagination'
2
+ export {}
@@ -0,0 +1,116 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { MoreHorizontalIcon, ChevronRightIcon, ChevronLeftIcon } from "lucide-react";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ import { buttonVariants } from "./button.js";
5
+ function Pagination({ className, ...props }) {
6
+ return /* @__PURE__ */ jsx(
7
+ "nav",
8
+ {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ "data-slot": "pagination",
12
+ className: cn("mx-auto flex w-full justify-center", className),
13
+ ...props
14
+ }
15
+ );
16
+ }
17
+ function PaginationContent({
18
+ className,
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ jsx(
22
+ "ul",
23
+ {
24
+ "data-slot": "pagination-content",
25
+ className: cn("flex flex-row items-center gap-1", className),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function PaginationItem({ ...props }) {
31
+ return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
32
+ }
33
+ function PaginationLink({
34
+ className,
35
+ isActive,
36
+ size = "icon",
37
+ ...props
38
+ }) {
39
+ return /* @__PURE__ */ jsx(
40
+ "a",
41
+ {
42
+ "aria-current": isActive ? "page" : void 0,
43
+ "data-slot": "pagination-link",
44
+ "data-active": isActive,
45
+ className: cn(
46
+ buttonVariants({
47
+ variant: isActive ? "outline" : "ghost",
48
+ size
49
+ }),
50
+ className
51
+ ),
52
+ ...props
53
+ }
54
+ );
55
+ }
56
+ function PaginationPrevious({
57
+ className,
58
+ ...props
59
+ }) {
60
+ return /* @__PURE__ */ jsxs(
61
+ PaginationLink,
62
+ {
63
+ "aria-label": "Go to previous page",
64
+ className: cn("gap-1 px-2.5 sm:pl-2.5", className),
65
+ ...props,
66
+ children: [
67
+ /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
68
+ /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Previous" })
69
+ ]
70
+ }
71
+ );
72
+ }
73
+ function PaginationNext({
74
+ className,
75
+ ...props
76
+ }) {
77
+ return /* @__PURE__ */ jsxs(
78
+ PaginationLink,
79
+ {
80
+ "aria-label": "Go to next page",
81
+ className: cn("gap-1 px-2.5 sm:pr-2.5", className),
82
+ ...props,
83
+ children: [
84
+ /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Next" }),
85
+ /* @__PURE__ */ jsx(ChevronRightIcon, {})
86
+ ]
87
+ }
88
+ );
89
+ }
90
+ function PaginationEllipsis({
91
+ className,
92
+ ...props
93
+ }) {
94
+ return /* @__PURE__ */ jsxs(
95
+ "span",
96
+ {
97
+ "aria-hidden": true,
98
+ "data-slot": "pagination-ellipsis",
99
+ className: cn("flex size-9 items-center justify-center", className),
100
+ ...props,
101
+ children: [
102
+ /* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }),
103
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
104
+ ]
105
+ }
106
+ );
107
+ }
108
+ export {
109
+ Pagination,
110
+ PaginationContent,
111
+ PaginationEllipsis,
112
+ PaginationItem,
113
+ PaginationLink,
114
+ PaginationNext,
115
+ PaginationPrevious
116
+ };
package/dist/popover.d.ts CHANGED
@@ -1,13 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- import * as React_2 from 'react';
4
-
5
- export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
6
-
7
- export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX.Element;
8
-
9
- export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX.Element;
10
-
11
- export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
12
-
13
- export { }
1
+ export * from './components/ui/popover'
2
+ export {}
@@ -0,0 +1,44 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function Popover({
5
+ ...props
6
+ }) {
7
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
8
+ }
9
+ function PopoverTrigger({
10
+ ...props
11
+ }) {
12
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
13
+ }
14
+ function PopoverContent({
15
+ className,
16
+ align = "center",
17
+ sideOffset = 4,
18
+ ...props
19
+ }) {
20
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
21
+ PopoverPrimitive.Content,
22
+ {
23
+ "data-slot": "popover-content",
24
+ align,
25
+ sideOffset,
26
+ className: cn(
27
+ "bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
28
+ className
29
+ ),
30
+ ...props
31
+ }
32
+ ) });
33
+ }
34
+ function PopoverAnchor({
35
+ ...props
36
+ }) {
37
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
38
+ }
39
+ export {
40
+ Popover,
41
+ PopoverAnchor,
42
+ PopoverContent,
43
+ PopoverTrigger
44
+ };
@@ -1,7 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as ProgressPrimitive from '@radix-ui/react-progress';
3
- import * as React_2 from 'react';
4
-
5
- export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element;
6
-
7
- export { }
1
+ export * from './components/ui/progress'
2
+ export {}
@@ -0,0 +1,31 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function Progress({
5
+ className,
6
+ value,
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ ProgressPrimitive.Root,
11
+ {
12
+ "data-slot": "progress",
13
+ className: cn(
14
+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
15
+ className
16
+ ),
17
+ ...props,
18
+ children: /* @__PURE__ */ jsx(
19
+ ProgressPrimitive.Indicator,
20
+ {
21
+ "data-slot": "progress-indicator",
22
+ className: "bg-primary h-full w-full flex-1 transition-all",
23
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
24
+ }
25
+ )
26
+ }
27
+ );
28
+ }
29
+ export {
30
+ Progress
31
+ };
@@ -1,9 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- import * as React_2 from 'react';
4
-
5
- export declare function RadioGroup({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Root>): JSX.Element;
6
-
7
- export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element;
8
-
9
- export { }
1
+ export * from './components/ui/radio-group'
2
+ export {}
@@ -0,0 +1,45 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ import { CircleIcon } from "lucide-react";
4
+ import { c as cn } from "./utils-CzDCF-Ah.js";
5
+ function RadioGroup({
6
+ className,
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ RadioGroupPrimitive.Root,
11
+ {
12
+ "data-slot": "radio-group",
13
+ className: cn("grid gap-3", className),
14
+ ...props
15
+ }
16
+ );
17
+ }
18
+ function RadioGroupItem({
19
+ className,
20
+ ...props
21
+ }) {
22
+ return /* @__PURE__ */ jsx(
23
+ RadioGroupPrimitive.Item,
24
+ {
25
+ "data-slot": "radio-group-item",
26
+ className: cn(
27
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
28
+ className
29
+ ),
30
+ ...props,
31
+ children: /* @__PURE__ */ jsx(
32
+ RadioGroupPrimitive.Indicator,
33
+ {
34
+ "data-slot": "radio-group-indicator",
35
+ className: "relative flex items-center justify-center",
36
+ children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
37
+ }
38
+ )
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ RadioGroup,
44
+ RadioGroupItem
45
+ };
@@ -1,13 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as ResizablePrimitive from 'react-resizable-panels';
4
-
5
- export declare function ResizableHandle({ withHandle, className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
6
- withHandle?: boolean;
7
- }): JSX.Element;
8
-
9
- export declare function ResizablePanel({ ...props }: React_2.ComponentProps<typeof ResizablePrimitive.Panel>): JSX.Element;
10
-
11
- export declare function ResizablePanelGroup({ className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element;
12
-
13
- export { }
1
+ export * from './components/ui/resizable'
2
+ export {}
@@ -0,0 +1,48 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { GripVerticalIcon } from "lucide-react";
3
+ import * as ResizablePrimitive from "react-resizable-panels";
4
+ import { c as cn } from "./utils-CzDCF-Ah.js";
5
+ function ResizablePanelGroup({
6
+ className,
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ ResizablePrimitive.PanelGroup,
11
+ {
12
+ "data-slot": "resizable-panel-group",
13
+ className: cn(
14
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ );
20
+ }
21
+ function ResizablePanel({
22
+ ...props
23
+ }) {
24
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
25
+ }
26
+ function ResizableHandle({
27
+ withHandle,
28
+ className,
29
+ ...props
30
+ }) {
31
+ return /* @__PURE__ */ jsx(
32
+ ResizablePrimitive.PanelResizeHandle,
33
+ {
34
+ "data-slot": "resizable-handle",
35
+ className: cn(
36
+ "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
37
+ className
38
+ ),
39
+ ...props,
40
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsx(GripVerticalIcon, { className: "size-2.5" }) })
41
+ }
42
+ );
43
+ }
44
+ export {
45
+ ResizableHandle,
46
+ ResizablePanel,
47
+ ResizablePanelGroup
48
+ };
@@ -1,9 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
4
-
5
- export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
6
-
7
- export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
8
-
9
- export { }
1
+ export * from './components/ui/scroll-area'
2
+ export {}
@@ -0,0 +1,60 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function ScrollArea({
5
+ className,
6
+ children,
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsxs(
10
+ ScrollAreaPrimitive.Root,
11
+ {
12
+ "data-slot": "scroll-area",
13
+ className: cn("relative", className),
14
+ ...props,
15
+ children: [
16
+ /* @__PURE__ */ jsx(
17
+ ScrollAreaPrimitive.Viewport,
18
+ {
19
+ "data-slot": "scroll-area-viewport",
20
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
21
+ children
22
+ }
23
+ ),
24
+ /* @__PURE__ */ jsx(ScrollBar, {}),
25
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ function ScrollBar({
31
+ className,
32
+ orientation = "vertical",
33
+ ...props
34
+ }) {
35
+ return /* @__PURE__ */ jsx(
36
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
37
+ {
38
+ "data-slot": "scroll-area-scrollbar",
39
+ orientation,
40
+ className: cn(
41
+ "flex touch-none p-px transition-colors select-none",
42
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
43
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
44
+ className
45
+ ),
46
+ ...props,
47
+ children: /* @__PURE__ */ jsx(
48
+ ScrollAreaPrimitive.ScrollAreaThumb,
49
+ {
50
+ "data-slot": "scroll-area-thumb",
51
+ className: "bg-border relative flex-1 rounded-full"
52
+ }
53
+ )
54
+ }
55
+ );
56
+ }
57
+ export {
58
+ ScrollArea,
59
+ ScrollBar
60
+ };
package/dist/select.d.ts CHANGED
@@ -1,27 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as SelectPrimitive from '@radix-ui/react-select';
4
-
5
- export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
6
-
7
- export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
8
-
9
- export declare function SelectGroup({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
10
-
11
- export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
12
-
13
- export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
14
-
15
- export declare function SelectScrollDownButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element;
16
-
17
- export declare function SelectScrollUpButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element;
18
-
19
- export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
20
-
21
- export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
22
- size?: "sm" | "default";
23
- }): JSX.Element;
24
-
25
- export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
26
-
27
- export { }
1
+ export * from './components/ui/select'
2
+ export {}
package/dist/select.js ADDED
@@ -0,0 +1,169 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
4
+ import { c as cn } from "./utils-CzDCF-Ah.js";
5
+ function Select({
6
+ ...props
7
+ }) {
8
+ return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
9
+ }
10
+ function SelectGroup({
11
+ ...props
12
+ }) {
13
+ return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
14
+ }
15
+ function SelectValue({
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
19
+ }
20
+ function SelectTrigger({
21
+ className,
22
+ size = "default",
23
+ children,
24
+ ...props
25
+ }) {
26
+ return /* @__PURE__ */ jsxs(
27
+ SelectPrimitive.Trigger,
28
+ {
29
+ "data-slot": "select-trigger",
30
+ "data-size": size,
31
+ className: cn(
32
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
33
+ className
34
+ ),
35
+ ...props,
36
+ children: [
37
+ children,
38
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ function SelectContent({
44
+ className,
45
+ children,
46
+ position = "popper",
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
50
+ SelectPrimitive.Content,
51
+ {
52
+ "data-slot": "select-content",
53
+ className: cn(
54
+ "bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
55
+ position === "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",
56
+ className
57
+ ),
58
+ position,
59
+ ...props,
60
+ children: [
61
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
62
+ /* @__PURE__ */ jsx(
63
+ SelectPrimitive.Viewport,
64
+ {
65
+ className: cn(
66
+ "p-1",
67
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
68
+ ),
69
+ children
70
+ }
71
+ ),
72
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
73
+ ]
74
+ }
75
+ ) });
76
+ }
77
+ function SelectLabel({
78
+ className,
79
+ ...props
80
+ }) {
81
+ return /* @__PURE__ */ jsx(
82
+ SelectPrimitive.Label,
83
+ {
84
+ "data-slot": "select-label",
85
+ className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
86
+ ...props
87
+ }
88
+ );
89
+ }
90
+ function SelectItem({
91
+ className,
92
+ children,
93
+ ...props
94
+ }) {
95
+ return /* @__PURE__ */ jsxs(
96
+ SelectPrimitive.Item,
97
+ {
98
+ "data-slot": "select-item",
99
+ className: cn(
100
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
101
+ className
102
+ ),
103
+ ...props,
104
+ children: [
105
+ /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
106
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
107
+ ]
108
+ }
109
+ );
110
+ }
111
+ function SelectSeparator({
112
+ className,
113
+ ...props
114
+ }) {
115
+ return /* @__PURE__ */ jsx(
116
+ SelectPrimitive.Separator,
117
+ {
118
+ "data-slot": "select-separator",
119
+ className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
120
+ ...props
121
+ }
122
+ );
123
+ }
124
+ function SelectScrollUpButton({
125
+ className,
126
+ ...props
127
+ }) {
128
+ return /* @__PURE__ */ jsx(
129
+ SelectPrimitive.ScrollUpButton,
130
+ {
131
+ "data-slot": "select-scroll-up-button",
132
+ className: cn(
133
+ "flex cursor-default items-center justify-center py-1",
134
+ className
135
+ ),
136
+ ...props,
137
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
138
+ }
139
+ );
140
+ }
141
+ function SelectScrollDownButton({
142
+ className,
143
+ ...props
144
+ }) {
145
+ return /* @__PURE__ */ jsx(
146
+ SelectPrimitive.ScrollDownButton,
147
+ {
148
+ "data-slot": "select-scroll-down-button",
149
+ className: cn(
150
+ "flex cursor-default items-center justify-center py-1",
151
+ className
152
+ ),
153
+ ...props,
154
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
155
+ }
156
+ );
157
+ }
158
+ export {
159
+ Select,
160
+ SelectContent,
161
+ SelectGroup,
162
+ SelectItem,
163
+ SelectLabel,
164
+ SelectScrollDownButton,
165
+ SelectScrollUpButton,
166
+ SelectSeparator,
167
+ SelectTrigger,
168
+ SelectValue
169
+ };
@@ -1,7 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
4
-
5
- export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
6
-
7
- export { }
1
+ export * from './components/ui/separator'
2
+ export {}