@snapcall/design-system 1.20.0 → 1.21.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/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/index.d.mts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +4 -0
- package/dist/index.mjs +2 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar
|
|
3
|
+
} from "../../chunk-IO5BLXCA.mjs";
|
|
4
|
+
import {
|
|
5
|
+
SpinnerIcon
|
|
6
|
+
} from "../../chunk-N65I4EXR.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__objRest,
|
|
9
|
+
__spreadProps,
|
|
10
|
+
__spreadValues,
|
|
11
|
+
cn
|
|
12
|
+
} from "../../chunk-BOWIL6WZ.mjs";
|
|
13
|
+
|
|
14
|
+
// src/components/MediaCard/MediaCard.tsx
|
|
15
|
+
import { cloneElement } from "react";
|
|
16
|
+
|
|
17
|
+
// src/icons/image1.tsx
|
|
18
|
+
import { forwardRef } from "react";
|
|
19
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
+
var Image1Icon = forwardRef(
|
|
21
|
+
function Image1Icon2(_a, ref) {
|
|
22
|
+
var _b = _a, { size = 24, className = "text-gray-1000", duotone = false } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
|
|
23
|
+
return /* @__PURE__ */ jsxs(
|
|
24
|
+
"svg",
|
|
25
|
+
__spreadProps(__spreadValues({
|
|
26
|
+
ref,
|
|
27
|
+
width: size,
|
|
28
|
+
height: size,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
className
|
|
33
|
+
}, other), {
|
|
34
|
+
children: [
|
|
35
|
+
duotone && /* @__PURE__ */ jsxs("g", { opacity: "0.12", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
d: "M6.36574 19.6343L14.8687 11.1314C15.2647 10.7354 15.4627 10.5373 15.691 10.4632C15.8919 10.3979 16.1082 10.3979 16.3091 10.4632C16.5374 10.5373 16.7354 10.7354 17.1314 11.1314L21 15V16.2C21 17.8802 21 18.7202 20.6731 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7203 21 17.8802 21 16.2 21H6.93142C6.3256 21 6.0227 21 5.88243 20.8802C5.76073 20.7763 5.69614 20.6203 5.7087 20.4608C5.72317 20.2769 5.93736 20.0627 6.36574 19.6343Z",
|
|
40
|
+
fill: "currentColor"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
d: "M8.50005 10.5C9.60462 10.5 10.5 9.60457 10.5 8.5C10.5 7.39543 9.60462 6.5 8.50005 6.5C7.39548 6.5 6.50005 7.39543 6.50005 8.5C6.50005 9.60457 7.39548 10.5 8.50005 10.5Z",
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
d: "M16.2 21H6.93137C6.32555 21 6.02265 21 5.88238 20.8802C5.76068 20.7763 5.69609 20.6203 5.70865 20.4608C5.72312 20.2769 5.93731 20.0627 6.36569 19.6343L14.8686 11.1314C15.2646 10.7354 15.4627 10.5373 15.691 10.4632C15.8918 10.3979 16.1082 10.3979 16.309 10.4632C16.5373 10.5373 16.7354 10.7354 17.1314 11.1314L21 15V16.2M16.2 21C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2M16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2M10.5 8.5C10.5 9.60457 9.60457 10.5 8.5 10.5C7.39543 10.5 6.5 9.60457 6.5 8.5C6.5 7.39543 7.39543 6.5 8.5 6.5C9.60457 6.5 10.5 7.39543 10.5 8.5Z",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
strokeWidth: "2",
|
|
57
|
+
strokeLinecap: "round",
|
|
58
|
+
strokeLinejoin: "round"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
// src/icons/play.tsx
|
|
68
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
69
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
70
|
+
var PlayIcon = forwardRef2(function PlayIcon2(_a, ref) {
|
|
71
|
+
var _b = _a, { size = 24, className = "text-gray-1000", duotone = false } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
|
|
72
|
+
return /* @__PURE__ */ jsxs2(
|
|
73
|
+
"svg",
|
|
74
|
+
__spreadProps(__spreadValues({
|
|
75
|
+
ref,
|
|
76
|
+
width: size,
|
|
77
|
+
height: size,
|
|
78
|
+
viewBox: "0 0 24 24",
|
|
79
|
+
fill: "none",
|
|
80
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
81
|
+
className
|
|
82
|
+
}, other), {
|
|
83
|
+
children: [
|
|
84
|
+
duotone && /* @__PURE__ */ jsx2(
|
|
85
|
+
"path",
|
|
86
|
+
{
|
|
87
|
+
opacity: "0.12",
|
|
88
|
+
d: "M5 4.98951C5 4.01835 5 3.53277 5.20249 3.2651C5.37889 3.03191 5.64852 2.88761 5.9404 2.87018C6.27544 2.85017 6.67946 3.11953 7.48752 3.65823L18.0031 10.6686C18.6708 11.1137 19.0046 11.3363 19.1209 11.6168C19.2227 11.8621 19.2227 12.1377 19.1209 12.383C19.0046 12.6635 18.6708 12.886 18.0031 13.3312L7.48752 20.3415C6.67946 20.8802 6.27544 21.1496 5.9404 21.1296C5.64852 21.1122 5.37889 20.9679 5.20249 20.7347C5 20.467 5 19.9814 5 19.0103V4.98951Z",
|
|
89
|
+
fill: "currentColor"
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsx2(
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
d: "M5 4.98951C5 4.01835 5 3.53277 5.20249 3.2651C5.37889 3.03191 5.64852 2.88761 5.9404 2.87018C6.27544 2.85017 6.67946 3.11953 7.48752 3.65823L18.0031 10.6686C18.6708 11.1137 19.0046 11.3363 19.1209 11.6168C19.2227 11.8621 19.2227 12.1377 19.1209 12.383C19.0046 12.6635 18.6708 12.886 18.0031 13.3312L7.48752 20.3415C6.67946 20.8802 6.27544 21.1496 5.9404 21.1296C5.64852 21.1122 5.37889 20.9679 5.20249 20.7347C5 20.467 5 19.9814 5 19.0103V4.98951Z",
|
|
96
|
+
stroke: "currentColor",
|
|
97
|
+
strokeWidth: "2",
|
|
98
|
+
strokeLinecap: "round",
|
|
99
|
+
strokeLinejoin: "round"
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
// src/icons/recording2.tsx
|
|
108
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
109
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
110
|
+
var Recording2Icon = forwardRef3(
|
|
111
|
+
function Recording2Icon2(_a, ref) {
|
|
112
|
+
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
113
|
+
return /* @__PURE__ */ jsx3(
|
|
114
|
+
"svg",
|
|
115
|
+
__spreadProps(__spreadValues({
|
|
116
|
+
ref,
|
|
117
|
+
width: size,
|
|
118
|
+
height: size,
|
|
119
|
+
viewBox: "0 0 24 24",
|
|
120
|
+
fill: "none",
|
|
121
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
122
|
+
className
|
|
123
|
+
}, other), {
|
|
124
|
+
children: /* @__PURE__ */ jsx3(
|
|
125
|
+
"path",
|
|
126
|
+
{
|
|
127
|
+
d: "M3 10L3 14M7.5 11V13M12 6V18M16.5 3V21M21 10V14",
|
|
128
|
+
stroke: "currentColor",
|
|
129
|
+
strokeWidth: "2",
|
|
130
|
+
strokeLinecap: "round",
|
|
131
|
+
strokeLinejoin: "round"
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
// src/icons/videoRecorder.tsx
|
|
140
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
141
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
142
|
+
var VideoRecorderIcon = forwardRef4(
|
|
143
|
+
function VideoRecorderIcon2(_a, ref) {
|
|
144
|
+
var _b = _a, { size = 24, className = "text-gray-1000", duotone = false } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
|
|
145
|
+
return /* @__PURE__ */ jsxs3(
|
|
146
|
+
"svg",
|
|
147
|
+
__spreadProps(__spreadValues({
|
|
148
|
+
ref,
|
|
149
|
+
width: size,
|
|
150
|
+
height: size,
|
|
151
|
+
viewBox: "0 0 24 24",
|
|
152
|
+
fill: "none",
|
|
153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
154
|
+
className
|
|
155
|
+
}, other), {
|
|
156
|
+
children: [
|
|
157
|
+
duotone && /* @__PURE__ */ jsx4(
|
|
158
|
+
"path",
|
|
159
|
+
{
|
|
160
|
+
opacity: "0.12",
|
|
161
|
+
d: "M2 9.8C2 8.11984 2 7.27976 2.32698 6.63803C2.6146 6.07354 3.07354 5.6146 3.63803 5.32698C4.27976 5 5.11984 5 6.8 5H12.2C13.8802 5 14.7202 5 15.362 5.32698C15.9265 5.6146 16.3854 6.07354 16.673 6.63803C17 7.27976 17 8.11984 17 9.8V14.2C17 15.8802 17 16.7202 16.673 17.362C16.3854 17.9265 15.9265 18.3854 15.362 18.673C14.7202 19 13.8802 19 12.2 19H6.8C5.11984 19 4.27976 19 3.63803 18.673C3.07354 18.3854 2.6146 17.9265 2.32698 17.362C2 16.7202 2 15.8802 2 14.2V9.8Z",
|
|
162
|
+
fill: "currentColor",
|
|
163
|
+
stroke: "currentColor",
|
|
164
|
+
strokeWidth: "2",
|
|
165
|
+
strokeLinecap: "round",
|
|
166
|
+
strokeLinejoin: "round"
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
/* @__PURE__ */ jsx4(
|
|
170
|
+
"path",
|
|
171
|
+
{
|
|
172
|
+
d: "M22 8.93137C22 8.32555 22 8.02265 21.8802 7.88238C21.7763 7.76068 21.6203 7.69609 21.4608 7.70865C21.2769 7.72312 21.0627 7.93731 20.6343 8.36569L17 12L20.6343 15.6343C21.0627 16.0627 21.2769 16.2769 21.4608 16.2914C21.6203 16.3039 21.7763 16.2393 21.8802 16.1176C22 15.9774 22 15.6744 22 15.0686V8.93137Z",
|
|
173
|
+
stroke: "currentColor",
|
|
174
|
+
strokeWidth: "2",
|
|
175
|
+
strokeLinecap: "round",
|
|
176
|
+
strokeLinejoin: "round"
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ jsx4(
|
|
180
|
+
"path",
|
|
181
|
+
{
|
|
182
|
+
d: "M2 9.8C2 8.11984 2 7.27976 2.32698 6.63803C2.6146 6.07354 3.07354 5.6146 3.63803 5.32698C4.27976 5 5.11984 5 6.8 5H12.2C13.8802 5 14.7202 5 15.362 5.32698C15.9265 5.6146 16.3854 6.07354 16.673 6.63803C17 7.27976 17 8.11984 17 9.8V14.2C17 15.8802 17 16.7202 16.673 17.362C16.3854 17.9265 15.9265 18.3854 15.362 18.673C14.7202 19 13.8802 19 12.2 19H6.8C5.11984 19 4.27976 19 3.63803 18.673C3.07354 18.3854 2.6146 17.9265 2.32698 17.362C2 16.7202 2 15.8802 2 14.2V9.8Z",
|
|
183
|
+
stroke: "currentColor",
|
|
184
|
+
strokeWidth: "2",
|
|
185
|
+
strokeLinecap: "round",
|
|
186
|
+
strokeLinejoin: "round"
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
]
|
|
190
|
+
})
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
// src/components/MediaCard/utils.ts
|
|
196
|
+
var secondsToDuration = (seconds) => {
|
|
197
|
+
const hours = Math.floor(seconds / (60 * 60));
|
|
198
|
+
const minutes = Math.floor(seconds / 60) % 60;
|
|
199
|
+
const leftoverSeconds = seconds % 60;
|
|
200
|
+
const hoursText = hours ? `${hours}:` : "";
|
|
201
|
+
const minutesText = minutes ? `${minutes}:` : "0:";
|
|
202
|
+
const secondsText = leftoverSeconds < 10 ? `0${leftoverSeconds}` : `${leftoverSeconds}`;
|
|
203
|
+
return `${hoursText}${minutesText}${secondsText}`;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// src/components/MediaCard/MediaCard.tsx
|
|
207
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
208
|
+
var typesIcons = {
|
|
209
|
+
audio: /* @__PURE__ */ jsx5(Recording2Icon, {}),
|
|
210
|
+
video: /* @__PURE__ */ jsx5(VideoRecorderIcon, { duotone: true }),
|
|
211
|
+
image: /* @__PURE__ */ jsx5(Image1Icon, { duotone: true })
|
|
212
|
+
};
|
|
213
|
+
var MediaCard = (_a) => {
|
|
214
|
+
var _b = _a, {
|
|
215
|
+
title,
|
|
216
|
+
description,
|
|
217
|
+
duration,
|
|
218
|
+
type,
|
|
219
|
+
image,
|
|
220
|
+
action,
|
|
221
|
+
actionBehavior = "default",
|
|
222
|
+
isLoading,
|
|
223
|
+
size,
|
|
224
|
+
className
|
|
225
|
+
} = _b, otherProps = __objRest(_b, [
|
|
226
|
+
"title",
|
|
227
|
+
"description",
|
|
228
|
+
"duration",
|
|
229
|
+
"type",
|
|
230
|
+
"image",
|
|
231
|
+
"action",
|
|
232
|
+
"actionBehavior",
|
|
233
|
+
"isLoading",
|
|
234
|
+
"size",
|
|
235
|
+
"className"
|
|
236
|
+
]);
|
|
237
|
+
const thumbnail = /* @__PURE__ */ jsx5(
|
|
238
|
+
"div",
|
|
239
|
+
__spreadProps(__spreadValues({}, otherProps), {
|
|
240
|
+
className: cn(
|
|
241
|
+
"flex-1 min-h-0 bg-gray-50 relative",
|
|
242
|
+
{
|
|
243
|
+
"aspect-square rounded-md": size === "medium" || size === "small"
|
|
244
|
+
},
|
|
245
|
+
className
|
|
246
|
+
),
|
|
247
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-center items-center w-full h-full rounded-[inherit] overflow-hidden relative", children: [
|
|
248
|
+
/* @__PURE__ */ jsx5(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: cn(
|
|
252
|
+
"absolute w-full h-full",
|
|
253
|
+
size === "large" ? "p-2" : "p-1"
|
|
254
|
+
),
|
|
255
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "relative w-full h-full flex justify-center items-center", children: [
|
|
256
|
+
duration && size === "large" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-0", children: /* @__PURE__ */ jsx5("p", { className: "px-1 py-0.5 bg-black/50 dark:bg-white/50 rounded text-xs text-white dark:text-black font-medium truncate", children: secondsToDuration(duration) }) }),
|
|
257
|
+
size !== "small" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 right-0", children: /* @__PURE__ */ jsx5(Avatar, { size: size === "large" ? "sm" : "xs", name: "Avatar" }) }),
|
|
258
|
+
type === "video" && image && /* @__PURE__ */ jsx5(
|
|
259
|
+
PlayIcon,
|
|
260
|
+
{
|
|
261
|
+
size: size === "large" ? 24 : size === "medium" ? 18 : 12,
|
|
262
|
+
className: "text-white fill-white dark:text-black dark:fill-black"
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
] })
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
typeof image === "string" ? /* @__PURE__ */ jsx5("img", { className: "w-full h-full object-cover", src: image }) : image ? image : cloneElement(typesIcons[type], {
|
|
269
|
+
className: "text-gray-900 self-center",
|
|
270
|
+
size: size === "large" ? 24 : size === "medium" ? 18 : 16
|
|
271
|
+
})
|
|
272
|
+
] })
|
|
273
|
+
})
|
|
274
|
+
);
|
|
275
|
+
return /* @__PURE__ */ jsxs4(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
className: cn(
|
|
279
|
+
"flex flex-col bg-white border border-gray-200 divide-y divide-gray-200 rounded-lg shadow-sm group/mediacard",
|
|
280
|
+
"hover:bg-gray-25 active:bg-gray-50 overflow-hidden",
|
|
281
|
+
{
|
|
282
|
+
"opacity-40": isLoading,
|
|
283
|
+
"w-[232px] h-[184px]": size === "large",
|
|
284
|
+
"w-[240px] h-[72px]": size === "medium",
|
|
285
|
+
"w-[240px] h-[52px]": size === "small"
|
|
286
|
+
}
|
|
287
|
+
),
|
|
288
|
+
children: [
|
|
289
|
+
size === "large" && thumbnail,
|
|
290
|
+
/* @__PURE__ */ jsxs4(
|
|
291
|
+
"div",
|
|
292
|
+
{
|
|
293
|
+
className: cn("flex gap-4", {
|
|
294
|
+
"p-3": size === "large",
|
|
295
|
+
"py-2 pl-2 pr-3.5 h-full": size === "medium" || size === "small"
|
|
296
|
+
}),
|
|
297
|
+
children: [
|
|
298
|
+
size !== "large" && thumbnail,
|
|
299
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex gap-2 items-center w-full", children: [
|
|
300
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex-1 flex flex-col gap-0.5 min-w-0", children: [
|
|
301
|
+
/* @__PURE__ */ jsx5("p", { className: "text-black text-sm font-medium truncate", children: title }),
|
|
302
|
+
/* @__PURE__ */ jsx5("p", { className: "text-xs text-gray-900 truncate", children: description })
|
|
303
|
+
] }),
|
|
304
|
+
isLoading ? /* @__PURE__ */ jsx5(SpinnerIcon, { size: 24, className: "text-blue-700 animate-spin" }) : /* @__PURE__ */ jsx5(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
className: cn({
|
|
308
|
+
"invisible group-hover/mediacard:visible group-focus-within/mediacard:visible": actionBehavior === "hover"
|
|
309
|
+
}),
|
|
310
|
+
children: action
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
] })
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
};
|
|
321
|
+
MediaCard.displayName = "MediaCard";
|
|
322
|
+
export {
|
|
323
|
+
MediaCard
|
|
324
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default from 'react';
|
|
2
|
+
import react__default, { HTMLAttributes } from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import { I as IconProps } from './types-DBpSTFQy.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -599,6 +599,25 @@ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttri
|
|
|
599
599
|
|
|
600
600
|
declare const Label: react.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & react.RefAttributes<HTMLLabelElement>, "ref"> & react.RefAttributes<HTMLLabelElement>>;
|
|
601
601
|
|
|
602
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<react.HTMLProps<HTMLAnchorElement>, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
603
|
+
|
|
604
|
+
type MediaCardProps = {
|
|
605
|
+
title: string;
|
|
606
|
+
description?: string;
|
|
607
|
+
duration?: number;
|
|
608
|
+
type: 'audio' | 'video' | 'image';
|
|
609
|
+
image?: string | JSX.Element;
|
|
610
|
+
action?: JSX.Element;
|
|
611
|
+
actionBehavior?: 'default' | 'hover';
|
|
612
|
+
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
613
|
+
isLoading?: boolean;
|
|
614
|
+
size: 'small' | 'medium' | 'large';
|
|
615
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
616
|
+
declare const MediaCard: {
|
|
617
|
+
({ title, description, duration, type, image, action, actionBehavior, isLoading, size, className, ...otherProps }: MediaCardProps): react_jsx_runtime.JSX.Element;
|
|
618
|
+
displayName: string;
|
|
619
|
+
};
|
|
620
|
+
|
|
602
621
|
declare enum PaginationPageChoice {
|
|
603
622
|
FIRST = "FIRST",
|
|
604
623
|
PREVIOUS = "PREVIOUS",
|
|
@@ -915,4 +934,4 @@ declare const Tooltip: react.FC<TooltipPrimitive.TooltipProps>;
|
|
|
915
934
|
declare const TooltipTrigger: react.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
916
935
|
declare const TooltipContent: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
917
936
|
|
|
918
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Avatar, Badge, type BadgeProps, Button, type ButtonProps, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CreatableSelect, type CreatableSelectProps, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButton, Input, Label, Pagination, PaginationPageChoice, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RawToast, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, Skeleton, Switch, Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastContent, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonSizes, buttonVariants, iconButtonSizes, toast, useToast };
|
|
937
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Avatar, Badge, type BadgeProps, Button, type ButtonProps, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CreatableSelect, type CreatableSelectProps, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButton, Input, Label, Link, MediaCard, Pagination, PaginationPageChoice, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RawToast, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, Skeleton, Switch, Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastContent, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonSizes, buttonVariants, iconButtonSizes, toast, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default from 'react';
|
|
2
|
+
import react__default, { HTMLAttributes } from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import { I as IconProps } from './types-DBpSTFQy.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -599,6 +599,25 @@ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttri
|
|
|
599
599
|
|
|
600
600
|
declare const Label: react.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & react.RefAttributes<HTMLLabelElement>, "ref"> & react.RefAttributes<HTMLLabelElement>>;
|
|
601
601
|
|
|
602
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<react.HTMLProps<HTMLAnchorElement>, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
603
|
+
|
|
604
|
+
type MediaCardProps = {
|
|
605
|
+
title: string;
|
|
606
|
+
description?: string;
|
|
607
|
+
duration?: number;
|
|
608
|
+
type: 'audio' | 'video' | 'image';
|
|
609
|
+
image?: string | JSX.Element;
|
|
610
|
+
action?: JSX.Element;
|
|
611
|
+
actionBehavior?: 'default' | 'hover';
|
|
612
|
+
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
613
|
+
isLoading?: boolean;
|
|
614
|
+
size: 'small' | 'medium' | 'large';
|
|
615
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
616
|
+
declare const MediaCard: {
|
|
617
|
+
({ title, description, duration, type, image, action, actionBehavior, isLoading, size, className, ...otherProps }: MediaCardProps): react_jsx_runtime.JSX.Element;
|
|
618
|
+
displayName: string;
|
|
619
|
+
};
|
|
620
|
+
|
|
602
621
|
declare enum PaginationPageChoice {
|
|
603
622
|
FIRST = "FIRST",
|
|
604
623
|
PREVIOUS = "PREVIOUS",
|
|
@@ -915,4 +934,4 @@ declare const Tooltip: react.FC<TooltipPrimitive.TooltipProps>;
|
|
|
915
934
|
declare const TooltipTrigger: react.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
916
935
|
declare const TooltipContent: react.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
917
936
|
|
|
918
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Avatar, Badge, type BadgeProps, Button, type ButtonProps, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CreatableSelect, type CreatableSelectProps, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButton, Input, Label, Pagination, PaginationPageChoice, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RawToast, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, Skeleton, Switch, Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastContent, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonSizes, buttonVariants, iconButtonSizes, toast, useToast };
|
|
937
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Avatar, Badge, type BadgeProps, Button, type ButtonProps, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CreatableSelect, type CreatableSelectProps, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButton, Input, Label, Link, MediaCard, Pagination, PaginationPageChoice, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RawToast, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, Skeleton, Switch, Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastContent, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonSizes, buttonVariants, iconButtonSizes, toast, useToast };
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,8 @@ __reExport(src_exports, require("./components/DropdownMenu"), module.exports);
|
|
|
29
29
|
__reExport(src_exports, require("./components/FilterButton"), module.exports);
|
|
30
30
|
__reExport(src_exports, require("./components/Input"), module.exports);
|
|
31
31
|
__reExport(src_exports, require("./components/Label"), module.exports);
|
|
32
|
+
__reExport(src_exports, require("./components/Link"), module.exports);
|
|
33
|
+
__reExport(src_exports, require("./components/MediaCard"), module.exports);
|
|
32
34
|
__reExport(src_exports, require("./components/Pagination"), module.exports);
|
|
33
35
|
__reExport(src_exports, require("./components/Popover"), module.exports);
|
|
34
36
|
__reExport(src_exports, require("./components/RadioGroup"), module.exports);
|
|
@@ -58,6 +60,8 @@ __reExport(src_exports, require("./components/Tooltip"), module.exports);
|
|
|
58
60
|
...require("./components/FilterButton"),
|
|
59
61
|
...require("./components/Input"),
|
|
60
62
|
...require("./components/Label"),
|
|
63
|
+
...require("./components/Link"),
|
|
64
|
+
...require("./components/MediaCard"),
|
|
61
65
|
...require("./components/Pagination"),
|
|
62
66
|
...require("./components/Popover"),
|
|
63
67
|
...require("./components/RadioGroup"),
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,8 @@ export * from "./components/DropdownMenu";
|
|
|
12
12
|
export * from "./components/FilterButton";
|
|
13
13
|
export * from "./components/Input";
|
|
14
14
|
export * from "./components/Label";
|
|
15
|
+
export * from "./components/Link";
|
|
16
|
+
export * from "./components/MediaCard";
|
|
15
17
|
export * from "./components/Pagination";
|
|
16
18
|
export * from "./components/Popover";
|
|
17
19
|
export * from "./components/RadioGroup";
|