@solostylist/ui-kit 1.0.175 → 1.0.176

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 (203) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.js +84 -92
  79. package/dist/s-chat-message/s-chat-message.js +111 -120
  80. package/dist/s-checkbox/s-checkbox.js +12 -20
  81. package/dist/s-chip/package.json +5 -5
  82. package/dist/s-chip/s-chip.js +7 -15
  83. package/dist/s-chips/s-chips.js +47 -56
  84. package/dist/s-code-block/package.json +5 -5
  85. package/dist/s-code-block/s-code-block.js +35 -43
  86. package/dist/s-comment-message/package.json +5 -5
  87. package/dist/s-comment-message/s-comment-message.js +90 -94
  88. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  89. package/dist/s-countdown/s-count-box.js +42 -50
  90. package/dist/s-countdown/s-count-down.js +79 -107
  91. package/dist/s-data-table/s-data-table.js +374 -384
  92. package/dist/s-date-picker/s-date-picker.js +164 -164
  93. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  94. package/dist/s-dialog/s-dialog.js +24 -32
  95. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  96. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  97. package/dist/s-empty/s-empty.js +6 -14
  98. package/dist/s-error/s-error.js +9 -17
  99. package/dist/s-error-layout/s-error-layout.js +38 -47
  100. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  101. package/dist/s-file-icon/s-file-icon.js +9 -13
  102. package/dist/s-flex-box/s-flex-box.js +6 -14
  103. package/dist/s-form/s-form.js +11 -19
  104. package/dist/s-gallery/index.js +3 -33
  105. package/dist/s-gallery/s-gallery.js +91 -114
  106. package/dist/s-glow-button/s-glow-button.js +22 -26
  107. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  108. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  109. package/dist/s-icon-button/s-icon-button.js +6 -14
  110. package/dist/s-image-comparison/package.json +5 -5
  111. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  112. package/dist/s-image-modal/package.json +5 -5
  113. package/dist/s-image-modal/s-image-modal.js +137 -150
  114. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  115. package/dist/s-label/s-label.js +12 -20
  116. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  117. package/dist/s-lazy-image/index.js +2 -10
  118. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  119. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  120. package/dist/s-moving-border/s-moving-border.js +52 -67
  121. package/dist/s-multi-select/s-multi-select.js +43 -51
  122. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  123. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  124. package/dist/s-pagination/s-pagination.js +13 -17
  125. package/dist/s-pixel-reveal/package.json +5 -5
  126. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  127. package/dist/s-radial-pulse-animate/package.json +5 -5
  128. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  129. package/dist/s-rating/package.json +5 -5
  130. package/dist/s-rating/s-rating.js +7 -15
  131. package/dist/s-review/package.json +5 -5
  132. package/dist/s-review/s-review.js +101 -106
  133. package/dist/s-scroll-reveal/package.json +5 -5
  134. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  135. package/dist/s-scroll-to-top/package.json +5 -5
  136. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  137. package/dist/s-scroll-velocity/package.json +5 -5
  138. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  139. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  140. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  141. package/dist/s-select/s-select.js +67 -75
  142. package/dist/s-select-list/s-select-list.js +28 -32
  143. package/dist/s-skeleton/s-skeleton.js +20 -28
  144. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  145. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  146. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  147. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  148. package/dist/s-stripe/s-stripe-number.js +8 -12
  149. package/dist/s-stripe/s-stripe.d.ts +2 -2
  150. package/dist/s-stripe/s-stripe.js +17 -26
  151. package/dist/s-stripe/stripe-input.js +25 -29
  152. package/dist/s-tabs/package.json +3 -3
  153. package/dist/s-tabs/s-tab-panel.js +17 -25
  154. package/dist/s-tabs/s-tab.js +5 -9
  155. package/dist/s-tabs/s-tabs.js +19 -27
  156. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  157. package/dist/s-text-editor/s-text-editor.js +33 -45
  158. package/dist/s-text-field/s-text-field.js +31 -40
  159. package/dist/s-text-shimmer/package.json +4 -4
  160. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  161. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  162. package/dist/s-theme-demo/package.json +5 -5
  163. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  164. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  165. package/dist/s-theme-switch/package.json +4 -4
  166. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  167. package/dist/s-tip/s-tip.js +14 -22
  168. package/dist/s-two-pane-layout/index.js +2 -10
  169. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  170. package/dist/s-typewriter-text/package.json +5 -5
  171. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  172. package/dist/s-zoom-image/index.js +2 -10
  173. package/dist/s-zoom-image/package.json +5 -5
  174. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  175. package/dist/styled-B0KflPi-.js +203 -0
  176. package/dist/theme/components/alert.d.ts +484 -264
  177. package/dist/theme/components/avatar.js +2 -2
  178. package/dist/theme/components/button.d.ts +726 -396
  179. package/dist/theme/components/chip.js +2 -2
  180. package/dist/theme/components/icon-button.d.ts +726 -396
  181. package/dist/theme/customizations/data-display.js +1 -1
  182. package/dist/theme/customizations/inputs.js +2 -2
  183. package/dist/theme/customizations/navigation.js +2 -2
  184. package/dist/theme/theme-primitives.d.ts +8 -246
  185. package/dist/theme/theme-primitives.js +76 -87
  186. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  187. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  188. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  189. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  190. package/dist/utils/dayjs.js +7 -7
  191. package/dist/utils/logger.js +29 -32
  192. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  193. package/package.json +240 -81
  194. package/README.md +0 -13
  195. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  196. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  197. package/dist/Paper-hkbPWyBT.js +0 -553
  198. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  199. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  200. package/dist/extendSxProp-BKWjdW12.js +0 -37
  201. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  202. package/dist/resolveProps-61uUKnlS.js +0 -52
  203. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,66 +1,62 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as s from "react";
