boottent-design 0.1.260 → 0.1.261
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/design-system/components/article-asset-card.md +1 -1
- package/dist/design-system/components/blog-review-card.md +1 -1
- package/dist/design-system/components/camp-card.md +1 -1
- package/dist/design-system/components/company-info-card.md +1 -1
- package/dist/design-system/components/dday-card.md +1 -1
- package/dist/design-system/components/environment-asset-photo.md +1 -1
- package/dist/design-system/components/event-asset-banner.md +1 -1
- package/dist/design-system/components/event-card.md +1 -1
- package/dist/design-system/components/lecturer-card.md +1 -1
- package/dist/design-system/components/main-banner-image.md +1 -1
- package/dist/design-system/components/mobile-camp-card.md +1 -1
- package/dist/design-system/components/partner-list-card.md +1 -1
- package/dist/design-system/components/portfolio-asset-card.md +1 -1
- package/dist/design-system/components/premium-card.md +1 -1
- package/dist/design-system/components/title-tag-card.md +1 -1
- package/dist/design-system/components/youtube-video-modal.md +1 -1
- package/dist/design-system/design-system.md +3 -2
- package/dist/design-system/tokens.md +1 -1
- package/dist/design-system/ui/accordion.md +1 -1
- package/dist/design-system/ui/alert-dialog.md +1 -1
- package/dist/design-system/ui/anchor.md +1 -1
- package/dist/design-system/ui/aspect-ratio.md +1 -1
- package/dist/design-system/ui/avatar.md +1 -1
- package/dist/design-system/ui/badge.md +1 -1
- package/dist/design-system/ui/button.md +1 -1
- package/dist/design-system/ui/calendar.md +1 -1
- package/dist/design-system/ui/callout.md +1 -1
- package/dist/design-system/ui/card-label.md +1 -1
- package/dist/design-system/ui/card.md +1 -1
- package/dist/design-system/ui/checkbox.md +1 -1
- package/dist/design-system/ui/circled-check-button.md +1 -1
- package/dist/design-system/ui/command.md +1 -1
- package/dist/design-system/ui/dialog.md +1 -1
- package/dist/design-system/ui/dropdown-menu.md +1 -1
- package/dist/design-system/ui/file-uploader.md +1 -1
- package/dist/design-system/ui/form.md +1 -1
- package/dist/design-system/ui/highlight-text.md +1 -1
- package/dist/design-system/ui/icons.md +1 -1
- package/dist/design-system/ui/image.md +1 -1
- package/dist/design-system/ui/input.md +1 -1
- package/dist/design-system/ui/label.md +1 -1
- package/dist/design-system/ui/month-picker.md +1 -1
- package/dist/design-system/ui/multi-select.md +1 -1
- package/dist/design-system/ui/navigation-menu.md +1 -1
- package/dist/design-system/ui/popover.md +1 -1
- package/dist/design-system/ui/portal.md +64 -0
- package/dist/design-system/ui/progress.md +1 -1
- package/dist/design-system/ui/radio-group.md +1 -1
- package/dist/design-system/ui/scroll-area.md +1 -1
- package/dist/design-system/ui/select.md +1 -1
- package/dist/design-system/ui/separator.md +1 -1
- package/dist/design-system/ui/simple-table.md +1 -1
- package/dist/design-system/ui/skeleton.md +1 -1
- package/dist/design-system/ui/slider.md +1 -1
- package/dist/design-system/ui/switch.md +1 -1
- package/dist/design-system/ui/symbols.md +1 -1
- package/dist/design-system/ui/tabs.md +1 -1
- package/dist/design-system/ui/tag.md +1 -1
- package/dist/design-system/ui/text.md +1 -1
- package/dist/design-system/ui/textarea.md +1 -1
- package/dist/design-system/ui/toast.md +9 -3
- package/dist/design-system/ui/toggle-group.md +1 -1
- package/dist/design-system/ui/toggle.md +1 -1
- package/dist/design-system/ui/tooltip.md +1 -1
- package/dist/design-system/usage.md +1 -1
- package/dist/design-system/when-to-use.md +3 -2
- package/dist/styles.css +1 -1
- package/dist/types/button.d.ts +1 -1
- package/dist/types/command.d.ts +6 -6
- package/dist/types/multi-select.d.ts +2 -2
- package/dist/types/portal.d.ts +179 -0
- package/dist/types/toast.d.ts +31 -2
- package/dist/types/toggle-group.d.ts +2 -2
- package/dist/types/toggle.d.ts +2 -2
- package/dist/types/ui/accordion.d.ts +1 -1
- package/dist/types/ui/alert-dialog.d.ts +1 -1
- package/dist/types/ui/anchor.d.ts +1 -1
- package/dist/types/ui/aspect-ratio.d.ts +1 -1
- package/dist/types/ui/avatar.d.ts +1 -1
- package/dist/types/ui/badge.d.ts +1 -1
- package/dist/types/ui/button.d.ts +1 -1
- package/dist/types/ui/calendar.d.ts +1 -1
- package/dist/types/ui/callout.d.ts +1 -1
- package/dist/types/ui/card-label.d.ts +1 -1
- package/dist/types/ui/card.d.ts +1 -1
- package/dist/types/ui/checkbox.d.ts +1 -1
- package/dist/types/ui/circled-check-button.d.ts +1 -1
- package/dist/types/ui/command.d.ts +1 -1
- package/dist/types/ui/dialog.d.ts +1 -1
- package/dist/types/ui/dropdown-menu.d.ts +1 -1
- package/dist/types/ui/file-uploader.d.ts +1 -1
- package/dist/types/ui/form.d.ts +1 -1
- package/dist/types/ui/highlight-text.d.ts +1 -1
- package/dist/types/ui/icons.d.ts +1 -1
- package/dist/types/ui/image.d.ts +1 -1
- package/dist/types/ui/input.d.ts +1 -1
- package/dist/types/ui/label.d.ts +1 -1
- package/dist/types/ui/month-picker.d.ts +1 -1
- package/dist/types/ui/multi-select.d.ts +1 -1
- package/dist/types/ui/navigation-menu.d.ts +1 -1
- package/dist/types/ui/popover.d.ts +1 -1
- package/dist/types/ui/portal.d.ts +2 -0
- package/dist/types/ui/progress.d.ts +1 -1
- package/dist/types/ui/radio-group.d.ts +1 -1
- package/dist/types/ui/scroll-area.d.ts +1 -1
- package/dist/types/ui/select.d.ts +1 -1
- package/dist/types/ui/separator.d.ts +1 -1
- package/dist/types/ui/simple-table.d.ts +1 -1
- package/dist/types/ui/skeleton.d.ts +1 -1
- package/dist/types/ui/slider.d.ts +1 -1
- package/dist/types/ui/switch.d.ts +1 -1
- package/dist/types/ui/symbols.d.ts +1 -1
- package/dist/types/ui/tabs.d.ts +1 -1
- package/dist/types/ui/tag.d.ts +1 -1
- package/dist/types/ui/text.d.ts +1 -1
- package/dist/types/ui/textarea.d.ts +1 -1
- package/dist/types/ui/toast.d.ts +1 -1
- package/dist/types/ui/toggle-group.d.ts +1 -1
- package/dist/types/ui/toggle.d.ts +1 -1
- package/dist/types/ui/tooltip.d.ts +1 -1
- package/dist/types/ui.d.ts +42 -14
- package/dist/ui/portal.cjs.js +1 -0
- package/dist/ui/portal.es.js +561 -0
- package/dist/ui/toast.cjs.js +1 -1
- package/dist/ui/toast.es.js +202 -47
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +61 -57
- package/package.json +1 -1
package/dist/ui/toast.es.js
CHANGED
|
@@ -1,32 +1,183 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import * as
|
|
6
|
-
import { buttonVariants as
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
2
|
+
import { jsx as s, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import * as r from "@radix-ui/react-toast";
|
|
4
|
+
import { cva as R } from "class-variance-authority";
|
|
5
|
+
import * as l from "react";
|
|
6
|
+
import { buttonVariants as x } from "./button.es.js";
|
|
7
|
+
import { c as n } from "../common-zQ5XY0UN.js";
|
|
8
|
+
import { Icon as _ } from "./icons.es.js";
|
|
9
|
+
const D = 5, V = 2e3;
|
|
10
|
+
let p = 0;
|
|
11
|
+
function b() {
|
|
12
|
+
return p = (p + 1) % Number.MAX_SAFE_INTEGER, p.toString();
|
|
13
|
+
}
|
|
14
|
+
const f = /* @__PURE__ */ new Map(), w = (t) => {
|
|
15
|
+
if (f.has(t))
|
|
16
|
+
return;
|
|
17
|
+
const e = setTimeout(() => {
|
|
18
|
+
f.delete(t), d({
|
|
19
|
+
type: "REMOVE_TOAST",
|
|
20
|
+
toastId: t
|
|
21
|
+
});
|
|
22
|
+
}, V);
|
|
23
|
+
f.set(t, e);
|
|
24
|
+
}, M = (t, e) => {
|
|
25
|
+
switch (e.type) {
|
|
26
|
+
case "ADD_TOAST":
|
|
27
|
+
return {
|
|
28
|
+
...t,
|
|
29
|
+
toasts: [e.toast, ...t.toasts].slice(0, D)
|
|
30
|
+
};
|
|
31
|
+
case "UPDATE_TOAST":
|
|
32
|
+
return {
|
|
33
|
+
...t,
|
|
34
|
+
toasts: t.toasts.map((o) => o.id === e.toast.id ? { ...o, ...e.toast } : o)
|
|
35
|
+
};
|
|
36
|
+
case "DISMISS_TOAST": {
|
|
37
|
+
const { toastId: o } = e;
|
|
38
|
+
return o ? w(o) : t.toasts.forEach((a) => {
|
|
39
|
+
w(a.id || b());
|
|
40
|
+
}), {
|
|
41
|
+
...t,
|
|
42
|
+
toasts: t.toasts.map(
|
|
43
|
+
(a) => a.id === o || o === void 0 ? {
|
|
44
|
+
...a,
|
|
45
|
+
open: !1
|
|
46
|
+
} : a
|
|
47
|
+
)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
case "REMOVE_TOAST":
|
|
51
|
+
return e.toastId === void 0 ? {
|
|
52
|
+
...t,
|
|
53
|
+
toasts: []
|
|
54
|
+
} : {
|
|
55
|
+
...t,
|
|
56
|
+
toasts: t.toasts.filter((o) => o.id !== e.toastId)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}, T = /* @__PURE__ */ new Set();
|
|
60
|
+
let m = { toasts: [] };
|
|
61
|
+
const C = m;
|
|
62
|
+
function d(t) {
|
|
63
|
+
m = M(m, t), T.forEach((e) => {
|
|
64
|
+
e();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function k(t) {
|
|
68
|
+
return T.add(t), () => {
|
|
69
|
+
T.delete(t);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function z() {
|
|
73
|
+
return m;
|
|
74
|
+
}
|
|
75
|
+
function P() {
|
|
76
|
+
return C;
|
|
77
|
+
}
|
|
78
|
+
function j({ ...t }) {
|
|
79
|
+
const e = b(), o = (i) => d({
|
|
80
|
+
type: "UPDATE_TOAST",
|
|
81
|
+
toast: { ...i, id: e }
|
|
82
|
+
}), a = () => d({ type: "DISMISS_TOAST", toastId: e });
|
|
83
|
+
return d({
|
|
84
|
+
type: "ADD_TOAST",
|
|
85
|
+
toast: {
|
|
86
|
+
...t,
|
|
87
|
+
id: e,
|
|
88
|
+
open: !0,
|
|
89
|
+
onOpenChange: (i) => {
|
|
90
|
+
var c;
|
|
91
|
+
i || (a(), (c = t.onClose) == null || c.call(t));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}), {
|
|
95
|
+
id: e,
|
|
96
|
+
dismiss: a,
|
|
97
|
+
update: o
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function B() {
|
|
101
|
+
return {
|
|
102
|
+
...l.useSyncExternalStore(k, z, P),
|
|
103
|
+
toast: j,
|
|
104
|
+
dismiss: (e) => d({ type: "DISMISS_TOAST", toastId: e })
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function L(t) {
|
|
108
|
+
const { id: e, variant: o, title: a, closeButton: i, onAction: c, actionBtnText: g, description: I } = t, y = c && g, O = o === "black" ? "solid" : "outline";
|
|
109
|
+
return /* @__PURE__ */ s(S, { variant: o, ...t, children: /* @__PURE__ */ u(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: n("relative flex w-full items-center justify-between gap-2 whitespace-pre-wrap p-4", {
|
|
113
|
+
"items-end": a,
|
|
114
|
+
"pr-7": i,
|
|
115
|
+
"justify-center": !y
|
|
116
|
+
}),
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ u("div", { className: "flex flex-col gap-1", children: [
|
|
119
|
+
a && (typeof a != "string" || a.trim().length > 0) && /* @__PURE__ */ s(N, { children: a }),
|
|
120
|
+
/* @__PURE__ */ s(E, { children: I })
|
|
121
|
+
] }),
|
|
122
|
+
y && /* @__PURE__ */ s(
|
|
123
|
+
v,
|
|
124
|
+
{
|
|
125
|
+
altText: e || "toast action",
|
|
126
|
+
onClick: c,
|
|
127
|
+
className: n(
|
|
128
|
+
x({ variant: O, size: "sm", theme: "secondary" }),
|
|
129
|
+
{
|
|
130
|
+
"border-grey-800 bg-grey-800 text-grey-50": o === "black",
|
|
131
|
+
"border-grey-100 bg-gray-50 text-grey-800": o === "white"
|
|
132
|
+
},
|
|
133
|
+
"px-2 py-1 text-xs"
|
|
134
|
+
),
|
|
135
|
+
children: g
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
i && /* @__PURE__ */ s(A, { children: /* @__PURE__ */ s(
|
|
139
|
+
_.Cancel,
|
|
140
|
+
{
|
|
141
|
+
size: "10",
|
|
142
|
+
className: n({
|
|
143
|
+
"fill-grey-600 hover:fill-grey-800": o === "white",
|
|
144
|
+
"fill-grey-100 hover:fill-white": o === "black"
|
|
145
|
+
})
|
|
146
|
+
}
|
|
147
|
+
) })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
) }, e);
|
|
151
|
+
}
|
|
152
|
+
function J() {
|
|
153
|
+
const { toasts: t } = B();
|
|
154
|
+
return /* @__PURE__ */ u(F, { children: [
|
|
155
|
+
t.map((e) => /* @__PURE__ */ s(L, { ...e }, e.id)),
|
|
156
|
+
/* @__PURE__ */ s(h, {})
|
|
157
|
+
] });
|
|
158
|
+
}
|
|
159
|
+
const F = r.Provider, U = {
|
|
9
160
|
"top-left": "top-0 left-0 bottom-auto mt-10 items-start",
|
|
10
161
|
"top-center": "top-0 left-1/2 bottom-auto transform -translate-x-1/2 mt-10 items-center",
|
|
11
162
|
"top-right": "top-0 right-0 bottom-auto items-end mt-10",
|
|
12
163
|
"bottom-left": "top-auto bottom-4 left-0 items-start",
|
|
13
164
|
"bottom-center": "top-auto bottom-4 left-1/2 transform -translate-x-1/2 items-center",
|
|
14
165
|
"bottom-right": "top-auto bottom-4 right-0 items-end"
|
|
15
|
-
},
|
|
16
|
-
|
|
166
|
+
}, h = l.forwardRef(({ className: t, id: e, position: o = "top-center", ...a }, i) => /* @__PURE__ */ s(
|
|
167
|
+
r.Viewport,
|
|
17
168
|
{
|
|
18
|
-
ref:
|
|
19
|
-
id:
|
|
20
|
-
className:
|
|
169
|
+
ref: i,
|
|
170
|
+
id: e,
|
|
171
|
+
className: n(
|
|
21
172
|
"fixed z-[100] flex flex-col-reverse gap-2 p-4 outline-none ring-transparent",
|
|
22
|
-
|
|
23
|
-
|
|
173
|
+
U[o],
|
|
174
|
+
t
|
|
24
175
|
),
|
|
25
|
-
...
|
|
176
|
+
...a
|
|
26
177
|
}
|
|
27
178
|
));
|
|
28
|
-
|
|
29
|
-
const
|
|
179
|
+
h.displayName = r.Viewport.displayName;
|
|
180
|
+
const G = R(
|
|
30
181
|
"group pointer-events-auto bg-opacity-90 overflow-hidden rounded-lg border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-top-full",
|
|
31
182
|
{
|
|
32
183
|
variants: {
|
|
@@ -48,48 +199,52 @@ const c = m(
|
|
|
48
199
|
size: "fit"
|
|
49
200
|
}
|
|
50
201
|
}
|
|
51
|
-
),
|
|
52
|
-
|
|
202
|
+
), S = l.forwardRef(({ className: t, variant: e, size: o, ...a }, i) => /* @__PURE__ */ s(
|
|
203
|
+
r.Root,
|
|
53
204
|
{
|
|
54
|
-
ref:
|
|
55
|
-
className:
|
|
205
|
+
ref: i,
|
|
206
|
+
className: n(G({ variant: e, size: o }), t),
|
|
56
207
|
duration: 3e3,
|
|
57
|
-
...
|
|
208
|
+
...a
|
|
58
209
|
}
|
|
59
210
|
));
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
211
|
+
S.displayName = r.Root.displayName;
|
|
212
|
+
const v = l.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
213
|
+
r.Action,
|
|
63
214
|
{
|
|
64
215
|
ref: o,
|
|
65
|
-
className:
|
|
66
|
-
...
|
|
216
|
+
className: n(x({ variant: "outline", size: "sm", theme: "secondary" }), t),
|
|
217
|
+
...e
|
|
67
218
|
}
|
|
68
219
|
));
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
220
|
+
v.displayName = r.Action.displayName;
|
|
221
|
+
const A = l.forwardRef(({ className: t, children: e, ...o }, a) => /* @__PURE__ */ s(
|
|
222
|
+
r.Close,
|
|
72
223
|
{
|
|
73
|
-
ref:
|
|
74
|
-
className:
|
|
224
|
+
ref: a,
|
|
225
|
+
className: n("absolute right-1.5 top-1.5 rounded-md p-1 focus:outline-none", t),
|
|
75
226
|
"toast-close": "",
|
|
76
227
|
...o,
|
|
77
|
-
children:
|
|
228
|
+
children: e
|
|
78
229
|
}
|
|
79
230
|
));
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
|
|
231
|
+
A.displayName = r.Close.displayName;
|
|
232
|
+
const N = l.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ s(r.Title, { ref: o, className: n("text-sm font-semibold", t), ...e }));
|
|
233
|
+
N.displayName = r.Title.displayName;
|
|
234
|
+
const E = l.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ s(r.Description, { ref: o, className: n("text-sm font-normal", t), ...e }));
|
|
235
|
+
E.displayName = r.Description.displayName;
|
|
85
236
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
237
|
+
S as Toast,
|
|
238
|
+
v as ToastAction,
|
|
239
|
+
A as ToastClose,
|
|
240
|
+
E as ToastDescription,
|
|
241
|
+
L as ToastForm,
|
|
242
|
+
J as ToastManager,
|
|
243
|
+
F as ToastProvider,
|
|
244
|
+
N as ToastTitle,
|
|
245
|
+
h as ToastViewport,
|
|
246
|
+
j as toast,
|
|
247
|
+
U as toastPositionVariants,
|
|
248
|
+
G as toastVariants,
|
|
249
|
+
B as useToast
|
|
95
250
|
};
|
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./ui/accordion.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./ui/accordion.cjs.js"),t=require("./ui/alert-dialog.cjs.js"),v=require("./ui/anchor.cjs.js"),A=require("./ui/aspect-ratio.cjs.js"),p=require("./ui/avatar.cjs.js"),D=require("./ui/badge.cjs.js"),T=require("./ui/button.cjs.js"),w=require("./ui/calendar.cjs.js"),F=require("./ui/callout.cjs.js"),u=require("./ui/card.cjs.js"),I=require("./ui/card-label.cjs.js"),h=require("./ui/checkbox.cjs.js"),P=require("./ui/circled-check-button.cjs.js"),a=require("./ui/command.cjs.js"),r=require("./ui/dialog.cjs.js"),e=require("./ui/dropdown-menu.cjs.js"),c=require("./ui/file-uploader.cjs.js"),l=require("./ui/form.cjs.js"),L=require("./ui/highlight-text.cjs.js"),k=require("./ui/icons.cjs.js");require("react/jsx-runtime");const G=require("./ui/input.cjs.js"),V=require("./ui/label.cjs.js"),N=require("./ui/month-picker.cjs.js"),g=require("./ui/multi-select.cjs.js"),n=require("./ui/navigation-menu.cjs.js"),m=require("./ui/popover.cjs.js"),B=require("./ui/progress.cjs.js"),C=require("./ui/radio-group.cjs.js"),S=require("./ui/scroll-area.cjs.js"),i=require("./ui/select.cjs.js"),x=require("./ui/separator.cjs.js"),y=require("./ui/simple-table.cjs.js"),R=require("./ui/skeleton.cjs.js"),U=require("./ui/slider.cjs.js"),H=require("./ui/switch.cjs.js"),O=require("./ui/symbols.cjs.js"),d=require("./ui/tabs.cjs.js"),M=require("./ui/tag.cjs.js"),f=require("./ui/text.cjs.js"),E=require("./ui/textarea.cjs.js"),o=require("./ui/toast.cjs.js"),b=require("./ui/toggle.cjs.js"),q=require("./ui/toggle-group.cjs.js"),s=require("./ui/tooltip.cjs.js");exports.Accordion=_.Accordion;exports.AlertDialog=t.AlertDialog;exports.AlertDialogAction=t.AlertDialogAction;exports.AlertDialogCancel=t.AlertDialogCancel;exports.AlertDialogContent=t.AlertDialogContent;exports.AlertDialogDescription=t.AlertDialogDescription;exports.AlertDialogFooter=t.AlertDialogFooter;exports.AlertDialogHeader=t.AlertDialogHeader;exports.AlertDialogOverlay=t.AlertDialogOverlay;exports.AlertDialogPortal=t.AlertDialogPortal;exports.AlertDialogTitle=t.AlertDialogTitle;exports.AlertDialogTrigger=t.AlertDialogTrigger;exports.Anchor=v.Anchor;exports.AspectRatio=A.AspectRatio;exports.Avatar=p.Avatar;exports.AvatarFallback=p.AvatarFallback;exports.AvatarImage=p.AvatarImage;exports.Badge=D.Badge;exports.badgeVariants=D.badgeVariants;exports.Button=T.Button;exports.buttonVariants=T.buttonVariants;exports.Calendar=w.Calendar;exports.Callout=F.Callout;exports.Card=u.Card;exports.CardContent=u.CardContent;exports.CardDescription=u.CardDescription;exports.CardFooter=u.CardFooter;exports.CardHeader=u.CardHeader;exports.CardTitle=u.CardTitle;exports.CardLabel=I.CardLabel;exports.Checkbox=h.Checkbox;exports.CircledCheckButton=P.CircledCheckButton;exports.Command=a.Command;exports.CommandDialog=a.CommandDialog;exports.CommandEmpty=a.CommandEmpty;exports.CommandGroup=a.CommandGroup;exports.CommandInput=a.CommandInput;exports.CommandItem=a.CommandItem;exports.CommandList=a.CommandList;exports.CommandSeparator=a.CommandSeparator;exports.CommandShortcut=a.CommandShortcut;exports.Dialog=r.Dialog;exports.DialogClose=r.DialogClose;exports.DialogContent=r.DialogContent;exports.DialogDescription=r.DialogDescription;exports.DialogFooter=r.DialogFooter;exports.DialogHeader=r.DialogHeader;exports.DialogOverlay=r.DialogOverlay;exports.DialogPortal=r.DialogPortal;exports.DialogTitle=r.DialogTitle;exports.DialogTrigger=r.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.FileInput=c.FileInput;exports.FileUploader=c.FileUploader;exports.FileUploaderContent=c.FileUploaderContent;exports.FileUploaderItem=c.FileUploaderItem;exports.useFileUpload=c.useFileUpload;exports.Form=l.Form;exports.FormControl=l.FormControl;exports.FormDescription=l.FormDescription;exports.FormField=l.FormField;exports.FormItem=l.FormItem;exports.FormLabel=l.FormLabel;exports.FormMessage=l.FormMessage;exports.useFormField=l.useFormField;exports.HighlightText=L.HighlightText;exports.Icon=k.Icon;exports.Input=G.Input;exports.Label=V.Label;exports.MonthPicker=N.MonthPicker;exports.MultiSelector=g.MultiSelector;exports.MultiSelectorContent=g.MultiSelectorContent;exports.MultiSelectorInput=g.MultiSelectorInput;exports.MultiSelectorItem=g.MultiSelectorItem;exports.MultiSelectorList=g.MultiSelectorList;exports.MultiSelectorTrigger=g.MultiSelectorTrigger;exports.NavigationMenu=n.NavigationMenu;exports.NavigationMenuContent=n.NavigationMenuContent;exports.NavigationMenuIndicator=n.NavigationMenuIndicator;exports.NavigationMenuItem=n.NavigationMenuItem;exports.NavigationMenuLink=n.NavigationMenuLink;exports.NavigationMenuList=n.NavigationMenuList;exports.NavigationMenuTrigger=n.NavigationMenuTrigger;exports.NavigationMenuViewport=n.NavigationMenuViewport;exports.navigationMenuTriggerStyle=n.navigationMenuTriggerStyle;exports.Popover=m.Popover;exports.PopoverContent=m.PopoverContent;exports.PopoverTrigger=m.PopoverTrigger;exports.Progress=B.Progress;exports.RadioGroup=C.RadioGroup;exports.RadioGroupItem=C.RadioGroupItem;exports.ScrollArea=S.ScrollArea;exports.ScrollBar=S.ScrollBar;exports.Select=i.Select;exports.SelectContent=i.SelectContent;exports.SelectGroup=i.SelectGroup;exports.SelectItem=i.SelectItem;exports.SelectLabel=i.SelectLabel;exports.SelectScrollDownButton=i.SelectScrollDownButton;exports.SelectScrollUpButton=i.SelectScrollUpButton;exports.SelectSeparator=i.SelectSeparator;exports.SelectTrigger=i.SelectTrigger;exports.SelectValue=i.SelectValue;exports.Separator=x.Separator;exports.SimpleTable=y.SimpleTable;exports.Skeleton=R.Skeleton;exports.Slider=U.Slider;exports.Switch=H.Switch;exports.Symbols=O.Symbols;exports.Tabs=d.Tabs;exports.TabsContent=d.TabsContent;exports.TabsList=d.TabsList;exports.TabsTrigger=d.TabsTrigger;exports.Tag=M.Tag;exports.tagVariants=M.tagVariants;exports.Text=f.Text;exports.Textarea=E.Textarea;exports.Toast=o.Toast;exports.ToastAction=o.ToastAction;exports.ToastClose=o.ToastClose;exports.ToastDescription=o.ToastDescription;exports.ToastForm=o.ToastForm;exports.ToastManager=o.ToastManager;exports.ToastProvider=o.ToastProvider;exports.ToastTitle=o.ToastTitle;exports.ToastViewport=o.ToastViewport;exports.toast=o.toast;exports.toastPositionVariants=o.toastPositionVariants;exports.toastVariants=o.toastVariants;exports.useToast=o.useToast;exports.Toggle=b.Toggle;exports.toggleVariants=b.toggleVariants;exports.ToggleGroup=q.ToggleGroup;exports.ToggleGroupItem=q.ToggleGroupItem;exports.Tooltip=s.Tooltip;exports.TooltipBubble=s.TooltipBubble;exports.TooltipContent=s.TooltipContent;exports.TooltipProvider=s.TooltipProvider;exports.TooltipTrigger=s.TooltipTrigger;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Accordion as t } from "./ui/accordion.es.js";
|
|
3
|
-
import { AlertDialog as i, AlertDialogAction as
|
|
4
|
-
import { Anchor as
|
|
3
|
+
import { AlertDialog as i, AlertDialogAction as n, AlertDialogCancel as l, AlertDialogContent as p, AlertDialogDescription as m, AlertDialogFooter as g, AlertDialogHeader as u, AlertDialogOverlay as d, AlertDialogPortal as x, AlertDialogTitle as s, AlertDialogTrigger as c } from "./ui/alert-dialog.es.js";
|
|
4
|
+
import { Anchor as D } from "./ui/anchor.es.js";
|
|
5
5
|
import { AspectRatio as C } from "./ui/aspect-ratio.es.js";
|
|
6
6
|
import { Avatar as M, AvatarFallback as b, AvatarImage as A } from "./ui/avatar.es.js";
|
|
7
|
-
import { Badge as
|
|
7
|
+
import { Badge as v, badgeVariants as w } from "./ui/badge.es.js";
|
|
8
8
|
import { Button as P, buttonVariants as h } from "./ui/button.es.js";
|
|
9
9
|
import { Calendar as V } from "./ui/calendar.es.js";
|
|
10
10
|
import { Callout as N } from "./ui/callout.es.js";
|
|
@@ -13,8 +13,8 @@ import { CardLabel as j } from "./ui/card-label.es.js";
|
|
|
13
13
|
import { Checkbox as z } from "./ui/checkbox.es.js";
|
|
14
14
|
import { CircledCheckButton as K } from "./ui/circled-check-button.es.js";
|
|
15
15
|
import { Command as W, CommandDialog as X, CommandEmpty as Y, CommandGroup as Z, CommandInput as _, CommandItem as $, CommandList as oo, CommandSeparator as ro, CommandShortcut as eo } from "./ui/command.es.js";
|
|
16
|
-
import { Dialog as ao, DialogClose as io, DialogContent as
|
|
17
|
-
import { DropdownMenu as
|
|
16
|
+
import { Dialog as ao, DialogClose as io, DialogContent as no, DialogDescription as lo, DialogFooter as po, DialogHeader as mo, DialogOverlay as go, DialogPortal as uo, DialogTitle as xo, DialogTrigger as so } from "./ui/dialog.es.js";
|
|
17
|
+
import { DropdownMenu as fo, DropdownMenuCheckboxItem as Do, DropdownMenuContent as To, DropdownMenuGroup as Co, DropdownMenuItem as So, DropdownMenuLabel as Mo, DropdownMenuPortal as bo, DropdownMenuRadioGroup as Ao, DropdownMenuRadioItem as Fo, DropdownMenuSeparator as vo, DropdownMenuShortcut as wo, DropdownMenuSub as Io, DropdownMenuSubContent as Po, DropdownMenuSubTrigger as ho, DropdownMenuTrigger as Lo } from "./ui/dropdown-menu.es.js";
|
|
18
18
|
import { FileInput as Go, FileUploader as No, FileUploaderContent as ko, FileUploaderItem as Bo, useFileUpload as yo } from "./ui/file-uploader.es.js";
|
|
19
19
|
import { Form as Uo, FormControl as Ho, FormDescription as Oo, FormField as Eo, FormItem as jo, FormLabel as qo, FormMessage as zo, useFormField as Jo } from "./ui/form.es.js";
|
|
20
20
|
import { HighlightText as Qo } from "./ui/highlight-text.es.js";
|
|
@@ -23,11 +23,11 @@ import "react/jsx-runtime";
|
|
|
23
23
|
import { Input as Zo } from "./ui/input.es.js";
|
|
24
24
|
import { Label as $o } from "./ui/label.es.js";
|
|
25
25
|
import { MonthPicker as rr } from "./ui/month-picker.es.js";
|
|
26
|
-
import { MultiSelector as tr, MultiSelectorContent as ar, MultiSelectorInput as ir, MultiSelectorItem as
|
|
27
|
-
import { NavigationMenu as gr, NavigationMenuContent as ur, NavigationMenuIndicator as dr, NavigationMenuItem as xr, NavigationMenuLink as
|
|
26
|
+
import { MultiSelector as tr, MultiSelectorContent as ar, MultiSelectorInput as ir, MultiSelectorItem as nr, MultiSelectorList as lr, MultiSelectorTrigger as pr } from "./ui/multi-select.es.js";
|
|
27
|
+
import { NavigationMenu as gr, NavigationMenuContent as ur, NavigationMenuIndicator as dr, NavigationMenuItem as xr, NavigationMenuLink as sr, NavigationMenuList as cr, NavigationMenuTrigger as fr, NavigationMenuViewport as Dr, navigationMenuTriggerStyle as Tr } from "./ui/navigation-menu.es.js";
|
|
28
28
|
import { Popover as Sr, PopoverContent as Mr, PopoverTrigger as br } from "./ui/popover.es.js";
|
|
29
|
-
import { Progress as
|
|
30
|
-
import { RadioGroup as
|
|
29
|
+
import { Progress as Fr } from "./ui/progress.es.js";
|
|
30
|
+
import { RadioGroup as wr, RadioGroupItem as Ir } from "./ui/radio-group.es.js";
|
|
31
31
|
import { ScrollArea as hr, ScrollBar as Lr } from "./ui/scroll-area.es.js";
|
|
32
32
|
import { Select as Gr, SelectContent as Nr, SelectGroup as kr, SelectItem as Br, SelectLabel as yr, SelectScrollDownButton as Rr, SelectScrollUpButton as Ur, SelectSeparator as Hr, SelectTrigger as Or, SelectValue as Er } from "./ui/select.es.js";
|
|
33
33
|
import { Separator as qr } from "./ui/separator.es.js";
|
|
@@ -37,32 +37,32 @@ import { Slider as Xr } from "./ui/slider.es.js";
|
|
|
37
37
|
import { Switch as Zr } from "./ui/switch.es.js";
|
|
38
38
|
import { Symbols as $r } from "./ui/symbols.es.js";
|
|
39
39
|
import { Tabs as re, TabsContent as ee, TabsList as te, TabsTrigger as ae } from "./ui/tabs.es.js";
|
|
40
|
-
import { Tag as
|
|
40
|
+
import { Tag as ne, tagVariants as le } from "./ui/tag.es.js";
|
|
41
41
|
import { Text as me } from "./ui/text.es.js";
|
|
42
42
|
import { Textarea as ue } from "./ui/textarea.es.js";
|
|
43
|
-
import { Toast as xe, ToastAction as
|
|
44
|
-
import { Toggle as
|
|
45
|
-
import { ToggleGroup as
|
|
46
|
-
import { Tooltip as
|
|
43
|
+
import { Toast as xe, ToastAction as se, ToastClose as ce, ToastDescription as fe, ToastForm as De, ToastManager as Te, ToastProvider as Ce, ToastTitle as Se, ToastViewport as Me, toast as be, toastPositionVariants as Ae, toastVariants as Fe, useToast as ve } from "./ui/toast.es.js";
|
|
44
|
+
import { Toggle as Ie, toggleVariants as Pe } from "./ui/toggle.es.js";
|
|
45
|
+
import { ToggleGroup as Le, ToggleGroupItem as Ve } from "./ui/toggle-group.es.js";
|
|
46
|
+
import { Tooltip as Ne, TooltipBubble as ke, TooltipContent as Be, TooltipProvider as ye, TooltipTrigger as Re } from "./ui/tooltip.es.js";
|
|
47
47
|
export {
|
|
48
48
|
t as Accordion,
|
|
49
49
|
i as AlertDialog,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
n as AlertDialogAction,
|
|
51
|
+
l as AlertDialogCancel,
|
|
52
52
|
p as AlertDialogContent,
|
|
53
53
|
m as AlertDialogDescription,
|
|
54
54
|
g as AlertDialogFooter,
|
|
55
55
|
u as AlertDialogHeader,
|
|
56
56
|
d as AlertDialogOverlay,
|
|
57
57
|
x as AlertDialogPortal,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
s as AlertDialogTitle,
|
|
59
|
+
c as AlertDialogTrigger,
|
|
60
|
+
D as Anchor,
|
|
61
61
|
C as AspectRatio,
|
|
62
62
|
M as Avatar,
|
|
63
63
|
b as AvatarFallback,
|
|
64
64
|
A as AvatarImage,
|
|
65
|
-
|
|
65
|
+
v as Badge,
|
|
66
66
|
P as Button,
|
|
67
67
|
V as Calendar,
|
|
68
68
|
N as Callout,
|
|
@@ -86,25 +86,25 @@ export {
|
|
|
86
86
|
eo as CommandShortcut,
|
|
87
87
|
ao as Dialog,
|
|
88
88
|
io as DialogClose,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
no as DialogContent,
|
|
90
|
+
lo as DialogDescription,
|
|
91
91
|
po as DialogFooter,
|
|
92
92
|
mo as DialogHeader,
|
|
93
93
|
go as DialogOverlay,
|
|
94
94
|
uo as DialogPortal,
|
|
95
95
|
xo as DialogTitle,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
so as DialogTrigger,
|
|
97
|
+
fo as DropdownMenu,
|
|
98
|
+
Do as DropdownMenuCheckboxItem,
|
|
99
99
|
To as DropdownMenuContent,
|
|
100
100
|
Co as DropdownMenuGroup,
|
|
101
101
|
So as DropdownMenuItem,
|
|
102
102
|
Mo as DropdownMenuLabel,
|
|
103
103
|
bo as DropdownMenuPortal,
|
|
104
104
|
Ao as DropdownMenuRadioGroup,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
Fo as DropdownMenuRadioItem,
|
|
106
|
+
vo as DropdownMenuSeparator,
|
|
107
|
+
wo as DropdownMenuShortcut,
|
|
108
108
|
Io as DropdownMenuSub,
|
|
109
109
|
Po as DropdownMenuSubContent,
|
|
110
110
|
ho as DropdownMenuSubTrigger,
|
|
@@ -128,22 +128,22 @@ export {
|
|
|
128
128
|
tr as MultiSelector,
|
|
129
129
|
ar as MultiSelectorContent,
|
|
130
130
|
ir as MultiSelectorInput,
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
nr as MultiSelectorItem,
|
|
132
|
+
lr as MultiSelectorList,
|
|
133
133
|
pr as MultiSelectorTrigger,
|
|
134
134
|
gr as NavigationMenu,
|
|
135
135
|
ur as NavigationMenuContent,
|
|
136
136
|
dr as NavigationMenuIndicator,
|
|
137
137
|
xr as NavigationMenuItem,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
sr as NavigationMenuLink,
|
|
139
|
+
cr as NavigationMenuList,
|
|
140
|
+
fr as NavigationMenuTrigger,
|
|
141
|
+
Dr as NavigationMenuViewport,
|
|
142
142
|
Sr as Popover,
|
|
143
143
|
Mr as PopoverContent,
|
|
144
144
|
br as PopoverTrigger,
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
Fr as Progress,
|
|
146
|
+
wr as RadioGroup,
|
|
147
147
|
Ir as RadioGroupItem,
|
|
148
148
|
hr as ScrollArea,
|
|
149
149
|
Lr as ScrollBar,
|
|
@@ -167,31 +167,35 @@ export {
|
|
|
167
167
|
ee as TabsContent,
|
|
168
168
|
te as TabsList,
|
|
169
169
|
ae as TabsTrigger,
|
|
170
|
-
|
|
170
|
+
ne as Tag,
|
|
171
171
|
me as Text,
|
|
172
172
|
ue as Textarea,
|
|
173
173
|
xe as Toast,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Te as
|
|
179
|
-
Ce as
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
Ie as
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
174
|
+
se as ToastAction,
|
|
175
|
+
ce as ToastClose,
|
|
176
|
+
fe as ToastDescription,
|
|
177
|
+
De as ToastForm,
|
|
178
|
+
Te as ToastManager,
|
|
179
|
+
Ce as ToastProvider,
|
|
180
|
+
Se as ToastTitle,
|
|
181
|
+
Me as ToastViewport,
|
|
182
|
+
Ie as Toggle,
|
|
183
|
+
Le as ToggleGroup,
|
|
184
|
+
Ve as ToggleGroupItem,
|
|
185
|
+
Ne as Tooltip,
|
|
186
|
+
ke as TooltipBubble,
|
|
187
|
+
Be as TooltipContent,
|
|
188
|
+
ye as TooltipProvider,
|
|
189
|
+
Re as TooltipTrigger,
|
|
190
|
+
w as badgeVariants,
|
|
189
191
|
h as buttonVariants,
|
|
190
192
|
Tr as navigationMenuTriggerStyle,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
le as tagVariants,
|
|
194
|
+
be as toast,
|
|
195
|
+
Ae as toastPositionVariants,
|
|
196
|
+
Fe as toastVariants,
|
|
197
|
+
Pe as toggleVariants,
|
|
195
198
|
yo as useFileUpload,
|
|
196
|
-
Jo as useFormField
|
|
199
|
+
Jo as useFormField,
|
|
200
|
+
ve as useToast
|
|
197
201
|
};
|