@jigowatts/jigowatts-ui 0.0.1-12

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 (199) hide show
  1. package/README.md +50 -0
  2. package/dist/AccordionSummary-B4zooGpd.js +831 -0
  3. package/dist/ButtonBase-pxtIu13Q.js +866 -0
  4. package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
  5. package/dist/ListContext-DOVwHqy-.js +180 -0
  6. package/dist/MenuItem-yBaT3_db.js +470 -0
  7. package/dist/Paper-COvYqxZa.js +522 -0
  8. package/dist/Tabs-D3lJRumZ.js +1085 -0
  9. package/dist/_commonjsHelpers-CT_km90n.js +30 -0
  10. package/dist/assets/index.css +1 -0
  11. package/dist/assets/index10.css +1 -0
  12. package/dist/assets/index11.css +1 -0
  13. package/dist/assets/index12.css +1 -0
  14. package/dist/assets/index13.css +1 -0
  15. package/dist/assets/index14.css +1 -0
  16. package/dist/assets/index15.css +1 -0
  17. package/dist/assets/index16.css +1 -0
  18. package/dist/assets/index17.css +1 -0
  19. package/dist/assets/index18.css +1 -0
  20. package/dist/assets/index19.css +1 -0
  21. package/dist/assets/index2.css +1 -0
  22. package/dist/assets/index20.css +1 -0
  23. package/dist/assets/index21.css +1 -0
  24. package/dist/assets/index22.css +1 -0
  25. package/dist/assets/index23.css +1 -0
  26. package/dist/assets/index24.css +1 -0
  27. package/dist/assets/index25.css +1 -0
  28. package/dist/assets/index26.css +1 -0
  29. package/dist/assets/index27.css +1 -0
  30. package/dist/assets/index3.css +1 -0
  31. package/dist/assets/index4.css +1 -0
  32. package/dist/assets/index5.css +1 -0
  33. package/dist/assets/index6.css +1 -0
  34. package/dist/assets/index7.css +1 -0
  35. package/dist/assets/index8.css +1 -0
  36. package/dist/assets/index9.css +1 -0
  37. package/dist/browser-DxfwT6rn.js +656 -0
  38. package/dist/components/Button/index.d.ts +28 -0
  39. package/dist/components/Button/index.js +18 -0
  40. package/dist/components/Button/index.test.d.ts +1 -0
  41. package/dist/components/Button/index.test.js +23 -0
  42. package/dist/components/Card/index.d.ts +16 -0
  43. package/dist/components/Card/index.js +37 -0
  44. package/dist/components/Card/index.test.d.ts +1 -0
  45. package/dist/components/Card/index.test.js +35 -0
  46. package/dist/components/CustomLink/index.d.ts +11 -0
  47. package/dist/components/CustomLink/index.js +1670 -0
  48. package/dist/components/CustomLink/index.test.d.ts +1 -0
  49. package/dist/components/CustomLink/index.test.js +40 -0
  50. package/dist/components/DataTable/index.d.ts +28 -0
  51. package/dist/components/DataTable/index.js +137 -0
  52. package/dist/components/DataTable/index.test.d.ts +1 -0
  53. package/dist/components/DataTable/index.test.js +3010 -0
  54. package/dist/components/DatePickerController/index.d.ts +16 -0
  55. package/dist/components/DatePickerController/index.js +83 -0
  56. package/dist/components/DatePickerController/index.test.d.ts +1 -0
  57. package/dist/components/DatePickerController/index.test.js +24 -0
  58. package/dist/components/ErrorMessage/index.d.ts +5 -0
  59. package/dist/components/ErrorMessage/index.js +11 -0
  60. package/dist/components/ErrorMessage/index.test.d.ts +1 -0
  61. package/dist/components/ErrorMessage/index.test.js +17 -0
  62. package/dist/components/EvseStateLabel/index.d.ts +5 -0
  63. package/dist/components/EvseStateLabel/index.js +36 -0
  64. package/dist/components/FlexButtons/index.d.ts +9 -0
  65. package/dist/components/FlexButtons/index.js +13 -0
  66. package/dist/components/Form/index.d.ts +8 -0
  67. package/dist/components/Form/index.js +11 -0
  68. package/dist/components/Form/index.test.d.ts +1 -0
  69. package/dist/components/Form/index.test.js +25 -0
  70. package/dist/components/FormItem/index.d.ts +9 -0
  71. package/dist/components/FormItem/index.js +19 -0
  72. package/dist/components/FormItem/index.test.d.ts +1 -0
  73. package/dist/components/FormItem/index.test.js +15 -0
  74. package/dist/components/FormTitle/index.d.ts +5 -0
  75. package/dist/components/FormTitle/index.js +11 -0
  76. package/dist/components/FormTitle/index.test.d.ts +1 -0
  77. package/dist/components/FormTitle/index.test.js +15 -0
  78. package/dist/components/Input/index.d.ts +15 -0
  79. package/dist/components/Input/index.js +39 -0
  80. package/dist/components/Input/index.test.d.ts +1 -0
  81. package/dist/components/Input/index.test.js +39 -0
  82. package/dist/components/InputController/index.d.ts +20 -0
  83. package/dist/components/InputController/index.js +81 -0
  84. package/dist/components/InputController/index.test.d.ts +1 -0
  85. package/dist/components/InputController/index.test.js +56 -0
  86. package/dist/components/InputGroup/index.d.ts +7 -0
  87. package/dist/components/InputGroup/index.js +11 -0
  88. package/dist/components/InputGroup/index.test.d.ts +1 -0
  89. package/dist/components/InputGroup/index.test.js +15 -0
  90. package/dist/components/Label/index.d.ts +7 -0
  91. package/dist/components/Label/index.js +14 -0
  92. package/dist/components/Label/index.test.d.ts +1 -0
  93. package/dist/components/Label/index.test.js +25 -0
  94. package/dist/components/LabeledContent/index.d.ts +15 -0
  95. package/dist/components/LabeledContent/index.js +28 -0
  96. package/dist/components/LabeledContent/index.test.d.ts +1 -0
  97. package/dist/components/LabeledContent/index.test.js +19 -0
  98. package/dist/components/LoadingOverlay/index.d.ts +2 -0
  99. package/dist/components/LoadingOverlay/index.js +134 -0
  100. package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
  101. package/dist/components/LoadingOverlay/index.test.js +12 -0
  102. package/dist/components/Map/index.d.ts +8 -0
  103. package/dist/components/Map/index.js +6575 -0
  104. package/dist/components/MaxWidthContainer/index.d.ts +13 -0
  105. package/dist/components/MaxWidthContainer/index.js +15 -0
  106. package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
  107. package/dist/components/MaxWidthContainer/index.test.js +24 -0
  108. package/dist/components/NumericFieldController/index.d.ts +53 -0
  109. package/dist/components/NumericFieldController/index.js +620 -0
  110. package/dist/components/NumericFieldController/index.test.d.ts +1 -0
  111. package/dist/components/NumericFieldController/index.test.js +24 -0
  112. package/dist/components/OfflineLabel/index.d.ts +5 -0
  113. package/dist/components/OfflineLabel/index.js +34 -0
  114. package/dist/components/PageSizeSelector/index.d.ts +15 -0
  115. package/dist/components/PageSizeSelector/index.js +43 -0
  116. package/dist/components/Pagination/index.d.ts +9 -0
  117. package/dist/components/Pagination/index.js +7 -0
  118. package/dist/components/Pagination/index.test.d.ts +1 -0
  119. package/dist/components/Pagination/index.test.js +34 -0
  120. package/dist/components/PasswordInputController/index.d.ts +17 -0
  121. package/dist/components/PasswordInputController/index.js +78 -0
  122. package/dist/components/PasswordInputController/index.test.d.ts +1 -0
  123. package/dist/components/PasswordInputController/index.test.js +37 -0
  124. package/dist/components/RadioButton/index.d.ts +13 -0
  125. package/dist/components/RadioButton/index.js +7 -0
  126. package/dist/components/RadioButton/index.test.d.ts +1 -0
  127. package/dist/components/RadioButton/index.test.js +38 -0
  128. package/dist/components/RadioGroupController/index.d.ts +15 -0
  129. package/dist/components/RadioGroupController/index.js +48 -0
  130. package/dist/components/RadioGroupController/index.test.d.ts +1 -0
  131. package/dist/components/RadioGroupController/index.test.js +48 -0
  132. package/dist/components/RangeDatePicker/index.d.ts +14 -0
  133. package/dist/components/RangeDatePicker/index.js +1594 -0
  134. package/dist/components/RangeDatePickerController/index.d.ts +21 -0
  135. package/dist/components/RangeDatePickerController/index.js +123 -0
  136. package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
  137. package/dist/components/RangeDatePickerController/index.test.js +24 -0
  138. package/dist/components/ReportCard/index.d.ts +12 -0
  139. package/dist/components/ReportCard/index.js +18 -0
  140. package/dist/components/ReportCard/index.test.d.ts +1 -0
  141. package/dist/components/ReportCard/index.test.js +27 -0
  142. package/dist/components/ReportChart/index.d.ts +22 -0
  143. package/dist/components/ReportChart/index.js +23101 -0
  144. package/dist/components/ScrollableDialog/index.d.ts +19 -0
  145. package/dist/components/ScrollableDialog/index.js +42 -0
  146. package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
  147. package/dist/components/ScrollableDialog/index.test.js +59 -0
  148. package/dist/components/SearchForm/index.d.ts +13 -0
  149. package/dist/components/SearchForm/index.js +86 -0
  150. package/dist/components/SelectBox/index.d.ts +18 -0
  151. package/dist/components/SelectBox/index.js +7 -0
  152. package/dist/components/SelectBox/index.test.d.ts +1 -0
  153. package/dist/components/SelectBox/index.test.js +34 -0
  154. package/dist/components/SelectBoxController/index.d.ts +20 -0
  155. package/dist/components/SelectBoxController/index.js +87 -0
  156. package/dist/components/SelectBoxController/index.test.d.ts +1 -0
  157. package/dist/components/SelectBoxController/index.test.js +52 -0
  158. package/dist/components/SubMenu/index.d.ts +22 -0
  159. package/dist/components/SubMenu/index.js +278 -0
  160. package/dist/components/SubMenu/index.test.d.ts +1 -0
  161. package/dist/components/SubMenu/index.test.js +41 -0
  162. package/dist/components/Tabs/index.d.ts +21 -0
  163. package/dist/components/Tabs/index.js +100 -0
  164. package/dist/components/Tabs/index.test.d.ts +1 -0
  165. package/dist/components/Tabs/index.test.js +24 -0
  166. package/dist/components/Textarea/index.d.ts +18 -0
  167. package/dist/components/Textarea/index.js +34 -0
  168. package/dist/components/Textarea/index.test.d.ts +1 -0
  169. package/dist/components/Textarea/index.test.js +25 -0
  170. package/dist/components/ToggleButton/index.d.ts +16 -0
  171. package/dist/components/ToggleButton/index.js +39 -0
  172. package/dist/components/ToggleButton/index.test.d.ts +1 -0
  173. package/dist/components/ToggleButton/index.test.js +49 -0
  174. package/dist/constants/datetime.d.ts +2 -0
  175. package/dist/constants/datetime.js +5 -0
  176. package/dist/createSvgIcon-B53UOwxg.js +183 -0
  177. package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
  178. package/dist/index-BLPOOjNr.js +184 -0
  179. package/dist/index-BOjtnFU5.js +34 -0
  180. package/dist/index-Bs3JCwgu.js +689 -0
  181. package/dist/index-CICI7n5Y.js +19688 -0
  182. package/dist/index-CQDJfJT1.js +50 -0
  183. package/dist/index-C_i0-R5C.js +393 -0
  184. package/dist/index-DWRHnq8_.js +42 -0
  185. package/dist/index-Di2gTfPF.js +25175 -0
  186. package/dist/index-VF82hRp0.js +2522 -0
  187. package/dist/index-kvi6aotO.js +39 -0
  188. package/dist/index.d.ts +38 -0
  189. package/dist/index.esm-ChwJSgnF.js +1052 -0
  190. package/dist/index.js +77 -0
  191. package/dist/isEqual-BBhdD79C.js +667 -0
  192. package/dist/mergeSlotProps-J197zKan.js +63 -0
  193. package/dist/react.esm-C8amP77L.js +11182 -0
  194. package/dist/styled-CWju4EfZ.js +2702 -0
  195. package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
  196. package/dist/useControlled-BQCJRJNJ.js +64 -0
  197. package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
  198. package/dist/useSlotProps-Bh7akxXV.js +33 -0
  199. package/package.json +360 -0
