@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
package/dist/select.mjs DELETED
@@ -1,169 +0,0 @@
1
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import * as a from "@radix-ui/react-select";
3
- import { CheckIcon as d, ChevronDownIcon as i, ChevronUpIcon as c } from "lucide-react";
4
- import { c as s } from "./utils-B7J70Nno.js";
5
- function v({
6
- ...e
7
- }) {
8
- return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
9
- }
10
- function x({
11
- ...e
12
- }) {
13
- return /* @__PURE__ */ t(a.Group, { "data-slot": "select-group", ...e });
14
- }
15
- function h({
16
- ...e
17
- }) {
18
- return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
19
- }
20
- function b({
21
- className: e,
22
- size: r = "default",
23
- children: o,
24
- ...n
25
- }) {
26
- return /* @__PURE__ */ l(
27
- a.Trigger,
28
- {
29
- "data-slot": "select-trigger",
30
- "data-size": r,
31
- className: s(
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
- e
34
- ),
35
- ...n,
36
- children: [
37
- o,
38
- /* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "size-4 opacity-50" }) })
39
- ]
40
- }
41
- );
42
- }
43
- function w({
44
- className: e,
45
- children: r,
46
- position: o = "popper",
47
- ...n
48
- }) {
49
- return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(
50
- a.Content,
51
- {
52
- "data-slot": "select-content",
53
- className: s(
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
- o === "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
- e
57
- ),
58
- position: o,
59
- ...n,
60
- children: [
61
- /* @__PURE__ */ t(u, {}),
62
- /* @__PURE__ */ t(
63
- a.Viewport,
64
- {
65
- className: s(
66
- "p-1",
67
- o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
68
- ),
69
- children: r
70
- }
71
- ),
72
- /* @__PURE__ */ t(p, {})
73
- ]
74
- }
75
- ) });
76
- }
77
- function y({
78
- className: e,
79
- ...r
80
- }) {
81
- return /* @__PURE__ */ t(
82
- a.Label,
83
- {
84
- "data-slot": "select-label",
85
- className: s("text-muted-foreground px-2 py-1.5 text-xs", e),
86
- ...r
87
- }
88
- );
89
- }
90
- function S({
91
- className: e,
92
- children: r,
93
- ...o
94
- }) {
95
- return /* @__PURE__ */ l(
96
- a.Item,
97
- {
98
- "data-slot": "select-item",
99
- className: s(
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
- e
102
- ),
103
- ...o,
104
- children: [
105
- /* @__PURE__ */ t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(d, { className: "size-4" }) }) }),
106
- /* @__PURE__ */ t(a.ItemText, { children: r })
107
- ]
108
- }
109
- );
110
- }
111
- function z({
112
- className: e,
113
- ...r
114
- }) {
115
- return /* @__PURE__ */ t(
116
- a.Separator,
117
- {
118
- "data-slot": "select-separator",
119
- className: s("bg-border pointer-events-none -mx-1 my-1 h-px", e),
120
- ...r
121
- }
122
- );
123
- }
124
- function u({
125
- className: e,
126
- ...r
127
- }) {
128
- return /* @__PURE__ */ t(
129
- a.ScrollUpButton,
130
- {
131
- "data-slot": "select-scroll-up-button",
132
- className: s(
133
- "flex cursor-default items-center justify-center py-1",
134
- e
135
- ),
136
- ...r,
137
- children: /* @__PURE__ */ t(c, { className: "size-4" })
138
- }
139
- );
140
- }
141
- function p({
142
- className: e,
143
- ...r
144
- }) {
145
- return /* @__PURE__ */ t(
146
- a.ScrollDownButton,
147
- {
148
- "data-slot": "select-scroll-down-button",
149
- className: s(
150
- "flex cursor-default items-center justify-center py-1",
151
- e
152
- ),
153
- ...r,
154
- children: /* @__PURE__ */ t(i, { className: "size-4" })
155
- }
156
- );
157
- }
158
- export {
159
- v as Select,
160
- w as SelectContent,
161
- x as SelectGroup,
162
- S as SelectItem,
163
- y as SelectLabel,
164
- p as SelectScrollDownButton,
165
- u as SelectScrollUpButton,
166
- z as SelectSeparator,
167
- b as SelectTrigger,
168
- h as SelectValue
169
- };
@@ -1,26 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import * as n from "@radix-ui/react-separator";
3
- import { c as e } from "./utils-B7J70Nno.js";
4
- function m({
5
- className: t,
6
- orientation: a = "horizontal",
7
- decorative: o = !0,
8
- ...r
9
- }) {
10
- return /* @__PURE__ */ i(
11
- n.Root,
12
- {
13
- "data-slot": "separator",
14
- decorative: o,
15
- orientation: a,
16
- className: e(
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
- t
19
- ),
20
- ...r
21
- }
22
- );
23
- }
24
- export {
25
- m as Separator
26
- };
package/dist/sheet.mjs DELETED
@@ -1,126 +0,0 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import * as a from "@radix-ui/react-dialog";
3
- import { XIcon as l } from "lucide-react";
4
- import { c as s } from "./utils-B7J70Nno.js";
5
- function h({ ...t }) {
6
- return /* @__PURE__ */ e(a.Root, { "data-slot": "sheet", ...t });
7
- }
8
- function p({
9
- ...t
10
- }) {
11
- return /* @__PURE__ */ e(a.Trigger, { "data-slot": "sheet-trigger", ...t });
12
- }
13
- function g({
14
- ...t
15
- }) {
16
- return /* @__PURE__ */ e(a.Close, { "data-slot": "sheet-close", ...t });
17
- }
18
- function d({
19
- ...t
20
- }) {
21
- return /* @__PURE__ */ e(a.Portal, { "data-slot": "sheet-portal", ...t });
22
- }
23
- function c({
24
- className: t,
25
- ...o
26
- }) {
27
- return /* @__PURE__ */ e(
28
- a.Overlay,
29
- {
30
- "data-slot": "sheet-overlay",
31
- className: s(
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
- t
34
- ),
35
- ...o
36
- }
37
- );
38
- }
39
- function x({
40
- className: t,
41
- children: o,
42
- side: n = "right",
43
- ...i
44
- }) {
45
- return /* @__PURE__ */ r(d, { children: [
46
- /* @__PURE__ */ e(c, {}),
47
- /* @__PURE__ */ r(
48
- a.Content,
49
- {
50
- "data-slot": "sheet-content",
51
- className: s(
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
- n === "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
- n === "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
- n === "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
- n === "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
- t
58
- ),
59
- ...i,
60
- children: [
61
- o,
62
- /* @__PURE__ */ r(a.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__ */ e(l, { className: "size-4" }),
64
- /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
65
- ] })
66
- ]
67
- }
68
- )
69
- ] });
70
- }
71
- function b({ className: t, ...o }) {
72
- return /* @__PURE__ */ e(
73
- "div",
74
- {
75
- "data-slot": "sheet-header",
76
- className: s("flex flex-col gap-1.5 p-4", t),
77
- ...o
78
- }
79
- );
80
- }
81
- function y({ className: t, ...o }) {
82
- return /* @__PURE__ */ e(
83
- "div",
84
- {
85
- "data-slot": "sheet-footer",
86
- className: s("mt-auto flex flex-col gap-2 p-4", t),
87
- ...o
88
- }
89
- );
90
- }
91
- function S({
92
- className: t,
93
- ...o
94
- }) {
95
- return /* @__PURE__ */ e(
96
- a.Title,
97
- {
98
- "data-slot": "sheet-title",
99
- className: s("text-foreground font-semibold", t),
100
- ...o
101
- }
102
- );
103
- }
104
- function N({
105
- className: t,
106
- ...o
107
- }) {
108
- return /* @__PURE__ */ e(
109
- a.Description,
110
- {
111
- "data-slot": "sheet-description",
112
- className: s("text-muted-foreground text-sm", t),
113
- ...o
114
- }
115
- );
116
- }
117
- export {
118
- h as Sheet,
119
- g as SheetClose,
120
- x as SheetContent,
121
- N as SheetDescription,
122
- y as SheetFooter,
123
- b as SheetHeader,
124
- S as SheetTitle,
125
- p as SheetTrigger
126
- };
package/dist/skeleton.mjs DELETED
@@ -1,15 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c as n } from "./utils-B7J70Nno.js";
3
- function m({ className: e, ...t }) {
4
- return /* @__PURE__ */ o(
5
- "div",
6
- {
7
- "data-slot": "skeleton",
8
- className: n("bg-accent animate-pulse rounded-md", e),
9
- ...t
10
- }
11
- );
12
- }
13
- export {
14
- m as Skeleton
15
- };
package/dist/sonner.mjs DELETED
@@ -1,22 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useTheme as t } from "@0xchain/next-themes";
3
- import { Toaster as s } from "sonner";
4
- const n = ({ ...r }) => {
5
- const { theme: o = "system" } = t();
6
- return /* @__PURE__ */ e(
7
- s,
8
- {
9
- theme: o,
10
- className: "toaster group",
11
- style: {
12
- "--normal-bg": "var(--popover)",
13
- "--normal-text": "var(--popover-foreground)",
14
- "--normal-border": "var(--border)"
15
- },
16
- ...r
17
- }
18
- );
19
- };
20
- export {
21
- n as Toaster
22
- };
package/dist/table.mjs DELETED
@@ -1,114 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { c as o } from "./utils-B7J70Nno.js";
3
- function n({ className: t, ...e }) {
4
- return /* @__PURE__ */ a(
5
- "div",
6
- {
7
- "data-slot": "table-container",
8
- className: "relative w-full overflow-x-auto",
9
- children: /* @__PURE__ */ a(
10
- "table",
11
- {
12
- "data-slot": "table",
13
- className: o("w-full caption-bottom text-sm", t),
14
- ...e
15
- }
16
- )
17
- }
18
- );
19
- }
20
- function s({ className: t, ...e }) {
21
- return /* @__PURE__ */ a(
22
- "thead",
23
- {
24
- "data-slot": "table-header",
25
- className: o("[&_tr]:border-b", t),
26
- ...e
27
- }
28
- );
29
- }
30
- function d({ className: t, ...e }) {
31
- return /* @__PURE__ */ a(
32
- "tbody",
33
- {
34
- "data-slot": "table-body",
35
- className: o("[&_tr:last-child]:border-0", t),
36
- ...e
37
- }
38
- );
39
- }
40
- function c({ className: t, ...e }) {
41
- return /* @__PURE__ */ a(
42
- "tfoot",
43
- {
44
- "data-slot": "table-footer",
45
- className: o(
46
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
47
- t
48
- ),
49
- ...e
50
- }
51
- );
52
- }
53
- function b({ className: t, ...e }) {
54
- return /* @__PURE__ */ a(
55
- "tr",
56
- {
57
- "data-slot": "table-row",
58
- className: o(
59
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
60
- t
61
- ),
62
- ...e
63
- }
64
- );
65
- }
66
- function i({ className: t, ...e }) {
67
- return /* @__PURE__ */ a(
68
- "th",
69
- {
70
- "data-slot": "table-head",
71
- className: o(
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
- t
74
- ),
75
- ...e
76
- }
77
- );
78
- }
79
- function m({ className: t, ...e }) {
80
- return /* @__PURE__ */ a(
81
- "td",
82
- {
83
- "data-slot": "table-cell",
84
- className: o(
85
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
86
- t
87
- ),
88
- ...e
89
- }
90
- );
91
- }
92
- function u({
93
- className: t,
94
- ...e
95
- }) {
96
- return /* @__PURE__ */ a(
97
- "caption",
98
- {
99
- "data-slot": "table-caption",
100
- className: o("text-muted-foreground mt-4 text-sm", t),
101
- ...e
102
- }
103
- );
104
- }
105
- export {
106
- n as Table,
107
- d as TableBody,
108
- u as TableCaption,
109
- m as TableCell,
110
- c as TableFooter,
111
- i as TableHead,
112
- s as TableHeader,
113
- b as TableRow
114
- };
@@ -1,62 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import * as d from "@radix-ui/react-toggle-group";
4
- import { c as l } from "./utils-B7J70Nno.js";
5
- import { toggleVariants as m } from "./toggle.mjs";
6
- const u = s.createContext({
7
- size: "default",
8
- variant: "default"
9
- });
10
- function p({
11
- className: r,
12
- variant: o,
13
- size: t,
14
- children: e,
15
- ...i
16
- }) {
17
- return /* @__PURE__ */ n(
18
- d.Root,
19
- {
20
- "data-slot": "toggle-group",
21
- "data-variant": o,
22
- "data-size": t,
23
- className: l(
24
- "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
25
- r
26
- ),
27
- ...i,
28
- children: /* @__PURE__ */ n(u.Provider, { value: { variant: o, size: t }, children: e })
29
- }
30
- );
31
- }
32
- function v({
33
- className: r,
34
- children: o,
35
- variant: t,
36
- size: e,
37
- ...i
38
- }) {
39
- const a = s.useContext(u);
40
- return /* @__PURE__ */ n(
41
- d.Item,
42
- {
43
- "data-slot": "toggle-group-item",
44
- "data-variant": a.variant || t,
45
- "data-size": a.size || e,
46
- className: l(
47
- m({
48
- variant: a.variant || t,
49
- size: a.size || e
50
- }),
51
- "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
52
- r
53
- ),
54
- ...i,
55
- children: o
56
- }
57
- );
58
- }
59
- export {
60
- p as ToggleGroup,
61
- v as ToggleGroupItem
62
- };
package/dist/tooltip.mjs DELETED
@@ -1,55 +0,0 @@
1
- import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
- import * as o from "@radix-ui/react-tooltip";
3
- import { c as d } from "./utils-B7J70Nno.js";
4
- function l({
5
- delayDuration: t = 0,
6
- ...r
7
- }) {
8
- return /* @__PURE__ */ i(
9
- o.Provider,
10
- {
11
- "data-slot": "tooltip-provider",
12
- delayDuration: t,
13
- ...r
14
- }
15
- );
16
- }
17
- function p({
18
- ...t
19
- }) {
20
- return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t }) });
21
- }
22
- function c({
23
- ...t
24
- }) {
25
- return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
26
- }
27
- function f({
28
- className: t,
29
- sideOffset: r = 0,
30
- children: e,
31
- ...a
32
- }) {
33
- return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ n(
34
- o.Content,
35
- {
36
- "data-slot": "tooltip-content",
37
- sideOffset: r,
38
- className: d(
39
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
40
- t
41
- ),
42
- ...a,
43
- children: [
44
- e,
45
- /* @__PURE__ */ i(o.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
46
- ]
47
- }
48
- ) });
49
- }
50
- export {
51
- p as Tooltip,
52
- f as TooltipContent,
53
- l as TooltipProvider,
54
- c as TooltipTrigger
55
- };
@@ -1,8 +0,0 @@
1
- import o from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function m(...r) {
4
- return t(o(r));
5
- }
6
- export {
7
- m as c
8
- };