@solostylist/ui-kit 1.0.223 → 1.0.225
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/{checkbox-PlpiwQNi.js → checkbox-B95Vlykq.js} +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
- package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-cOCqPTUS.js} +98 -98
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-ox4Sj6xh.js → s-chat-message-Cb1npIQO.js} +1 -1
- package/dist/s-countdown/index.d.ts +2 -2
- package/dist/s-countdown/index.js +1 -1
- package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
- package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-BkZIEZoz.js +634 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
- package/dist/s-dialog/s-dialog.d.ts +3 -3
- package/dist/s-dialog/s-dialog.js +6 -5
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +7 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.d.ts +1 -1
- package/dist/s-glow-button/s-glow-button.js +18 -19
- package/dist/s-image-modal/index.js +1 -1
- package/dist/s-image-modal/s-image-modal.d.ts +6 -0
- package/dist/s-image-modal/s-image-modal.js +1 -1
- package/dist/{s-image-modal-DA3DBNbv.js → s-image-modal-Za71QD3d.js} +43 -43
- package/dist/s-nav-item/index.d.ts +0 -1
- package/dist/s-nav-item/index.js +1 -2
- package/dist/s-nav-items/index.d.ts +2 -0
- package/dist/s-nav-items/index.js +2 -0
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +3 -3
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-D4FBfBPF.js → s-review-DjvDY-h4.js} +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.d.ts +2 -0
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-b8CHbeCf.js → s-select-B-dEcddK.js} +20 -20
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +30 -31
- package/dist/{s-text-editor-toolbar-CCK7yyNS.js → s-text-editor-toolbar-DP0MkICo.js} +1 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +3 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-Ck5QMhYI.js → s-text-field-GqcwXwta.js} +11 -11
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-THHj5mFp.js → s-theme-demo-BpeyFRKt.js} +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
- package/dist/s-theme-provider/s-theme-provider.js +32 -26
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DaZ2wT09.js} +142 -143
- package/dist/theme/components/accordion-summary.d.ts +385 -385
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.d.ts +1524 -1524
- package/dist/theme/components/alert.js +15 -22
- package/dist/theme/components/app-bar.d.ts +2 -2
- package/dist/theme/components/button.d.ts +2282 -2282
- package/dist/theme/components/button.js +40 -42
- package/dist/theme/components/card.d.ts +767 -767
- package/dist/theme/components/card.js +1 -1
- package/dist/theme/components/checkbox.d.ts +381 -381
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +65 -52
- package/dist/theme/components/components.js +3 -3
- package/dist/theme/components/form-label.d.ts +2 -2
- package/dist/theme/components/icon-button.d.ts +2294 -2294
- package/dist/theme/components/icon-button.js +31 -29
- package/dist/theme/components/linear-progress.d.ts +382 -382
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +1 -1
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/outlined-input.js +1 -1
- package/dist/theme/components/pagination-item.d.ts +385 -385
- package/dist/theme/components/step-icon.d.ts +383 -383
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/step-label.d.ts +384 -384
- package/dist/theme/components/tab.d.ts +384 -384
- package/dist/theme/components/tabs.d.ts +386 -386
- package/dist/theme/components/toggle-button-group.d.ts +383 -383
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +385 -385
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/theme-primitives.d.ts +132 -0
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/theme/utils.d.ts +11 -0
- package/dist/theme/utils.js +4 -0
- package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
- package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
- package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
- package/package.json +1 -1
- package/dist/s-date-picker-Mynq297P.js +0 -634
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./createTheme-Bnw5w28O.js";
|
|
2
|
-
import { o as t, s as n } from "./theme-primitives-
|
|
2
|
+
import { o as t, s as n } from "./theme-primitives-D2vHHGiX.js";
|
|
3
3
|
import { t as r } from "./createSvgIcon-BdNZIlKS.js";
|
|
4
4
|
import { t as i } from "./checkboxClasses-DSyvUOsN.js";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface TimeLeft {
|
|
|
8
8
|
seconds: number;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Props for
|
|
11
|
+
* Props for useCountdown hook
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface UseCountdownProps {
|
|
14
14
|
/** Target date timestamp in milliseconds */
|
|
15
15
|
expireDate: number;
|
|
16
16
|
/** Callback fired when countdown reaches zero */
|
|
@@ -27,9 +27,9 @@ export interface UseCountDownProps {
|
|
|
27
27
|
autoStart?: boolean;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Return type for
|
|
30
|
+
* Return type for useCountdown hook
|
|
31
31
|
*/
|
|
32
|
-
export interface
|
|
32
|
+
export interface UseCountdownReturn {
|
|
33
33
|
/** Current time left */
|
|
34
34
|
timeLeft: TimeLeft;
|
|
35
35
|
/** Whether the countdown has expired */
|
|
@@ -64,8 +64,8 @@ export interface UseCountDownReturn {
|
|
|
64
64
|
* - Manual start/stop controls
|
|
65
65
|
* - Expiration detection
|
|
66
66
|
*
|
|
67
|
-
* @param props -
|
|
68
|
-
* @returns
|
|
67
|
+
* @param props - UseCountdownProps
|
|
68
|
+
* @returns UseCountdownReturn - Hook return value with time data and controls
|
|
69
69
|
*/
|
|
70
|
-
declare const
|
|
71
|
-
export default
|
|
70
|
+
declare const useCountdown: ({ expireDate, onComplete, onTick, onStart, paused, interval, autoStart, }: UseCountdownProps) => UseCountdownReturn;
|
|
71
|
+
export default useCountdown;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-cOCqPTUS.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-cOCqPTUS.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { SIconButton as
|
|
7
|
-
import { SFileIcon as
|
|
8
|
-
import { forwardRef as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { Box as
|
|
11
|
-
import
|
|
1
|
+
import { tint as e } from "./theme/utils.js";
|
|
2
|
+
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
+
import { t as n } from "./ArrowUpward-BMKLosZj.js";
|
|
4
|
+
import { t as r } from "./Close-Bj2HYB9Q.js";
|
|
5
|
+
import { t as i } from "./s-text-field-GqcwXwta.js";
|
|
6
|
+
import { SIconButton as a } from "./s-icon-button/s-icon-button.js";
|
|
7
|
+
import { SFileIcon as o } from "./s-file-icon/s-file-icon.js";
|
|
8
|
+
import { forwardRef as s, useEffect as c, useId as l, useState as u } from "react";
|
|
9
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { Box as m, ClickAwayListener as h, Popper as g, Typography as _, outlinedInputClasses as v } from "@mui/material";
|
|
11
|
+
import y from "emoji-picker-react";
|
|
12
12
|
//#region ../../node_modules/@mui/icons-material/AttachFile.mjs
|
|
13
|
-
var
|
|
14
|
-
let [
|
|
13
|
+
var b = t(/* @__PURE__ */ f("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z" }), "AttachFile"), x = t(/* @__PURE__ */ f("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5" }), "EmojiEmotions"), S = s(({ onSubmit: t, onFileSelect: s, disabled: S, acceptedFileTypes: C, maxFileSize: w, hideEmojiPicker: T, hideFileAttachment: E, ...D }, O) => {
|
|
14
|
+
let [k, A] = u(""), [j, M] = u([]), [N, P] = u(/* @__PURE__ */ new Map()), [F, I] = u(!1), [L, R] = u(null), z = l(), B = (e) => e.type.startsWith("image/"), V = (e) => {
|
|
15
15
|
let t = `${e.name}-${e.size}-${e.lastModified}`;
|
|
16
|
-
if (
|
|
17
|
-
if (
|
|
16
|
+
if (N.has(t)) return N.get(t);
|
|
17
|
+
if (B(e)) {
|
|
18
18
|
let n = URL.createObjectURL(e);
|
|
19
|
-
return
|
|
19
|
+
return P((e) => new Map(e).set(t, n)), n;
|
|
20
20
|
}
|
|
21
21
|
return "";
|
|
22
|
+
}, H = (e) => {
|
|
23
|
+
A(e.target.value);
|
|
24
|
+
}, U = (e) => {
|
|
25
|
+
A((t) => t + e.emoji), I(!1), R(null);
|
|
22
26
|
}, W = (e) => {
|
|
23
|
-
|
|
24
|
-
}, G = (
|
|
25
|
-
|
|
27
|
+
R(e.currentTarget), I(!F);
|
|
28
|
+
}, G = () => {
|
|
29
|
+
S || k.trim().length === 0 && j.length === 0 || (t?.(k, j), A(""), N.forEach((e) => URL.revokeObjectURL(e)), P(/* @__PURE__ */ new Map()), M([]));
|
|
26
30
|
}, K = (e) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
let t = N[e];
|
|
35
|
-
if (t && H(t)) {
|
|
36
|
-
let e = `${t.name}-${t.size}-${t.lastModified}`, n = F.get(e);
|
|
37
|
-
n && (URL.revokeObjectURL(n), I((t) => {
|
|
31
|
+
let t = Array.from(e.target.files ?? []).filter((e) => !(w && e.size > w));
|
|
32
|
+
M((e) => [...e, ...t]), s?.(t), e.target.value = "";
|
|
33
|
+
}, q = (e) => {
|
|
34
|
+
let t = j[e];
|
|
35
|
+
if (t && B(t)) {
|
|
36
|
+
let e = `${t.name}-${t.size}-${t.lastModified}`, n = N.get(e);
|
|
37
|
+
n && (URL.revokeObjectURL(n), P((t) => {
|
|
38
38
|
let n = new Map(t);
|
|
39
39
|
return n.delete(e), n;
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
}, X = (e) => {
|
|
44
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), q());
|
|
42
|
+
M((t) => t.filter((t, n) => n !== e));
|
|
45
43
|
};
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
sx: {
|
|
44
|
+
return c(() => () => {
|
|
45
|
+
N.forEach((e) => URL.revokeObjectURL(e));
|
|
46
|
+
}, [N]), /* @__PURE__ */ p(m, {
|
|
47
|
+
sx: (t) => ({
|
|
50
48
|
border: "1px solid",
|
|
51
49
|
borderColor: "divider",
|
|
52
50
|
borderRadius: 2,
|
|
53
51
|
padding: "8px 12px",
|
|
54
52
|
transition: "border 120ms ease-in",
|
|
55
|
-
"&:hover": { borderColor: t[500] },
|
|
53
|
+
"&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
|
|
56
54
|
"&:focus-within": {
|
|
57
|
-
outline: `3px solid ${
|
|
58
|
-
borderColor:
|
|
55
|
+
outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
|
|
56
|
+
borderColor: (t.vars ?? t).palette.primary[400]
|
|
59
57
|
},
|
|
60
|
-
...
|
|
58
|
+
...S && {
|
|
61
59
|
opacity: .5,
|
|
62
60
|
pointerEvents: "none"
|
|
63
61
|
}
|
|
64
|
-
},
|
|
62
|
+
}),
|
|
65
63
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ f(i, {
|
|
67
65
|
placeholder: "Enter your message here...",
|
|
68
|
-
disabled:
|
|
69
|
-
value:
|
|
70
|
-
onChange:
|
|
71
|
-
onKeyDown:
|
|
66
|
+
disabled: S,
|
|
67
|
+
value: k,
|
|
68
|
+
onChange: H,
|
|
69
|
+
onKeyDown: (e) => {
|
|
70
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), G());
|
|
71
|
+
},
|
|
72
72
|
multiline: !0,
|
|
73
73
|
minRows: 1,
|
|
74
74
|
maxRows: 10,
|
|
75
75
|
variant: "outlined",
|
|
76
|
-
inputRef:
|
|
76
|
+
inputRef: O,
|
|
77
77
|
slotProps: { input: { sx: {
|
|
78
78
|
height: "100%",
|
|
79
79
|
backgroundColor: "transparent",
|
|
80
80
|
border: "none",
|
|
81
81
|
padding: 0,
|
|
82
|
-
[`&.${
|
|
82
|
+
[`&.${v.focused}`]: { outline: "none" },
|
|
83
83
|
"& fieldset": { border: "none" },
|
|
84
84
|
"&:hover fieldset": { border: "none" },
|
|
85
85
|
"&.Mui-focused fieldset": { border: "none" }
|
|
86
86
|
} } },
|
|
87
|
-
...
|
|
87
|
+
...D
|
|
88
88
|
}),
|
|
89
|
-
|
|
89
|
+
j.length > 0 && /* @__PURE__ */ f(m, {
|
|
90
90
|
sx: { mt: 1 },
|
|
91
|
-
children:
|
|
92
|
-
let n =
|
|
93
|
-
return /* @__PURE__ */ m
|
|
91
|
+
children: j.map((e, t) => {
|
|
92
|
+
let n = B(e), i = e.name.split(".").pop();
|
|
93
|
+
return /* @__PURE__ */ p(m, {
|
|
94
94
|
sx: {
|
|
95
95
|
display: "flex",
|
|
96
96
|
alignItems: "center",
|
|
@@ -102,15 +102,15 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
102
102
|
p: 1,
|
|
103
103
|
mb: .5
|
|
104
104
|
},
|
|
105
|
-
children: [/* @__PURE__ */ m
|
|
105
|
+
children: [/* @__PURE__ */ p(m, {
|
|
106
106
|
sx: {
|
|
107
107
|
display: "flex",
|
|
108
108
|
alignItems: "center",
|
|
109
109
|
gap: 1
|
|
110
110
|
},
|
|
111
|
-
children: [n ? /* @__PURE__ */
|
|
111
|
+
children: [n ? /* @__PURE__ */ f(m, {
|
|
112
112
|
component: "img",
|
|
113
|
-
src:
|
|
113
|
+
src: V(e),
|
|
114
114
|
alt: e.name,
|
|
115
115
|
sx: {
|
|
116
116
|
width: 40,
|
|
@@ -120,14 +120,14 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
120
120
|
border: "1px solid",
|
|
121
121
|
borderColor: "divider"
|
|
122
122
|
}
|
|
123
|
-
}) : /* @__PURE__ */
|
|
123
|
+
}) : /* @__PURE__ */ f(o, { extension: i }), /* @__PURE__ */ p(m, {
|
|
124
124
|
sx: {
|
|
125
125
|
display: "flex",
|
|
126
126
|
flexDirection: "row",
|
|
127
127
|
alignItems: "center",
|
|
128
128
|
gap: 1
|
|
129
129
|
},
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ f(_, {
|
|
131
131
|
variant: "subtitle2",
|
|
132
132
|
sx: {
|
|
133
133
|
textOverflow: "ellipsis",
|
|
@@ -135,7 +135,7 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
135
135
|
whiteSpace: "nowrap"
|
|
136
136
|
},
|
|
137
137
|
children: e.name
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ f("div", { children: /* @__PURE__ */ p(_, {
|
|
139
139
|
variant: "caption",
|
|
140
140
|
children: [
|
|
141
141
|
"(",
|
|
@@ -144,66 +144,66 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
144
144
|
]
|
|
145
145
|
}) })]
|
|
146
146
|
})]
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
onClick: () =>
|
|
147
|
+
}), /* @__PURE__ */ f(a, {
|
|
148
|
+
onClick: () => q(t),
|
|
149
149
|
sx: {
|
|
150
150
|
minWidth: "auto",
|
|
151
151
|
p: .5
|
|
152
152
|
},
|
|
153
|
-
children: /* @__PURE__ */
|
|
153
|
+
children: /* @__PURE__ */ f(r, {})
|
|
154
154
|
})]
|
|
155
155
|
}, `${e.name}-${t}`);
|
|
156
156
|
})
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */ m
|
|
158
|
+
/* @__PURE__ */ p(m, {
|
|
159
159
|
sx: {
|
|
160
160
|
display: "flex",
|
|
161
161
|
justifyContent: "space-between",
|
|
162
162
|
alignItems: "center",
|
|
163
163
|
mt: 1
|
|
164
164
|
},
|
|
165
|
-
children: [/* @__PURE__ */ m
|
|
165
|
+
children: [/* @__PURE__ */ p(m, {
|
|
166
166
|
sx: {
|
|
167
167
|
display: "flex",
|
|
168
168
|
gap: 1
|
|
169
169
|
},
|
|
170
|
-
children: [!
|
|
170
|
+
children: [!E && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("input", {
|
|
171
171
|
type: "file",
|
|
172
172
|
multiple: !0,
|
|
173
|
-
accept:
|
|
174
|
-
onChange:
|
|
173
|
+
accept: C,
|
|
174
|
+
onChange: K,
|
|
175
175
|
style: { display: "none" },
|
|
176
|
-
id: `file-attachment-input-${
|
|
177
|
-
disabled:
|
|
178
|
-
}), /* @__PURE__ */
|
|
179
|
-
htmlFor: `file-attachment-input-${
|
|
180
|
-
children: /* @__PURE__ */
|
|
176
|
+
id: `file-attachment-input-${z}`,
|
|
177
|
+
disabled: S
|
|
178
|
+
}), /* @__PURE__ */ f("label", {
|
|
179
|
+
htmlFor: `file-attachment-input-${z}`,
|
|
180
|
+
children: /* @__PURE__ */ f(a, {
|
|
181
181
|
component: "span",
|
|
182
|
-
disabled:
|
|
183
|
-
children: /* @__PURE__ */
|
|
182
|
+
disabled: S,
|
|
183
|
+
children: /* @__PURE__ */ f(b, {})
|
|
184
184
|
})
|
|
185
|
-
})] }), !
|
|
186
|
-
onClick:
|
|
187
|
-
disabled:
|
|
188
|
-
children: /* @__PURE__ */
|
|
185
|
+
})] }), !T && /* @__PURE__ */ f(a, {
|
|
186
|
+
onClick: W,
|
|
187
|
+
disabled: S,
|
|
188
|
+
children: /* @__PURE__ */ f(x, {})
|
|
189
189
|
})]
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
onClick:
|
|
192
|
-
disabled:
|
|
193
|
-
children: /* @__PURE__ */
|
|
190
|
+
}), /* @__PURE__ */ f(a, {
|
|
191
|
+
onClick: G,
|
|
192
|
+
disabled: S,
|
|
193
|
+
children: /* @__PURE__ */ f(n, {})
|
|
194
194
|
})]
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
open:
|
|
198
|
-
anchorEl:
|
|
196
|
+
/* @__PURE__ */ f(g, {
|
|
197
|
+
open: F,
|
|
198
|
+
anchorEl: L,
|
|
199
199
|
placement: "top-start",
|
|
200
200
|
sx: { zIndex: 1300 },
|
|
201
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ f(h, {
|
|
202
202
|
onClickAway: () => {
|
|
203
|
-
|
|
203
|
+
I(!1), R(null);
|
|
204
204
|
},
|
|
205
|
-
children: /* @__PURE__ */
|
|
206
|
-
sx: {
|
|
205
|
+
children: /* @__PURE__ */ f(m, {
|
|
206
|
+
sx: (t) => ({
|
|
207
207
|
border: "1px solid",
|
|
208
208
|
borderColor: "divider",
|
|
209
209
|
borderRadius: 1,
|
|
@@ -227,10 +227,10 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
227
227
|
fontSize: "1rem",
|
|
228
228
|
padding: "8px 12px",
|
|
229
229
|
transition: "border 120ms ease-in",
|
|
230
|
-
"&:hover": { borderColor: t[500] },
|
|
230
|
+
"&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
|
|
231
231
|
"&:focus": {
|
|
232
|
-
outline: `3px solid ${
|
|
233
|
-
borderColor:
|
|
232
|
+
outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
|
|
233
|
+
borderColor: (t.vars ?? t).palette.primary[400]
|
|
234
234
|
},
|
|
235
235
|
"&::placeholder": { color: "text.secondary" }
|
|
236
236
|
},
|
|
@@ -279,9 +279,9 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
279
279
|
transition: "all 0.2s ease",
|
|
280
280
|
"&:hover": { transform: "scale(1.1)" }
|
|
281
281
|
}
|
|
282
|
-
},
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
onEmojiClick:
|
|
282
|
+
}),
|
|
283
|
+
children: /* @__PURE__ */ f(y, {
|
|
284
|
+
onEmojiClick: U,
|
|
285
285
|
width: 300,
|
|
286
286
|
height: 400,
|
|
287
287
|
searchDisabled: !1,
|
|
@@ -294,6 +294,6 @@ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
294
294
|
]
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
|
-
|
|
297
|
+
S.displayName = "SChatInput";
|
|
298
298
|
//#endregion
|
|
299
|
-
export {
|
|
299
|
+
export { S as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-Cb1npIQO.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-Cb1npIQO.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, r as t } from "./utils-B5Rl6Zwv.js";
|
|
2
2
|
import { t as n } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { n as r } from "./s-image-modal-
|
|
3
|
+
import { n as r } from "./s-image-modal-Za71QD3d.js";
|
|
4
4
|
import { t as i } from "./Download-BhSXOhCI.js";
|
|
5
5
|
import a from "./s-lazy-image/s-lazy-image.js";
|
|
6
6
|
import { SSkeleton as o } from "./s-skeleton/s-skeleton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as SCountdown } from './s-
|
|
2
|
-
export type {
|
|
1
|
+
export { default as SCountdown } from './s-countdown';
|
|
2
|
+
export type { SCountdownProps } from './s-countdown';
|
|
3
3
|
export { SCountBox } from './s-count-box';
|
|
4
4
|
export type { SCountBoxProps } from './s-count-box';
|
|
@@ -3,22 +3,22 @@ import { SxProps, Theme } from '@mui/material';
|
|
|
3
3
|
/**
|
|
4
4
|
* Props interface for SCountdown component
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export interface
|
|
6
|
+
export type SCountdownSize = 'small' | 'medium' | 'large';
|
|
7
|
+
export type SCountdownColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
8
|
+
export type SCountdownLayout = 'horizontal' | 'vertical' | 'grid';
|
|
9
|
+
export type SCountdownAnimation = 'none' | 'fade' | 'slide';
|
|
10
|
+
export type SCountdownDigitFormat = 'default' | 'padded';
|
|
11
|
+
export interface SCountdownProps {
|
|
12
12
|
/** Target date timestamp in milliseconds (from Date.getTime()) */
|
|
13
13
|
expireDate: number;
|
|
14
14
|
/** Size variant for all count boxes */
|
|
15
|
-
size?:
|
|
15
|
+
size?: SCountdownSize;
|
|
16
16
|
/** Color theme for the countdown */
|
|
17
|
-
color?:
|
|
17
|
+
color?: SCountdownColor;
|
|
18
18
|
/** Layout orientation */
|
|
19
|
-
layout?:
|
|
19
|
+
layout?: SCountdownLayout;
|
|
20
20
|
/** Animation type for value changes */
|
|
21
|
-
animation?:
|
|
21
|
+
animation?: SCountdownAnimation;
|
|
22
22
|
/** Whether to show separators between units */
|
|
23
23
|
showSeparators?: boolean;
|
|
24
24
|
/** Custom separator element */
|
|
@@ -38,7 +38,7 @@ export interface SCountDownProps {
|
|
|
38
38
|
seconds?: string;
|
|
39
39
|
};
|
|
40
40
|
/** Format for displaying digits */
|
|
41
|
-
digitFormat?:
|
|
41
|
+
digitFormat?: SCountdownDigitFormat;
|
|
42
42
|
/** Callback fired when countdown reaches zero */
|
|
43
43
|
onComplete?: () => void;
|
|
44
44
|
/** Callback fired on each tick (every second) */
|
|
@@ -62,15 +62,15 @@ export interface SCountDownProps {
|
|
|
62
62
|
paused?: boolean;
|
|
63
63
|
/** Responsive breakpoints for size changes */
|
|
64
64
|
responsive?: {
|
|
65
|
-
xs?:
|
|
66
|
-
sm?:
|
|
67
|
-
md?:
|
|
68
|
-
lg?:
|
|
69
|
-
xl?:
|
|
65
|
+
xs?: SCountdownSize;
|
|
66
|
+
sm?: SCountdownSize;
|
|
67
|
+
md?: SCountdownSize;
|
|
68
|
+
lg?: SCountdownSize;
|
|
69
|
+
xl?: SCountdownSize;
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
export declare const SCountdown: {
|
|
73
|
-
({ expireDate, size, color, layout, animation, showSeparators, separator, units, labels, digitFormat, onComplete, onTick, onStart, completedText, autoHideZeroUnits, sx, "aria-label": ariaLabel, paused, responsive, }:
|
|
73
|
+
({ expireDate, size, color, layout, animation, showSeparators, separator, units, labels, digitFormat, onComplete, onTick, onStart, completedText, autoHideZeroUnits, sx, "aria-label": ariaLabel, paused, responsive, }: SCountdownProps): import("react/jsx-runtime").JSX.Element;
|
|
74
74
|
displayName: string;
|
|
75
75
|
};
|
|
76
76
|
export default SCountdown;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SFlexBox as e } from "../s-flex-box/s-flex-box.js";
|
|
2
|
-
import t from "../hooks/use-
|
|
2
|
+
import t from "../hooks/use-countdown.js";
|
|
3
3
|
import { SCountBox as n } from "./s-count-box.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
import { Typography as i, useMediaQuery as a, useTheme as o } from "@mui/material";
|
|
7
|
-
//#region lib/s-countdown/s-
|
|
7
|
+
//#region lib/s-countdown/s-countdown.tsx
|
|
8
8
|
function s(e, t, n) {
|
|
9
9
|
return e ? n.isXs ? e.xs ?? t : n.isSm ? e.sm ?? t : n.isMd ? e.md ?? t : n.isLg ? e.lg ?? t : e.xl ?? t : t;
|
|
10
10
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-data-table-
|
|
1
|
+
import { t as e } from "../s-data-table-TrCdKq9r.js";
|
|
2
2
|
export { e as SDataTable, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-data-table-
|
|
1
|
+
import { t as e } from "../s-data-table-TrCdKq9r.js";
|
|
2
2
|
export { e as SDataTable, e as default };
|
|
@@ -810,7 +810,7 @@ function be(e, t, n) {
|
|
|
810
810
|
return e.formatter ? e.formatter(t, n) : e.field ? t[e.field] : null;
|
|
811
811
|
}
|
|
812
812
|
var xe = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onDeselectOne: a, onSelectOne: o, onSelectAll: s, onSort: l, rows: u, selectable: d, selected: f, sortBy: p, sortDirection: m, uniqueRowId: h, ...g }) => {
|
|
813
|
-
let _ = (f?.size ?? 0) > 0 && (f?.size ?? 0) < u.length, v = u.length > 0 && f?.size === u.length, b =
|
|
813
|
+
let _ = (f?.size ?? 0) > 0 && (f?.size ?? 0) < u.length, v = u.length > 0 && f?.size === u.length, b = (e, t) => `${String(e.field ?? e.name ?? "column")}-${t}`, x = (e) => {
|
|
814
814
|
let t = $(e);
|
|
815
815
|
l?.(t, p === t && m === "asc" ? "desc" : "asc");
|
|
816
816
|
};
|
|
@@ -840,11 +840,11 @@ var xe = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onD
|
|
|
840
840
|
v ? i?.(e) : s?.(e);
|
|
841
841
|
}
|
|
842
842
|
})
|
|
843
|
-
}) : null, e.map((e) => {
|
|
844
|
-
let
|
|
843
|
+
}) : null, e.map((e, t) => {
|
|
844
|
+
let n = e.sortable && p === $(e), r = n ? m === "asc" ? "ascending" : "descending" : void 0, i = e.hideName ? null : e.name;
|
|
845
845
|
return /* @__PURE__ */ w(q, {
|
|
846
|
-
"aria-sort":
|
|
847
|
-
sortDirection:
|
|
846
|
+
"aria-sort": r,
|
|
847
|
+
sortDirection: n ? m : !1,
|
|
848
848
|
sx: {
|
|
849
849
|
width: e.width,
|
|
850
850
|
minWidth: e.width,
|
|
@@ -871,10 +871,10 @@ var xe = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onD
|
|
|
871
871
|
width: "100%",
|
|
872
872
|
cursor: "pointer",
|
|
873
873
|
userSelect: "none",
|
|
874
|
-
color:
|
|
875
|
-
"&:hover .s-sort-icon": { color:
|
|
874
|
+
color: n ? "primary.main" : "inherit",
|
|
875
|
+
"&:hover .s-sort-icon": { color: n ? "primary.main" : "text.secondary" }
|
|
876
876
|
},
|
|
877
|
-
children: [
|
|
877
|
+
children: [i, n ? w(m === "asc" ? y : D, {
|
|
878
878
|
className: "s-sort-icon",
|
|
879
879
|
fontSize: "small",
|
|
880
880
|
sx: { color: "primary.main" }
|
|
@@ -883,8 +883,8 @@ var xe = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onD
|
|
|
883
883
|
fontSize: "small",
|
|
884
884
|
sx: { color: "text.disabled" }
|
|
885
885
|
})]
|
|
886
|
-
}) :
|
|
887
|
-
}, e
|
|
886
|
+
}) : i
|
|
887
|
+
}, b(e, t));
|
|
888
888
|
})] })
|
|
889
889
|
}), /* @__PURE__ */ w(K, { children: u.length ? u.map((t, i) => {
|
|
890
890
|
let s = t.id ?? h?.(t), c = s ? f?.has(s) : !1;
|
|
@@ -906,10 +906,10 @@ var xe = ({ columns: e, hideHead: t, hover: n, onClick: r, onDeselectAll: i, onD
|
|
|
906
906
|
r && e.stopPropagation();
|
|
907
907
|
}
|
|
908
908
|
})
|
|
909
|
-
}) : null, e.map((e) => /* @__PURE__ */ w(q, {
|
|
909
|
+
}) : null, e.map((e, n) => /* @__PURE__ */ w(q, {
|
|
910
910
|
sx: { ...e.align && { textAlign: e.align } },
|
|
911
911
|
children: be(e, t, i)
|
|
912
|
-
}, e
|
|
912
|
+
}, b(e, n)))]
|
|
913
913
|
}, s ?? i);
|
|
914
914
|
}) : /* @__PURE__ */ w(Q, { children: /* @__PURE__ */ w(q, {
|
|
915
915
|
align: "center",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-date-picker-
|
|
1
|
+
import { t as e } from "../s-date-picker-BkZIEZoz.js";
|
|
2
2
|
export { e as SDatePicker, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-date-picker-
|
|
1
|
+
import { t as e } from "../s-date-picker-BkZIEZoz.js";
|
|
2
2
|
export { e as SDatePicker, e as default };
|