@turingpaper/ui 0.0.1-test.2 → 0.0.1-test.4

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 (74) hide show
  1. package/dist/accordion.mjs +44 -83
  2. package/dist/alert-dialog.mjs +108 -175
  3. package/dist/avatar.mjs +40 -104
  4. package/dist/badge.mjs +10 -27
  5. package/dist/breadcrumb.mjs +82 -109
  6. package/dist/button.mjs +26 -38
  7. package/dist/card.mjs +62 -96
  8. package/dist/chart.mjs +208 -0
  9. package/dist/checkbox.mjs +25 -32
  10. package/dist/collapsible.mjs +5 -32
  11. package/dist/command.mjs +101 -165
  12. package/dist/components/accordion.d.ts +4 -5
  13. package/dist/components/alert-dialog.d.ts +19 -17
  14. package/dist/components/avatar.d.ts +4 -10
  15. package/dist/components/badge.d.ts +4 -4
  16. package/dist/components/breadcrumb.d.ts +16 -8
  17. package/dist/components/button.d.ts +5 -4
  18. package/dist/components/card.d.ts +7 -10
  19. package/dist/components/chart.d.ts +49 -0
  20. package/dist/components/checkbox.d.ts +1 -2
  21. package/dist/components/collapsible.d.ts +3 -4
  22. package/dist/components/command.d.ts +78 -16
  23. package/dist/components/dialog.d.ts +18 -16
  24. package/dist/components/drawer.d.ts +19 -10
  25. package/dist/components/dropdown-menu.d.ts +21 -27
  26. package/dist/components/hover-card.d.ts +3 -4
  27. package/dist/components/input-group.d.ts +1 -1
  28. package/dist/components/input-otp.d.ts +34 -0
  29. package/dist/components/input.d.ts +1 -1
  30. package/dist/components/label.d.ts +1 -2
  31. package/dist/components/pagination.d.ts +24 -13
  32. package/dist/components/popover.d.ts +4 -9
  33. package/dist/components/progress.d.ts +1 -2
  34. package/dist/components/radio-group.d.ts +2 -3
  35. package/dist/components/scroll-area.d.ts +2 -3
  36. package/dist/components/select.d.ts +11 -14
  37. package/dist/components/separator.d.ts +1 -2
  38. package/dist/components/sheet.d.ts +24 -13
  39. package/dist/components/skeleton.d.ts +1 -1
  40. package/dist/components/slider.d.ts +1 -2
  41. package/dist/components/switch.d.ts +1 -4
  42. package/dist/components/table.d.ts +8 -8
  43. package/dist/components/tabs.d.ts +5 -10
  44. package/dist/components/textarea.d.ts +1 -1
  45. package/dist/components/toggle-group.d.ts +2 -8
  46. package/dist/components/toggle.d.ts +1 -3
  47. package/dist/components/tooltip.d.ts +5 -6
  48. package/dist/dialog.mjs +91 -147
  49. package/dist/drawer.mjs +89 -118
  50. package/dist/dropdown-menu.mjs +141 -249
  51. package/dist/hover-card.mjs +20 -35
  52. package/dist/input-otp.mjs +48 -0
  53. package/dist/input.mjs +15 -13
  54. package/dist/label.mjs +17 -20
  55. package/dist/pagination.mjs +103 -126
  56. package/dist/popover.mjs +19 -76
  57. package/dist/progress.mjs +23 -28
  58. package/dist/provider.mjs +1 -1
  59. package/dist/radio-group.mjs +29 -42
  60. package/dist/scroll-area.mjs +36 -57
  61. package/dist/select.mjs +117 -182
  62. package/dist/separator.mjs +16 -18
  63. package/dist/sheet.mjs +99 -128
  64. package/dist/skeleton.mjs +8 -6
  65. package/dist/slider.mjs +21 -57
  66. package/dist/styles.css +1 -1
  67. package/dist/switch.mjs +25 -29
  68. package/dist/table.mjs +83 -110
  69. package/dist/tabs.mjs +42 -86
  70. package/dist/textarea.mjs +16 -16
  71. package/dist/toggle-group.mjs +32 -67
  72. package/dist/toggle.mjs +22 -28
  73. package/dist/tooltip.mjs +20 -52
  74. package/package.json +11 -1
