@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.
Files changed (109) hide show
  1. package/dist/{checkbox-PlpiwQNi.js → checkbox-B95Vlykq.js} +1 -1
  2. package/dist/hooks/index.d.ts +1 -1
  3. package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
  4. package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
  5. package/dist/s-chat-input/index.js +1 -1
  6. package/dist/s-chat-input/s-chat-input.js +1 -1
  7. package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-cOCqPTUS.js} +98 -98
  8. package/dist/s-chat-message/index.js +1 -1
  9. package/dist/s-chat-message/s-chat-message.js +1 -1
  10. package/dist/{s-chat-message-ox4Sj6xh.js → s-chat-message-Cb1npIQO.js} +1 -1
  11. package/dist/s-countdown/index.d.ts +2 -2
  12. package/dist/s-countdown/index.js +1 -1
  13. package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
  14. package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
  15. package/dist/s-data-table/index.js +1 -1
  16. package/dist/s-data-table/s-data-table.js +1 -1
  17. package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
  18. package/dist/s-date-picker/index.js +1 -1
  19. package/dist/s-date-picker/s-date-picker.js +1 -1
  20. package/dist/s-date-picker-BkZIEZoz.js +634 -0
  21. package/dist/s-datetime-picker/index.js +1 -1
  22. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  23. package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
  24. package/dist/s-dialog/s-dialog.d.ts +3 -3
  25. package/dist/s-dialog/s-dialog.js +6 -5
  26. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +7 -1
  27. package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
  28. package/dist/s-gallery/s-gallery.js +1 -1
  29. package/dist/s-glow-button/s-glow-button.d.ts +1 -1
  30. package/dist/s-glow-button/s-glow-button.js +18 -19
  31. package/dist/s-image-modal/index.js +1 -1
  32. package/dist/s-image-modal/s-image-modal.d.ts +6 -0
  33. package/dist/s-image-modal/s-image-modal.js +1 -1
  34. package/dist/{s-image-modal-DA3DBNbv.js → s-image-modal-Za71QD3d.js} +43 -43
  35. package/dist/s-nav-item/index.d.ts +0 -1
  36. package/dist/s-nav-item/index.js +1 -2
  37. package/dist/s-nav-items/index.d.ts +2 -0
  38. package/dist/s-nav-items/index.js +2 -0
  39. package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
  40. package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +3 -3
  41. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
  42. package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
  43. package/dist/s-review/index.js +1 -1
  44. package/dist/s-review/s-review.js +1 -1
  45. package/dist/{s-review-D4FBfBPF.js → s-review-DjvDY-h4.js} +1 -1
  46. package/dist/s-select/index.js +1 -1
  47. package/dist/s-select/s-select.d.ts +2 -0
  48. package/dist/s-select/s-select.js +1 -1
  49. package/dist/{s-select-b8CHbeCf.js → s-select-B-dEcddK.js} +20 -20
  50. package/dist/s-stripe/s-stripe.js +1 -1
  51. package/dist/s-text-editor/index.js +1 -1
  52. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  53. package/dist/s-text-editor/s-text-editor.js +30 -31
  54. package/dist/{s-text-editor-toolbar-CCK7yyNS.js → s-text-editor-toolbar-DP0MkICo.js} +1 -1
  55. package/dist/s-text-field/index.js +1 -1
  56. package/dist/s-text-field/s-text-field.d.ts +3 -1
  57. package/dist/s-text-field/s-text-field.js +1 -1
  58. package/dist/{s-text-field-Ck5QMhYI.js → s-text-field-GqcwXwta.js} +11 -11
  59. package/dist/s-theme-demo/index.js +1 -1
  60. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  61. package/dist/{s-theme-demo-THHj5mFp.js → s-theme-demo-BpeyFRKt.js} +1 -1
  62. package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
  63. package/dist/s-theme-provider/s-theme-provider.js +32 -26
  64. package/dist/s-tool-bar/index.js +1 -1
  65. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  66. package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DaZ2wT09.js} +142 -143
  67. package/dist/theme/components/accordion-summary.d.ts +385 -385
  68. package/dist/theme/components/accordion-summary.js +1 -1
  69. package/dist/theme/components/accordion.d.ts +2 -2
  70. package/dist/theme/components/alert.d.ts +1524 -1524
  71. package/dist/theme/components/alert.js +15 -22
  72. package/dist/theme/components/app-bar.d.ts +2 -2
  73. package/dist/theme/components/button.d.ts +2282 -2282
  74. package/dist/theme/components/button.js +40 -42
  75. package/dist/theme/components/card.d.ts +767 -767
  76. package/dist/theme/components/card.js +1 -1
  77. package/dist/theme/components/checkbox.d.ts +381 -381
  78. package/dist/theme/components/checkbox.js +1 -1
  79. package/dist/theme/components/chip.js +65 -52
  80. package/dist/theme/components/components.js +3 -3
  81. package/dist/theme/components/form-label.d.ts +2 -2
  82. package/dist/theme/components/icon-button.d.ts +2294 -2294
  83. package/dist/theme/components/icon-button.js +31 -29
  84. package/dist/theme/components/linear-progress.d.ts +382 -382
  85. package/dist/theme/components/linear-progress.js +1 -1
  86. package/dist/theme/components/link.d.ts +2 -2
  87. package/dist/theme/components/link.js +1 -1
  88. package/dist/theme/components/list-item-button.d.ts +2 -2
  89. package/dist/theme/components/list-item.d.ts +2 -2
  90. package/dist/theme/components/outlined-input.js +1 -1
  91. package/dist/theme/components/pagination-item.d.ts +385 -385
  92. package/dist/theme/components/step-icon.d.ts +383 -383
  93. package/dist/theme/components/step-icon.js +1 -1
  94. package/dist/theme/components/step-label.d.ts +384 -384
  95. package/dist/theme/components/tab.d.ts +384 -384
  96. package/dist/theme/components/tabs.d.ts +386 -386
  97. package/dist/theme/components/toggle-button-group.d.ts +383 -383
  98. package/dist/theme/components/toggle-button-group.js +1 -1
  99. package/dist/theme/components/toggle-button.d.ts +385 -385
  100. package/dist/theme/components/toggle-button.js +1 -1
  101. package/dist/theme/theme-primitives.d.ts +132 -0
  102. package/dist/theme/theme-primitives.js +1 -1
  103. package/dist/theme/utils.d.ts +11 -0
  104. package/dist/theme/utils.js +4 -0
  105. package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
  106. package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
  107. package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
  108. package/package.json +1 -1
  109. 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-OrQ-xFJR.js";
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";
@@ -1,5 +1,5 @@
1
1
  export * from './use-dialog';
