@cgi-learning-hub/ui 1.2.0-dev.1726218202 → 1.2.0-dev.1726476985

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 (129) hide show
  1. package/dist/Backdrop-B8-BL3jx.js +789 -0
  2. package/dist/Backdrop-CQM1mw_6.cjs +1 -0
  3. package/dist/Button-BzvFp4sx.cjs +1 -0
  4. package/dist/{Button-CiwMrz4f.js → Button-CvUAFzG_.js} +8 -7
  5. package/dist/ButtonBase-0-NuO2tj.cjs +75 -0
  6. package/dist/{ButtonBase-SLqKsMbv.js → ButtonBase-BMflDb9x.js} +81 -80
  7. package/dist/CircularProgress-DdMAzWVy.cjs +28 -0
  8. package/dist/{CircularProgress-CMyGy943.js → CircularProgress-Dmg3SNAP.js} +15 -14
  9. package/dist/{DatePicker-DwFLe3I1.cjs → DatePicker-BEtxyoTT.cjs} +15 -15
  10. package/dist/{DatePicker-C2NB6D2n.js → DatePicker-Bz8V-O3o.js} +54 -49
  11. package/dist/DefaultButton-C73SCGlE.cjs +1 -0
  12. package/dist/{DefaultButton-BoUBlnAR.js → DefaultButton-D0x7we4I.js} +13 -12
  13. package/dist/DefaultPropsProvider-5NdZnDS0.cjs +17 -0
  14. package/dist/{DefaultPropsProvider-DjhaxXa-.js → DefaultPropsProvider-CU--SVzB.js} +117 -127
  15. package/dist/IconButton-B7jxxXOK.cjs +2 -0
  16. package/dist/{IconButton-BJnGbprU.js → IconButton-DzYEBDbu.js} +15 -14
  17. package/dist/InputAdornment-CbLgi938.cjs +1 -0
  18. package/dist/{InputAdornment-PpcxpcaW.js → InputAdornment-x1WIM2Yz.js} +10 -9
  19. package/dist/{InputBase-WXNV7_fG.js → InputBase-C1BvXunK.js} +76 -74
  20. package/dist/InputBase-C_CFype-.cjs +3 -0
  21. package/dist/{Stack-B8WfhPQe.cjs → Stack-Bvr_N6-t.cjs} +1 -1
  22. package/dist/{Stack-r7RL43ez.js → Stack-CJLo9S4b.js} +2 -2
  23. package/dist/{Tabs-Bdj0BksM.js → Tabs-Cvnp3jpR.js} +13 -11
  24. package/dist/Tabs-wj4N9aH3.cjs +4 -0
  25. package/dist/{TextField-9ZYkEzxx.js → TextField-B-GxVtVu.js} +1741 -2515
  26. package/dist/TextField-Bf0iVvZT.cjs +12 -0
  27. package/dist/Tooltip-CIuc_nUD.cjs +100 -0
  28. package/dist/{Tooltip-DTbN1pOw.js → Tooltip-CzaHtHhc.js} +317 -312
  29. package/dist/TransitionGroupContext-DMJLhY9-.js +24 -0
  30. package/dist/TransitionGroupContext-DbXD5xqS.cjs +1 -0
  31. package/dist/{Typography-DY82MH5N.js → Typography-APp4bmiX.js} +13 -12
  32. package/dist/Typography-DEzPHYLs.cjs +1 -0
  33. package/dist/assets/styles.css +1 -1
  34. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  35. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  36. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  37. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  38. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  39. package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
  40. package/dist/components/DatePicker/index.cjs.js +1 -1
  41. package/dist/components/DatePicker/index.es.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  43. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  44. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  45. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +17 -16
  46. package/dist/components/DefaultButton/index.cjs.js +1 -1
  47. package/dist/components/DefaultButton/index.es.js +1 -1
  48. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  49. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  50. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  51. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  52. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  53. package/dist/components/FileList/FileListItem.es.js +5 -5
  54. package/dist/components/IconButton.stories.cjs.js +1 -1
  55. package/dist/components/IconButton.stories.es.js +2 -2
  56. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  57. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -3
  58. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  59. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  60. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  61. package/dist/components/PaperHeader/PaperHeader.stories.es.js +1 -1
  62. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  63. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  64. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  65. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  66. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  67. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  68. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  69. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  70. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  71. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  72. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  73. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  74. package/dist/components/TabList.stories.cjs.js +1 -1
  75. package/dist/components/TabList.stories.es.js +3 -3
  76. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  77. package/dist/components/TextInput/TextInput.es.js +1 -1
  78. package/dist/components/index.cjs.js +1 -1
  79. package/dist/components/index.es.js +115 -114
  80. package/dist/{createSvgIcon-BhmTVu_m.js → createSvgIcon-B7p9QbNy.js} +19 -18
  81. package/dist/{createSvgIcon-DlEk80Du.js → createSvgIcon-CdFwTtth.js} +14 -13
  82. package/dist/createSvgIcon-DJwoygjS.cjs +1 -0
  83. package/dist/createSvgIcon-VDwq_j-P.cjs +2 -0
  84. package/dist/{index-CRyIA2QM.js → index-C4eGfgCg.js} +1 -1
  85. package/dist/index-CMQY-kBc.js +45 -0
  86. package/dist/{index-7aduOqI8.cjs → index-D40qjF4v.cjs} +1 -1
  87. package/dist/index-D7Jwk3AM.cjs +1 -0
  88. package/dist/index.cjs.js +1 -1
  89. package/dist/index.es.js +77 -76
  90. package/dist/memoTheme-B2EWpIp3.cjs +1 -0
  91. package/dist/memoTheme-O-hJ9iBh.js +13 -0
  92. package/dist/refType-DFnOH04O.js +24 -0
  93. package/dist/refType-DdcYgSUO.cjs +1 -0
  94. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
  95. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  96. package/dist/{useEventCallback-BgMlqKLP.js → useEventCallback-BAQJJ3ye.js} +1 -1
  97. package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
  98. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  99. package/dist/useForkRef-C_4o__cU.js +15 -0
  100. package/dist/useTheme-CeUi--X1.cjs +1 -0
  101. package/dist/useTheme-DmvRg71t.js +88 -0
  102. package/dist/{useThemeProps-BYd-NHTG.cjs → useThemeProps-Bw-cwTu1.cjs} +1 -1
  103. package/dist/{useThemeProps-DD2tI2rB.js → useThemeProps-DE5uuT3t.js} +1 -1
  104. package/dist/useTimeout-COCrDKz-.cjs +1 -0
  105. package/dist/useTimeout-CcRdgCDK.js +42 -0
  106. package/package.json +1 -1
  107. package/dist/Button-CB4yAw-S.cjs +0 -1
  108. package/dist/ButtonBase-D_43d34y.cjs +0 -75
  109. package/dist/CircularProgress-DG72WOS6.cjs +0 -28
  110. package/dist/DefaultButton-DuBPX2t6.cjs +0 -1
  111. package/dist/DefaultPropsProvider-DKOXnH6X.cjs +0 -17
  112. package/dist/IconButton-BwalKkMi.cjs +0 -2
  113. package/dist/InputAdornment-JWlblqnc.cjs +0 -1
  114. package/dist/InputBase-OeRcp1ZZ.cjs +0 -3
  115. package/dist/Tabs-C27chebV.cjs +0 -4
  116. package/dist/TextField-4SmLYYTW.cjs +0 -12
  117. package/dist/Tooltip-BHgQjBJ3.cjs +0 -100
  118. package/dist/TransitionGroupContext-B5aSBz0G.js +0 -64
  119. package/dist/TransitionGroupContext-gQFtuZSh.cjs +0 -1
  120. package/dist/Typography-Dtz_Yu7Z.cjs +0 -1
  121. package/dist/createSvgIcon-D8PyZepp.cjs +0 -1
  122. package/dist/createSvgIcon-DEt1ypbw.cjs +0 -2
  123. package/dist/refType-G0JBQGmt.js +0 -29
  124. package/dist/refType-WMhKyzag.cjs +0 -1
  125. package/dist/useEventCallback-CrCf96iG.cjs +0 -1
  126. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  127. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  128. package/dist/useTheme-Cdc-CPjN.cjs +0 -1
  129. package/dist/useTheme-DDW1zTPK.js +0 -128