@@ -1,251 +1,143 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import { DropdownMenu as n } from "radix-ui";
3
- import { cn as d } from "./utils.mjs";
4
- import { CheckIcon as s, ChevronRightIcon as c } from "lucide-react";
5
- function g({
6
- ...e
7
- }) {
8
- return /* @__PURE__ */ t(n.Root, { "data-slot": "dropdown-menu", ...e });
9
- }
10
- function x({
11
- ...e
12
- }) {
13
- return /* @__PURE__ */ t(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
14
- }
15
- function v({
16
- ...e
17
- }) {
18
- return /* @__PURE__ */ t(
19
- n.Trigger,
20
- {
21
- "data-slot": "dropdown-menu-trigger",
22
- ...e
23
- }
24
- );
25
- }
26
- function w({
27
- className: e,
28
- align: o = "start",
29
- sideOffset: a = 4,
30
- ...r
31
- }) {
32
- return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
33
- n.Content,
34
- {
35
- "data-slot": "dropdown-menu-content",
36
- sideOffset: a,
37
- align: o,
38
- className: d("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-48 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-2xl bg-popover p-1 text-popover-foreground shadow-2xl ring-1 ring-foreground/5 duration-100 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 data-[state=closed]:overflow-hidden dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
39
- ...r
40
- }
41
- ) });
42
- }
43
- function h({
44
- ...e
45
- }) {
46
- return /* @__PURE__ */ t(n.Group, { "data-slot": "dropdown-menu-group", ...e });
47
- }
48
- function b({
49
- className: e,
50
- inset: o,
51
- variant: a = "default",
52
- ...r
53
- }) {
54
- return /* @__PURE__ */ t(
55
- n.Item,
56
- {
57
- "data-slot": "dropdown-menu-item",
58
- "data-inset": o,
59
- "data-variant": a,
60
- className: d(
61
- "group/dropdown-menu-item relative flex cursor-default items-center gap-2.5 rounded-xl px-3 py-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
62
- e
63
- ),
64
- ...r
65
- }
66
- );
67
- }
68
- function D({
69
- className: e,
70
- children: o,
71
- checked: a,
72
- inset: r,
73
- ...u
74
- }) {
75
- return /* @__PURE__ */ i(
76
- n.CheckboxItem,
77
- {
78
- "data-slot": "dropdown-menu-checkbox-item",
79
- "data-inset": r,
80
- className: d(
81
- "relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
82
- e
83
- ),
84
- checked: a,
85
- ...u,
86
- children: [
87
- /* @__PURE__ */ t(
88
- "span",
89
- {
90
- className: "pointer-events-none absolute right-2 flex items-center justify-center",
91
- "data-slot": "dropdown-menu-checkbox-item-indicator",
92
- children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(
93
- s,
94
- {}
95
- ) })
96
- }
97
- ),
98
- o
99
- ]
100
- }
101
- );
102
- }
103
- function M({
104
- ...e
105
- }) {
106
- return /* @__PURE__ */ t(
107
- n.RadioGroup,
108
- {
109
- "data-slot": "dropdown-menu-radio-group",
110
- ...e
111
- }
112
- );
113
- }
114
- function z({
115
- className: e,
116
- children: o,
117
- inset: a,
118
- ...r
119
- }) {
120
- return /* @__PURE__ */ i(
121
- n.RadioItem,
122
- {
123
- "data-slot": "dropdown-menu-radio-item",
124
- "data-inset": a,
125
- className: d(
126
- "relative flex cursor-default items-center gap-2.5 rounded-xl py-2 pr-8 pl-3 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
127
- e
128
- ),
129
- ...r,
130
- children: [
131
- /* @__PURE__ */ t(
132
- "span",
133
- {
134
- className: "pointer-events-none absolute right-2 flex items-center justify-center",
135
- "data-slot": "dropdown-menu-radio-item-indicator",
136
- children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(
137
- s,
138
- {}
139
- ) })
140
- }
141
- ),
142
- o
143
- ]
144
- }
145
- );
146
- }
147
- function k({
148
- className: e,
149
- inset: o,
150
- ...a
151
- }) {
152
- return /* @__PURE__ */ t(
153
- n.Label,
154
- {
155
- "data-slot": "dropdown-menu-label",
156
- "data-inset": o,
157
- className: d(
158
- "px-3 py-2.5 text-xs text-muted-foreground data-inset:pl-9.5",
159
- e
160
- ),
161
- ...a
162
- }
163
- );
164
- }
165
- function y({
166
- className: e,
167
- ...o
168
- }) {
169
- return /* @__PURE__ */ t(
170
- n.Separator,
171
- {
172
- "data-slot": "dropdown-menu-separator",
173
- className: d("-mx-1 my-1 h-px bg-border/50", e),
174
- ...o
175
- }
176
- );
177
- }
178
- function I({
179
- className: e,
180
- ...o
181
- }) {
182
- return /* @__PURE__ */ t(
183
- "span",
184
- {
185
- "data-slot": "dropdown-menu-shortcut",
186
- className: d(
187
- "ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
188
- e
189
- ),
190
- ...o
191
- }
192
- );
193
- }
194
- function N({
195
- ...e
196
- }) {
197
- return /* @__PURE__ */ t(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
198
- }
199
- function _({
200
- className: e,
201
- inset: o,
202
- children: a,
203
- ...r
204
- }) {
205
- return /* @__PURE__ */ i(
206
- n.SubTrigger,
207
- {
208
- "data-slot": "dropdown-menu-sub-trigger",
209
- "data-inset": o,
210
- className: d(
211
- "flex cursor-default items-center gap-2 rounded-xl px-3 py-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
212
- e
213
- ),
214
- ...r,
215
- children: [
216
- a,
217
- /* @__PURE__ */ t(c, { className: "ml-auto" })
218
- ]
219
- }
220
- );
221
- }
222
- function S({
223
- className: e,
224
- ...o
225
- }) {
226
- return /* @__PURE__ */ t(
227
- n.SubContent,
228
- {
229
- "data-slot": "dropdown-menu-sub-content",
230
- className: d("z-50 min-w-36 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-2xl bg-popover p-1 text-popover-foreground shadow-2xl ring-1 ring-foreground/5 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
231
- ...o
232
- }
233
- );
234
- }
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import * as e from "radix-ui";
4
+ import { ChevronRight as m, Check as c, Circle as p } from "lucide-react";
5
+ import { cn as s } from "./utils.mjs";
6
+ const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: o, inset: t, children: a, ...r }, i) => /* @__PURE__ */ l(
7
+ e.SubTrigger,
8
+ {
9
+ ref: i,
10
+ className: s(
11
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
12
+ t && "pl-8",
13
+ o
14
+ ),
15
+ ...r,
16
+ children: [
17
+ a,
18
+ /* @__PURE__ */ n(m, { className: "ml-auto" })
19
+ ]
20
+ }
21
+ ));
22
+ u.displayName = e.SubTrigger.displayName;
23
+ const f = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
24
+ e.SubContent,
25
+ {
26
+ ref: a,
27
+ className: s(
28
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
29
+ o
30
+ ),
31
+ ...t
32
+ }
33
+ ));
34
+ f.displayName = e.SubContent.displayName;
35
+ const g = d.forwardRef(({ className: o, sideOffset: t = 4, ...a }, r) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
36
+ e.Content,
37
+ {
38
+ ref: r,
39
+ sideOffset: t,
40
+ className: s(
41
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
42
+ o
43
+ ),
44
+ ...a
45
+ }
46
+ ) }));
47
+ g.displayName = e.Content.displayName;
48
+ const w = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
49
+ e.Item,
50
+ {
51
+ ref: r,
52
+ className: s(
53
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
54
+ t && "pl-8",
55
+ o
56
+ ),
57
+ ...a
58
+ }
59
+ ));
60
+ w.displayName = e.Item.displayName;
61
+ const b = d.forwardRef(({ className: o, children: t, checked: a, ...r }, i) => /* @__PURE__ */ l(
62
+ e.CheckboxItem,
63
+ {
64
+ ref: i,
65
+ className: s(
66
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
67
+ o
68
+ ),
69
+ checked: a,
70
+ ...r,
71
+ children: [
72
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-4 w-4" }) }) }),
73
+ t
74
+ ]
75
+ }
76
+ ));
77
+ b.displayName = e.CheckboxItem.displayName;
78
+ const h = d.forwardRef(({ className: o, children: t, ...a }, r) => /* @__PURE__ */ l(
79
+ e.RadioItem,
80
+ {
81
+ ref: r,
82
+ className: s(
83
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
84
+ o
85
+ ),
86
+ ...a,
87
+ children: [
88
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(p, { className: "h-2 w-2 fill-current" }) }) }),
89
+ t
90
+ ]
91
+ }
92
+ ));
93
+ h.displayName = e.RadioItem.displayName;
94
+ const x = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
95
+ e.Label,
96
+ {
97
+ ref: r,
98
+ className: s(
99
+ "px-2 py-1.5 text-sm font-semibold",
100
+ t && "pl-8",
101
+ o
102
+ ),
103
+ ...a
104
+ }
105
+ ));
106
+ x.displayName = e.Label.displayName;
107
+ const N = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
108
+ e.Separator,
109
+ {
110
+ ref: a,
111
+ className: s("-mx-1 my-1 h-px bg-muted", o),
112
+ ...t
113
+ }
114
+ ));
115
+ N.displayName = e.Separator.displayName;
116
+ const y = ({
117
+ className: o,
118
+ ...t
119
+ }) => /* @__PURE__ */ n(
120
+ "span",
121
+ {
122
+ className: s("ml-auto text-xs tracking-widest opacity-60", o),
123
+ ...t
124
+ }
125
+ );
126
+ y.displayName = "DropdownMenuShortcut";
235
127
  export {
236
- g as DropdownMenu,
237
- D as DropdownMenuCheckboxItem,
238
- w as DropdownMenuContent,
239
- h as DropdownMenuGroup,
240
- b as DropdownMenuItem,
241
- k as DropdownMenuLabel,
242
- x as DropdownMenuPortal,
243
- M as DropdownMenuRadioGroup,
244
- z as DropdownMenuRadioItem,
245
- y as DropdownMenuSeparator,
246
- I as DropdownMenuShortcut,
247
- N as DropdownMenuSub,
248
- S as DropdownMenuSubContent,
249
- _ as DropdownMenuSubTrigger,
250
- v as DropdownMenuTrigger
128
+ R as DropdownMenu,
129
+ b as DropdownMenuCheckboxItem,
130
+ g as DropdownMenuContent,
131
+ S as DropdownMenuGroup,
132
+ w as DropdownMenuItem,
133
+ x as DropdownMenuLabel,
134
+ C as DropdownMenuPortal,
135
+ k as DropdownMenuRadioGroup,
136
+ h as DropdownMenuRadioItem,
137
+ N as DropdownMenuSeparator,
138
+ y as DropdownMenuShortcut,
139
+ z as DropdownMenuSub,
140
+ f as DropdownMenuSubContent,
141
+ u as DropdownMenuSubTrigger,
142
+ I as DropdownMenuTrigger
251
143
  };
