@solostylist/ui-kit 1.0.174 → 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 (206) 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.d.ts +4 -0
  79. package/dist/s-chat-input/s-chat-input.js +103 -109
  80. package/dist/s-chat-message/s-chat-message.js +111 -120
  81. package/dist/s-checkbox/s-checkbox.js +12 -20
  82. package/dist/s-chip/package.json +5 -5
  83. package/dist/s-chip/s-chip.js +7 -15
  84. package/dist/s-chips/s-chips.js +47 -56
  85. package/dist/s-code-block/package.json +5 -5
  86. package/dist/s-code-block/s-code-block.js +35 -43
  87. package/dist/s-comment-message/package.json +5 -5
  88. package/dist/s-comment-message/s-comment-message.js +90 -94
  89. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  90. package/dist/s-countdown/s-count-box.js +42 -50
  91. package/dist/s-countdown/s-count-down.js +79 -107
  92. package/dist/s-data-table/s-data-table.js +374 -384
  93. package/dist/s-date-picker/s-date-picker.js +164 -164
  94. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  95. package/dist/s-dialog/s-dialog.js +24 -32
  96. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  97. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  98. package/dist/s-empty/s-empty.js +6 -14
  99. package/dist/s-error/s-error.js +9 -17
  100. package/dist/s-error-layout/s-error-layout.js +38 -47
  101. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  102. package/dist/s-file-icon/s-file-icon.js +9 -13
  103. package/dist/s-flex-box/s-flex-box.js +6 -14
  104. package/dist/s-form/s-form.js +11 -19
  105. package/dist/s-gallery/index.js +3 -33
  106. package/dist/s-gallery/s-gallery.js +91 -114
  107. package/dist/s-glow-button/s-glow-button.js +22 -26
  108. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  109. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  110. package/dist/s-icon-button/s-icon-button.js +6 -14
  111. package/dist/s-image-comparison/package.json +5 -5
  112. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  113. package/dist/s-image-modal/package.json +5 -5
  114. package/dist/s-image-modal/s-image-modal.js +137 -150
  115. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  116. package/dist/s-label/s-label.js +12 -20
  117. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  118. package/dist/s-lazy-image/index.js +2 -10
  119. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  120. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  121. package/dist/s-moving-border/s-moving-border.js +52 -67
  122. package/dist/s-multi-select/s-multi-select.js +43 -51
  123. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  124. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  125. package/dist/s-pagination/s-pagination.js +13 -17
  126. package/dist/s-pixel-reveal/package.json +5 -5
  127. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  128. package/dist/s-radial-pulse-animate/package.json +5 -5
  129. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  130. package/dist/s-rating/package.json +5 -5
  131. package/dist/s-rating/s-rating.js +7 -15
  132. package/dist/s-review/package.json +5 -5
  133. package/dist/s-review/s-review.js +101 -106
  134. package/dist/s-scroll-reveal/package.json +5 -5
  135. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  136. package/dist/s-scroll-to-top/package.json +5 -5
  137. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  138. package/dist/s-scroll-velocity/package.json +5 -5
  139. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  140. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  141. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  142. package/dist/s-select/s-select.js +67 -75
  143. package/dist/s-select-list/s-select-list.js +28 -32
  144. package/dist/s-skeleton/s-skeleton.js +20 -28
  145. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  146. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  147. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  148. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  149. package/dist/s-stripe/s-stripe-number.js +8 -12
  150. package/dist/s-stripe/s-stripe.d.ts +2 -2
  151. package/dist/s-stripe/s-stripe.js +17 -26
  152. package/dist/s-stripe/stripe-input.js +25 -29
  153. package/dist/s-tabs/package.json +3 -3
  154. package/dist/s-tabs/s-tab-panel.js +17 -25
  155. package/dist/s-tabs/s-tab.js +5 -9
  156. package/dist/s-tabs/s-tabs.js +19 -27
  157. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  158. package/dist/s-text-editor/s-text-editor.js +33 -45
  159. package/dist/s-text-field/s-text-field.js +31 -40
  160. package/dist/s-text-shimmer/package.json +4 -4
  161. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  162. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  163. package/dist/s-theme-demo/package.json +5 -5
  164. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  165. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  166. package/dist/s-theme-switch/package.json +4 -4
  167. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  168. package/dist/s-tip/s-tip.js +14 -22
  169. package/dist/s-two-pane-layout/index.js +2 -10
  170. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  171. package/dist/s-typewriter-text/package.json +5 -5
  172. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  173. package/dist/s-zoom-image/index.js +2 -10
  174. package/dist/s-zoom-image/package.json +5 -5
  175. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  176. package/dist/styled-B0KflPi-.js +203 -0
  177. package/dist/theme/components/alert.d.ts +484 -264
  178. package/dist/theme/components/avatar.js +2 -2
  179. package/dist/theme/components/button.d.ts +726 -396
  180. package/dist/theme/components/chip.js +2 -2
  181. package/dist/theme/components/components.js +14 -12
  182. package/dist/theme/components/icon-button.d.ts +6191 -0
  183. package/dist/theme/components/icon-button.js +90 -0
  184. package/dist/theme/customizations/data-display.js +1 -1
  185. package/dist/theme/customizations/inputs.js +2 -2
  186. package/dist/theme/customizations/navigation.js +2 -2
  187. package/dist/theme/theme-primitives.d.ts +8 -246
  188. package/dist/theme/theme-primitives.js +76 -87
  189. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  190. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  191. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  192. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  193. package/dist/utils/dayjs.js +7 -7
  194. package/dist/utils/logger.js +29 -32
  195. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  196. package/package.json +240 -81
  197. package/README.md +0 -13
  198. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  199. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  200. package/dist/Paper-hkbPWyBT.js +0 -553
  201. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  202. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  203. package/dist/extendSxProp-BKWjdW12.js +0 -37
  204. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  205. package/dist/resolveProps-61uUKnlS.js +0 -52
  206. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,79 +1,78 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import L, { useState as j } from "react";
