@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
@@ -0,0 +1,26 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function Separator({
5
+ className,
6
+ orientation = "horizontal",
7
+ decorative = true,
8
+ ...props
9
+ }) {
10
+ return /* @__PURE__ */ jsx(
11
+ SeparatorPrimitive.Root,
12
+ {
13
+ "data-slot": "separator",
14
+ decorative,
15
+ orientation,
16
+ className: cn(
17
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
18
+ className
19
+ ),
20
+ ...props
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ Separator
26
+ };
package/dist/sheet.d.ts CHANGED
@@ -1,23 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as SheetPrimitive from '@radix-ui/react-dialog';
4
-
5
- export declare function Sheet({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Root>): JSX.Element;
6
-
7
- export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Close>): JSX.Element;
8
-
9
- export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Content> & {
10
- side?: "top" | "right" | "bottom" | "left";
11
- }): JSX.Element;
12
-
13
- export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Description>): JSX.Element;
14
-
15
- export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
16
-
17
- export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
18
-
19
- export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Title>): JSX.Element;
20
-
21
- export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element;
22
-
23
- export { }
1
+ export * from './components/ui/sheet'
2
+ export {}
package/dist/sheet.js ADDED
@@ -0,0 +1,126 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ import { XIcon } from "lucide-react";
4
+ import { c as cn } from "./utils-CzDCF-Ah.js";
5
+ function Sheet({ ...props }) {
6
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
7
+ }
8
+ function SheetTrigger({
9
+ ...props
10
+ }) {
11
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
12
+ }
13
+ function SheetClose({
14
+ ...props
15
+ }) {
16
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
17
+ }
18
+ function SheetPortal({
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
22
+ }
23
+ function SheetOverlay({
24
+ className,
25
+ ...props
26
+ }) {
27
+ return /* @__PURE__ */ jsx(
28
+ DialogPrimitive.Overlay,
29
+ {
30
+ "data-slot": "sheet-overlay",
31
+ className: cn(
32
+ "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",
33
+ className
34
+ ),
35
+ ...props
36
+ }
37
+ );
38
+ }
39
+ function SheetContent({
40
+ className,
41
+ children,
42
+ side = "right",
43
+ ...props
44
+ }) {
45
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [
46
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
47
+ /* @__PURE__ */ jsxs(
48
+ DialogPrimitive.Content,
49
+ {
50
+ "data-slot": "sheet-content",
51
+ className: cn(
52
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
53
+ side === "right" && "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",
54
+ side === "left" && "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",
55
+ side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
56
+ side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
57
+ className
58
+ ),
59
+ ...props,
60
+ children: [
61
+ children,
62
+ /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
63
+ /* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
64
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
65
+ ] })
66
+ ]
67
+ }
68
+ )
69
+ ] });
70
+ }
71
+ function SheetHeader({ className, ...props }) {
72
+ return /* @__PURE__ */ jsx(
73
+ "div",
74
+ {
75
+ "data-slot": "sheet-header",
76
+ className: cn("flex flex-col gap-1.5 p-4", className),
77
+ ...props
78
+ }
79
+ );
80
+ }
81
+ function SheetFooter({ className, ...props }) {
82
+ return /* @__PURE__ */ jsx(
83
+ "div",
84
+ {
85
+ "data-slot": "sheet-footer",
86
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
87
+ ...props
88
+ }
89
+ );
90
+ }
91
+ function SheetTitle({
92
+ className,
93
+ ...props
94
+ }) {
95
+ return /* @__PURE__ */ jsx(
96
+ DialogPrimitive.Title,
97
+ {
98
+ "data-slot": "sheet-title",
99
+ className: cn("text-foreground font-semibold", className),
100
+ ...props
101
+ }
102
+ );
103
+ }
104
+ function SheetDescription({
105
+ className,
106
+ ...props
107
+ }) {
108
+ return /* @__PURE__ */ jsx(
109
+ DialogPrimitive.Description,
110
+ {
111
+ "data-slot": "sheet-description",
112
+ className: cn("text-muted-foreground text-sm", className),
113
+ ...props
114
+ }
115
+ );
116
+ }
117
+ export {
118
+ Sheet,
119
+ SheetClose,
120
+ SheetContent,
121
+ SheetDescription,
122
+ SheetFooter,
123
+ SheetHeader,
124
+ SheetTitle,
125
+ SheetTrigger
126
+ };
@@ -1,5 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
4
-
5
- export { }
1
+ export * from './components/ui/skeleton'
2
+ export {}
@@ -0,0 +1,15 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { c as cn } from "./utils-CzDCF-Ah.js";
3
+ function Skeleton({ className, ...props }) {
4
+ return /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ "data-slot": "skeleton",
8
+ className: cn("bg-accent animate-pulse rounded-md", className),
9
+ ...props
10
+ }
11
+ );
12
+ }
13
+ export {
14
+ Skeleton
15
+ };
package/dist/slider.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as SliderPrimitive from '@radix-ui/react-slider';
4
-
5
- export declare function Slider({ className, defaultValue, value, min, max, ...props }: React_2.ComponentProps<typeof SliderPrimitive.Root>): JSX.Element;
6
-
7
- export { }
1
+ export * from './components/ui/slider'
2
+ export {}
@@ -1,63 +1,63 @@
1
- import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import * as a from "@radix-ui/react-slider";
4
- import { c as n } from "./utils-B7J70Nno.js";
5
- function g({
6
- className: l,
7
- defaultValue: r,
8
- value: t,
9
- min: o = 0,
10
- max: i = 100,
11
- ...s
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as SliderPrimitive from "@radix-ui/react-slider";
4
+ import { c as cn } from "./utils-CzDCF-Ah.js";
5
+ function Slider({
6
+ className,
7
+ defaultValue,
8
+ value,
9
+ min = 0,
10
+ max = 100,
11
+ ...props
12
12
  }) {
13
- const d = m.useMemo(
14
- () => Array.isArray(t) ? t : Array.isArray(r) ? r : [o, i],
15
- [t, r, o, i]
13
+ const _values = React.useMemo(
14
+ () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
15
+ [value, defaultValue, min, max]
16
16
  );
17
- return /* @__PURE__ */ h(
18
- a.Root,
17
+ return /* @__PURE__ */ jsxs(
18
+ SliderPrimitive.Root,
19
19
  {
20
20
  "data-slot": "slider",
21
- defaultValue: r,
22
- value: t,
23
- min: o,
24
- max: i,
25
- className: n(
21
+ defaultValue,
22
+ value,
23
+ min,
24
+ max,
25
+ className: cn(
26
26
  "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
27
- l
27
+ className
28
28
  ),
29
- ...s,
29
+ ...props,
30
30
  children: [
31
- /* @__PURE__ */ e(
32
- a.Track,
31
+ /* @__PURE__ */ jsx(
32
+ SliderPrimitive.Track,
33
33
  {
34
34
  "data-slot": "slider-track",
35
- className: n(
35
+ className: cn(
36
36
  "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
37
37
  ),
38
- children: /* @__PURE__ */ e(
39
- a.Range,
38
+ children: /* @__PURE__ */ jsx(
39
+ SliderPrimitive.Range,
40
40
  {
41
41
  "data-slot": "slider-range",
42
- className: n(
42
+ className: cn(
43
43
  "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
44
44
  )
45
45
  }
46
46
  )
47
47
  }
48
48
  ),
49
- Array.from({ length: d.length }, (b, c) => /* @__PURE__ */ e(
50
- a.Thumb,
49
+ Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(
50
+ SliderPrimitive.Thumb,
51
51
  {
52
52
  "data-slot": "slider-thumb",
53
53
  className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
54
54
  },
55
- c
55
+ index
56
56
  ))
57
57
  ]
58
58
  }
59
59
  );
60
60
  }
61
61
  export {
62
- g as Slider
62
+ Slider
63
63
  };
package/dist/sonner.d.ts CHANGED
@@ -1,6 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import { ToasterProps } from 'sonner';
3
-
4
- export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
5
-
6
- export { }
1
+ export * from './components/ui/sonner'
2
+ export {}
package/dist/sonner.js ADDED
@@ -0,0 +1,22 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useTheme } from "@0xchain/next-themes";
3
+ import { Toaster as Toaster$1 } from "sonner";
4
+ const Toaster = ({ ...props }) => {
5
+ const { theme = "system" } = useTheme();
6
+ return /* @__PURE__ */ jsx(
7
+ Toaster$1,
8
+ {
9
+ theme,
10
+ className: "toaster group",
11
+ style: {
12
+ "--normal-bg": "var(--popover)",
13
+ "--normal-text": "var(--popover-foreground)",
14
+ "--normal-border": "var(--border)"
15
+ },
16
+ ...props
17
+ }
18
+ );
19
+ };
20
+ export {
21
+ Toaster
22
+ };
package/dist/switch.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as SwitchPrimitive from '@radix-ui/react-switch';
4
-
5
- export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
6
-
7
- export { }
1
+ export * from './components/ui/switch'
2
+ export {}
@@ -1,24 +1,24 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import * as t from "@radix-ui/react-switch";
3
- import { c as a } from "./utils-B7J70Nno.js";
4
- function o({
5
- className: r,
6
- ...n
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function Switch({
5
+ className,
6
+ ...props
7
7
  }) {
8
- return /* @__PURE__ */ e(
9
- t.Root,
8
+ return /* @__PURE__ */ jsx(
9
+ SwitchPrimitive.Root,
10
10
  {
11
11
  "data-slot": "switch",
12
- className: a(
12
+ className: cn(
13
13
  "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
14
- r
14
+ className
15
15
  ),
16
- ...n,
17
- children: /* @__PURE__ */ e(
18
- t.Thumb,
16
+ ...props,
17
+ children: /* @__PURE__ */ jsx(
18
+ SwitchPrimitive.Thumb,
19
19
  {
20
20
  "data-slot": "switch-thumb",
21
- className: a(
21
+ className: cn(
22
22
  "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
23
23
  )
24
24
  }
@@ -27,5 +27,5 @@ function o({
27
27
  );
28
28
  }
29
29
  export {
30
- o as Switch
30
+ Switch
31
31
  };
package/dist/table.d.ts CHANGED
@@ -1,20 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
-
4
- export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
5
-
6
- export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
7
-
8
- export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
9
-
10
- export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
11
-
12
- export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
13
-
14
- export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
15
-
16
- export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
17
-
18
- export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
19
-
20
- export { }
1
+ export * from './components/ui/table'
2
+ export {}
package/dist/table.js ADDED
@@ -0,0 +1,114 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { c as cn } from "./utils-CzDCF-Ah.js";
3
+ function Table({ className, ...props }) {
4
+ return /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ "data-slot": "table-container",
8
+ className: "relative w-full overflow-x-auto",
9
+ children: /* @__PURE__ */ jsx(
10
+ "table",
11
+ {
12
+ "data-slot": "table",
13
+ className: cn("w-full caption-bottom text-sm", className),
14
+ ...props
15
+ }
16
+ )
17
+ }
18
+ );
19
+ }
20
+ function TableHeader({ className, ...props }) {
21
+ return /* @__PURE__ */ jsx(
22
+ "thead",
23
+ {
24
+ "data-slot": "table-header",
25
+ className: cn("[&_tr]:border-b", className),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function TableBody({ className, ...props }) {
31
+ return /* @__PURE__ */ jsx(
32
+ "tbody",
33
+ {
34
+ "data-slot": "table-body",
35
+ className: cn("[&_tr:last-child]:border-0", className),
36
+ ...props
37
+ }
38
+ );
39
+ }
40
+ function TableFooter({ className, ...props }) {
41
+ return /* @__PURE__ */ jsx(
42
+ "tfoot",
43
+ {
44
+ "data-slot": "table-footer",
45
+ className: cn(
46
+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
47
+ className
48
+ ),
49
+ ...props
50
+ }
51
+ );
52
+ }
53
+ function TableRow({ className, ...props }) {
54
+ return /* @__PURE__ */ jsx(
55
+ "tr",
56
+ {
57
+ "data-slot": "table-row",
58
+ className: cn(
59
+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
60
+ className
61
+ ),
62
+ ...props
63
+ }
64
+ );
65
+ }
66
+ function TableHead({ className, ...props }) {
67
+ return /* @__PURE__ */ jsx(
68
+ "th",
69
+ {
70
+ "data-slot": "table-head",
71
+ className: cn(
72
+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
73
+ className
74
+ ),
75
+ ...props
76
+ }
77
+ );
78
+ }
79
+ function TableCell({ className, ...props }) {
80
+ return /* @__PURE__ */ jsx(
81
+ "td",
82
+ {
83
+ "data-slot": "table-cell",
84
+ className: cn(
85
+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
86
+ className
87
+ ),
88
+ ...props
89
+ }
90
+ );
91
+ }
92
+ function TableCaption({
93
+ className,
94
+ ...props
95
+ }) {
96
+ return /* @__PURE__ */ jsx(
97
+ "caption",
98
+ {
99
+ "data-slot": "table-caption",
100
+ className: cn("text-muted-foreground mt-4 text-sm", className),
101
+ ...props
102
+ }
103
+ );
104
+ }
105
+ export {
106
+ Table,
107
+ TableBody,
108
+ TableCaption,
109
+ TableCell,
110
+ TableFooter,
111
+ TableHead,
112
+ TableHeader,
113
+ TableRow
114
+ };
package/dist/tabs.d.ts CHANGED
@@ -1,13 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import * as TabsPrimitive from '@radix-ui/react-tabs';
4
-
5
- export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
6
-
7
- export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
8
-
9
- export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
10
-
11
- export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
12
-
13
- export { }
1
+ export * from './components/ui/tabs'
2
+ export {}
@@ -1,67 +1,67 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as s from "@radix-ui/react-tabs";
3
- import { c as i } from "./utils-B7J70Nno.js";
4
- function o({
5
- className: t,
6
- ...e
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ import { c as cn } from "./utils-CzDCF-Ah.js";
4
+ function Tabs({
5
+ className,
6
+ ...props
7
7
  }) {
8
- return /* @__PURE__ */ a(
9
- s.Root,
8
+ return /* @__PURE__ */ jsx(
9
+ TabsPrimitive.Root,
10
10
  {
11
11
  "data-slot": "tabs",
12
- className: i("flex flex-col gap-2", t),
13
- ...e
12
+ className: cn("flex flex-col gap-2", className),
13
+ ...props
14
14
  }
15
15
  );
16
16
  }
17
- function d({
18
- className: t,
19
- ...e
17
+ function TabsList({
18
+ className,
19
+ ...props
20
20
  }) {
21
- return /* @__PURE__ */ a(
22
- s.List,
21
+ return /* @__PURE__ */ jsx(
22
+ TabsPrimitive.List,
23
23
  {
24
24
  "data-slot": "tabs-list",
25
- className: i(
25
+ className: cn(
26
26
  "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
27
- t
27
+ className
28
28
  ),
29
- ...e
29
+ ...props
30
30
  }
31
31
  );
32
32
  }
33
- function c({
34
- className: t,
35
- ...e
33
+ function TabsTrigger({
34
+ className,
35
+ ...props
36
36
  }) {
37
- return /* @__PURE__ */ a(
38
- s.Trigger,
37
+ return /* @__PURE__ */ jsx(
38
+ TabsPrimitive.Trigger,
39
39
  {
40
40
  "data-slot": "tabs-trigger",
41
- className: i(
41
+ className: cn(
42
42
  "data-[state=active]:bg-background dark: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/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 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",
43
- t
43
+ className
44
44
  ),
45
- ...e
45
+ ...props
46
46
  }
47
47
  );
48
48
  }
49
- function l({
50
- className: t,
51
- ...e
49
+ function TabsContent({
50
+ className,
51
+ ...props
52
52
  }) {
53
- return /* @__PURE__ */ a(
54
- s.Content,
53
+ return /* @__PURE__ */ jsx(
54
+ TabsPrimitive.Content,
55
55
  {
56
56
  "data-slot": "tabs-content",
57
- className: i("flex-1 outline-none", t),
58
- ...e
57
+ className: cn("flex-1 outline-none", className),
58
+ ...props
59
59
  }
60
60
  );
61
61
  }
62
62
  export {
63
- o as Tabs,
64
- l as TabsContent,
65
- d as TabsList,
66
- c as TabsTrigger
63
+ Tabs,
64
+ TabsContent,
65
+ TabsList,
66
+ TabsTrigger
67
67
  };
@@ -1,6 +1,2 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
-
4
- export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
5
-
6
- export { }
1
+ export * from './components/ui/textarea'
2
+ export {}