@gv-tech/ui-web 2.9.1 → 2.12.0
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/accordion.cjs.js +1 -0
- package/dist/accordion.d.ts +18 -0
- package/dist/accordion.es.js +259 -0
- package/dist/alert-dialog.cjs.js +7 -0
- package/dist/alert-dialog.d.ts +43 -0
- package/dist/alert-dialog.es.js +171 -0
- package/dist/alert.cjs.js +1 -0
- package/dist/alert.d.ts +18 -0
- package/dist/alert.es.js +32 -0
- package/dist/aspect-ratio.cjs.js +1 -0
- package/dist/aspect-ratio.d.ts +10 -0
- package/dist/aspect-ratio.es.js +43 -0
- package/dist/avatar.cjs.js +1 -0
- package/dist/avatar.d.ts +15 -0
- package/dist/avatar.es.js +205 -0
- package/dist/badge.cjs.js +1 -0
- package/dist/badge.d.ts +16 -0
- package/dist/badge.es.js +26 -0
- package/dist/breadcrumb.cjs.js +1 -0
- package/dist/breadcrumb.d.ts +35 -0
- package/dist/breadcrumb.es.js +69 -0
- package/dist/button.cjs.js +1 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.es.js +40 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.d.ts +29 -0
- package/dist/calendar.es.js +2976 -0
- package/dist/card.cjs.js +1 -0
- package/dist/card.d.ts +19 -0
- package/dist/card.es.js +33 -0
- package/dist/carousel.cjs.js +1 -0
- package/dist/carousel.d.ts +50 -0
- package/dist/carousel.es.js +1403 -0
- package/dist/chart.cjs.js +16 -0
- package/dist/chart.d.ts +60 -0
- package/dist/chart.es.js +4402 -0
- package/dist/checkbox.cjs.js +1 -0
- package/dist/checkbox.d.ts +10 -0
- package/dist/checkbox.es.js +258 -0
- package/dist/collapsible.cjs.js +1 -0
- package/dist/collapsible.d.ts +20 -0
- package/dist/collapsible.es.js +7 -0
- package/dist/command.cjs.js +1 -0
- package/dist/command.d.ts +115 -0
- package/dist/command.es.js +396 -0
- package/dist/context-menu.cjs.js +1 -0
- package/dist/context-menu.d.ts +80 -0
- package/dist/context-menu.es.js +328 -0
- package/dist/dialog.cjs.js +1 -0
- package/dist/dialog.d.ts +31 -0
- package/dist/dialog.es.js +66 -0
- package/dist/drawer.cjs.js +3 -0
- package/dist/drawer.d.ts +65 -0
- package/dist/drawer.es.js +1085 -0
- package/dist/dropdown-menu.cjs.js +1 -0
- package/dist/dropdown-menu.d.ts +80 -0
- package/dist/dropdown-menu.es.js +316 -0
- package/dist/form.cjs.js +1 -0
- package/dist/form.d.ts +53 -0
- package/dist/form.es.js +355 -0
- package/dist/hover-card.cjs.js +1 -0
- package/dist/hover-card.d.ts +19 -0
- package/dist/hover-card.es.js +188 -0
- package/dist/index-0ioNhtNM.mjs +10 -0
- package/dist/index-3j-XAIXT.mjs +55 -0
- package/dist/index-B2XtpfGY.js +1 -0
- package/dist/index-B39Lzq0v.js +1 -0
- package/dist/index-B7n6fy75.js +1 -0
- package/dist/index-B8dxbSWX.js +41 -0
- package/dist/index-BGIK9FQF.js +1 -0
- package/dist/index-BZPx6jYI.mjs +8 -0
- package/dist/index-BoNjHhm4.js +1 -0
- package/dist/index-BtZvtDmp.js +1 -0
- package/dist/index-Bv7qrYW6.mjs +180 -0
- package/dist/index-ByiPJW53.js +5 -0
- package/dist/index-C0dlIQIi.js +1 -0
- package/dist/index-C1qb0595.mjs +27 -0
- package/dist/index-C7HEunrh.mjs +15 -0
- package/dist/index-C8ni3LLa.js +1 -0
- package/dist/index-CCKe-Mpx.mjs +6 -0
- package/dist/index-CD6_IrA-.mjs +10 -0
- package/dist/index-CRyCZJLa.mjs +677 -0
- package/dist/index-CVx1AgNG.mjs +615 -0
- package/dist/index-Ce5TOFAK.js +1 -0
- package/dist/index-CeSLNJ60.mjs +32 -0
- package/dist/index-CefEQe_4.js +1 -0
- package/dist/index-Cj5hzyBi.js +1 -0
- package/dist/index-Cjj_rUPu.js +1 -0
- package/dist/index-Cl3G0jzM.js +1 -0
- package/dist/index-CsjrqSSN.js +1 -0
- package/dist/index-CwfE56Ep.mjs +1545 -0
- package/dist/index-CwyAfCwY.js +1 -0
- package/dist/index-CzY-WZXL.js +1 -0
- package/dist/index-D2HnlO3y.js +1 -0
- package/dist/index-DAWHN3cH.mjs +85 -0
- package/dist/index-DFdF7K7v.mjs +50 -0
- package/dist/index-DIsg7zU7.js +1 -0
- package/dist/index-DKN_vhyX.mjs +32 -0
- package/dist/index-DLcqcWxM.mjs +29 -0
- package/dist/index-DSxf1gN6.mjs +118 -0
- package/dist/index-DYxWvftI.js +1 -0
- package/dist/index-DaILh3TV.mjs +32 -0
- package/dist/index-Dfzl8TxY.mjs +136 -0
- package/dist/index-Dko2XdTk.js +1 -0
- package/dist/index-DlY82G31.mjs +245 -0
- package/dist/index-DnFcfnA9.mjs +13 -0
- package/dist/index-IZ2gq03c.mjs +68 -0
- package/dist/index-K9FzbxYw.mjs +93 -0
- package/dist/index-Le8p9oP4.mjs +60 -0
- package/dist/index-MQ0c3ZX_.js +1 -0
- package/dist/index-_XxjJPRD.js +1 -0
- package/dist/index-_wdrnYim.js +1 -0
- package/dist/index-jv3B4mTd.js +1 -0
- package/dist/index-kaM0u2Q1.js +1 -0
- package/dist/index-p6xVFRb4.mjs +52 -0
- package/dist/index-rKs9bXHr.mjs +6 -0
- package/dist/index-vuPgkS0V.mjs +70 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1288 -0
- package/dist/index.es.js +289 -0
- package/dist/input.cjs.js +1 -0
- package/dist/input.d.ts +9 -0
- package/dist/input.es.js +19 -0
- package/dist/jsx-runtime-nZSsnGb7.js +6 -0
- package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
- package/dist/label.cjs.js +1 -0
- package/dist/label.d.ts +11 -0
- package/dist/label.es.js +22 -0
- package/dist/menubar.cjs.js +1 -0
- package/dist/menubar.d.ts +79 -0
- package/dist/menubar.es.js +473 -0
- package/dist/navigation-menu.cjs.js +1 -0
- package/dist/navigation-menu.d.ts +47 -0
- package/dist/navigation-menu.es.js +673 -0
- package/dist/pagination.cjs.js +1 -0
- package/dist/pagination.d.ts +68 -0
- package/dist/pagination.es.js +68 -0
- package/dist/popover.cjs.js +1 -0
- package/dist/popover.d.ts +24 -0
- package/dist/popover.es.js +242 -0
- package/dist/progress.cjs.js +6 -0
- package/dist/progress.d.ts +9 -0
- package/dist/progress.es.js +99 -0
- package/dist/radio-group.cjs.js +1 -0
- package/dist/radio-group.d.ts +16 -0
- package/dist/radio-group.es.js +253 -0
- package/dist/resizable.cjs.js +1 -0
- package/dist/resizable.d.ts +22 -0
- package/dist/resizable.es.js +1990 -0
- package/dist/scroll-area.cjs.js +1 -0
- package/dist/scroll-area.d.ts +14 -0
- package/dist/scroll-area.es.js +546 -0
- package/dist/search.cjs.js +1 -0
- package/dist/search.d.ts +15 -0
- package/dist/search.es.js +51 -0
- package/dist/select.cjs.js +1 -0
- package/dist/select.d.ts +54 -0
- package/dist/select.es.js +908 -0
- package/dist/separator.cjs.js +1 -0
- package/dist/separator.d.ts +9 -0
- package/dist/separator.es.js +35 -0
- package/dist/sheet.cjs.js +1 -0
- package/dist/sheet.d.ts +68 -0
- package/dist/sheet.es.js +66 -0
- package/dist/skeleton.cjs.js +1 -0
- package/dist/skeleton.d.ts +9 -0
- package/dist/skeleton.es.js +8 -0
- package/dist/slider.cjs.js +1 -0
- package/dist/slider.d.ts +9 -0
- package/dist/slider.es.js +442 -0
- package/dist/sonner.cjs.js +1 -0
- package/dist/sonner.d.ts +10 -0
- package/dist/sonner.es.js +764 -0
- package/dist/switch.cjs.js +1 -0
- package/dist/switch.d.ts +9 -0
- package/dist/switch.es.js +149 -0
- package/dist/table.cjs.js +1 -0
- package/dist/table.d.ts +43 -0
- package/dist/table.es.js +57 -0
- package/dist/tabs.cjs.js +1 -0
- package/dist/tabs.d.ts +24 -0
- package/dist/tabs.es.js +195 -0
- package/dist/text.cjs.js +1 -0
- package/dist/text.d.ts +17 -0
- package/dist/text.es.js +42 -0
- package/dist/textarea.cjs.js +1 -0
- package/dist/textarea.d.ts +9 -0
- package/dist/textarea.es.js +18 -0
- package/dist/theme-provider.cjs.js +1 -0
- package/dist/theme-provider.d.ts +9 -0
- package/dist/theme-provider.es.js +8 -0
- package/dist/theme-toggle.cjs.js +1 -0
- package/dist/theme-toggle.d.ts +8 -0
- package/dist/theme-toggle.es.js +78 -0
- package/dist/toast.cjs.js +1 -0
- package/dist/toast.d.ts +26 -0
- package/dist/toast.es.js +494 -0
- package/dist/toaster-CIpfms4W.js +1 -0
- package/dist/toaster-jBYXAPRk.mjs +118 -0
- package/dist/toaster.cjs.js +1 -0
- package/dist/toaster.d.ts +6 -0
- package/dist/toaster.es.js +6 -0
- package/dist/toggle-group.cjs.js +1 -0
- package/dist/toggle-group.d.ts +18 -0
- package/dist/toggle-group.es.js +170 -0
- package/dist/toggle.cjs.js +1 -0
- package/dist/toggle.d.ts +14 -0
- package/dist/toggle.es.js +14 -0
- package/dist/tooltip.cjs.js +1 -0
- package/dist/tooltip.d.ts +25 -0
- package/dist/tooltip.es.js +342 -0
- package/dist/utils-B6yFEsav.mjs +8 -0
- package/dist/utils-IjLH3w2e.js +1 -0
- package/package.json +1 -1
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AvatarFallbackBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { AvatarImageBaseProps } from '../../ui-core/src';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { AvatarBaseProps as AvatarProps } from '../../ui-core/src';
|
|
5
|
+
import * as React_2 from 'react';
|
|
6
|
+
|
|
7
|
+
export declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & AvatarProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
|
|
9
|
+
export declare const AvatarFallback: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & AvatarFallbackBaseProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
|
|
11
|
+
export declare const AvatarImage: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React_2.RefAttributes<HTMLImageElement>, "ref"> & AvatarImageBaseProps & React_2.RefAttributes<HTMLImageElement>>;
|
|
12
|
+
|
|
13
|
+
export { AvatarProps }
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { j as h } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import * as S from "react";
|
|
3
|
+
import b from "react";
|
|
4
|
+
import { c as B } from "./index-3j-XAIXT.mjs";
|
|
5
|
+
import { u as K } from "./index-0ioNhtNM.mjs";
|
|
6
|
+
import { u as O } from "./index-CCKe-Mpx.mjs";
|
|
7
|
+
import { P as x } from "./index-DaILh3TV.mjs";
|
|
8
|
+
import { c as w } from "./utils-B6yFEsav.mjs";
|
|
9
|
+
var y = { exports: {} }, L = {};
|
|
10
|
+
var I;
|
|
11
|
+
function $() {
|
|
12
|
+
if (I) return L;
|
|
13
|
+
I = 1;
|
|
14
|
+
var e = b;
|
|
15
|
+
function t(o, d) {
|
|
16
|
+
return o === d && (o !== 0 || 1 / o === 1 / d) || o !== o && d !== d;
|
|
17
|
+
}
|
|
18
|
+
var a = typeof Object.is == "function" ? Object.is : t, c = e.useState, u = e.useEffect, r = e.useLayoutEffect, p = e.useDebugValue;
|
|
19
|
+
function f(o, d) {
|
|
20
|
+
var n = d(), s = c({ inst: { value: n, getSnapshot: d } }), i = s[0].inst, m = s[1];
|
|
21
|
+
return r(
|
|
22
|
+
function() {
|
|
23
|
+
i.value = n, i.getSnapshot = d, l(i) && m({ inst: i });
|
|
24
|
+
},
|
|
25
|
+
[o, n, d]
|
|
26
|
+
), u(
|
|
27
|
+
function() {
|
|
28
|
+
return l(i) && m({ inst: i }), o(function() {
|
|
29
|
+
l(i) && m({ inst: i });
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
[o]
|
|
33
|
+
), p(n), n;
|
|
34
|
+
}
|
|
35
|
+
function l(o) {
|
|
36
|
+
var d = o.getSnapshot;
|
|
37
|
+
o = o.value;
|
|
38
|
+
try {
|
|
39
|
+
var n = d();
|
|
40
|
+
return !a(o, n);
|
|
41
|
+
} catch {
|
|
42
|
+
return !0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function v(o, d) {
|
|
46
|
+
return d();
|
|
47
|
+
}
|
|
48
|
+
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : f;
|
|
49
|
+
return L.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, L;
|
|
50
|
+
}
|
|
51
|
+
var A = {};
|
|
52
|
+
var N;
|
|
53
|
+
function F() {
|
|
54
|
+
return N || (N = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
55
|
+
function e(n, s) {
|
|
56
|
+
return n === s && (n !== 0 || 1 / n === 1 / s) || n !== n && s !== s;
|
|
57
|
+
}
|
|
58
|
+
function t(n, s) {
|
|
59
|
+
E || u.startTransition === void 0 || (E = !0, console.error(
|
|
60
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
61
|
+
));
|
|
62
|
+
var i = s();
|
|
63
|
+
if (!o) {
|
|
64
|
+
var m = s();
|
|
65
|
+
r(i, m) || (console.error(
|
|
66
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
67
|
+
), o = !0);
|
|
68
|
+
}
|
|
69
|
+
m = p({
|
|
70
|
+
inst: { value: i, getSnapshot: s }
|
|
71
|
+
});
|
|
72
|
+
var _ = m[0].inst, g = m[1];
|
|
73
|
+
return l(
|
|
74
|
+
function() {
|
|
75
|
+
_.value = i, _.getSnapshot = s, a(_) && g({ inst: _ });
|
|
76
|
+
},
|
|
77
|
+
[n, i, s]
|
|
78
|
+
), f(
|
|
79
|
+
function() {
|
|
80
|
+
return a(_) && g({ inst: _ }), n(function() {
|
|
81
|
+
a(_) && g({ inst: _ });
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
[n]
|
|
85
|
+
), v(i), i;
|
|
86
|
+
}
|
|
87
|
+
function a(n) {
|
|
88
|
+
var s = n.getSnapshot;
|
|
89
|
+
n = n.value;
|
|
90
|
+
try {
|
|
91
|
+
var i = s();
|
|
92
|
+
return !r(n, i);
|
|
93
|
+
} catch {
|
|
94
|
+
return !0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function c(n, s) {
|
|
98
|
+
return s();
|
|
99
|
+
}
|
|
100
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
101
|
+
var u = b, r = typeof Object.is == "function" ? Object.is : e, p = u.useState, f = u.useEffect, l = u.useLayoutEffect, v = u.useDebugValue, E = !1, o = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : t;
|
|
102
|
+
A.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
103
|
+
})()), A;
|
|
104
|
+
}
|
|
105
|
+
var C;
|
|
106
|
+
function P() {
|
|
107
|
+
return C || (C = 1, process.env.NODE_ENV === "production" ? y.exports = $() : y.exports = F()), y.exports;
|
|
108
|
+
}
|
|
109
|
+
var W = P();
|
|
110
|
+
function Y() {
|
|
111
|
+
return W.useSyncExternalStore(
|
|
112
|
+
z,
|
|
113
|
+
() => !0,
|
|
114
|
+
() => !1
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function z() {
|
|
118
|
+
return () => {
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
var R = "Avatar", [J] = B(R), [Q, j] = J(R), D = S.forwardRef(
|
|
122
|
+
(e, t) => {
|
|
123
|
+
const { __scopeAvatar: a, ...c } = e, [u, r] = S.useState("idle");
|
|
124
|
+
return /* @__PURE__ */ h.jsx(
|
|
125
|
+
Q,
|
|
126
|
+
{
|
|
127
|
+
scope: a,
|
|
128
|
+
imageLoadingStatus: u,
|
|
129
|
+
onImageLoadingStatusChange: r,
|
|
130
|
+
children: /* @__PURE__ */ h.jsx(x.span, { ...c, ref: t })
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
D.displayName = R;
|
|
136
|
+
var k = "AvatarImage", G = S.forwardRef(
|
|
137
|
+
(e, t) => {
|
|
138
|
+
const { __scopeAvatar: a, src: c, onLoadingStatusChange: u = () => {
|
|
139
|
+
}, ...r } = e, p = j(k, a), f = X(c, r), l = K((v) => {
|
|
140
|
+
u(v), p.onImageLoadingStatusChange(v);
|
|
141
|
+
});
|
|
142
|
+
return O(() => {
|
|
143
|
+
f !== "idle" && l(f);
|
|
144
|
+
}, [f, l]), f === "loaded" ? /* @__PURE__ */ h.jsx(x.img, { ...r, ref: t, src: c }) : null;
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
G.displayName = k;
|
|
148
|
+
var V = "AvatarFallback", M = S.forwardRef(
|
|
149
|
+
(e, t) => {
|
|
150
|
+
const { __scopeAvatar: a, delayMs: c, ...u } = e, r = j(V, a), [p, f] = S.useState(c === void 0);
|
|
151
|
+
return S.useEffect(() => {
|
|
152
|
+
if (c !== void 0) {
|
|
153
|
+
const l = window.setTimeout(() => f(!0), c);
|
|
154
|
+
return () => window.clearTimeout(l);
|
|
155
|
+
}
|
|
156
|
+
}, [c]), p && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(x.span, { ...u, ref: t }) : null;
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
M.displayName = V;
|
|
160
|
+
function T(e, t) {
|
|
161
|
+
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
162
|
+
}
|
|
163
|
+
function X(e, { referrerPolicy: t, crossOrigin: a }) {
|
|
164
|
+
const c = Y(), u = S.useRef(null), r = c ? (u.current || (u.current = new window.Image()), u.current) : null, [p, f] = S.useState(
|
|
165
|
+
() => T(r, e)
|
|
166
|
+
);
|
|
167
|
+
return O(() => {
|
|
168
|
+
f(T(r, e));
|
|
169
|
+
}, [r, e]), O(() => {
|
|
170
|
+
const l = (o) => () => {
|
|
171
|
+
f(o);
|
|
172
|
+
};
|
|
173
|
+
if (!r) return;
|
|
174
|
+
const v = l("loaded"), E = l("error");
|
|
175
|
+
return r.addEventListener("load", v), r.addEventListener("error", E), t && (r.referrerPolicy = t), typeof a == "string" && (r.crossOrigin = a), () => {
|
|
176
|
+
r.removeEventListener("load", v), r.removeEventListener("error", E);
|
|
177
|
+
};
|
|
178
|
+
}, [r, a, t]), p;
|
|
179
|
+
}
|
|
180
|
+
var H = D, U = G, q = M;
|
|
181
|
+
const Z = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(
|
|
182
|
+
H,
|
|
183
|
+
{
|
|
184
|
+
ref: a,
|
|
185
|
+
className: w("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
186
|
+
...t
|
|
187
|
+
}
|
|
188
|
+
));
|
|
189
|
+
Z.displayName = H.displayName;
|
|
190
|
+
const ee = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(U, { ref: a, className: w("aspect-square h-full w-full", e), ...t }));
|
|
191
|
+
ee.displayName = U.displayName;
|
|
192
|
+
const te = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(
|
|
193
|
+
q,
|
|
194
|
+
{
|
|
195
|
+
ref: a,
|
|
196
|
+
className: w("bg-muted flex h-full w-full items-center justify-center rounded-full", e),
|
|
197
|
+
...t
|
|
198
|
+
}
|
|
199
|
+
));
|
|
200
|
+
te.displayName = q.displayName;
|
|
201
|
+
export {
|
|
202
|
+
Z as Avatar,
|
|
203
|
+
te as AvatarFallback,
|
|
204
|
+
ee as AvatarImage
|
|
205
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-nZSsnGb7.js"),a=require("class-variance-authority"),s=require("./utils-IjLH3w2e.js"),r=a.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i({className:e,variant:t,...n}){return o.jsxRuntimeExports.jsx("div",{className:s.cn(r({variant:t}),e),...n})}exports.Badge=i;exports.badgeVariants=r;
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BadgeBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
export declare function Badge({ className, variant, ...props }: BadgeProps): JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare interface BadgeProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, 'variant'>, Omit<BadgeBaseProps, 'variant'>, VariantProps<typeof badgeVariants> {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const badgeVariants: (props?: ({
|
|
13
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
14
|
+
} & ClassProp) | undefined) => string;
|
|
15
|
+
|
|
16
|
+
export { }
|
package/dist/badge.es.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { c as a } from "./utils-B6yFEsav.mjs";
|
|
4
|
+
const s = n(
|
|
5
|
+
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
10
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
11
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
12
|
+
outline: "text-foreground"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
function c({ className: r, variant: e, ...t }) {
|
|
21
|
+
return /* @__PURE__ */ o.jsx("div", { className: a(s({ variant: e }), r), ...t });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
c as Badge,
|
|
25
|
+
s as badgeVariants
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-nZSsnGb7.js"),f=require("./index-Cj5hzyBi.js"),i=require("lucide-react"),j=require("react"),s=require("./utils-IjLH3w2e.js");function B(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=B(j),o=n.forwardRef(({...e},r)=>t.jsxRuntimeExports.jsx("nav",{ref:r,"aria-label":"breadcrumb",...e}));o.displayName="Breadcrumb";const m=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("ol",{ref:a,className:s.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r}));m.displayName="BreadcrumbList";const u=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("li",{ref:a,className:s.cn("inline-flex items-center gap-1.5",e),...r}));u.displayName="BreadcrumbItem";const d=n.forwardRef(({asChild:e,className:r,...a},c)=>{const b=e?f.Slot:"a";return t.jsxRuntimeExports.jsx(b,{ref:c,className:s.cn("hover:text-foreground transition-colors",r),...a})});d.displayName="BreadcrumbLink";const l=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:s.cn("text-foreground font-normal",e),...r}));l.displayName="BreadcrumbPage";const p=({children:e,className:r,...a})=>t.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:s.cn("[&>svg]:h-3.5 [&>svg]:w-3.5",r),...a,children:e??t.jsxRuntimeExports.jsx(i.ChevronRight,{})});p.displayName="BreadcrumbSeparator";const x=({className:e,...r})=>t.jsxRuntimeExports.jsxs("span",{role:"presentation","aria-hidden":"true",className:s.cn("flex h-9 w-9 items-center justify-center",e),...r,children:[t.jsxRuntimeExports.jsx(i.MoreHorizontal,{className:"h-4 w-4"}),t.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]});x.displayName="BreadcrumbElipssis";exports.Breadcrumb=o;exports.BreadcrumbEllipsis=x;exports.BreadcrumbItem=u;exports.BreadcrumbLink=d;exports.BreadcrumbList=m;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=p;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BreadcrumbEllipsisBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { BreadcrumbItemBaseProps } from '../../ui-core/src';
|
|
3
|
+
import { BreadcrumbLinkBaseProps } from '../../ui-core/src';
|
|
4
|
+
import { BreadcrumbListBaseProps } from '../../ui-core/src';
|
|
5
|
+
import { BreadcrumbPageBaseProps } from '../../ui-core/src';
|
|
6
|
+
import { BreadcrumbBaseProps as BreadcrumbProps } from '../../ui-core/src';
|
|
7
|
+
import { BreadcrumbSeparatorBaseProps } from '../../ui-core/src';
|
|
8
|
+
import { JSX } from 'react/jsx-runtime';
|
|
9
|
+
import * as React_2 from 'react';
|
|
10
|
+
|
|
11
|
+
export declare const Breadcrumb: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & BreadcrumbProps & {
|
|
12
|
+
separator?: React_2.ReactNode;
|
|
13
|
+
} & React_2.RefAttributes<HTMLElement>>;
|
|
14
|
+
|
|
15
|
+
export declare const BreadcrumbEllipsis: {
|
|
16
|
+
({ className, ...props }: React_2.ComponentProps<"span"> & BreadcrumbEllipsisBaseProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const BreadcrumbItem: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & BreadcrumbItemBaseProps & React_2.RefAttributes<HTMLLIElement>>;
|
|
21
|
+
|
|
22
|
+
export declare const BreadcrumbLink: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & BreadcrumbLinkBaseProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
23
|
+
|
|
24
|
+
export declare const BreadcrumbList: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & BreadcrumbListBaseProps & React_2.RefAttributes<HTMLOListElement>>;
|
|
25
|
+
|
|
26
|
+
export declare const BreadcrumbPage: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & BreadcrumbPageBaseProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
27
|
+
|
|
28
|
+
export { BreadcrumbProps }
|
|
29
|
+
|
|
30
|
+
export declare const BreadcrumbSeparator: {
|
|
31
|
+
({ children, className, ...props }: React_2.ComponentProps<"li"> & BreadcrumbSeparatorBaseProps): JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { }
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import { S as n } from "./index-Le8p9oP4.mjs";
|
|
3
|
+
import { MoreHorizontal as c, ChevronRight as d } from "lucide-react";
|
|
4
|
+
import * as o from "react";
|
|
5
|
+
import { c as t } from "./utils-B6yFEsav.mjs";
|
|
6
|
+
const l = o.forwardRef(({ ...r }, e) => /* @__PURE__ */ a.jsx("nav", { ref: e, "aria-label": "breadcrumb", ...r }));
|
|
7
|
+
l.displayName = "Breadcrumb";
|
|
8
|
+
const p = o.forwardRef(({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx(
|
|
9
|
+
"ol",
|
|
10
|
+
{
|
|
11
|
+
ref: s,
|
|
12
|
+
className: t(
|
|
13
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
14
|
+
r
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
|
+
p.displayName = "BreadcrumbList";
|
|
20
|
+
const u = o.forwardRef(
|
|
21
|
+
({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx("li", { ref: s, className: t("inline-flex items-center gap-1.5", r), ...e })
|
|
22
|
+
);
|
|
23
|
+
u.displayName = "BreadcrumbItem";
|
|
24
|
+
const f = o.forwardRef(({ asChild: r, className: e, ...s }, m) => {
|
|
25
|
+
const i = r ? n : "a";
|
|
26
|
+
return /* @__PURE__ */ a.jsx(i, { ref: m, className: t("hover:text-foreground transition-colors", e), ...s });
|
|
27
|
+
});
|
|
28
|
+
f.displayName = "BreadcrumbLink";
|
|
29
|
+
const x = o.forwardRef(({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
ref: s,
|
|
33
|
+
role: "link",
|
|
34
|
+
"aria-disabled": "true",
|
|
35
|
+
"aria-current": "page",
|
|
36
|
+
className: t("text-foreground font-normal", r),
|
|
37
|
+
...e
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
x.displayName = "BreadcrumbPage";
|
|
41
|
+
const b = ({
|
|
42
|
+
children: r,
|
|
43
|
+
className: e,
|
|
44
|
+
...s
|
|
45
|
+
}) => /* @__PURE__ */ a.jsx("li", { role: "presentation", "aria-hidden": "true", className: t("[&>svg]:h-3.5 [&>svg]:w-3.5", e), ...s, children: r ?? /* @__PURE__ */ a.jsx(d, {}) });
|
|
46
|
+
b.displayName = "BreadcrumbSeparator";
|
|
47
|
+
const N = ({ className: r, ...e }) => /* @__PURE__ */ a.jsxs(
|
|
48
|
+
"span",
|
|
49
|
+
{
|
|
50
|
+
role: "presentation",
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
className: t("flex h-9 w-9 items-center justify-center", r),
|
|
53
|
+
...e,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ a.jsx(c, { className: "h-4 w-4" }),
|
|
56
|
+
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "More" })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
N.displayName = "BreadcrumbElipssis";
|
|
61
|
+
export {
|
|
62
|
+
l as Breadcrumb,
|
|
63
|
+
N as BreadcrumbEllipsis,
|
|
64
|
+
u as BreadcrumbItem,
|
|
65
|
+
f as BreadcrumbLink,
|
|
66
|
+
p as BreadcrumbList,
|
|
67
|
+
x as BreadcrumbPage,
|
|
68
|
+
b as BreadcrumbSeparator
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-nZSsnGb7.js"),d=require("./index-Cj5hzyBi.js"),l=require("class-variance-authority"),f=require("react"),g=require("./utils-IjLH3w2e.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=b(f),o=l.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),s=v.forwardRef(({className:e,variant:r,size:t,asChild:n=!1,...i},a)=>{const u=n?d.Slot:"button";return c.jsxRuntimeExports.jsx(u,{className:g.cn(o({variant:r,size:t,className:e})),ref:a,...i})});s.displayName="Button";exports.Button=s;exports.buttonVariants=o;
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
|
|
8
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, ButtonBaseProps {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const buttonVariants: (props?: ({
|
|
13
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
14
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
15
|
+
} & ClassProp) | undefined) => string;
|
|
16
|
+
|
|
17
|
+
export { }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import { S as d } from "./index-Le8p9oP4.mjs";
|
|
3
|
+
import { cva as c } from "class-variance-authority";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { c as m } from "./utils-B6yFEsav.mjs";
|
|
6
|
+
const f = c(
|
|
7
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
12
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
13
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 px-4 py-2",
|
|
20
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
21
|
+
lg: "h-10 rounded-md px-8",
|
|
22
|
+
icon: "h-9 w-9"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
variant: "default",
|
|
27
|
+
size: "default"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
), g = u.forwardRef(
|
|
31
|
+
({ className: e, variant: t, size: r, asChild: o = !1, ...n }, s) => {
|
|
32
|
+
const i = o ? d : "button";
|
|
33
|
+
return /* @__PURE__ */ a.jsx(i, { className: m(f({ variant: t, size: r, className: e })), ref: s, ...n });
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
g.displayName = "Button";
|
|
37
|
+
export {
|
|
38
|
+
g as Button,
|
|
39
|
+
f as buttonVariants
|
|
40
|
+
};
|