2
2
  export * from './use-popover';
3
- export * from './use-count-down';
3
+ export * from './use-countdown';
4
4
  export * from './use-scroll-animation';
5
5
  export * from './use-is-passed-position';
@@ -8,9 +8,9 @@ export interface TimeLeft {
8
8
  seconds: number;
9
9
  }
10
10
  /**
11
- * Props for useCountDown hook
11
+ * Props for useCountdown hook
12
12
  */
13
- export interface UseCountDownProps {
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 useCountDown hook
30
+ * Return type for useCountdown hook
31
31
  */
32
- export interface UseCountDownReturn {
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 - UseCountDownProps
68
- * @returns UseCountDownReturn - Hook return value with time data and controls
67
+ * @param props - UseCountdownProps
68
+ * @returns UseCountdownReturn - Hook return value with time data and controls
69
69
  */
70
- declare const useCountDown: ({ expireDate, onComplete, onTick, onStart, paused, interval, autoStart, }: UseCountDownProps) => UseCountDownReturn;
71
- export default useCountDown;
70
+ declare const useCountdown: ({ expireDate, onComplete, onTick, onStart, paused, interval, autoStart, }: UseCountdownProps) => UseCountdownReturn;
71
+ export default useCountdown;
@@ -1,5 +1,5 @@
1
1
  import { useCallback as e, useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
2
- //#region lib/hooks/use-count-down.ts
2
+ //#region lib/hooks/use-countdown.ts
3
3
  var a = {
4
4
  days: 0,
5
5
  hours: 0,
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-input-DpCaY6gB.js";
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-DpCaY6gB.js";
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 { o as e, s as t } from "./theme-primitives-OrQ-xFJR.js";
2
- import { t as n } from "./createSvgIcon-BdNZIlKS.js";
3
- import { t as r } from "./ArrowUpward-BMKLosZj.js";
4
- import { t as i } from "./Close-Bj2HYB9Q.js";
5
- import { t as a } from "./s-text-field-Ck5QMhYI.js";
6
- import { SIconButton as o } from "./s-icon-button/s-icon-button.js";
7
- import { SFileIcon as s } from "./s-file-icon/s-file-icon.js";
8
- import { forwardRef as c, useEffect as l, useId as u, useState as d } from "react";
9
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
10
- import { Box as h, ClickAwayListener as g, Popper as _, Typography as v, alpha as y, outlinedInputClasses as b } from "@mui/material";
11
- import x from "emoji-picker-react";
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 S = n(/* @__PURE__ */ p("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"), C = n(/* @__PURE__ */ p("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"), w = c(({ onSubmit: n, onFileSelect: c, disabled: w, acceptedFileTypes: T, maxFileSize: E, hideEmojiPicker: D, hideFileAttachment: O, ...k }, A) => {
14
- let [j, M] = d(""), [N, P] = d([]), [F, I] = d(/* @__PURE__ */ new Map()), [L, R] = d(!1), [z, B] = d(null), V = u(), H = (e) => e.type.startsWith("image/"), U = (e) => {
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 (F.has(t)) return F.get(t);
17
- if (H(e)) {
16
+ if (N.has(t)) return N.get(t);
17
+ if (B(e)) {
18
18
  let n = URL.createObjectURL(e);
19
- return I((e) => new Map(e).set(t, n)), n;
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
- M(e.target.value);
24
- }, G = (e) => {
25
- M((t) => t + e.emoji), R(!1), B(null);
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
- B(e.currentTarget), R(!L);
28
- }, q = () => {
29
- w || j.trim().length === 0 && N.length === 0 || (n?.(j, N), M(""), F.forEach((e) => URL.revokeObjectURL(e)), I(/* @__PURE__ */ new Map()), P([]));
30
- }, J = (e) => {
31
- let t = Array.from(e.target.files ?? []).filter((e) => !(E && e.size > E));
32
- P((e) => [...e, ...t]), c?.(t), e.target.value = "";
33
- }, Y = (e) => {
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
- P((t) => t.filter((t, n) => n !== e));
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 l(() => () => {
47
- F.forEach((e) => URL.revokeObjectURL(e));
48
- }, [F]), /* @__PURE__ */ m(h, {
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 ${y(e[500], .5)}`,
58
- borderColor: e[400]
55
+ outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
56
+ borderColor: (t.vars ?? t).palette.primary[400]
59
57
  },
60
- ...w && {
58
+ ...S && {
61
59
  opacity: .5,
62
60
  pointerEvents: "none"
63
61
  }
64
- },
62
+ }),
65
63
  children: [
66
- /* @__PURE__ */ p(a, {
64
+ /* @__PURE__ */ f(i, {
67
65
  placeholder: "Enter your message here...",
68
- disabled: w,
69
- value: j,
70
- onChange: W,
71
- onKeyDown: X,
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: A,
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
- [`&.${b.focused}`]: { outline: "none" },
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
- ...k
87
+ ...D
88
88
  }),
89
- N.length > 0 && /* @__PURE__ */ p(h, {
89
+ j.length > 0 && /* @__PURE__ */ f(m, {
90
90
  sx: { mt: 1 },
91
- children: N.map((e, t) => {
92
- let n = H(e), r = e.name.split(".").pop();
93
- return /* @__PURE__ */ m(h, {
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(h, {
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__ */ p(h, {
111
+ children: [n ? /* @__PURE__ */ f(m, {
112
112
  component: "img",
113
- src: U(e),
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__ */ p(s, { extension: r }), /* @__PURE__ */ m(h, {
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__ */ p(v, {
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__ */ p("div", { children: /* @__PURE__ */ m(v, {
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__ */ p(o, {
148
- onClick: () => Y(t),
147
+ }), /* @__PURE__ */ f(a, {
148
+ onClick: () => q(t),
149
149
  sx: {
150
150
  minWidth: "auto",
151
151
  p: .5
152
152
  },
153
- children: /* @__PURE__ */ p(i, {})
153
+ children: /* @__PURE__ */ f(r, {})
154
154
  })]
155
155
  }, `${e.name}-${t}`);
156
156
  })
157
157
  }),
158
- /* @__PURE__ */ m(h, {
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(h, {
165
+ children: [/* @__PURE__ */ p(m, {
166
166
  sx: {
167
167
  display: "flex",
168
168
  gap: 1
169
169
  },
170
- children: [!O && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
170
+ children: [!E && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("input", {
171
171
  type: "file",
172
172
  multiple: !0,
173
- accept: T,
174
- onChange: J,
173
+ accept: C,
174
+ onChange: K,
175
175
  style: { display: "none" },
176
- id: `file-attachment-input-${V}`,
177
- disabled: w
178
- }), /* @__PURE__ */ p("label", {
179
- htmlFor: `file-attachment-input-${V}`,
180
- children: /* @__PURE__ */ p(o, {
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: w,
183
- children: /* @__PURE__ */ p(S, {})
182
+ disabled: S,
183
+ children: /* @__PURE__ */ f(b, {})
184
184
  })
185
- })] }), !D && /* @__PURE__ */ p(o, {
186
- onClick: K,
187
- disabled: w,
188
- children: /* @__PURE__ */ p(C, {})
185
+ })] }), !T && /* @__PURE__ */ f(a, {
186
+ onClick: W,
187
+ disabled: S,
188
+ children: /* @__PURE__ */ f(x, {})
189
189
  })]
190
- }), /* @__PURE__ */ p(o, {
191
- onClick: q,
192
- disabled: w,
193
- children: /* @__PURE__ */ p(r, {})
190
+ }), /* @__PURE__ */ f(a, {
191
+ onClick: G,
192
+ disabled: S,
193
+ children: /* @__PURE__ */ f(n, {})
194
194
  })]
195
195
  }),
196
- /* @__PURE__ */ p(_, {
197
- open: L,
198
- anchorEl: z,
196
+ /* @__PURE__ */ f(g, {
197
+ open: F,
198
+ anchorEl: L,
199
199
  placement: "top-start",
200
200
  sx: { zIndex: 1300 },
201
- children: /* @__PURE__ */ p(g, {
201
+ children: /* @__PURE__ */ f(h, {
202
202
  onClickAway: () => {
203
- R(!1), B(null);
203
+ I(!1), R(null);
204
204
  },
205
- children: /* @__PURE__ */ p(h, {
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 ${y(e[500], .5)}`,
233
- borderColor: e[400]
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__ */ p(x, {
284
- onEmojiClick: G,
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
- w.displayName = "SChatInput";
297
+ S.displayName = "SChatInput";
298
298
  //#endregion
299
- export { w as t };
299
+ export { S as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-message-ox4Sj6xh.js";
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-ox4Sj6xh.js";
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-DA3DBNbv.js";
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-count-down';
2
- export type { SCountDownProps } from './s-count-down';
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';
@@ -1,3 +1,3 @@
1
1
  import { SCountBox as e } from "./s-count-box.js";
2
- import { SCountdown as t } from "./s-count-down.js";
2
+ import { SCountdown as t } from "./s-countdown.js";
3
3
  export { e as SCountBox, t as SCountdown };
@@ -3,22 +3,22 @@ import { SxProps, Theme } from '@mui/material';
3
3
  /**
4
4
  * Props interface for SCountdown component
5
5
  */
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 {
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?: SCountDownSize;
15
+ size?: SCountdownSize;
16
16
  /** Color theme for the countdown */
17
- color?: SCountDownColor;
17
+ color?: SCountdownColor;
18
18
  /** Layout orientation */
19
- layout?: SCountDownLayout;
19
+ layout?: SCountdownLayout;
20
20
  /** Animation type for value changes */
21
- animation?: SCountDownAnimation;
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?: SCountDownDigitFormat;
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?: SCountDownSize;
66
- sm?: SCountDownSize;
67
- md?: SCountDownSize;
68
- lg?: SCountDownSize;
69
- xl?: SCountDownSize;
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, }: SCountDownProps): import("react/jsx-runtime").JSX.Element;
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-count-down.js";
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-count-down.tsx
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-Cb7CsYQf.js";
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-Cb7CsYQf.js";
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 = C.useId(), x = (e) => {
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 t = e.sortable && p === $(e), n = t ? m === "asc" ? "ascending" : "descending" : void 0, r = e.hideName ? null : e.name;
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": n,
847
- sortDirection: t ? m : !1,
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: t ? "primary.main" : "inherit",
875
- "&:hover .s-sort-icon": { color: t ? "primary.main" : "text.secondary" }
874
+ color: n ? "primary.main" : "inherit",
875
+ "&:hover .s-sort-icon": { color: n ? "primary.main" : "text.secondary" }
876
876
  },
877
- children: [r, t ? w(m === "asc" ? y : D, {
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
- }) : r
887
- }, e.name ?? b);
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.name))]
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-Mynq297P.js";
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-Mynq297P.js";
1
+ import { t as e } from "../s-date-picker-BkZIEZoz.js";
2
2
  export { e as SDatePicker, e as default };