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