@solostylist/ui-kit 1.0.211 → 1.0.213

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 (139) hide show
  1. package/dist/{ArrowUpward-BPZzNgi2.js → ArrowUpward-O4lRvSII.js} +1 -1
  2. package/dist/ButtonBase-1qqPHJym.js +609 -0
  3. package/dist/{ChevronLeft-DYoIZPzf.js → ChevronLeft-CJ94-qgQ.js} +1 -1
  4. package/dist/{ChevronRight-BecIE-H9.js → ChevronRight-CK4Iv1Xx.js} +1 -1
  5. package/dist/{Close-owIfEKhu.js → Close-CSIi_IPN.js} +1 -1
  6. package/dist/Collapse-CS2l0W42.js +264 -0
  7. package/dist/{ContentCopy-22z-lNLI.js → ContentCopy-SAMH7bs7.js} +1 -1
  8. package/dist/{Download-Dg9NBUSj.js → Download-BefdWd5q.js} +1 -1
  9. package/dist/{ExpandMore-BOF9F55V.js → ExpandMore-DZANUF9W.js} +1 -1
  10. package/dist/{Favorite-BVeoH6Jh.js → Favorite-BwMGKQJf.js} +1 -1
  11. package/dist/{LocalizationProvider-BURK_lV0.js → LocalizationProvider-C07_J3LH.js} +2 -1
  12. package/dist/{Menu-C1gbagw8.js → Menu-CGfkgDXQ.js} +606 -604
  13. package/dist/{MenuItem-DyhMKc_V.js → MenuItem-C0am2QZu.js} +7 -6
  14. package/dist/Paper-Sm1vMalk.js +135 -0
  15. package/dist/{Select-DdIw08Ux.js → Select-BrRoHcey.js} +40 -39
  16. package/dist/{Typography-BXFTm80G.js → Typography-Ci004UCT.js} +2 -2
  17. package/dist/{avatar-_TCe35VV.js → avatar-CKEYVp9W.js} +1 -1
  18. package/dist/{checkbox-Dt9Jyrbh.js → checkbox-CMvDozaV.js} +1 -1
  19. package/dist/{createSvgIcon-CMGRw0Lo.js → createSvgIcon-BfZYaiXo.js} +1 -1
  20. package/dist/{objectWithoutPropertiesLoose-D6aDjjWS.js → extends-DtvfmDTb.js} +1 -12
  21. package/dist/objectWithoutPropertiesLoose-Cq334jkZ.js +12 -0
  22. package/dist/s-accordion/index.js +1 -1
  23. package/dist/s-accordion/s-accordion.js +1 -1
  24. package/dist/s-accordion-z8VaU68k.js +462 -0
  25. package/dist/s-avatar/s-avatar.d.ts +1 -1
  26. package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
  27. package/dist/s-carousel/index.js +1 -1
  28. package/dist/s-carousel/s-carousel.js +1 -1
  29. package/dist/{s-carousel-CGX87bjg.js → s-carousel-CR-JjoDx.js} +1 -1
  30. package/dist/s-chat-input/index.js +1 -1
  31. package/dist/s-chat-input/s-chat-input.js +1 -1
  32. package/dist/{s-chat-input-BXwhUdvm.js → s-chat-input-7fYcz8tL.js} +4 -4
  33. package/dist/s-chat-message/index.js +1 -1
  34. package/dist/s-chat-message/s-chat-message.js +1 -1
  35. package/dist/{s-chat-message-DU6sQjxx.js → s-chat-message-BT05O6Fa.js} +2 -2
  36. package/dist/s-chips/index.js +1 -1
  37. package/dist/s-chips/s-chips.js +1 -1
  38. package/dist/{s-chips-CosD17ng.js → s-chips-CMivbDg_.js} +1 -1
  39. package/dist/s-code-block/index.js +1 -1
  40. package/dist/s-code-block/s-code-block.js +1 -1
  41. package/dist/{s-code-block-qdU4tr3O.js → s-code-block-BrwHh2oS.js} +1 -1
  42. package/dist/s-comment-message/index.js +1 -1
  43. package/dist/s-comment-message/s-comment-message.js +1 -1
  44. package/dist/{s-comment-message-BNEmIOGv.js → s-comment-message-YSb11mDV.js} +3 -3
  45. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  46. package/dist/s-data-table/index.js +1 -1
  47. package/dist/s-data-table/s-data-table.js +1 -1
  48. package/dist/{s-data-table-J8XJWWBV.js → s-data-table-DYjPSDPe.js} +17 -16
  49. package/dist/s-date-picker/index.js +1 -1
  50. package/dist/s-date-picker/s-date-picker.js +1 -1
  51. package/dist/{s-date-picker-DsVzH2z9.js → s-date-picker-DkmKLO4E.js} +5 -4
  52. package/dist/s-datetime-picker/index.js +1 -1
  53. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  54. package/dist/{s-datetime-picker-Ba_hgXEo.js → s-datetime-picker-VHyJ6NUS.js} +303 -301
  55. package/dist/s-dialog/s-dialog.js +1 -1
  56. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  57. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  58. package/dist/s-file-dropzone/index.js +1 -1
  59. package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
  60. package/dist/{s-file-dropzone-U--yIQ0o.js → s-file-dropzone-BFTqdCaX.js} +2 -2
  61. package/dist/s-image-comparison/s-image-comparison.js +2 -2
  62. package/dist/s-image-modal/s-image-modal.js +3 -3
  63. package/dist/s-label/index.js +1 -1
  64. package/dist/s-label/s-label.js +1 -1
  65. package/dist/{s-label-DSVEMOfm.js → s-label-BYT4eG6o.js} +1 -1
  66. package/dist/s-language-switcher/index.js +1 -1
  67. package/dist/s-language-switcher/s-language-switcher.js +1 -1
  68. package/dist/{s-language-switcher-CG1TfY0A.js → s-language-switcher-BojBckp0.js} +3 -3
  69. package/dist/s-localization-provider/index.js +1 -1
  70. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  71. package/dist/{s-localization-provider-D3NT6y0c.js → s-localization-provider-CIACI235.js} +2 -2
  72. package/dist/s-multi-select/index.js +1 -1
  73. package/dist/s-multi-select/s-multi-select.js +1 -1
  74. package/dist/{s-multi-select-CTtWSr8-.js → s-multi-select-CRXew1KJ.js} +4 -4
  75. package/dist/s-nav-item/index.d.ts +3 -0
  76. package/dist/s-nav-item/index.js +4 -0
  77. package/dist/s-nav-item/s-nav-item.d.ts +36 -0
  78. package/dist/s-nav-item/s-nav-item.js +80 -0
  79. package/dist/s-nav-item/s-nav-items.d.ts +62 -0
  80. package/dist/s-nav-item/s-nav-items.js +137 -0
  81. package/dist/s-review/index.js +1 -1
  82. package/dist/s-review/s-review.js +1 -1
  83. package/dist/{s-review-BC1lHIm6.js → s-review-BMbUNSZR.js} +1 -1
  84. package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
  85. package/dist/s-select/index.js +1 -1
  86. package/dist/s-select/s-select.js +1 -1
  87. package/dist/{s-select-C21R0N2u.js → s-select-GRyyPITy.js} +1 -1
  88. package/dist/s-stripe/s-stripe.js +1 -1
  89. package/dist/s-text-editor/index.js +1 -1
  90. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  91. package/dist/s-text-editor/s-text-editor.js +1 -1
  92. package/dist/{s-text-editor-toolbar-Cryg0LAh.js → s-text-editor-toolbar-DSjX1GXv.js} +4 -4
  93. package/dist/s-text-field/index.js +1 -1
  94. package/dist/s-text-field/s-text-field.js +1 -1
  95. package/dist/{s-text-field-D1IehXqm.js → s-text-field-UI_UjTUa.js} +1 -1
  96. package/dist/s-theme-demo/index.js +1 -1
  97. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  98. package/dist/{s-theme-demo-zAOHpUI7.js → s-theme-demo-D3IF6lkI.js} +4 -4
  99. package/dist/s-theme-switch/index.js +1 -1
  100. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  101. package/dist/{s-theme-switch-B9r8_N1i.js → s-theme-switch-COBORL4a.js} +1 -1
  102. package/dist/s-tip/index.js +1 -1
  103. package/dist/s-tip/s-tip.js +1 -1
  104. package/dist/{s-tip-C34wQGJ-.js → s-tip-BI58w2uh.js} +2 -2
  105. package/dist/s-tool-bar/index.js +1 -1
  106. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  107. package/dist/{s-tool-bar-BciD39jt.js → s-tool-bar-DYFFybyj.js} +4 -4
  108. package/dist/{select-BcLqQ0sF.js → select-BT9USOXL.js} +1 -1
  109. package/dist/theme/components/avatar.js +1 -1
  110. package/dist/theme/components/checkbox.js +1 -1
  111. package/dist/theme/components/chip.js +1 -1
  112. package/dist/theme/components/components.js +5 -5
  113. package/dist/theme/components/list-item-button.js +1 -1
  114. package/dist/theme/components/list-item.js +3 -3
  115. package/dist/theme/components/outlined-input.js +1 -1
  116. package/dist/theme/components/select.js +1 -1
  117. package/dist/theme/components/tab.js +1 -1
  118. package/dist/theme/components/table-pagination.js +1 -1
  119. package/dist/theme/components/toggle-button-group.js +1 -1
  120. package/dist/theme/components/toggle-button.js +1 -1
  121. package/dist/{useMobilePicker-D6CIp1i2.js → useMobilePicker-CAMBlpgB.js} +74 -71
  122. package/dist/useSlot-BfqKgBbE.js +192 -0
  123. package/dist/utils-BqJ3HDtA.js +198 -0
  124. package/package.json +1 -1
  125. package/dist/Paper-BqlfdEtj.js +0 -326
  126. package/dist/s-accordion-DkA0dsLD.js +0 -712
  127. package/dist/useSlot-TsaoJMJN.js +0 -798
  128. /package/dist/{buttonBaseClasses-DOwL2wHr.js → buttonBaseClasses-D1dQFqBk.js} +0 -0
  129. /package/dist/{createSimplePaletteValueFilter-AnLSDyLU.js → createSimplePaletteValueFilter-D5kxdvJe.js} +0 -0
  130. /package/dist/{iconButtonClasses-DC67mWBJ.js → iconButtonClasses-UNZ6hKTU.js} +0 -0
  131. /package/dist/{mergeSlotProps-CsqK8tmH.js → mergeSlotProps-CVIr4jSm.js} +0 -0
  132. /package/dist/{outlinedInputClasses-Cmc2eWLD.js → outlinedInputClasses-ClI9bkEy.js} +0 -0
  133. /package/dist/{svgIconClasses-DrmLtTkP.js → svgIconClasses-BhRa1KyZ.js} +0 -0
  134. /package/dist/{tabClasses-ywhJ0fbh.js → tabClasses-Duc8s_po.js} +0 -0
  135. /package/dist/{toggle-button-2wwhzKdn.js → toggle-button-BtL4kaOZ.js} +0 -0
  136. /package/dist/{toggle-button-group-Dpe5CZL_.js → toggle-button-group-CTajBjl-.js} +0 -0
  137. /package/dist/{typographyClasses-C8Mm57es.js → typographyClasses-CBI3nZde.js} +0 -0
  138. /package/dist/{useControlled-DZYTbMHD.js → useControlled-8Zs5aelG.js} +0 -0
  139. /package/dist/{useFormControl-C-CuXT4Y.js → useFormControl-DvExOQVA.js} +0 -0
