@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,46 +1,39 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useRef as m, useEffect as w } from "react";
3
- import { Box as a } from "@mui/material";
4
- import { useMotionValue as _, useAnimationFrame as j, useTransform as g, useMotionTemplate as S, motion as C } from "framer-motion";
5
- const N = 250, h = (n, o) => ({
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useRef as u, useEffect as j } from "react";
3
+ import { Box as o } from "@mui/material";
4
+ import { useMotionValue as v, useAnimationFrame as y, useTransform as x, useMotionTemplate as w, motion as E } from "framer-motion";
5
+ const L = 250, d = (e, n) => ({
6
6
  position: "absolute",
7
7
  left: "50%",
8
8
  top: "50%",
9
- width: `${n}px`,
10
- height: `${n}px`,
9
+ width: `${e}px`,
10
+ height: `${e}px`,
11
11
  transform: "translate(-50%, -50%)",
12
12
  opacity: 0.5,
13
- background: `radial-gradient(${o} 40%, transparent 60%)`,
13
+ background: `radial-gradient(${n} 40%, transparent 60%)`,
14
14
  filter: "blur(12px)",
15
15
  // Creates the soft glow effect
16
16
  pointerEvents: "none"
17
17
  // Prevents interference with user interactions
18
18
  });
19
- function y({
20
- children: n,
21
- duration: o,
22
- rx: u,
23
- ry: d,
24
- phase: c = 0
19
+ function f({
20
+ children: e,
21
+ duration: n,
22
+ rx: h,
23
+ ry: a,
24
+ phase: l = 0
25
25
  }) {
26
- const i = m(null), s = _(0);
27
- j((l) => {
28
- var r;
29
- const t = (r = i.current) == null ? void 0 : r.getTotalLength();
30
- if (t) {
31
- const b = t / o;
32
- s.set((l * b + t * c) % t);
26
+ const r = u(null), s = v(0);
27
+ y((i) => {
28
+ const c = r.current?.getTotalLength();
29
+ if (c) {
30
+ const b = c / n;
31
+ s.set((i * b + c * l) % c);
33
32
  }
34
33
  });
35
- const p = g(s, (l) => {
36
- var t, r;
37
- return (r = (t = i.current) == null ? void 0 : t.getPointAtLength(l)) == null ? void 0 : r.x;
38
- }), x = g(s, (l) => {
39
- var t, r;
40
- return (r = (t = i.current) == null ? void 0 : t.getPointAtLength(l)) == null ? void 0 : r.y;
41
- }), v = S`translateX(${p}px) translateY(${x}px) translateX(-50%) translateY(-50%)`;
42
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
43
- /* @__PURE__ */ e.jsx(
34
+ const p = x(s, (i) => r.current?.getPointAtLength(i)?.x), m = x(s, (i) => r.current?.getPointAtLength(i)?.y), g = w`translateX(${p}px) translateY(${m}px) translateX(-50%) translateY(-50%)`;
35
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
36
+ /* @__PURE__ */ t.jsx(
44
37
  "svg",
45
38
  {
46
39
  xmlns: "http://www.w3.org/2000/svg",
@@ -48,38 +41,38 @@ function y({
48
41
  width: "100%",
49
42
  height: "100%",
50
43
  style: { position: "absolute", inset: 0 },
51
- children: /* @__PURE__ */ e.jsx("rect", { fill: "none", width: "100%", height: "100%", rx: u, ry: d, ref: i })
44
+ children: /* @__PURE__ */ t.jsx("rect", { fill: "none", width: "100%", height: "100%", rx: h, ry: a, ref: r })
52
45
  }
53
46
  ),
54
- /* @__PURE__ */ e.jsx(
55
- C.div,
47
+ /* @__PURE__ */ t.jsx(
48
+ E.div,
56
49
  {
57
50
  style: {
58
51
  position: "absolute",
59
52
  top: 0,
60
53
  left: 0,
61
54
  display: "inline-block",
62
- transform: v
55
+ transform: g
63
56
  },
64
- children: n
57
+ children: e
65
58
  }
66
59
  )
67
60
  ] });
68
61
  }
69
- const f = ({
70
- className: n,
71
- duration: o = 6e3,
72
- children: u,
73
- glowColor: d = "var(--s-palette-primary-main)",
74
- glowSize: c = N,
75
- ...i
62
+ const M = ({
63
+ className: e,
64
+ duration: n = 6e3,
65
+ children: h,
66
+ glowColor: a = "var(--s-palette-primary-main)",
67
+ glowSize: l = L,
68
+ ...r
76
69
  }) => {
77
- const s = m(null), p = m(null);
78
- return w(() => () => {
70
+ const s = u(null), p = u(null);
71
+ return j(() => () => {
79
72
  p.current !== null && window.cancelAnimationFrame(p.current);
80
73
  }, []), // Main container with relative positioning for absolute children
81
- /* @__PURE__ */ e.jsxs(
82
- a,
74
+ /* @__PURE__ */ t.jsxs(
75
+ o,
83
76
  {
84
77
  position: "relative",
85
78
  overflow: "hidden",
@@ -89,15 +82,15 @@ const f = ({
89
82
  sx: {
90
83
  backgroundColor: "transparent"
91
84
  },
92
- className: n,
93
- ...i,
85
+ className: e,
86
+ ...r,
94
87
  children: [
95
- /* @__PURE__ */ e.jsxs(a, { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, children: [
96
- /* @__PURE__ */ e.jsx(y, { duration: o, rx: "100%", ry: "100%", phase: 0, children: /* @__PURE__ */ e.jsx(a, { sx: h(c, d) }) }),
97
- /* @__PURE__ */ e.jsx(y, { duration: o, rx: "100%", ry: "100%", phase: 0.5, children: /* @__PURE__ */ e.jsx(a, { sx: h(c, d) }) })
88
+ /* @__PURE__ */ t.jsxs(o, { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, children: [
89
+ /* @__PURE__ */ t.jsx(f, { duration: n, rx: "100%", ry: "100%", phase: 0, children: /* @__PURE__ */ t.jsx(o, { sx: d(l, a) }) }),
90
+ /* @__PURE__ */ t.jsx(f, { duration: n, rx: "100%", ry: "100%", phase: 0.5, children: /* @__PURE__ */ t.jsx(o, { sx: d(l, a) }) })
98
91
  ] }),
99
- /* @__PURE__ */ e.jsx(
100
- a,
92
+ /* @__PURE__ */ t.jsx(
93
+ o,
101
94
  {
102
95
  sx: {
103
96
  position: "absolute",
@@ -108,8 +101,8 @@ const f = ({
108
101
  height: "100%",
109
102
  zIndex: 2
110
103
  },
111
- children: /* @__PURE__ */ e.jsx(
112
- a,
104
+ children: /* @__PURE__ */ t.jsx(
105
+ o,
113
106
  {
114
107
  ref: s,
115
108
  sx: {
@@ -129,21 +122,13 @@ const f = ({
129
122
  )
130
123
  }
131
124
  ),
132
- u
125
+ h
133
126
  ]
134
127
  }
135
128
  );
136
129
  };
137
- f.displayName = "SMovingBorder";
138
- try {
139
- f.displayName = "SMovingBorder", f.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "SMovingBorder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "var(--s-palette-primary-main)" }, description: "Color of the glow effect (default: 'var(--s-palette-primary-main)')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
140
- } catch {
141
- }
142
- try {
143
- smovingborder.displayName = "smovingborder", smovingborder.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "smovingborder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "var(--s-palette-primary-main)" }, description: "Color of the glow effect (default: 'var(--s-palette-primary-main)')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
144
- } catch {
145
- }
130
+ M.displayName = "SMovingBorder";
146
131
  export {
147
- f as SMovingBorder,
148
- f as default
132
+ M as SMovingBorder,
133
+ M as default
149
134
  };
@@ -1,41 +1,41 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as r from "react";
3
- import { c as v } from "../createSvgIcon-DxwgGAVe.js";
4
- import { Stack as x, OutlinedInput as b } from "@mui/material";
5
- import { usePopover as _ } from "../hooks/use-popover.js";
6
- import { SChips as S } from "../s-chips/s-chips.js";
7
- import { M as g } from "../Menu-CWq-a1Wz.js";
8
- import { M as C } from "../MenuItem-DY_qFSPR.js";
9
- const V = v(/* @__PURE__ */ t.jsx("path", {
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as s from "react";
3
+ import { c as x } from "../createSvgIcon-BKymXuBG.js";
4
+ import { Stack as j, OutlinedInput as M } from "@mui/material";
5
+ import { usePopover as S } from "../hooks/use-popover.js";
6
+ import { M as C } from "../Menu-DZYzE2Mg.js";
7
+ import { M as R } from "../MenuItem-BXiIhfBS.js";
8
+ import { SChips as b } from "../s-chips/s-chips.js";
9
+ const v = x(/* @__PURE__ */ t.jsx("path", {
10
10
  d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
11
- }), "UnfoldMore"), u = ({
12
- label: o,
11
+ }), "UnfoldMore"), I = ({
12
+ label: p,
13
13
  onChange: a,
14
- options: c,
15
- value: i = [],
16
- chipProps: m
14
+ options: i,
15
+ value: r = [],
16
+ chipProps: d
17
17
  }) => {
18
- const l = _(), p = r.useRef(null), [d, f] = r.useState();
19
- r.useEffect(() => {
20
- p.current && f(p.current.offsetWidth);
21
- }, [l.open]);
22
- const h = r.useCallback(
18
+ const o = S(), c = s.useRef(null), [u, f] = s.useState();
19
+ s.useEffect(() => {
20
+ c.current && f(c.current.offsetWidth);
21
+ }, [o.open]);
22
+ const m = s.useCallback(
23
23
  (e, n) => {
24
- let s = [...i];
25
- n ? s.push(e) : s = s.filter((y) => y !== e), a == null || a(s);
24
+ let l = [...r];
25
+ n ? l.push(e) : l = l.filter((h) => h !== e), a?.(l);
26
26
  },
27
- [a, i]
27
+ [a, r]
28
28
  );
29
- return /* @__PURE__ */ t.jsxs(x, { direction: "column", gap: 1, children: [
29
+ return /* @__PURE__ */ t.jsxs(j, { direction: "column", gap: 1, children: [
30
30
  /* @__PURE__ */ t.jsx(
31
- b,
31
+ M,
32
32
  {
33
- endAdornment: /* @__PURE__ */ t.jsx(V, { fontSize: "small", sx: { color: "action.active", position: "absolute", right: "7px" } }),
34
- onClick: l.handleOpen,
33
+ endAdornment: /* @__PURE__ */ t.jsx(v, { fontSize: "small", sx: { color: "action.active", position: "absolute", right: "7px" } }),
34
+ onClick: o.handleOpen,
35
35
  ref: (e) => {
36
- l.anchorRef.current = e, p.current = e;
36
+ o.anchorRef.current = e, c.current = e;
37
37
  },
38
- value: o,
38
+ value: p,
39
39
  sx: {
40
40
  input: {
41
41
  color: "text.secondary"
@@ -44,19 +44,19 @@ const V = v(/* @__PURE__ */ t.jsx("path", {
44
44
  }
45
45
  ),
46
46
  /* @__PURE__ */ t.jsx(
47
- g,
47
+ C,
48
48
  {
49
- anchorEl: l.anchorRef.current,
50
- onClose: l.handleClose,
51
- open: l.open,
52
- slotProps: { paper: { sx: { width: d ? `${d}px` : void 0 } } },
53
- children: c.map((e) => {
54
- const n = i.includes(e.value);
49
+ anchorEl: o.anchorRef.current,
50
+ onClose: o.handleClose,
51
+ open: o.open,
52
+ slotProps: { paper: { sx: { width: u ? `${u}px` : void 0 } } },
53
+ children: i.map((e) => {
54
+ const n = r.includes(e.value);
55
55
  return /* @__PURE__ */ t.jsx(
56
- C,
56
+ R,
57
57
  {
58
58
  onClick: () => {
59
- h(e.value, !n);
59
+ m(e.value, !n);
60
60
  },
61
61
  selected: n,
62
62
  children: e.label
@@ -67,24 +67,16 @@ const V = v(/* @__PURE__ */ t.jsx("path", {
67
67
  }
68
68
  ),
69
69
  /* @__PURE__ */ t.jsx(
70
- S,
70
+ b,
71
71
  {
72
- chips: c.filter((e) => i.includes(e.value)).map((e) => e.label),
73
- ...m
72
+ chips: i.filter((e) => r.includes(e.value)).map((e) => e.label),
73
+ ...d
74
74
  }
75
75
  )
76
76
  ] });
77
77
  };
78
- u.displayName = "SMultiSelect";
79
- try {
80
- u.displayName = "SMultiSelect", u.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "SMultiSelect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
81
- } catch {
82
- }
83
- try {
84
- smultiselect.displayName = "smultiselect", smultiselect.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "smultiselect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
85
- } catch {
86
- }
78
+ I.displayName = "SMultiSelect";
87
79
  export {
88
- u as SMultiSelect,
89
- u as default
80
+ I as SMultiSelect,
81
+ I as default
90
82
  };
@@ -1,24 +1,16 @@
1
- import { j as d } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as n from "react";
3
- import { u as s } from "../useEnhancedEffect-CJGo-L3B.js";
4
- const t = (r) => {
5
- const { children: i, defer: e = !1, fallback: o = null } = r, [l, a] = n.useState(!1);
6
- return s(() => {
7
- e || a(!0);
8
- }, [e]), n.useEffect(() => {
9
- e && a(!0);
10
- }, [e]), /* @__PURE__ */ d.jsx(n.Fragment, { children: l ? i : o });
1
+ import { j as n } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as t from "react";
3
+ import { u } from "../useEnhancedEffect-CJGo-L3B.js";
4
+ const c = (r) => {
5
+ const { children: a, defer: e = !1, fallback: o = null } = r, [f, s] = t.useState(!1);
6
+ return u(() => {
7
+ e || s(!0);
8
+ }, [e]), t.useEffect(() => {
9
+ e && s(!0);
10
+ }, [e]), /* @__PURE__ */ n.jsx(t.Fragment, { children: f ? a : o });
11
11
  };
12
- t.displayName = "SNoSsr";
13
- try {
14
- t.displayName = "SNoSsr", t.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "SNoSsr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
15
- } catch {
16
- }
17
- try {
18
- snossr.displayName = "snossr", snossr.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "snossr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
19
- } catch {
20
- }
12
+ c.displayName = "SNoSsr";
21
13
  export {
22
- t as SNoSsr,
23
- t as default
14
+ c as SNoSsr,
15
+ c as default
24
16
  };
@@ -1,8 +1,8 @@
1
- import { j as i } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as n } from "react";
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as p } from "react";
3
3
  import { styled as d } from "@mui/material";
4
- import { OverlayScrollbarsComponent as p } from "overlayscrollbars-react";
5
- import '../assets/s-overlay-scrollbar.css';const c = d(p)(({ theme: a }) => ({
4
+ import { OverlayScrollbarsComponent as i } from "overlayscrollbars-react";
5
+ import '../assets/s-overlay-scrollbar.css';const b = d(i)(({ theme: a }) => ({
6
6
  maxHeight: "100%",
7
7
  ".os-theme-dark": {
8
8
  "--os-size": "10px",
@@ -15,27 +15,23 @@ import '../assets/s-overlay-scrollbar.css';const c = d(p)(({ theme: a }) => ({
15
15
  "--os-handle-bg-active": (a.vars || a).palette.whiteAlpha.dark
16
16
  })
17
17
  }
18
- })), l = n(
19
- ({ sx: a, children: r, className: e, id: o, ...s }, t) => /* @__PURE__ */ i.jsx(
20
- c,
18
+ })), v = p(
19
+ ({ sx: a, children: r, className: l, id: o, ...s }, e) => /* @__PURE__ */ t.jsx(
20
+ b,
21
21
  {
22
22
  id: o,
23
- ref: t,
23
+ ref: e,
24
24
  defer: !0,
25
25
  sx: a,
26
- className: e,
26
+ className: l,
27
27
  options: { scrollbars: { autoHide: "leave", autoHideDelay: 100 } },
28
28
  ...s,
29
29
  children: r
30
30
  }
31
31
  )
32
32
  );
33
- l.displayName = "SOverlayScrollbar";
34
- try {
35
- l.displayName = "SOverlayScrollbar", l.__docgenInfo = { description: "A custom scrollbar component with overlay styling, auto-hide functionality, and smooth animations.", displayName: "SOverlayScrollbar", props: { id: { defaultValue: null, description: "Optional id for the scrollbar container", name: "id", required: !1, type: { name: "string" } }, className: { defaultValue: null, description: "Additional CSS class name", name: "className", required: !1, type: { name: "string" } }, sx: { defaultValue: null, description: "Material-UI sx prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
36
- } catch {
37
- }
33
+ v.displayName = "SOverlayScrollbar";
38
34
  export {
39
- l as SOverlayScrollbar,
40
- l as default
35
+ v as SOverlayScrollbar,
36
+ v as default
41
37
  };
@@ -1,20 +1,16 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useTheme as l, useMediaQuery as d, Box as m, Pagination as p, Stack as u } from "@mui/material";
3
- import { SSkeleton as t } from "../s-skeleton/s-skeleton.js";
4
- const c = ({ style: n }) => /* @__PURE__ */ e.jsxs(u, { direction: "row", flexWrap: "wrap", gap: 1, justifyContent: "center", style: n, children: [
5
- /* @__PURE__ */ e.jsx(t, { component: "icon-button" }),
6
- /* @__PURE__ */ e.jsx(t, { variant: "rounded", width: 120 }),
7
- /* @__PURE__ */ e.jsx(t, { component: "icon-button" })
8
- ] }), a = ({ loading: n, count: o = 0, ...i }) => {
9
- const r = l(), s = d(r.breakpoints.down("sm"));
10
- return o === 0 ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : n ? /* @__PURE__ */ e.jsx(c, { style: i.style }) : /* @__PURE__ */ e.jsx(m, { width: "100%", children: /* @__PURE__ */ e.jsx(p, { size: s ? "small" : "medium", count: o, ...i }) });
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useTheme as a, useMediaQuery as m, Box as u, Pagination as x, Stack as c } from "@mui/material";
3
+ import { SSkeleton as n } from "../s-skeleton/s-skeleton.js";
4
+ const d = ({ style: e }) => /* @__PURE__ */ t.jsxs(c, { direction: "row", flexWrap: "wrap", gap: 1, justifyContent: "center", style: e, children: [
5
+ /* @__PURE__ */ t.jsx(n, { component: "icon-button" }),
6
+ /* @__PURE__ */ t.jsx(n, { variant: "rounded", width: 120 }),
7
+ /* @__PURE__ */ t.jsx(n, { component: "icon-button" })
8
+ ] }), l = ({ loading: e, count: o = 0, ...i }) => {
9
+ const r = a(), s = m(r.breakpoints.down("sm"));
10
+ return o === 0 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : e ? /* @__PURE__ */ t.jsx(d, { style: i.style }) : /* @__PURE__ */ t.jsx(u, { width: "100%", children: /* @__PURE__ */ t.jsx(x, { size: s ? "small" : "medium", count: o, ...i }) });
11
11
  };
12
- a.displayName = "SPagination";
13
- try {
14
- a.displayName = "SPagination", a.__docgenInfo = { description: "Enhanced pagination component with responsive sizing and loading states.", displayName: "SPagination", props: { loading: { defaultValue: null, description: "Whether the pagination is in a loading state - shows skeleton when true", name: "loading", required: !1, type: { name: "boolean" } }, count: { defaultValue: { value: "0" }, description: "Total number of pages - component returns empty fragment when 0", name: "count", required: !1, type: { name: "number" } } } };
15
- } catch {
16
- }
12
+ l.displayName = "SPagination";
17
13
  export {
18
- a as SPagination,
19
- a as default
14
+ l as SPagination,
15
+ l as default
20
16
  };
@@ -1,5 +1,5 @@
1
- {
2
- "main": "./index.js",
3
- "types": "./index.d.ts",
4
- "sideEffects": false
5
- }
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
+ }