@snapcall/design-system 1.20.0 → 1.21.1
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/chunk-IO5BLXCA.mjs +97 -0
- package/dist/chunk-N65I4EXR.mjs +48 -0
- package/dist/{chunk-WST7J5RJ.mjs → chunk-RN2FGOFK.mjs} +4 -2
- package/dist/{chunk-O46NQFTB.mjs → chunk-XI3KELZM.mjs} +8 -47
- package/dist/components/AlertDialog/index.mjs +2 -1
- package/dist/components/Avatar/index.mjs +3 -92
- package/dist/components/Button/index.mjs +2 -1
- package/dist/components/Calendar/index.mjs +2 -1
- package/dist/components/Carousel/index.mjs +2 -1
- package/dist/components/Command/index.mjs +3 -2
- package/dist/components/CreatableSelect/index.mjs +3 -2
- package/dist/components/Dialog/index.mjs +2 -1
- package/dist/components/FilterButton/index.mjs +2 -1
- package/dist/components/MediaCard/index.d.mts +21 -0
- package/dist/components/MediaCard/index.d.ts +21 -0
- package/dist/components/MediaCard/index.js +500 -0
- package/dist/components/MediaCard/index.mjs +324 -0
- package/dist/components/Pagination/index.mjs +2 -1
- package/dist/components/Sheet/index.mjs +2 -1
- package/dist/components/Toaster/index.mjs +2 -1
- package/dist/icons/index.mjs +1224 -1224
- package/dist/index.d.mts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +4 -0
- package/dist/index.mjs +29 -27
- package/dist/tailwind.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues,
|
|
5
|
+
cn
|
|
6
|
+
} from "./chunk-BOWIL6WZ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/Avatar/Avatar.tsx
|
|
9
|
+
import { forwardRef } from "react";
|
|
10
|
+
import { cva } from "cva";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var avatarSizes = cva({
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
xxs: "w-[8px] h-[8px] rounded-[3px]",
|
|
16
|
+
xs: "w-[16px] h-[16px] rounded-[3px] text-[10px]",
|
|
17
|
+
sm: "w-[24px] h-[24px] rounded-[4px] text-md",
|
|
18
|
+
md: "w-[36px] h-[36px] rounded-[6px] text-md",
|
|
19
|
+
lg: "w-[45px] h-[45px] rounded-[8px] text-md",
|
|
20
|
+
xl: "w-[72px] h-[72px] rounded-[10px] text-[30px]"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
size: "md"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var avatarColors = {
|
|
28
|
+
amber: "bg-amber-200 text-amber-700 data-[size=xxs]:bg-amber-700",
|
|
29
|
+
red: "bg-red-300 text-red-700 data-[size=xxs]:bg-red-700",
|
|
30
|
+
green: "bg-green-300 text-green-700 data-[size=xxs]:bg-green-700",
|
|
31
|
+
plum: "bg-plum-300 text-plum-700 data-[size=xxs]:bg-plum-700",
|
|
32
|
+
crimson: "bg-crimson-300 text-crimson-700 data-[size=xxs]:bg-crimson-700",
|
|
33
|
+
blue: "bg-blue-300 text-blue-700 data-[size=xxs]:bg-blue-700",
|
|
34
|
+
purple: "bg-purple-300 text-purple-700 data-[size=xxs]:bg-purple-700",
|
|
35
|
+
violet: "bg-violet-300 text-violet-700 data-[size=xxs]:bg-violet-700",
|
|
36
|
+
indigo: "bg-indigo-300 text-indigo-700 data-[size=xxs]:bg-indigo-700",
|
|
37
|
+
cyan: "bg-cyan-300 text-cyan-700 data-[size=xxs]:bg-cyan-700",
|
|
38
|
+
teal: "bg-teal-300 text-teal-700 data-[size=xxs]:bg-teal-700",
|
|
39
|
+
grass: "bg-grass-300 text-grass-700 data-[size=xxs]:bg-grass-700",
|
|
40
|
+
brown: "bg-brown-300 text-brown-700 data-[size=xxs]:bg-brown-700",
|
|
41
|
+
lime: "bg-lime-300 text-lime-700 data-[size=xxs]:bg-lime-700",
|
|
42
|
+
yellow: "bg-yellow-300 text-yellow-700 data-[size=xxs]:bg-yellow-700",
|
|
43
|
+
gold: "bg-gold-300 text-gold-700 data-[size=xxs]:bg-gold-700",
|
|
44
|
+
bronze: "bg-bronze-300 text-bronze-700 data-[size=xxs]:bg-bronze-700",
|
|
45
|
+
gray: "bg-gray-300 text-gray-700 data-[size=xxs]:bg-gray-700"
|
|
46
|
+
};
|
|
47
|
+
var avatarVariants = cva({
|
|
48
|
+
variants: {
|
|
49
|
+
variant: avatarColors
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
variant: "blue"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
var getNameInitials = (name) => {
|
|
56
|
+
const initial = name[0].toUpperCase();
|
|
57
|
+
return initial;
|
|
58
|
+
};
|
|
59
|
+
var getColorFromName = (name) => {
|
|
60
|
+
const nameValue = Array.from(name).reduce(
|
|
61
|
+
(total, current) => current.charCodeAt(0) + total,
|
|
62
|
+
0
|
|
63
|
+
);
|
|
64
|
+
const colorIndex = nameValue % Object.keys(avatarColors).length;
|
|
65
|
+
return Object.keys(avatarColors)[colorIndex];
|
|
66
|
+
};
|
|
67
|
+
var Avatar = forwardRef(function Avatar2(_a, forwardedRef) {
|
|
68
|
+
var _b = _a, { size, className, icon, name, variant, image } = _b, other = __objRest(_b, ["size", "className", "icon", "name", "variant", "image"]);
|
|
69
|
+
const color = getColorFromName(name);
|
|
70
|
+
return /* @__PURE__ */ jsxs(
|
|
71
|
+
"div",
|
|
72
|
+
__spreadProps(__spreadValues({
|
|
73
|
+
"data-size": size,
|
|
74
|
+
ref: forwardedRef,
|
|
75
|
+
className: cn(
|
|
76
|
+
"flex items-center justify-center font-semibold relative overflow-hidden shrink-0",
|
|
77
|
+
variant ? avatarVariants({ variant }) : avatarVariants({
|
|
78
|
+
variant: color
|
|
79
|
+
}),
|
|
80
|
+
avatarSizes({ size }),
|
|
81
|
+
{
|
|
82
|
+
relative: Boolean(icon)
|
|
83
|
+
},
|
|
84
|
+
className
|
|
85
|
+
)
|
|
86
|
+
}, other), {
|
|
87
|
+
children: [
|
|
88
|
+
image ? image : name && size !== "xxs" ? getNameInitials(name) : null,
|
|
89
|
+
icon && /* @__PURE__ */ jsx("span", { className: "absolute bottom-0 right-0", children: icon })
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
Avatar
|
|
97
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-BOWIL6WZ.mjs";
|
|
6
|
+
|
|
7
|
+
// src/icons/spinner.tsx
|
|
8
|
+
import { forwardRef } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var SpinnerIcon = forwardRef(
|
|
11
|
+
function SpinnerIcon2(_a, ref) {
|
|
12
|
+
var _b = _a, { size = 24, className = "animate-spin text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
"svg",
|
|
15
|
+
__spreadProps(__spreadValues({
|
|
16
|
+
ref,
|
|
17
|
+
width: size,
|
|
18
|
+
height: size,
|
|
19
|
+
viewBox: "0 0 25 24",
|
|
20
|
+
fill: "none",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
className
|
|
23
|
+
}, other), {
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
"path",
|
|
27
|
+
{
|
|
28
|
+
opacity: "0.12",
|
|
29
|
+
d: "M24.5 12C24.5 18.6274 19.1274 24 12.5 24C5.87258 24 0.5 18.6274 0.5 12C0.5 5.37258 5.87258 0 12.5 0C19.1274 0 24.5 5.37258 24.5 12ZM3.668 12C3.668 16.8778 7.62222 20.832 12.5 20.832C17.3778 20.832 21.332 16.8778 21.332 12C21.332 7.12222 17.3778 3.168 12.5 3.168C7.62222 3.168 3.668 7.12222 3.668 12Z",
|
|
30
|
+
fill: "currentColor"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
d: "M22.916 12C23.7908 12 24.5108 12.7122 24.3956 13.5794C24.1641 15.323 23.5512 17.0011 22.5928 18.4912C21.3476 20.4272 19.5719 21.9643 17.4774 22.919C15.3829 23.8738 13.058 24.206 10.7799 23.8761C8.50179 23.5461 6.36667 22.5679 4.62912 21.0581C2.89158 19.5483 1.62494 17.5706 0.98025 15.3609C0.335563 13.1511 0.340035 10.8026 0.993131 8.5953C1.64623 6.38803 2.92039 4.41517 4.66367 2.91199C6.00545 1.75501 7.58156 0.913857 9.27571 0.441275C10.1184 0.206218 10.9241 0.819698 11.0462 1.68595C11.1683 2.55221 10.5575 3.33995 9.72694 3.61463C8.63201 3.97673 7.61359 4.55146 6.73246 5.31122C5.44941 6.41757 4.51162 7.86959 4.03094 9.49414C3.55027 11.1187 3.54697 12.8472 4.02146 14.4736C4.49595 16.1 5.4282 17.5555 6.70703 18.6668C7.98587 19.778 9.55732 20.4979 11.234 20.7408C12.9107 20.9836 14.6218 20.7391 16.1634 20.0364C17.7049 19.3337 19.0119 18.2024 19.9283 16.7775C20.5576 15.799 20.9846 14.7103 21.1903 13.5755C21.3464 12.7148 22.0412 12 22.916 12Z",
|
|
37
|
+
fill: "currentColor"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
SpinnerIcon
|
|
48
|
+
};
|
|
@@ -2,9 +2,11 @@ import {
|
|
|
2
2
|
XCloseIcon
|
|
3
3
|
} from "./chunk-FMJFBQTF.mjs";
|
|
4
4
|
import {
|
|
5
|
-
Button
|
|
5
|
+
Button
|
|
6
|
+
} from "./chunk-XI3KELZM.mjs";
|
|
7
|
+
import {
|
|
6
8
|
SpinnerIcon
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N65I4EXR.mjs";
|
|
8
10
|
import {
|
|
9
11
|
Checkbox
|
|
10
12
|
} from "./chunk-ZMQWNJ3B.mjs";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SpinnerIcon
|
|
3
|
+
} from "./chunk-N65I4EXR.mjs";
|
|
1
4
|
import {
|
|
2
5
|
__objRest,
|
|
3
6
|
__spreadProps,
|
|
@@ -9,48 +12,7 @@ import {
|
|
|
9
12
|
import * as React from "react";
|
|
10
13
|
import { Slot } from "@radix-ui/react-slot";
|
|
11
14
|
import { cva } from "cva";
|
|
12
|
-
|
|
13
|
-
// src/icons/spinner.tsx
|
|
14
|
-
import { forwardRef } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var SpinnerIcon = forwardRef(
|
|
17
|
-
function SpinnerIcon2(_a, ref) {
|
|
18
|
-
var _b = _a, { size = 24, className = "animate-spin text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
-
"svg",
|
|
21
|
-
__spreadProps(__spreadValues({
|
|
22
|
-
ref,
|
|
23
|
-
width: size,
|
|
24
|
-
height: size,
|
|
25
|
-
viewBox: "0 0 25 24",
|
|
26
|
-
fill: "none",
|
|
27
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
-
className
|
|
29
|
-
}, other), {
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsx(
|
|
32
|
-
"path",
|
|
33
|
-
{
|
|
34
|
-
opacity: "0.12",
|
|
35
|
-
d: "M24.5 12C24.5 18.6274 19.1274 24 12.5 24C5.87258 24 0.5 18.6274 0.5 12C0.5 5.37258 5.87258 0 12.5 0C19.1274 0 24.5 5.37258 24.5 12ZM3.668 12C3.668 16.8778 7.62222 20.832 12.5 20.832C17.3778 20.832 21.332 16.8778 21.332 12C21.332 7.12222 17.3778 3.168 12.5 3.168C7.62222 3.168 3.668 7.12222 3.668 12Z",
|
|
36
|
-
fill: "currentColor"
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
"path",
|
|
41
|
-
{
|
|
42
|
-
d: "M22.916 12C23.7908 12 24.5108 12.7122 24.3956 13.5794C24.1641 15.323 23.5512 17.0011 22.5928 18.4912C21.3476 20.4272 19.5719 21.9643 17.4774 22.919C15.3829 23.8738 13.058 24.206 10.7799 23.8761C8.50179 23.5461 6.36667 22.5679 4.62912 21.0581C2.89158 19.5483 1.62494 17.5706 0.98025 15.3609C0.335563 13.1511 0.340035 10.8026 0.993131 8.5953C1.64623 6.38803 2.92039 4.41517 4.66367 2.91199C6.00545 1.75501 7.58156 0.913857 9.27571 0.441275C10.1184 0.206218 10.9241 0.819698 11.0462 1.68595C11.1683 2.55221 10.5575 3.33995 9.72694 3.61463C8.63201 3.97673 7.61359 4.55146 6.73246 5.31122C5.44941 6.41757 4.51162 7.86959 4.03094 9.49414C3.55027 11.1187 3.54697 12.8472 4.02146 14.4736C4.49595 16.1 5.4282 17.5555 6.70703 18.6668C7.98587 19.778 9.55732 20.4979 11.234 20.7408C12.9107 20.9836 14.6218 20.7391 16.1634 20.0364C17.7049 19.3337 19.0119 18.2024 19.9283 16.7775C20.5576 15.799 20.9846 14.7103 21.1903 13.5755C21.3464 12.7148 22.0412 12 22.916 12Z",
|
|
43
|
-
fill: "currentColor"
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
]
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
// src/components/Button/Button.tsx
|
|
53
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
54
16
|
var buttonVariants = cva({
|
|
55
17
|
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-none focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
56
18
|
variants: {
|
|
@@ -128,7 +90,7 @@ var Button = React.forwardRef(
|
|
|
128
90
|
var _a2;
|
|
129
91
|
const Comp = asChild ? Slot : "button";
|
|
130
92
|
const sizesStyle = icon ? iconButtonSizes : buttonSizes;
|
|
131
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ jsx(
|
|
132
94
|
Comp,
|
|
133
95
|
__spreadProps(__spreadValues({
|
|
134
96
|
className: cn(
|
|
@@ -139,15 +101,15 @@ var Button = React.forwardRef(
|
|
|
139
101
|
disabled: (_a2 = props.disabled) != null ? _a2 : isLoading,
|
|
140
102
|
type
|
|
141
103
|
}, props), {
|
|
142
|
-
children: isLoading ? /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
104
|
+
children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
144
106
|
SpinnerIcon,
|
|
145
107
|
{
|
|
146
108
|
size: iconSizes[size || "md"],
|
|
147
109
|
className: "absolute text-inherit animate-spin"
|
|
148
110
|
}
|
|
149
111
|
),
|
|
150
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ jsx("span", { className: "flex gap-[inherit] invisible", children })
|
|
151
113
|
] }) : children
|
|
152
114
|
})
|
|
153
115
|
);
|
|
@@ -156,7 +118,6 @@ var Button = React.forwardRef(
|
|
|
156
118
|
Button.displayName = "Button";
|
|
157
119
|
|
|
158
120
|
export {
|
|
159
|
-
SpinnerIcon,
|
|
160
121
|
buttonVariants,
|
|
161
122
|
buttonSizes,
|
|
162
123
|
iconButtonSizes,
|
|
@@ -1,96 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
cn
|
|
6
|
-
} from "../../chunk-BOWIL6WZ.mjs";
|
|
7
|
-
|
|
8
|
-
// src/components/Avatar/Avatar.tsx
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
|
-
import { cva } from "cva";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
var avatarSizes = cva({
|
|
13
|
-
variants: {
|
|
14
|
-
size: {
|
|
15
|
-
xxs: "w-[8px] h-[8px] rounded-[3px]",
|
|
16
|
-
xs: "w-[16px] h-[16px] rounded-[3px] text-[10px]",
|
|
17
|
-
sm: "w-[24px] h-[24px] rounded-[4px] text-md",
|
|
18
|
-
md: "w-[36px] h-[36px] rounded-[6px] text-md",
|
|
19
|
-
lg: "w-[45px] h-[45px] rounded-[8px] text-md",
|
|
20
|
-
xl: "w-[72px] h-[72px] rounded-[10px] text-[30px]"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
size: "md"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
var avatarColors = {
|
|
28
|
-
amber: "bg-amber-200 text-amber-700 data-[size=xxs]:bg-amber-700",
|
|
29
|
-
red: "bg-red-300 text-red-700 data-[size=xxs]:bg-red-700",
|
|
30
|
-
green: "bg-green-300 text-green-700 data-[size=xxs]:bg-green-700",
|
|
31
|
-
plum: "bg-plum-300 text-plum-700 data-[size=xxs]:bg-plum-700",
|
|
32
|
-
crimson: "bg-crimson-300 text-crimson-700 data-[size=xxs]:bg-crimson-700",
|
|
33
|
-
blue: "bg-blue-300 text-blue-700 data-[size=xxs]:bg-blue-700",
|
|
34
|
-
purple: "bg-purple-300 text-purple-700 data-[size=xxs]:bg-purple-700",
|
|
35
|
-
violet: "bg-violet-300 text-violet-700 data-[size=xxs]:bg-violet-700",
|
|
36
|
-
indigo: "bg-indigo-300 text-indigo-700 data-[size=xxs]:bg-indigo-700",
|
|
37
|
-
cyan: "bg-cyan-300 text-cyan-700 data-[size=xxs]:bg-cyan-700",
|
|
38
|
-
teal: "bg-teal-300 text-teal-700 data-[size=xxs]:bg-teal-700",
|
|
39
|
-
grass: "bg-grass-300 text-grass-700 data-[size=xxs]:bg-grass-700",
|
|
40
|
-
brown: "bg-brown-300 text-brown-700 data-[size=xxs]:bg-brown-700",
|
|
41
|
-
lime: "bg-lime-300 text-lime-700 data-[size=xxs]:bg-lime-700",
|
|
42
|
-
yellow: "bg-yellow-300 text-yellow-700 data-[size=xxs]:bg-yellow-700",
|
|
43
|
-
gold: "bg-gold-300 text-gold-700 data-[size=xxs]:bg-gold-700",
|
|
44
|
-
bronze: "bg-bronze-300 text-bronze-700 data-[size=xxs]:bg-bronze-700",
|
|
45
|
-
gray: "bg-gray-300 text-gray-700 data-[size=xxs]:bg-gray-700"
|
|
46
|
-
};
|
|
47
|
-
var avatarVariants = cva({
|
|
48
|
-
variants: {
|
|
49
|
-
variant: avatarColors
|
|
50
|
-
},
|
|
51
|
-
defaultVariants: {
|
|
52
|
-
variant: "blue"
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
var getNameInitials = (name) => {
|
|
56
|
-
const initial = name[0].toUpperCase();
|
|
57
|
-
return initial;
|
|
58
|
-
};
|
|
59
|
-
var getColorFromName = (name) => {
|
|
60
|
-
const nameValue = Array.from(name).reduce(
|
|
61
|
-
(total, current) => current.charCodeAt(0) + total,
|
|
62
|
-
0
|
|
63
|
-
);
|
|
64
|
-
const colorIndex = nameValue % Object.keys(avatarColors).length;
|
|
65
|
-
return Object.keys(avatarColors)[colorIndex];
|
|
66
|
-
};
|
|
67
|
-
var Avatar = forwardRef(function Avatar2(_a, forwardedRef) {
|
|
68
|
-
var _b = _a, { size, className, icon, name, variant, image } = _b, other = __objRest(_b, ["size", "className", "icon", "name", "variant", "image"]);
|
|
69
|
-
const color = getColorFromName(name);
|
|
70
|
-
return /* @__PURE__ */ jsxs(
|
|
71
|
-
"div",
|
|
72
|
-
__spreadProps(__spreadValues({
|
|
73
|
-
"data-size": size,
|
|
74
|
-
ref: forwardedRef,
|
|
75
|
-
className: cn(
|
|
76
|
-
"flex items-center justify-center font-semibold relative overflow-hidden shrink-0",
|
|
77
|
-
variant ? avatarVariants({ variant }) : avatarVariants({
|
|
78
|
-
variant: color
|
|
79
|
-
}),
|
|
80
|
-
avatarSizes({ size }),
|
|
81
|
-
{
|
|
82
|
-
relative: Boolean(icon)
|
|
83
|
-
},
|
|
84
|
-
className
|
|
85
|
-
)
|
|
86
|
-
}, other), {
|
|
87
|
-
children: [
|
|
88
|
-
image ? image : name && size !== "xxs" ? getNameInitials(name) : null,
|
|
89
|
-
icon && /* @__PURE__ */ jsx("span", { className: "absolute bottom-0 right-0", children: icon })
|
|
90
|
-
]
|
|
91
|
-
})
|
|
92
|
-
);
|
|
93
|
-
});
|
|
2
|
+
Avatar
|
|
3
|
+
} from "../../chunk-IO5BLXCA.mjs";
|
|
4
|
+
import "../../chunk-BOWIL6WZ.mjs";
|
|
94
5
|
export {
|
|
95
6
|
Avatar
|
|
96
7
|
};
|
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
CommandList,
|
|
8
8
|
CommandLoading,
|
|
9
9
|
CommandSeparator
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-RN2FGOFK.mjs";
|
|
11
11
|
import "../../chunk-FMJFBQTF.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-XI3KELZM.mjs";
|
|
13
|
+
import "../../chunk-N65I4EXR.mjs";
|
|
13
14
|
import "../../chunk-ZMQWNJ3B.mjs";
|
|
14
15
|
import "../../chunk-AFJWE6PJ.mjs";
|
|
15
16
|
import "../../chunk-BOWIL6WZ.mjs";
|
|
@@ -3,14 +3,15 @@ import {
|
|
|
3
3
|
CommandItem,
|
|
4
4
|
CommandList,
|
|
5
5
|
CommandLoading
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-RN2FGOFK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
XCloseIcon
|
|
9
9
|
} from "../../chunk-FMJFBQTF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Badge
|
|
12
12
|
} from "../../chunk-YC4ZDBIC.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-XI3KELZM.mjs";
|
|
14
|
+
import "../../chunk-N65I4EXR.mjs";
|
|
14
15
|
import "../../chunk-ZMQWNJ3B.mjs";
|
|
15
16
|
import "../../chunk-AFJWE6PJ.mjs";
|
|
16
17
|
import {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type MediaCardProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
duration?: number;
|
|
8
|
+
type: 'audio' | 'video' | 'image';
|
|
9
|
+
image?: string | JSX.Element;
|
|
10
|
+
action?: JSX.Element;
|
|
11
|
+
actionBehavior?: 'default' | 'hover';
|
|
12
|
+
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
size: 'small' | 'medium' | 'large';
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
declare const MediaCard: {
|
|
17
|
+
({ title, description, duration, type, image, action, actionBehavior, isLoading, size, className, ...otherProps }: MediaCardProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { MediaCard };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type MediaCardProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
duration?: number;
|
|
8
|
+
type: 'audio' | 'video' | 'image';
|
|
9
|
+
image?: string | JSX.Element;
|
|
10
|
+
action?: JSX.Element;
|
|
11
|
+
actionBehavior?: 'default' | 'hover';
|
|
12
|
+
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
size: 'small' | 'medium' | 'large';
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
declare const MediaCard: {
|
|
17
|
+
({ title, description, duration, type, image, action, actionBehavior, isLoading, size, className, ...otherProps }: MediaCardProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { MediaCard };
|