@@ -0,0 +1,789 @@
1
+ import * as j from "react";
2
+ import I from "react";
3
+ import { P as e, I as ee, J as te, L as ne } from "./identifier-nbk7LEJv.js";
4
+ import { r as oe, m as ie, a as re, u as se } from "./useTheme-DmvRg71t.js";
5
+ import { u as V } from "./useForkRef-C_4o__cU.js";
6
+ import { jsx as _ } from "react/jsx-runtime";
7
+ import { s as ae, u as pe, c as le } from "./DefaultPropsProvider-CU--SVzB.js";
8
+ import { c as $ } from "./chainPropTypes-D9lkm76m.js";
9
+ import { _ as ce, a as ue, T as W } from "./TransitionGroupContext-DMJLhY9-.js";
10
+ import U from "react-dom";
11
+ function de(r) {
12
+ const {
13
+ prototype: p = {}
14
+ } = r;
15
+ return !!p.isReactComponent;
16
+ }
17
+ function X(r, p, s, i, n) {
18
+ const t = r[p], o = n || p;
19
+ if (t == null || // When server-side rendering React doesn't warn either.
20
+ // This is not an accurate check for SSR.
21
+ // This is only in place for Emotion compat.
22
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
23
+ typeof window > "u")
24
+ return null;
25
+ let a;
26
+ const l = t.type;
27
+ return typeof l == "function" && !de(l) && (a = "Did you accidentally use a plain function component for an element instead?"), a !== void 0 ? new Error(`Invalid ${i} \`${o}\` supplied to \`${s}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
28
+ }
29
+ const H = $(e.element, X);
30
+ H.isRequired = $(e.element.isRequired, X);
31
+ function fe(r) {
32
+ return !r || !/* @__PURE__ */ j.isValidElement(r) ? null : r.props.propertyIsEnumerable("ref") ? r.props.ref : (
33
+ // @ts-expect-error element.ref is not included in the ReactElement type
34
+ // We cannot check for it, but isValidElement is true at this point
35
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189
36
+ r.ref
37
+ );
38
+ }
39
+ const q = {
40
+ disabled: !1
41
+ };
42
+ var me = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
43
+ enter: e.number,
44
+ exit: e.number,
45
+ appear: e.number
46
+ }).isRequired]) : null, Le = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
47
+ enter: e.string,
48
+ exit: e.string,
49
+ active: e.string
50
+ }), e.shape({
51
+ enter: e.string,
52
+ enterDone: e.string,
53
+ enterActive: e.string,
54
+ exit: e.string,
55
+ exitDone: e.string,
56
+ exitActive: e.string
57
+ })]) : null, Ee = function(p) {
58
+ return p.scrollTop;
59
+ }, M = "unmounted", S = "exited", C = "entering", k = "entered", B = "exiting", x = /* @__PURE__ */ function(r) {
60
+ ce(p, r);
61
+ function p(i, n) {
62
+ var t;
63
+ t = r.call(this, i, n) || this;
64
+ var o = n, a = o && !o.isMounting ? i.enter : i.appear, l;
65
+ return t.appearStatus = null, i.in ? a ? (l = S, t.appearStatus = C) : l = k : i.unmountOnExit || i.mountOnEnter ? l = M : l = S, t.state = {
66
+ status: l
67
+ }, t.nextCallback = null, t;
68
+ }
69
+ p.getDerivedStateFromProps = function(n, t) {
70
+ var o = n.in;
71
+ return o && t.status === M ? {
72
+ status: S
73
+ } : null;
74
+ };
75
+ var s = p.prototype;
76
+ return s.componentDidMount = function() {
77
+ this.updateStatus(!0, this.appearStatus);
78
+ }, s.componentDidUpdate = function(n) {
79
+ var t = null;
80
+ if (n !== this.props) {
81
+ var o = this.state.status;
82
+ this.props.in ? o !== C && o !== k && (t = C) : (o === C || o === k) && (t = B);
83
+ }
84
+ this.updateStatus(!1, t);
85
+ }, s.componentWillUnmount = function() {
86
+ this.cancelNextCallback();
87
+ }, s.getTimeouts = function() {
88
+ var n = this.props.timeout, t, o, a;
89
+ return t = o = a = n, n != null && typeof n != "number" && (t = n.exit, o = n.enter, a = n.appear !== void 0 ? n.appear : o), {
90
+ exit: t,
91
+ enter: o,
92
+ appear: a
93
+ };
94
+ }, s.updateStatus = function(n, t) {
95
+ if (n === void 0 && (n = !1), t !== null)
96
+ if (this.cancelNextCallback(), t === C) {
97
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
98
+ var o = this.props.nodeRef ? this.props.nodeRef.current : U.findDOMNode(this);
99
+ o && Ee(o);
100
+ }
101
+ this.performEnter(n);
102
+ } else
103
+ this.performExit();
104
+ else this.props.unmountOnExit && this.state.status === S && this.setState({
105
+ status: M
106
+ });
107
+ }, s.performEnter = function(n) {
108
+ var t = this, o = this.props.enter, a = this.context ? this.context.isMounting : n, l = this.props.nodeRef ? [a] : [U.findDOMNode(this), a], u = l[0], d = l[1], b = this.getTimeouts(), y = a ? b.appear : b.enter;
109
+ if (!n && !o || q.disabled) {
110
+ this.safeSetState({
111
+ status: k
112
+ }, function() {
113
+ t.props.onEntered(u);
114
+ });
115
+ return;
116
+ }
117
+ this.props.onEnter(u, d), this.safeSetState({
118
+ status: C
119
+ }, function() {
120
+ t.props.onEntering(u, d), t.onTransitionEnd(y, function() {
121
+ t.safeSetState({
122
+ status: k
123
+ }, function() {
124
+ t.props.onEntered(u, d);
125
+ });
126
+ });
127
+ });
128
+ }, s.performExit = function() {
129
+ var n = this, t = this.props.exit, o = this.getTimeouts(), a = this.props.nodeRef ? void 0 : U.findDOMNode(this);
130
+ if (!t || q.disabled) {
131
+ this.safeSetState({
132
+ status: S
133
+ }, function() {
134
+ n.props.onExited(a);
135
+ });
136
+ return;
137
+ }
138
+ this.props.onExit(a), this.safeSetState({
139
+ status: B
140
+ }, function() {
141
+ n.props.onExiting(a), n.onTransitionEnd(o.exit, function() {
142
+ n.safeSetState({
143
+ status: S
144
+ }, function() {
145
+ n.props.onExited(a);
146
+ });
147
+ });
148
+ });
149
+ }, s.cancelNextCallback = function() {
150
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
151
+ }, s.safeSetState = function(n, t) {
152
+ t = this.setNextCallback(t), this.setState(n, t);
153
+ }, s.setNextCallback = function(n) {
154
+ var t = this, o = !0;
155
+ return this.nextCallback = function(a) {
156
+ o && (o = !1, t.nextCallback = null, n(a));
157
+ }, this.nextCallback.cancel = function() {
158
+ o = !1;
159
+ }, this.nextCallback;
160
+ }, s.onTransitionEnd = function(n, t) {
161
+ this.setNextCallback(t);
162
+ var o = this.props.nodeRef ? this.props.nodeRef.current : U.findDOMNode(this), a = n == null && !this.props.addEndListener;
163
+ if (!o || a) {
164
+ setTimeout(this.nextCallback, 0);
165
+ return;
166
+ }
167
+ if (this.props.addEndListener) {
168
+ var l = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback], u = l[0], d = l[1];
169
+ this.props.addEndListener(u, d);
170
+ }
171
+ n != null && setTimeout(this.nextCallback, n);
172
+ }, s.render = function() {
173
+ var n = this.state.status;
174
+ if (n === M)
175
+ return null;
176
+ var t = this.props, o = t.children;
177
+ 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;
178
+ var a = ue(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
179
+ return (
180
+ // allows for nested Transitions
181
+ /* @__PURE__ */ I.createElement(W.Provider, {
182
+ value: null
183
+ }, typeof o == "function" ? o(n, a) : I.cloneElement(I.Children.only(o), a))
184
+ );
185
+ }, p;
186
+ }(I.Component);
187
+ x.contextType = W;
188
+ x.propTypes = process.env.NODE_ENV !== "production" ? {
189
+ /**
190
+ * A React reference to DOM element that need to transition:
191
+ * https://stackoverflow.com/a/51127130/4671932
192
+ *
193
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
194
+ * (e.g. `onEnter`) because user already has direct access to the node.
195
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
196
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
197
+ * (see
198
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
199
+ */
200
+ nodeRef: e.shape({
201
+ current: typeof Element > "u" ? e.any : function(r, p, s, i, n, t) {
202
+ var o = r[p];
203
+ return e.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(r, p, s, i, n, t);
204
+ }
205
+ }),
206
+ /**
207
+ * A `function` child can be used instead of a React element. This function is
208
+ * called with the current transition status (`'entering'`, `'entered'`,
209
+ * `'exiting'`, `'exited'`), which can be used to apply context
210
+ * specific props to a component.
211
+ *
212
+ * ```jsx
213
+ * <Transition in={this.state.in} timeout={150}>
214
+ * {state => (
215
+ * <MyComponent className={`fade fade-${state}`} />
216
+ * )}
217
+ * </Transition>
218
+ * ```
219
+ */
220
+ children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
221
+ /**
222
+ * Show the component; triggers the enter or exit states
223
+ */
224
+ in: e.bool,
225
+ /**
226
+ * By default the child component is mounted immediately along with
227
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
228
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
229
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
230
+ */
231
+ mountOnEnter: e.bool,
232
+ /**
233
+ * By default the child component stays mounted after it reaches the `'exited'` state.
234
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
235
+ */
236
+ unmountOnExit: e.bool,
237
+ /**
238
+ * By default the child component does not perform the enter transition when
239
+ * it first mounts, regardless of the value of `in`. If you want this
240
+ * behavior, set both `appear` and `in` to `true`.
241
+ *
242
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
243
+ * > only adds an additional enter transition. However, in the
244
+ * > `<CSSTransition>` component that first enter transition does result in
245
+ * > additional `.appear-*` classes, that way you can choose to style it
246
+ * > differently.
247
+ */
248
+ appear: e.bool,
249
+ /**
250
+ * Enable or disable enter transitions.
251
+ */
252
+ enter: e.bool,
253
+ /**
254
+ * Enable or disable exit transitions.
255
+ */
256
+ exit: e.bool,
257
+ /**
258
+ * The duration of the transition, in milliseconds.
259
+ * Required unless `addEndListener` is provided.
260
+ *
261
+ * You may specify a single timeout for all transitions:
262
+ *
263
+ * ```jsx
264
+ * timeout={500}
265
+ * ```
266
+ *
267
+ * or individually:
268
+ *
269
+ * ```jsx
270
+ * timeout={{
271
+ * appear: 500,
272
+ * enter: 300,
273
+ * exit: 500,
274
+ * }}
275
+ * ```
276
+ *
277
+ * - `appear` defaults to the value of `enter`
278
+ * - `enter` defaults to `0`
279
+ * - `exit` defaults to `0`
280
+ *
281
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
282
+ */
283
+ timeout: function(p) {
284
+ var s = me;
285
+ p.addEndListener || (s = s.isRequired);
286
+ for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
287
+ n[t - 1] = arguments[t];
288
+ return s.apply(void 0, [p].concat(n));
289
+ },
290
+ /**
291
+ * Add a custom transition end trigger. Called with the transitioning
292
+ * DOM node and a `done` callback. Allows for more fine grained transition end
293
+ * logic. Timeouts are still used as a fallback if provided.
294
+ *
295
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
296
+ *
297
+ * ```jsx
298
+ * addEndListener={(node, done) => {
299
+ * // use the css transitionend event to mark the finish of a transition
300
+ * node.addEventListener('transitionend', done, false);
301
+ * }}
302
+ * ```
303
+ */
304
+ addEndListener: e.func,
305
+ /**
306
+ * Callback fired before the "entering" status is applied. An extra parameter
307
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
308
+ *
309
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
310
+ *
311
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
312
+ */
313
+ onEnter: e.func,
314
+ /**
315
+ * Callback fired after the "entering" status is applied. An extra parameter
316
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
317
+ *
318
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
319
+ *
320
+ * @type Function(node: HtmlElement, isAppearing: bool)
321
+ */
322
+ onEntering: e.func,
323
+ /**
324
+ * Callback fired after the "entered" status is applied. An extra parameter
325
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
326
+ *
327
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
328
+ *
329
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
330
+ */
331
+ onEntered: e.func,
332
+ /**
333
+ * Callback fired before the "exiting" status is applied.
334
+ *
335
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
336
+ *
337
+ * @type Function(node: HtmlElement) -> void
338
+ */
339
+ onExit: e.func,
340
+ /**
341
+ * Callback fired after the "exiting" status is applied.
342
+ *
343
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
344
+ *
345
+ * @type Function(node: HtmlElement) -> void
346
+ */
347
+ onExiting: e.func,
348
+ /**
349
+ * Callback fired after the "exited" status is applied.
350
+ *
351
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
352
+ *
353
+ * @type Function(node: HtmlElement) -> void
354
+ */
355
+ onExited: e.func
356
+ } : {};
357
+ function P() {
358
+ }
359
+ x.defaultProps = {
360
+ in: !1,
361
+ mountOnEnter: !1,
362
+ unmountOnExit: !1,
363
+ appear: !1,
364
+ enter: !0,
365
+ exit: !0,
366
+ onEnter: P,
367
+ onEntering: P,
368
+ onEntered: P,
369
+ onExit: P,
370
+ onExiting: P,
371
+ onExited: P
372
+ };
373
+ x.UNMOUNTED = M;
374
+ x.EXITED = S;
375
+ x.ENTERING = C;
376
+ x.ENTERED = k;
377
+ x.EXITING = B;
378
+ function A(r, p) {
379
+ const {
380
+ className: s,
381
+ elementType: i,
382
+ ownerState: n,
383
+ externalForwardedProps: t,
384
+ getSlotOwnerState: o,
385
+ internalForwardedProps: a,
386
+ ...l
387
+ } = p, {
388
+ component: u,
389
+ slots: d = {
390
+ [r]: void 0
391
+ },
392
+ slotProps: b = {
393
+ [r]: void 0
394
+ },
395
+ ...y
396
+ } = t, T = d[r] || i, v = oe(b[r], n), {
397
+ props: {
398
+ component: R,
399
+ ...m
400
+ },
401
+ internalRef: g
402
+ } = ie({
403
+ className: s,
404
+ ...l,
405
+ externalForwardedProps: r === "root" ? y : void 0,
406
+ externalSlotProps: v
407
+ }), D = V(g, v == null ? void 0 : v.ref, p.ref), N = o ? o(m) : {}, E = {
408
+ ...n,
409
+ ...N
410
+ }, O = r === "root" ? R || u : R, f = re(T, {
411
+ ...r === "root" && !u && !d[r] && a,
412
+ ...r !== "root" && !d[r] && a,
413
+ ...m,
414
+ ...O && {
415
+ as: O
416
+ },
417
+ ref: D
418
+ }, E);
419
+ return Object.keys(N).forEach((w) => {
420
+ delete f[w];
421
+ }), [T, f];
422
+ }
423
+ const he = (r) => r.scrollTop;
424
+ function G(r, p) {
425
+ const {
426
+ timeout: s,
427
+ easing: i,
428
+ style: n = {}
429
+ } = r;
430
+ return {
431
+ duration: n.transitionDuration ?? (typeof s == "number" ? s : s[p.mode] || 0),
432
+ easing: n.transitionTimingFunction ?? (typeof i == "object" ? i[p.mode] : i),
433
+ delay: n.transitionDelay
434
+ };
435
+ }
436
+ const xe = {
437
+ entering: {
438
+ opacity: 1
439
+ },
440
+ entered: {
441
+ opacity: 1
442
+ }
443
+ }, z = /* @__PURE__ */ j.forwardRef(function(p, s) {
444
+ const i = se(), n = {
445
+ enter: i.transitions.duration.enteringScreen,
446
+ exit: i.transitions.duration.leavingScreen
447
+ }, {
448
+ addEndListener: t,
449
+ appear: o = !0,
450
+ children: a,
451
+ easing: l,
452
+ in: u,
453
+ onEnter: d,
454
+ onEntered: b,
455
+ onEntering: y,
456
+ onExit: T,
457
+ onExited: v,
458
+ onExiting: R,
459
+ style: m,
460
+ timeout: g = n,
461
+ // eslint-disable-next-line react/prop-types
462
+ TransitionComponent: D = x,
463
+ ...N
464
+ } = p, E = j.useRef(null), O = V(E, fe(a), s), f = (c) => (h) => {
465
+ if (c) {
466
+ const L = E.current;
467
+ h === void 0 ? c(L) : c(L, h);
468
+ }
469
+ }, w = f(y), F = f((c, h) => {
470
+ he(c);
471
+ const L = G({
472
+ style: m,
473
+ timeout: g,
474
+ easing: l
475
+ }, {
476
+ mode: "enter"
477
+ });
478
+ c.style.webkitTransition = i.transitions.create("opacity", L), c.style.transition = i.transitions.create("opacity", L), d && d(c, h);
479
+ }), K = f(b), Q = f(R), Y = f((c) => {
480
+ const h = G({
481
+ style: m,
482
+ timeout: g,
483
+ easing: l
484
+ }, {
485
+ mode: "exit"
486
+ });
487
+ c.style.webkitTransition = i.transitions.create("opacity", h), c.style.transition = i.transitions.create("opacity", h), T && T(c);
488
+ }), Z = f(v);
489
+ return /* @__PURE__ */ _(D, {
490
+ appear: o,
491
+ in: u,
492
+ nodeRef: E,
493
+ onEnter: F,
494
+ onEntered: K,
495
+ onEntering: w,
496
+ onExit: Y,
497
+ onExited: Z,
498
+ onExiting: Q,
499
+ addEndListener: (c) => {
500
+ t && t(E.current, c);
501
+ },
502
+ timeout: g,
503
+ ...N,
504
+ children: (c, h) => /* @__PURE__ */ j.cloneElement(a, {
505
+ style: {
506
+ opacity: 0,
507
+ visibility: c === "exited" && !u ? "hidden" : void 0,
508
+ ...xe[c],
509
+ ...m,
510
+ ...a.props.style
511
+ },
512
+ ref: O,
513
+ ...h
514
+ })
515
+ });
516
+ });
517
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
518
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
519
+ // │ These PropTypes are generated from the TypeScript type definitions. │
520
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
521
+ // └─────────────────────────────────────────────────────────────────────┘
522
+ /**
523
+ * Add a custom transition end trigger. Called with the transitioning DOM
524
+ * node and a done callback. Allows for more fine grained transition end
525
+ * logic. Note: Timeouts are still used as a fallback if provided.
526
+ */
527
+ addEndListener: e.func,
528
+ /**
529
+ * Perform the enter transition when it first mounts if `in` is also `true`.
530
+ * Set this to `false` to disable this behavior.
531
+ * @default true
532
+ */
533
+ appear: e.bool,
534
+ /**
535
+ * A single child content element.
536
+ */
537
+ children: H.isRequired,
538
+ /**
539
+ * The transition timing function.
540
+ * You may specify a single easing or a object containing enter and exit values.
541
+ */
542
+ easing: e.oneOfType([e.shape({
543
+ enter: e.string,
544
+ exit: e.string
545
+ }), e.string]),
546
+ /**
547
+ * If `true`, the component will transition in.
548
+ */
549
+ in: e.bool,
550
+ /**
551
+ * @ignore
552
+ */
553
+ onEnter: e.func,
554
+ /**
555
+ * @ignore
556
+ */
557
+ onEntered: e.func,
558
+ /**
559
+ * @ignore
560
+ */
561
+ onEntering: e.func,
562
+ /**
563
+ * @ignore
564
+ */
565
+ onExit: e.func,
566
+ /**
567
+ * @ignore
568
+ */
569
+ onExited: e.func,
570
+ /**
571
+ * @ignore
572
+ */
573
+ onExiting: e.func,
574
+ /**
575
+ * @ignore
576
+ */
577
+ style: e.object,
578
+ /**
579
+ * The duration for the transition, in milliseconds.
580
+ * You may specify a single timeout for all transitions, or individually with an object.
581
+ * @default {
582
+ * enter: theme.transitions.duration.enteringScreen,
583
+ * exit: theme.transitions.duration.leavingScreen,
584
+ * }
585
+ */
586
+ timeout: e.oneOfType([e.number, e.shape({
587
+ appear: e.number,
588
+ enter: e.number,
589
+ exit: e.number
590
+ })])
591
+ });
592
+ function be(r) {
593
+ return ee("MuiBackdrop", r);
594
+ }
595
+ const ve = te("MuiBackdrop", ["root", "invisible"]), Me = ve, ge = (r) => {
596
+ const {
597
+ classes: p,
598
+ invisible: s
599
+ } = r;
600
+ return le({
601
+ root: ["root", s && "invisible"]
602
+ }, be, p);
603
+ }, ye = ae("div", {
604
+ name: "MuiBackdrop",
605
+ slot: "Root",
606
+ overridesResolver: (r, p) => {
607
+ const {
608
+ ownerState: s
609
+ } = r;
610
+ return [p.root, s.invisible && p.invisible];
611
+ }
612
+ })({
613
+ position: "fixed",
614
+ display: "flex",
615
+ alignItems: "center",
616
+ justifyContent: "center",
617
+ right: 0,
618
+ bottom: 0,
619
+ top: 0,
620
+ left: 0,
621
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
622
+ WebkitTapHighlightColor: "transparent",
623
+ variants: [{
624
+ props: {
625
+ invisible: !0
626
+ },
627
+ style: {
628
+ backgroundColor: "transparent"
629
+ }
630
+ }]
631
+ }), J = /* @__PURE__ */ j.forwardRef(function(p, s) {
632
+ const i = pe({
633
+ props: p,
634
+ name: "MuiBackdrop"
635
+ }), {
636
+ children: n,
637
+ className: t,
638
+ component: o = "div",
639
+ invisible: a = !1,
640
+ open: l,
641
+ components: u = {},
642
+ componentsProps: d = {},
643
+ slotProps: b = {},
644
+ slots: y = {},
645
+ TransitionComponent: T,
646
+ transitionDuration: v,
647
+ ...R
648
+ } = i, m = {
649
+ ...i,
650
+ component: o,
651
+ invisible: a
652
+ }, g = ge(m), D = {
653
+ transition: T,
654
+ root: u.Root,
655
+ ...y
656
+ }, N = {
657
+ ...d,
658
+ ...b
659
+ }, E = {
660
+ slots: D,
661
+ slotProps: N
662
+ }, [O, f] = A("root", {
663
+ elementType: ye,
664
+ externalForwardedProps: E,
665
+ className: ne(g.root, t),
666
+ ownerState: m
667
+ }), [w, F] = A("transition", {
668
+ elementType: z,
669
+ externalForwardedProps: E,
670
+ ownerState: m
671
+ });
672
+ return delete F.ownerState, /* @__PURE__ */ _(w, {
673
+ in: l,
674
+ timeout: v,
675
+ ...R,
676
+ ...F,
677
+ children: /* @__PURE__ */ _(O, {
678
+ "aria-hidden": !0,
679
+ ...f,
680
+ classes: g,
681
+ ref: s,
682
+ children: n
683
+ })
684
+ });
685
+ });
686
+ process.env.NODE_ENV !== "production" && (J.propTypes = {
687
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
688
+ // │ These PropTypes are generated from the TypeScript type definitions. │
689
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
690
+ // └─────────────────────────────────────────────────────────────────────┘
691
+ /**
692
+ * The content of the component.
693
+ */
694
+ children: e.node,
695
+ /**
696
+ * Override or extend the styles applied to the component.
697
+ */
698
+ classes: e.object,
699
+ /**
700
+ * @ignore
701
+ */
702
+ className: e.string,
703
+ /**
704
+ * The component used for the root node.
705
+ * Either a string to use a HTML element or a component.
706
+ */
707
+ component: e.elementType,
708
+ /**
709
+ * The components used for each slot inside.
710
+ *
711
+ * @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
712
+ *
713
+ * @default {}
714
+ */
715
+ components: e.shape({
716
+ Root: e.elementType
717
+ }),
718
+ /**
719
+ * The extra props for the slot components.
720
+ * You can override the existing props or add new ones.
721
+ *
722
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
723
+ *
724
+ * @default {}
725
+ */
726
+ componentsProps: e.shape({
727
+ root: e.object
728
+ }),
729
+ /**
730
+ * If `true`, the backdrop is invisible.
731
+ * It can be used when rendering a popover or a custom select component.
732
+ * @default false
733
+ */
734
+ invisible: e.bool,
735
+ /**
736
+ * If `true`, the component is shown.
737
+ */
738
+ open: e.bool.isRequired,
739
+ /**
740
+ * The props used for each slot inside.
741
+ * @default {}
742
+ */
743
+ slotProps: e.shape({
744
+ root: e.oneOfType([e.func, e.object]),
745
+ transition: e.oneOfType([e.func, e.object])
746
+ }),
747
+ /**
748
+ * The components used for each slot inside.
749
+ * @default {}
750
+ */
751
+ slots: e.shape({
752
+ root: e.elementType,
753
+ transition: e.elementType
754
+ }),
755
+ /**
756
+ * The system prop that allows defining system overrides as well as additional CSS styles.
757
+ */
758
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
759
+ /**
760
+ * The component used for the transition.
761
+ * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
762
+ * @default Fade
763
+ */
764
+ TransitionComponent: e.elementType,
765
+ /**
766
+ * The duration for the transition, in milliseconds.
767
+ * You may specify a single timeout for all transitions, or individually with an object.
768
+ */
769
+ transitionDuration: e.oneOfType([e.number, e.shape({
770
+ appear: e.number,
771
+ enter: e.number,
772
+ exit: e.number
773
+ })])
774
+ });
775
+ const je = J;
776
+ export {
777
+ je as B,
778
+ z as F,
779
+ x as T,
780
+ fe as a,
781
+ Me as b,
782
+ G as c,
783
+ Le as d,
784
+ H as e,
785
+ Ee as f,
786
+ be as g,
787
+ he as r,
788
+ A as u
789
+ };