@hybridcore/ui 1.6.11 → 1.6.13

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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,582 +0,0 @@
1
- import { _ as M, a as d } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import { _ as V, d as w, c as L } from "./TransitionGroupContext-BDAp2T0O.js";
3
- import { P as a } from "./index-C__OZmYy.js";
4
- import * as $ from "react";
5
- import b from "react";
6
- import y from "react-dom";
7
- import { c as O } from "./clsx-OuTLNxxd.js";
8
- import { m as j, T as H, g as A, a as F, s as G, f as P, u as W, c as X } from "./generateUtilityClasses-C3ivN9Ie.js";
9
- import { useTheme as Z } from "@mui/system";
10
- import { jsx as B } from "react/jsx-runtime";
11
- const k = {
12
- disabled: !1
13
- };
14
- var z = process.env.NODE_ENV !== "production" ? a.oneOfType([a.number, a.shape({
15
- enter: a.number,
16
- exit: a.number,
17
- appear: a.number
18
- }).isRequired]) : null, xe = process.env.NODE_ENV !== "production" ? a.oneOfType([a.string, a.shape({
19
- enter: a.string,
20
- exit: a.string,
21
- active: a.string
22
- }), a.shape({
23
- enter: a.string,
24
- enterDone: a.string,
25
- enterActive: a.string,
26
- exit: a.string,
27
- exitDone: a.string,
28
- exitActive: a.string
29
- })]) : null, J = function(o) {
30
- return o.scrollTop;
31
- }, N = "unmounted", m = "exited", h = "entering", g = "entered", S = "exiting", p = /* @__PURE__ */ function(e) {
32
- V(o, e);
33
- function o(r, n) {
34
- var t;
35
- t = e.call(this, r, n) || this;
36
- var s = n, l = s && !s.isMounting ? r.enter : r.appear, u;
37
- return t.appearStatus = null, r.in ? l ? (u = m, t.appearStatus = h) : u = g : r.unmountOnExit || r.mountOnEnter ? u = N : u = m, t.state = {
38
- status: u
39
- }, t.nextCallback = null, t;
40
- }
41
- o.getDerivedStateFromProps = function(n, t) {
42
- var s = n.in;
43
- return s && t.status === N ? {
44
- status: m
45
- } : null;
46
- };
47
- var i = o.prototype;
48
- return i.componentDidMount = function() {
49
- this.updateStatus(!0, this.appearStatus);
50
- }, i.componentDidUpdate = function(n) {
51
- var t = null;
52
- if (n !== this.props) {
53
- var s = this.state.status;
54
- this.props.in ? s !== h && s !== g && (t = h) : (s === h || s === g) && (t = S);
55
- }
56
- this.updateStatus(!1, t);
57
- }, i.componentWillUnmount = function() {
58
- this.cancelNextCallback();
59
- }, i.getTimeouts = function() {
60
- var n = this.props.timeout, t, s, l;
61
- return t = s = l = n, n != null && typeof n != "number" && (t = n.exit, s = n.enter, l = n.appear !== void 0 ? n.appear : s), {
62
- exit: t,
63
- enter: s,
64
- appear: l
65
- };
66
- }, i.updateStatus = function(n, t) {
67
- if (n === void 0 && (n = !1), t !== null)
68
- if (this.cancelNextCallback(), t === h) {
69
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
70
- var s = this.props.nodeRef ? this.props.nodeRef.current : y.findDOMNode(this);
71
- s && J(s);
72
- }
73
- this.performEnter(n);
74
- } else
75
- this.performExit();
76
- else this.props.unmountOnExit && this.state.status === m && this.setState({
77
- status: N
78
- });
79
- }, i.performEnter = function(n) {
80
- var t = this, s = this.props.enter, l = this.context ? this.context.isMounting : n, u = this.props.nodeRef ? [l] : [y.findDOMNode(this), l], c = u[0], f = u[1], v = this.getTimeouts(), E = l ? v.appear : v.enter;
81
- if (!n && !s || k.disabled) {
82
- this.safeSetState({
83
- status: g
84
- }, function() {
85
- t.props.onEntered(c);
86
- });
87
- return;
88
- }
89
- this.props.onEnter(c, f), this.safeSetState({
90
- status: h
91
- }, function() {
92
- t.props.onEntering(c, f), t.onTransitionEnd(E, function() {
93
- t.safeSetState({
94
- status: g
95
- }, function() {
96
- t.props.onEntered(c, f);
97
- });
98
- });
99
- });
100
- }, i.performExit = function() {
101
- var n = this, t = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : y.findDOMNode(this);
102
- if (!t || k.disabled) {
103
- this.safeSetState({
104
- status: m
105
- }, function() {
106
- n.props.onExited(l);
107
- });
108
- return;
109
- }
110
- this.props.onExit(l), this.safeSetState({
111
- status: S
112
- }, function() {
113
- n.props.onExiting(l), n.onTransitionEnd(s.exit, function() {
114
- n.safeSetState({
115
- status: m
116
- }, function() {
117
- n.props.onExited(l);
118
- });
119
- });
120
- });
121
- }, i.cancelNextCallback = function() {
122
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
123
- }, i.safeSetState = function(n, t) {
124
- t = this.setNextCallback(t), this.setState(n, t);
125
- }, i.setNextCallback = function(n) {
126
- var t = this, s = !0;
127
- return this.nextCallback = function(l) {
128
- s && (s = !1, t.nextCallback = null, n(l));
129
- }, this.nextCallback.cancel = function() {
130
- s = !1;
131
- }, this.nextCallback;
132
- }, i.onTransitionEnd = function(n, t) {
133
- this.setNextCallback(t);
134
- var s = this.props.nodeRef ? this.props.nodeRef.current : y.findDOMNode(this), l = n == null && !this.props.addEndListener;
135
- if (!s || l) {
136
- setTimeout(this.nextCallback, 0);
137
- return;
138
- }
139
- if (this.props.addEndListener) {
140
- var u = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], c = u[0], f = u[1];
141
- this.props.addEndListener(c, f);
142
- }
143
- n != null && setTimeout(this.nextCallback, n);
144
- }, i.render = function() {
145
- var n = this.state.status;
146
- if (n === N)
147
- return null;
148
- var t = this.props, s = t.children;
149
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
150
- var l = M(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
151
- return (
152
- // allows for nested Transitions
153
- /* @__PURE__ */ b.createElement(w.Provider, {
154
- value: null
155
- }, typeof s == "function" ? s(n, l) : b.cloneElement(b.Children.only(s), l))
156
- );
157
- }, o;
158
- }(b.Component);
159
- p.contextType = w;
160
- p.propTypes = process.env.NODE_ENV !== "production" ? {
161
- /**
162
- * A React reference to DOM element that need to transition:
163
- * https://stackoverflow.com/a/51127130/4671932
164
- *
165
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
166
- * (e.g. `onEnter`) because user already has direct access to the node.
167
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
168
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
169
- * (see
170
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
171
- */
172
- nodeRef: a.shape({
173
- current: typeof Element > "u" ? a.any : function(e, o, i, r, n, t) {
174
- var s = e[o];
175
- return a.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, o, i, r, n, t);
176
- }
177
- }),
178
- /**
179
- * A `function` child can be used instead of a React element. This function is
180
- * called with the current transition status (`'entering'`, `'entered'`,
181
- * `'exiting'`, `'exited'`), which can be used to apply context
182
- * specific props to a component.
183
- *
184
- * ```jsx
185
- * <Transition in={this.state.in} timeout={150}>
186
- * {state => (
187
- * <MyComponent className={`fade fade-${state}`} />
188
- * )}
189
- * </Transition>
190
- * ```
191
- */
192
- children: a.oneOfType([a.func.isRequired, a.element.isRequired]).isRequired,
193
- /**
194
- * Show the component; triggers the enter or exit states
195
- */
196
- in: a.bool,
197
- /**
198
- * By default the child component is mounted immediately along with
199
- * the parent `Transition` component. If you want to "lazy mount" the component on the
200
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
201
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
202
- */
203
- mountOnEnter: a.bool,
204
- /**
205
- * By default the child component stays mounted after it reaches the `'exited'` state.
206
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
207
- */
208
- unmountOnExit: a.bool,
209
- /**
210
- * By default the child component does not perform the enter transition when
211
- * it first mounts, regardless of the value of `in`. If you want this
212
- * behavior, set both `appear` and `in` to `true`.
213
- *
214
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
215
- * > only adds an additional enter transition. However, in the
216
- * > `<CSSTransition>` component that first enter transition does result in
217
- * > additional `.appear-*` classes, that way you can choose to style it
218
- * > differently.
219
- */
220
- appear: a.bool,
221
- /**
222
- * Enable or disable enter transitions.
223
- */
224
- enter: a.bool,
225
- /**
226
- * Enable or disable exit transitions.
227
- */
228
- exit: a.bool,
229
- /**
230
- * The duration of the transition, in milliseconds.
231
- * Required unless `addEndListener` is provided.
232
- *
233
- * You may specify a single timeout for all transitions:
234
- *
235
- * ```jsx
236
- * timeout={500}
237
- * ```
238
- *
239
- * or individually:
240
- *
241
- * ```jsx
242
- * timeout={{
243
- * appear: 500,
244
- * enter: 300,
245
- * exit: 500,
246
- * }}
247
- * ```
248
- *
249
- * - `appear` defaults to the value of `enter`
250
- * - `enter` defaults to `0`
251
- * - `exit` defaults to `0`
252
- *
253
- * @type {number | { enter?: number, exit?: number, appear?: number }}
254
- */
255
- timeout: function(o) {
256
- var i = z;
257
- o.addEndListener || (i = i.isRequired);
258
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
259
- n[t - 1] = arguments[t];
260
- return i.apply(void 0, [o].concat(n));
261
- },
262
- /**
263
- * Add a custom transition end trigger. Called with the transitioning
264
- * DOM node and a `done` callback. Allows for more fine grained transition end
265
- * logic. Timeouts are still used as a fallback if provided.
266
- *
267
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
268
- *
269
- * ```jsx
270
- * addEndListener={(node, done) => {
271
- * // use the css transitionend event to mark the finish of a transition
272
- * node.addEventListener('transitionend', done, false);
273
- * }}
274
- * ```
275
- */
276
- addEndListener: a.func,
277
- /**
278
- * Callback fired before the "entering" status is applied. An extra parameter
279
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
280
- *
281
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
282
- *
283
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
284
- */
285
- onEnter: a.func,
286
- /**
287
- * Callback fired after the "entering" status is applied. An extra parameter
288
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
289
- *
290
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
291
- *
292
- * @type Function(node: HtmlElement, isAppearing: bool)
293
- */
294
- onEntering: a.func,
295
- /**
296
- * Callback fired after the "entered" status is applied. An extra parameter
297
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
298
- *
299
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
300
- *
301
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
302
- */
303
- onEntered: a.func,
304
- /**
305
- * Callback fired before the "exiting" status is applied.
306
- *
307
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
308
- *
309
- * @type Function(node: HtmlElement) -> void
310
- */
311
- onExit: a.func,
312
- /**
313
- * Callback fired after the "exiting" status is applied.
314
- *
315
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
316
- *
317
- * @type Function(node: HtmlElement) -> void
318
- */
319
- onExiting: a.func,
320
- /**
321
- * Callback fired after the "exited" status is applied.
322
- *
323
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
324
- *
325
- * @type Function(node: HtmlElement) -> void
326
- */
327
- onExited: a.func
328
- } : {};
329
- function x() {
330
- }
331
- p.defaultProps = {
332
- in: !1,
333
- mountOnEnter: !1,
334
- unmountOnExit: !1,
335
- appear: !1,
336
- enter: !0,
337
- exit: !0,
338
- onEnter: x,
339
- onEntering: x,
340
- onEntered: x,
341
- onExit: x,
342
- onExiting: x,
343
- onExited: x
344
- };
345
- p.UNMOUNTED = N;
346
- p.EXITED = m;
347
- p.ENTERING = h;
348
- p.ENTERED = g;
349
- p.EXITING = S;
350
- function K(e) {
351
- const o = typeof e;
352
- switch (o) {
353
- case "number":
354
- return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
355
- case "object":
356
- return e === null ? "null" : e.constructor.name;
357
- default:
358
- return o;
359
- }
360
- }
361
- function Q(e) {
362
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
363
- }
364
- const Y = Number.isInteger || Q;
365
- function q(e, o, i, r) {
366
- const n = e[o];
367
- if (n == null || !Y(n)) {
368
- const t = K(n);
369
- return new RangeError(`Invalid ${r} \`${o}\` of type \`${t}\` supplied to \`${i}\`, expected \`integer\`.`);
370
- }
371
- return null;
372
- }
373
- function U(e, o, ...i) {
374
- return e[o] === void 0 ? null : q(e, o, ...i);
375
- }
376
- function D() {
377
- return null;
378
- }
379
- U.isRequired = q;
380
- D.isRequired = D;
381
- const ee = process.env.NODE_ENV === "production" ? D : U;
382
- function te(e) {
383
- return typeof e == "string";
384
- }
385
- function ge(e, o, i) {
386
- return e === void 0 || te(e) ? o : d({}, o, {
387
- ownerState: d({}, o.ownerState, i)
388
- });
389
- }
390
- function ne(e, o = []) {
391
- if (e === void 0)
392
- return {};
393
- const i = {};
394
- return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !o.includes(r)).forEach((r) => {
395
- i[r] = e[r];
396
- }), i;
397
- }
398
- function _(e) {
399
- if (e === void 0)
400
- return {};
401
- const o = {};
402
- return Object.keys(e).filter((i) => !(i.match(/^on[A-Z]/) && typeof e[i] == "function")).forEach((i) => {
403
- o[i] = e[i];
404
- }), o;
405
- }
406
- function Ne(e) {
407
- const {
408
- getSlotProps: o,
409
- additionalProps: i,
410
- externalSlotProps: r,
411
- externalForwardedProps: n,
412
- className: t
413
- } = e;
414
- if (!o) {
415
- const R = O(i == null ? void 0 : i.className, t, n == null ? void 0 : n.className, r == null ? void 0 : r.className), C = d({}, i == null ? void 0 : i.style, n == null ? void 0 : n.style, r == null ? void 0 : r.style), T = d({}, i, n, r);
416
- return R.length > 0 && (T.className = R), Object.keys(C).length > 0 && (T.style = C), {
417
- props: T,
418
- internalRef: void 0
419
- };
420
- }
421
- const s = ne(d({}, n, r)), l = _(r), u = _(n), c = o(s), f = O(c == null ? void 0 : c.className, i == null ? void 0 : i.className, t, n == null ? void 0 : n.className, r == null ? void 0 : r.className), v = d({}, c == null ? void 0 : c.style, i == null ? void 0 : i.style, n == null ? void 0 : n.style, r == null ? void 0 : r.style), E = d({}, c, i, u, l);
422
- return f.length > 0 && (E.className = f), Object.keys(v).length > 0 && (E.style = v), {
423
- props: E,
424
- internalRef: c.ref
425
- };
426
- }
427
- function be(e, o, i) {
428
- return typeof e == "function" ? e(o, i) : e;
429
- }
430
- const ye = (e) => e.scrollTop;
431
- function Te(e, o) {
432
- var i, r;
433
- const {
434
- timeout: n,
435
- easing: t,
436
- style: s = {}
437
- } = e;
438
- return {
439
- duration: (i = s.transitionDuration) != null ? i : typeof n == "number" ? n : n[o.mode] || 0,
440
- easing: (r = s.transitionTimingFunction) != null ? r : typeof t == "object" ? t[o.mode] : t,
441
- delay: s.transitionDelay
442
- };
443
- }
444
- function ie() {
445
- const e = Z(j);
446
- return process.env.NODE_ENV !== "production" && $.useDebugValue(e), e[H] || e;
447
- }
448
- const I = (e) => {
449
- let o;
450
- return e < 1 ? o = 5.11916 * e ** 2 : o = 4.5 * Math.log(e + 1) + 2, (o / 100).toFixed(2);
451
- };
452
- function oe(e) {
453
- return F("MuiPaper", e);
454
- }
455
- A("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"]);
456
- const re = ["className", "component", "elevation", "square", "variant"], ae = (e) => {
457
- const {
458
- square: o,
459
- elevation: i,
460
- variant: r,
461
- classes: n
462
- } = e, t = {
463
- root: ["root", r, !o && "rounded", r === "elevation" && `elevation${i}`]
464
- };
465
- return X(t, oe, n);
466
- }, se = G("div", {
467
- name: "MuiPaper",
468
- slot: "Root",
469
- overridesResolver: (e, o) => {
470
- const {
471
- ownerState: i
472
- } = e;
473
- return [o.root, o[i.variant], !i.square && o.rounded, i.variant === "elevation" && o[`elevation${i.elevation}`]];
474
- }
475
- })(({
476
- theme: e,
477
- ownerState: o
478
- }) => {
479
- var i;
480
- return d({
481
- backgroundColor: (e.vars || e).palette.background.paper,
482
- color: (e.vars || e).palette.text.primary,
483
- transition: e.transitions.create("box-shadow")
484
- }, !o.square && {
485
- borderRadius: e.shape.borderRadius
486
- }, o.variant === "outlined" && {
487
- border: `1px solid ${(e.vars || e).palette.divider}`
488
- }, o.variant === "elevation" && d({
489
- boxShadow: (e.vars || e).shadows[o.elevation]
490
- }, !e.vars && e.palette.mode === "dark" && {
491
- backgroundImage: `linear-gradient(${P("#fff", I(o.elevation))}, ${P("#fff", I(o.elevation))})`
492
- }, e.vars && {
493
- backgroundImage: (i = e.vars.overlays) == null ? void 0 : i[o.elevation]
494
- }));
495
- }), le = /* @__PURE__ */ $.forwardRef(function(o, i) {
496
- const r = W({
497
- props: o,
498
- name: "MuiPaper"
499
- }), {
500
- className: n,
501
- component: t = "div",
502
- elevation: s = 1,
503
- square: l = !1,
504
- variant: u = "elevation"
505
- } = r, c = M(r, re), f = d({}, r, {
506
- component: t,
507
- elevation: s,
508
- square: l,
509
- variant: u
510
- }), v = ae(f);
511
- return process.env.NODE_ENV !== "production" && ie().shadows[s] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
512
- `)), /* @__PURE__ */ B(se, d({
513
- as: t,
514
- ownerState: f,
515
- className: O(v.root, n),
516
- ref: i
517
- }, c));
518
- });
519
- process.env.NODE_ENV !== "production" && (le.propTypes = {
520
- // ┌────────────────────────────── Warning ──────────────────────────────┐
521
- // │ These PropTypes are generated from the TypeScript type definitions. │
522
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
523
- // └─────────────────────────────────────────────────────────────────────┘
524
- /**
525
- * The content of the component.
526
- */
527
- children: a.node,
528
- /**
529
- * Override or extend the styles applied to the component.
530
- */
531
- classes: a.object,
532
- /**
533
- * @ignore
534
- */
535
- className: a.string,
536
- /**
537
- * The component used for the root node.
538
- * Either a string to use a HTML element or a component.
539
- */
540
- component: a.elementType,
541
- /**
542
- * Shadow depth, corresponds to `dp` in the spec.
543
- * It accepts values between 0 and 24 inclusive.
544
- * @default 1
545
- */
546
- elevation: L(ee, (e) => {
547
- const {
548
- elevation: o,
549
- variant: i
550
- } = e;
551
- return o > 0 && i === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${i}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
552
- }),
553
- /**
554
- * If `true`, rounded corners are disabled.
555
- * @default false
556
- */
557
- square: a.bool,
558
- /**
559
- * The system prop that allows defining system overrides as well as additional CSS styles.
560
- */
561
- sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
562
- /**
563
- * The variant to use.
564
- * @default 'elevation'
565
- */
566
- variant: a.oneOfType([a.oneOf(["elevation", "outlined"]), a.string])
567
- });
568
- export {
569
- le as P,
570
- p as T,
571
- ge as a,
572
- ye as b,
573
- ee as c,
574
- xe as d,
575
- ne as e,
576
- J as f,
577
- Te as g,
578
- te as i,
579
- Ne as m,
580
- be as r,
581
- ie as u
582
- };