@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
@@ -0,0 +1,1099 @@
1
+ import { c as M } from "./clsx-OuTLNxxd.js";
2
+ import * as f from "react";
3
+ import X, { isValidElement as q, cloneElement as G, Children as Ve } from "react";
4
+ import { P as o } from "./createTheme-f5g1s6ww.js";
5
+ import { j as B } from "./jsx-runtime-tc70JA_2.js";
6
+ import { g as ke } from "./generateUtilityClasses-BtVDwGrk.js";
7
+ import { u as de, c as Ie } from "./DefaultPropsProvider-sk0uWcA6.js";
8
+ import { s as oe } from "./styled-B0KflPi-.js";
9
+ import { a as Fe, _ as Le } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
10
+ import { keyframes as re } from "@emotion/react";
11
+ import { g as Be, b as $e } from "./buttonBaseClasses-jCihfot4.js";
12
+ import { u as _e } from "./useEnhancedEffect-CJGo-L3B.js";
13
+ function Z(e) {
14
+ const t = f.useRef(e);
15
+ return _e(() => {
16
+ t.current = e;
17
+ }), f.useRef((...n) => (
18
+ // @ts-expect-error hide `this`
19
+ (0, t.current)(...n)
20
+ )).current;
21
+ }
22
+ function ee(...e) {
23
+ const t = f.useRef(void 0), n = f.useCallback((r) => {
24
+ const s = e.map((i) => {
25
+ if (i == null)
26
+ return null;
27
+ if (typeof i == "function") {
28
+ const u = i, l = u(r);
29
+ return typeof l == "function" ? l : () => {
30
+ u(null);
31
+ };
32
+ }
33
+ return i.current = r, () => {
34
+ i.current = null;
35
+ };
36
+ });
37
+ return () => {
38
+ s.forEach((i) => i?.());
39
+ };
40
+ }, e);
41
+ return f.useMemo(() => e.every((r) => r == null) ? null : (r) => {
42
+ t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
43
+ }, e);
44
+ }
45
+ function Ae(e, t) {
46
+ return process.env.NODE_ENV === "production" ? () => null : function(...r) {
47
+ return e(...r) || t(...r);
48
+ };
49
+ }
50
+ function te(e, t) {
51
+ return te = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
52
+ return n.__proto__ = r, n;
53
+ }, te(e, t);
54
+ }
55
+ function Ue(e, t) {
56
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, te(e, t);
57
+ }
58
+ const le = X.createContext(null);
59
+ function ze(e) {
60
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
61
+ return e;
62
+ }
63
+ function se(e, t) {
64
+ var n = function(i) {
65
+ return t && q(i) ? t(i) : i;
66
+ }, r = /* @__PURE__ */ Object.create(null);
67
+ return e && Ve.map(e, function(s) {
68
+ return s;
69
+ }).forEach(function(s) {
70
+ r[s.key] = n(s);
71
+ }), r;
72
+ }
73
+ function He(e, t) {
74
+ e = e || {}, t = t || {};
75
+ function n(d) {
76
+ return d in t ? t[d] : e[d];
77
+ }
78
+ var r = /* @__PURE__ */ Object.create(null), s = [];
79
+ for (var i in e)
80
+ i in t ? s.length && (r[i] = s, s = []) : s.push(i);
81
+ var u, l = {};
82
+ for (var c in t) {
83
+ if (r[c])
84
+ for (u = 0; u < r[c].length; u++) {
85
+ var p = r[c][u];
86
+ l[r[c][u]] = n(p);
87
+ }
88
+ l[c] = n(c);
89
+ }
90
+ for (u = 0; u < s.length; u++)
91
+ l[s[u]] = n(s[u]);
92
+ return l;
93
+ }
94
+ function L(e, t, n) {
95
+ return n[t] != null ? n[t] : e.props[t];
96
+ }
97
+ function Ye(e, t) {
98
+ return se(e.children, function(n) {
99
+ return G(n, {
100
+ onExited: t.bind(null, n),
101
+ in: !0,
102
+ appear: L(n, "appear", e),
103
+ enter: L(n, "enter", e),
104
+ exit: L(n, "exit", e)
105
+ });
106
+ });
107
+ }
108
+ function Xe(e, t, n) {
109
+ var r = se(e.children), s = He(t, r);
110
+ return Object.keys(s).forEach(function(i) {
111
+ var u = s[i];
112
+ if (q(u)) {
113
+ var l = i in t, c = i in r, p = t[i], d = q(p) && !p.props.in;
114
+ c && (!l || d) ? s[i] = G(u, {
115
+ onExited: n.bind(null, u),
116
+ in: !0,
117
+ exit: L(u, "exit", e),
118
+ enter: L(u, "enter", e)
119
+ }) : !c && l && !d ? s[i] = G(u, {
120
+ in: !1
121
+ }) : c && l && q(p) && (s[i] = G(u, {
122
+ onExited: n.bind(null, u),
123
+ in: p.props.in,
124
+ exit: L(u, "exit", e),
125
+ enter: L(u, "enter", e)
126
+ }));
127
+ }
128
+ }), s;
129
+ }
130
+ var Ke = Object.values || function(e) {
131
+ return Object.keys(e).map(function(t) {
132
+ return e[t];
133
+ });
134
+ }, We = {
135
+ component: "div",
136
+ childFactory: function(t) {
137
+ return t;
138
+ }
139
+ }, ie = /* @__PURE__ */ (function(e) {
140
+ Ue(t, e);
141
+ function t(r, s) {
142
+ var i;
143
+ i = e.call(this, r, s) || this;
144
+ var u = i.handleExited.bind(ze(i));
145
+ return i.state = {
146
+ contextValue: {
147
+ isMounting: !0
148
+ },
149
+ handleExited: u,
150
+ firstRender: !0
151
+ }, i;
152
+ }
153
+ var n = t.prototype;
154
+ return n.componentDidMount = function() {
155
+ this.mounted = !0, this.setState({
156
+ contextValue: {
157
+ isMounting: !1
158
+ }
159
+ });
160
+ }, n.componentWillUnmount = function() {
161
+ this.mounted = !1;
162
+ }, t.getDerivedStateFromProps = function(s, i) {
163
+ var u = i.children, l = i.handleExited, c = i.firstRender;
164
+ return {
165
+ children: c ? Ye(s, l) : Xe(s, u, l),
166
+ firstRender: !1
167
+ };
168
+ }, n.handleExited = function(s, i) {
169
+ var u = se(this.props.children);
170
+ s.key in u || (s.props.onExited && s.props.onExited(i), this.mounted && this.setState(function(l) {
171
+ var c = Fe({}, l.children);
172
+ return delete c[s.key], {
173
+ children: c
174
+ };
175
+ }));
176
+ }, n.render = function() {
177
+ var s = this.props, i = s.component, u = s.childFactory, l = Le(s, ["component", "childFactory"]), c = this.state.contextValue, p = Ke(this.state.children).map(u);
178
+ return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ X.createElement(le.Provider, {
179
+ value: c
180
+ }, p) : /* @__PURE__ */ X.createElement(le.Provider, {
181
+ value: c
182
+ }, /* @__PURE__ */ X.createElement(i, l, p));
183
+ }, t;
184
+ })(X.Component);
185
+ ie.propTypes = process.env.NODE_ENV !== "production" ? {
186
+ /**
187
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
188
+ * behavior by providing a `component` prop.
189
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
190
+ * you can pass in `component={null}`. This is useful if the wrapping div
191
+ * borks your css styles.
192
+ */
193
+ component: o.any,
194
+ /**
195
+ * A set of `<Transition>` components, that are toggled `in` and out as they
196
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
197
+ * remember to spread them through if you are wrapping the `<Transition>` as
198
+ * with our `<Fade>` example.
199
+ *
200
+ * While this component is meant for multiple `Transition` or `CSSTransition`
201
+ * children, sometimes you may want to have a single transition child with
202
+ * content that you want to be transitioned out and in when you change it
203
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
204
+ * the transition child as you change its content, this will cause
205
+ * `TransitionGroup` to transition the child out and back in.
206
+ */
207
+ children: o.node,
208
+ /**
209
+ * A convenience prop that enables or disables appear animations
210
+ * for all children. Note that specifying this will override any defaults set
211
+ * on individual children Transitions.
212
+ */
213
+ appear: o.bool,
214
+ /**
215
+ * A convenience prop that enables or disables enter animations
216
+ * for all children. Note that specifying this will override any defaults set
217
+ * on individual children Transitions.
218
+ */
219
+ enter: o.bool,
220
+ /**
221
+ * A convenience prop that enables or disables exit animations
222
+ * for all children. Note that specifying this will override any defaults set
223
+ * on individual children Transitions.
224
+ */
225
+ exit: o.bool,
226
+ /**
227
+ * You may need to apply reactive updates to a child as it is exiting.
228
+ * This is generally done by using `cloneElement` however in the case of an exiting
229
+ * child the element has already been removed and not accessible to the consumer.
230
+ *
231
+ * If you do need to update a child as it leaves you can provide a `childFactory`
232
+ * to wrap every child, even the ones that are leaving.
233
+ *
234
+ * @type Function(child: ReactElement) -> ReactElement
235
+ */
236
+ childFactory: o.func
237
+ } : {};
238
+ ie.defaultProps = We;
239
+ const ce = {};
240
+ function he(e, t) {
241
+ const n = f.useRef(ce);
242
+ return n.current === ce && (n.current = e(t)), n;
243
+ }
244
+ const qe = [];
245
+ function Ge(e) {
246
+ f.useEffect(e, qe);
247
+ }
248
+ class ue {
249
+ static create() {
250
+ return new ue();
251
+ }
252
+ currentId = null;
253
+ /**
254
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
255
+ */
256
+ start(t, n) {
257
+ this.clear(), this.currentId = setTimeout(() => {
258
+ this.currentId = null, n();
259
+ }, t);
260
+ }
261
+ clear = () => {
262
+ this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
263
+ };
264
+ disposeEffect = () => this.clear;
265
+ }
266
+ function Ze() {
267
+ const e = he(ue.create).current;
268
+ return Ge(e.disposeEffect), e;
269
+ }
270
+ function Je(e) {
271
+ const {
272
+ prototype: t = {}
273
+ } = e;
274
+ return !!t.isReactComponent;
275
+ }
276
+ function Qe(e, t, n, r, s) {
277
+ const i = e[t], u = s || t;
278
+ if (i == null || // When server-side rendering React doesn't warn either.
279
+ // This is not an accurate check for SSR.
280
+ // This is only in place for emotion compat.
281
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
282
+ typeof window > "u")
283
+ return null;
284
+ let l;
285
+ return typeof i == "function" && !Je(i) && (l = "Did you accidentally provide a plain function component instead?"), i === f.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
286
+ }
287
+ const et = Ae(o.elementType, Qe);
288
+ function tt(e) {
289
+ return typeof e == "string";
290
+ }
291
+ function nt(e, t, n) {
292
+ return e === void 0 || tt(e) ? t : {
293
+ ...t,
294
+ ownerState: {
295
+ ...t.ownerState,
296
+ ...n
297
+ }
298
+ };
299
+ }
300
+ function ot(e, t, n) {
301
+ return typeof e == "function" ? e(t, n) : e;
302
+ }
303
+ function rt(e, t = []) {
304
+ if (e === void 0)
305
+ return {};
306
+ const n = {};
307
+ return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !t.includes(r)).forEach((r) => {
308
+ n[r] = e[r];
309
+ }), n;
310
+ }
311
+ function pe(e) {
312
+ if (e === void 0)
313
+ return {};
314
+ const t = {};
315
+ return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
316
+ t[n] = e[n];
317
+ }), t;
318
+ }
319
+ function st(e) {
320
+ const {
321
+ getSlotProps: t,
322
+ additionalProps: n,
323
+ externalSlotProps: r,
324
+ externalForwardedProps: s,
325
+ className: i
326
+ } = e;
327
+ if (!t) {
328
+ const R = M(n?.className, i, s?.className, r?.className), b = {
329
+ ...n?.style,
330
+ ...s?.style,
331
+ ...r?.style
332
+ }, E = {
333
+ ...n,
334
+ ...s,
335
+ ...r
336
+ };
337
+ return R.length > 0 && (E.className = R), Object.keys(b).length > 0 && (E.style = b), {
338
+ props: E,
339
+ internalRef: void 0
340
+ };
341
+ }
342
+ const u = rt({
343
+ ...s,
344
+ ...r
345
+ }), l = pe(r), c = pe(s), p = t(u), d = M(p?.className, n?.className, i, s?.className, r?.className), h = {
346
+ ...p?.style,
347
+ ...n?.style,
348
+ ...s?.style,
349
+ ...r?.style
350
+ }, y = {
351
+ ...p,
352
+ ...n,
353
+ ...c,
354
+ ...l
355
+ };
356
+ return d.length > 0 && (y.className = d), Object.keys(h).length > 0 && (y.style = h), {
357
+ props: y,
358
+ internalRef: p.ref
359
+ };
360
+ }
361
+ function St(e, t) {
362
+ const {
363
+ className: n,
364
+ elementType: r,
365
+ ownerState: s,
366
+ externalForwardedProps: i,
367
+ internalForwardedProps: u,
368
+ shouldForwardComponentProp: l = !1,
369
+ ...c
370
+ } = t, {
371
+ component: p,
372
+ slots: d = {
373
+ [e]: void 0
374
+ },
375
+ slotProps: h = {
376
+ [e]: void 0
377
+ },
378
+ ...y
379
+ } = i, R = d[e] || r, b = ot(h[e], s), {
380
+ props: {
381
+ component: E,
382
+ ...C
383
+ },
384
+ internalRef: O
385
+ } = st({
386
+ className: n,
387
+ ...c,
388
+ externalForwardedProps: e === "root" ? y : void 0,
389
+ externalSlotProps: b
390
+ }), $ = ee(O, b?.ref, t.ref), v = e === "root" ? E || p : E, m = nt(R, {
391
+ ...e === "root" && !p && !d[e] && u,
392
+ ...e !== "root" && !d[e] && u,
393
+ ...C,
394
+ ...v && !l && {
395
+ as: v
396
+ },
397
+ ...v && l && {
398
+ component: v
399
+ },
400
+ ref: $
401
+ }, s);
402
+ return [R, m];
403
+ }
404
+ const it = o.oneOfType([o.func, o.object]);
405
+ function fe(e) {
406
+ try {
407
+ return e.matches(":focus-visible");
408
+ } catch {
409
+ process.env.NODE_ENV !== "production" && !window.navigator.userAgent.includes("jsdom") && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
410
+ `));
411
+ }
412
+ return !1;
413
+ }
414
+ class J {
415
+ /** React ref to the ripple instance */
416
+ /** If the ripple component should be mounted */
417
+ /** Promise that resolves when the ripple component is mounted */
418
+ /** If the ripple component has been mounted */
419
+ /** React state hook setter */
420
+ static create() {
421
+ return new J();
422
+ }
423
+ static use() {
424
+ const t = he(J.create).current, [n, r] = f.useState(!1);
425
+ return t.shouldMount = n, t.setShouldMount = r, f.useEffect(t.mountEffect, [n]), t;
426
+ }
427
+ constructor() {
428
+ this.ref = {
429
+ current: null
430
+ }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
431
+ }
432
+ mount() {
433
+ return this.mounted || (this.mounted = at(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
434
+ }
435
+ mountEffect = () => {
436
+ this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
437
+ };
438
+ /* Ripple API */
439
+ start(...t) {
440
+ this.mount().then(() => this.ref.current?.start(...t));
441
+ }
442
+ stop(...t) {
443
+ this.mount().then(() => this.ref.current?.stop(...t));
444
+ }
445
+ pulsate(...t) {
446
+ this.mount().then(() => this.ref.current?.pulsate(...t));
447
+ }
448
+ }
449
+ function ut() {
450
+ return J.use();
451
+ }
452
+ function at() {
453
+ let e, t;
454
+ const n = new Promise((r, s) => {
455
+ e = r, t = s;
456
+ });
457
+ return n.resolve = e, n.reject = t, n;
458
+ }
459
+ function me(e) {
460
+ const {
461
+ className: t,
462
+ classes: n,
463
+ pulsate: r = !1,
464
+ rippleX: s,
465
+ rippleY: i,
466
+ rippleSize: u,
467
+ in: l,
468
+ onExited: c,
469
+ timeout: p
470
+ } = e, [d, h] = f.useState(!1), y = M(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), R = {
471
+ width: u,
472
+ height: u,
473
+ top: -(u / 2) + i,
474
+ left: -(u / 2) + s
475
+ }, b = M(n.child, d && n.childLeaving, r && n.childPulsate);
476
+ return !l && !d && h(!0), f.useEffect(() => {
477
+ if (!l && c != null) {
478
+ const E = setTimeout(c, p);
479
+ return () => {
480
+ clearTimeout(E);
481
+ };
482
+ }
483
+ }, [c, l, p]), /* @__PURE__ */ B.jsx("span", {
484
+ className: y,
485
+ style: R,
486
+ children: /* @__PURE__ */ B.jsx("span", {
487
+ className: b
488
+ })
489
+ });
490
+ }
491
+ process.env.NODE_ENV !== "production" && (me.propTypes = {
492
+ /**
493
+ * Override or extend the styles applied to the component.
494
+ */
495
+ classes: o.object.isRequired,
496
+ className: o.string,
497
+ /**
498
+ * @ignore - injected from TransitionGroup
499
+ */
500
+ in: o.bool,
501
+ /**
502
+ * @ignore - injected from TransitionGroup
503
+ */
504
+ onExited: o.func,
505
+ /**
506
+ * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
507
+ */
508
+ pulsate: o.bool,
509
+ /**
510
+ * Diameter of the ripple.
511
+ */
512
+ rippleSize: o.number,
513
+ /**
514
+ * Horizontal position of the ripple center.
515
+ */
516
+ rippleX: o.number,
517
+ /**
518
+ * Vertical position of the ripple center.
519
+ */
520
+ rippleY: o.number,
521
+ /**
522
+ * exit delay
523
+ */
524
+ timeout: o.number.isRequired
525
+ });
526
+ const T = ke("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ne = 550, lt = 80, ct = re`
527
+ 0% {
528
+ transform: scale(0);
529
+ opacity: 0.1;
530
+ }
531
+
532
+ 100% {
533
+ transform: scale(1);
534
+ opacity: 0.3;
535
+ }
536
+ `, pt = re`
537
+ 0% {
538
+ opacity: 1;
539
+ }
540
+
541
+ 100% {
542
+ opacity: 0;
543
+ }
544
+ `, ft = re`
545
+ 0% {
546
+ transform: scale(1);
547
+ }
548
+
549
+ 50% {
550
+ transform: scale(0.92);
551
+ }
552
+
553
+ 100% {
554
+ transform: scale(1);
555
+ }
556
+ `, dt = oe("span", {
557
+ name: "MuiTouchRipple",
558
+ slot: "Root"
559
+ })({
560
+ overflow: "hidden",
561
+ pointerEvents: "none",
562
+ position: "absolute",
563
+ zIndex: 0,
564
+ top: 0,
565
+ right: 0,
566
+ bottom: 0,
567
+ left: 0,
568
+ borderRadius: "inherit"
569
+ }), ht = oe(me, {
570
+ name: "MuiTouchRipple",
571
+ slot: "Ripple"
572
+ })`
573
+ opacity: 0;
574
+ position: absolute;
575
+
576
+ &.${T.rippleVisible} {
577
+ opacity: 0.3;
578
+ transform: scale(1);
579
+ animation-name: ${ct};
580
+ animation-duration: ${ne}ms;
581
+ animation-timing-function: ${({
582
+ theme: e
583
+ }) => e.transitions.easing.easeInOut};
584
+ }
585
+
586
+ &.${T.ripplePulsate} {
587
+ animation-duration: ${({
588
+ theme: e
589
+ }) => e.transitions.duration.shorter}ms;
590
+ }
591
+
592
+ & .${T.child} {
593
+ opacity: 1;
594
+ display: block;
595
+ width: 100%;
596
+ height: 100%;
597
+ border-radius: 50%;
598
+ background-color: currentColor;
599
+ }
600
+
601
+ & .${T.childLeaving} {
602
+ opacity: 0;
603
+ animation-name: ${pt};
604
+ animation-duration: ${ne}ms;
605
+ animation-timing-function: ${({
606
+ theme: e
607
+ }) => e.transitions.easing.easeInOut};
608
+ }
609
+
610
+ & .${T.childPulsate} {
611
+ position: absolute;
612
+ /* @noflip */
613
+ left: 0px;
614
+ top: 0;
615
+ animation-name: ${ft};
616
+ animation-duration: 2500ms;
617
+ animation-timing-function: ${({
618
+ theme: e
619
+ }) => e.transitions.easing.easeInOut};
620
+ animation-iteration-count: infinite;
621
+ animation-delay: 200ms;
622
+ }
623
+ `, be = /* @__PURE__ */ f.forwardRef(function(t, n) {
624
+ const r = de({
625
+ props: t,
626
+ name: "MuiTouchRipple"
627
+ }), {
628
+ center: s = !1,
629
+ classes: i = {},
630
+ className: u,
631
+ ...l
632
+ } = r, [c, p] = f.useState([]), d = f.useRef(0), h = f.useRef(null);
633
+ f.useEffect(() => {
634
+ h.current && (h.current(), h.current = null);
635
+ }, [c]);
636
+ const y = f.useRef(!1), R = Ze(), b = f.useRef(null), E = f.useRef(null), C = f.useCallback((m) => {
637
+ const {
638
+ pulsate: P,
639
+ rippleX: x,
640
+ rippleY: _,
641
+ rippleSize: k,
642
+ cb: U
643
+ } = m;
644
+ p((N) => [...N, /* @__PURE__ */ B.jsx(ht, {
645
+ classes: {
646
+ ripple: M(i.ripple, T.ripple),
647
+ rippleVisible: M(i.rippleVisible, T.rippleVisible),
648
+ ripplePulsate: M(i.ripplePulsate, T.ripplePulsate),
649
+ child: M(i.child, T.child),
650
+ childLeaving: M(i.childLeaving, T.childLeaving),
651
+ childPulsate: M(i.childPulsate, T.childPulsate)
652
+ },
653
+ timeout: ne,
654
+ pulsate: P,
655
+ rippleX: x,
656
+ rippleY: _,
657
+ rippleSize: k
658
+ }, d.current)]), d.current += 1, h.current = U;
659
+ }, [i]), O = f.useCallback((m = {}, P = {}, x = () => {
660
+ }) => {
661
+ const {
662
+ pulsate: _ = !1,
663
+ center: k = s || P.pulsate,
664
+ fakeElement: U = !1
665
+ // For test purposes
666
+ } = P;
667
+ if (m?.type === "mousedown" && y.current) {
668
+ y.current = !1;
669
+ return;
670
+ }
671
+ m?.type === "touchstart" && (y.current = !0);
672
+ const N = U ? null : E.current, D = N ? N.getBoundingClientRect() : {
673
+ width: 0,
674
+ height: 0,
675
+ left: 0,
676
+ top: 0
677
+ };
678
+ let j, w, V;
679
+ if (k || m === void 0 || m.clientX === 0 && m.clientY === 0 || !m.clientX && !m.touches)
680
+ j = Math.round(D.width / 2), w = Math.round(D.height / 2);
681
+ else {
682
+ const {
683
+ clientX: z,
684
+ clientY: I
685
+ } = m.touches && m.touches.length > 0 ? m.touches[0] : m;
686
+ j = Math.round(z - D.left), w = Math.round(I - D.top);
687
+ }
688
+ if (k)
689
+ V = Math.sqrt((2 * D.width ** 2 + D.height ** 2) / 3), V % 2 === 0 && (V += 1);
690
+ else {
691
+ const z = Math.max(Math.abs((N ? N.clientWidth : 0) - j), j) * 2 + 2, I = Math.max(Math.abs((N ? N.clientHeight : 0) - w), w) * 2 + 2;
692
+ V = Math.sqrt(z ** 2 + I ** 2);
693
+ }
694
+ m?.touches ? b.current === null && (b.current = () => {
695
+ C({
696
+ pulsate: _,
697
+ rippleX: j,
698
+ rippleY: w,
699
+ rippleSize: V,
700
+ cb: x
701
+ });
702
+ }, R.start(lt, () => {
703
+ b.current && (b.current(), b.current = null);
704
+ })) : C({
705
+ pulsate: _,
706
+ rippleX: j,
707
+ rippleY: w,
708
+ rippleSize: V,
709
+ cb: x
710
+ });
711
+ }, [s, C, R]), $ = f.useCallback(() => {
712
+ O({}, {
713
+ pulsate: !0
714
+ });
715
+ }, [O]), v = f.useCallback((m, P) => {
716
+ if (R.clear(), m?.type === "touchend" && b.current) {
717
+ b.current(), b.current = null, R.start(0, () => {
718
+ v(m, P);
719
+ });
720
+ return;
721
+ }
722
+ b.current = null, p((x) => x.length > 0 ? x.slice(1) : x), h.current = P;
723
+ }, [R]);
724
+ return f.useImperativeHandle(n, () => ({
725
+ pulsate: $,
726
+ start: O,
727
+ stop: v
728
+ }), [$, O, v]), /* @__PURE__ */ B.jsx(dt, {
729
+ className: M(T.root, i.root, u),
730
+ ref: E,
731
+ ...l,
732
+ children: /* @__PURE__ */ B.jsx(ie, {
733
+ component: null,
734
+ exit: !0,
735
+ children: c
736
+ })
737
+ });
738
+ });
739
+ process.env.NODE_ENV !== "production" && (be.propTypes = {
740
+ /**
741
+ * If `true`, the ripple starts at the center of the component
742
+ * rather than at the point of interaction.
743
+ */
744
+ center: o.bool,
745
+ /**
746
+ * Override or extend the styles applied to the component.
747
+ */
748
+ classes: o.object,
749
+ /**
750
+ * @ignore
751
+ */
752
+ className: o.string
753
+ });
754
+ const mt = (e) => {
755
+ const {
756
+ disabled: t,
757
+ focusVisible: n,
758
+ focusVisibleClassName: r,
759
+ classes: s
760
+ } = e, u = Ie({
761
+ root: ["root", t && "disabled", n && "focusVisible"]
762
+ }, Be, s);
763
+ return n && r && (u.root += ` ${r}`), u;
764
+ }, bt = oe("button", {
765
+ name: "MuiButtonBase",
766
+ slot: "Root"
767
+ })({
768
+ display: "inline-flex",
769
+ alignItems: "center",
770
+ justifyContent: "center",
771
+ position: "relative",
772
+ boxSizing: "border-box",
773
+ WebkitTapHighlightColor: "transparent",
774
+ backgroundColor: "transparent",
775
+ // Reset default value
776
+ // We disable the focus ring for mouse, touch and keyboard users.
777
+ outline: 0,
778
+ border: 0,
779
+ margin: 0,
780
+ // Remove the margin in Safari
781
+ borderRadius: 0,
782
+ padding: 0,
783
+ // Remove the padding in Firefox
784
+ cursor: "pointer",
785
+ userSelect: "none",
786
+ verticalAlign: "middle",
787
+ MozAppearance: "none",
788
+ // Reset
789
+ WebkitAppearance: "none",
790
+ // Reset
791
+ textDecoration: "none",
792
+ // So we take precedent over the style of a native <a /> element.
793
+ color: "inherit",
794
+ "&::-moz-focus-inner": {
795
+ borderStyle: "none"
796
+ // Remove Firefox dotted outline.
797
+ },
798
+ [`&.${$e.disabled}`]: {
799
+ pointerEvents: "none",
800
+ // Disable link interactions
801
+ cursor: "default"
802
+ },
803
+ "@media print": {
804
+ colorAdjust: "exact"
805
+ }
806
+ }), yt = /* @__PURE__ */ f.forwardRef(function(t, n) {
807
+ const r = de({
808
+ props: t,
809
+ name: "MuiButtonBase"
810
+ }), {
811
+ action: s,
812
+ centerRipple: i = !1,
813
+ children: u,
814
+ className: l,
815
+ component: c = "button",
816
+ disabled: p = !1,
817
+ disableRipple: d = !1,
818
+ disableTouchRipple: h = !1,
819
+ focusRipple: y = !1,
820
+ focusVisibleClassName: R,
821
+ LinkComponent: b = "a",
822
+ onBlur: E,
823
+ onClick: C,
824
+ onContextMenu: O,
825
+ onDragLeave: $,
826
+ onFocus: v,
827
+ onFocusVisible: m,
828
+ onKeyDown: P,
829
+ onKeyUp: x,
830
+ onMouseDown: _,
831
+ onMouseLeave: k,
832
+ onMouseUp: U,
833
+ onTouchEnd: N,
834
+ onTouchMove: D,
835
+ onTouchStart: j,
836
+ tabIndex: w = 0,
837
+ TouchRippleProps: V,
838
+ touchRippleRef: z,
839
+ type: I,
840
+ ...A
841
+ } = r, H = f.useRef(null), g = ut(), ye = ee(g.ref, z), [F, K] = f.useState(!1);
842
+ p && F && K(!1), f.useImperativeHandle(s, () => ({
843
+ focusVisible: () => {
844
+ K(!0), H.current.focus();
845
+ }
846
+ }), []);
847
+ const ge = g.shouldMount && !d && !p;
848
+ f.useEffect(() => {
849
+ F && y && !d && g.pulsate();
850
+ }, [d, y, F, g]);
851
+ const Re = S(g, "start", _, h), Ee = S(g, "stop", O, h), Me = S(g, "stop", $, h), Te = S(g, "stop", U, h), Ce = S(g, "stop", (a) => {
852
+ F && a.preventDefault(), k && k(a);
853
+ }, h), ve = S(g, "start", j, h), xe = S(g, "stop", N, h), Pe = S(g, "stop", D, h), Ne = S(g, "stop", (a) => {
854
+ fe(a.target) || K(!1), E && E(a);
855
+ }, !1), we = Z((a) => {
856
+ H.current || (H.current = a.currentTarget), fe(a.target) && (K(!0), m && m(a)), v && v(a);
857
+ }), Q = () => {
858
+ const a = H.current;
859
+ return c && c !== "button" && !(a.tagName === "A" && a.href);
860
+ }, Se = Z((a) => {
861
+ y && !a.repeat && F && a.key === " " && g.stop(a, () => {
862
+ g.start(a);
863
+ }), a.target === a.currentTarget && Q() && a.key === " " && a.preventDefault(), P && P(a), a.target === a.currentTarget && Q() && a.key === "Enter" && !p && (a.preventDefault(), C && C(a));
864
+ }), Oe = Z((a) => {
865
+ y && a.key === " " && F && !a.defaultPrevented && g.stop(a, () => {
866
+ g.pulsate(a);
867
+ }), x && x(a), C && a.target === a.currentTarget && Q() && a.key === " " && !a.defaultPrevented && C(a);
868
+ });
869
+ let W = c;
870
+ W === "button" && (A.href || A.to) && (W = b);
871
+ const Y = {};
872
+ if (W === "button") {
873
+ const a = !!A.formAction;
874
+ Y.type = I === void 0 && !a ? "button" : I, Y.disabled = p;
875
+ } else
876
+ !A.href && !A.to && (Y.role = "button"), p && (Y["aria-disabled"] = p);
877
+ const De = ee(n, H), ae = {
878
+ ...r,
879
+ centerRipple: i,
880
+ component: c,
881
+ disabled: p,
882
+ disableRipple: d,
883
+ disableTouchRipple: h,
884
+ focusRipple: y,
885
+ tabIndex: w,
886
+ focusVisible: F
887
+ }, je = mt(ae);
888
+ return /* @__PURE__ */ B.jsxs(bt, {
889
+ as: W,
890
+ className: M(je.root, l),
891
+ ownerState: ae,
892
+ onBlur: Ne,
893
+ onClick: C,
894
+ onContextMenu: Ee,
895
+ onFocus: we,
896
+ onKeyDown: Se,
897
+ onKeyUp: Oe,
898
+ onMouseDown: Re,
899
+ onMouseLeave: Ce,
900
+ onMouseUp: Te,
901
+ onDragLeave: Me,
902
+ onTouchEnd: xe,
903
+ onTouchMove: Pe,
904
+ onTouchStart: ve,
905
+ ref: De,
906
+ tabIndex: p ? -1 : w,
907
+ type: I,
908
+ ...Y,
909
+ ...A,
910
+ children: [u, ge ? /* @__PURE__ */ B.jsx(be, {
911
+ ref: ye,
912
+ center: i,
913
+ ...V
914
+ }) : null]
915
+ });
916
+ });
917
+ function S(e, t, n, r = !1) {
918
+ return Z((s) => (n && n(s), r || e[t](s), !0));
919
+ }
920
+ process.env.NODE_ENV !== "production" && (yt.propTypes = {
921
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
922
+ // │ These PropTypes are generated from the TypeScript type definitions. │
923
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
924
+ // └─────────────────────────────────────────────────────────────────────┘
925
+ /**
926
+ * A ref for imperative actions.
927
+ * It currently only supports `focusVisible()` action.
928
+ */
929
+ action: it,
930
+ /**
931
+ * If `true`, the ripples are centered.
932
+ * They won't start at the cursor interaction position.
933
+ * @default false
934
+ */
935
+ centerRipple: o.bool,
936
+ /**
937
+ * The content of the component.
938
+ */
939
+ children: o.node,
940
+ /**
941
+ * Override or extend the styles applied to the component.
942
+ */
943
+ classes: o.object,
944
+ /**
945
+ * @ignore
946
+ */
947
+ className: o.string,
948
+ /**
949
+ * The component used for the root node.
950
+ * Either a string to use a HTML element or a component.
951
+ */
952
+ component: et,
953
+ /**
954
+ * If `true`, the component is disabled.
955
+ * @default false
956
+ */
957
+ disabled: o.bool,
958
+ /**
959
+ * If `true`, the ripple effect is disabled.
960
+ *
961
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
962
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
963
+ * @default false
964
+ */
965
+ disableRipple: o.bool,
966
+ /**
967
+ * If `true`, the touch ripple effect is disabled.
968
+ * @default false
969
+ */
970
+ disableTouchRipple: o.bool,
971
+ /**
972
+ * If `true`, the base button will have a keyboard focus ripple.
973
+ * @default false
974
+ */
975
+ focusRipple: o.bool,
976
+ /**
977
+ * This prop can help identify which element has keyboard focus.
978
+ * The class name will be applied when the element gains the focus through keyboard interaction.
979
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
980
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
981
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
982
+ * if needed.
983
+ */
984
+ focusVisibleClassName: o.string,
985
+ /**
986
+ * @ignore
987
+ */
988
+ formAction: o.oneOfType([o.func, o.string]),
989
+ /**
990
+ * @ignore
991
+ */
992
+ href: o.any,
993
+ /**
994
+ * The component used to render a link when the `href` prop is provided.
995
+ * @default 'a'
996
+ */
997
+ LinkComponent: o.elementType,
998
+ /**
999
+ * @ignore
1000
+ */
1001
+ onBlur: o.func,
1002
+ /**
1003
+ * @ignore
1004
+ */
1005
+ onClick: o.func,
1006
+ /**
1007
+ * @ignore
1008
+ */
1009
+ onContextMenu: o.func,
1010
+ /**
1011
+ * @ignore
1012
+ */
1013
+ onDragLeave: o.func,
1014
+ /**
1015
+ * @ignore
1016
+ */
1017
+ onFocus: o.func,
1018
+ /**
1019
+ * Callback fired when the component is focused with a keyboard.
1020
+ * We trigger a `onFocus` callback too.
1021
+ */
1022
+ onFocusVisible: o.func,
1023
+ /**
1024
+ * @ignore
1025
+ */
1026
+ onKeyDown: o.func,
1027
+ /**
1028
+ * @ignore
1029
+ */
1030
+ onKeyUp: o.func,
1031
+ /**
1032
+ * @ignore
1033
+ */
1034
+ onMouseDown: o.func,
1035
+ /**
1036
+ * @ignore
1037
+ */
1038
+ onMouseLeave: o.func,
1039
+ /**
1040
+ * @ignore
1041
+ */
1042
+ onMouseUp: o.func,
1043
+ /**
1044
+ * @ignore
1045
+ */
1046
+ onTouchEnd: o.func,
1047
+ /**
1048
+ * @ignore
1049
+ */
1050
+ onTouchMove: o.func,
1051
+ /**
1052
+ * @ignore
1053
+ */
1054
+ onTouchStart: o.func,
1055
+ /**
1056
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1057
+ */
1058
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
1059
+ /**
1060
+ * @default 0
1061
+ */
1062
+ tabIndex: o.number,
1063
+ /**
1064
+ * Props applied to the `TouchRipple` element.
1065
+ */
1066
+ TouchRippleProps: o.object,
1067
+ /**
1068
+ * A ref that points to the `TouchRipple` element.
1069
+ */
1070
+ touchRippleRef: o.oneOfType([o.func, o.shape({
1071
+ current: o.shape({
1072
+ pulsate: o.func.isRequired,
1073
+ start: o.func.isRequired,
1074
+ stop: o.func.isRequired
1075
+ })
1076
+ })]),
1077
+ /**
1078
+ * @ignore
1079
+ */
1080
+ type: o.oneOfType([o.oneOf(["button", "reset", "submit"]), o.string])
1081
+ });
1082
+ export {
1083
+ yt as B,
1084
+ le as T,
1085
+ Ue as _,
1086
+ ot as a,
1087
+ Ze as b,
1088
+ St as c,
1089
+ Ae as d,
1090
+ et as e,
1091
+ Z as f,
1092
+ nt as g,
1093
+ rt as h,
1094
+ tt as i,
1095
+ ie as j,
1096
+ st as m,
1097
+ it as r,
1098
+ ee as u
1099
+ };