@solostylist/ui-kit 1.0.165 → 1.0.166
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/README.md +13 -13
- package/dist/Download-UsLvGg3y.js +8 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +169 -167
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-ai-tool-bar/index.js +4 -0
- package/dist/s-ai-tool-bar/package.json +5 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +104 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +480 -0
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-button/package.json +5 -5
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-message/s-chat-message.js +30 -31
- package/dist/s-chip/package.json +5 -5
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-rating/package.json +5 -5
- package/dist/s-review/package.json +5 -5
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/theme/components/alert.d.ts +1440 -1440
- package/dist/theme/components/button.d.ts +2156 -2156
- package/dist/theme/components/chip.d.ts +2 -2
- package/package.json +113 -113
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Box as t, Typography as l, Paper as
|
|
2
|
+
import { useState as M } from "react";
|
|
3
|
+
import { Box as t, Typography as l, Paper as H, IconButton as T } from "@mui/material";
|
|
4
4
|
import W from "../s-avatar/s-avatar.js";
|
|
5
5
|
import P from "../s-image-modal/s-image-modal.js";
|
|
6
6
|
import E from "../s-lazy-image/s-lazy-image.js";
|
|
7
7
|
import o from "../s-skeleton/s-skeleton.js";
|
|
8
|
-
import { c as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}), "Download"), K = m(/* @__PURE__ */ e.jsx("path", {
|
|
8
|
+
import { c as g } from "../createSvgIcon-DxwgGAVe.js";
|
|
9
|
+
import { D as G } from "../Download-UsLvGg3y.js";
|
|
10
|
+
const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
12
11
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
13
|
-
}), "ErrorOutline"), q =
|
|
12
|
+
}), "ErrorOutline"), q = g(/* @__PURE__ */ e.jsx("path", {
|
|
14
13
|
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
15
|
-
}), "InsertDriveFile"), A =
|
|
14
|
+
}), "InsertDriveFile"), A = g(/* @__PURE__ */ e.jsx("path", {
|
|
16
15
|
d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"
|
|
17
|
-
}), "Refresh"),
|
|
16
|
+
}), "Refresh"), ie = ({
|
|
18
17
|
message: j,
|
|
19
18
|
variant: B = "received",
|
|
20
19
|
timestamp: u,
|
|
@@ -23,29 +22,29 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
23
22
|
showAvatar: n = !0,
|
|
24
23
|
showTimestamp: y = !1,
|
|
25
24
|
maxWidth: S = "70%",
|
|
26
|
-
attachments:
|
|
25
|
+
attachments: m = [],
|
|
27
26
|
onAttachmentClick: a,
|
|
28
27
|
onDownload: d,
|
|
29
|
-
hasError:
|
|
28
|
+
hasError: f = !1,
|
|
30
29
|
errorMessage: F = "Failed to send message",
|
|
31
30
|
onRetry: z,
|
|
32
31
|
loading: D = !1,
|
|
33
32
|
sx: w,
|
|
34
33
|
...I
|
|
35
34
|
}) => {
|
|
36
|
-
const [x, b] =
|
|
35
|
+
const [x, b] = M(null), [L, k] = M(!1), r = B === "sent", O = (i) => (typeof i == "string" ? new Date(i) : i).toLocaleTimeString("en-US", {
|
|
37
36
|
hour: "2-digit",
|
|
38
37
|
minute: "2-digit",
|
|
39
38
|
hour12: !0
|
|
40
|
-
}),
|
|
39
|
+
}), R = (i) => {
|
|
41
40
|
if (!i) return "";
|
|
42
|
-
const
|
|
43
|
-
return Math.round(i / Math.pow(1024,
|
|
44
|
-
},
|
|
41
|
+
const p = ["Bytes", "KB", "MB", "GB"], h = Math.floor(Math.log(i) / Math.log(1024));
|
|
42
|
+
return Math.round(i / Math.pow(1024, h) * 100) / 100 + " " + p[h];
|
|
43
|
+
}, U = (i) => {
|
|
45
44
|
a ? a(i) : (b(i), k(!0));
|
|
46
45
|
}, V = (i) => {
|
|
47
46
|
a ? a(i) : d && d(i);
|
|
48
|
-
}, c =
|
|
47
|
+
}, c = m.filter((i) => i.type === "image"), C = m.filter((i) => i.type === "file");
|
|
49
48
|
return D ? /* @__PURE__ */ e.jsxs(
|
|
50
49
|
t,
|
|
51
50
|
{
|
|
@@ -145,11 +144,11 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
145
144
|
backgroundColor: r ? "primary.main" : "",
|
|
146
145
|
color: r ? "primary.contrastText" : "text.primary",
|
|
147
146
|
border: r ? "none" : "1px solid",
|
|
148
|
-
borderColor:
|
|
147
|
+
borderColor: f ? "error.main" : "divider",
|
|
149
148
|
...r && {
|
|
150
149
|
backgroundColor: "primary.dark"
|
|
151
150
|
},
|
|
152
|
-
...
|
|
151
|
+
...f && {
|
|
153
152
|
opacity: 0.7
|
|
154
153
|
},
|
|
155
154
|
overflow: "hidden"
|
|
@@ -178,7 +177,7 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
178
177
|
opacity: 0.9
|
|
179
178
|
}
|
|
180
179
|
},
|
|
181
|
-
onClick: () =>
|
|
180
|
+
onClick: () => U(i),
|
|
182
181
|
children: /* @__PURE__ */ e.jsx(
|
|
183
182
|
E,
|
|
184
183
|
{
|
|
@@ -199,8 +198,8 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
199
198
|
))
|
|
200
199
|
}
|
|
201
200
|
),
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
C.length > 0 && /* @__PURE__ */ e.jsx(t, { sx: { p: 1.5 }, children: C.map((i, p) => /* @__PURE__ */ e.jsxs(
|
|
202
|
+
H,
|
|
204
203
|
{
|
|
205
204
|
variant: "outlined",
|
|
206
205
|
sx: {
|
|
@@ -208,7 +207,7 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
208
207
|
alignItems: "center",
|
|
209
208
|
gap: 1.5,
|
|
210
209
|
p: 1,
|
|
211
|
-
mt:
|
|
210
|
+
mt: p > 0 ? 1 : 0,
|
|
212
211
|
cursor: "pointer",
|
|
213
212
|
backgroundColor: r ? "blackAlpha.zero" : "background.paper",
|
|
214
213
|
"&:hover": {
|
|
@@ -250,7 +249,7 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
250
249
|
fontSize: "0.75rem",
|
|
251
250
|
color: r ? "whiteAlpha.dark" : "text.secondary"
|
|
252
251
|
},
|
|
253
|
-
children:
|
|
252
|
+
children: R(i.size)
|
|
254
253
|
}
|
|
255
254
|
)
|
|
256
255
|
] }),
|
|
@@ -258,8 +257,8 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
258
257
|
T,
|
|
259
258
|
{
|
|
260
259
|
size: "small",
|
|
261
|
-
onClick: (
|
|
262
|
-
|
|
260
|
+
onClick: (h) => {
|
|
261
|
+
h.stopPropagation(), d(i);
|
|
263
262
|
},
|
|
264
263
|
sx: {
|
|
265
264
|
color: r ? "primary.contrastText" : "action.active"
|
|
@@ -271,7 +270,7 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
271
270
|
},
|
|
272
271
|
i.id
|
|
273
272
|
)) }),
|
|
274
|
-
j && /* @__PURE__ */ e.jsx(t, { sx: { px: 2, py: 1.5, pt:
|
|
273
|
+
j && /* @__PURE__ */ e.jsx(t, { sx: { px: 2, py: 1.5, pt: m.length > 0 ? 0 : 1.5 }, children: /* @__PURE__ */ e.jsx(
|
|
275
274
|
l,
|
|
276
275
|
{
|
|
277
276
|
variant: "body2",
|
|
@@ -296,10 +295,10 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
296
295
|
ml: r ? 0 : 0.5,
|
|
297
296
|
mr: r ? 0.5 : 0
|
|
298
297
|
},
|
|
299
|
-
children:
|
|
298
|
+
children: O(u)
|
|
300
299
|
}
|
|
301
300
|
),
|
|
302
|
-
|
|
301
|
+
f && /* @__PURE__ */ e.jsxs(
|
|
303
302
|
t,
|
|
304
303
|
{
|
|
305
304
|
display: "flex",
|
|
@@ -334,7 +333,7 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
334
333
|
x && /* @__PURE__ */ e.jsx(
|
|
335
334
|
P,
|
|
336
335
|
{
|
|
337
|
-
isOpen:
|
|
336
|
+
isOpen: L,
|
|
338
337
|
onClose: () => {
|
|
339
338
|
k(!1), b(null);
|
|
340
339
|
},
|
|
@@ -353,5 +352,5 @@ const G = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
353
352
|
);
|
|
354
353
|
};
|
|
355
354
|
export {
|
|
356
|
-
|
|
355
|
+
ie as default
|
|
357
356
|
};
|
package/dist/s-chip/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@solostylist/ui-kit/s-scroll-reveal",
|
|
3
|
-
"main": "./index.ts",
|
|
4
|
-
"module": "./index.ts",
|
|
5
|
-
"types": "./index.ts"
|
|
1
|
+
{
|
|
2
|
+
"name": "@solostylist/ui-kit/s-scroll-reveal",
|
|
3
|
+
"main": "./index.ts",
|
|
4
|
+
"module": "./index.ts",
|
|
5
|
+
"types": "./index.ts"
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
package/dist/s-tabs/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "s-tabs",
|
|
3
|
-
"main": "./index.ts"
|
|
1
|
+
{
|
|
2
|
+
"name": "s-tabs",
|
|
3
|
+
"main": "./index.ts"
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@solostylist/ui-kit/s-typewriter-text",
|
|
3
|
-
"main": "./index.ts",
|
|
4
|
-
"module": "./index.ts",
|
|
5
|
-
"types": "./index.ts"
|
|
1
|
+
{
|
|
2
|
+
"name": "@solostylist/ui-kit/s-typewriter-text",
|
|
3
|
+
"main": "./index.ts",
|
|
4
|
+
"module": "./index.ts",
|
|
5
|
+
"types": "./index.ts"
|
|
6
6
|
}
|