@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,64 +0,0 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import * as n from "@radix-ui/react-accordion";
3
- import { ChevronDownIcon as s } from "lucide-react";
4
- import { c as i } from "./utils-B7J70Nno.js";
5
- function m({
6
- ...t
7
- }) {
8
- return /* @__PURE__ */ e(n.Root, { "data-slot": "accordion", ...t });
9
- }
10
- function f({
11
- className: t,
12
- ...o
13
- }) {
14
- return /* @__PURE__ */ e(
15
- n.Item,
16
- {
17
- "data-slot": "accordion-item",
18
- className: i("border-b last:border-b-0", t),
19
- ...o
20
- }
21
- );
22
- }
23
- function u({
24
- className: t,
25
- children: o,
26
- ...r
27
- }) {
28
- return /* @__PURE__ */ e(n.Header, { className: "flex", children: /* @__PURE__ */ a(
29
- n.Trigger,
30
- {
31
- "data-slot": "accordion-trigger",
32
- className: i(
33
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
34
- t
35
- ),
36
- ...r,
37
- children: [
38
- o,
39
- /* @__PURE__ */ e(s, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
40
- ]
41
- }
42
- ) });
43
- }
44
- function p({
45
- className: t,
46
- children: o,
47
- ...r
48
- }) {
49
- return /* @__PURE__ */ e(
50
- n.Content,
51
- {
52
- "data-slot": "accordion-content",
53
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
54
- ...r,
55
- children: /* @__PURE__ */ e("div", { className: i("pt-0 pb-4", t), children: o })
56
- }
57
- );
58
- }
59
- export {
60
- m as Accordion,
61
- p as AccordionContent,
62
- f as AccordionItem,
63
- u as AccordionTrigger
64
- };
@@ -1,146 +0,0 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import * as o from "@radix-ui/react-alert-dialog";
3
- import { c as l } from "./utils-B7J70Nno.js";
4
- import { buttonVariants as r } from "./button.mjs";
5
- function u({
6
- ...t
7
- }) {
8
- return /* @__PURE__ */ e(o.Root, { "data-slot": "alert-dialog", ...t });
9
- }
10
- function f({
11
- ...t
12
- }) {
13
- return /* @__PURE__ */ e(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
14
- }
15
- function i({
16
- ...t
17
- }) {
18
- return /* @__PURE__ */ e(o.Portal, { "data-slot": "alert-dialog-portal", ...t });
19
- }
20
- function s({
21
- className: t,
22
- ...a
23
- }) {
24
- return /* @__PURE__ */ e(
25
- o.Overlay,
26
- {
27
- "data-slot": "alert-dialog-overlay",
28
- className: l(
29
- "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",
30
- t
31
- ),
32
- ...a
33
- }
34
- );
35
- }
36
- function m({
37
- className: t,
38
- ...a
39
- }) {
40
- return /* @__PURE__ */ n(i, { children: [
41
- /* @__PURE__ */ e(s, {}),
42
- /* @__PURE__ */ e(
43
- o.Content,
44
- {
45
- "data-slot": "alert-dialog-content",
46
- className: l(
47
- "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
48
- t
49
- ),
50
- ...a
51
- }
52
- )
53
- ] });
54
- }
55
- function p({
56
- className: t,
57
- ...a
58
- }) {
59
- return /* @__PURE__ */ e(
60
- "div",
61
- {
62
- "data-slot": "alert-dialog-header",
63
- className: l("flex flex-col gap-2 text-center sm:text-left", t),
64
- ...a
65
- }
66
- );
67
- }
68
- function x({
69
- className: t,
70
- ...a
71
- }) {
72
- return /* @__PURE__ */ e(
73
- "div",
74
- {
75
- "data-slot": "alert-dialog-footer",
76
- className: l(
77
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
78
- t
79
- ),
80
- ...a
81
- }
82
- );
83
- }
84
- function A({
85
- className: t,
86
- ...a
87
- }) {
88
- return /* @__PURE__ */ e(
89
- o.Title,
90
- {
91
- "data-slot": "alert-dialog-title",
92
- className: l("text-lg font-semibold", t),
93
- ...a
94
- }
95
- );
96
- }
97
- function D({
98
- className: t,
99
- ...a
100
- }) {
101
- return /* @__PURE__ */ e(
102
- o.Description,
103
- {
104
- "data-slot": "alert-dialog-description",
105
- className: l("text-muted-foreground text-sm", t),
106
- ...a
107
- }
108
- );
109
- }
110
- function v({
111
- className: t,
112
- ...a
113
- }) {
114
- return /* @__PURE__ */ e(
115
- o.Action,
116
- {
117
- className: l(r(), t),
118
- ...a
119
- }
120
- );
121
- }
122
- function N({
123
- className: t,
124
- ...a
125
- }) {
126
- return /* @__PURE__ */ e(
127
- o.Cancel,
128
- {
129
- className: l(r({ variant: "outline" }), t),
130
- ...a
131
- }
132
- );
133
- }
134
- export {
135
- u as AlertDialog,
136
- v as AlertDialogAction,
137
- N as AlertDialogCancel,
138
- m as AlertDialogContent,
139
- D as AlertDialogDescription,
140
- x as AlertDialogFooter,
141
- p as AlertDialogHeader,
142
- s as AlertDialogOverlay,
143
- i as AlertDialogPortal,
144
- A as AlertDialogTitle,
145
- f as AlertDialogTrigger
146
- };
@@ -1,10 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as i from "@radix-ui/react-aspect-ratio";
3
- function a({
4
- ...t
5
- }) {
6
- return /* @__PURE__ */ o(i.Root, { "data-slot": "aspect-ratio", ...t });
7
- }
8
- export {
9
- a as AspectRatio
10
- };
package/dist/avatar.mjs DELETED
@@ -1,53 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import * as r from "@radix-ui/react-avatar";
3
- import { c as l } from "./utils-B7J70Nno.js";
4
- function i({
5
- className: a,
6
- ...t
7
- }) {
8
- return /* @__PURE__ */ e(
9
- r.Root,
10
- {
11
- "data-slot": "avatar",
12
- className: l(
13
- "relative flex size-8 shrink-0 overflow-hidden rounded-full",
14
- a
15
- ),
16
- ...t
17
- }
18
- );
19
- }
20
- function n({
21
- className: a,
22
- ...t
23
- }) {
24
- return /* @__PURE__ */ e(
25
- r.Image,
26
- {
27
- "data-slot": "avatar-image",
28
- className: l("aspect-square size-full", a),
29
- ...t
30
- }
31
- );
32
- }
33
- function f({
34
- className: a,
35
- ...t
36
- }) {
37
- return /* @__PURE__ */ e(
38
- r.Fallback,
39
- {
40
- "data-slot": "avatar-fallback",
41
- className: l(
42
- "bg-muted flex size-full items-center justify-center rounded-full",
43
- a
44
- ),
45
- ...t
46
- }
47
- );
48
- }
49
- export {
50
- i as Avatar,
51
- f as AvatarFallback,
52
- n as AvatarImage
53
- };
@@ -1,102 +0,0 @@
1
- import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
- import { Slot as o } from "@radix-ui/react-slot";
3
- import { ChevronRight as i, MoreHorizontal as l } from "lucide-react";
4
- import { c as t } from "./utils-B7J70Nno.js";
5
- function p({ ...r }) {
6
- return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
7
- }
8
- function f({ className: r, ...e }) {
9
- return /* @__PURE__ */ a(
10
- "ol",
11
- {
12
- "data-slot": "breadcrumb-list",
13
- className: t(
14
- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
15
- r
16
- ),
17
- ...e
18
- }
19
- );
20
- }
21
- function g({ className: r, ...e }) {
22
- return /* @__PURE__ */ a(
23
- "li",
24
- {
25
- "data-slot": "breadcrumb-item",
26
- className: t("inline-flex items-center gap-1.5", r),
27
- ...e
28
- }
29
- );
30
- }
31
- function x({
32
- asChild: r,
33
- className: e,
34
- ...n
35
- }) {
36
- return /* @__PURE__ */ a(
37
- r ? o : "a",
38
- {
39
- "data-slot": "breadcrumb-link",
40
- className: t("hover:text-foreground transition-colors", e),
41
- ...n
42
- }
43
- );
44
- }
45
- function h({ className: r, ...e }) {
46
- return /* @__PURE__ */ a(
47
- "span",
48
- {
49
- "data-slot": "breadcrumb-page",
50
- role: "link",
51
- "aria-disabled": "true",
52
- "aria-current": "page",
53
- className: t("text-foreground font-normal", r),
54
- ...e
55
- }
56
- );
57
- }
58
- function N({
59
- children: r,
60
- className: e,
61
- ...n
62
- }) {
63
- return /* @__PURE__ */ a(
64
- "li",
65
- {
66
- "data-slot": "breadcrumb-separator",
67
- role: "presentation",
68
- "aria-hidden": "true",
69
- className: t("[&>svg]:size-3.5", e),
70
- ...n,
71
- children: r ?? /* @__PURE__ */ a(i, {})
72
- }
73
- );
74
- }
75
- function B({
76
- className: r,
77
- ...e
78
- }) {
79
- return /* @__PURE__ */ s(
80
- "span",
81
- {
82
- "data-slot": "breadcrumb-ellipsis",
83
- role: "presentation",
84
- "aria-hidden": "true",
85
- className: t("flex size-9 items-center justify-center", r),
86
- ...e,
87
- children: [
88
- /* @__PURE__ */ a(l, { className: "size-4" }),
89
- /* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
90
- ]
91
- }
92
- );
93
- }
94
- export {
95
- p as Breadcrumb,
96
- B as BreadcrumbEllipsis,
97
- g as BreadcrumbItem,
98
- x as BreadcrumbLink,
99
- f as BreadcrumbList,
100
- h as BreadcrumbPage,
101
- N as BreadcrumbSeparator
102
- };
package/dist/calendar.mjs DELETED
@@ -1,173 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import { ChevronLeftIcon as b, ChevronRightIcon as w, ChevronDownIcon as _ } from "lucide-react";
4
- import { getDefaultClassNames as p, DayPicker as h } from "react-day-picker";
5
- import { c as e } from "./utils-B7J70Nno.js";
6
- import { buttonVariants as f, Button as y } from "./button.mjs";
7
- function j({
8
- className: i,
9
- classNames: g,
10
- showOutsideDays: r = !0,
11
- captionLayout: s = "label",
12
- buttonVariant: l = "ghost",
13
- formatters: u,
14
- components: c,
15
- ...x
16
- }) {
17
- const t = p();
18
- return /* @__PURE__ */ n(
19
- h,
20
- {
21
- showOutsideDays: r,
22
- className: e(
23
- "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
24
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
25
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
26
- i
27
- ),
28
- captionLayout: s,
29
- formatters: {
30
- formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }),
31
- ...u
32
- },
33
- classNames: {
34
- root: e("w-fit", t.root),
35
- months: e(
36
- "flex gap-4 flex-col md:flex-row relative",
37
- t.months
38
- ),
39
- month: e("flex flex-col w-full gap-4", t.month),
40
- nav: e(
41
- "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
42
- t.nav
43
- ),
44
- button_previous: e(
45
- f({ variant: l }),
46
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
47
- t.button_previous
48
- ),
49
- button_next: e(
50
- f({ variant: l }),
51
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
52
- t.button_next
53
- ),
54
- month_caption: e(
55
- "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
56
- t.month_caption
57
- ),
58
- dropdowns: e(
59
- "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
60
- t.dropdowns
61
- ),
62
- dropdown_root: e(
63
- "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
64
- t.dropdown_root
65
- ),
66
- dropdown: e(
67
- "absolute bg-popover inset-0 opacity-0",
68
- t.dropdown
69
- ),
70
- caption_label: e(
71
- "select-none font-medium",
72
- s === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
73
- t.caption_label
74
- ),
75
- table: "w-full border-collapse",
76
- weekdays: e("flex", t.weekdays),
77
- weekday: e(
78
- "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
79
- t.weekday
80
- ),
81
- week: e("flex w-full mt-2", t.week),
82
- week_number_header: e(
83
- "select-none w-(--cell-size)",
84
- t.week_number_header
85
- ),
86
- week_number: e(
87
- "text-[0.8rem] select-none text-muted-foreground",
88
- t.week_number
89
- ),
90
- day: e(
91
- "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
92
- t.day
93
- ),
94
- range_start: e(
95
- "rounded-l-md bg-accent",
96
- t.range_start
97
- ),
98
- range_middle: e("rounded-none", t.range_middle),
99
- range_end: e("rounded-r-md bg-accent", t.range_end),
100
- today: e(
101
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
102
- t.today
103
- ),
104
- outside: e(
105
- "text-muted-foreground aria-selected:text-muted-foreground",
106
- t.outside
107
- ),
108
- disabled: e(
109
- "text-muted-foreground opacity-50",
110
- t.disabled
111
- ),
112
- hidden: e("invisible", t.hidden),
113
- ...g
114
- },
115
- components: {
116
- Root: ({ className: a, rootRef: d, ...o }) => /* @__PURE__ */ n(
117
- "div",
118
- {
119
- "data-slot": "calendar",
120
- ref: d,
121
- className: e(a),
122
- ...o
123
- }
124
- ),
125
- Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n(
126
- w,
127
- {
128
- className: e("size-4", a),
129
- ...o
130
- }
131
- ) : /* @__PURE__ */ n(_, { className: e("size-4", a), ...o }),
132
- DayButton: v,
133
- WeekNumber: ({ children: a, ...d }) => /* @__PURE__ */ n("td", { ...d, children: /* @__PURE__ */ n("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }),
134
- ...c
135
- },
136
- ...x
137
- }
138
- );
139
- }
140
- function v({
141
- className: i,
142
- day: g,
143
- modifiers: r,
144
- ...s
145
- }) {
146
- const l = p(), u = m.useRef(null);
147
- return m.useEffect(() => {
148
- var c;
149
- r.focused && ((c = u.current) == null || c.focus());
150
- }, [r.focused]), /* @__PURE__ */ n(
151
- y,
152
- {
153
- ref: u,
154
- variant: "ghost",
155
- size: "icon",
156
- "data-day": g.date.toLocaleDateString(),
157
- "data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle,
158
- "data-range-start": r.range_start,
159
- "data-range-end": r.range_end,
160
- "data-range-middle": r.range_middle,
161
- className: e(
162
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
163
- l.day,
164
- i
165
- ),
166
- ...s
167
- }
168
- );
169
- }
170
- export {
171
- j as Calendar,
172
- v as CalendarDayButton
173
- };
package/dist/card.mjs DELETED
@@ -1,90 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as o } from "./utils-B7J70Nno.js";
3
- function n({ className: t, ...a }) {
4
- return /* @__PURE__ */ r(
5
- "div",
6
- {
7
- "data-slot": "card",
8
- className: o(
9
- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
10
- t
11
- ),
12
- ...a
13
- }
14
- );
15
- }
16
- function s({ className: t, ...a }) {
17
- return /* @__PURE__ */ r(
18
- "div",
19
- {
20
- "data-slot": "card-header",
21
- className: o(
22
- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
23
- t
24
- ),
25
- ...a
26
- }
27
- );
28
- }
29
- function c({ className: t, ...a }) {
30
- return /* @__PURE__ */ r(
31
- "div",
32
- {
33
- "data-slot": "card-title",
34
- className: o("leading-none font-semibold", t),
35
- ...a
36
- }
37
- );
38
- }
39
- function i({ className: t, ...a }) {
40
- return /* @__PURE__ */ r(
41
- "div",
42
- {
43
- "data-slot": "card-description",
44
- className: o("text-muted-foreground text-sm", t),
45
- ...a
46
- }
47
- );
48
- }
49
- function l({ className: t, ...a }) {
50
- return /* @__PURE__ */ r(
51
- "div",
52
- {
53
- "data-slot": "card-action",
54
- className: o(
55
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
56
- t
57
- ),
58
- ...a
59
- }
60
- );
61
- }
62
- function u({ className: t, ...a }) {
63
- return /* @__PURE__ */ r(
64
- "div",
65
- {
66
- "data-slot": "card-content",
67
- className: o("px-6", t),
68
- ...a
69
- }
70
- );
71
- }
72
- function f({ className: t, ...a }) {
73
- return /* @__PURE__ */ r(
74
- "div",
75
- {
76
- "data-slot": "card-footer",
77
- className: o("flex items-center px-6 [.border-t]:pt-6", t),
78
- ...a
79
- }
80
- );
81
- }
82
- export {
83
- n as Card,
84
- l as CardAction,
85
- u as CardContent,
86
- i as CardDescription,
87
- f as CardFooter,
88
- s as CardHeader,
89
- c as CardTitle
90
- };