@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,24 +1,25 @@
1
- import { j as i } from "../jsx-runtime-OVHDjVDe.js";
2
- import { E as yo } from "../ExpandMore-DTWX_mHf.js";
3
- import * as p from "react";
4
- import { l as go, P as o, j as ho } from "../createTheme-3Wd3hHrj.js";
5
- import { u as J, c as H, a as K, m as M } from "../DefaultPropsProvider-CaCsvQaq.js";
6
- import { b as xo, u as bo, e as To, d as I, c as Po, B as Ao } from "../ButtonBase-DfTfJ_ou.js";
7
- import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
8
- import { g as Y } from "../colorManipulator-ep5lERxB.js";
9
- import { u as So } from "../useControlled-D1L5tREc.js";
10
- import { s as T } from "../styled-B0Z4EDy9.js";
11
- import { T as Co, u as Eo, g as so, P as Ro } from "../Paper-hkbPWyBT.js";
12
- import { S as wo } from "../Stack-Cq2r2NmC.js";
13
- import { T as vo } from "../Typography-C8jwvSWe.js";
14
- function jo(e) {
15
- return Y("MuiCollapse", e);
1
+ import { j as i } from "../jsx-runtime-tc70JA_2.js";
2
+ import { E as wo } from "../ExpandMore-DIGPB4Mj.js";
3
+ import * as c from "react";
4
+ import { T as Eo, u as vo, g as io, P as Ao, r as Ro } from "../Paper-DnctZB5U.js";
5
+ import { k as Po, P as o } from "../createTheme-f5g1s6ww.js";
6
+ import { c as L } from "../clsx-OuTLNxxd.js";
7
+ import { u as Q, c as X, m as W } from "../DefaultPropsProvider-sk0uWcA6.js";
8
+ import { b as jo, u as No, c as x, e as Oo, d as Io, B as Mo } from "../ButtonBase-C_YYB9Ry.js";
9
+ import { g as Y } from "../generateUtilityClasses-BtVDwGrk.js";
10
+ import { g as Z } from "../colorManipulator-ep5lERxB.js";
11
+ import { u as Do } from "../useControlled-D1L5tREc.js";
12
+ import { s as b } from "../styled-B0KflPi-.js";
13
+ import { S as $o } from "../Stack-BScsuyQy.js";
14
+ import { T as Wo } from "../Typography-9Kg27dDw.js";
15
+ function zo(e) {
16
+ return Z("MuiCollapse", e);
16
17
  }
17
- X("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
18
- const No = (e) => {
18
+ Y("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
19
+ const ko = (e) => {
19
20
  const {
20
21
  orientation: t,
21
- classes: r
22
+ classes: n
22
23
  } = e, s = {
23
24
  root: ["root", `${t}`],
24
25
  entered: ["entered"],
@@ -26,17 +27,17 @@ const No = (e) => {
26
27
  wrapper: ["wrapper", `${t}`],
27
28
  wrapperInner: ["wrapperInner", `${t}`]
28
29
  };
29
- return K(s, jo, r);
30
- }, Oo = T("div", {
30
+ return X(s, zo, n);
31
+ }, Vo = b("div", {
31
32
  name: "MuiCollapse",
32
33
  slot: "Root",
33
34
  overridesResolver: (e, t) => {
34
35
  const {
35
- ownerState: r
36
+ ownerState: n
36
37
  } = e;
37
- return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
38
+ return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
38
39
  }
39
- })(M(({
40
+ })(W(({
40
41
  theme: e
41
42
  }) => ({
42
43
  height: 0,
@@ -75,7 +76,7 @@ const No = (e) => {
75
76
  visibility: "hidden"
76
77
  }
77
78
  }]
78
- }))), Do = T("div", {
79
+ }))), Fo = b("div", {
79
80
  name: "MuiCollapse",
80
81
  slot: "Wrapper"
81
82
  })({
@@ -91,7 +92,7 @@ const No = (e) => {
91
92
  height: "100%"
92
93
  }
93
94
  }]
94
- }), Io = T("div", {
95
+ }), Go = b("div", {
95
96
  name: "MuiCollapse",
96
97
  slot: "WrapperInner"
97
98
  })({
@@ -105,135 +106,155 @@ const No = (e) => {
105
106
  height: "100%"
106
107
  }
107
108
  }]
108
- }), Q = /* @__PURE__ */ p.forwardRef(function(t, r) {
109
- const s = J({
109
+ }), K = /* @__PURE__ */ c.forwardRef(function(t, n) {
110
+ const s = Q({
110
111
  props: t,
111
112
  name: "MuiCollapse"
112
113
  }), {
113
- addEndListener: c,
114
- children: m,
115
- className: f,
116
- collapsedSize: y = "0px",
117
- component: A,
114
+ addEndListener: a,
115
+ children: d,
116
+ className: p,
117
+ collapsedSize: u = "0px",
118
+ component: R,
118
119
  easing: z,
119
- in: S,
120
- onEnter: w,
121
- onEntered: v,
120
+ in: P,
121
+ onEnter: k,
122
+ onEntered: N,
122
123
  onEntering: V,
123
- onExit: j,
124
- onExited: $,
125
- onExiting: _,
126
- orientation: d = "vertical",
127
- style: g,
128
- timeout: l = go.standard,
124
+ onExit: O,
125
+ onExited: F,
126
+ onExiting: f,
127
+ orientation: h = "vertical",
128
+ slots: T = {},
129
+ slotProps: C = {},
130
+ style: I,
131
+ timeout: m = Po.standard,
129
132
  // eslint-disable-next-line react/prop-types
130
- TransitionComponent: N = Co,
131
- ...F
132
- } = s, C = {
133
+ TransitionComponent: S = Eo,
134
+ ...M
135
+ } = s, w = {
133
136
  ...s,
134
- orientation: d,
135
- collapsedSize: y
136
- }, u = No(C), E = Eo(), k = xo(), a = p.useRef(null), h = p.useRef(), P = typeof y == "number" ? `${y}px` : y, O = d === "horizontal", D = O ? "width" : "height", W = p.useRef(null), Z = bo(r, W), R = (n) => (x) => {
137
- if (n) {
138
- const b = W.current;
139
- x === void 0 ? n(b) : n(b, x);
137
+ orientation: h,
138
+ collapsedSize: u
139
+ }, E = ko(w), l = vo(), G = jo(), v = c.useRef(null), _ = c.useRef(), U = typeof u == "number" ? `${u}px` : u, D = h === "horizontal", $ = D ? "width" : "height", H = c.useRef(null), oo = No(n, H), j = (r) => (g) => {
140
+ if (r) {
141
+ const y = H.current;
142
+ g === void 0 ? r(y) : r(y, g);
140
143
  }
141
- }, U = () => a.current ? a.current[O ? "clientWidth" : "clientHeight"] : 0, oo = R((n, x) => {
142
- a.current && O && (a.current.style.position = "absolute"), n.style[D] = P, w && w(n, x);
143
- }), eo = R((n, x) => {
144
- const b = U();
145
- a.current && O && (a.current.style.position = "");
144
+ }, eo = () => v.current ? v.current[D ? "clientWidth" : "clientHeight"] : 0, po = j((r, g) => {
145
+ v.current && D && (v.current.style.position = "absolute"), r.style[$] = U, k && k(r, g);
146
+ }), uo = j((r, g) => {
147
+ const y = eo();
148
+ v.current && D && (v.current.style.position = "");
146
149
  const {
147
- duration: G,
148
- easing: B
149
- } = so({
150
- style: g,
151
- timeout: l,
150
+ duration: A,
151
+ easing: q
152
+ } = io({
153
+ style: I,
154
+ timeout: m,
152
155
  easing: z
153
156
  }, {
154
157
  mode: "enter"
155
158
  });
156
- if (l === "auto") {
157
- const ro = E.transitions.getAutoHeightDuration(b);
158
- n.style.transitionDuration = `${ro}ms`, h.current = ro;
159
+ if (m === "auto") {
160
+ const so = l.transitions.getAutoHeightDuration(y);
161
+ r.style.transitionDuration = `${so}ms`, _.current = so;
159
162
  } else
160
- n.style.transitionDuration = typeof G == "string" ? G : `${G}ms`;
161
- n.style[D] = `${b}px`, n.style.transitionTimingFunction = B, V && V(n, x);
162
- }), lo = R((n, x) => {
163
- n.style[D] = "auto", v && v(n, x);
164
- }), po = R((n) => {
165
- n.style[D] = `${U()}px`, j && j(n);
166
- }), uo = R($), mo = R((n) => {
167
- const x = U(), {
168
- duration: b,
169
- easing: G
170
- } = so({
171
- style: g,
172
- timeout: l,
163
+ r.style.transitionDuration = typeof A == "string" ? A : `${A}ms`;
164
+ r.style[$] = `${y}px`, r.style.transitionTimingFunction = q, V && V(r, g);
165
+ }), fo = j((r, g) => {
166
+ r.style[$] = "auto", N && N(r, g);
167
+ }), mo = j((r) => {
168
+ r.style[$] = `${eo()}px`, O && O(r);
169
+ }), go = j(F), yo = j((r) => {
170
+ const g = eo(), {
171
+ duration: y,
172
+ easing: A
173
+ } = io({
174
+ style: I,
175
+ timeout: m,
173
176
  easing: z
174
177
  }, {
175
178
  mode: "exit"
176
179
  });
177
- if (l === "auto") {
178
- const B = E.transitions.getAutoHeightDuration(x);
179
- n.style.transitionDuration = `${B}ms`, h.current = B;
180
+ if (m === "auto") {
181
+ const q = l.transitions.getAutoHeightDuration(g);
182
+ r.style.transitionDuration = `${q}ms`, _.current = q;
180
183
  } else
181
- n.style.transitionDuration = typeof b == "string" ? b : `${b}ms`;
182
- n.style[D] = P, n.style.transitionTimingFunction = G, _ && _(n);
183
- }), fo = (n) => {
184
- l === "auto" && k.start(h.current || 0, n), c && c(W.current, n);
185
- };
186
- return /* @__PURE__ */ i.jsx(N, {
187
- in: S,
188
- onEnter: oo,
189
- onEntered: lo,
190
- onEntering: eo,
191
- onExit: po,
192
- onExited: uo,
193
- onExiting: mo,
194
- addEndListener: fo,
195
- nodeRef: W,
196
- timeout: l === "auto" ? null : l,
197
- ...F,
198
- children: (n, {
199
- ownerState: x,
200
- ...b
201
- }) => /* @__PURE__ */ i.jsx(Oo, {
202
- as: A,
203
- className: H(u.root, f, {
204
- entered: u.entered,
205
- exited: !S && P === "0px" && u.hidden
206
- }[n]),
184
+ r.style.transitionDuration = typeof y == "string" ? y : `${y}ms`;
185
+ r.style[$] = U, r.style.transitionTimingFunction = A, f && f(r);
186
+ }), ho = (r) => {
187
+ m === "auto" && G.start(_.current || 0, r), a && a(H.current, r);
188
+ }, to = {
189
+ slots: T,
190
+ slotProps: C,
191
+ component: R
192
+ }, [xo, ro] = x("root", {
193
+ ref: oo,
194
+ className: L(E.root, p),
195
+ elementType: Vo,
196
+ externalForwardedProps: to,
197
+ ownerState: w,
198
+ additionalProps: {
207
199
  style: {
208
- [O ? "minWidth" : "minHeight"]: P,
209
- ...g
210
- },
211
- ref: Z,
212
- ownerState: {
213
- ...C,
214
- state: n
215
- },
216
- ...b,
217
- children: /* @__PURE__ */ i.jsx(Do, {
218
- ownerState: {
219
- ...C,
220
- state: n
221
- },
222
- className: u.wrapper,
223
- ref: a,
224
- children: /* @__PURE__ */ i.jsx(Io, {
225
- ownerState: {
226
- ...C,
227
- state: n
228
- },
229
- className: u.wrapperInner,
230
- children: m
200
+ [D ? "minWidth" : "minHeight"]: U,
201
+ ...I
202
+ }
203
+ }
204
+ }), [bo, To] = x("wrapper", {
205
+ ref: v,
206
+ className: E.wrapper,
207
+ elementType: Fo,
208
+ externalForwardedProps: to,
209
+ ownerState: w
210
+ }), [Co, So] = x("wrapperInner", {
211
+ className: E.wrapperInner,
212
+ elementType: Go,
213
+ externalForwardedProps: to,
214
+ ownerState: w
215
+ });
216
+ return /* @__PURE__ */ i.jsx(S, {
217
+ in: P,
218
+ onEnter: po,
219
+ onEntered: fo,
220
+ onEntering: uo,
221
+ onExit: mo,
222
+ onExited: go,
223
+ onExiting: yo,
224
+ addEndListener: ho,
225
+ nodeRef: H,
226
+ timeout: m === "auto" ? null : m,
227
+ ...M,
228
+ children: (r, {
229
+ ownerState: g,
230
+ ...y
231
+ }) => {
232
+ const A = {
233
+ ...w,
234
+ state: r
235
+ };
236
+ return /* @__PURE__ */ i.jsx(xo, {
237
+ ...ro,
238
+ className: L(ro.className, {
239
+ entered: E.entered,
240
+ exited: !P && U === "0px" && E.hidden
241
+ }[r]),
242
+ ownerState: A,
243
+ ...y,
244
+ children: /* @__PURE__ */ i.jsx(bo, {
245
+ ...To,
246
+ ownerState: A,
247
+ children: /* @__PURE__ */ i.jsx(Co, {
248
+ ...So,
249
+ ownerState: A,
250
+ children: d
251
+ })
231
252
  })
232
- })
233
- })
253
+ });
254
+ }
234
255
  });
235
256
  });
236
- process.env.NODE_ENV !== "production" && (Q.propTypes = {
257
+ process.env.NODE_ENV !== "production" && (K.propTypes = {
237
258
  // ┌────────────────────────────── Warning ──────────────────────────────┐
238
259
  // │ These PropTypes are generated from the TypeScript type definitions. │
239
260
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -265,7 +286,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
265
286
  * The component used for the root node.
266
287
  * Either a string to use a HTML element or a component.
267
288
  */
268
- component: To,
289
+ component: Oo,
269
290
  /**
270
291
  * The transition timing function.
271
292
  * You may specify a single easing or a object containing enter and exit values.
@@ -307,6 +328,24 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
307
328
  * @default 'vertical'
308
329
  */
309
330
  orientation: o.oneOf(["horizontal", "vertical"]),
331
+ /**
332
+ * The props used for each slot inside.
333
+ * @default {}
334
+ */
335
+ slotProps: o.shape({
336
+ root: o.oneOfType([o.func, o.object]),
337
+ wrapper: o.oneOfType([o.func, o.object]),
338
+ wrapperInner: o.oneOfType([o.func, o.object])
339
+ }),
340
+ /**
341
+ * The components used for each slot inside.
342
+ * @default {}
343
+ */
344
+ slots: o.shape({
345
+ root: o.elementType,
346
+ wrapper: o.elementType,
347
+ wrapperInner: o.elementType
348
+ }),
310
349
  /**
311
350
  * @ignore
312
351
  */
@@ -328,37 +367,37 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
328
367
  exit: o.number
329
368
  })])
330
369
  });
331
- Q && (Q.muiSupportAuto = !0);
332
- const no = /* @__PURE__ */ p.createContext({});
370
+ K && (K.muiSupportAuto = !0);
371
+ const no = /* @__PURE__ */ c.createContext({});
333
372
  process.env.NODE_ENV !== "production" && (no.displayName = "AccordionContext");
334
- function Mo(e) {
335
- return Y("MuiAccordion", e);
373
+ function Uo(e) {
374
+ return Z("MuiAccordion", e);
336
375
  }
337
- const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), zo = (e) => {
376
+ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), Ho = (e) => {
338
377
  const {
339
378
  classes: t,
340
- square: r,
379
+ square: n,
341
380
  expanded: s,
342
- disabled: c,
343
- disableGutters: m
381
+ disabled: a,
382
+ disableGutters: d
344
383
  } = e;
345
- return K({
346
- root: ["root", !r && "rounded", s && "expanded", c && "disabled", !m && "gutters"],
384
+ return X({
385
+ root: ["root", !n && "rounded", s && "expanded", a && "disabled", !d && "gutters"],
347
386
  heading: ["heading"],
348
387
  region: ["region"]
349
- }, Mo, t);
350
- }, Vo = T(Ro, {
388
+ }, Uo, t);
389
+ }, Bo = b(Ao, {
351
390
  name: "MuiAccordion",
352
391
  slot: "Root",
353
392
  overridesResolver: (e, t) => {
354
393
  const {
355
- ownerState: r
394
+ ownerState: n
356
395
  } = e;
357
396
  return [{
358
- [`& .${L.region}`]: t.region
359
- }, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
397
+ [`& .${J.region}`]: t.region
398
+ }, t.root, !n.square && t.rounded, !n.disableGutters && t.gutters];
360
399
  }
361
- })(M(({
400
+ })(W(({
362
401
  theme: e
363
402
  }) => {
364
403
  const t = {
@@ -385,7 +424,7 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
385
424
  display: "none"
386
425
  }
387
426
  },
388
- [`&.${L.expanded}`]: {
427
+ [`&.${J.expanded}`]: {
389
428
  "&::before": {
390
429
  opacity: 0
391
430
  },
@@ -401,11 +440,11 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
401
440
  }
402
441
  }
403
442
  },
404
- [`&.${L.disabled}`]: {
443
+ [`&.${J.disabled}`]: {
405
444
  backgroundColor: (e.vars || e).palette.action.disabledBackground
406
445
  }
407
446
  };
408
- }), M(({
447
+ }), W(({
409
448
  theme: e
410
449
  }) => ({
411
450
  variants: [{
@@ -429,117 +468,112 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
429
468
  }, {
430
469
  props: (t) => !t.disableGutters,
431
470
  style: {
432
- [`&.${L.expanded}`]: {
471
+ [`&.${J.expanded}`]: {
433
472
  margin: "16px 0"
434
473
  }
435
474
  }
436
475
  }]
437
- }))), $o = T("h3", {
476
+ }))), Lo = b("h3", {
438
477
  name: "MuiAccordion",
439
478
  slot: "Heading"
440
479
  })({
441
480
  all: "unset"
442
- }), _o = T("div", {
481
+ }), _o = b("div", {
443
482
  name: "MuiAccordion",
444
483
  slot: "Region"
445
- })({}), io = /* @__PURE__ */ p.forwardRef(function(t, r) {
446
- const s = J({
484
+ })({}), ao = /* @__PURE__ */ c.forwardRef(function(t, n) {
485
+ const s = Q({
447
486
  props: t,
448
487
  name: "MuiAccordion"
449
488
  }), {
450
- children: c,
451
- className: m,
452
- defaultExpanded: f = !1,
453
- disabled: y = !1,
454
- disableGutters: A = !1,
489
+ children: a,
490
+ className: d,
491
+ defaultExpanded: p = !1,
492
+ disabled: u = !1,
493
+ disableGutters: R = !1,
455
494
  expanded: z,
456
- onChange: S,
457
- square: w = !1,
458
- slots: v = {},
459
- slotProps: V = {},
460
- TransitionComponent: j,
461
- TransitionProps: $,
462
- ..._
463
- } = s, [d, g] = So({
495
+ onChange: P,
496
+ slots: k = {},
497
+ slotProps: N = {},
498
+ TransitionComponent: V,
499
+ TransitionProps: O,
500
+ ...F
501
+ } = s, [f, h] = Do({
464
502
  controlled: z,
465
- default: f,
503
+ default: p,
466
504
  name: "Accordion",
467
505
  state: "expanded"
468
- }), l = p.useCallback((eo) => {
469
- g(!d), S && S(eo, !d);
470
- }, [d, S, g]), [N, ...F] = p.Children.toArray(c), C = p.useMemo(() => ({
471
- expanded: d,
472
- disabled: y,
473
- disableGutters: A,
474
- toggle: l
475
- }), [d, y, A, l]), u = {
506
+ }), T = c.useCallback((j) => {
507
+ h(!f), P && P(j, !f);
508
+ }, [f, P, h]), [C, ...I] = c.Children.toArray(a), m = c.useMemo(() => ({
509
+ expanded: f,
510
+ disabled: u,
511
+ disableGutters: R,
512
+ toggle: T
513
+ }), [f, u, R, T]), S = {
476
514
  ...s,
477
- square: w,
478
- disabled: y,
479
- disableGutters: A,
480
- expanded: d
481
- }, E = zo(u), k = {
482
- transition: j,
483
- ...v
484
- }, a = {
485
- transition: $,
486
- ...V
487
- }, h = {
488
- slots: k,
489
- slotProps: a
490
- }, [P, O] = I("root", {
491
- elementType: Vo,
515
+ disabled: u,
516
+ disableGutters: R,
517
+ expanded: f
518
+ }, M = Ho(S), w = {
519
+ transition: V,
520
+ ...k
521
+ }, E = {
522
+ transition: O,
523
+ ...N
524
+ }, l = {
525
+ slots: w,
526
+ slotProps: E
527
+ }, [G, v] = x("root", {
528
+ elementType: Bo,
492
529
  externalForwardedProps: {
493
- ...h,
494
- ..._
530
+ ...l,
531
+ ...F
495
532
  },
496
- className: H(E.root, m),
533
+ className: L(M.root, d),
497
534
  shouldForwardComponentProp: !0,
498
- ownerState: u,
499
- ref: r,
500
- additionalProps: {
501
- square: w
502
- }
503
- }), [D, W] = I("heading", {
504
- elementType: $o,
505
- externalForwardedProps: h,
506
- className: E.heading,
507
- ownerState: u
508
- }), [Z, R] = I("transition", {
509
- elementType: Q,
510
- externalForwardedProps: h,
511
- ownerState: u
512
- }), [U, oo] = I("region", {
535
+ ownerState: S,
536
+ ref: n
537
+ }), [_, U] = x("heading", {
538
+ elementType: Lo,
539
+ externalForwardedProps: l,
540
+ className: M.heading,
541
+ ownerState: S
542
+ }), [D, $] = x("transition", {
543
+ elementType: K,
544
+ externalForwardedProps: l,
545
+ ownerState: S
546
+ }), [H, oo] = x("region", {
513
547
  elementType: _o,
514
- externalForwardedProps: h,
515
- ownerState: u,
516
- className: E.region,
548
+ externalForwardedProps: l,
549
+ ownerState: S,
550
+ className: M.region,
517
551
  additionalProps: {
518
- "aria-labelledby": N.props.id,
519
- id: N.props["aria-controls"],
552
+ "aria-labelledby": C.props.id,
553
+ id: C.props["aria-controls"],
520
554
  role: "region"
521
555
  }
522
556
  });
523
- return /* @__PURE__ */ i.jsxs(P, {
524
- ...O,
525
- children: [/* @__PURE__ */ i.jsx(D, {
526
- ...W,
557
+ return /* @__PURE__ */ i.jsxs(G, {
558
+ ...v,
559
+ children: [/* @__PURE__ */ i.jsx(_, {
560
+ ...U,
527
561
  children: /* @__PURE__ */ i.jsx(no.Provider, {
528
- value: C,
529
- children: N
562
+ value: m,
563
+ children: C
530
564
  })
531
- }), /* @__PURE__ */ i.jsx(Z, {
532
- in: d,
565
+ }), /* @__PURE__ */ i.jsx(D, {
566
+ in: f,
533
567
  timeout: "auto",
534
- ...R,
535
- children: /* @__PURE__ */ i.jsx(U, {
568
+ ...$,
569
+ children: /* @__PURE__ */ i.jsx(H, {
536
570
  ...oo,
537
- children: F
571
+ children: I
538
572
  })
539
573
  })]
540
574
  });
541
575
  });
542
- process.env.NODE_ENV !== "production" && (io.propTypes = {
576
+ process.env.NODE_ENV !== "production" && (ao.propTypes = {
543
577
  // ┌────────────────────────────── Warning ──────────────────────────────┐
544
578
  // │ These PropTypes are generated from the TypeScript type definitions. │
545
579
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -547,9 +581,9 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
547
581
  /**
548
582
  * The content of the component.
549
583
  */
550
- children: Po(o.node.isRequired, (e) => {
551
- const t = p.Children.toArray(e.children)[0];
552
- return ho.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ p.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
584
+ children: Io(o.node.isRequired, (e) => {
585
+ const t = c.Children.toArray(e.children)[0];
586
+ return Ro.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ c.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
553
587
  }),
554
588
  /**
555
589
  * Override or extend the styles applied to the component.
@@ -570,12 +604,12 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
570
604
  */
571
605
  disabled: o.bool,
572
606
  /**
573
- * If `true`, it removes the margin between two expanded accordion items and the increase of height.
607
+ * If `true`, it removes the margin between two expanded accordion items and prevents the increased height when expanded.
574
608
  * @default false
575
609
  */
576
610
  disableGutters: o.bool,
577
611
  /**
578
- * If `true`, expands the accordion, otherwise collapse it.
612
+ * If `true`, expands the accordion, otherwise collapses it.
579
613
  * Setting this prop enables control over the accordion.
580
614
  */
581
615
  expanded: o.bool,
@@ -606,11 +640,6 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
606
640
  root: o.elementType,
607
641
  transition: o.elementType
608
642
  }),
609
- /**
610
- * If `true`, rounded corners are disabled.
611
- * @default false
612
- */
613
- square: o.bool,
614
643
  /**
615
644
  * The system prop that allows defining system overrides as well as additional CSS styles.
616
645
  */
@@ -628,40 +657,40 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
628
657
  */
629
658
  TransitionProps: o.object
630
659
  });
631
- function Wo(e) {
632
- return Y("MuiAccordionDetails", e);
660
+ function qo(e) {
661
+ return Z("MuiAccordionDetails", e);
633
662
  }
634
- X("MuiAccordionDetails", ["root"]);
635
- const qo = (e) => {
663
+ Y("MuiAccordionDetails", ["root"]);
664
+ const Jo = (e) => {
636
665
  const {
637
666
  classes: t
638
667
  } = e;
639
- return K({
668
+ return X({
640
669
  root: ["root"]
641
- }, Wo, t);
642
- }, Fo = T("div", {
670
+ }, qo, t);
671
+ }, Ko = b("div", {
643
672
  name: "MuiAccordionDetails",
644
673
  slot: "Root"
645
- })(M(({
674
+ })(W(({
646
675
  theme: e
647
676
  }) => ({
648
677
  padding: e.spacing(1, 2, 2)
649
- }))), ao = /* @__PURE__ */ p.forwardRef(function(t, r) {
650
- const s = J({
678
+ }))), co = /* @__PURE__ */ c.forwardRef(function(t, n) {
679
+ const s = Q({
651
680
  props: t,
652
681
  name: "MuiAccordionDetails"
653
682
  }), {
654
- className: c,
655
- ...m
656
- } = s, f = s, y = qo(f);
657
- return /* @__PURE__ */ i.jsx(Fo, {
658
- className: H(y.root, c),
659
- ref: r,
660
- ownerState: f,
661
- ...m
683
+ className: a,
684
+ ...d
685
+ } = s, p = s, u = Jo(p);
686
+ return /* @__PURE__ */ i.jsx(Ko, {
687
+ className: L(u.root, a),
688
+ ref: n,
689
+ ownerState: p,
690
+ ...d
662
691
  });
663
692
  });
664
- process.env.NODE_ENV !== "production" && (ao.propTypes = {
693
+ process.env.NODE_ENV !== "production" && (co.propTypes = {
665
694
  // ┌────────────────────────────── Warning ──────────────────────────────┐
666
695
  // │ These PropTypes are generated from the TypeScript type definitions. │
667
696
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -683,26 +712,26 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
683
712
  */
684
713
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
685
714
  });
686
- function ko(e) {
687
- return Y("MuiAccordionSummary", e);
715
+ function Qo(e) {
716
+ return Z("MuiAccordionSummary", e);
688
717
  }
689
- const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Uo = (e) => {
718
+ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Xo = (e) => {
690
719
  const {
691
720
  classes: t,
692
- expanded: r,
721
+ expanded: n,
693
722
  disabled: s,
694
- disableGutters: c
723
+ disableGutters: a
695
724
  } = e;
696
- return K({
697
- root: ["root", r && "expanded", s && "disabled", !c && "gutters"],
725
+ return X({
726
+ root: ["root", n && "expanded", s && "disabled", !a && "gutters"],
698
727
  focusVisible: ["focusVisible"],
699
- content: ["content", r && "expanded", !c && "contentGutters"],
700
- expandIconWrapper: ["expandIconWrapper", r && "expanded"]
701
- }, ko, t);
702
- }, Go = T(Ao, {
728
+ content: ["content", n && "expanded", !a && "contentGutters"],
729
+ expandIconWrapper: ["expandIconWrapper", n && "expanded"]
730
+ }, Qo, t);
731
+ }, Yo = b(Mo, {
703
732
  name: "MuiAccordionSummary",
704
733
  slot: "Root"
705
- })(M(({
734
+ })(W(({
706
735
  theme: e
707
736
  }) => {
708
737
  const t = {
@@ -714,28 +743,28 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
714
743
  minHeight: 48,
715
744
  padding: e.spacing(0, 2),
716
745
  transition: e.transitions.create(["min-height", "background-color"], t),
717
- [`&.${q.focusVisible}`]: {
746
+ [`&.${B.focusVisible}`]: {
718
747
  backgroundColor: (e.vars || e).palette.action.focus
719
748
  },
720
- [`&.${q.disabled}`]: {
749
+ [`&.${B.disabled}`]: {
721
750
  opacity: (e.vars || e).palette.action.disabledOpacity
722
751
  },
723
- [`&:hover:not(.${q.disabled})`]: {
752
+ [`&:hover:not(.${B.disabled})`]: {
724
753
  cursor: "pointer"
725
754
  },
726
755
  variants: [{
727
- props: (r) => !r.disableGutters,
756
+ props: (n) => !n.disableGutters,
728
757
  style: {
729
- [`&.${q.expanded}`]: {
758
+ [`&.${B.expanded}`]: {
730
759
  minHeight: 64
731
760
  }
732
761
  }
733
762
  }]
734
763
  };
735
- })), Ho = T("span", {
764
+ })), Zo = b("span", {
736
765
  name: "MuiAccordionSummary",
737
766
  slot: "Content"
738
- })(M(({
767
+ })(W(({
739
768
  theme: e
740
769
  }) => ({
741
770
  display: "flex",
@@ -748,15 +777,15 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
748
777
  transition: e.transitions.create(["margin"], {
749
778
  duration: e.transitions.duration.shortest
750
779
  }),
751
- [`&.${q.expanded}`]: {
780
+ [`&.${B.expanded}`]: {
752
781
  margin: "20px 0"
753
782
  }
754
783
  }
755
784
  }]
756
- }))), Bo = T("span", {
785
+ }))), oe = b("span", {
757
786
  name: "MuiAccordionSummary",
758
787
  slot: "ExpandIconWrapper"
759
- })(M(({
788
+ })(W(({
760
789
  theme: e
761
790
  }) => ({
762
791
  display: "flex",
@@ -765,84 +794,83 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
765
794
  transition: e.transitions.create("transform", {
766
795
  duration: e.transitions.duration.shortest
767
796
  }),
768
- [`&.${q.expanded}`]: {
797
+ [`&.${B.expanded}`]: {
769
798
  transform: "rotate(180deg)"
770
799
  }
771
- }))), co = /* @__PURE__ */ p.forwardRef(function(t, r) {
772
- const s = J({
800
+ }))), lo = /* @__PURE__ */ c.forwardRef(function(t, n) {
801
+ const s = Q({
773
802
  props: t,
774
803
  name: "MuiAccordionSummary"
775
804
  }), {
776
- children: c,
777
- className: m,
778
- expandIcon: f,
779
- focusVisibleClassName: y,
780
- onClick: A,
805
+ children: a,
806
+ className: d,
807
+ expandIcon: p,
808
+ focusVisibleClassName: u,
809
+ onClick: R,
781
810
  slots: z,
782
- slotProps: S,
783
- ...w
811
+ slotProps: P,
812
+ ...k
784
813
  } = s, {
785
- disabled: v = !1,
814
+ disabled: N = !1,
786
815
  disableGutters: V,
787
- expanded: j,
788
- toggle: $
789
- } = p.useContext(no), _ = (a) => {
790
- $ && $(a), A && A(a);
791
- }, d = {
816
+ expanded: O,
817
+ toggle: F
818
+ } = c.useContext(no), f = (l) => {
819
+ F && F(l), R && R(l);
820
+ }, h = {
792
821
  ...s,
793
- expanded: j,
794
- disabled: v,
822
+ expanded: O,
823
+ disabled: N,
795
824
  disableGutters: V
796
- }, g = Uo(d), l = {
825
+ }, T = Xo(h), C = {
797
826
  slots: z,
798
- slotProps: S
799
- }, [N, F] = I("root", {
800
- ref: r,
827
+ slotProps: P
828
+ }, [I, m] = x("root", {
829
+ ref: n,
801
830
  shouldForwardComponentProp: !0,
802
- className: H(g.root, m),
803
- elementType: Go,
831
+ className: L(T.root, d),
832
+ elementType: Yo,
804
833
  externalForwardedProps: {
805
- ...l,
806
- ...w
834
+ ...C,
835
+ ...k
807
836
  },
808
- ownerState: d,
837
+ ownerState: h,
809
838
  additionalProps: {
810
839
  focusRipple: !1,
811
840
  disableRipple: !0,
812
- disabled: v,
813
- "aria-expanded": j,
814
- focusVisibleClassName: H(g.focusVisible, y)
841
+ disabled: N,
842
+ "aria-expanded": O,
843
+ focusVisibleClassName: L(T.focusVisible, u)
815
844
  },
816
- getSlotProps: (a) => ({
817
- ...a,
818
- onClick: (h) => {
819
- var P;
820
- (P = a.onClick) == null || P.call(a, h), _(h);
845
+ getSlotProps: (l) => ({
846
+ ...l,
847
+ onClick: (G) => {
848
+ l.onClick?.(G), f(G);
821
849
  }
822
850
  })
823
- }), [C, u] = I("content", {
824
- className: g.content,
825
- elementType: Ho,
826
- externalForwardedProps: l,
827
- ownerState: d
828
- }), [E, k] = I("expandIconWrapper", {
829
- className: g.expandIconWrapper,
830
- elementType: Bo,
831
- externalForwardedProps: l,
832
- ownerState: d
851
+ }), [S, M] = x("content", {
852
+ className: T.content,
853
+ elementType: Zo,
854
+ externalForwardedProps: C,
855
+ ownerState: h
856
+ }), [w, E] = x("expandIconWrapper", {
857
+ className: T.expandIconWrapper,
858
+ elementType: oe,
859
+ externalForwardedProps: C,
860
+ ownerState: h
833
861
  });
834
- return /* @__PURE__ */ i.jsxs(N, {
835
- ...F,
836
- children: [/* @__PURE__ */ i.jsx(C, {
837
- ...u,
838
- children: c
839
- }), f && /* @__PURE__ */ i.jsx(E, {
840
- ...k,
841
- children: f
862
+ return /* @__PURE__ */ i.jsxs(I, {
863
+ ...m,
864
+ children: [/* @__PURE__ */ i.jsx(S, {
865
+ ...M,
866
+ children: a
867
+ }), p && /* @__PURE__ */ i.jsx(w, {
868
+ ...E,
869
+ children: p
842
870
  })]
843
871
  });
844
872
  });
845
- process.env.NODE_ENV !== "production" && (co.propTypes = {
873
+ process.env.NODE_ENV !== "production" && (lo.propTypes = {
846
874
  // ┌────────────────────────────── Warning ──────────────────────────────┐
847
875
  // │ These PropTypes are generated from the TypeScript type definitions. │
848
876
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -899,35 +927,23 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
899
927
  */
900
928
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
901
929
  });
902
- const to = ({
930
+ const ee = ({
903
931
  title: e,
904
932
  children: t,
905
- startIcon: r,
933
+ startIcon: n,
906
934
  titleTypographyProps: s,
907
- accordionSummaryProps: c,
908
- accordionDetailsProps: m,
909
- ...f
910
- }) => /* @__PURE__ */ i.jsxs(io, { elevation: 0, ...f, children: [
911
- e || r ? /* @__PURE__ */ i.jsx(co, { expandIcon: /* @__PURE__ */ i.jsx(yo, {}), ...c, children: /* @__PURE__ */ i.jsxs(wo, { direction: "row", spacing: 1, alignItems: "center", children: [
912
- r,
913
- /* @__PURE__ */ i.jsx(vo, { variant: "subtitle1", fontWeight: 600, ...s, children: e })
935
+ accordionSummaryProps: a,
936
+ accordionDetailsProps: d,
937
+ ...p
938
+ }) => /* @__PURE__ */ i.jsxs(ao, { elevation: 0, ...p, children: [
939
+ e || n ? /* @__PURE__ */ i.jsx(lo, { expandIcon: /* @__PURE__ */ i.jsx(wo, {}), ...a, children: /* @__PURE__ */ i.jsxs($o, { direction: "row", spacing: 1, alignItems: "center", children: [
940
+ n,
941
+ /* @__PURE__ */ i.jsx(Wo, { variant: "subtitle1", fontWeight: 600, ...s, children: e })
914
942
  ] }) }) : null,
915
- /* @__PURE__ */ i.jsx(ao, { ...m, children: t })
943
+ /* @__PURE__ */ i.jsx(co, { ...d, children: t })
916
944
  ] });
917
- to.displayName = "SAccordion";
918
- try {
919
- to.displayName = "SAccordion", to.__docgenInfo = { description: `A collapsible accordion component built on Material-UI Accordion with custom theming,
920
- optional icons, and smooth expand/collapse animations. Perfect for organizing content
921
- sections and FAQs.`, displayName: "SAccordion", props: { title: { defaultValue: null, description: "The title/header content of the accordion", name: "title", required: !0, type: { name: "ReactNode" } }, startIcon: { defaultValue: null, description: "Optional icon to display at the start of the accordion header", name: "startIcon", required: !1, type: { name: "ReactNode" } }, titleTypographyProps: { defaultValue: null, description: "Props to pass to the Typography component for the title", name: "titleTypographyProps", required: !1, type: { name: "TypographyProps" } }, accordionSummaryProps: { defaultValue: null, description: "Props to pass to the AccordionSummary component for customization", name: "accordionSummaryProps", required: !1, type: { name: "AccordionSummaryProps" } }, accordionDetailsProps: { defaultValue: null, description: "Props to pass to the AccordionDetails component for customization", name: "accordionDetailsProps", required: !1, type: { name: "AccordionDetailsProps" } } } };
922
- } catch {
923
- }
924
- try {
925
- saccordion.displayName = "saccordion", saccordion.__docgenInfo = { description: `A collapsible accordion component built on Material-UI Accordion with custom theming,
926
- optional icons, and smooth expand/collapse animations. Perfect for organizing content
927
- sections and FAQs.`, displayName: "saccordion", props: { title: { defaultValue: null, description: "The title/header content of the accordion", name: "title", required: !0, type: { name: "ReactNode" } }, startIcon: { defaultValue: null, description: "Optional icon to display at the start of the accordion header", name: "startIcon", required: !1, type: { name: "ReactNode" } }, titleTypographyProps: { defaultValue: null, description: "Props to pass to the Typography component for the title", name: "titleTypographyProps", required: !1, type: { name: "TypographyProps" } }, accordionSummaryProps: { defaultValue: null, description: "Props to pass to the AccordionSummary component for customization", name: "accordionSummaryProps", required: !1, type: { name: "AccordionSummaryProps" } }, accordionDetailsProps: { defaultValue: null, description: "Props to pass to the AccordionDetails component for customization", name: "accordionDetailsProps", required: !1, type: { name: "AccordionDetailsProps" } } } };
928
- } catch {
929
- }
945
+ ee.displayName = "SAccordion";
930
946
  export {
931
- to as SAccordion,
932
- to as default
947
+ ee as SAccordion,
948
+ ee as default
933
949
  };