@@ -0,0 +1,522 @@
1
+ import { _ as S, g as _, b as $, s as q, a as T, l as R, u as w, c as U } from "./styled-CWju4EfZ.js";
2
+ import { _ as V, T as P, c as L } from "./ButtonBase-pxtIu13Q.js";
3
+ import { P as i, c as j } from "./index-Bs3JCwgu.js";
4
+ import * as F from "react";
5
+ import b from "react";
6
+ import g from "react-dom";
7
+ import { u as G } from "./mergeSlotProps-J197zKan.js";
8
+ import { jsx as A } from "react/jsx-runtime";
9
+ function X(t) {
10
+ const o = typeof t;
11
+ switch (o) {
12
+ case "number":
13
+ return Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? t !== Math.floor(t) ? "float" : "number" : "Infinity";
14
+ case "object":
15
+ return t === null ? "null" : t.constructor.name;
16
+ default:
17
+ return o;
18
+ }
19
+ }
20
+ function W(t) {
21
+ return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
22
+ }
23
+ const B = Number.isInteger || W;
24
+ function k(t, o, a, s) {
25
+ const n = t[o];
26
+ if (n == null || !B(n)) {
27
+ const e = X(n);
28
+ return new RangeError(`Invalid ${s} \`${o}\` of type \`${e}\` supplied to \`${a}\`, expected \`integer\`.`);
29
+ }
30
+ return null;
31
+ }
32
+ function I(t, o, ...a) {
33
+ return t[o] === void 0 ? null : k(t, o, ...a);
34
+ }
35
+ function N() {
36
+ return null;
37
+ }
38
+ I.isRequired = k;
39
+ N.isRequired = N;
40
+ const H = process.env.NODE_ENV === "production" ? N : I, D = (t) => {
41
+ let o;
42
+ return t < 1 ? o = 5.11916 * t ** 2 : o = 4.5 * Math.log(t + 1) + 2, (o / 100).toFixed(2);
43
+ }, C = {
44
+ disabled: !1
45
+ };
46
+ var z = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
47
+ enter: i.number,
48
+ exit: i.number,
49
+ appear: i.number
50
+ }).isRequired]) : null, se = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
51
+ enter: i.string,
52
+ exit: i.string,
53
+ active: i.string
54
+ }), i.shape({
55
+ enter: i.string,
56
+ enterDone: i.string,
57
+ enterActive: i.string,
58
+ exit: i.string,
59
+ exitDone: i.string,
60
+ exitActive: i.string
61
+ })]) : null, J = function(o) {
62
+ return o.scrollTop;
63
+ }, h = "unmounted", d = "exited", v = "entering", m = "entered", y = "exiting", p = /* @__PURE__ */ function(t) {
64
+ V(o, t);
65
+ function o(s, n) {
66
+ var e;
67
+ e = t.call(this, s, n) || this;
68
+ var r = n, u = r && !r.isMounting ? s.enter : s.appear, l;
69
+ return e.appearStatus = null, s.in ? u ? (l = d, e.appearStatus = v) : l = m : s.unmountOnExit || s.mountOnEnter ? l = h : l = d, e.state = {
70
+ status: l
71
+ }, e.nextCallback = null, e;
72
+ }
73
+ o.getDerivedStateFromProps = function(n, e) {
74
+ var r = n.in;
75
+ return r && e.status === h ? {
76
+ status: d
77
+ } : null;
78
+ };
79
+ var a = o.prototype;
80
+ return a.componentDidMount = function() {
81
+ this.updateStatus(!0, this.appearStatus);
82
+ }, a.componentDidUpdate = function(n) {
83
+ var e = null;
84
+ if (n !== this.props) {
85
+ var r = this.state.status;
86
+ this.props.in ? r !== v && r !== m && (e = v) : (r === v || r === m) && (e = y);
87
+ }
88
+ this.updateStatus(!1, e);
89
+ }, a.componentWillUnmount = function() {
90
+ this.cancelNextCallback();
91
+ }, a.getTimeouts = function() {
92
+ var n = this.props.timeout, e, r, u;
93
+ return e = r = u = n, n != null && typeof n != "number" && (e = n.exit, r = n.enter, u = n.appear !== void 0 ? n.appear : r), {
94
+ exit: e,
95
+ enter: r,
96
+ appear: u
97
+ };
98
+ }, a.updateStatus = function(n, e) {
99
+ if (n === void 0 && (n = !1), e !== null)
100
+ if (this.cancelNextCallback(), e === v) {
101
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
102
+ var r = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this);
103
+ r && J(r);
104
+ }
105
+ this.performEnter(n);
106
+ } else
107
+ this.performExit();
108
+ else
109
+ this.props.unmountOnExit && this.state.status === d && this.setState({
110
+ status: h
111
+ });
112
+ }, a.performEnter = function(n) {
113
+ var e = this, r = this.props.enter, u = this.context ? this.context.isMounting : n, l = this.props.nodeRef ? [u] : [g.findDOMNode(this), u], c = l[0], f = l[1], x = this.getTimeouts(), O = u ? x.appear : x.enter;
114
+ if (!n && !r || C.disabled) {
115
+ this.safeSetState({
116
+ status: m
117
+ }, function() {
118
+ e.props.onEntered(c);
119
+ });
120
+ return;
121
+ }
122
+ this.props.onEnter(c, f), this.safeSetState({
123
+ status: v
124
+ }, function() {
125
+ e.props.onEntering(c, f), e.onTransitionEnd(O, function() {
126
+ e.safeSetState({
127
+ status: m
128
+ }, function() {
129
+ e.props.onEntered(c, f);
130
+ });
131
+ });
132
+ });
133
+ }, a.performExit = function() {
134
+ var n = this, e = this.props.exit, r = this.getTimeouts(), u = this.props.nodeRef ? void 0 : g.findDOMNode(this);
135
+ if (!e || C.disabled) {
136
+ this.safeSetState({
137
+ status: d
138
+ }, function() {
139
+ n.props.onExited(u);
140
+ });
141
+ return;
142
+ }
143
+ this.props.onExit(u), this.safeSetState({
144
+ status: y
145
+ }, function() {
146
+ n.props.onExiting(u), n.onTransitionEnd(r.exit, function() {
147
+ n.safeSetState({
148
+ status: d
149
+ }, function() {
150
+ n.props.onExited(u);
151
+ });
152
+ });
153
+ });
154
+ }, a.cancelNextCallback = function() {
155
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
156
+ }, a.safeSetState = function(n, e) {
157
+ e = this.setNextCallback(e), this.setState(n, e);
158
+ }, a.setNextCallback = function(n) {
159
+ var e = this, r = !0;
160
+ return this.nextCallback = function(u) {
161
+ r && (r = !1, e.nextCallback = null, n(u));
162
+ }, this.nextCallback.cancel = function() {
163
+ r = !1;
164
+ }, this.nextCallback;
165
+ }, a.onTransitionEnd = function(n, e) {
166
+ this.setNextCallback(e);
167
+ var r = this.props.nodeRef ? this.props.nodeRef.current : g.findDOMNode(this), u = n == null && !this.props.addEndListener;
168
+ if (!r || u) {
169
+ setTimeout(this.nextCallback, 0);
170
+ return;
171
+ }
172
+ if (this.props.addEndListener) {
173
+ var l = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], c = l[0], f = l[1];
174
+ this.props.addEndListener(c, f);
175
+ }
176
+ n != null && setTimeout(this.nextCallback, n);
177
+ }, a.render = function() {
178
+ var n = this.state.status;
179
+ if (n === h)
180
+ return null;
181
+ var e = this.props, r = e.children;
182
+ 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;
183
+ var u = S(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
184
+ return (
185
+ // allows for nested Transitions
186
+ /* @__PURE__ */ b.createElement(P.Provider, {
187
+ value: null
188
+ }, typeof r == "function" ? r(n, u) : b.cloneElement(b.Children.only(r), u))
189
+ );
190
+ }, o;
191
+ }(b.Component);
192
+ p.contextType = P;
193
+ p.propTypes = process.env.NODE_ENV !== "production" ? {
194
+ /**
195
+ * A React reference to DOM element that need to transition:
196
+ * https://stackoverflow.com/a/51127130/4671932
197
+ *
198
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
199
+ * (e.g. `onEnter`) because user already has direct access to the node.
200
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
201
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
202
+ * (see
203
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
204
+ */
205
+ nodeRef: i.shape({
206
+ current: typeof Element > "u" ? i.any : function(t, o, a, s, n, e) {
207
+ var r = t[o];
208
+ return i.instanceOf(r && "ownerDocument" in r ? r.ownerDocument.defaultView.Element : Element)(t, o, a, s, n, e);
209
+ }
210
+ }),
211
+ /**
212
+ * A `function` child can be used instead of a React element. This function is
213
+ * called with the current transition status (`'entering'`, `'entered'`,
214
+ * `'exiting'`, `'exited'`), which can be used to apply context
215
+ * specific props to a component.
216
+ *
217
+ * ```jsx
218
+ * <Transition in={this.state.in} timeout={150}>
219
+ * {state => (
220
+ * <MyComponent className={`fade fade-${state}`} />
221
+ * )}
222
+ * </Transition>
223
+ * ```
224
+ */
225
+ children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
226
+ /**
227
+ * Show the component; triggers the enter or exit states
228
+ */
229
+ in: i.bool,
230
+ /**
231
+ * By default the child component is mounted immediately along with
232
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
233
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
234
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
235
+ */
236
+ mountOnEnter: i.bool,
237
+ /**
238
+ * By default the child component stays mounted after it reaches the `'exited'` state.
239
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
240
+ */
241
+ unmountOnExit: i.bool,
242
+ /**
243
+ * By default the child component does not perform the enter transition when
244
+ * it first mounts, regardless of the value of `in`. If you want this
245
+ * behavior, set both `appear` and `in` to `true`.
246
+ *
247
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
248
+ * > only adds an additional enter transition. However, in the
249
+ * > `<CSSTransition>` component that first enter transition does result in
250
+ * > additional `.appear-*` classes, that way you can choose to style it
251
+ * > differently.
252
+ */
253
+ appear: i.bool,
254
+ /**
255
+ * Enable or disable enter transitions.
256
+ */
257
+ enter: i.bool,
258
+ /**
259
+ * Enable or disable exit transitions.
260
+ */
261
+ exit: i.bool,
262
+ /**
263
+ * The duration of the transition, in milliseconds.
264
+ * Required unless `addEndListener` is provided.
265
+ *
266
+ * You may specify a single timeout for all transitions:
267
+ *
268
+ * ```jsx
269
+ * timeout={500}
270
+ * ```
271
+ *
272
+ * or individually:
273
+ *
274
+ * ```jsx
275
+ * timeout={{
276
+ * appear: 500,
277
+ * enter: 300,
278
+ * exit: 500,
279
+ * }}
280
+ * ```
281
+ *
282
+ * - `appear` defaults to the value of `enter`
283
+ * - `enter` defaults to `0`
284
+ * - `exit` defaults to `0`
285
+ *
286
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
287
+ */
288
+ timeout: function(o) {
289
+ var a = z;
290
+ o.addEndListener || (a = a.isRequired);
291
+ for (var s = arguments.length, n = new Array(s > 1 ? s - 1 : 0), e = 1; e < s; e++)
292
+ n[e - 1] = arguments[e];
293
+ return a.apply(void 0, [o].concat(n));
294
+ },
295
+ /**
296
+ * Add a custom transition end trigger. Called with the transitioning
297
+ * DOM node and a `done` callback. Allows for more fine grained transition end
298
+ * logic. Timeouts are still used as a fallback if provided.
299
+ *
300
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
301
+ *
302
+ * ```jsx
303
+ * addEndListener={(node, done) => {
304
+ * // use the css transitionend event to mark the finish of a transition
305
+ * node.addEventListener('transitionend', done, false);
306
+ * }}
307
+ * ```
308
+ */
309
+ addEndListener: i.func,
310
+ /**
311
+ * Callback fired before the "entering" status is applied. An extra parameter
312
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
313
+ *
314
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
315
+ *
316
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
317
+ */
318
+ onEnter: i.func,
319
+ /**
320
+ * Callback fired after the "entering" status is applied. An extra parameter
321
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
322
+ *
323
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
324
+ *
325
+ * @type Function(node: HtmlElement, isAppearing: bool)
326
+ */
327
+ onEntering: i.func,
328
+ /**
329
+ * Callback fired after the "entered" status is applied. An extra parameter
330
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
331
+ *
332
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
333
+ *
334
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
335
+ */
336
+ onEntered: i.func,
337
+ /**
338
+ * Callback fired before the "exiting" status is applied.
339
+ *
340
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
341
+ *
342
+ * @type Function(node: HtmlElement) -> void
343
+ */
344
+ onExit: i.func,
345
+ /**
346
+ * Callback fired after the "exiting" status is applied.
347
+ *
348
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
349
+ *
350
+ * @type Function(node: HtmlElement) -> void
351
+ */
352
+ onExiting: i.func,
353
+ /**
354
+ * Callback fired after the "exited" status is applied.
355
+ *
356
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
357
+ *
358
+ * @type Function(node: HtmlElement) -> void
359
+ */
360
+ onExited: i.func
361
+ } : {};
362
+ function E() {
363
+ }
364
+ p.defaultProps = {
365
+ in: !1,
366
+ mountOnEnter: !1,
367
+ unmountOnExit: !1,
368
+ appear: !1,
369
+ enter: !0,
370
+ exit: !0,
371
+ onEnter: E,
372
+ onEntering: E,
373
+ onEntered: E,
374
+ onExit: E,
375
+ onExiting: E,
376
+ onExited: E
377
+ };
378
+ p.UNMOUNTED = h;
379
+ p.EXITED = d;
380
+ p.ENTERING = v;
381
+ p.ENTERED = m;
382
+ p.EXITING = y;
383
+ const ue = p, le = (t) => t.scrollTop;
384
+ function pe(t, o) {
385
+ var a, s;
386
+ const {
387
+ timeout: n,
388
+ easing: e,
389
+ style: r = {}
390
+ } = t;
391
+ return {
392
+ duration: (a = r.transitionDuration) != null ? a : typeof n == "number" ? n : n[o.mode] || 0,
393
+ easing: (s = r.transitionTimingFunction) != null ? s : typeof e == "object" ? e[o.mode] : e,
394
+ delay: r.transitionDelay
395
+ };
396
+ }
397
+ function K(t) {
398
+ return _("MuiPaper", t);
399
+ }
400
+ $("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"]);
401
+ const Q = ["className", "component", "elevation", "square", "variant"], Y = (t) => {
402
+ const {
403
+ square: o,
404
+ elevation: a,
405
+ variant: s,
406
+ classes: n
407
+ } = t, e = {
408
+ root: ["root", s, !o && "rounded", s === "elevation" && `elevation${a}`]
409
+ };
410
+ return U(e, K, n);
411
+ }, Z = q("div", {
412
+ name: "MuiPaper",
413
+ slot: "Root",
414
+ overridesResolver: (t, o) => {
415
+ const {
416
+ ownerState: a
417
+ } = t;
418
+ return [o.root, o[a.variant], !a.square && o.rounded, a.variant === "elevation" && o[`elevation${a.elevation}`]];
419
+ }
420
+ })(({
421
+ theme: t,
422
+ ownerState: o
423
+ }) => {
424
+ var a;
425
+ return T({
426
+ backgroundColor: (t.vars || t).palette.background.paper,
427
+ color: (t.vars || t).palette.text.primary,
428
+ transition: t.transitions.create("box-shadow")
429
+ }, !o.square && {
430
+ borderRadius: t.shape.borderRadius
431
+ }, o.variant === "outlined" && {
432
+ border: `1px solid ${(t.vars || t).palette.divider}`
433
+ }, o.variant === "elevation" && T({
434
+ boxShadow: (t.vars || t).shadows[o.elevation]
435
+ }, !t.vars && t.palette.mode === "dark" && {
436
+ backgroundImage: `linear-gradient(${R("#fff", D(o.elevation))}, ${R("#fff", D(o.elevation))})`
437
+ }, t.vars && {
438
+ backgroundImage: (a = t.vars.overlays) == null ? void 0 : a[o.elevation]
439
+ }));
440
+ }), M = /* @__PURE__ */ F.forwardRef(function(o, a) {
441
+ const s = w({
442
+ props: o,
443
+ name: "MuiPaper"
444
+ }), {
445
+ className: n,
446
+ component: e = "div",
447
+ elevation: r = 1,
448
+ square: u = !1,
449
+ variant: l = "elevation"
450
+ } = s, c = S(s, Q), f = T({}, s, {
451
+ component: e,
452
+ elevation: r,
453
+ square: u,
454
+ variant: l
455
+ }), x = Y(f);
456
+ return process.env.NODE_ENV !== "production" && G().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(`
457
+ `)), /* @__PURE__ */ A(Z, T({
458
+ as: e,
459
+ ownerState: f,
460
+ className: j(x.root, n),
461
+ ref: a
462
+ }, c));
463
+ });
464
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
465
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
466
+ // │ These PropTypes are generated from the TypeScript type definitions. │
467
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
468
+ // └─────────────────────────────────────────────────────────────────────┘
469
+ /**
470
+ * The content of the component.
471
+ */
472
+ children: i.node,
473
+ /**
474
+ * Override or extend the styles applied to the component.
475
+ */
476
+ classes: i.object,
477
+ /**
478
+ * @ignore
479
+ */
480
+ className: i.string,
481
+ /**
482
+ * The component used for the root node.
483
+ * Either a string to use a HTML element or a component.
484
+ */
485
+ component: i.elementType,
486
+ /**
487
+ * Shadow depth, corresponds to `dp` in the spec.
488
+ * It accepts values between 0 and 24 inclusive.
489
+ * @default 1
490
+ */
491
+ elevation: L(H, (t) => {
492
+ const {
493
+ elevation: o,
494
+ variant: a
495
+ } = t;
496
+ 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;
497
+ }),
498
+ /**
499
+ * If `true`, rounded corners are disabled.
500
+ * @default false
501
+ */
502
+ square: i.bool,
503
+ /**
504
+ * The system prop that allows defining system overrides as well as additional CSS styles.
505
+ */
506
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
507
+ /**
508
+ * The variant to use.
509
+ * @default 'elevation'
510
+ */
511
+ variant: i.oneOfType([i.oneOf(["elevation", "outlined"]), i.string])
512
+ });
513
+ const ce = M;
514
+ export {
515
+ ce as P,
516
+ ue as T,
517
+ se as c,
518
+ J as f,
519
+ pe as g,
520
+ H as i,
521
+ le as r
522
+ };