@@ -1,38 +1,23 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { HoverCard as t } from "radix-ui";
3
- import { cn as n } from "./utils.mjs";
4
- function m({
5
- ...o
6
- }) {
7
- return /* @__PURE__ */ r(t.Root, { "data-slot": "hover-card", ...o });
8
- }
9
- function c({
10
- ...o
11
- }) {
12
- return /* @__PURE__ */ r(t.Trigger, { "data-slot": "hover-card-trigger", ...o });
13
- }
14
- function f({
15
- className: o,
16
- align: e = "center",
17
- sideOffset: a = 4,
18
- ...d
19
- }) {
20
- return /* @__PURE__ */ r(t.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ r(
21
- t.Content,
22
- {
23
- "data-slot": "hover-card-content",
24
- align: e,
25
- sideOffset: a,
26
- className: n(
27
- "z-50 w-72 origin-(--radix-hover-card-content-transform-origin) rounded-2xl bg-popover p-4 text-sm text-popover-foreground shadow-2xl ring-1 ring-foreground/5 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
28
- o
29
- ),
30
- ...d
31
- }
32
- ) });
33
- }
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import * as o from "radix-ui";
4
+ import { cn as s } from "./utils.mjs";
5
+ const l = o.Root, c = o.Trigger, m = n.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ i(
6
+ o.Content,
7
+ {
8
+ ref: d,
9
+ align: e,
10
+ sideOffset: a,
11
+ className: s(
12
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",
13
+ t
14
+ ),
15
+ ...r
16
+ }
17
+ ));
18
+ m.displayName = o.Content.displayName;
34
19
  export {
35
- m as HoverCard,
36
- f as HoverCardContent,
20
+ l as HoverCard,
21
+ m as HoverCardContent,
37
22
  c as HoverCardTrigger
38
23
  };
