@hybridcore/ui 1.6.1 → 1.6.3

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 (231) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/Button-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1066 -328
  194. package/dist/main.js +165 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -0,0 +1,582 @@
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
+ };