@hybridcore/ui 1.6.0 → 1.6.1

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 (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -0,0 +1,527 @@
1
+ import { _ as S, a as T } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
+ import { _, T as P, c as $ } from "./ButtonBase-sObABYY2.js";
3
+ import { P as i } from "./index-C__OZmYy.js";
4
+ import * as k from "react";
5
+ import b from "react";
6
+ import g from "react-dom";
7
+ import { e as q, g as w, b as U, s as V, u as L, c as j, a as F } from "./styled-Bsjp3kFh.js";
8
+ import { useTheme as G, alpha as D } from "@mui/system";
9
+ import { jsx as A } from "react/jsx-runtime";
10
+ function X(t) {
11
+ const o = typeof t;
12
+ switch (o) {
13
+ case "number":
14
+ return Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? t !== Math.floor(t) ? "float" : "number" : "Infinity";
15
+ case "object":
16
+ return t === null ? "null" : t.constructor.name;
17
+ default:
18
+ return o;
19
+ }
20
+ }
21
+ function W(t) {
22
+ return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
23
+ }
24
+ const B = Number.isInteger || W;
25
+ function I(t, o, a, s) {
26
+ const n = t[o];
27
+ if (n == null || !B(n)) {
28
+ const e = X(n);
29
+ return new RangeError(`Invalid ${s} \`${o}\` of type \`${e}\` supplied to \`${a}\`, expected \`integer\`.`);
30
+ }
31
+ return null;
32
+ }
33
+ function M(t, o, ...a) {
34
+ return t[o] === void 0 ? null : I(t, o, ...a);
35
+ }
36
+ function N() {
37
+ return null;
38
+ }
39
+ M.isRequired = I;
40
+ N.isRequired = N;
41
+ const H = process.env.NODE_ENV === "production" ? N : M, R = {
42
+ disabled: !1
43
+ };
44
+ var z = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
45
+ enter: i.number,
46
+ exit: i.number,
47
+ appear: i.number
48
+ }).isRequired]) : null, pe = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
49
+ enter: i.string,
50
+ exit: i.string,
51
+ active: i.string
52
+ }), i.shape({
53
+ enter: i.string,
54
+ enterDone: i.string,
55
+ enterActive: i.string,
56
+ exit: i.string,
57
+ exitDone: i.string,
58
+ exitActive: i.string
59
+ })]) : null, J = function(o) {
60
+ return o.scrollTop;
61
+ }, E = "unmounted", d = "exited", v = "entering", h = "entered", y = "exiting", f = /* @__PURE__ */ function(t) {
62
+ _(o, t);
63
+ function o(s, n) {
64
+ var e;
65
+ e = t.call(this, s, n) || this;
66
+ var r = n, u = r && !r.isMounting ? s.enter : s.appear, l;
67
+ return e.appearStatus = null, s.in ? u ? (l = d, e.appearStatus = v) : l = h : s.unmountOnExit || s.mountOnEnter ? l = E : l = d, e.state = {
68
+ status: l
69
+ }, e.nextCallback = null, e;
70
+ }
71
+ o.getDerivedStateFromProps = function(n, e) {
72
+ var r = n.in;
73
+ return r && e.status === E ? {
74
+ status: d
75
+ } : null;
76
+ };
77
+ var a = o.prototype;
78
+ return a.componentDidMount = function() {
79
+ this.updateStatus(!0, this.appearStatus);
80
+ }, a.componentDidUpdate = function(n) {
81
+ var e = null;
82
+ if (n !== this.props) {
83
+ var r = this.state.status;
84
+ this.props.in ? r !== v && r !== h && (e = v) : (r === v || r === h) && (e = y);
85
+ }
86
+ this.updateStatus(!1, e);
87
+ }, a.componentWillUnmount = function() {
88
+ this.cancelNextCallback();
89
+ }, a.getTimeouts = function() {
90
+ var n = this.props.timeout, e, r, u;
91
+ return e = r = u = n, n != null && typeof n != "number" && (e = n.exit, r = n.enter, u = n.appear !== void 0 ? n.appear : r), {
92
+ exit: e,
93
+ enter: r,
94
+ appear: u
95
+ };
96
+ }, a.updateStatus = function(n, e) {
97
+ if (n === void 0 && (n = !1), e !== null)
98
+ if (this.cancelNextCallback(), e === v) {
99
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
100
+ var r = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this);
101
+ r && J(r);
102
+ }
103
+ this.performEnter(n);
104
+ } else
105
+ this.performExit();
106
+ else this.props.unmountOnExit && this.state.status === d && this.setState({
107
+ status: E
108
+ });
109
+ }, a.performEnter = function(n) {
110
+ var e = this, r = this.props.enter, u = this.context ? this.context.isMounting : n, l = this.props.nodeRef ? [u] : [g.findDOMNode(this), u], p = l[0], c = l[1], x = this.getTimeouts(), O = u ? x.appear : x.enter;
111
+ if (!n && !r || R.disabled) {
112
+ this.safeSetState({
113
+ status: h
114
+ }, function() {
115
+ e.props.onEntered(p);
116
+ });
117
+ return;
118
+ }
119
+ this.props.onEnter(p, c), this.safeSetState({
120
+ status: v
121
+ }, function() {
122
+ e.props.onEntering(p, c), e.onTransitionEnd(O, function() {
123
+ e.safeSetState({
124
+ status: h
125
+ }, function() {
126
+ e.props.onEntered(p, c);
127
+ });
128
+ });
129
+ });
130
+ }, a.performExit = function() {
131
+ var n = this, e = this.props.exit, r = this.getTimeouts(), u = this.props.nodeRef ? void 0 : g.findDOMNode(this);
132
+ if (!e || R.disabled) {
133
+ this.safeSetState({
134
+ status: d
135
+ }, function() {
136
+ n.props.onExited(u);
137
+ });
138
+ return;
139
+ }
140
+ this.props.onExit(u), this.safeSetState({
141
+ status: y
142
+ }, function() {
143
+ n.props.onExiting(u), n.onTransitionEnd(r.exit, function() {
144
+ n.safeSetState({
145
+ status: d
146
+ }, function() {
147
+ n.props.onExited(u);
148
+ });
149
+ });
150
+ });
151
+ }, a.cancelNextCallback = function() {
152
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
153
+ }, a.safeSetState = function(n, e) {
154
+ e = this.setNextCallback(e), this.setState(n, e);
155
+ }, a.setNextCallback = function(n) {
156
+ var e = this, r = !0;
157
+ return this.nextCallback = function(u) {
158
+ r && (r = !1, e.nextCallback = null, n(u));
159
+ }, this.nextCallback.cancel = function() {
160
+ r = !1;
161
+ }, this.nextCallback;
162
+ }, a.onTransitionEnd = function(n, e) {
163
+ this.setNextCallback(e);
164
+ var r = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this), u = n == null && !this.props.addEndListener;
165
+ if (!r || u) {
166
+ setTimeout(this.nextCallback, 0);
167
+ return;
168
+ }
169
+ if (this.props.addEndListener) {
170
+ var l = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], p = l[0], c = l[1];
171
+ this.props.addEndListener(p, c);
172
+ }
173
+ n != null && setTimeout(this.nextCallback, n);
174
+ }, a.render = function() {
175
+ var n = this.state.status;
176
+ if (n === E)
177
+ return null;
178
+ var e = this.props, r = e.children;
179
+ e.in, e.mountOnEnter, e.unmountOnExit, e.appear, e.enter, e.exit, e.timeout, e.addEndListener, e.onEnter, e.onEntering, e.onEntered, e.onExit, e.onExiting, e.onExited, e.nodeRef;
180
+ var u = S(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
181
+ return (
182
+ // allows for nested Transitions
183
+ /* @__PURE__ */ b.createElement(P.Provider, {
184
+ value: null
185
+ }, typeof r == "function" ? r(n, u) : b.cloneElement(b.Children.only(r), u))
186
+ );
187
+ }, o;
188
+ }(b.Component);
189
+ f.contextType = P;
190
+ f.propTypes = process.env.NODE_ENV !== "production" ? {
191
+ /**
192
+ * A React reference to DOM element that need to transition:
193
+ * https://stackoverflow.com/a/51127130/4671932
194
+ *
195
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
196
+ * (e.g. `onEnter`) because user already has direct access to the node.
197
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
198
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
199
+ * (see
200
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
201
+ */
202
+ nodeRef: i.shape({
203
+ current: typeof Element > "u" ? i.any : function(t, o, a, s, n, e) {
204
+ var r = t[o];
205
+ return i.instanceOf(r && "ownerDocument" in r ? r.ownerDocument.defaultView.Element : Element)(t, o, a, s, n, e);
206
+ }
207
+ }),
208
+ /**
209
+ * A `function` child can be used instead of a React element. This function is
210
+ * called with the current transition status (`'entering'`, `'entered'`,
211
+ * `'exiting'`, `'exited'`), which can be used to apply context
212
+ * specific props to a component.
213
+ *
214
+ * ```jsx
215
+ * <Transition in={this.state.in} timeout={150}>
216
+ * {state => (
217
+ * <MyComponent className={`fade fade-${state}`} />
218
+ * )}
219
+ * </Transition>
220
+ * ```
221
+ */
222
+ children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
223
+ /**
224
+ * Show the component; triggers the enter or exit states
225
+ */
226
+ in: i.bool,
227
+ /**
228
+ * By default the child component is mounted immediately along with
229
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
230
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
231
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
232
+ */
233
+ mountOnEnter: i.bool,
234
+ /**
235
+ * By default the child component stays mounted after it reaches the `'exited'` state.
236
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
237
+ */
238
+ unmountOnExit: i.bool,
239
+ /**
240
+ * By default the child component does not perform the enter transition when
241
+ * it first mounts, regardless of the value of `in`. If you want this
242
+ * behavior, set both `appear` and `in` to `true`.
243
+ *
244
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
245
+ * > only adds an additional enter transition. However, in the
246
+ * > `<CSSTransition>` component that first enter transition does result in
247
+ * > additional `.appear-*` classes, that way you can choose to style it
248
+ * > differently.
249
+ */
250
+ appear: i.bool,
251
+ /**
252
+ * Enable or disable enter transitions.
253
+ */
254
+ enter: i.bool,
255
+ /**
256
+ * Enable or disable exit transitions.
257
+ */
258
+ exit: i.bool,
259
+ /**
260
+ * The duration of the transition, in milliseconds.
261
+ * Required unless `addEndListener` is provided.
262
+ *
263
+ * You may specify a single timeout for all transitions:
264
+ *
265
+ * ```jsx
266
+ * timeout={500}
267
+ * ```
268
+ *
269
+ * or individually:
270
+ *
271
+ * ```jsx
272
+ * timeout={{
273
+ * appear: 500,
274
+ * enter: 300,
275
+ * exit: 500,
276
+ * }}
277
+ * ```
278
+ *
279
+ * - `appear` defaults to the value of `enter`
280
+ * - `enter` defaults to `0`
281
+ * - `exit` defaults to `0`
282
+ *
283
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
284
+ */
285
+ timeout: function(o) {
286
+ var a = z;
287
+ o.addEndListener || (a = a.isRequired);
288
+ for (var s = arguments.length, n = new Array(s > 1 ? s - 1 : 0), e = 1; e < s; e++)
289
+ n[e - 1] = arguments[e];
290
+ return a.apply(void 0, [o].concat(n));
291
+ },
292
+ /**
293
+ * Add a custom transition end trigger. Called with the transitioning
294
+ * DOM node and a `done` callback. Allows for more fine grained transition end
295
+ * logic. Timeouts are still used as a fallback if provided.
296
+ *
297
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
298
+ *
299
+ * ```jsx
300
+ * addEndListener={(node, done) => {
301
+ * // use the css transitionend event to mark the finish of a transition
302
+ * node.addEventListener('transitionend', done, false);
303
+ * }}
304
+ * ```
305
+ */
306
+ addEndListener: i.func,
307
+ /**
308
+ * Callback fired before the "entering" status is applied. An extra parameter
309
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
310
+ *
311
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
312
+ *
313
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
314
+ */
315
+ onEnter: i.func,
316
+ /**
317
+ * Callback fired after the "entering" status is applied. An extra parameter
318
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
319
+ *
320
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
321
+ *
322
+ * @type Function(node: HtmlElement, isAppearing: bool)
323
+ */
324
+ onEntering: i.func,
325
+ /**
326
+ * Callback fired after the "entered" status is applied. An extra parameter
327
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
328
+ *
329
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
330
+ *
331
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
332
+ */
333
+ onEntered: i.func,
334
+ /**
335
+ * Callback fired before the "exiting" status is applied.
336
+ *
337
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
338
+ *
339
+ * @type Function(node: HtmlElement) -> void
340
+ */
341
+ onExit: i.func,
342
+ /**
343
+ * Callback fired after the "exiting" status is applied.
344
+ *
345
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
346
+ *
347
+ * @type Function(node: HtmlElement) -> void
348
+ */
349
+ onExiting: i.func,
350
+ /**
351
+ * Callback fired after the "exited" status is applied.
352
+ *
353
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
354
+ *
355
+ * @type Function(node: HtmlElement) -> void
356
+ */
357
+ onExited: i.func
358
+ } : {};
359
+ function m() {
360
+ }
361
+ f.defaultProps = {
362
+ in: !1,
363
+ mountOnEnter: !1,
364
+ unmountOnExit: !1,
365
+ appear: !1,
366
+ enter: !0,
367
+ exit: !0,
368
+ onEnter: m,
369
+ onEntering: m,
370
+ onEntered: m,
371
+ onExit: m,
372
+ onExiting: m,
373
+ onExited: m
374
+ };
375
+ f.UNMOUNTED = E;
376
+ f.EXITED = d;
377
+ f.ENTERING = v;
378
+ f.ENTERED = h;
379
+ f.EXITING = y;
380
+ const ce = (t) => t.scrollTop;
381
+ function fe(t, o) {
382
+ var a, s;
383
+ const {
384
+ timeout: n,
385
+ easing: e,
386
+ style: r = {}
387
+ } = t;
388
+ return {
389
+ duration: (a = r.transitionDuration) != null ? a : typeof n == "number" ? n : n[o.mode] || 0,
390
+ easing: (s = r.transitionTimingFunction) != null ? s : typeof e == "object" ? e[o.mode] : e,
391
+ delay: r.transitionDelay
392
+ };
393
+ }
394
+ function K() {
395
+ const t = G(q);
396
+ return process.env.NODE_ENV !== "production" && k.useDebugValue(t), t;
397
+ }
398
+ const C = (t) => {
399
+ let o;
400
+ return t < 1 ? o = 5.11916 * t ** 2 : o = 4.5 * Math.log(t + 1) + 2, (o / 100).toFixed(2);
401
+ };
402
+ function Q(t) {
403
+ return U("MuiPaper", t);
404
+ }
405
+ w("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
406
+ const Y = ["className", "component", "elevation", "square", "variant"], Z = (t) => {
407
+ const {
408
+ square: o,
409
+ elevation: a,
410
+ variant: s,
411
+ classes: n
412
+ } = t, e = {
413
+ root: ["root", s, !o && "rounded", s === "elevation" && `elevation${a}`]
414
+ };
415
+ return F(e, Q, n);
416
+ }, ee = V("div", {
417
+ name: "MuiPaper",
418
+ slot: "Root",
419
+ overridesResolver: (t, o) => {
420
+ const {
421
+ ownerState: a
422
+ } = t;
423
+ return [o.root, o[a.variant], !a.square && o.rounded, a.variant === "elevation" && o[`elevation${a.elevation}`]];
424
+ }
425
+ })(({
426
+ theme: t,
427
+ ownerState: o
428
+ }) => {
429
+ var a;
430
+ return T({
431
+ backgroundColor: (t.vars || t).palette.background.paper,
432
+ color: (t.vars || t).palette.text.primary,
433
+ transition: t.transitions.create("box-shadow")
434
+ }, !o.square && {
435
+ borderRadius: t.shape.borderRadius
436
+ }, o.variant === "outlined" && {
437
+ border: `1px solid ${(t.vars || t).palette.divider}`
438
+ }, o.variant === "elevation" && T({
439
+ boxShadow: (t.vars || t).shadows[o.elevation]
440
+ }, !t.vars && t.palette.mode === "dark" && {
441
+ backgroundImage: `linear-gradient(${D("#fff", C(o.elevation))}, ${D("#fff", C(o.elevation))})`
442
+ }, t.vars && {
443
+ backgroundImage: (a = t.vars.overlays) == null ? void 0 : a[o.elevation]
444
+ }));
445
+ }), te = /* @__PURE__ */ k.forwardRef(function(o, a) {
446
+ const s = L({
447
+ props: o,
448
+ name: "MuiPaper"
449
+ }), {
450
+ className: n,
451
+ component: e = "div",
452
+ elevation: r = 1,
453
+ square: u = !1,
454
+ variant: l = "elevation"
455
+ } = s, p = S(s, Y), c = T({}, s, {
456
+ component: e,
457
+ elevation: r,
458
+ square: u,
459
+ variant: l
460
+ }), x = Z(c);
461
+ return process.env.NODE_ENV !== "production" && K().shadows[r] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${r}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${r}]\` is defined.`].join(`
462
+ `)), /* @__PURE__ */ A(ee, T({
463
+ as: e,
464
+ ownerState: c,
465
+ className: j(x.root, n),
466
+ ref: a
467
+ }, p));
468
+ });
469
+ process.env.NODE_ENV !== "production" && (te.propTypes = {
470
+ // ----------------------------- Warning --------------------------------
471
+ // | These PropTypes are generated from the TypeScript type definitions |
472
+ // | To update them edit the d.ts file and run "yarn proptypes" |
473
+ // ----------------------------------------------------------------------
474
+ /**
475
+ * The content of the component.
476
+ */
477
+ children: i.node,
478
+ /**
479
+ * Override or extend the styles applied to the component.
480
+ */
481
+ classes: i.object,
482
+ /**
483
+ * @ignore
484
+ */
485
+ className: i.string,
486
+ /**
487
+ * The component used for the root node.
488
+ * Either a string to use a HTML element or a component.
489
+ */
490
+ component: i.elementType,
491
+ /**
492
+ * Shadow depth, corresponds to `dp` in the spec.
493
+ * It accepts values between 0 and 24 inclusive.
494
+ * @default 1
495
+ */
496
+ elevation: $(H, (t) => {
497
+ const {
498
+ elevation: o,
499
+ variant: a
500
+ } = t;
501
+ return o > 0 && a === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${a}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
502
+ }),
503
+ /**
504
+ * If `true`, rounded corners are disabled.
505
+ * @default false
506
+ */
507
+ square: i.bool,
508
+ /**
509
+ * The system prop that allows defining system overrides as well as additional CSS styles.
510
+ */
511
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
512
+ /**
513
+ * The variant to use.
514
+ * @default 'elevation'
515
+ */
516
+ variant: i.oneOfType([i.oneOf(["elevation", "outlined"]), i.string])
517
+ });
518
+ export {
519
+ te as P,
520
+ f as T,
521
+ pe as c,
522
+ J as f,
523
+ fe as g,
524
+ H as i,
525
+ ce as r,
526
+ K as u
527
+ };