@@ -0,0 +1,48 @@
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import { OTPInput as m, OTPInputContext as u } from "input-otp";
4
+ import { Dot as f } from "lucide-react";
5
+ import { cn as n } from "./utils.mjs";
6
+ const x = a.forwardRef(({ className: e, containerClassName: t, ...o }, s) => /* @__PURE__ */ r(
7
+ m,
8
+ {
9
+ ref: s,
10
+ containerClassName: n(
11
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
12
+ t
13
+ ),
14
+ className: n("disabled:cursor-not-allowed", e),
15
+ ...o
16
+ }
17
+ ));
18
+ x.displayName = "InputOTP";
19
+ const O = a.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r("div", { ref: o, className: n("flex items-center", e), ...t }));
20
+ O.displayName = "InputOTPGroup";
21
+ const P = a.forwardRef(({ index: e, className: t, ...o }, s) => {
22
+ const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
23
+ return /* @__PURE__ */ c(
24
+ "div",
25
+ {
26
+ ref: s,
27
+ className: n(
28
+ "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
29
+ p && "z-10 ring-2 ring-ring ring-offset-background",
30
+ t
31
+ ),
32
+ ...o,
33
+ children: [
34
+ d,
35
+ l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
36
+ ]
37
+ }
38
+ );
39
+ });
40
+ P.displayName = "InputOTPSlot";
41
+ const T = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
42
+ T.displayName = "InputOTPSeparator";
43
+ export {
44
+ x as InputOTP,
45
+ O as InputOTPGroup,
46
+ T as InputOTPSeparator,
47
+ P as InputOTPSlot
48
+ };
package/dist/input.mjs CHANGED
@@ -1,19 +1,21 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { cn as n } from "./utils.mjs";
3
- function a({ className: i, type: e, ...r }) {
4
- return /* @__PURE__ */ t(
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { cn as f } from "./utils.mjs";
4
+ const s = n.forwardRef(
5
+ ({ className: e, type: r, ...o }, t) => /* @__PURE__ */ i(
5
6
  "input",
6
7
  {
7
- type: e,
8
- "data-slot": "input",
9
- className: n(
10
- "h-9 w-full min-w-0 rounded-4xl border border-input bg-input/30 px-3 py-1 text-base transition-colors outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
11
- i
8
+ type: r,
9
+ className: f(
10
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11
+ e
12
12
  ),
13
- ...r
13
+ ref: t,
14
+ ...o
14
15
  }
15
- );
16
- }
16
+ )
17
+ );
18
+ s.displayName = "Input";
17
19
  export {
18
- a as Input
20
+ s as Input
19
21
  };
package/dist/label.mjs CHANGED
@@ -1,22 +1,19 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Label as a } from "radix-ui";
3
- import { cn as r } from "./utils.mjs";
4
- function i({
5
- className: e,
6
- ...t
7
- }) {
8
- return /* @__PURE__ */ o(
9
- a.Root,
10
- {
11
- "data-slot": "label",
12
- className: r(
13
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14
- e
15
- ),
16
- ...t
17
- }
18
- );
19
- }
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import * as o from "radix-ui";
4
+ import { cva as i } from "class-variance-authority";
5
+ import { cn as s } from "./utils.mjs";
6
+ const p = i(
7
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8
+ ), d = m.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
9
+ o.Root,
10
+ {
11
+ ref: r,
12
+ className: s(p(), e),
13
+ ...a
14
+ }
15
+ ));
16
+ d.displayName = o.Root.displayName;
20
17
  export {
21
- i as Label
18
+ d as Label
22
19
  };