@@ -1,798 +0,0 @@
1
- import { n as e } from "./chunk-efA98nb6.js";
2
- import { _ as t } from "./createTheme-hnicUJQa.js";
3
- import { a as n } from "./esm-BYRX9r8n.js";
4
- import { r, s as i } from "./memoTheme-DiKnacj0.js";
5
- import { t as a } from "./clsx-BTH_sxEO.js";
6
- import { t as o } from "./generateUtilityClasses-CX1nR7K3.js";
7
- import { t as s } from "./styled-C0_N3zFx.js";
8
- import { t as c } from "./useEnhancedEffect-DcMMtOdE.js";
9
- import { n as l, t as u } from "./objectWithoutPropertiesLoose-D6aDjjWS.js";
10
- import { n as d, t as f } from "./buttonBaseClasses-DOwL2wHr.js";
11
- import * as p from "react";
12
- import m, { Children as h, cloneElement as g, isValidElement as _ } from "react";
13
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
14
- //#region ../../node_modules/@mui/utils/esm/refType/refType.js
15
- var b = /* @__PURE__ */ e(t()), x = b.default.oneOfType([b.default.func, b.default.object]);
16
- //#endregion
17
- //#region ../../node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js
18
- function S(e, t) {
19
- return process.env.NODE_ENV === "production" ? () => null : function(...n) {
20
- return e(...n) || t(...n);
21
- };
22
- }
23
- //#endregion
24
- //#region ../../node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js
25
- function C(e) {
26
- let { prototype: t = {} } = e;
27
- return !!t.isReactComponent;
28
- }
29
- function w(e, t, n, r, i) {
30
- let a = e[t], o = i || t;
31
- if (a == null || typeof window > "u") return null;
32
- let s;
33
- return typeof a == "function" && !C(a) && (s = "Did you accidentally provide a plain function component instead?"), a === p.Fragment && (s = "Did you accidentally provide a React.Fragment instead?"), s === void 0 ? null : /* @__PURE__ */ Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`);
34
- }
35
- var T = S(b.default.elementType, w);
36
- //#endregion
37
- //#region ../../node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js
38
- function ee(e) {
39
- try {
40
- return e.matches(":focus-visible");
41
- } catch {
42
- 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("\n"));
43
- }
44
- return !1;
45
- }
46
- //#endregion
47
- //#region ../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js
48
- function E(...e) {
49
- let t = p.useRef(void 0), n = p.useCallback((t) => {
50
- let n = e.map((e) => {
51
- if (e == null) return null;
52
- if (typeof e == "function") {
53
- let n = e, r = n(t);
54
- return typeof r == "function" ? r : () => {
55
- n(null);
56
- };
57
- }
58
- return e.current = t, () => {
59
- e.current = null;
60
- };
61
- });
62
- return () => {
63
- n.forEach((e) => e?.());
64
- };
65
- }, e);
66
- return p.useMemo(() => e.every((e) => e == null) ? null : (e) => {
67
- t.current &&= (t.current(), void 0), e != null && (t.current = n(e));
68
- }, e);
69
- }
70
- //#endregion
71
- //#region ../../node_modules/@mui/material/esm/utils/useForkRef.js
72
- var D = E;
73
- //#endregion
74
- //#region ../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
75
- function O(e) {
76
- let t = p.useRef(e);
77
- return c(() => {
78
- t.current = e;
79
- }), p.useRef((...e) => (0, t.current)(...e)).current;
80
- }
81
- //#endregion
82
- //#region ../../node_modules/@mui/material/esm/utils/useEventCallback.js
83
- var k = O, A = {};
84
- function j(e, t) {
85
- let n = p.useRef(A);
86
- return n.current === A && (n.current = e(t)), n;
87
- }
88
- //#endregion
89
- //#region ../../node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js
90
- var te = class e {
91
- static create() {
92
- return new e();
93
- }
94
- static use() {
95
- let t = j(e.create).current, [n, r] = p.useState(!1);
96
- return t.shouldMount = n, t.setShouldMount = r, p.useEffect(t.mountEffect, [n]), t;
97
- }
98
- constructor() {
99
- this.ref = { current: null }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
100
- }
101
- mount() {
102
- return this.mounted || (this.mounted = re(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
103
- }
104
- mountEffect = () => {
105
- this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
106
- };
107
- start(...e) {
108
- this.mount().then(() => this.ref.current?.start(...e));
109
- }
110
- stop(...e) {
111
- this.mount().then(() => this.ref.current?.stop(...e));
112
- }
113
- pulsate(...e) {
114
- this.mount().then(() => this.ref.current?.pulsate(...e));
115
- }
116
- };
117
- function ne() {
118
- return te.use();
119
- }
120
- function re() {
121
- let e, t, n = new Promise((n, r) => {
122
- e = n, t = r;
123
- });
124
- return n.resolve = e, n.reject = t, n;
125
- }
126
- //#endregion
127
- //#region ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
128
- function M(e, t) {
129
- return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
130
- return e.__proto__ = t, e;
131
- }, M(e, t);
132
- }
133
- //#endregion
134
- //#region ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
135
- function N(e, t) {
136
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, M(e, t);
137
- }
138
- //#endregion
139
- //#region ../../node_modules/react-transition-group/esm/TransitionGroupContext.js
140
- var P = m.createContext(null);
141
- //#endregion
142
- //#region ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
143
- function ie(e) {
144
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
145
- return e;
146
- }
147
- //#endregion
148
- //#region ../../node_modules/react-transition-group/esm/utils/ChildMapping.js
149
- function F(e, t) {
150
- var n = function(e) {
151
- return t && _(e) ? t(e) : e;
152
- }, r = Object.create(null);
153
- return e && h.map(e, function(e) {
154
- return e;
155
- }).forEach(function(e) {
156
- r[e.key] = n(e);
157
- }), r;
158
- }
159
- function I(e, t) {
160
- e ||= {}, t ||= {};
161
- function n(n) {
162
- return n in t ? t[n] : e[n];
163
- }
164
- var r = Object.create(null), i = [];
165
- for (var a in e) a in t ? i.length && (r[a] = i, i = []) : i.push(a);
166
- var o, s = {};
167
- for (var c in t) {
168
- if (r[c]) for (o = 0; o < r[c].length; o++) {
169
- var l = r[c][o];
170
- s[r[c][o]] = n(l);
171
- }
172
- s[c] = n(c);
173
- }
174
- for (o = 0; o < i.length; o++) s[i[o]] = n(i[o]);
175
- return s;
176
- }
177
- function L(e, t, n) {
178
- return n[t] == null ? e.props[t] : n[t];
179
- }
180
- function R(e, t) {
181
- return F(e.children, function(n) {
182
- return g(n, {
183
- onExited: t.bind(null, n),
184
- in: !0,
185
- appear: L(n, "appear", e),
186
- enter: L(n, "enter", e),
187
- exit: L(n, "exit", e)
188
- });
189
- });
190
- }
191
- function ae(e, t, n) {
192
- var r = F(e.children), i = I(t, r);
193
- return Object.keys(i).forEach(function(a) {
194
- var o = i[a];
195
- if (_(o)) {
196
- var s = a in t, c = a in r, l = t[a], u = _(l) && !l.props.in;
197
- c && (!s || u) ? i[a] = g(o, {
198
- onExited: n.bind(null, o),
199
- in: !0,
200
- exit: L(o, "exit", e),
201
- enter: L(o, "enter", e)
202
- }) : !c && s && !u ? i[a] = g(o, { in: !1 }) : c && s && _(l) && (i[a] = g(o, {
203
- onExited: n.bind(null, o),
204
- in: l.props.in,
205
- exit: L(o, "exit", e),
206
- enter: L(o, "enter", e)
207
- }));
208
- }
209
- }), i;
210
- }
211
- //#endregion
212
- //#region ../../node_modules/react-transition-group/esm/TransitionGroup.js
213
- var z = Object.values || function(e) {
214
- return Object.keys(e).map(function(t) {
215
- return e[t];
216
- });
217
- }, B = {
218
- component: "div",
219
- childFactory: function(e) {
220
- return e;
221
- }
222
- }, V = /* @__PURE__ */ function(e) {
223
- N(t, e);
224
- function t(t, n) {
225
- var r = e.call(this, t, n) || this;
226
- return r.state = {
227
- contextValue: { isMounting: !0 },
228
- handleExited: r.handleExited.bind(ie(r)),
229
- firstRender: !0
230
- }, r;
231
- }
232
- var n = t.prototype;
233
- return n.componentDidMount = function() {
234
- this.mounted = !0, this.setState({ contextValue: { isMounting: !1 } });
235
- }, n.componentWillUnmount = function() {
236
- this.mounted = !1;
237
- }, t.getDerivedStateFromProps = function(e, t) {
238
- var n = t.children, r = t.handleExited;
239
- return {
240
- children: t.firstRender ? R(e, r) : ae(e, n, r),
241
- firstRender: !1
242
- };
243
- }, n.handleExited = function(e, t) {
244
- var n = F(this.props.children);
245
- e.key in n || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState(function(t) {
246
- var n = l({}, t.children);
247
- return delete n[e.key], { children: n };
248
- }));
249
- }, n.render = function() {
250
- var e = this.props, t = e.component, n = e.childFactory, r = u(e, ["component", "childFactory"]), i = this.state.contextValue, a = z(this.state.children).map(n);
251
- return delete r.appear, delete r.enter, delete r.exit, t === null ? /* @__PURE__ */ m.createElement(P.Provider, { value: i }, a) : /* @__PURE__ */ m.createElement(P.Provider, { value: i }, /* @__PURE__ */ m.createElement(t, r, a));
252
- }, t;
253
- }(m.Component);
254
- V.propTypes = process.env.NODE_ENV === "production" ? {} : {
255
- component: b.default.any,
256
- children: b.default.node,
257
- appear: b.default.bool,
258
- enter: b.default.bool,
259
- exit: b.default.bool,
260
- childFactory: b.default.func
261
- }, V.defaultProps = B;
262
- //#endregion
263
- //#region ../../node_modules/@mui/utils/esm/useOnMount/useOnMount.js
264
- var oe = [];
265
- function se(e) {
266
- p.useEffect(e, oe);
267
- }
268
- //#endregion
269
- //#region ../../node_modules/@mui/utils/esm/useTimeout/useTimeout.js
270
- var ce = class e {
271
- static create() {
272
- return new e();
273
- }
274
- currentId = null;
275
- start(e, t) {
276
- this.clear(), this.currentId = setTimeout(() => {
277
- this.currentId = null, t();
278
- }, e);
279
- }
280
- clear = () => {
281
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
282
- };
283
- disposeEffect = () => this.clear;
284
- };
285
- function H() {
286
- let e = j(ce.create).current;
287
- return se(e.disposeEffect), e;
288
- }
289
- //#endregion
290
- //#region ../../node_modules/@mui/material/esm/ButtonBase/Ripple.js
291
- function U(e) {
292
- let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: o, rippleSize: s, in: c, onExited: l, timeout: u } = e, [d, f] = p.useState(!1), m = a(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), h = {
293
- width: s,
294
- height: s,
295
- top: -(s / 2) + o,
296
- left: -(s / 2) + i
297
- }, g = a(n.child, d && n.childLeaving, r && n.childPulsate);
298
- return !c && !d && f(!0), p.useEffect(() => {
299
- if (!c && l != null) {
300
- let e = setTimeout(l, u);
301
- return () => {
302
- clearTimeout(e);
303
- };
304
- }
305
- }, [
306
- l,
307
- c,
308
- u
309
- ]), /* @__PURE__ */ v("span", {
310
- className: m,
311
- style: h,
312
- children: /* @__PURE__ */ v("span", { className: g })
313
- });
314
- }
315
- process.env.NODE_ENV !== "production" && (U.propTypes = {
316
- classes: b.default.object.isRequired,
317
- className: b.default.string,
318
- in: b.default.bool,
319
- onExited: b.default.func,
320
- pulsate: b.default.bool,
321
- rippleSize: b.default.number,
322
- rippleX: b.default.number,
323
- rippleY: b.default.number,
324
- timeout: b.default.number.isRequired
325
- });
326
- //#endregion
327
- //#region ../../node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js
328
- var W = o("MuiTouchRipple", [
329
- "root",
330
- "ripple",
331
- "rippleVisible",
332
- "ripplePulsate",
333
- "child",
334
- "childLeaving",
335
- "childPulsate"
336
- ]), G = 550, le = n`
337
- 0% {
338
- transform: scale(0);
339
- opacity: 0.1;
340
- }
341
-
342
- 100% {
343
- transform: scale(1);
344
- opacity: 0.3;
345
- }
346
- `, ue = n`
347
- 0% {
348
- opacity: 1;
349
- }
350
-
351
- 100% {
352
- opacity: 0;
353
- }
354
- `, de = n`
355
- 0% {
356
- transform: scale(1);
357
- }
358
-
359
- 50% {
360
- transform: scale(0.92);
361
- }
362
-
363
- 100% {
364
- transform: scale(1);
365
- }
366
- `, K = s("span", {
367
- name: "MuiTouchRipple",
368
- slot: "Root"
369
- })({
370
- overflow: "hidden",
371
- pointerEvents: "none",
372
- position: "absolute",
373
- zIndex: 0,
374
- top: 0,
375
- right: 0,
376
- bottom: 0,
377
- left: 0,
378
- borderRadius: "inherit"
379
- }), fe = s(U, {
380
- name: "MuiTouchRipple",
381
- slot: "Ripple"
382
- })`
383
- opacity: 0;
384
- position: absolute;
385
-
386
- &.${W.rippleVisible} {
387
- opacity: 0.3;
388
- transform: scale(1);
389
- animation-name: ${le};
390
- animation-duration: ${G}ms;
391
- animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
392
- }
393
-
394
- &.${W.ripplePulsate} {
395
- animation-duration: ${({ theme: e }) => e.transitions.duration.shorter}ms;
396
- }
397
-
398
- & .${W.child} {
399
- opacity: 1;
400
- display: block;
401
- width: 100%;
402
- height: 100%;
403
- border-radius: 50%;
404
- background-color: currentColor;
405
- }
406
-
407
- & .${W.childLeaving} {
408
- opacity: 0;
409
- animation-name: ${ue};
410
- animation-duration: ${G}ms;
411
- animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
412
- }
413
-
414
- & .${W.childPulsate} {
415
- position: absolute;
416
- /* @noflip */
417
- left: 0px;
418
- top: 0;
419
- animation-name: ${de};
420
- animation-duration: 2500ms;
421
- animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut};
422
- animation-iteration-count: infinite;
423
- animation-delay: 200ms;
424
- }
425
- `, pe = /* @__PURE__ */ p.forwardRef(function(e, t) {
426
- let { center: n = !1, classes: i = {}, className: o, ...s } = r({
427
- props: e,
428
- name: "MuiTouchRipple"
429
- }), [c, l] = p.useState([]), u = p.useRef(0), d = p.useRef(null);
430
- p.useEffect(() => {
431
- d.current &&= (d.current(), null);
432
- }, [c]);
433
- let f = p.useRef(!1), m = H(), h = p.useRef(null), g = p.useRef(null), _ = p.useCallback((e) => {
434
- let { pulsate: t, rippleX: n, rippleY: r, rippleSize: o, cb: s } = e;
435
- l((e) => [...e, /* @__PURE__ */ v(fe, {
436
- classes: {
437
- ripple: a(i.ripple, W.ripple),
438
- rippleVisible: a(i.rippleVisible, W.rippleVisible),
439
- ripplePulsate: a(i.ripplePulsate, W.ripplePulsate),
440
- child: a(i.child, W.child),
441
- childLeaving: a(i.childLeaving, W.childLeaving),
442
- childPulsate: a(i.childPulsate, W.childPulsate)
443
- },
444
- timeout: G,
445
- pulsate: t,
446
- rippleX: n,
447
- rippleY: r,
448
- rippleSize: o
449
- }, u.current)]), u.current += 1, d.current = s;
450
- }, [i]), y = p.useCallback((e = {}, t = {}, r = () => {}) => {
451
- let { pulsate: i = !1, center: a = n || t.pulsate, fakeElement: o = !1 } = t;
452
- if (e?.type === "mousedown" && f.current) {
453
- f.current = !1;
454
- return;
455
- }
456
- e?.type === "touchstart" && (f.current = !0);
457
- let s = o ? null : g.current, c = s ? s.getBoundingClientRect() : {
458
- width: 0,
459
- height: 0,
460
- left: 0,
461
- top: 0
462
- }, l, u, d;
463
- if (a || e === void 0 || e.clientX === 0 && e.clientY === 0 || !e.clientX && !e.touches) l = Math.round(c.width / 2), u = Math.round(c.height / 2);
464
- else {
465
- let { clientX: t, clientY: n } = e.touches && e.touches.length > 0 ? e.touches[0] : e;
466
- l = Math.round(t - c.left), u = Math.round(n - c.top);
467
- }
468
- if (a) d = Math.sqrt((2 * c.width ** 2 + c.height ** 2) / 3), d % 2 == 0 && (d += 1);
469
- else {
470
- let e = Math.max(Math.abs((s ? s.clientWidth : 0) - l), l) * 2 + 2, t = Math.max(Math.abs((s ? s.clientHeight : 0) - u), u) * 2 + 2;
471
- d = Math.sqrt(e ** 2 + t ** 2);
472
- }
473
- e?.touches ? h.current === null && (h.current = () => {
474
- _({
475
- pulsate: i,
476
- rippleX: l,
477
- rippleY: u,
478
- rippleSize: d,
479
- cb: r
480
- });
481
- }, m.start(80, () => {
482
- h.current &&= (h.current(), null);
483
- })) : _({
484
- pulsate: i,
485
- rippleX: l,
486
- rippleY: u,
487
- rippleSize: d,
488
- cb: r
489
- });
490
- }, [
491
- n,
492
- _,
493
- m
494
- ]), b = p.useCallback(() => {
495
- y({}, { pulsate: !0 });
496
- }, [y]), x = p.useCallback((e, t) => {
497
- if (m.clear(), e?.type === "touchend" && h.current) {
498
- h.current(), h.current = null, m.start(0, () => {
499
- x(e, t);
500
- });
501
- return;
502
- }
503
- h.current = null, l((e) => e.length > 0 ? e.slice(1) : e), d.current = t;
504
- }, [m]);
505
- return p.useImperativeHandle(t, () => ({
506
- pulsate: b,
507
- start: y,
508
- stop: x
509
- }), [
510
- b,
511
- y,
512
- x
513
- ]), /* @__PURE__ */ v(K, {
514
- className: a(W.root, i.root, o),
515
- ref: g,
516
- ...s,
517
- children: /* @__PURE__ */ v(V, {
518
- component: null,
519
- exit: !0,
520
- children: c
521
- })
522
- });
523
- });
524
- process.env.NODE_ENV !== "production" && (pe.propTypes = {
525
- center: b.default.bool,
526
- classes: b.default.object,
527
- className: b.default.string
528
- });
529
- //#endregion
530
- //#region ../../node_modules/@mui/material/esm/ButtonBase/ButtonBase.js
531
- var me = (e) => {
532
- let { disabled: t, focusVisible: n, focusVisibleClassName: r, classes: a } = e, o = i({ root: [
533
- "root",
534
- t && "disabled",
535
- n && "focusVisible"
536
- ] }, d, a);
537
- return n && r && (o.root += ` ${r}`), o;
538
- }, he = s("button", {
539
- name: "MuiButtonBase",
540
- slot: "Root"
541
- })({
542
- display: "inline-flex",
543
- alignItems: "center",
544
- justifyContent: "center",
545
- position: "relative",
546
- boxSizing: "border-box",
547
- WebkitTapHighlightColor: "transparent",
548
- backgroundColor: "transparent",
549
- outline: 0,
550
- border: 0,
551
- margin: 0,
552
- borderRadius: 0,
553
- padding: 0,
554
- cursor: "pointer",
555
- userSelect: "none",
556
- verticalAlign: "middle",
557
- MozAppearance: "none",
558
- WebkitAppearance: "none",
559
- textDecoration: "none",
560
- color: "inherit",
561
- "&::-moz-focus-inner": { borderStyle: "none" },
562
- [`&.${f.disabled}`]: {
563
- pointerEvents: "none",
564
- cursor: "default"
565
- },
566
- "@media print": { colorAdjust: "exact" }
567
- }), q = /* @__PURE__ */ p.forwardRef(function(e, t) {
568
- let n = r({
569
- props: e,
570
- name: "MuiButtonBase"
571
- }), { action: i, centerRipple: o = !1, children: s, className: c, component: l = "button", disabled: u = !1, disableRipple: d = !1, disableTouchRipple: f = !1, focusRipple: m = !1, focusVisibleClassName: h, LinkComponent: g = "a", onBlur: _, onClick: b, onContextMenu: x, onDragLeave: S, onFocus: C, onFocusVisible: w, onKeyDown: T, onKeyUp: E, onMouseDown: O, onMouseLeave: A, onMouseUp: j, onTouchEnd: te, onTouchMove: re, onTouchStart: M, tabIndex: N = 0, TouchRippleProps: P, touchRippleRef: ie, type: F, ...I } = n, L = p.useRef(null), R = ne(), ae = D(R.ref, ie), [z, B] = p.useState(!1);
572
- u && z && B(!1), p.useImperativeHandle(i, () => ({ focusVisible: () => {
573
- B(!0), L.current.focus();
574
- } }), []);
575
- let V = R.shouldMount && !d && !u;
576
- p.useEffect(() => {
577
- z && m && !d && R.pulsate();
578
- }, [
579
- d,
580
- m,
581
- z,
582
- R
583
- ]);
584
- let oe = J(R, "start", O, f), se = J(R, "stop", x, f), ce = J(R, "stop", S, f), H = J(R, "stop", j, f), U = J(R, "stop", (e) => {
585
- z && e.preventDefault(), A && A(e);
586
- }, f), W = J(R, "start", M, f), G = J(R, "stop", te, f), le = J(R, "stop", re, f), ue = J(R, "stop", (e) => {
587
- ee(e.target) || B(!1), _ && _(e);
588
- }, !1), de = k((e) => {
589
- L.current ||= e.currentTarget, ee(e.target) && (B(!0), w && w(e)), C && C(e);
590
- }), K = () => {
591
- let e = L.current;
592
- return l && l !== "button" && !(e.tagName === "A" && e.href);
593
- }, fe = k((e) => {
594
- m && !e.repeat && z && e.key === " " && R.stop(e, () => {
595
- R.start(e);
596
- }), e.target === e.currentTarget && K() && e.key === " " && e.preventDefault(), T && T(e), e.target === e.currentTarget && K() && e.key === "Enter" && !u && (e.preventDefault(), b && b(e));
597
- }), q = k((e) => {
598
- m && e.key === " " && z && !e.defaultPrevented && R.stop(e, () => {
599
- R.pulsate(e);
600
- }), E && E(e), b && e.target === e.currentTarget && K() && e.key === " " && !e.defaultPrevented && b(e);
601
- }), Y = l;
602
- Y === "button" && (I.href || I.to) && (Y = g);
603
- let X = {};
604
- if (Y === "button") {
605
- let e = !!I.formAction;
606
- X.type = F === void 0 && !e ? "button" : F, X.disabled = u;
607
- } else !I.href && !I.to && (X.role = "button"), u && (X["aria-disabled"] = u);
608
- let Z = D(t, L), Q = {
609
- ...n,
610
- centerRipple: o,
611
- component: l,
612
- disabled: u,
613
- disableRipple: d,
614
- disableTouchRipple: f,
615
- focusRipple: m,
616
- tabIndex: N,
617
- focusVisible: z
618
- }, $ = me(Q);
619
- return /* @__PURE__ */ y(he, {
620
- as: Y,
621
- className: a($.root, c),
622
- ownerState: Q,
623
- onBlur: ue,
624
- onClick: b,
625
- onContextMenu: se,
626
- onFocus: de,
627
- onKeyDown: fe,
628
- onKeyUp: q,
629
- onMouseDown: oe,
630
- onMouseLeave: U,
631
- onMouseUp: H,
632
- onDragLeave: ce,
633
- onTouchEnd: G,
634
- onTouchMove: le,
635
- onTouchStart: W,
636
- ref: Z,
637
- tabIndex: u ? -1 : N,
638
- type: F,
639
- ...X,
640
- ...I,
641
- children: [s, V ? /* @__PURE__ */ v(pe, {
642
- ref: ae,
643
- center: o,
644
- ...P
645
- }) : null]
646
- });
647
- });
648
- function J(e, t, n, r = !1) {
649
- return k((i) => (n && n(i), r || e[t](i), !0));
650
- }
651
- process.env.NODE_ENV !== "production" && (q.propTypes = {
652
- action: x,
653
- centerRipple: b.default.bool,
654
- children: b.default.node,
655
- classes: b.default.object,
656
- className: b.default.string,
657
- component: T,
658
- disabled: b.default.bool,
659
- disableRipple: b.default.bool,
660
- disableTouchRipple: b.default.bool,
661
- focusRipple: b.default.bool,
662
- focusVisibleClassName: b.default.string,
663
- formAction: b.default.oneOfType([b.default.func, b.default.string]),
664
- href: b.default.any,
665
- LinkComponent: b.default.elementType,
666
- onBlur: b.default.func,
667
- onClick: b.default.func,
668
- onContextMenu: b.default.func,
669
- onDragLeave: b.default.func,
670
- onFocus: b.default.func,
671
- onFocusVisible: b.default.func,
672
- onKeyDown: b.default.func,
673
- onKeyUp: b.default.func,
674
- onMouseDown: b.default.func,
675
- onMouseLeave: b.default.func,
676
- onMouseUp: b.default.func,
677
- onTouchEnd: b.default.func,
678
- onTouchMove: b.default.func,
679
- onTouchStart: b.default.func,
680
- sx: b.default.oneOfType([
681
- b.default.arrayOf(b.default.oneOfType([
682
- b.default.func,
683
- b.default.object,
684
- b.default.bool
685
- ])),
686
- b.default.func,
687
- b.default.object
688
- ]),
689
- tabIndex: b.default.number,
690
- TouchRippleProps: b.default.object,
691
- touchRippleRef: b.default.oneOfType([b.default.func, b.default.shape({ current: b.default.shape({
692
- pulsate: b.default.func.isRequired,
693
- start: b.default.func.isRequired,
694
- stop: b.default.func.isRequired
695
- }) })]),
696
- type: b.default.oneOfType([b.default.oneOf([
697
- "button",
698
- "reset",
699
- "submit"
700
- ]), b.default.string])
701
- });
702
- //#endregion
703
- //#region ../../node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js
704
- function Y(e) {
705
- return typeof e == "string";
706
- }
707
- //#endregion
708
- //#region ../../node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js
709
- function X(e, t, n) {
710
- return e === void 0 || Y(e) ? t : {
711
- ...t,
712
- ownerState: {
713
- ...t.ownerState,
714
- ...n
715
- }
716
- };
717
- }
718
- //#endregion
719
- //#region ../../node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js
720
- function Z(e, t, n) {
721
- return typeof e == "function" ? e(t, n) : e;
722
- }
723
- //#endregion
724
- //#region ../../node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js
725
- function Q(e, t = []) {
726
- if (e === void 0) return {};
727
- let n = {};
728
- return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !t.includes(n)).forEach((t) => {
729
- n[t] = e[t];
730
- }), n;
731
- }
732
- //#endregion
733
- //#region ../../node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js
734
- function $(e) {
735
- if (e === void 0) return {};
736
- let t = {};
737
- return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((n) => {
738
- t[n] = e[n];
739
- }), t;
740
- }
741
- //#endregion
742
- //#region ../../node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js
743
- function ge(e) {
744
- let { getSlotProps: t, additionalProps: n, externalSlotProps: r, externalForwardedProps: i, className: o } = e;
745
- if (!t) {
746
- let e = a(n?.className, o, i?.className, r?.className), t = {
747
- ...n?.style,
748
- ...i?.style,
749
- ...r?.style
750
- }, s = {
751
- ...n,
752
- ...i,
753
- ...r
754
- };
755
- return e.length > 0 && (s.className = e), Object.keys(t).length > 0 && (s.style = t), {
756
- props: s,
757
- internalRef: void 0
758
- };
759
- }
760
- let s = Q({
761
- ...i,
762
- ...r
763
- }), c = $(r), l = $(i), u = t(s), d = a(u?.className, n?.className, o, i?.className, r?.className), f = {
764
- ...u?.style,
765
- ...n?.style,
766
- ...i?.style,
767
- ...r?.style
768
- }, p = {
769
- ...u,
770
- ...n,
771
- ...l,
772
- ...c
773
- };
774
- return d.length > 0 && (p.className = d), Object.keys(f).length > 0 && (p.style = f), {
775
- props: p,
776
- internalRef: u.ref
777
- };
778
- }
779
- //#endregion
780
- //#region ../../node_modules/@mui/material/esm/utils/useSlot.js
781
- function _e(e, t) {
782
- let { className: n, elementType: r, ownerState: i, externalForwardedProps: a, internalForwardedProps: o, shouldForwardComponentProp: s = !1, ...c } = t, { component: l, slots: u = { [e]: void 0 }, slotProps: d = { [e]: void 0 }, ...f } = a, p = u[e] || r, m = Z(d[e], i), { props: { component: h, ...g }, internalRef: _ } = ge({
783
- className: n,
784
- ...c,
785
- externalForwardedProps: e === "root" ? f : void 0,
786
- externalSlotProps: m
787
- }), v = E(_, m?.ref, t.ref), y = e === "root" ? h || l : h;
788
- return [p, X(p, {
789
- ...e === "root" && !l && !u[e] && o,
790
- ...e !== "root" && !u[e] && o,
791
- ...g,
792
- ...y && !s && { as: y },
793
- ...y && s && { component: y },
794
- ref: v
795
- }, i)];
796
- }
797
- //#endregion
798
- export { S as _, X as a, H as c, N as d, k as f, T as g, E as h, Z as i, V as l, D as m, ge as n, Y as o, O as p, Q as r, q as s, _e as t, P as u, x as v };