@solostylist/ui-kit 1.0.87 → 1.0.89
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/{Box-Cf99MewL.js → Box-CJmG1mTu.js} +3 -3
- package/dist/ButtonBase-C0g54hXq.js +910 -0
- package/dist/ChevronRight-CtkI4XwH.js +11 -0
- package/dist/{Close-CKpTrk7X.js → Close--Sf9yZGB.js} +1 -1
- package/dist/{Menu-D2LDo0yd.js → Menu-BuktPpzX.js} +914 -1453
- package/dist/{MenuItem-JkMrBIMD.js → MenuItem-sL2AcofB.js} +8 -8
- package/dist/Paper-CH6cuu9i.js +553 -0
- package/dist/{Select-4BjFewNI.js → Select-D2lV25sl.js} +16 -15
- package/dist/{Stack-UjxgGQu9.js → Stack-CIrlOUXL.js} +4 -4
- package/dist/{TransitionGroup-DzGaAPUk.js → TransitionGroup-SToIdl-5.js} +3 -3
- package/dist/{Typography-CGoVq27h.js → Typography-D-VP4V1G.js} +3 -3
- package/dist/{createSvgIcon-vJH0FaMW.js → createSvgIcon-DpVs_nKR.js} +5 -5
- package/dist/{createTheme-DjqDAiZm.js → createTheme-DbdaZ0Ku.js} +3 -2
- package/dist/{defaultTheme-CaAxts6z.js → defaultTheme-CFAmbghg.js} +1 -1
- package/dist/{extendSxProp-BnfiUPQK.js → extendSxProp-CQnEn3aw.js} +1 -1
- package/dist/{index-DcImsw9J.js → index-CjPqjRDL.js} +4 -4
- package/dist/main.d.ts +6 -0
- package/dist/main.js +117 -111
- package/dist/mergeSlotProps-N47mO9C9.js +62 -0
- package/dist/s-accordion/index.d.ts +2 -0
- package/dist/s-accordion/index.js +4 -0
- package/dist/s-accordion/package.json +5 -0
- package/dist/s-accordion/s-accordion.d.ts +9 -0
- package/dist/s-accordion/s-accordion.js +924 -0
- package/dist/s-avatar/index.d.ts +2 -0
- package/dist/s-avatar/index.js +4 -0
- package/dist/s-avatar/package.json +5 -0
- package/dist/s-avatar/s-avatar.d.ts +10 -0
- package/dist/s-avatar/s-avatar.js +9 -0
- package/dist/s-chat-input/s-chat-input.js +6 -6
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +12 -10
- package/dist/s-date-picker/s-date-picker.js +24 -24
- package/dist/s-datetime-picker/s-datetime-picker.js +13 -12
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +8 -8
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-image-comparison/index.d.ts +2 -0
- package/dist/s-image-comparison/index.js +4 -0
- package/dist/s-image-comparison/package.json +5 -0
- package/dist/s-image-comparison/s-image-comparison.d.ts +11 -0
- package/dist/s-image-comparison/s-image-comparison.js +155 -0
- package/dist/s-image-modal/s-image-modal.js +94 -98
- package/dist/s-interactive-gallery/s-interactive-gallery.js +69 -69
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +5 -5
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +13 -4
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/theme/components/avatar.js +3 -3
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.d.ts +2 -2
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/{useMobilePicker-DmFQ075P.js → useMobilePicker-CRxlxUeh.js} +100 -98
- package/dist/{useTheme-DPtt6ExE.js → useTheme-CjYoxoob.js} +1 -1
- package/dist/{useThemeProps-DQiCrjPQ.js → useThemeProps-DdCEfRBE.js} +2 -2
- package/dist/{warning-UxpRUL3s.js → warning-CiVr8tE6.js} +3 -3
- package/package.json +1 -1
- package/dist/useFormControl-B3RPiDsz.js +0 -38
- package/dist/useSlot-DFSsVuMw.js +0 -969
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { useState as u, useEffect as y, useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const e =
|
|
2
|
+
import { useState as u, useId as j, useEffect as y, useRef as I } from "react";
|
|
3
|
+
import { Box as s, Paper as C, Typography as x } from "@mui/material";
|
|
4
|
+
import { AnimatePresence as S, motion as b } from "framer-motion";
|
|
5
|
+
import k from "../s-image-modal/s-image-modal.js";
|
|
6
|
+
import $ from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
+
const R = ({ item: a, sx: i, onClick: l }) => {
|
|
8
|
+
const e = I(null), [c, h] = u(!1), [p, d] = u(!0);
|
|
9
9
|
return y(() => {
|
|
10
|
-
const
|
|
10
|
+
const t = {
|
|
11
11
|
root: null,
|
|
12
12
|
rootMargin: "50px",
|
|
13
13
|
// Start loading 50px before entering viewport
|
|
14
14
|
threshold: 0.1
|
|
15
15
|
// Trigger when 10% of video is visible
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
return e.current &&
|
|
20
|
-
e.current &&
|
|
16
|
+
}, o = new IntersectionObserver((n) => {
|
|
17
|
+
n.forEach((f) => h(f.isIntersecting));
|
|
18
|
+
}, t);
|
|
19
|
+
return e.current && o.observe(e.current), () => {
|
|
20
|
+
e.current && o.unobserve(e.current);
|
|
21
21
|
};
|
|
22
22
|
}, []), y(() => {
|
|
23
|
-
let
|
|
24
|
-
return
|
|
25
|
-
if (!(!e.current || !
|
|
23
|
+
let t = !0;
|
|
24
|
+
return c ? (async () => {
|
|
25
|
+
if (!(!e.current || !c || !t))
|
|
26
26
|
try {
|
|
27
|
-
e.current.readyState >= 3 ? (
|
|
28
|
-
e.current && (e.current.oncanplay = () =>
|
|
29
|
-
}),
|
|
30
|
-
} catch (
|
|
31
|
-
console.warn("Video playback failed:",
|
|
27
|
+
e.current.readyState >= 3 ? (d(!1), await e.current.play()) : (d(!0), await new Promise((n) => {
|
|
28
|
+
e.current && (e.current.oncanplay = () => n());
|
|
29
|
+
}), t && (d(!1), await e.current.play()));
|
|
30
|
+
} catch (n) {
|
|
31
|
+
console.warn("Video playback failed:", n);
|
|
32
32
|
}
|
|
33
33
|
})() : e.current && e.current.pause(), () => {
|
|
34
|
-
|
|
34
|
+
t = !1, e.current && (e.current.pause(), e.current.removeAttribute("src"), e.current.load());
|
|
35
35
|
};
|
|
36
|
-
}, [
|
|
37
|
-
|
|
36
|
+
}, [c]), a.type === "video" ? /* @__PURE__ */ r.jsxs(
|
|
37
|
+
s,
|
|
38
38
|
{
|
|
39
39
|
sx: {
|
|
40
40
|
position: "relative",
|
|
41
41
|
overflow: "hidden",
|
|
42
42
|
width: "100%",
|
|
43
43
|
height: "100%",
|
|
44
|
-
...
|
|
44
|
+
...i
|
|
45
45
|
},
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ r.jsx(
|
|
48
|
-
|
|
48
|
+
s,
|
|
49
49
|
{
|
|
50
50
|
component: "video",
|
|
51
51
|
ref: e,
|
|
52
|
-
onClick:
|
|
52
|
+
onClick: l,
|
|
53
53
|
playsInline: !0,
|
|
54
54
|
muted: !0,
|
|
55
55
|
loop: !0,
|
|
@@ -64,11 +64,11 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
64
64
|
willChange: "transform",
|
|
65
65
|
display: "block"
|
|
66
66
|
},
|
|
67
|
-
children: /* @__PURE__ */ r.jsx("source", { src:
|
|
67
|
+
children: /* @__PURE__ */ r.jsx("source", { src: a.url, type: "video/mp4" })
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
p && /* @__PURE__ */ r.jsx(
|
|
71
|
-
|
|
71
|
+
s,
|
|
72
72
|
{
|
|
73
73
|
sx: {
|
|
74
74
|
position: "absolute",
|
|
@@ -79,7 +79,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
79
79
|
bgcolor: "action.disabled"
|
|
80
80
|
},
|
|
81
81
|
children: /* @__PURE__ */ r.jsx(
|
|
82
|
-
|
|
82
|
+
s,
|
|
83
83
|
{
|
|
84
84
|
sx: {
|
|
85
85
|
width: 24,
|
|
@@ -99,39 +99,39 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
99
99
|
)
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
|
-
) : /* @__PURE__ */ r.jsx(
|
|
103
|
-
|
|
102
|
+
) : /* @__PURE__ */ r.jsx(s, { onClick: l, sx: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ r.jsx(
|
|
103
|
+
$,
|
|
104
104
|
{
|
|
105
|
-
src:
|
|
106
|
-
alt:
|
|
105
|
+
src: a.url,
|
|
106
|
+
alt: a.title || "",
|
|
107
107
|
width: "100%",
|
|
108
108
|
height: "100%",
|
|
109
109
|
style: {
|
|
110
|
-
objectFit:
|
|
111
|
-
cursor:
|
|
110
|
+
objectFit: i != null && i.objectFit ? i.objectFit : "cover",
|
|
111
|
+
cursor: l ? "pointer" : "default",
|
|
112
112
|
display: "block",
|
|
113
113
|
width: "100%",
|
|
114
114
|
height: "100%"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
) });
|
|
118
|
-
},
|
|
119
|
-
const [
|
|
118
|
+
}, F = ({ mediaItems: a }) => {
|
|
119
|
+
const [i, l] = u(null), [e, c] = u(a), [h, p] = u(!1), d = j();
|
|
120
120
|
return y(() => {
|
|
121
|
-
|
|
122
|
-
}, [
|
|
121
|
+
c(a);
|
|
122
|
+
}, [a]), /* @__PURE__ */ r.jsxs(s, { sx: { width: "100%", position: "relative", zIndex: 1 }, children: [
|
|
123
123
|
/* @__PURE__ */ r.jsx(
|
|
124
|
-
|
|
124
|
+
k,
|
|
125
125
|
{
|
|
126
|
-
selectedItem:
|
|
127
|
-
isOpen: !!
|
|
128
|
-
onClose: () =>
|
|
129
|
-
onItemChange:
|
|
126
|
+
selectedItem: i,
|
|
127
|
+
isOpen: !!i,
|
|
128
|
+
onClose: () => l(null),
|
|
129
|
+
onItemChange: l,
|
|
130
130
|
mediaItems: e
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
|
-
/* @__PURE__ */ r.jsx(
|
|
134
|
-
|
|
133
|
+
/* @__PURE__ */ r.jsx(S, { mode: "wait", children: !i && /* @__PURE__ */ r.jsx(
|
|
134
|
+
b.div,
|
|
135
135
|
{
|
|
136
136
|
initial: "hidden",
|
|
137
137
|
animate: "visible",
|
|
@@ -145,7 +145,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
children: /* @__PURE__ */ r.jsx(
|
|
148
|
-
|
|
148
|
+
s,
|
|
149
149
|
{
|
|
150
150
|
sx: {
|
|
151
151
|
display: "grid",
|
|
@@ -159,11 +159,11 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
159
159
|
position: "relative"
|
|
160
160
|
// Ensure proper stacking context
|
|
161
161
|
},
|
|
162
|
-
children: e.map((t,
|
|
163
|
-
|
|
162
|
+
children: e.map((t, o) => /* @__PURE__ */ r.jsx(
|
|
163
|
+
b.div,
|
|
164
164
|
{
|
|
165
|
-
layoutId: `media-${t.id}`,
|
|
166
|
-
onClick: () => !h &&
|
|
165
|
+
layoutId: `media-${t.id}-${d}`,
|
|
166
|
+
onClick: () => !h && l(t),
|
|
167
167
|
variants: {
|
|
168
168
|
hidden: { y: 50, scale: 0.9, opacity: 0 },
|
|
169
169
|
visible: {
|
|
@@ -174,7 +174,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
174
174
|
type: "spring",
|
|
175
175
|
stiffness: 350,
|
|
176
176
|
damping: 25,
|
|
177
|
-
delay:
|
|
177
|
+
delay: o * 0.05
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
},
|
|
@@ -183,12 +183,12 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
183
183
|
dragConstraints: { left: 0, right: 0, top: 0, bottom: 0 },
|
|
184
184
|
dragElastic: 1,
|
|
185
185
|
onDragStart: () => p(!0),
|
|
186
|
-
onDragEnd: (
|
|
186
|
+
onDragEnd: (n, f) => {
|
|
187
187
|
p(!1);
|
|
188
|
-
const
|
|
189
|
-
if (Math.abs(
|
|
190
|
-
const g = [...e],
|
|
191
|
-
g.splice(
|
|
188
|
+
const v = f.offset.x + f.offset.y;
|
|
189
|
+
if (Math.abs(v) > 50) {
|
|
190
|
+
const g = [...e], m = g[o], w = v > 0 ? Math.min(o + 1, e.length - 1) : Math.max(o - 1, 0);
|
|
191
|
+
g.splice(o, 1), g.splice(w, 0, m), c(g);
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
style: {
|
|
@@ -197,7 +197,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
197
197
|
gridColumn: t.colSpan ? `span ${t.colSpan}` : "span 1"
|
|
198
198
|
},
|
|
199
199
|
children: /* @__PURE__ */ r.jsxs(
|
|
200
|
-
|
|
200
|
+
C,
|
|
201
201
|
{
|
|
202
202
|
elevation: 4,
|
|
203
203
|
sx: {
|
|
@@ -214,15 +214,15 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
214
214
|
},
|
|
215
215
|
children: [
|
|
216
216
|
/* @__PURE__ */ r.jsx(
|
|
217
|
-
|
|
217
|
+
R,
|
|
218
218
|
{
|
|
219
219
|
item: t,
|
|
220
220
|
sx: { position: "absolute", inset: 0, width: "100%", height: "100%" },
|
|
221
|
-
onClick: () => !h &&
|
|
221
|
+
onClick: () => !h && l(t)
|
|
222
222
|
}
|
|
223
223
|
),
|
|
224
224
|
(t.title || t.desc) && /* @__PURE__ */ r.jsxs(
|
|
225
|
-
|
|
225
|
+
s,
|
|
226
226
|
{
|
|
227
227
|
className: "hover-overlay",
|
|
228
228
|
sx: {
|
|
@@ -239,17 +239,17 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
239
239
|
},
|
|
240
240
|
children: [
|
|
241
241
|
/* @__PURE__ */ r.jsx(
|
|
242
|
-
|
|
242
|
+
s,
|
|
243
243
|
{
|
|
244
244
|
sx: {
|
|
245
245
|
position: "absolute",
|
|
246
246
|
inset: 0,
|
|
247
|
-
background: (
|
|
247
|
+
background: (n) => `linear-gradient(to top, ${n.palette.grey[900]}CC, ${n.palette.grey[900]}66, transparent)`
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
251
|
t.title && /* @__PURE__ */ r.jsx(
|
|
252
|
-
|
|
252
|
+
x,
|
|
253
253
|
{
|
|
254
254
|
variant: "subtitle2",
|
|
255
255
|
sx: {
|
|
@@ -264,7 +264,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
264
264
|
}
|
|
265
265
|
),
|
|
266
266
|
t.desc && /* @__PURE__ */ r.jsx(
|
|
267
|
-
|
|
267
|
+
x,
|
|
268
268
|
{
|
|
269
269
|
variant: "caption",
|
|
270
270
|
sx: {
|
|
@@ -286,7 +286,7 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
286
286
|
}
|
|
287
287
|
)
|
|
288
288
|
},
|
|
289
|
-
t.id
|
|
289
|
+
`${t.id}-${d}`
|
|
290
290
|
))
|
|
291
291
|
}
|
|
292
292
|
)
|
|
@@ -295,6 +295,6 @@ const k = ({ item: s, sx: o, onClick: a }) => {
|
|
|
295
295
|
] });
|
|
296
296
|
};
|
|
297
297
|
export {
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
R as MediaItem,
|
|
299
|
+
F as default
|
|
300
300
|
};
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as r } from "../createSvgIcon-DpVs_nKR.js";
|
|
3
3
|
import { Stack as i, Tooltip as s } from "@mui/material";
|
|
4
4
|
const c = r(/* @__PURE__ */ e.jsx("path", {
|
|
5
5
|
d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as Mt } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { w as yt, L as gt } from "../warning-
|
|
2
|
+
import { w as yt, L as gt } from "../warning-CiVr8tE6.js";
|
|
3
3
|
import { a as Tt } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
4
4
|
import c from "dayjs";
|
|
5
5
|
import { g as F } from "../_commonjsHelpers-B4e78b8K.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as h } from "../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { Stack as j, OutlinedInput as M } from "@mui/material";
|
|
5
5
|
import { usePopover as v } from "../hooks/use-popover.js";
|
|
6
6
|
import S from "../s-chips/s-chips.js";
|
|
7
|
-
import { M as
|
|
8
|
-
import { M as
|
|
7
|
+
import { M as b } from "../Menu-BuktPpzX.js";
|
|
8
|
+
import { M as R } from "../MenuItem-sL2AcofB.js";
|
|
9
9
|
const I = h(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
|
|
11
11
|
}), "UnfoldMore");
|
|
@@ -51,7 +51,7 @@ function P({
|
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
53
|
/* @__PURE__ */ t.jsx(
|
|
54
|
-
|
|
54
|
+
b,
|
|
55
55
|
{
|
|
56
56
|
anchorEl: r.anchorRef.current,
|
|
57
57
|
onClose: r.handleClose,
|
|
@@ -60,7 +60,7 @@ function P({
|
|
|
60
60
|
children: a.map((e) => {
|
|
61
61
|
const s = l.includes(e.value);
|
|
62
62
|
return /* @__PURE__ */ t.jsx(
|
|
63
|
-
|
|
63
|
+
R,
|
|
64
64
|
{
|
|
65
65
|
onClick: () => {
|
|
66
66
|
m(e.value, !s);
|
|
@@ -5,12 +5,12 @@ import le, { useCallback as pe, useState as Re, useMemo as rt, useEffect as ye,
|
|
|
5
5
|
import { g as Cn, c as Zt, a as er } from "../_commonjsHelpers-B4e78b8K.js";
|
|
6
6
|
import mi, { flushSync as kl } from "react-dom";
|
|
7
7
|
import { a as re, _ as ut } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
8
|
-
import { P,
|
|
8
|
+
import { P, l as rs } from "../createTheme-DbdaZ0Ku.js";
|
|
9
9
|
import qd from "@emotion/styled";
|
|
10
10
|
import { s as Zn } from "../emotion-serialize.esm-lgBmL_7o.js";
|
|
11
11
|
import { CacheProvider as Hd, Global as Kd, ThemeContext as Gd, css as Yd, keyframes as ga } from "@emotion/react";
|
|
12
12
|
import Ll from "@emotion/cache";
|
|
13
|
-
import {
|
|
13
|
+
import { a as Xd } from "../TransitionGroup-SToIdl-5.js";
|
|
14
14
|
import { styled as Zd, alpha as ns, outlinedInputClasses as Jd } from "@mui/material";
|
|
15
15
|
import Qd from "../s-form/s-form.js";
|
|
16
16
|
import { brand as jn, gray as as } from "../theme/theme-primitives.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as c } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as i } from "../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { MenuItem as u } from "@mui/material";
|
|
5
5
|
import { usePopover as p } from "../hooks/use-popover.js";
|
|
6
6
|
import m from "../s-text-field/s-text-field.js";
|
|
7
|
-
import { I as f, S as x, F as d } from "../Select-
|
|
8
|
-
import { S as v } from "../Stack-
|
|
9
|
-
import { P as j } from "../Menu-
|
|
7
|
+
import { I as f, S as x, F as d } from "../Select-D2lV25sl.js";
|
|
8
|
+
import { S as v } from "../Stack-CIrlOUXL.js";
|
|
9
|
+
import { P as j } from "../Menu-BuktPpzX.js";
|
|
10
10
|
const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
11
11
|
d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
|
|
12
12
|
}), "Code"), H = i(/* @__PURE__ */ c.jsx("path", {
|
|
13
13
|
d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"
|
|
14
|
-
}), "FormatBold"),
|
|
14
|
+
}), "FormatBold"), b = i(/* @__PURE__ */ c.jsx("path", {
|
|
15
15
|
d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
|
|
16
|
-
}), "FormatItalic"),
|
|
16
|
+
}), "FormatItalic"), L = i(/* @__PURE__ */ c.jsx("path", {
|
|
17
17
|
d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"
|
|
18
18
|
}), "FormatListBulleted"), C = i(/* @__PURE__ */ c.jsx("path", {
|
|
19
19
|
d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
|
|
@@ -88,7 +88,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
|
88
88
|
onClick: () => {
|
|
89
89
|
n.chain().focus().toggleItalic().run();
|
|
90
90
|
},
|
|
91
|
-
children: /* @__PURE__ */ c.jsx(
|
|
91
|
+
children: /* @__PURE__ */ c.jsx(b, {})
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
/* @__PURE__ */ c.jsx(
|
|
@@ -121,7 +121,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
|
121
121
|
onClick: () => {
|
|
122
122
|
n.chain().focus().toggleBulletList().run();
|
|
123
123
|
},
|
|
124
|
-
children: /* @__PURE__ */ c.jsx(
|
|
124
|
+
children: /* @__PURE__ */ c.jsx(L, {})
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
127
|
/* @__PURE__ */ c.jsx(
|
|
@@ -5,7 +5,7 @@ import { Placeholder as m } from "@tiptap/extension-placeholder";
|
|
|
5
5
|
import { useEditor as c, EditorContent as f } from "@tiptap/react";
|
|
6
6
|
import { StarterKit as u } from "@tiptap/starter-kit";
|
|
7
7
|
import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
|
|
8
|
-
import { B as d } from "../Box-
|
|
8
|
+
import { B as d } from "../Box-CJmG1mTu.js";
|
|
9
9
|
const z = ({
|
|
10
10
|
content: r,
|
|
11
11
|
editable: o = !0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as s } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { useState as j } from "react";
|
|
3
|
-
import { TextField as
|
|
3
|
+
import { TextField as b, InputAdornment as h, IconButton as w } from "@mui/material";
|
|
4
4
|
import y from "../s-form/s-form.js";
|
|
5
|
-
import { c } from "../createSvgIcon-
|
|
5
|
+
import { b as c } from "../createSvgIcon-DpVs_nKR.js";
|
|
6
6
|
const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
7
7
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
8
8
|
}), "Visibility"), P = c(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -19,9 +19,18 @@ const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
|
19
19
|
var r;
|
|
20
20
|
const [t, m] = j(!1), n = o === "password", x = () => {
|
|
21
21
|
m(!t);
|
|
22
|
-
}, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(
|
|
22
|
+
}, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(h, { position: "end", children: /* @__PURE__ */ s.jsx(
|
|
23
|
+
w,
|
|
24
|
+
{
|
|
25
|
+
"aria-label": "toggle password visibility",
|
|
26
|
+
onClick: x,
|
|
27
|
+
edge: "end",
|
|
28
|
+
size: "small",
|
|
29
|
+
children: t ? /* @__PURE__ */ s.jsx(P, {}) : /* @__PURE__ */ s.jsx(g, {})
|
|
30
|
+
}
|
|
31
|
+
) }) : void 0;
|
|
23
32
|
return /* @__PURE__ */ s.jsx(y, { label: d, hint: p, error: i, required: a, htmlFor: e, children: /* @__PURE__ */ s.jsx(
|
|
24
|
-
|
|
33
|
+
b,
|
|
25
34
|
{
|
|
26
35
|
fullWidth: !0,
|
|
27
36
|
type: f,
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
3
|
-
import { S as s } from "../Stack-
|
|
4
|
-
import { T as r } from "../Typography-
|
|
2
|
+
import { b as e } from "../createSvgIcon-DpVs_nKR.js";
|
|
3
|
+
import { S as s } from "../Stack-CIrlOUXL.js";
|
|
4
|
+
import { T as r } from "../Typography-D-VP4V1G.js";
|
|
5
5
|
const a = e(/* @__PURE__ */ t.jsx("path", {
|
|
6
6
|
d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2 11.7V16h-4v-2.3C8.48 12.63 7 11.53 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.49-1.51 3.65-3 4.7"
|
|
7
7
|
}), "LightbulbOutline"), l = ({ message: o }) => /* @__PURE__ */ t.jsxs(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as r } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o } from "../../createSvgIcon-DpVs_nKR.js";
|
|
3
3
|
const s = o(/* @__PURE__ */ r.jsx("path", {
|
|
4
4
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
5
|
-
}), "Person"),
|
|
5
|
+
}), "Person"), a = {
|
|
6
6
|
defaultProps: { children: /* @__PURE__ */ r.jsx(s, { sx: { color: "text.primary" } }) },
|
|
7
7
|
styleOverrides: {
|
|
8
8
|
rounded: { borderRadius: 12 }
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as MuiAvatar
|
|
13
13
|
};
|
|
@@ -4,10 +4,10 @@ export declare const MuiButton: {
|
|
|
4
4
|
variant: "contained";
|
|
5
5
|
};
|
|
6
6
|
styleOverrides: {
|
|
7
|
-
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
7
|
+
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
8
8
|
component?: React.ElementType;
|
|
9
9
|
} & Record<string, unknown> & {
|
|
10
|
-
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
10
|
+
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
11
11
|
component?: React.ElementType;
|
|
12
12
|
} & Record<string, unknown>;
|
|
13
13
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { chipClasses as o } from "@mui/material";
|
|
3
3
|
import { gray as r, orange as a, brand as c, purple as e, green as p, red as s, blue as d } from "../theme-primitives.js";
|
|
4
|
-
import { C as b } from "../../Close
|
|
4
|
+
import { C as b } from "../../Close--Sf9yZGB.js";
|
|
5
5
|
const u = {
|
|
6
6
|
defaultProps: {
|
|
7
7
|
size: "small",
|
|
@@ -188,10 +188,10 @@ export declare const components: {
|
|
|
188
188
|
variant: "contained";
|
|
189
189
|
};
|
|
190
190
|
styleOverrides: {
|
|
191
|
-
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
191
|
+
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
192
192
|
component?: React.ElementType;
|
|
193
193
|
} & Record<string, unknown> & {
|
|
194
|
-
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
194
|
+
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
195
195
|
component?: React.ElementType;
|
|
196
196
|
} & Record<string, unknown>;
|
|
197
197
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as i } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as l } from "../../createSvgIcon-DpVs_nKR.js";
|
|
3
3
|
import { brand as r, gray as e } from "../theme-primitives.js";
|
|
4
4
|
import { o as p } from "../../outlinedInputClasses-DM19xjo3.js";
|
|
5
5
|
import { g as d } from "../../generateUtilityClasses-BtVDwGrk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as l } from "../../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { gray as o, brand as s } from "../theme-primitives.js";
|
|
5
5
|
import { t as a } from "../../tabClasses-Bub2PPlp.js";
|
|
6
6
|
import { a as d } from "../../colorManipulator-ep5lERxB.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function f(c) {
|
|
3
|
+
const {
|
|
4
|
+
controlled: n,
|
|
5
|
+
default: r,
|
|
6
|
+
name: o,
|
|
7
|
+
state: l = "value"
|
|
8
|
+
} = c, {
|
|
9
|
+
current: e
|
|
10
|
+
} = t.useRef(n !== void 0), [i, u] = t.useState(r), a = e ? n : i;
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
e !== (n !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${l} state of ${o} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
14
|
+
`));
|
|
15
|
+
}, [l, o, n]);
|
|
16
|
+
const {
|
|
17
|
+
current: s
|
|
18
|
+
} = t.useRef(r);
|
|
19
|
+
t.useEffect(() => {
|
|
20
|
+
!e && !Object.is(s, r) && console.error([`MUI: A component is changing the default ${l} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
21
|
+
`));
|
|
22
|
+
}, [JSON.stringify(r)]);
|
|
23
|
+
}
|
|
24
|
+
const d = t.useCallback((s) => {
|
|
25
|
+
e || u(s);
|
|
26
|
+
}, []);
|
|
27
|
+
return [a, d];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
f as u
|
|
31
|
+
};
|