@solostylist/ui-kit 1.0.222 → 1.0.224

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 (145) hide show
  1. package/dist/{checkbox-DMsuLF8N.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-accordion/index.js +1 -1
  6. package/dist/s-accordion/s-accordion.js +1 -1
  7. package/dist/{s-accordion-DH_7P3Il.js → s-accordion-CXHBadZ_.js} +1 -1
  8. package/dist/s-autocomplete/s-autocomplete.d.ts +1 -1
  9. package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
  10. package/dist/s-chat-input/index.js +1 -1
  11. package/dist/s-chat-input/s-chat-input.js +1 -1
  12. package/dist/{s-chat-input-B0gdPa1c.js → s-chat-input-DKGeMh55.js} +98 -98
  13. package/dist/s-chat-message/index.js +1 -1
  14. package/dist/s-chat-message/s-chat-message.js +1 -1
  15. package/dist/{s-chat-message-DVfbqSAQ.js → s-chat-message-ox4Sj6xh.js} +2 -2
  16. package/dist/s-chips/index.js +1 -1
  17. package/dist/s-chips/s-chips.js +1 -1
  18. package/dist/s-code-block/index.js +1 -1
  19. package/dist/s-code-block/s-code-block.js +1 -1
  20. package/dist/{s-code-block-CHIgPLsL.js → s-code-block-sjt0AQb_.js} +1 -1
  21. package/dist/s-comment-message/index.js +1 -1
  22. package/dist/s-comment-message/s-comment-message.js +1 -1
  23. package/dist/{s-comment-message-DuJPcZFR.js → s-comment-message-DzjXXLZQ.js} +2 -2
  24. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  25. package/dist/s-countdown/index.d.ts +2 -2
  26. package/dist/s-countdown/index.js +1 -1
  27. package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
  28. package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
  29. package/dist/s-data-table/index.d.ts +1 -1
  30. package/dist/s-data-table/index.js +1 -1
  31. package/dist/s-data-table/s-data-table.d.ts +19 -1
  32. package/dist/s-data-table/s-data-table.js +1 -1
  33. package/dist/s-data-table-TrCdKq9r.js +923 -0
  34. package/dist/s-date-picker/index.js +1 -1
  35. package/dist/s-date-picker/s-date-picker.js +1 -1
  36. package/dist/s-date-picker-BkZIEZoz.js +634 -0
  37. package/dist/s-datetime-picker/index.js +1 -1
  38. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  39. package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
  40. package/dist/s-dialog/s-dialog.js +1 -1
  41. package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -2
  42. package/dist/s-dialog-message/s-dialog-message.js +1 -1
  43. package/dist/s-file-dropzone/index.js +1 -1
  44. package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
  45. package/dist/s-gallery/s-gallery.js +1 -1
  46. package/dist/s-glow-button/s-glow-button.d.ts +1 -1
  47. package/dist/s-glow-button/s-glow-button.js +18 -19
  48. package/dist/s-image-modal/index.js +1 -1
  49. package/dist/s-image-modal/s-image-modal.js +1 -1
  50. package/dist/{s-image-modal-DxwMFMNS.js → s-image-modal-DA3DBNbv.js} +2 -2
  51. package/dist/s-label/s-label.js +1 -1
  52. package/dist/s-nav-item/index.d.ts +0 -1
  53. package/dist/s-nav-item/index.js +1 -2
  54. package/dist/s-nav-items/index.d.ts +2 -0
  55. package/dist/s-nav-items/index.js +2 -0
  56. package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
  57. package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +4 -4
  58. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
  59. package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
  60. package/dist/s-review/index.js +1 -1
  61. package/dist/s-review/s-review.js +1 -1
  62. package/dist/{s-review-Ca6JUgGr.js → s-review-D4FBfBPF.js} +1 -1
  63. package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
  64. package/dist/s-select/index.js +1 -1
  65. package/dist/s-select/s-select.js +1 -1
  66. package/dist/s-stripe/s-stripe.d.ts +1 -1
  67. package/dist/s-stripe/s-stripe.js +5 -4
  68. package/dist/s-text-editor/index.js +1 -1
  69. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  70. package/dist/s-text-editor/s-text-editor.js +30 -31
  71. package/dist/{s-text-editor-toolbar-BnhPG9xv.js → s-text-editor-toolbar-CCK7yyNS.js} +1 -1
  72. package/dist/s-text-field/index.js +1 -1
  73. package/dist/s-text-field/s-text-field.js +1 -1
  74. package/dist/s-theme-demo/index.js +1 -1
  75. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  76. package/dist/{s-theme-demo-BHyjzAU0.js → s-theme-demo-THHj5mFp.js} +3 -3
  77. package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
  78. package/dist/s-theme-provider/s-theme-provider.js +32 -26
  79. package/dist/s-theme-switch/index.js +1 -1
  80. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  81. package/dist/s-tip/index.js +1 -1
  82. package/dist/s-tip/s-tip.js +1 -1
  83. package/dist/s-tool-bar/index.js +1 -1
  84. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  85. package/dist/{s-tool-bar-Du66wRC2.js → s-tool-bar-DGfyNoYW.js} +142 -143
  86. package/dist/theme/components/accordion-summary.d.ts +385 -385
  87. package/dist/theme/components/accordion-summary.js +1 -1
  88. package/dist/theme/components/accordion.d.ts +2 -2
  89. package/dist/theme/components/alert.d.ts +1524 -1524
  90. package/dist/theme/components/alert.js +15 -22
  91. package/dist/theme/components/app-bar.d.ts +2 -2
  92. package/dist/theme/components/avatar.js +1 -1
  93. package/dist/theme/components/button.d.ts +2282 -2282
  94. package/dist/theme/components/button.js +40 -42
  95. package/dist/theme/components/card.d.ts +767 -767
  96. package/dist/theme/components/card.js +1 -1
  97. package/dist/theme/components/checkbox.d.ts +381 -381
  98. package/dist/theme/components/checkbox.js +1 -1
  99. package/dist/theme/components/chip.js +65 -52
  100. package/dist/theme/components/components.js +4 -4
  101. package/dist/theme/components/form-label.d.ts +2 -2
  102. package/dist/theme/components/icon-button.d.ts +2294 -2294
  103. package/dist/theme/components/icon-button.js +31 -29
  104. package/dist/theme/components/linear-progress.d.ts +382 -382
  105. package/dist/theme/components/linear-progress.js +1 -1
  106. package/dist/theme/components/link.d.ts +2 -2
  107. package/dist/theme/components/link.js +1 -1
  108. package/dist/theme/components/list-item-button.d.ts +2 -2
  109. package/dist/theme/components/list-item.d.ts +2 -2
  110. package/dist/theme/components/outlined-input.js +1 -1
  111. package/dist/theme/components/pagination-item.d.ts +385 -385
  112. package/dist/theme/components/step-icon.d.ts +383 -383
  113. package/dist/theme/components/step-icon.js +1 -1
  114. package/dist/theme/components/step-label.d.ts +384 -384
  115. package/dist/theme/components/tab.d.ts +384 -384
  116. package/dist/theme/components/tabs.d.ts +386 -386
  117. package/dist/theme/components/toggle-button-group.d.ts +383 -383
  118. package/dist/theme/components/toggle-button-group.js +1 -1
  119. package/dist/theme/components/toggle-button.d.ts +385 -385
  120. package/dist/theme/components/toggle-button.js +1 -1
  121. package/dist/theme/theme-primitives.d.ts +132 -0
  122. package/dist/theme/theme-primitives.js +1 -1
  123. package/dist/theme/utils.d.ts +11 -0
  124. package/dist/theme/utils.js +4 -0
  125. package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
  126. package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
  127. package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
  128. package/package.json +1 -1
  129. package/dist/s-data-table-xIW-BAS9.js +0 -880
  130. package/dist/s-date-picker-Mynq297P.js +0 -634
  131. /package/dist/{ArrowUpward-BbQSKheQ.js → ArrowUpward-BMKLosZj.js} +0 -0
  132. /package/dist/{ChevronRight-DHulYS1l.js → ChevronRight-OLNOfW9P.js} +0 -0
  133. /package/dist/{Close-oXeOGTZb.js → Close-Bj2HYB9Q.js} +0 -0
  134. /package/dist/{ContentCopy-Bh_TA5Eo.js → ContentCopy-Br2p19dq.js} +0 -0
  135. /package/dist/{Download-DMm8oiCF.js → Download-BhSXOhCI.js} +0 -0
  136. /package/dist/{ExpandMore-DsZNN1Eh.js → ExpandMore-Bu7_1g6Q.js} +0 -0
  137. /package/dist/{Favorite-DIml4fHR.js → Favorite-BJSuHe0H.js} +0 -0
  138. /package/dist/{InfoOutlined-CqXSSVWh.js → InfoOutlined-C1AW3f5V.js} +0 -0
  139. /package/dist/{avatar-BQf6phmU.js → avatar-BuMhUthq.js} +0 -0
  140. /package/dist/{s-chips-BuAEBW1F.js → s-chips-DelHx6zM.js} +0 -0
  141. /package/dist/{s-file-dropzone-COPp1HiT.js → s-file-dropzone-oaQoRV92.js} +0 -0
  142. /package/dist/{s-select-ClL8bygg.js → s-select-b8CHbeCf.js} +0 -0
  143. /package/dist/{s-text-field-qps0aDNS.js → s-text-field-Ck5QMhYI.js} +0 -0
  144. /package/dist/{s-theme-switch-D1FpcDj1.js → s-theme-switch-V3Q58mkG.js} +0 -0
  145. /package/dist/{s-tip-D6M91nev.js → s-tip-Dwu5T2u0.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as e } from "../Close-oXeOGTZb.js";
1
+ import { t as e } from "../Close-Bj2HYB9Q.js";
2
2
  import * as t from "react";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { Dialog as a, DialogActions as o, DialogContent as s, DialogTitle as c, IconButton as l, Stack as u, Typography as d } from "@mui/material";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Typography-EsraKPZO.js";
2
- import { t } from "../Close-oXeOGTZb.js";
2
+ import { t } from "../Close-Bj2HYB9Q.js";
3
3
  import { useDialog as n } from "../hooks/use-dialog.js";
4
4
  import * as r from "react";
5
5
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -20,7 +20,6 @@ var m = ({ title: n, content: r, onConfirm: m = () => {}, onClose: h = () => {},
20
20
  },
21
21
  children: [typeof n == "string" ? /* @__PURE__ */ a(e, {
22
22
  variant: "h5",
23
- sx: { textTransform: "capitalize" },
24
23
  children: n
25
24
  }) : /* @__PURE__ */ a("div", { children: n }), v && /* @__PURE__ */ a(f, {
26
25
  onClick: h,
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../Typography-EsraKPZO.js";
2
- import { t } from "../Close-oXeOGTZb.js";
2
+ import { t } from "../Close-Bj2HYB9Q.js";
3
3
  import { useDialog as n } from "../hooks/use-dialog.js";
4
4
  import * as r from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-file-dropzone-COPp1HiT.js";
1
+ import { t as e } from "../s-file-dropzone-oaQoRV92.js";
2
2
  export { e as SFileDropzone, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-file-dropzone-COPp1HiT.js";
1
+ import { t as e } from "../s-file-dropzone-oaQoRV92.js";
2
2
  export { e as SFileDropzone, e as default };
@@ -1,4 +1,4 @@
1
- import { n as e } from "../s-image-modal-DxwMFMNS.js";
1
+ import { n as e } from "../s-image-modal-DA3DBNbv.js";
2
2
  import t from "../s-lazy-image/s-lazy-image.js";
3
3
  import { useEffect as n, useId as r, useRef as i, useState as a } from "react";
4
4
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -16,7 +16,7 @@ export interface SGlowButtonProps extends ButtonProps {
16
16
  height?: string;
17
17
  /** Size of the glow effect in pixels (defaults to 60) */
18
18
  glowSize?: number;
19
- /** Color of the glow effect (defaults to blue[500]) */
19
+ /** Color of the glow effect (defaults to the theme info color) */
20
20
  glowColor?: string;
21
21
  }
22
22
  /**
@@ -1,29 +1,28 @@
1
- import { a as e } from "../theme-primitives-OrQ-xFJR.js";
2
- import { SMovingBorder as t } from "../s-moving-border/s-moving-border.js";
1
+ import { SMovingBorder as e } from "../s-moving-border/s-moving-border.js";
3
2
  import "react";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import { Button as r, hslToRgb as i } from "@mui/material";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import { Button as n } from "@mui/material";
6
5
  //#region lib/s-glow-button/s-glow-button.tsx
7
- var a = ({ borderRadius: a = 12, children: o, duration: s = 3e3, width: c = "fit-content", height: l = "60px", glowSize: u = 60, glowColor: d = i(e[500]), ...f }) => /* @__PURE__ */ n(t, {
8
- width: c,
9
- height: l,
10
- duration: s,
11
- borderRadius: a,
12
- glowSize: u,
13
- glowColor: d,
6
+ var r = ({ borderRadius: r = 12, children: i, duration: a = 3e3, width: o = "fit-content", height: s = "60px", glowSize: c = 60, glowColor: l = "var(--s-palette-info-main)", ...u }) => /* @__PURE__ */ t(e, {
7
+ width: o,
8
+ height: s,
9
+ duration: a,
10
+ borderRadius: r,
11
+ glowSize: c,
12
+ glowColor: l,
14
13
  padding: .3,
15
- children: /* @__PURE__ */ n(r, {
14
+ children: /* @__PURE__ */ t(n, {
16
15
  sx: {
17
- borderRadius: a,
18
- width: c,
19
- height: l
16
+ borderRadius: r,
17
+ width: o,
18
+ height: s
20
19
  },
21
20
  disableRipple: !0,
22
- ...f,
21
+ ...u,
23
22
  fullWidth: !0,
24
- children: o
23
+ children: i
25
24
  })
26
25
  });
27
- a.displayName = "SGlowButton";
26
+ r.displayName = "SGlowButton";
28
27
  //#endregion
29
- export { a as default };
28
+ export { r as default };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../s-image-modal-DxwMFMNS.js";
1
+ import { n as e, t } from "../s-image-modal-DA3DBNbv.js";
2
2
  export { t as DefaultMediaItem, e as SImageModal, e as default };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../s-image-modal-DxwMFMNS.js";
1
+ import { n as e, t } from "../s-image-modal-DA3DBNbv.js";
2
2
  export { t as DefaultMediaItem, e as SImageModal, e as default };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
- import { t } from "./ChevronRight-DHulYS1l.js";
3
- import { t as n } from "./Close-oXeOGTZb.js";
2
+ import { t } from "./ChevronRight-OLNOfW9P.js";
3
+ import { t as n } from "./Close-Bj2HYB9Q.js";
4
4
  import r from "./s-lazy-image/s-lazy-image.js";
5
5
  import i, { useEffect as a, useState as o } from "react";
6
6
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../InfoOutlined-CqXSSVWh.js";
1
+ import { t as e } from "../InfoOutlined-C1AW3f5V.js";
2
2
  import "react";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { Stack as r, Tooltip as i, Typography as a } from "@mui/material";
@@ -1,3 +1,2 @@
1
1
  export { SNavItem, type SNavItemProps } from './s-nav-item';
2
- export { SNavItems, SNavGroupItem, type SNavItemConfig, type SNavItemsProps } from './s-nav-items';
3
2
  export { default } from './s-nav-item';
@@ -1,3 +1,2 @@
1
1
  import { SNavItem as e } from "./s-nav-item.js";
2
- import { SNavGroupItem as t, SNavItems as n } from "./s-nav-items.js";
3
- export { t as SNavGroupItem, e as SNavItem, e as default, n as SNavItems };
2
+ export { e as SNavItem, e as default };
@@ -0,0 +1,2 @@
1
+ export { SNavItems, SNavGroupItem, type SNavItemConfig, type SNavItemsProps } from './s-nav-items';
2
+ export { default } from './s-nav-items';
@@ -0,0 +1,2 @@
1
+ import { SNavGroupItem as e, SNavItems as t } from "./s-nav-items.js";
2
+ export { e as SNavGroupItem, t as SNavItems, t as default };
@@ -59,4 +59,4 @@ export declare function SNavItems({ items, pathname, depth, component }: Readonl
59
59
  export declare namespace SNavItems {
60
60
  var displayName: string;
61
61
  }
62
- export {};
62
+ export default SNavItems;
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "../Box-BlmynALm.js";
2
2
  import { t } from "../Stack-BQkLmLFp.js";
3
3
  import { t as n } from "../Typography-EsraKPZO.js";
4
- import { t as r } from "../ExpandMore-DsZNN1Eh.js";
5
- import { SNavItem as i } from "./s-nav-item.js";
4
+ import { t as r } from "../ExpandMore-Bu7_1g6Q.js";
5
+ import { SNavItem as i } from "../s-nav-item/s-nav-item.js";
6
6
  import { t as a } from "../Collapse-CnXmaDqT.js";
7
7
  import * as o from "react";
8
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
- //#region lib/s-nav-item/s-nav-items.tsx
9
+ //#region lib/s-nav-items/s-nav-items.tsx
10
10
  function l(e, t) {
11
11
  return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? l(e.items, t) : !1);
12
12
  }
@@ -151,4 +151,4 @@ function p({ items: e, pathname: n = "", depth: r = 0, component: i }) {
151
151
  }
152
152
  p.displayName = "SNavItems";
153
153
  //#endregion
154
- export { f as SNavGroupItem, p as SNavItems };
154
+ export { f as SNavGroupItem, p as SNavItems, p as default };
@@ -7,7 +7,7 @@ export interface SPixelRevealProps extends Omit<React.HTMLAttributes<HTMLDivElem
7
7
  gap?: number;
8
8
  /** Animation speed multiplier (0-100) */
9
9
  speed?: number;
10
- /** Array of color values randomly assigned to pixels */
10
+ /** Array of color values randomly assigned to pixels (defaults to theme primary shades) */
11
11
  colors?: string[];
12
12
  /** Controls pixel animation state */
13
13
  loading?: boolean;
@@ -1,6 +1,6 @@
1
- import { o as e } from "../theme-primitives-OrQ-xFJR.js";
2
- import { forwardRef as t, useCallback as n, useEffect as r, useRef as i } from "react";
3
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { forwardRef as e, useCallback as t, useEffect as n, useRef as r } from "react";
2
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { useTheme as o } from "@mui/material";
4
4
  //#region lib/s-pixel-reveal/s-pixel-reveal.tsx
5
5
  var s = class {
6
6
  x;
@@ -47,100 +47,105 @@ function c({ x: e, y: t, gap: n, logicalWidth: r, logicalHeight: i, instant: a,
47
47
  let c = e + n / 2, l = t + n / 2, u = r / 2, d = i / 2;
48
48
  return Math.sqrt(s(c, l, u, d));
49
49
  }
50
- function l(e, t, n) {
50
+ function l(e, t) {
51
+ let n = /^var\((--[^),\s]+)\s*(?:,\s*([^)]+))?\)$/.exec(e.trim());
52
+ return n && (getComputedStyle(t).getPropertyValue(n[1]).trim() || n[2]?.trim()) || e;
53
+ }
54
+ function u(e, t, n) {
51
55
  e.has(t) || e.set(t, []), e.get(t)?.push(n);
52
56
  }
53
- var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
54
- e[400],
55
- e[500],
56
- e[600]
57
- ], loading: f = !0, src: p, alt: m = "", style: h, children: g, instant: _ = !0, ...v }, y) => {
58
- let b = i(null), x = i(null), S = i(null), C = i(/* @__PURE__ */ new Map()), w = i(null), T = i(1e3 / 60), E = i(0), D = i(!1);
59
- r(() => {
60
- D.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
57
+ var d = e(({ gap: e = 5, speed: d = 100, colors: f, loading: p = !0, src: m, alt: h = "", style: g, children: _, instant: v = !0, ...y }, b) => {
58
+ let x = o(), S = r(null), C = r(null), w = r(null), T = r(/* @__PURE__ */ new Map()), E = r(null), D = r(1e3 / 60), O = r(0), k = r(!1);
59
+ n(() => {
60
+ k.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
61
61
  }, []);
62
- let O = n((e, t, n, r) => {
62
+ let A = t((e, t, n, r) => {
63
63
  let i = e - n, a = t - r;
64
64
  return i * i + a * a;
65
- }, []), k = n((e, n, r) => {
66
- w.current && cancelAnimationFrame(w.current), E.current = performance.now();
65
+ }, []), j = t((t, n, r) => {
66
+ E.current && cancelAnimationFrame(E.current), O.current = performance.now();
67
67
  let i = () => {
68
- w.current = requestAnimationFrame(i);
69
- let a = performance.now(), o = a - E.current;
70
- if (o < T.current) return;
71
- E.current = a - o % T.current, e.clearRect(0, 0, n, r);
68
+ E.current = requestAnimationFrame(i);
69
+ let a = performance.now(), o = a - O.current;
70
+ if (o < D.current) return;
71
+ O.current = a - o % D.current, t.clearRect(0, 0, n, r);
72
72
  let s = !1;
73
- C.current.forEach((n, r) => {
74
- e.fillStyle = r;
73
+ T.current.forEach((n, r) => {
74
+ t.fillStyle = r;
75
75
  for (let r of n) {
76
- if (f) {
77
- r.updateWhileLoading(), r.draw(e, t), s = !0;
76
+ if (p) {
77
+ r.updateWhileLoading(), r.draw(t, e), s = !0;
78
78
  continue;
79
79
  }
80
- r.updateWhileIdle() && (r.draw(e, t), s = !0);
80
+ r.updateWhileIdle() && (r.draw(t, e), s = !0);
81
81
  }
82
- }), !f && !s && w.current && (cancelAnimationFrame(w.current), w.current = null);
82
+ }), !p && !s && E.current && (cancelAnimationFrame(E.current), E.current = null);
83
83
  };
84
84
  i();
85
- }, [f, t]), A = n(() => {
86
- let e = b.current, n = e?.getContext("2d");
87
- if (!e || !n) return;
88
- C.current = /* @__PURE__ */ new Map();
89
- let r = D.current ? 0 : Math.max(0, Math.min(100, u)) * .001, i = window.devicePixelRatio ?? 1, a = e.width / i, o = e.height / i, f = .5, p = (a + o) * .01, m = a % t / 2, h = o % t / 2;
90
- for (let e = m; e < a; e += t) for (let n = h; n < o; n += t) {
91
- let i = d[Math.floor(Math.random() * d.length)], u = c({
92
- x: e,
85
+ }, [p, e]), M = t(() => {
86
+ let t = S.current, n = t?.getContext("2d");
87
+ if (!t || !n) return;
88
+ T.current = /* @__PURE__ */ new Map();
89
+ let r = k.current ? 0 : Math.max(0, Math.min(100, d)) * .001, i = (x.vars ?? x).palette, a = (f ?? [
90
+ i.primary[400],
91
+ i.primary[500],
92
+ i.primary[600]
93
+ ]).map((e) => l(e, t)), o = window.devicePixelRatio ?? 1, p = t.width / o, m = t.height / o, h = .5, g = (p + m) * .01, _ = p % e / 2, y = m % e / 2;
94
+ for (let t = _; t < p; t += e) for (let n = y; n < m; n += e) {
95
+ let i = a[Math.floor(Math.random() * a.length)], o = c({
96
+ x: t,
93
97
  y: n,
94
- gap: t,
95
- logicalWidth: a,
96
- logicalHeight: o,
97
- instant: _,
98
- reducedMotion: D.current,
99
- getDistanceSq: O
100
- }), m = Math.random() * 4 + p, h = Math.random() * (2 - f) + f;
101
- l(C.current, i, new s(e, n, i, r, u, m, h));
98
+ gap: e,
99
+ logicalWidth: p,
100
+ logicalHeight: m,
101
+ instant: v,
102
+ reducedMotion: k.current,
103
+ getDistanceSq: A
104
+ }), l = Math.random() * 4 + g, d = Math.random() * (2 - h) + h;
105
+ u(T.current, i, new s(t, n, i, r, o, l, d));
102
106
  }
103
- k(n, a, o);
107
+ j(n, p, m);
104
108
  }, [
105
- t,
106
- u,
109
+ e,
107
110
  d,
108
- _,
109
- O,
110
- k
111
- ]), j = n(() => {
112
- let e = b.current, t = x.current, n = e?.getContext("2d");
111
+ f,
112
+ x,
113
+ v,
114
+ A,
115
+ j
116
+ ]), N = t(() => {
117
+ let e = S.current, t = C.current, n = e?.getContext("2d");
113
118
  if (!e || !t || !n) return;
114
119
  let r = t.getBoundingClientRect();
115
120
  if (r.width === 0 || r.height === 0) return;
116
121
  let i = Math.floor(r.width), a = Math.floor(r.height), o = window.devicePixelRatio ?? 1;
117
- e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), A();
118
- }, [A]);
119
- return r(() => {
120
- j();
122
+ e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), M();
123
+ }, [M]);
124
+ return n(() => {
125
+ N();
121
126
  let e = new ResizeObserver(() => {
122
- requestAnimationFrame(() => j());
127
+ requestAnimationFrame(() => N());
123
128
  });
124
- return x.current && e.observe(x.current), () => {
125
- e.disconnect(), w.current && cancelAnimationFrame(w.current);
129
+ return C.current && e.observe(C.current), () => {
130
+ e.disconnect(), E.current && cancelAnimationFrame(E.current);
126
131
  };
127
- }, [j]), /* @__PURE__ */ o("div", {
132
+ }, [N]), /* @__PURE__ */ a("div", {
128
133
  ref: (e) => {
129
- x.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
134
+ C.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
130
135
  },
131
136
  style: {
132
137
  position: "relative",
133
138
  width: "100%",
134
139
  height: "100%",
135
140
  overflow: "hidden",
136
- ...h
141
+ ...g
137
142
  },
138
- ...v,
143
+ ...y,
139
144
  children: [
140
- p && /* @__PURE__ */ a("img", {
141
- ref: S,
142
- src: p,
143
- alt: m,
145
+ m && /* @__PURE__ */ i("img", {
146
+ ref: w,
147
+ src: m,
148
+ alt: h,
144
149
  style: {
145
150
  position: "absolute",
146
151
  inset: 0,
@@ -150,9 +155,9 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
150
155
  display: "block"
151
156
  }
152
157
  }),
153
- g,
154
- /* @__PURE__ */ a("canvas", {
155
- ref: b,
158
+ _,
159
+ /* @__PURE__ */ i("canvas", {
160
+ ref: S,
156
161
  style: {
157
162
  position: "absolute",
158
163
  inset: 0,
@@ -166,6 +171,6 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
166
171
  ]
167
172
  });
168
173
  });
169
- u.displayName = "SPixelReveal";
174
+ d.displayName = "SPixelReveal";
170
175
  //#endregion
171
- export { u as SPixelReveal, u as default };
176
+ export { d as SPixelReveal, d as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-review-Ca6JUgGr.js";
1
+ import { t as e } from "../s-review-D4FBfBPF.js";
2
2
  export { e as SReview, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-review-Ca6JUgGr.js";
1
+ import { t as e } from "../s-review-D4FBfBPF.js";
2
2
  export { e as SReview, e as default };
@@ -1,6 +1,6 @@
1
1
  import { i as e } from "./utils-B5Rl6Zwv.js";
2
2
  import { t } from "./createSvgIcon-BdNZIlKS.js";
3
- import { n } from "./s-image-modal-DxwMFMNS.js";
3
+ import { n } from "./s-image-modal-DA3DBNbv.js";
4
4
  import r from "./s-lazy-image/s-lazy-image.js";
5
5
  import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
6
6
  import { SAvatar as a } from "./s-avatar/s-avatar.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../styled-BTDmdi4c.js";
2
- import { t } from "../ArrowUpward-BbQSKheQ.js";
2
+ import { t } from "../ArrowUpward-BMKLosZj.js";
3
3
  import { useIsPassedPosition as n } from "../hooks/use-is-passed-position.js";
4
4
  import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
5
5
  import i from "react";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-select-ClL8bygg.js";
1
+ import { t as e } from "../s-select-b8CHbeCf.js";
2
2
  export { e as SSelect, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-select-ClL8bygg.js";
1
+ import { t as e } from "../s-select-b8CHbeCf.js";
2
2
  export { e as SSelect, e as default };
@@ -15,7 +15,7 @@ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STex
15
15
  /** Custom error message to display when validation fails */
16
16
  labelErrorMessage?: string;
17
17
  /** Change handler for Stripe Element events */
18
- onChange?: React.ComponentProps<T>['onChange'];
18
+ onChange?: STextFieldProps['onChange'];
19
19
  /** The Stripe Element component to render */
20
20
  stripeElement?: T;
21
21
  }
@@ -1,9 +1,9 @@
1
- import { t as e } from "../s-text-field-qps0aDNS.js";
1
+ import { t as e } from "../s-text-field-Ck5QMhYI.js";
2
2
  import t from "./stripe-input.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region lib/s-stripe/s-stripe.tsx
5
5
  var r = (r) => {
6
- let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l, ...u } = r;
6
+ let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l, onChange: u, ...d } = r, f = typeof a?.input == "object" ? a.input.inputProps : void 0;
7
7
  return /* @__PURE__ */ n(e, {
8
8
  slotProps: {
9
9
  inputLabel: {
@@ -14,7 +14,7 @@ var r = (r) => {
14
14
  ...a?.input,
15
15
  inputProps: {
16
16
  ...o,
17
- ...a?.input?.inputProps,
17
+ ...f,
18
18
  component: l
19
19
  },
20
20
  inputComponent: t
@@ -22,7 +22,8 @@ var r = (r) => {
22
22
  },
23
23
  error: s,
24
24
  helperText: s ? c : i,
25
- ...u
25
+ onChange: u,
26
+ ...d
26
27
  });
27
28
  };
28
29
  r.displayName = "StripeTextField";
@@ -1,3 +1,3 @@
1
- import { t as e } from "../s-text-editor-toolbar-BnhPG9xv.js";
1
+ import { t as e } from "../s-text-editor-toolbar-CCK7yyNS.js";
2
2
  import { STextEditor as t } from "./s-text-editor.js";
3
3
  export { t as STextEditor, t as default, e as STextEditorToolbar };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-editor-toolbar-BnhPG9xv.js";
1
+ import { t as e } from "../s-text-editor-toolbar-CCK7yyNS.js";
2
2
  export { e as STextEditorToolbar };
@@ -1,48 +1,47 @@
1
- import { i as e } from "../createTheme-Bnw5w28O.js";
1
+ import { tint as e } from "../theme/utils.js";
2
2
  import { t } from "../Box-BlmynALm.js";
3
- import { o as n, s as r } from "../theme-primitives-OrQ-xFJR.js";
4
- import { t as i } from "../s-text-editor-toolbar-BnhPG9xv.js";
5
- import * as a from "react";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { Link as c } from "@tiptap/extension-link";
8
- import { Placeholder as l } from "@tiptap/extension-placeholder";
9
- import { EditorContent as u, useEditor as d } from "@tiptap/react";
10
- import { StarterKit as f } from "@tiptap/starter-kit";
3
+ import { t as n } from "../s-text-editor-toolbar-CCK7yyNS.js";
4
+ import * as r from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Link as o } from "@tiptap/extension-link";
7
+ import { Placeholder as s } from "@tiptap/extension-placeholder";
8
+ import { EditorContent as c, useEditor as l } from "@tiptap/react";
9
+ import { StarterKit as u } from "@tiptap/starter-kit";
11
10
  //#region lib/s-text-editor/s-text-editor.tsx
12
- var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {}, placeholder: _ }) => {
13
- let v = d({
11
+ var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {}, placeholder: h }) => {
12
+ let g = l({
14
13
  extensions: [
15
- f,
16
- l.configure({
14
+ u,
15
+ s.configure({
17
16
  emptyEditorClass: "is-editor-empty",
18
- placeholder: _
17
+ placeholder: h
19
18
  }),
20
- c.configure({
19
+ o.configure({
21
20
  openOnClick: !1,
22
21
  autolink: !0
23
22
  })
24
23
  ],
25
- content: p,
26
- editable: m,
27
- onUpdate: g,
24
+ content: d,
25
+ editable: f,
26
+ onUpdate: m,
28
27
  parseOptions: { preserveWhitespace: "full" }
29
28
  });
30
- return a.useEffect(() => {
31
- !v || v.isDestroyed || v.getHTML() !== p && v.commands.setContent(p);
32
- }, [p, v]), /* @__PURE__ */ s(t, {
29
+ return r.useEffect(() => {
30
+ !g || g.isDestroyed || g.getHTML() !== d && g.commands.setContent(d);
31
+ }, [d, g]), /* @__PURE__ */ a(t, {
33
32
  className: "tiptap-root",
34
- sx: {
33
+ sx: (t) => ({
35
34
  display: "flex",
36
35
  flexDirection: "column",
37
- ...m && {
36
+ ...f && {
38
37
  border: "1px solid",
39
38
  borderColor: "divider",
40
39
  borderRadius: 1,
41
40
  transition: "border 120ms ease-in",
42
- "&:hover": { borderColor: r[500] },
41
+ "&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
43
42
  "&:focus-within": {
44
- outline: `3px solid ${e(n[500], .5)}`,
45
- borderColor: n[400]
43
+ outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
44
+ borderColor: (t.vars ?? t).palette.primary[400]
46
45
  }
47
46
  },
48
47
  "& .tiptap-container": {
@@ -71,13 +70,13 @@ var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {},
71
70
  pointerEvents: "none"
72
71
  }
73
72
  }
74
- },
75
- children: [h ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ o(i, { editor: v }), /* @__PURE__ */ o(u, {
73
+ }),
74
+ children: [p ? /* @__PURE__ */ i("div", {}) : /* @__PURE__ */ i(n, { editor: g }), /* @__PURE__ */ i(c, {
76
75
  className: "tiptap-container",
77
- editor: v
76
+ editor: g
78
77
  })]
79
78
  });
80
79
  };
81
- p.displayName = "STextEditor";
80
+ d.displayName = "STextEditor";
82
81
  //#endregion
83
- export { p as STextEditor, p as default };
82
+ export { d as STextEditor, d as default };
@@ -19,7 +19,7 @@ import { n as he, t as ge } from "./Menu-C-0KEauj.js";
19
19
  import { n as D, t as _e } from "./selectClasses-DvT1febA.js";
20
20
  import { n as ve, r as ye } from "./useFormControl-B4z6ONhx.js";
21
21
  import { i as O, n as k, r as be, t as xe } from "./outlinedInputClasses-Cz4pnn0X.js";
22
- import { t as A } from "./s-text-field-qps0aDNS.js";
22
+ import { t as A } from "./s-text-field-Ck5QMhYI.js";
23
23
  import * as j from "react";
24
24
  import { jsx as M, jsxs as N } from "react/jsx-runtime";
25
25
  import { MenuItem as P } from "@mui/material";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-field-qps0aDNS.js";
1
+ import { t as e } from "../s-text-field-Ck5QMhYI.js";
2
2
  export { e as STextField, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-field-qps0aDNS.js";
1
+ import { t as e } from "../s-text-field-Ck5QMhYI.js";
2
2
  export { e as STextField, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-demo-BHyjzAU0.js";
1
+ import { t as e } from "../s-theme-demo-THHj5mFp.js";
2
2
  export { e as SThemeDemo, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-demo-BHyjzAU0.js";
1
+ import { t as e } from "../s-theme-demo-THHj5mFp.js";
2
2
  export { e as default };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
- import { t } from "./s-theme-switch-D1FpcDj1.js";
3
- import { t as n } from "./Favorite-DIml4fHR.js";
4
- import { t as r } from "./s-text-field-qps0aDNS.js";
2
+ import { t } from "./s-theme-switch-V3Q58mkG.js";
3
+ import { t as n } from "./Favorite-BJSuHe0H.js";
4
+ import { t as r } from "./s-text-field-Ck5QMhYI.js";
5
5
  import { SForm as i } from "./s-form/s-form.js";
6
6
  import { SButton as a } from "./s-button/s-button.js";
7
7
  import * as o from "react";