3
- import { Snackbar as k, Alert as f } from "@mui/material";
4
- import { useDialog as S } from "../hooks/use-dialog.js";
5
- const t = ({
6
- message: a,
1
+ import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as a from "react";
3
+ import { Snackbar as S, Alert as h } from "@mui/material";
4
+ import { useDialog as x } from "../hooks/use-dialog.js";
5
+ const c = ({
6
+ message: s,
7
7
  onClose: e = () => {
8
8
  },
9
- open: r = !1,
10
- snackbarProps: o,
11
- alertProps: l
12
- }) => /* @__PURE__ */ n.jsx(
13
- k,
9
+ open: n = !1,
10
+ snackbarProps: t,
11
+ alertProps: o
12
+ }) => /* @__PURE__ */ r.jsx(
13
+ S,
14
14
  {
15
- open: r,
15
+ open: n,
16
16
  autoHideDuration: 1e4,
17
17
  onClose: e,
18
18
  anchorOrigin: { vertical: "top", horizontal: "center" },
19
- ...o,
20
- children: /* @__PURE__ */ n.jsx(f, { onClose: e, severity: "info", sx: { width: "100%" }, ...l, children: a })
19
+ ...t,
20
+ children: /* @__PURE__ */ r.jsx(h, { onClose: e, severity: "info", sx: { width: "100%" }, ...o, children: s })
21
21
  }
22
22
  );
23
- t.displayName = "SSnackbarMessage";
24
- const c = s.createContext(null), M = ({ children: a }) => {
25
- const e = S(), [r, o] = s.useState({
23
+ c.displayName = "SSnackbarMessage";
24
+ const l = a.createContext(null), C = ({ children: s }) => {
25
+ const e = x(), [n, t] = a.useState({
26
26
  message: ""
27
- }), [l, i] = s.useState({}), [p, d] = s.useState({}), u = {
28
- handleOpen: s.useCallback(
29
- ({ snackbarMessageOptions: m, snackbarProps: b = {}, alertProps: g = {} }) => {
30
- const { message: h } = m || { message: "" };
31
- o({ message: h }), i(b), d(g), e.handleOpen();
27
+ }), [o, i] = a.useState({}), [p, u] = a.useState({}), g = {
28
+ handleOpen: a.useCallback(
29
+ ({ snackbarMessageOptions: d, snackbarProps: b = {}, alertProps: m = {} }) => {
30
+ const { message: k } = d || { message: "" };
31
+ t({ message: k }), i(b), u(m), e.handleOpen();
32
32
  },
33
33
  [e]
34
34
  ),
35
35
  handleClose: e.handleClose,
36
36
  open: e.open
37
37
  };
38
- return /* @__PURE__ */ n.jsxs(c.Provider, { value: u, children: [
39
- /* @__PURE__ */ n.jsx(
40
- t,
38
+ return /* @__PURE__ */ r.jsxs(l.Provider, { value: g, children: [
39
+ /* @__PURE__ */ r.jsx(
40
+ c,
41
41
  {
42
42
  open: e.open,
43
- message: r == null ? void 0 : r.message,
43
+ message: n?.message,
44
44
  onClose: e.handleClose,
45
- snackbarProps: l,
45
+ snackbarProps: o,
46
46
  alertProps: p
47
47
  }
48
48
  ),
49
- a
49
+ s
50
50
  ] });
51
- }, C = () => {
52
- const a = s.useContext(c);
53
- if (!a)
51
+ }, j = () => {
52
+ const s = a.useContext(l);
53
+ if (!s)
54
54
  throw new Error("useSnackbarMessage must be used within a SnackbarMessageProvider");
55
- return a;
55
+ return s;
56
56
  };
57
- try {
58
- t.displayName = "SSnackbarMessage", t.__docgenInfo = { description: "A notification snackbar component that displays temporary messages with Material-UI Alert styling.", displayName: "SSnackbarMessage", props: { message: { defaultValue: null, description: "Message content - can be string or React element", name: "message", required: !1, type: { name: "ReactNode" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when snackbar should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the snackbar is open", name: "open", required: !1, type: { name: "boolean" } }, snackbarProps: { defaultValue: null, description: "Additional props passed to the Snackbar component", name: "snackbarProps", required: !1, type: { name: "SnackbarProps" } }, alertProps: { defaultValue: null, description: "Additional props passed to the Alert component", name: "alertProps", required: !1, type: { name: "AlertProps" } } } };
59
- } catch {
60
- }
61
57
  export {
62
- t as SSnackbarMessage,
63
- M as SnackbarMessageProvider,
64
- t as default,
65
- C as useSnackbarMessage
58
+ c as SSnackbarMessage,
59
+ C as SnackbarMessageProvider,
60
+ c as default,
61
+ j as useSnackbarMessage
66
62
  };
@@ -1,45 +1,45 @@
1
- import { j as w } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useRef as S, useEffect as b } from "react";
3
- import { Box as C } from "@mui/material";
4
- const x = (t) => {
5
- const a = S(null);
6
- return b(() => {
1
+ import { j as p } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useRef as g, useEffect as x } from "react";
3
+ import { Box as E } from "@mui/material";
4
+ const b = (t) => {
5
+ const a = g(null);
6
+ return x(() => {
7
7
  const e = a.current;
8
8
  if (!e) return;
9
- const n = e.getContext("2d");
10
- if (!n) return;
11
- let c, r = -1e3, i = -1e3;
12
- const d = () => {
9
+ const o = e.getContext("2d");
10
+ if (!o) return;
11
+ let d, r = -1e3, s = -1e3;
12
+ const c = () => {
13
13
  e.width = window.innerWidth, e.height = window.innerHeight;
14
- }, u = (o) => {
15
- r = o.clientX, i = o.clientY;
16
- }, h = () => {
17
- r = -1e3, i = -1e3;
18
- }, p = (o) => {
19
- const s = parseInt(o.slice(1), 16), f = s >> 16 & 255, g = s >> 8 & 255, v = s & 255;
20
- return `${f},${g},${v}`;
14
+ }, l = (n) => {
15
+ r = n.clientX, s = n.clientY;
21
16
  }, m = () => {
22
- if (n.clearRect(0, 0, e.width, e.height), r !== -1e3 && i !== -1e3) {
23
- const o = n.createRadialGradient(r, i, 0, r, i, t.radius || 200), s = p(t.color);
24
- o.addColorStop(0, `rgba(${s}, ${t.brightness})`), o.addColorStop(1, "rgba(0,0,0,0)"), n.fillStyle = o, n.fillRect(0, 0, e.width, e.height);
17
+ r = -1e3, s = -1e3;
18
+ }, h = (n) => {
19
+ const i = parseInt(n.slice(1), 16), w = i >> 16 & 255, v = i >> 8 & 255, f = i & 255;
20
+ return `${w},${v},${f}`;
21
+ }, u = () => {
22
+ if (o.clearRect(0, 0, e.width, e.height), r !== -1e3 && s !== -1e3) {
23
+ const n = o.createRadialGradient(r, s, 0, r, s, t.radius || 200), i = h(t.color);
24
+ n.addColorStop(0, `rgba(${i}, ${t.brightness})`), n.addColorStop(1, "rgba(0,0,0,0)"), o.fillStyle = n, o.fillRect(0, 0, e.width, e.height);
25
25
  }
26
- c = requestAnimationFrame(m);
26
+ d = requestAnimationFrame(u);
27
27
  };
28
- return d(), window.addEventListener("resize", d), window.addEventListener("mousemove", u), window.addEventListener("mouseleave", h), c = requestAnimationFrame(m), () => {
29
- window.removeEventListener("resize", d), window.removeEventListener("mousemove", u), window.removeEventListener("mouseleave", h), cancelAnimationFrame(c);
28
+ return c(), window.addEventListener("resize", c), window.addEventListener("mousemove", l), window.addEventListener("mouseleave", m), d = requestAnimationFrame(u), () => {
29
+ window.removeEventListener("resize", c), window.removeEventListener("mousemove", l), window.removeEventListener("mouseleave", m), cancelAnimationFrame(d);
30
30
  };
31
31
  }, [t.radius, t.brightness, t.color]), a;
32
- }, l = ({
32
+ }, R = ({
33
33
  config: t = { radius: 200, brightness: 0.15, color: "#0000ff", smoothing: 0.1 },
34
34
  className: a,
35
35
  ...e
36
36
  }) => {
37
- const n = x(t);
38
- return /* @__PURE__ */ w.jsx(
39
- C,
37
+ const o = b(t);
38
+ return /* @__PURE__ */ p.jsx(
39
+ E,
40
40
  {
41
41
  component: "canvas",
42
- ref: n,
42
+ ref: o,
43
43
  className: a,
44
44
  sx: {
45
45
  position: "fixed",
@@ -54,12 +54,8 @@ const x = (t) => {
54
54
  }
55
55
  );
56
56
  };
57
- l.displayName = "SSpotlightCursor";
58
- try {
59
- l.displayName = "SSpotlightCursor", l.__docgenInfo = { description: "Creates an interactive spotlight effect that follows the mouse cursor.", displayName: "SSpotlightCursor", props: { config: { defaultValue: { value: "{ radius: 200, brightness: 0.15, color: '#0000ff', smoothing: 0.1 }" }, description: "Configuration object for spotlight appearance and behavior", name: "config", required: !1, type: { name: "SpotlightConfig" } } } };
60
- } catch {
61
- }
57
+ R.displayName = "SSpotlightCursor";
62
58
  export {
63
- l as SSpotlightCursor,
64
- l as default
59
+ R as SSpotlightCursor,
60
+ R as default
65
61
  };
@@ -1,15 +1,11 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { CardCvcElement as n } from "@stripe/react-stripe-js";
3
- import { StripeTextField as a } from "./s-stripe.js";
4
- function e(t) {
5
- return /* @__PURE__ */ r.jsx(a, { label: "CVC", stripeElement: n, ...t });
6
- }
7
- e.displayName = "SStripeCVC";
8
- try {
9
- e.displayName = "SStripeCVC", e.__docgenInfo = { description: "Card security code (CVC/CVV) input field with Stripe integration.", displayName: "SStripeCVC", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardCvcElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardCvcElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardCvcElementComponent" } } } };
10
- } catch {
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { CardCvcElement as r } from "@stripe/react-stripe-js";
3
+ import { StripeTextField as i } from "./s-stripe.js";
4
+ function m(e) {
5
+ return /* @__PURE__ */ t.jsx(i, { label: "CVC", stripeElement: r, ...e });
11
6
  }
7
+ m.displayName = "SStripeCVC";
12
8
  export {
13
- e as SStripeCVC,
14
- e as default
9
+ m as SStripeCVC,
10
+ m as default
15
11
  };
@@ -1,15 +1,11 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import { CardExpiryElement as i } from "@stripe/react-stripe-js";
3
- import { StripeTextField as n } from "./s-stripe.js";
4
- function e(r) {
5
- return /* @__PURE__ */ t.jsx(n, { label: "Expiration", stripeElement: i, ...r });
6
- }
7
- e.displayName = "SStripeExpiry";
8
- try {
9
- e.displayName = "SStripeExpiry", e.__docgenInfo = { description: "Card expiration date input field with Stripe integration.", displayName: "SStripeExpiry", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardExpiryElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardExpiryElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardExpiryElementComponent" } } } };
10
- } catch {
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { CardExpiryElement as e } from "@stripe/react-stripe-js";
3
+ import { StripeTextField as i } from "./s-stripe.js";
4
+ function p(r) {
5
+ return /* @__PURE__ */ t.jsx(i, { label: "Expiration", stripeElement: e, ...r });
11
6
  }
7
+ p.displayName = "SStripeExpiry";
12
8
  export {
13
- e as SStripeExpiry,
14
- e as default
9
+ p as SStripeExpiry,
10
+ p as default
15
11
  };
@@ -1,15 +1,11 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import { CardNumberElement as n } from "@stripe/react-stripe-js";
3
- import { StripeTextField as a } from "./s-stripe.js";
4
- function e(r) {
5
- return /* @__PURE__ */ t.jsx(a, { label: "Card Number", stripeElement: n, ...r });
6
- }
7
- e.displayName = "SStripeNumber";
8
- try {
9
- e.displayName = "SStripeNumber", e.__docgenInfo = { description: "Card number input field with Stripe integration.", displayName: "SStripeNumber", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardNumberElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardNumberElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardNumberElementComponent" } } } };
10
- } catch {
1
+ import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
+ import { CardNumberElement as t } from "@stripe/react-stripe-js";
3
+ import { StripeTextField as m } from "./s-stripe.js";
4
+ function i(e) {
5
+ return /* @__PURE__ */ r.jsx(m, { label: "Card Number", stripeElement: t, ...e });
11
6
  }
7
+ i.displayName = "SStripeNumber";
12
8
  export {
13
- e as SStripeNumber,
14
- e as default
9
+ i as SStripeNumber,
10
+ i as default
15
11
  };
@@ -1,10 +1,10 @@
1
- import { AuBankAccountElement, CardCvcElement, CardExpiryElement, CardNumberElement, FpxBankElement, IbanElement, IdealBankElement } from '@stripe/react-stripe-js';
1
+ import { AuBankAccountElement, CardCvcElement, CardExpiryElement, CardNumberElement, IbanElement } from '@stripe/react-stripe-js';
2
2
  import { STextFieldProps } from '../s-text-field';
3
3
  /**
4
4
  * Union type of all supported Stripe Elements
5
5
  * Includes card payment elements and various regional payment methods
6
6
  */
7
- export type StripeElement = typeof AuBankAccountElement | typeof CardCvcElement | typeof CardExpiryElement | typeof CardNumberElement | typeof FpxBankElement | typeof IbanElement | typeof IdealBankElement;
7
+ export type StripeElement = typeof AuBankAccountElement | typeof CardCvcElement | typeof CardExpiryElement | typeof CardNumberElement | typeof IbanElement;
8
8
  /**
9
9
  * Props for Stripe-integrated text field components
10
10
  * Extends STextField props but excludes conflicting props that are handled by Stripe
@@ -1,47 +1,38 @@
1
- import { j as m } from "../jsx-runtime-OVHDjVDe.js";
2
- import { STextField as d } from "../s-text-field/s-text-field.js";
1
+ import { j as l } from "../jsx-runtime-tc70JA_2.js";
3
2
  import u from "./stripe-input.js";
4
- const r = (t) => {
5
- var a;
6
- const { helperText: l, slotProps: e, inputProps: i, error: n, labelErrorMessage: p, stripeElement: s, ...o } = t;
7
- return /* @__PURE__ */ m.jsx(
8
- d,
3
+ import { STextField as m } from "../s-text-field/s-text-field.js";
4
+ const a = (r) => {
5
+ const { helperText: p, slotProps: t, inputProps: o, error: e, labelErrorMessage: i, stripeElement: n, ...s } = r;
6
+ return /* @__PURE__ */ l.jsx(
7
+ m,
9
8
  {
10
9
  fullWidth: !0,
11
10
  slotProps: {
12
11
  inputLabel: {
13
- ...e == null ? void 0 : e.inputLabel,
12
+ ...t?.inputLabel,
14
13
  shrink: !0
15
14
  // Always shrink label since Stripe elements don't support placeholder-driven shrinking
16
15
  },
17
16
  input: {
18
- ...e == null ? void 0 : e.input,
17
+ ...t?.input,
19
18
  inputProps: {
20
- ...i,
21
- ...(a = e == null ? void 0 : e.input) == null ? void 0 : a.inputProps,
22
- component: s
19
+ ...o,
20
+ ...t?.input?.inputProps,
21
+ component: n
23
22
  // Pass Stripe element as component
24
23
  },
25
24
  inputComponent: u
26
25
  // Custom input component for Stripe integration
27
26
  }
28
27
  },
29
- error: n,
30
- helperText: n ? p : l,
31
- ...o
28
+ error: e,
29
+ helperText: e ? i : p,
30
+ ...s
32
31
  }
33
32
  );
34
33
  };
35
- r.displayName = "StripeTextField";
36
- try {
37
- r.displayName = "StripeTextField", r.__docgenInfo = { description: "Generic Stripe text field component that integrates Stripe Elements with Material-UI styling.", displayName: "StripeTextField", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "AuBankAccountElementProps | CardCvcElementProps | CardExpiryElementProps | CardNumberElementProps | FpxBankElementProps | IbanElementProps | IdealBankElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeAuBankAccountElementChangeEvent) => any) | ((event: StripeCardCvcElementChangeEvent) => any) | ... 5 more ..." } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "StripeElement" } } } };
38
- } catch {
39
- }
40
- try {
41
- sstripe.displayName = "sstripe", sstripe.__docgenInfo = { description: "Generic Stripe text field component that integrates Stripe Elements with Material-UI styling.", displayName: "sstripe", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "AuBankAccountElementProps | CardCvcElementProps | CardExpiryElementProps | CardNumberElementProps | FpxBankElementProps | IbanElementProps | IdealBankElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeAuBankAccountElementChangeEvent) => any) | ((event: StripeCardCvcElementChangeEvent) => any) | ... 5 more ..." } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "StripeElement" } } } };
42
- } catch {
43
- }
34
+ a.displayName = "StripeTextField";
44
35
  export {
45
- r as StripeTextField,
46
- r as default
36
+ a as StripeTextField,
37
+ a as default
47
38
  };
@@ -1,4 +1,4 @@
1
- import { j as h } from "../jsx-runtime-OVHDjVDe.js";
1
+ import { j as h } from "../jsx-runtime-tc70JA_2.js";
2
2
  import * as o from "react";
3
3
  import '../assets/stripe-input.css';const y = {
4
4
  dark: {
@@ -28,63 +28,59 @@ function S() {
28
28
  function c() {
29
29
  return y[S()];
30
30
  }
31
- function d(t, n) {
31
+ function d(e, n) {
32
32
  return {
33
33
  base: {
34
34
  fontFamily: "Outfit, sans-serif",
35
35
  lineHeight: "1.5",
36
- color: n ? t.textSecondary : t.text,
36
+ color: n ? e.textSecondary : e.text,
37
37
  "::placeholder": {
38
- color: t.placeholder
38
+ color: e.placeholder
39
39
  }
40
40
  },
41
41
  invalid: {
42
- color: t.error
42
+ color: e.error
43
43
  }
44
44
  };
45
45
  }
46
- const g = o.forwardRef(function(n, u) {
47
- const { component: l, options: p, ...r } = n, [e, m] = o.useState(null);
46
+ const g = o.forwardRef(function(n, l) {
47
+ const { component: u, options: m, ...t } = n, [r, f] = o.useState(null);
48
48
  o.useImperativeHandle(
49
- u,
49
+ l,
50
50
  () => ({
51
- focus: () => e == null ? void 0 : e.focus()
51
+ focus: () => r?.focus()
52
52
  }),
53
- [e]
53
+ [r]
54
54
  ), o.useEffect(() => {
55
- if (!e) return;
55
+ if (!r) return;
56
56
  const b = () => {
57
57
  const a = c();
58
- e.update({
59
- style: d(a, r.disabled)
58
+ r.update({
59
+ style: d(a, t.disabled)
60
60
  });
61
- }, s = new MutationObserver((a) => {
62
- for (const i of a)
63
- if (i.attributeName === "data-mui-color-scheme" || i.attributeName === "class" || i.attributeName === "style") {
61
+ }, i = new MutationObserver((a) => {
62
+ for (const s of a)
63
+ if (s.attributeName === "data-mui-color-scheme" || s.attributeName === "class" || s.attributeName === "style") {
64
64
  requestAnimationFrame(b);
65
65
  break;
66
66
  }
67
67
  });
68
- return s.observe(document.documentElement, { attributes: !0 }), () => s.disconnect();
69
- }, [e, r.disabled]);
70
- const f = c();
68
+ return i.observe(document.documentElement, { attributes: !0 }), () => i.disconnect();
69
+ }, [r, t.disabled]);
70
+ const p = c();
71
71
  return /* @__PURE__ */ h.jsx(
72
- l,
72
+ u,
73
73
  {
74
- onReady: m,
74
+ onReady: f,
75
75
  options: {
76
- ...p,
77
- style: d(f, r.disabled),
78
- disabled: r.disabled
76
+ ...m,
77
+ style: d(p, t.disabled),
78
+ disabled: t.disabled
79
79
  },
80
- ...r
80
+ ...t
81
81
  }
82
82
  );
83
83
  });
84
- try {
85
- stripeinput.displayName = "stripeinput", stripeinput.__docgenInfo = { description: "Forward ref component for Stripe Elements integration with Material-UI", displayName: "stripeinput", props: {} };
86
- } catch {
87
- }
88
84
  export {
89
85
  g as default
90
86
  };
@@ -1,4 +1,4 @@
1
- {
2
- "name": "s-tabs",
3
- "main": "./index.ts"
1
+ {
2
+ "name": "s-tabs",
3
+ "main": "./index.ts"
4
4
  }
@@ -1,37 +1,29 @@
1
- import { j as p } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as u } from "react";
3
- import { Box as s } from "@mui/material";
4
- const t = u(
5
- ({ children: e, value: l, index: a, keepMounted: r = !1, sx: d, ...i }, o) => {
6
- const n = l === a;
7
- return n || r ? /* @__PURE__ */ p.jsx(
8
- s,
1
+ import { j as d } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as i } from "react";
3
+ import { Box as p } from "@mui/material";
4
+ const b = i(
5
+ ({ children: o, value: r, index: a, keepMounted: l = !1, sx: t, ...s }, n) => {
6
+ const e = r === a;
7
+ return e || l ? /* @__PURE__ */ d.jsx(
8
+ p,
9
9
  {
10
- ref: o,
10
+ ref: n,
11
11
  role: "tabpanel",
12
- hidden: !n,
12
+ hidden: !e,
13
13
  id: `tabpanel-${a}`,
14
14
  "aria-labelledby": `tab-${a}`,
15
15
  sx: {
16
- ...d,
17
- display: n ? "block" : "none"
16
+ ...t,
17
+ display: e ? "block" : "none"
18
18
  },
19
- ...i,
20
- children: e
19
+ ...s,
20
+ children: o
21
21
  }
22
22
  ) : null;
23
23
  }
24
24
  );
25
- t.displayName = "STabPanel";
26
- try {
27
- t.displayName = "STabPanel", t.__docgenInfo = { description: "Individual tab content panel component with advanced mounting controls.", displayName: "STabPanel", props: { children: { defaultValue: null, description: "Content to display in the tab panel", name: "children", required: !1, type: { name: "ReactNode" } }, value: { defaultValue: null, description: "Current active tab index from the parent tabs component", name: "value", required: !0, type: { name: "number" } }, index: { defaultValue: null, description: "Index of this specific tab panel (0-based)", name: "index", required: !0, type: { name: "number" } }, keepMounted: { defaultValue: { value: "false" }, description: "Keep the panel mounted in the DOM when not active", name: "keepMounted", required: !1, type: { name: "boolean" } } } };
28
- } catch {
29
- }
30
- try {
31
- stabpanel.displayName = "stabpanel", stabpanel.__docgenInfo = { description: "Individual tab content panel component with advanced mounting controls.", displayName: "stabpanel", props: { children: { defaultValue: null, description: "Content to display in the tab panel", name: "children", required: !1, type: { name: "ReactNode" } }, value: { defaultValue: null, description: "Current active tab index from the parent tabs component", name: "value", required: !0, type: { name: "number" } }, index: { defaultValue: null, description: "Index of this specific tab panel (0-based)", name: "index", required: !0, type: { name: "number" } }, keepMounted: { defaultValue: { value: "false" }, description: "Keep the panel mounted in the DOM when not active", name: "keepMounted", required: !1, type: { name: "boolean" } } } };
32
- } catch {
33
- }
25
+ b.displayName = "STabPanel";
34
26
  export {
35
- t as STabPanel,
36
- t as default
27
+ b as STabPanel,
28
+ b as default
37
29
  };
@@ -1,12 +1,8 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
1
+ import { j as a } from "../jsx-runtime-tc70JA_2.js";
2
2
  import { forwardRef as t } from "react";
3
- import { Tab as p } from "@mui/material";
4
- const r = t((a, o) => /* @__PURE__ */ e.jsx(p, { ref: o, ...a }));
5
- r.displayName = "STab";
6
- try {
7
- r.displayName = "STab", r.__docgenInfo = { description: "", displayName: "STab", props: {} };
8
- } catch {
9
- }
3
+ import { Tab as m } from "@mui/material";
4
+ const s = t((r, o) => /* @__PURE__ */ a.jsx(m, { ref: o, ...r }));
5
+ s.displayName = "STab";
10
6
  export {
11
- r as default
7
+ s as default
12
8
  };
@@ -1,43 +1,35 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import o, { forwardRef as f } from "react";
3
- import { Tabs as y, Tab as h, Box as _ } from "@mui/material";
4
- const s = f(
5
- ({ tabs: l, activeTab: a = 0, onTabChange: r, children: i, tabPanelProps: c, ...u }, b) => {
6
- const [d, p] = o.useState(a);
7
- o.useEffect(() => {
8
- a !== !1 && p(a);
9
- }, [a]);
10
- const m = (e, t) => {
11
- a === !1 && p(t), r == null || r(e, t);
1
+ import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
+ import a, { forwardRef as c } from "react";
3
+ import { Tabs as x, Tab as h, Box as j } from "@mui/material";
4
+ const g = c(
5
+ ({ tabs: d, activeTab: s = 0, onTabChange: p, children: l, tabPanelProps: f, ...t }, m) => {
6
+ const [n, i] = a.useState(s);
7
+ a.useEffect(() => {
8
+ s !== !1 && i(s);
9
+ }, [s]);
10
+ const u = (e, o) => {
11
+ s === !1 && i(o), p?.(e, o);
12
12
  };
13
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
14
- /* @__PURE__ */ n.jsx(y, { ref: b, value: d, onChange: m, ...u, children: l.map((e, t) => /* @__PURE__ */ n.jsx(
13
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
14
+ /* @__PURE__ */ r.jsx(x, { ref: m, value: n, onChange: u, ...t, children: d.map((e, o) => /* @__PURE__ */ r.jsx(
15
15
  h,
16
16
  {
17
17
  label: e.label,
18
- value: e.value ?? t,
18
+ value: e.value ?? o,
19
19
  disabled: e.disabled,
20
20
  icon: e.icon,
21
21
  iconPosition: e.iconPosition,
22
22
  wrapped: e.wrapped,
23
23
  ...e.tabProps
24
24
  },
25
- t
25
+ o
26
26
  )) }),
27
- i && /* @__PURE__ */ n.jsx(_, { role: "tabpanel", padding: 2, ...c, children: o.Children.toArray(i)[d] })
27
+ l && /* @__PURE__ */ r.jsx(j, { role: "tabpanel", padding: 2, ...f, children: a.Children.toArray(l)[n] })
28
28
  ] });
29
29
  }
30
30
  );
31
- s.displayName = "STabs";
32
- try {
33
- s.displayName = "STabs", s.__docgenInfo = { description: "A flexible tabs component system built on Material-UI Tabs.", displayName: "STabs", props: { children: { defaultValue: null, description: "Tab panel content. Children are matched to tabs by index", name: "children", required: !1, type: { name: "ReactNode" } }, tabs: { defaultValue: null, description: "Array of tab configuration objects defining the tabs to display", name: "tabs", required: !0, type: { name: "STabItem[]" } }, activeTab: { defaultValue: { value: "0" }, description: "Index of the currently active tab. Set to false for uncontrolled mode", name: "activeTab", required: !1, type: { name: "number | false" } }, onTabChange: { defaultValue: null, description: "Callback function called when a tab is selected", name: "onTabChange", required: !1, type: { name: "((event: SyntheticEvent<Element, Event>, value: number) => void)" } }, tabPanelProps: { defaultValue: null, description: "Additional props passed to the tab panel wrapper Box component", name: "tabPanelProps", required: !1, type: { name: "BoxProps" } } } };
34
- } catch {
35
- }
36
- try {
37
- stabs.displayName = "stabs", stabs.__docgenInfo = { description: "A flexible tabs component system built on Material-UI Tabs.", displayName: "stabs", props: { children: { defaultValue: null, description: "Tab panel content. Children are matched to tabs by index", name: "children", required: !1, type: { name: "ReactNode" } }, tabs: { defaultValue: null, description: "Array of tab configuration objects defining the tabs to display", name: "tabs", required: !0, type: { name: "STabItem[]" } }, activeTab: { defaultValue: { value: "0" }, description: "Index of the currently active tab. Set to false for uncontrolled mode", name: "activeTab", required: !1, type: { name: "number | false" } }, onTabChange: { defaultValue: null, description: "Callback function called when a tab is selected", name: "onTabChange", required: !1, type: { name: "((event: SyntheticEvent<Element, Event>, value: number) => void)" } }, tabPanelProps: { defaultValue: null, description: "Additional props passed to the tab panel wrapper Box component", name: "tabPanelProps", required: !1, type: { name: "BoxProps" } } } };
38
- } catch {
39
- }
31
+ g.displayName = "STabs";
40
32
  export {
41
- s as STabs,
42
- s as default
33
+ g as STabs,
34
+ g as default
43
35
  };