@plyaz/ui 0.7.10 → 0.7.12
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.
- package/dist/Button-B7sEajdG.js +89 -0
- package/dist/Button-BoTQH4v8.cjs +39 -0
- package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
- package/dist/Skeleton-Cj9Od_Nd.js +37 -0
- package/dist/Textarea-BTbJSVLU.js +837 -0
- package/dist/Textarea-DmFDDtNg.cjs +24 -0
- package/dist/client/accordion.cjs.js +1 -0
- package/dist/client/accordion.es.js +62 -0
- package/dist/client/alert-dialog.cjs.js +1 -0
- package/dist/client/alert-dialog.es.js +127 -0
- package/dist/client/avatar.cjs.js +1 -0
- package/dist/client/avatar.es.js +41 -0
- package/dist/client/calendar.cjs.js +1 -0
- package/dist/client/calendar.es.js +160 -0
- package/dist/client/carousel.cjs.js +1 -0
- package/dist/client/carousel.es.js +170 -0
- package/dist/client/checkbox.cjs.js +1 -0
- package/dist/client/checkbox.es.js +28 -0
- package/dist/client/combobox.cjs.js +1 -0
- package/dist/client/combobox.es.js +77 -0
- package/dist/client/command.cjs.js +1 -0
- package/dist/client/command.es.js +143 -0
- package/dist/client/context-menu.cjs.js +1 -0
- package/dist/client/context-menu.es.js +200 -0
- package/dist/client/dialog.cjs.js +1 -0
- package/dist/client/dialog.es.js +122 -0
- package/dist/client/drawer.cjs.js +1 -0
- package/dist/client/drawer.es.js +117 -0
- package/dist/client/dropdown-menu.cjs.js +1 -0
- package/dist/client/dropdown-menu.es.js +204 -0
- package/dist/client/hover-card.cjs.js +1 -0
- package/dist/client/hover-card.es.js +34 -0
- package/dist/client/input-otp.cjs.js +1 -0
- package/dist/client/input-otp.es.js +55 -0
- package/dist/client/label.cjs.js +1 -0
- package/dist/client/label.es.js +19 -0
- package/dist/client/menu-bar.cjs.js +1 -0
- package/dist/client/menu-bar.es.js +229 -0
- package/dist/client/popover.cjs.js +1 -0
- package/dist/client/popover.es.js +38 -0
- package/dist/client/progress.cjs.js +1 -0
- package/dist/client/progress.es.js +29 -0
- package/dist/client/radio-group.cjs.js +1 -0
- package/dist/client/radio-group.es.js +45 -0
- package/dist/client/reveal-text.cjs.js +1 -0
- package/dist/client/reveal-text.es.js +5066 -0
- package/dist/client/scroll-area.cjs.js +1 -0
- package/dist/client/scroll-area.es.js +60 -0
- package/dist/client/sheet.cjs.js +1 -0
- package/dist/client/sheet.es.js +117 -0
- package/dist/client/slider.cjs.js +1 -0
- package/dist/client/slider.es.js +63 -0
- package/dist/client/switch.cjs.js +1 -0
- package/dist/client/switch.es.js +28 -0
- package/dist/client/tabs.cjs.js +1 -0
- package/dist/client/tabs.es.js +55 -0
- package/dist/client/toaster.cjs.js +1 -0
- package/dist/client/toaster.es.js +22 -0
- package/dist/client/toggle.cjs.js +1 -0
- package/dist/client/toggle.es.js +43 -0
- package/dist/client/tooltip.cjs.js +1 -0
- package/dist/client/tooltip.es.js +51 -0
- package/dist/client.cjs.js +1 -93
- package/dist/client.es.js +495 -21191
- package/dist/index.cjs.js +6 -6
- package/dist/index.es.js +285 -538
- package/dist/types/client/accordion.d.ts +2 -0
- package/dist/types/client/alert-dialog.d.ts +2 -0
- package/dist/types/client/avatar.d.ts +2 -0
- package/dist/types/client/calendar.d.ts +2 -0
- package/dist/types/client/carousel.d.ts +2 -0
- package/dist/types/client/checkbox.d.ts +2 -0
- package/dist/types/client/combobox.d.ts +2 -0
- package/dist/types/client/command.d.ts +2 -0
- package/dist/types/client/context-menu.d.ts +2 -0
- package/dist/types/client/dialog.d.ts +2 -0
- package/dist/types/client/drawer.d.ts +2 -0
- package/dist/types/client/dropdown-menu.d.ts +2 -0
- package/dist/types/client/hover-card.d.ts +2 -0
- package/dist/types/client/input-otp.d.ts +2 -0
- package/dist/types/client/label.d.ts +2 -0
- package/dist/types/client/menu-bar.d.ts +2 -0
- package/dist/types/client/popover.d.ts +2 -0
- package/dist/types/client/progress.d.ts +2 -0
- package/dist/types/client/radio-group.d.ts +2 -0
- package/dist/types/client/reveal-text.d.ts +2 -0
- package/dist/types/client/scroll-area.d.ts +2 -0
- package/dist/types/client/sheet.d.ts +2 -0
- package/dist/types/client/slider.d.ts +2 -0
- package/dist/types/client/switch.d.ts +2 -0
- package/dist/types/client/tabs.d.ts +2 -0
- package/dist/types/client/toaster.d.ts +2 -0
- package/dist/types/client/toggle.d.ts +2 -0
- package/dist/types/client/tooltip.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/types/components/Label/Label.stories.d.ts +1 -1
- package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils-B6yFEsav.js +8 -0
- package/dist/utils-IjLH3w2e.cjs +1 -0
- package/package.json +186 -1
- package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
- package/dist/Skeleton-CnBXKh2c.js +0 -3511
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "@radix-ui/react-menubar";
|
|
3
|
+
import { CheckIcon as u, CircleIcon as c, ChevronRightIcon as l } from "lucide-react";
|
|
4
|
+
import { c as o } from "../utils-B6yFEsav.js";
|
|
5
|
+
function g({ className: e, ...t }) {
|
|
6
|
+
return /* @__PURE__ */ a(
|
|
7
|
+
n.Root,
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "menubar",
|
|
10
|
+
className: o(
|
|
11
|
+
"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
12
|
+
e
|
|
13
|
+
),
|
|
14
|
+
...t
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function x({ ...e }) {
|
|
19
|
+
return /* @__PURE__ */ a(n.Menu, { "data-slot": "menubar-menu", ...e });
|
|
20
|
+
}
|
|
21
|
+
function v({ ...e }) {
|
|
22
|
+
return /* @__PURE__ */ a(n.Group, { "data-slot": "menubar-group", ...e });
|
|
23
|
+
}
|
|
24
|
+
function m({ ...e }) {
|
|
25
|
+
return /* @__PURE__ */ a(n.Portal, { "data-slot": "menubar-portal", ...e });
|
|
26
|
+
}
|
|
27
|
+
function h({ ...e }) {
|
|
28
|
+
return /* @__PURE__ */ a(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
|
|
29
|
+
}
|
|
30
|
+
function M({
|
|
31
|
+
className: e,
|
|
32
|
+
...t
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ a(
|
|
35
|
+
n.Trigger,
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "menubar-trigger",
|
|
38
|
+
className: o(
|
|
39
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
|
|
40
|
+
e
|
|
41
|
+
),
|
|
42
|
+
...t
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function z({
|
|
47
|
+
className: e,
|
|
48
|
+
align: t = "start",
|
|
49
|
+
alignOffset: r = -4,
|
|
50
|
+
sideOffset: s = 8,
|
|
51
|
+
...i
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
|
|
54
|
+
n.Content,
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "menubar-content",
|
|
57
|
+
align: t,
|
|
58
|
+
alignOffset: r,
|
|
59
|
+
sideOffset: s,
|
|
60
|
+
className: o(
|
|
61
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
62
|
+
e
|
|
63
|
+
),
|
|
64
|
+
...i
|
|
65
|
+
}
|
|
66
|
+
) });
|
|
67
|
+
}
|
|
68
|
+
function N({
|
|
69
|
+
className: e,
|
|
70
|
+
inset: t,
|
|
71
|
+
variant: r = "default",
|
|
72
|
+
...s
|
|
73
|
+
}) {
|
|
74
|
+
return /* @__PURE__ */ a(
|
|
75
|
+
n.Item,
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "menubar-item",
|
|
78
|
+
"data-inset": t,
|
|
79
|
+
"data-variant": r,
|
|
80
|
+
className: o(
|
|
81
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
82
|
+
e
|
|
83
|
+
),
|
|
84
|
+
...s
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function I({
|
|
89
|
+
className: e,
|
|
90
|
+
children: t,
|
|
91
|
+
checked: r,
|
|
92
|
+
...s
|
|
93
|
+
}) {
|
|
94
|
+
return /* @__PURE__ */ d(
|
|
95
|
+
n.CheckboxItem,
|
|
96
|
+
{
|
|
97
|
+
"data-slot": "menubar-checkbox-item",
|
|
98
|
+
className: o(
|
|
99
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 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",
|
|
100
|
+
e
|
|
101
|
+
),
|
|
102
|
+
checked: r,
|
|
103
|
+
...s,
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(u, { className: "size-4" }) }) }),
|
|
106
|
+
t
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function y({
|
|
112
|
+
className: e,
|
|
113
|
+
children: t,
|
|
114
|
+
...r
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ d(
|
|
117
|
+
n.RadioItem,
|
|
118
|
+
{
|
|
119
|
+
"data-slot": "menubar-radio-item",
|
|
120
|
+
className: o(
|
|
121
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 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",
|
|
122
|
+
e
|
|
123
|
+
),
|
|
124
|
+
...r,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(c, { className: "size-2 fill-current" }) }) }),
|
|
127
|
+
t
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
function k({
|
|
133
|
+
className: e,
|
|
134
|
+
inset: t,
|
|
135
|
+
...r
|
|
136
|
+
}) {
|
|
137
|
+
return /* @__PURE__ */ a(
|
|
138
|
+
n.Label,
|
|
139
|
+
{
|
|
140
|
+
"data-slot": "menubar-label",
|
|
141
|
+
"data-inset": t,
|
|
142
|
+
className: o("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
143
|
+
...r
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function _({
|
|
148
|
+
className: e,
|
|
149
|
+
...t
|
|
150
|
+
}) {
|
|
151
|
+
return /* @__PURE__ */ a(
|
|
152
|
+
n.Separator,
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "menubar-separator",
|
|
155
|
+
className: o("bg-border -mx-1 my-1 h-px", e),
|
|
156
|
+
...t
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function w({ className: e, ...t }) {
|
|
161
|
+
return /* @__PURE__ */ a(
|
|
162
|
+
"span",
|
|
163
|
+
{
|
|
164
|
+
"data-slot": "menubar-shortcut",
|
|
165
|
+
className: o("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
166
|
+
...t
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function C({ ...e }) {
|
|
171
|
+
return /* @__PURE__ */ a(n.Sub, { "data-slot": "menubar-sub", ...e });
|
|
172
|
+
}
|
|
173
|
+
function S({
|
|
174
|
+
className: e,
|
|
175
|
+
inset: t,
|
|
176
|
+
children: r,
|
|
177
|
+
...s
|
|
178
|
+
}) {
|
|
179
|
+
return /* @__PURE__ */ d(
|
|
180
|
+
n.SubTrigger,
|
|
181
|
+
{
|
|
182
|
+
"data-slot": "menubar-sub-trigger",
|
|
183
|
+
"data-inset": t,
|
|
184
|
+
className: o(
|
|
185
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
|
|
186
|
+
e
|
|
187
|
+
),
|
|
188
|
+
...s,
|
|
189
|
+
children: [
|
|
190
|
+
r,
|
|
191
|
+
/* @__PURE__ */ a(l, { className: "ml-auto h-4 w-4" })
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
function R({
|
|
197
|
+
className: e,
|
|
198
|
+
...t
|
|
199
|
+
}) {
|
|
200
|
+
return /* @__PURE__ */ a(
|
|
201
|
+
n.SubContent,
|
|
202
|
+
{
|
|
203
|
+
"data-slot": "menubar-sub-content",
|
|
204
|
+
className: o(
|
|
205
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
206
|
+
e
|
|
207
|
+
),
|
|
208
|
+
...t
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
export {
|
|
213
|
+
g as Menubar,
|
|
214
|
+
I as MenubarCheckboxItem,
|
|
215
|
+
z as MenubarContent,
|
|
216
|
+
v as MenubarGroup,
|
|
217
|
+
N as MenubarItem,
|
|
218
|
+
k as MenubarLabel,
|
|
219
|
+
x as MenubarMenu,
|
|
220
|
+
m as MenubarPortal,
|
|
221
|
+
h as MenubarRadioGroup,
|
|
222
|
+
y as MenubarRadioItem,
|
|
223
|
+
_ as MenubarSeparator,
|
|
224
|
+
w as MenubarShortcut,
|
|
225
|
+
C as MenubarSub,
|
|
226
|
+
R as MenubarSubContent,
|
|
227
|
+
S as MenubarSubTrigger,
|
|
228
|
+
M as MenubarTrigger
|
|
229
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@radix-ui/react-popover"),d=require("../utils-IjLH3w2e.cjs");function s(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=s(i);function p({...e}){return r.jsx(n.Root,{"data-slot":"popover",...e})}function c({...e}){return r.jsx(n.Trigger,{"data-slot":"popover-trigger",...e})}function u({className:e,align:o="center",sideOffset:t=4,...a}){return r.jsx(n.Portal,{children:r.jsx(n.Content,{"data-slot":"popover-content",align:o,sideOffset:t,className:d.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...a})})}function l({...e}){return r.jsx(n.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=u;exports.PopoverTrigger=c;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "@radix-ui/react-popover";
|
|
3
|
+
import { c as i } from "../utils-B6yFEsav.js";
|
|
4
|
+
function s({ ...o }) {
|
|
5
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
6
|
+
}
|
|
7
|
+
function m({ ...o }) {
|
|
8
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
9
|
+
}
|
|
10
|
+
function c({
|
|
11
|
+
className: o,
|
|
12
|
+
align: r = "center",
|
|
13
|
+
sideOffset: a = 4,
|
|
14
|
+
...n
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
17
|
+
e.Content,
|
|
18
|
+
{
|
|
19
|
+
"data-slot": "popover-content",
|
|
20
|
+
align: r,
|
|
21
|
+
sideOffset: a,
|
|
22
|
+
className: i(
|
|
23
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
24
|
+
o
|
|
25
|
+
),
|
|
26
|
+
...n
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
}
|
|
30
|
+
function f({ ...o }) {
|
|
31
|
+
return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
s as Popover,
|
|
35
|
+
f as PopoverAnchor,
|
|
36
|
+
c as PopoverContent,
|
|
37
|
+
m as PopoverTrigger
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("@radix-ui/react-progress"),l=require("../utils-IjLH3w2e.cjs");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=a(i),c=100;function u({className:e,value:t,...r}){return n.jsx(s.Root,{"data-slot":"progress",className:l.cn("bg-primary relative h-1.5 w-full overflow-hidden rounded-full",e),...r,children:n.jsx(s.Indicator,{"data-slot":"progress-indicator",className:"bg-gradient-orange h-full w-full flex-1 transition-all",style:{transform:`translateX(-${c-(t??0)}%)`}})})}exports.Progress=u;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-progress";
|
|
3
|
+
import { c as e } from "../utils-B6yFEsav.js";
|
|
4
|
+
const l = 100;
|
|
5
|
+
function d({
|
|
6
|
+
className: t,
|
|
7
|
+
value: s,
|
|
8
|
+
...a
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
o.Root,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "progress",
|
|
14
|
+
className: e("bg-primary relative h-1.5 w-full overflow-hidden rounded-full", t),
|
|
15
|
+
...a,
|
|
16
|
+
children: /* @__PURE__ */ r(
|
|
17
|
+
o.Indicator,
|
|
18
|
+
{
|
|
19
|
+
"data-slot": "progress-indicator",
|
|
20
|
+
className: "bg-gradient-orange h-full w-full flex-1 transition-all",
|
|
21
|
+
style: { transform: `translateX(-${l - (s ?? 0)}%)` }
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
d as Progress
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("@radix-ui/react-radio-group"),u=require("lucide-react"),n=require("../utils-IjLH3w2e.cjs");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return r.default=e,Object.freeze(r)}const o=c(s);function d({className:e,...r}){return t.jsx(o.Root,{"data-slot":"radio-group",className:n.cn("grid gap-3",e),...r})}function l({className:e,...r}){return t.jsx(o.Item,{"data-slot":"radio-group-item",className:n.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:t.jsx(o.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(u.CircleIcon,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}exports.RadioGroup=d;exports.RadioGroupItem=l;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-radio-group";
|
|
3
|
+
import { CircleIcon as t } from "lucide-react";
|
|
4
|
+
import { c as e } from "../utils-B6yFEsav.js";
|
|
5
|
+
function l({
|
|
6
|
+
className: i,
|
|
7
|
+
...a
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ r(
|
|
10
|
+
o.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "radio-group",
|
|
13
|
+
className: e("grid gap-3", i),
|
|
14
|
+
...a
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function c({
|
|
19
|
+
className: i,
|
|
20
|
+
...a
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ r(
|
|
23
|
+
o.Item,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "radio-group-item",
|
|
26
|
+
className: e(
|
|
27
|
+
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
28
|
+
i
|
|
29
|
+
),
|
|
30
|
+
...a,
|
|
31
|
+
children: /* @__PURE__ */ r(
|
|
32
|
+
o.Indicator,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "radio-group-indicator",
|
|
35
|
+
className: "relative flex items-center justify-center",
|
|
36
|
+
children: /* @__PURE__ */ r(t, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
l as RadioGroup,
|
|
44
|
+
c as RadioGroupItem
|
|
45
|
+
};
|