3
- import { Box as u } from "@mui/material";
4
- import { useMotionValue as m, useSpring as d, useTransform as D, motion as A } from "framer-motion";
5
- import "../s-lazy-image/index.js";
6
- import B from "../s-lazy-image/s-lazy-image.js";
7
- const o = L.forwardRef(
1
+ import { j as n } from "../jsx-runtime-tc70JA_2.js";
2
+ import H, { useState as N } from "react";
3
+ import { Box as r } from "@mui/material";
4
+ import { useMotionValue as m, useSpring as c, useTransform as T, motion as Z } from "framer-motion";
5
+ import _ from "../s-lazy-image/s-lazy-image.js";
6
+ const $ = H.forwardRef(
8
7
  ({
9
- src: a,
10
- alt: c,
11
- zoomScale: p = 1.2,
12
- transitionDuration: g = 0.3,
13
- borderRadius: f = 1.5,
14
- imgStyle: y,
15
- imgClassName: h,
8
+ src: d,
9
+ alt: u,
10
+ zoomScale: l = 1.2,
11
+ transitionDuration: f = 0.3,
12
+ borderRadius: g = 1.5,
13
+ imgStyle: h,
14
+ imgClassName: p,
16
15
  skeletonVariant: v = "rounded",
17
- height: S = "100%",
18
- width: V = "100%",
19
- sx: b,
20
- ...q
21
- }, z) => {
22
- const [l, _] = j(!1), t = m(50), n = m(50), s = { damping: 20, stiffness: 150, mass: 0.5 }, w = d(t, s), C = d(n, s), I = D(
23
- [w, C],
24
- ([e, i]) => `${e}% ${i}%`
25
- ), x = (e) => {
26
- if (!l) return;
27
- const { left: i, top: R, width: N, height: M } = e.currentTarget.getBoundingClientRect();
28
- t.set((e.clientX - i) / N * 100), n.set((e.clientY - R) / M * 100);
29
- }, k = () => {
30
- t.set(50), n.set(50);
16
+ height: M = "100%",
17
+ width: x = "100%",
18
+ sx: j,
19
+ ...y
20
+ }, L) => {
21
+ const [i, w] = N(!1), o = m(50), t = m(50), a = { damping: 20, stiffness: 150, mass: 0.5 }, R = c(o, a), S = c(t, a), b = T(
22
+ [R, S],
23
+ ([e, s]) => `${e}% ${s}%`
24
+ ), I = (e) => {
25
+ if (!i) return;
26
+ const { left: s, top: Y, width: B, height: C } = e.currentTarget.getBoundingClientRect();
27
+ o.set((e.clientX - s) / B * 100), t.set((e.clientY - Y) / C * 100);
28
+ }, X = () => {
29
+ o.set(50), t.set(50);
31
30
  };
32
- return /* @__PURE__ */ r.jsx(
33
- u,
31
+ return /* @__PURE__ */ n.jsx(
32
+ r,
34
33
  {
35
- ref: z,
36
- onMouseMove: x,
37
- onMouseLeave: k,
34
+ ref: L,
35
+ onMouseMove: I,
36
+ onMouseLeave: X,
38
37
  sx: {
39
38
  position: "relative",
40
39
  width: "100%",
41
40
  height: "auto",
42
41
  overflow: "hidden",
43
- borderRadius: f,
44
- ...b
42
+ borderRadius: g,
43
+ ...j
45
44
  },
46
- ...q,
47
- children: /* @__PURE__ */ r.jsx(
48
- u,
45
+ ...y,
46
+ children: /* @__PURE__ */ n.jsx(
47
+ r,
49
48
  {
50
- component: A.div,
49
+ component: Z.div,
51
50
  style: {
52
- transformOrigin: I
51
+ transformOrigin: b
53
52
  },
54
53
  animate: { scale: 1 },
55
- whileHover: l ? { scale: p } : { scale: 1 },
54
+ whileHover: i ? { scale: l } : { scale: 1 },
56
55
  transition: {
57
56
  type: "spring",
58
- duration: g,
57
+ duration: f,
59
58
  bounce: 0
60
59
  },
61
- children: /* @__PURE__ */ r.jsx(
62
- B,
60
+ children: /* @__PURE__ */ n.jsx(
61
+ _,
63
62
  {
64
- src: a,
65
- alt: c,
63
+ src: d,
64
+ alt: u,
66
65
  variant: v,
67
- height: S,
68
- width: V,
69
- className: h,
66
+ height: M,
67
+ width: x,
68
+ className: p,
70
69
  style: {
71
70
  objectFit: "cover",
72
71
  display: "block",
73
72
  borderRadius: "inherit",
74
- ...y
73
+ ...h
75
74
  },
76
- onLoad: () => _(!0)
75
+ onLoad: () => w(!0)
77
76
  }
78
77
  )
79
78
  }
@@ -82,16 +81,8 @@ const o = L.forwardRef(
82
81
  );
83
82
  }
84
83
  );
85
- o.displayName = "SZoomImage";
86
- try {
87
- o.displayName = "SZoomImage", o.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "SZoomImage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
88
- } catch {
89
- }
90
- try {
91
- szoomimage.displayName = "szoomimage", szoomimage.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "szoomimage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
92
- } catch {
93
- }
84
+ $.displayName = "SZoomImage";
94
85
  export {
95
- o as SZoomImage,
96
- o as default
86
+ $ as SZoomImage,
87
+ $ as default
97
88
  };
@@ -0,0 +1,203 @@
1
+ import { d as N } from "./defaultTheme-LSr-S9un.js";
2
+ import { T as q } from "./identifier-BKLqN993.js";
3
+ import { i as S, a as G, s as J } from "./index-D3G5Rwl-.js";
4
+ import { j as E, b as Q, s as L, i as U, c as X } from "./createTheme-f5g1s6ww.js";
5
+ function k(e, n = "") {
6
+ return e.displayName || e.name || n;
7
+ }
8
+ function V(e, n, t) {
9
+ const r = k(n);
10
+ return e.displayName || (r !== "" ? `${t}(${r})` : t);
11
+ }
12
+ function Y(e) {
13
+ if (e != null) {
14
+ if (typeof e == "string")
15
+ return e;
16
+ if (typeof e == "function")
17
+ return k(e, "Component");
18
+ if (typeof e == "object")
19
+ switch (e.$$typeof) {
20
+ case E.ForwardRef:
21
+ return V(e, e.render, "ForwardRef");
22
+ case E.Memo:
23
+ return V(e, e.type, "memo");
24
+ default:
25
+ return;
26
+ }
27
+ }
28
+ }
29
+ function Z(e) {
30
+ const {
31
+ variants: n,
32
+ ...t
33
+ } = e, r = {
34
+ variants: n,
35
+ style: S(t),
36
+ isProcessed: !0
37
+ };
38
+ return r.style === t || n && n.forEach((s) => {
39
+ typeof s.style != "function" && (s.style = S(s.style));
40
+ }), r;
41
+ }
42
+ const z = Q();
43
+ function $(e) {
44
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
45
+ }
46
+ function m(e, n) {
47
+ return n && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${n}{${String(e.styles)}}`), e;
48
+ }
49
+ function ee(e) {
50
+ return e ? (n, t) => t[e] : null;
51
+ }
52
+ function te(e, n, t) {
53
+ e.theme = oe(e.theme) ? t : e.theme[n] || e.theme;
54
+ }
55
+ function P(e, n, t) {
56
+ const r = typeof n == "function" ? n(e) : n;
57
+ if (Array.isArray(r))
58
+ return r.flatMap((s) => P(e, s, t));
59
+ if (Array.isArray(r?.variants)) {
60
+ let s;
61
+ if (r.isProcessed)
62
+ s = t ? m(r.style, t) : r.style;
63
+ else {
64
+ const {
65
+ variants: w,
66
+ ...o
67
+ } = r;
68
+ s = t ? m(S(o), t) : o;
69
+ }
70
+ return j(e, r.variants, [s], t);
71
+ }
72
+ return r?.isProcessed ? t ? m(S(r.style), t) : r.style : t ? m(S(r), t) : r;
73
+ }
74
+ function j(e, n, t = [], r = void 0) {
75
+ let s;
76
+ e: for (let w = 0; w < n.length; w += 1) {
77
+ const o = n[w];
78
+ if (typeof o.props == "function") {
79
+ if (s ??= {
80
+ ...e,
81
+ ...e.ownerState,
82
+ ownerState: e.ownerState
83
+ }, !o.props(s))
84
+ continue;
85
+ } else
86
+ for (const i in o.props)
87
+ if (e[i] !== o.props[i] && e.ownerState?.[i] !== o.props[i])
88
+ continue e;
89
+ typeof o.style == "function" ? (s ??= {
90
+ ...e,
91
+ ...e.ownerState,
92
+ ownerState: e.ownerState
93
+ }, t.push(r ? m(S(o.style(s)), r) : o.style(s))) : t.push(r ? m(S(o.style), r) : o.style);
94
+ }
95
+ return t;
96
+ }
97
+ function ne(e = {}) {
98
+ const {
99
+ themeId: n,
100
+ defaultTheme: t = z,
101
+ rootShouldForwardProp: r = $,
102
+ slotShouldForwardProp: s = $
103
+ } = e;
104
+ function w(i) {
105
+ te(i, n, t);
106
+ }
107
+ return (i, I = {}) => {
108
+ G(i, (u) => u.filter((f) => f !== L));
109
+ const {
110
+ name: y,
111
+ slot: l,
112
+ skipVariantsResolver: A,
113
+ skipSx: M,
114
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
115
+ // For more details: https://github.com/mui/material-ui/pull/37908
116
+ overridesResolver: O = ee(D(l)),
117
+ ...H
118
+ } = I, T = y && y.startsWith("Mui") || l ? "components" : "custom", W = A !== void 0 ? A : (
119
+ // TODO v6: remove `Root` in the next major release
120
+ // For more details: https://github.com/mui/material-ui/pull/37908
121
+ l && l !== "Root" && l !== "root" || !1
122
+ ), C = M || !1;
123
+ let v = $;
124
+ l === "Root" || l === "root" ? v = r : l ? v = s : ie(i) && (v = void 0);
125
+ const x = J(i, {
126
+ shouldForwardProp: v,
127
+ label: se(y, l),
128
+ ...H
129
+ }), B = (u) => {
130
+ if (u.__emotion_real === u)
131
+ return u;
132
+ if (typeof u == "function")
133
+ return function(h) {
134
+ return P(h, u, h.theme.modularCssLayers ? T : void 0);
135
+ };
136
+ if (U(u)) {
137
+ const f = Z(u);
138
+ return function(d) {
139
+ return f.variants ? P(d, f, d.theme.modularCssLayers ? T : void 0) : d.theme.modularCssLayers ? m(f.style, T) : f.style;
140
+ };
141
+ }
142
+ return u;
143
+ }, b = (...u) => {
144
+ const f = [], h = u.map(B), d = [];
145
+ if (f.push(w), y && O && d.push(function(a) {
146
+ const c = a.theme.components?.[y]?.styleOverrides;
147
+ if (!c)
148
+ return null;
149
+ const g = {};
150
+ for (const _ in c)
151
+ g[_] = P(a, c[_], a.theme.modularCssLayers ? "theme" : void 0);
152
+ return O(a, g);
153
+ }), y && !W && d.push(function(a) {
154
+ const c = a.theme?.components?.[y]?.variants;
155
+ return c ? j(a, c, [], a.theme.modularCssLayers ? "theme" : void 0) : null;
156
+ }), C || d.push(L), Array.isArray(h[0])) {
157
+ const p = h.shift(), a = new Array(f.length).fill(""), F = new Array(d.length).fill("");
158
+ let c;
159
+ c = [...a, ...p, ...F], c.raw = [...a, ...p.raw, ...F], f.unshift(c);
160
+ }
161
+ const K = [...f, ...h, ...d], R = x(...K);
162
+ return i.muiName && (R.muiName = i.muiName), process.env.NODE_ENV !== "production" && (R.displayName = re(y, l, i)), R;
163
+ };
164
+ return x.withConfig && (b.withConfig = x.withConfig), b;
165
+ };
166
+ }
167
+ function re(e, n, t) {
168
+ return e ? `${e}${X(n || "")}` : `Styled(${Y(t)})`;
169
+ }
170
+ function se(e, n) {
171
+ let t;
172
+ return process.env.NODE_ENV !== "production" && e && (t = `${e}-${D(n || "Root")}`), t;
173
+ }
174
+ function oe(e) {
175
+ for (const n in e)
176
+ return !1;
177
+ return !0;
178
+ }
179
+ function ie(e) {
180
+ return typeof e == "string" && // 96 is one less than the char code
181
+ // for "a" so this is checking that
182
+ // it's a lowercase character
183
+ e.charCodeAt(0) > 96;
184
+ }
185
+ function D(e) {
186
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
187
+ }
188
+ function ue(e) {
189
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
190
+ }
191
+ const fe = (e) => ue(e) && e !== "classes", ye = ne({
192
+ themeId: q,
193
+ defaultTheme: N,
194
+ rootShouldForwardProp: fe
195
+ });
196
+ export {
197
+ ue as a,
198
+ $ as b,
199
+ ne as c,
200
+ Z as p,
201
+ fe as r,
202
+ ye as s
203
+ };