@pismo/marola 2.1.64 → 2.1.65
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.
- package/dist/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +335 -320
- package/dist/components/InputSearch/InputSearch.d.ts +31 -31
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- package/dist/useTimeout-DxF9kiZL.js +0 -36
|
@@ -1,131 +1,178 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import '../../assets/Snackbar.css';var $ = Object.defineProperty;
|
|
2
|
+
var Z = (a, s, i) => s in a ? $(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
|
|
3
|
+
var D = (a, s, i) => Z(a, typeof s != "symbol" ? s + "" : s, i);
|
|
4
|
+
import { jsx as h, jsxs as J } from "react/jsx-runtime";
|
|
5
|
+
import * as w from "react";
|
|
6
|
+
import S, { useState as Q, useRef as ee } from "react";
|
|
7
|
+
import { c as C } from "../../clsx-OuTLNxxd.js";
|
|
8
|
+
import { Icon as te } from "../Icon/Icon.js";
|
|
9
|
+
import { Text as ne } from "../Typography/Typography.js";
|
|
10
|
+
import { g as re, a as oe, e as q, b as B, c as se, d as ie, P as t } from "../../ClassNameConfigurator-CVRWfyIa.js";
|
|
11
|
+
import { u as F } from "../../useEventCallback-BAQJJ3ye.js";
|
|
12
|
+
import { C as G } from "../../ClickAwayListener-BnYMO5Ki.js";
|
|
13
|
+
import { R as P } from "../../index-ew-96uBP.js";
|
|
14
|
+
const W = {};
|
|
15
|
+
function ae(a, s) {
|
|
16
|
+
const i = w.useRef(W);
|
|
17
|
+
return i.current === W && (i.current = a(s)), i;
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
function
|
|
19
|
+
const ue = [];
|
|
20
|
+
function ce(a) {
|
|
21
|
+
w.useEffect(a, ue);
|
|
22
|
+
}
|
|
23
|
+
class I {
|
|
24
|
+
constructor() {
|
|
25
|
+
D(this, "currentId", null);
|
|
26
|
+
D(this, "clear", () => {
|
|
27
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
28
|
+
});
|
|
29
|
+
D(this, "disposeEffect", () => this.clear);
|
|
30
|
+
}
|
|
31
|
+
static create() {
|
|
32
|
+
return new I();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
36
|
+
*/
|
|
37
|
+
start(s, i) {
|
|
38
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
39
|
+
this.currentId = null, i();
|
|
40
|
+
}, s);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function le() {
|
|
44
|
+
const a = ae(I.create).current;
|
|
45
|
+
return ce(a.disposeEffect), a;
|
|
46
|
+
}
|
|
47
|
+
const V = "Snackbar";
|
|
48
|
+
function de(a) {
|
|
49
|
+
return re(V, a);
|
|
50
|
+
}
|
|
51
|
+
oe(V, ["root"]);
|
|
52
|
+
function fe(a = {}) {
|
|
18
53
|
const {
|
|
19
54
|
autoHideDuration: s = null,
|
|
20
55
|
disableWindowBlurListener: i = !1,
|
|
21
56
|
onClose: r,
|
|
22
|
-
open:
|
|
57
|
+
open: n,
|
|
23
58
|
resumeHideDuration: e
|
|
24
|
-
} =
|
|
25
|
-
|
|
26
|
-
if (!
|
|
59
|
+
} = a, o = le();
|
|
60
|
+
w.useEffect(() => {
|
|
61
|
+
if (!n)
|
|
27
62
|
return;
|
|
28
63
|
function c(l) {
|
|
29
|
-
l.defaultPrevented ||
|
|
64
|
+
l.defaultPrevented || l.key === "Escape" && (r == null || r(l, "escapeKeyDown"));
|
|
30
65
|
}
|
|
31
66
|
return document.addEventListener("keydown", c), () => {
|
|
32
67
|
document.removeEventListener("keydown", c);
|
|
33
68
|
};
|
|
34
|
-
}, [
|
|
35
|
-
const
|
|
69
|
+
}, [n, r]);
|
|
70
|
+
const u = F((c, l) => {
|
|
36
71
|
r == null || r(c, l);
|
|
37
|
-
}), d =
|
|
72
|
+
}), d = F((c) => {
|
|
38
73
|
!r || c == null || o.start(c, () => {
|
|
39
|
-
|
|
74
|
+
u(null, "timeout");
|
|
40
75
|
});
|
|
41
76
|
});
|
|
42
|
-
|
|
43
|
-
const
|
|
77
|
+
w.useEffect(() => (n && d(s), o.clear), [n, s, d, o]);
|
|
78
|
+
const E = (c) => {
|
|
44
79
|
r == null || r(c, "clickaway");
|
|
45
|
-
}, p = o.clear,
|
|
80
|
+
}, p = o.clear, m = w.useCallback(() => {
|
|
46
81
|
s != null && d(e ?? s * 0.5);
|
|
47
82
|
}, [s, e, d]), b = (c) => (l) => {
|
|
48
83
|
const f = c.onBlur;
|
|
49
|
-
f == null || f(l),
|
|
50
|
-
},
|
|
84
|
+
f == null || f(l), m();
|
|
85
|
+
}, N = (c) => (l) => {
|
|
51
86
|
const f = c.onFocus;
|
|
52
87
|
f == null || f(l), p();
|
|
53
|
-
},
|
|
88
|
+
}, v = (c) => (l) => {
|
|
54
89
|
const f = c.onMouseEnter;
|
|
55
90
|
f == null || f(l), p();
|
|
56
|
-
},
|
|
91
|
+
}, _ = (c) => (l) => {
|
|
57
92
|
const f = c.onMouseLeave;
|
|
58
|
-
f == null || f(l),
|
|
93
|
+
f == null || f(l), m();
|
|
59
94
|
};
|
|
60
|
-
return
|
|
61
|
-
if (!i &&
|
|
62
|
-
return window.addEventListener("focus",
|
|
63
|
-
window.removeEventListener("focus",
|
|
95
|
+
return w.useEffect(() => {
|
|
96
|
+
if (!i && n)
|
|
97
|
+
return window.addEventListener("focus", m), window.addEventListener("blur", p), () => {
|
|
98
|
+
window.removeEventListener("focus", m), window.removeEventListener("blur", p);
|
|
64
99
|
};
|
|
65
|
-
}, [i,
|
|
100
|
+
}, [i, n, m, p]), {
|
|
66
101
|
getRootProps: (c = {}) => {
|
|
67
|
-
const l =
|
|
68
|
-
|
|
102
|
+
const l = {
|
|
103
|
+
...q(a),
|
|
104
|
+
...q(c)
|
|
105
|
+
};
|
|
106
|
+
return {
|
|
69
107
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
70
108
|
// See https://github.com/mui/material-ui/issues/29080
|
|
71
|
-
role: "presentation"
|
|
72
|
-
|
|
109
|
+
role: "presentation",
|
|
110
|
+
...c,
|
|
111
|
+
...l,
|
|
73
112
|
onBlur: b(l),
|
|
74
|
-
onFocus:
|
|
75
|
-
onMouseEnter:
|
|
76
|
-
onMouseLeave:
|
|
77
|
-
}
|
|
113
|
+
onFocus: N(l),
|
|
114
|
+
onMouseEnter: v(l),
|
|
115
|
+
onMouseLeave: _(l)
|
|
116
|
+
};
|
|
78
117
|
},
|
|
79
|
-
onClickAway:
|
|
118
|
+
onClickAway: E
|
|
80
119
|
};
|
|
81
120
|
}
|
|
82
|
-
const
|
|
121
|
+
const pe = () => se({
|
|
83
122
|
root: ["root"]
|
|
84
|
-
},
|
|
123
|
+
}, ie(de)), X = /* @__PURE__ */ w.forwardRef(function(s, i) {
|
|
85
124
|
const {
|
|
86
125
|
autoHideDuration: r = null,
|
|
87
|
-
children:
|
|
126
|
+
children: n,
|
|
88
127
|
disableWindowBlurListener: e = !1,
|
|
89
128
|
exited: o = !0,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
129
|
+
onBlur: u,
|
|
130
|
+
onClose: d,
|
|
131
|
+
onFocus: E,
|
|
132
|
+
onMouseEnter: p,
|
|
133
|
+
onMouseLeave: m,
|
|
134
|
+
open: b,
|
|
135
|
+
resumeHideDuration: N,
|
|
136
|
+
slotProps: v = {},
|
|
137
|
+
slots: _ = {},
|
|
138
|
+
...A
|
|
139
|
+
} = s, c = pe(), {
|
|
140
|
+
getRootProps: l,
|
|
141
|
+
onClickAway: f
|
|
142
|
+
} = fe({
|
|
143
|
+
...s,
|
|
99
144
|
autoHideDuration: r,
|
|
100
145
|
disableWindowBlurListener: e,
|
|
101
|
-
onClose:
|
|
102
|
-
open:
|
|
103
|
-
resumeHideDuration:
|
|
104
|
-
})
|
|
105
|
-
elementType:
|
|
106
|
-
getSlotProps:
|
|
107
|
-
externalForwardedProps:
|
|
108
|
-
externalSlotProps:
|
|
146
|
+
onClose: d,
|
|
147
|
+
open: b,
|
|
148
|
+
resumeHideDuration: N
|
|
149
|
+
}), U = s, H = _.root || "div", K = B({
|
|
150
|
+
elementType: H,
|
|
151
|
+
getSlotProps: l,
|
|
152
|
+
externalForwardedProps: A,
|
|
153
|
+
externalSlotProps: v.root,
|
|
109
154
|
additionalProps: {
|
|
110
155
|
ref: i
|
|
111
156
|
},
|
|
112
|
-
ownerState:
|
|
113
|
-
className:
|
|
114
|
-
}),
|
|
115
|
-
elementType:
|
|
116
|
-
externalSlotProps:
|
|
157
|
+
ownerState: U,
|
|
158
|
+
className: c.root
|
|
159
|
+
}), j = B({
|
|
160
|
+
elementType: G,
|
|
161
|
+
externalSlotProps: v.clickAwayListener,
|
|
117
162
|
additionalProps: {
|
|
118
|
-
onClickAway:
|
|
163
|
+
onClickAway: f
|
|
119
164
|
},
|
|
120
|
-
ownerState:
|
|
165
|
+
ownerState: U
|
|
166
|
+
});
|
|
167
|
+
return delete j.ownerState, !b && o ? null : /* @__PURE__ */ h(G, {
|
|
168
|
+
...j,
|
|
169
|
+
children: /* @__PURE__ */ h(H, {
|
|
170
|
+
...K,
|
|
171
|
+
children: n
|
|
172
|
+
})
|
|
121
173
|
});
|
|
122
|
-
return delete f.ownerState, !d && o ? null : /* @__PURE__ */ h(B, D({}, f, {
|
|
123
|
-
children: /* @__PURE__ */ h(c, D({}, l, {
|
|
124
|
-
children: t
|
|
125
|
-
}))
|
|
126
|
-
}));
|
|
127
174
|
});
|
|
128
|
-
process.env.NODE_ENV !== "production" && (
|
|
175
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
129
176
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
130
177
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
131
178
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -137,21 +184,21 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
137
184
|
* the `null` value.
|
|
138
185
|
* @default null
|
|
139
186
|
*/
|
|
140
|
-
autoHideDuration:
|
|
187
|
+
autoHideDuration: t.number,
|
|
141
188
|
/**
|
|
142
189
|
* @ignore
|
|
143
190
|
*/
|
|
144
|
-
children:
|
|
191
|
+
children: t.node,
|
|
145
192
|
/**
|
|
146
193
|
* If `true`, the `autoHideDuration` timer will expire even if the window is not focused.
|
|
147
194
|
* @default false
|
|
148
195
|
*/
|
|
149
|
-
disableWindowBlurListener:
|
|
196
|
+
disableWindowBlurListener: t.bool,
|
|
150
197
|
/**
|
|
151
198
|
* The prop used to handle exited transition and unmount the component.
|
|
152
199
|
* @default true
|
|
153
200
|
*/
|
|
154
|
-
exited:
|
|
201
|
+
exited: t.bool,
|
|
155
202
|
/**
|
|
156
203
|
* Callback fired when the component requests to be closed.
|
|
157
204
|
* Typically `onClose` is used to set state in the parent component,
|
|
@@ -162,201 +209,210 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
162
209
|
* @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
|
|
163
210
|
* @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
|
|
164
211
|
*/
|
|
165
|
-
onClose:
|
|
212
|
+
onClose: t.func,
|
|
166
213
|
/**
|
|
167
214
|
* If `true`, the component is shown.
|
|
168
215
|
*/
|
|
169
|
-
open:
|
|
216
|
+
open: t.bool,
|
|
170
217
|
/**
|
|
171
218
|
* The number of milliseconds to wait before dismissing after user interaction.
|
|
172
219
|
* If `autoHideDuration` prop isn't specified, it does nothing.
|
|
173
220
|
* If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,
|
|
174
221
|
* we default to `autoHideDuration / 2` ms.
|
|
175
222
|
*/
|
|
176
|
-
resumeHideDuration:
|
|
223
|
+
resumeHideDuration: t.number,
|
|
177
224
|
/**
|
|
178
225
|
* The props used for each slot inside the Snackbar.
|
|
179
226
|
* @default {}
|
|
180
227
|
*/
|
|
181
|
-
slotProps:
|
|
182
|
-
clickAwayListener:
|
|
183
|
-
children:
|
|
184
|
-
disableReactTree:
|
|
185
|
-
mouseEvent:
|
|
186
|
-
onClickAway:
|
|
187
|
-
touchEvent:
|
|
228
|
+
slotProps: t.shape({
|
|
229
|
+
clickAwayListener: t.oneOfType([t.func, t.shape({
|
|
230
|
+
children: t.element.isRequired,
|
|
231
|
+
disableReactTree: t.bool,
|
|
232
|
+
mouseEvent: t.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
|
|
233
|
+
onClickAway: t.func,
|
|
234
|
+
touchEvent: t.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
188
235
|
})]),
|
|
189
|
-
root:
|
|
236
|
+
root: t.oneOfType([t.func, t.object])
|
|
190
237
|
}),
|
|
191
238
|
/**
|
|
192
239
|
* The components used for each slot inside the Snackbar.
|
|
193
240
|
* Either a string to use a HTML element or a component.
|
|
194
241
|
* @default {}
|
|
195
242
|
*/
|
|
196
|
-
slots:
|
|
197
|
-
root:
|
|
243
|
+
slots: t.shape({
|
|
244
|
+
root: t.elementType
|
|
198
245
|
})
|
|
199
246
|
});
|
|
200
|
-
function
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
247
|
+
function Ee(a, s) {
|
|
248
|
+
if (a == null) return {};
|
|
249
|
+
var i = {};
|
|
250
|
+
for (var r in a) if ({}.hasOwnProperty.call(a, r)) {
|
|
251
|
+
if (s.indexOf(r) !== -1) continue;
|
|
252
|
+
i[r] = a[r];
|
|
253
|
+
}
|
|
254
|
+
return i;
|
|
255
|
+
}
|
|
256
|
+
function L(a, s) {
|
|
257
|
+
return L = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
|
|
258
|
+
return i.__proto__ = r, i;
|
|
259
|
+
}, L(a, s);
|
|
204
260
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
261
|
+
function me(a, s) {
|
|
262
|
+
a.prototype = Object.create(s.prototype), a.prototype.constructor = a, L(a, s);
|
|
207
263
|
}
|
|
208
|
-
const
|
|
264
|
+
const Y = {
|
|
209
265
|
disabled: !1
|
|
210
266
|
};
|
|
211
|
-
var
|
|
212
|
-
enter:
|
|
213
|
-
exit:
|
|
214
|
-
appear:
|
|
267
|
+
var he = process.env.NODE_ENV !== "production" ? t.oneOfType([t.number, t.shape({
|
|
268
|
+
enter: t.number,
|
|
269
|
+
exit: t.number,
|
|
270
|
+
appear: t.number
|
|
215
271
|
}).isRequired]) : null;
|
|
216
|
-
process.env.NODE_ENV !== "production" &&
|
|
217
|
-
enter:
|
|
218
|
-
exit:
|
|
219
|
-
active:
|
|
220
|
-
}),
|
|
221
|
-
enter:
|
|
222
|
-
enterDone:
|
|
223
|
-
enterActive:
|
|
224
|
-
exit:
|
|
225
|
-
exitDone:
|
|
226
|
-
exitActive:
|
|
272
|
+
process.env.NODE_ENV !== "production" && t.oneOfType([t.string, t.shape({
|
|
273
|
+
enter: t.string,
|
|
274
|
+
exit: t.string,
|
|
275
|
+
active: t.string
|
|
276
|
+
}), t.shape({
|
|
277
|
+
enter: t.string,
|
|
278
|
+
enterDone: t.string,
|
|
279
|
+
enterActive: t.string,
|
|
280
|
+
exit: t.string,
|
|
281
|
+
exitDone: t.string,
|
|
282
|
+
exitActive: t.string
|
|
227
283
|
})]);
|
|
228
|
-
const
|
|
229
|
-
var
|
|
284
|
+
const z = S.createContext(null);
|
|
285
|
+
var xe = function(s) {
|
|
230
286
|
return s.scrollTop;
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
function s(r,
|
|
287
|
+
}, R = "unmounted", k = "exited", T = "entering", O = "entered", M = "exiting", x = /* @__PURE__ */ (function(a) {
|
|
288
|
+
me(s, a);
|
|
289
|
+
function s(r, n) {
|
|
234
290
|
var e;
|
|
235
|
-
e =
|
|
236
|
-
var o =
|
|
237
|
-
return e.appearStatus = null, r.in ?
|
|
291
|
+
e = a.call(this, r, n) || this;
|
|
292
|
+
var o = n, u = o && !o.isMounting ? r.enter : r.appear, d;
|
|
293
|
+
return e.appearStatus = null, r.in ? u ? (d = k, e.appearStatus = T) : d = O : r.unmountOnExit || r.mountOnEnter ? d = R : d = k, e.state = {
|
|
238
294
|
status: d
|
|
239
295
|
}, e.nextCallback = null, e;
|
|
240
296
|
}
|
|
241
|
-
s.getDerivedStateFromProps = function(
|
|
242
|
-
var o =
|
|
243
|
-
return o && e.status ===
|
|
244
|
-
status:
|
|
297
|
+
s.getDerivedStateFromProps = function(n, e) {
|
|
298
|
+
var o = n.in;
|
|
299
|
+
return o && e.status === R ? {
|
|
300
|
+
status: k
|
|
245
301
|
} : null;
|
|
246
302
|
};
|
|
247
303
|
var i = s.prototype;
|
|
248
304
|
return i.componentDidMount = function() {
|
|
249
305
|
this.updateStatus(!0, this.appearStatus);
|
|
250
|
-
}, i.componentDidUpdate = function(
|
|
306
|
+
}, i.componentDidUpdate = function(n) {
|
|
251
307
|
var e = null;
|
|
252
|
-
if (
|
|
308
|
+
if (n !== this.props) {
|
|
253
309
|
var o = this.state.status;
|
|
254
|
-
this.props.in ? o !==
|
|
310
|
+
this.props.in ? o !== T && o !== O && (e = T) : (o === T || o === O) && (e = M);
|
|
255
311
|
}
|
|
256
312
|
this.updateStatus(!1, e);
|
|
257
313
|
}, i.componentWillUnmount = function() {
|
|
258
314
|
this.cancelNextCallback();
|
|
259
315
|
}, i.getTimeouts = function() {
|
|
260
|
-
var
|
|
261
|
-
return e = o =
|
|
316
|
+
var n = this.props.timeout, e, o, u;
|
|
317
|
+
return e = o = u = n, n != null && typeof n != "number" && (e = n.exit, o = n.enter, u = n.appear !== void 0 ? n.appear : o), {
|
|
262
318
|
exit: e,
|
|
263
319
|
enter: o,
|
|
264
|
-
appear:
|
|
320
|
+
appear: u
|
|
265
321
|
};
|
|
266
|
-
}, i.updateStatus = function(
|
|
267
|
-
if (
|
|
268
|
-
if (this.cancelNextCallback(), e ===
|
|
322
|
+
}, i.updateStatus = function(n, e) {
|
|
323
|
+
if (n === void 0 && (n = !1), e !== null)
|
|
324
|
+
if (this.cancelNextCallback(), e === T) {
|
|
269
325
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
270
326
|
var o = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this);
|
|
271
|
-
o &&
|
|
327
|
+
o && xe(o);
|
|
272
328
|
}
|
|
273
|
-
this.performEnter(
|
|
329
|
+
this.performEnter(n);
|
|
274
330
|
} else
|
|
275
331
|
this.performExit();
|
|
276
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
277
|
-
status:
|
|
332
|
+
else this.props.unmountOnExit && this.state.status === k && this.setState({
|
|
333
|
+
status: R
|
|
278
334
|
});
|
|
279
|
-
}, i.performEnter = function(
|
|
280
|
-
var e = this, o = this.props.enter,
|
|
281
|
-
if (!
|
|
335
|
+
}, i.performEnter = function(n) {
|
|
336
|
+
var e = this, o = this.props.enter, u = this.context ? this.context.isMounting : n, d = this.props.nodeRef ? [u] : [P.findDOMNode(this), u], E = d[0], p = d[1], m = this.getTimeouts(), b = u ? m.appear : m.enter;
|
|
337
|
+
if (!n && !o || Y.disabled) {
|
|
282
338
|
this.safeSetState({
|
|
283
|
-
status:
|
|
339
|
+
status: O
|
|
284
340
|
}, function() {
|
|
285
|
-
e.props.onEntered(
|
|
341
|
+
e.props.onEntered(E);
|
|
286
342
|
});
|
|
287
343
|
return;
|
|
288
344
|
}
|
|
289
|
-
this.props.onEnter(
|
|
290
|
-
status:
|
|
345
|
+
this.props.onEnter(E, p), this.safeSetState({
|
|
346
|
+
status: T
|
|
291
347
|
}, function() {
|
|
292
|
-
e.props.onEntering(
|
|
348
|
+
e.props.onEntering(E, p), e.onTransitionEnd(b, function() {
|
|
293
349
|
e.safeSetState({
|
|
294
|
-
status:
|
|
350
|
+
status: O
|
|
295
351
|
}, function() {
|
|
296
|
-
e.props.onEntered(
|
|
352
|
+
e.props.onEntered(E, p);
|
|
297
353
|
});
|
|
298
354
|
});
|
|
299
355
|
});
|
|
300
356
|
}, i.performExit = function() {
|
|
301
|
-
var
|
|
302
|
-
if (!e ||
|
|
357
|
+
var n = this, e = this.props.exit, o = this.getTimeouts(), u = this.props.nodeRef ? void 0 : P.findDOMNode(this);
|
|
358
|
+
if (!e || Y.disabled) {
|
|
303
359
|
this.safeSetState({
|
|
304
|
-
status:
|
|
360
|
+
status: k
|
|
305
361
|
}, function() {
|
|
306
|
-
|
|
362
|
+
n.props.onExited(u);
|
|
307
363
|
});
|
|
308
364
|
return;
|
|
309
365
|
}
|
|
310
|
-
this.props.onExit(
|
|
311
|
-
status:
|
|
366
|
+
this.props.onExit(u), this.safeSetState({
|
|
367
|
+
status: M
|
|
312
368
|
}, function() {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
status:
|
|
369
|
+
n.props.onExiting(u), n.onTransitionEnd(o.exit, function() {
|
|
370
|
+
n.safeSetState({
|
|
371
|
+
status: k
|
|
316
372
|
}, function() {
|
|
317
|
-
|
|
373
|
+
n.props.onExited(u);
|
|
318
374
|
});
|
|
319
375
|
});
|
|
320
376
|
});
|
|
321
377
|
}, i.cancelNextCallback = function() {
|
|
322
378
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
323
|
-
}, i.safeSetState = function(
|
|
324
|
-
e = this.setNextCallback(e), this.setState(
|
|
325
|
-
}, i.setNextCallback = function(
|
|
379
|
+
}, i.safeSetState = function(n, e) {
|
|
380
|
+
e = this.setNextCallback(e), this.setState(n, e);
|
|
381
|
+
}, i.setNextCallback = function(n) {
|
|
326
382
|
var e = this, o = !0;
|
|
327
|
-
return this.nextCallback = function(
|
|
328
|
-
o && (o = !1, e.nextCallback = null,
|
|
383
|
+
return this.nextCallback = function(u) {
|
|
384
|
+
o && (o = !1, e.nextCallback = null, n(u));
|
|
329
385
|
}, this.nextCallback.cancel = function() {
|
|
330
386
|
o = !1;
|
|
331
387
|
}, this.nextCallback;
|
|
332
|
-
}, i.onTransitionEnd = function(
|
|
388
|
+
}, i.onTransitionEnd = function(n, e) {
|
|
333
389
|
this.setNextCallback(e);
|
|
334
|
-
var o = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this),
|
|
335
|
-
if (!o ||
|
|
390
|
+
var o = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this), u = n == null && !this.props.addEndListener;
|
|
391
|
+
if (!o || u) {
|
|
336
392
|
setTimeout(this.nextCallback, 0);
|
|
337
393
|
return;
|
|
338
394
|
}
|
|
339
395
|
if (this.props.addEndListener) {
|
|
340
|
-
var d = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback],
|
|
341
|
-
this.props.addEndListener(
|
|
396
|
+
var d = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback], E = d[0], p = d[1];
|
|
397
|
+
this.props.addEndListener(E, p);
|
|
342
398
|
}
|
|
343
|
-
|
|
399
|
+
n != null && setTimeout(this.nextCallback, n);
|
|
344
400
|
}, i.render = function() {
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
401
|
+
var n = this.state.status;
|
|
402
|
+
if (n === R)
|
|
347
403
|
return null;
|
|
348
404
|
var e = this.props, o = e.children;
|
|
349
405
|
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;
|
|
350
|
-
var
|
|
406
|
+
var u = Ee(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
351
407
|
return (
|
|
352
408
|
// allows for nested Transitions
|
|
353
|
-
/* @__PURE__ */ S.createElement(
|
|
409
|
+
/* @__PURE__ */ S.createElement(z.Provider, {
|
|
354
410
|
value: null
|
|
355
|
-
}, typeof o == "function" ? o(
|
|
411
|
+
}, typeof o == "function" ? o(n, u) : S.cloneElement(S.Children.only(o), u))
|
|
356
412
|
);
|
|
357
413
|
}, s;
|
|
358
|
-
}(S.Component);
|
|
359
|
-
x.contextType =
|
|
414
|
+
})(S.Component);
|
|
415
|
+
x.contextType = z;
|
|
360
416
|
x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
361
417
|
/**
|
|
362
418
|
* A React reference to DOM element that need to transition:
|
|
@@ -369,10 +425,10 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
369
425
|
* (see
|
|
370
426
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
371
427
|
*/
|
|
372
|
-
nodeRef:
|
|
373
|
-
current: typeof Element > "u" ?
|
|
374
|
-
var o =
|
|
375
|
-
return
|
|
428
|
+
nodeRef: t.shape({
|
|
429
|
+
current: typeof Element > "u" ? t.any : function(a, s, i, r, n, e) {
|
|
430
|
+
var o = a[s];
|
|
431
|
+
return t.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(a, s, i, r, n, e);
|
|
376
432
|
}
|
|
377
433
|
}),
|
|
378
434
|
/**
|
|
@@ -389,23 +445,23 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
389
445
|
* </Transition>
|
|
390
446
|
* ```
|
|
391
447
|
*/
|
|
392
|
-
children:
|
|
448
|
+
children: t.oneOfType([t.func.isRequired, t.element.isRequired]).isRequired,
|
|
393
449
|
/**
|
|
394
450
|
* Show the component; triggers the enter or exit states
|
|
395
451
|
*/
|
|
396
|
-
in:
|
|
452
|
+
in: t.bool,
|
|
397
453
|
/**
|
|
398
454
|
* By default the child component is mounted immediately along with
|
|
399
455
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
400
456
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
401
457
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
402
458
|
*/
|
|
403
|
-
mountOnEnter:
|
|
459
|
+
mountOnEnter: t.bool,
|
|
404
460
|
/**
|
|
405
461
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
406
462
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
407
463
|
*/
|
|
408
|
-
unmountOnExit:
|
|
464
|
+
unmountOnExit: t.bool,
|
|
409
465
|
/**
|
|
410
466
|
* By default the child component does not perform the enter transition when
|
|
411
467
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -417,15 +473,15 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
417
473
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
418
474
|
* > differently.
|
|
419
475
|
*/
|
|
420
|
-
appear:
|
|
476
|
+
appear: t.bool,
|
|
421
477
|
/**
|
|
422
478
|
* Enable or disable enter transitions.
|
|
423
479
|
*/
|
|
424
|
-
enter:
|
|
480
|
+
enter: t.bool,
|
|
425
481
|
/**
|
|
426
482
|
* Enable or disable exit transitions.
|
|
427
483
|
*/
|
|
428
|
-
exit:
|
|
484
|
+
exit: t.bool,
|
|
429
485
|
/**
|
|
430
486
|
* The duration of the transition, in milliseconds.
|
|
431
487
|
* Required unless `addEndListener` is provided.
|
|
@@ -453,11 +509,11 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
453
509
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
454
510
|
*/
|
|
455
511
|
timeout: function(s) {
|
|
456
|
-
var i =
|
|
512
|
+
var i = he;
|
|
457
513
|
s.addEndListener || (i = i.isRequired);
|
|
458
|
-
for (var r = arguments.length,
|
|
459
|
-
|
|
460
|
-
return i.apply(void 0, [s].concat(
|
|
514
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
|
|
515
|
+
n[e - 1] = arguments[e];
|
|
516
|
+
return i.apply(void 0, [s].concat(n));
|
|
461
517
|
},
|
|
462
518
|
/**
|
|
463
519
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -473,7 +529,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
473
529
|
* }}
|
|
474
530
|
* ```
|
|
475
531
|
*/
|
|
476
|
-
addEndListener:
|
|
532
|
+
addEndListener: t.func,
|
|
477
533
|
/**
|
|
478
534
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
479
535
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -482,7 +538,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
482
538
|
*
|
|
483
539
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
484
540
|
*/
|
|
485
|
-
onEnter:
|
|
541
|
+
onEnter: t.func,
|
|
486
542
|
/**
|
|
487
543
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
488
544
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -491,7 +547,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
491
547
|
*
|
|
492
548
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
493
549
|
*/
|
|
494
|
-
onEntering:
|
|
550
|
+
onEntering: t.func,
|
|
495
551
|
/**
|
|
496
552
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
497
553
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -500,7 +556,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
500
556
|
*
|
|
501
557
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
502
558
|
*/
|
|
503
|
-
onEntered:
|
|
559
|
+
onEntered: t.func,
|
|
504
560
|
/**
|
|
505
561
|
* Callback fired before the "exiting" status is applied.
|
|
506
562
|
*
|
|
@@ -508,7 +564,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
508
564
|
*
|
|
509
565
|
* @type Function(node: HtmlElement) -> void
|
|
510
566
|
*/
|
|
511
|
-
onExit:
|
|
567
|
+
onExit: t.func,
|
|
512
568
|
/**
|
|
513
569
|
* Callback fired after the "exiting" status is applied.
|
|
514
570
|
*
|
|
@@ -516,7 +572,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
516
572
|
*
|
|
517
573
|
* @type Function(node: HtmlElement) -> void
|
|
518
574
|
*/
|
|
519
|
-
onExiting:
|
|
575
|
+
onExiting: t.func,
|
|
520
576
|
/**
|
|
521
577
|
* Callback fired after the "exited" status is applied.
|
|
522
578
|
*
|
|
@@ -524,9 +580,9 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
524
580
|
*
|
|
525
581
|
* @type Function(node: HtmlElement) -> void
|
|
526
582
|
*/
|
|
527
|
-
onExited:
|
|
583
|
+
onExited: t.func
|
|
528
584
|
} : {};
|
|
529
|
-
function
|
|
585
|
+
function y() {
|
|
530
586
|
}
|
|
531
587
|
x.defaultProps = {
|
|
532
588
|
in: !1,
|
|
@@ -535,20 +591,20 @@ x.defaultProps = {
|
|
|
535
591
|
appear: !1,
|
|
536
592
|
enter: !0,
|
|
537
593
|
exit: !0,
|
|
538
|
-
onEnter:
|
|
539
|
-
onEntering:
|
|
540
|
-
onEntered:
|
|
541
|
-
onExit:
|
|
542
|
-
onExiting:
|
|
543
|
-
onExited:
|
|
594
|
+
onEnter: y,
|
|
595
|
+
onEntering: y,
|
|
596
|
+
onEntered: y,
|
|
597
|
+
onExit: y,
|
|
598
|
+
onExiting: y,
|
|
599
|
+
onExited: y
|
|
544
600
|
};
|
|
545
|
-
x.UNMOUNTED =
|
|
546
|
-
x.EXITED =
|
|
547
|
-
x.ENTERING =
|
|
548
|
-
x.ENTERED =
|
|
549
|
-
x.EXITING =
|
|
550
|
-
const
|
|
551
|
-
snackbar:
|
|
601
|
+
x.UNMOUNTED = R;
|
|
602
|
+
x.EXITED = k;
|
|
603
|
+
x.ENTERING = T;
|
|
604
|
+
x.ENTERED = O;
|
|
605
|
+
x.EXITING = M;
|
|
606
|
+
const be = "_snackbar_14f4w_2", ve = "_bottomToTop_14f4w_1", g = {
|
|
607
|
+
snackbar: be,
|
|
552
608
|
"snackbar__snackbar-el-wrapper": "_snackbar__snackbar-el-wrapper_14f4w_15",
|
|
553
609
|
"snackbar--content": "_snackbar--content_14f4w_20",
|
|
554
610
|
"snackbar--message": "_snackbar--message_14f4w_33",
|
|
@@ -556,36 +612,36 @@ const ue = "_snackbar_14f4w_2", ce = "_bottomToTop_14f4w_1", T = {
|
|
|
556
612
|
"snackbar--error": "_snackbar--error_14f4w_41",
|
|
557
613
|
"snackbar--warning": "_snackbar--warning_14f4w_45",
|
|
558
614
|
"snackbar--action": "_snackbar--action_14f4w_49",
|
|
559
|
-
bottomToTop:
|
|
560
|
-
},
|
|
561
|
-
snackbarMessage:
|
|
615
|
+
bottomToTop: ve
|
|
616
|
+
}, De = ({
|
|
617
|
+
snackbarMessage: a,
|
|
562
618
|
variant: s,
|
|
563
619
|
autoHideDuration: i = 5e3,
|
|
564
620
|
open: r = !0,
|
|
565
|
-
onClose:
|
|
621
|
+
onClose: n,
|
|
566
622
|
onClosed: e,
|
|
567
623
|
classNameWrapper: o,
|
|
568
|
-
"data-testid":
|
|
624
|
+
"data-testid": u
|
|
569
625
|
}) => {
|
|
570
|
-
const [d,
|
|
626
|
+
const [d, E] = Q(!0), p = ee(null), m = {
|
|
571
627
|
entering: "translateY(0)",
|
|
572
628
|
entered: "translateY(0)",
|
|
573
629
|
exiting: "translateY(80px)",
|
|
574
630
|
exited: "translateY(80px)",
|
|
575
631
|
unmounted: "translateY(80px)"
|
|
576
632
|
}, b = () => {
|
|
577
|
-
|
|
578
|
-
},
|
|
579
|
-
|
|
633
|
+
E(!1);
|
|
634
|
+
}, N = () => {
|
|
635
|
+
E(!0);
|
|
580
636
|
};
|
|
581
|
-
return /* @__PURE__ */ h("div", { className:
|
|
582
|
-
|
|
637
|
+
return /* @__PURE__ */ h("div", { className: C(g.snackbar, o), children: /* @__PURE__ */ h(
|
|
638
|
+
X,
|
|
583
639
|
{
|
|
584
640
|
autoHideDuration: i,
|
|
585
641
|
open: r,
|
|
586
|
-
onClose: (
|
|
642
|
+
onClose: (v, _) => _ !== "clickaway" && (n == null ? void 0 : n()),
|
|
587
643
|
exited: d,
|
|
588
|
-
className:
|
|
644
|
+
className: C(g["snackbar__snackbar-el-wrapper"]),
|
|
589
645
|
children: /* @__PURE__ */ h(
|
|
590
646
|
x,
|
|
591
647
|
{
|
|
@@ -594,22 +650,22 @@ const ue = "_snackbar_14f4w_2", ce = "_bottomToTop_14f4w_1", T = {
|
|
|
594
650
|
appear: !0,
|
|
595
651
|
unmountOnExit: !0,
|
|
596
652
|
onEnter: b,
|
|
597
|
-
onExited:
|
|
653
|
+
onExited: N,
|
|
598
654
|
onExit: e,
|
|
599
655
|
nodeRef: p,
|
|
600
|
-
children: (
|
|
656
|
+
children: (v) => /* @__PURE__ */ J(
|
|
601
657
|
"div",
|
|
602
658
|
{
|
|
603
|
-
className:
|
|
659
|
+
className: C(g["snackbar--content"], g[`snackbar--${s}`]),
|
|
604
660
|
style: {
|
|
605
|
-
transform:
|
|
661
|
+
transform: m[v],
|
|
606
662
|
transition: "transform 300ms ease"
|
|
607
663
|
},
|
|
608
664
|
ref: p,
|
|
609
|
-
"data-testid":
|
|
665
|
+
"data-testid": u,
|
|
610
666
|
children: [
|
|
611
|
-
/* @__PURE__ */ h("div", { className:
|
|
612
|
-
/* @__PURE__ */ h("button", { type: "button", className:
|
|
667
|
+
/* @__PURE__ */ h("div", { className: g["snackbar--message"], children: /* @__PURE__ */ h(ne, { variant: "base-lg", bold: !0, color: "var(--colors-neutral-text-color-text)", children: a }) }),
|
|
668
|
+
/* @__PURE__ */ h("button", { type: "button", className: C(g["snackbar--action"]), onClick: n, children: /* @__PURE__ */ h(te, { icon: "circle-xmark", color: "var(--colors-neutral-text-color-text)", size: "1.5rem" }) })
|
|
613
669
|
]
|
|
614
670
|
}
|
|
615
671
|
)
|
|
@@ -619,5 +675,5 @@ const ue = "_snackbar_14f4w_2", ce = "_bottomToTop_14f4w_1", T = {
|
|
|
619
675
|
) });
|
|
620
676
|
};
|
|
621
677
|
export {
|
|
622
|
-
|
|
678
|
+
De as Snackbar
|
|
623
679
|
};
|