@unicom-cloud/ui 0.8.73 → 0.8.74
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/Affix.js +2 -2
- package/Alert.js +3 -3
- package/AutoComplete.js +2 -2
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +3 -3
- package/Button.js +2 -2
- package/Calendar.js +3 -3
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -3
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +2 -2
- package/Empty.js +2 -2
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +2 -2
- package/Layout.js +2 -2
- package/Link.js +2 -2
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +4 -4
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +4 -4
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +2 -2
- package/SelectView.js +1 -1
- package/Skeleton.js +2 -2
- package/Slider.js +2 -2
- package/Space.js +2 -2
- package/SpeechSynthesis.js +4 -4
- package/Spin.js +2 -2
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +4 -4
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +26 -26
- package/anchor/Link.js +2 -2
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/back-top/index.js +11 -11
- package/badge/Count.js +7 -7
- package/badge/index.js +9 -9
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +3 -3
- package/button/Group.js +2 -2
- package/button/index.js +2 -2
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +5 -5
- package/card/Meta.js +4 -4
- package/card/index.js +2 -2
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +6 -6
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/index.js +1 -1
- package/chunk/{B0UZ1Ee2.js → 9we0Q8Kh.js} +3 -3
- package/chunk/{DJDOFlqC.js → BDZpJpz-.js} +2 -2
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
- package/chunk/{7HDzVe32.js → Bd9zhOZS.js} +4 -4
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{uH6uxyao.js → BoUHPeG7.js} +2 -2
- package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
- package/chunk/{oHDWCJnz.js → Bu8A2l60.js} +3 -3
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{Byd0ztYY.js → Crs3isAx.js} +4 -4
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{Dg0M2OmF.js → D5UfU6-H.js} +5 -5
- package/chunk/{UDX9U6M7.js → DJ8rDYjb.js} +3 -3
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/{D2LLXZQX.js → DdT3C0ih.js} +4 -4
- package/chunk/{DejjIa3N.js → Dn7KbmZ7.js} +35 -35
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{B7hulkj9.js → NmSLBKjp.js} +2 -2
- package/chunk/{CiY7w1ZO.js → _L2dKF58.js} +3 -3
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/collapse/Collapse.js +3 -3
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +2 -2
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +4 -4
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +20 -20
- package/color-picker/utils.js +1 -1
- package/comment/index.js +6 -6
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +16 -16
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +2 -2
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +3 -3
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/grid/Col.js +2 -2
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +8 -8
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +4 -4
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +5 -5
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +565 -575
- package/input/Group.js +4 -4
- package/input/Input.js +45 -45
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +4 -4
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +2 -2
- package/layout/index.js +2 -2
- package/link/index.js +5 -5
- package/list/Item.js +2 -2
- package/list/Meta.js +4 -4
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Item.js +5 -5
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +4 -4
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +4 -4
- package/modal/index.js +1 -1
- package/notice/index.js +2 -2
- package/notification/index.js +4 -4
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +8 -8
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +23 -23
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- package/progress/CircleProgress.js +7 -7
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +7 -7
- package/progress/index.js +8 -8
- package/radio/Group.js +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +2 -2
- package/resize-box/ResizeTrigger.js +10 -10
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +3 -3
- package/select-view/Core.js +27 -27
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +2 -2
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +6 -6
- package/slider/index.js +2 -2
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- package/statistic/Countdown.js +7 -7
- package/statistic/index.js +20 -20
- package/steps/Step.js +1 -1
- package/steps/index.js +2 -2
- package/style.css +1 -1
- package/switch/index.js +4 -4
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +2 -2
- package/tabs/index.js +2 -2
- package/tag/index.js +6 -6
- package/time-picker/Picker.js +2 -2
- package/time-picker/TimeColumn.js +7 -7
- package/time-picker/TimePicker.js +23 -23
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/tooltip/index.js +3 -3
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/trigger/index.js +3 -3
- package/types/color-picker/colors.d.ts +1 -1
- package/types/utils/color.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +14 -15
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +12 -13
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +5 -5
- package/upload/Uploader.js +2 -2
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/className.js +3 -3
- package/utils/color.js +2 -116
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +4 -4
- package/utils/fileToURL.js +1 -1
- package/utils/index.js +299 -309
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/tinycolor.js +12 -12
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/CCVU-Kst.js +0 -770
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/JPPo5nY_.js +0 -9
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import g, { isValidElement as Z, cloneElement as ee, Children as We } from "react";
|
|
3
|
+
import Y from "react-dom";
|
|
4
|
+
import Ne from "react-is";
|
|
5
|
+
const fe = {
|
|
6
6
|
disabled: !1
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function Fe(n, e) {
|
|
9
9
|
return n.classList ? !!e && n.classList.contains(e) : ` ${n.className.baseVal || n.className} `.indexOf(
|
|
10
10
|
` ${e} `
|
|
11
11
|
) !== -1;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
n.classList ? n.classList.add(e) :
|
|
13
|
+
function Ue(n, e) {
|
|
14
|
+
n.classList ? n.classList.add(e) : Fe(n, e) || (typeof n.className == "string" ? n.className = `${n.className} ${e}` : n.setAttribute(
|
|
15
15
|
"class",
|
|
16
16
|
`${n.className && n.className.baseVal || ""} ${e}`
|
|
17
17
|
));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Ye(n) {
|
|
20
20
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
21
21
|
}
|
|
22
22
|
var Q = { exports: {} };
|
|
@@ -25,137 +25,137 @@ object-assign
|
|
|
25
25
|
(c) Sindre Sorhus
|
|
26
26
|
@license MIT
|
|
27
27
|
*/
|
|
28
|
-
var ne,
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
|
|
28
|
+
var ne, he;
|
|
29
|
+
function Ge() {
|
|
30
|
+
if (he) return ne;
|
|
31
|
+
he = 1;
|
|
32
32
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
33
33
|
function r(i) {
|
|
34
34
|
if (i == null)
|
|
35
35
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
36
36
|
return Object(i);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function o() {
|
|
39
39
|
try {
|
|
40
40
|
if (!Object.assign)
|
|
41
41
|
return !1;
|
|
42
42
|
var i = new String("abc");
|
|
43
43
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
44
44
|
return !1;
|
|
45
|
-
for (var
|
|
46
|
-
|
|
47
|
-
var O = Object.getOwnPropertyNames(
|
|
48
|
-
return
|
|
45
|
+
for (var u = {}, c = 0; c < 10; c++)
|
|
46
|
+
u["_" + String.fromCharCode(c)] = c;
|
|
47
|
+
var O = Object.getOwnPropertyNames(u).map(function(b) {
|
|
48
|
+
return u[b];
|
|
49
49
|
});
|
|
50
50
|
if (O.join("") !== "0123456789")
|
|
51
51
|
return !1;
|
|
52
|
-
var
|
|
52
|
+
var N = {};
|
|
53
53
|
return "abcdefghijklmnopqrst".split("").forEach(function(b) {
|
|
54
|
-
|
|
55
|
-
}), Object.keys(Object.assign({},
|
|
54
|
+
N[b] = b;
|
|
55
|
+
}), Object.keys(Object.assign({}, N)).join("") === "abcdefghijklmnopqrst";
|
|
56
56
|
} catch {
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return ne =
|
|
61
|
-
for (var
|
|
62
|
-
|
|
63
|
-
for (var
|
|
64
|
-
e.call(
|
|
60
|
+
return ne = o() ? Object.assign : function(i, u) {
|
|
61
|
+
for (var c, O = r(i), N, b = 1; b < arguments.length; b++) {
|
|
62
|
+
c = Object(arguments[b]);
|
|
63
|
+
for (var T in c)
|
|
64
|
+
e.call(c, T) && (O[T] = c[T]);
|
|
65
65
|
if (n) {
|
|
66
|
-
|
|
67
|
-
for (var
|
|
68
|
-
t.call(
|
|
66
|
+
N = n(c);
|
|
67
|
+
for (var S = 0; S < N.length; S++)
|
|
68
|
+
t.call(c, N[S]) && (O[N[S]] = c[N[S]]);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return O;
|
|
72
72
|
}, ne;
|
|
73
73
|
}
|
|
74
|
-
var re,
|
|
75
|
-
function
|
|
76
|
-
if (
|
|
77
|
-
|
|
74
|
+
var re, Ee;
|
|
75
|
+
function ue() {
|
|
76
|
+
if (Ee) return re;
|
|
77
|
+
Ee = 1;
|
|
78
78
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
79
79
|
return re = n, re;
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var me, ye;
|
|
82
82
|
function Ce() {
|
|
83
|
-
return ye || (ye = 1,
|
|
83
|
+
return ye || (ye = 1, me = Function.call.bind(Object.prototype.hasOwnProperty)), me;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
if (
|
|
88
|
-
|
|
85
|
+
var ie, ve;
|
|
86
|
+
function Je() {
|
|
87
|
+
if (ve) return ie;
|
|
88
|
+
ve = 1;
|
|
89
89
|
var n = function() {
|
|
90
90
|
};
|
|
91
91
|
if (process.env.NODE_ENV !== "production") {
|
|
92
|
-
var e = /* @__PURE__ */
|
|
92
|
+
var e = /* @__PURE__ */ ue(), t = {}, r = /* @__PURE__ */ Ce();
|
|
93
93
|
n = function(i) {
|
|
94
|
-
var
|
|
95
|
-
typeof console < "u" && console.error(
|
|
94
|
+
var u = "Warning: " + i;
|
|
95
|
+
typeof console < "u" && console.error(u);
|
|
96
96
|
try {
|
|
97
|
-
throw new Error(
|
|
97
|
+
throw new Error(u);
|
|
98
98
|
} catch {
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function o(i, u, c, O, N) {
|
|
103
103
|
if (process.env.NODE_ENV !== "production") {
|
|
104
104
|
for (var b in i)
|
|
105
105
|
if (r(i, b)) {
|
|
106
|
-
var
|
|
106
|
+
var T;
|
|
107
107
|
try {
|
|
108
108
|
if (typeof i[b] != "function") {
|
|
109
|
-
var
|
|
110
|
-
(O || "React class") + ": " +
|
|
109
|
+
var S = Error(
|
|
110
|
+
(O || "React class") + ": " + c + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
111
111
|
);
|
|
112
|
-
throw
|
|
112
|
+
throw S.name = "Invariant Violation", S;
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
} catch (
|
|
116
|
-
|
|
114
|
+
T = i[b](u, b, O, c, null, e);
|
|
115
|
+
} catch (B) {
|
|
116
|
+
T = B;
|
|
117
117
|
}
|
|
118
|
-
if (
|
|
119
|
-
(O || "React class") + ": type specification of " +
|
|
120
|
-
),
|
|
121
|
-
t[
|
|
122
|
-
var
|
|
118
|
+
if (T && !(T instanceof Error) && n(
|
|
119
|
+
(O || "React class") + ": type specification of " + c + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof T + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
120
|
+
), T instanceof Error && !(T.message in t)) {
|
|
121
|
+
t[T.message] = !0;
|
|
122
|
+
var A = N ? N() : "";
|
|
123
123
|
n(
|
|
124
|
-
"Failed " +
|
|
124
|
+
"Failed " + c + " type: " + T.message + (A ?? "")
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return o.resetWarningCache = function() {
|
|
131
131
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
132
|
-
},
|
|
132
|
+
}, ie = o, ie;
|
|
133
133
|
}
|
|
134
|
-
var oe,
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
var n =
|
|
134
|
+
var oe, xe;
|
|
135
|
+
function ze() {
|
|
136
|
+
if (xe) return oe;
|
|
137
|
+
xe = 1;
|
|
138
|
+
var n = Ne, e = Ge(), t = /* @__PURE__ */ ue(), r = /* @__PURE__ */ Ce(), o = /* @__PURE__ */ Je(), i = function() {
|
|
139
139
|
};
|
|
140
|
-
process.env.NODE_ENV !== "production" && (i = function(
|
|
141
|
-
var O = "Warning: " +
|
|
140
|
+
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
141
|
+
var O = "Warning: " + c;
|
|
142
142
|
typeof console < "u" && console.error(O);
|
|
143
143
|
try {
|
|
144
144
|
throw new Error(O);
|
|
145
145
|
} catch {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
function
|
|
148
|
+
function u() {
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
|
-
return oe = function(
|
|
152
|
-
var
|
|
153
|
-
function
|
|
154
|
-
var a =
|
|
151
|
+
return oe = function(c, O) {
|
|
152
|
+
var N = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
|
|
153
|
+
function T(s) {
|
|
154
|
+
var a = s && (N && s[N] || s[b]);
|
|
155
155
|
if (typeof a == "function")
|
|
156
156
|
return a;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var S = "<<anonymous>>", A = {
|
|
159
159
|
array: I("array"),
|
|
160
160
|
bigint: I("bigint"),
|
|
161
161
|
bool: I("boolean"),
|
|
@@ -164,246 +164,246 @@ function Ge() {
|
|
|
164
164
|
object: I("object"),
|
|
165
165
|
string: I("string"),
|
|
166
166
|
symbol: I("symbol"),
|
|
167
|
-
any:
|
|
168
|
-
arrayOf:
|
|
169
|
-
element:
|
|
170
|
-
elementType:
|
|
171
|
-
instanceOf:
|
|
172
|
-
node:
|
|
173
|
-
objectOf:
|
|
167
|
+
any: H(),
|
|
168
|
+
arrayOf: we,
|
|
169
|
+
element: Re(),
|
|
170
|
+
elementType: $e(),
|
|
171
|
+
instanceOf: je,
|
|
172
|
+
node: Ae(),
|
|
173
|
+
objectOf: Pe,
|
|
174
174
|
oneOf: De,
|
|
175
|
-
oneOfType:
|
|
176
|
-
shape:
|
|
175
|
+
oneOfType: Ie,
|
|
176
|
+
shape: Ve,
|
|
177
177
|
exact: _e
|
|
178
178
|
};
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function B(s, a) {
|
|
180
|
+
return s === a ? s !== 0 || 1 / s === 1 / a : s !== s && a !== a;
|
|
181
181
|
}
|
|
182
|
-
function C(
|
|
183
|
-
this.message =
|
|
182
|
+
function C(s, a) {
|
|
183
|
+
this.message = s, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
|
|
184
184
|
}
|
|
185
185
|
C.prototype = Error.prototype;
|
|
186
|
-
function
|
|
186
|
+
function w(s) {
|
|
187
187
|
if (process.env.NODE_ENV !== "production")
|
|
188
188
|
var a = {}, E = 0;
|
|
189
|
-
function f(
|
|
190
|
-
if (y = y ||
|
|
189
|
+
function f(m, d, h, y, x, v, k) {
|
|
190
|
+
if (y = y || S, v = v || h, k !== t) {
|
|
191
191
|
if (O) {
|
|
192
|
-
var
|
|
192
|
+
var R = new Error(
|
|
193
193
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
194
194
|
);
|
|
195
|
-
throw
|
|
195
|
+
throw R.name = "Invariant Violation", R;
|
|
196
196
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
197
|
-
var
|
|
198
|
-
!a[
|
|
197
|
+
var K = y + ":" + h;
|
|
198
|
+
!a[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
199
199
|
E < 3 && (i(
|
|
200
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
201
|
-
), a[
|
|
200
|
+
"You are manually calling a React.PropTypes validation function for the `" + v + "` prop on `" + y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
201
|
+
), a[K] = !0, E++);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
return d[h] == null ?
|
|
204
|
+
return d[h] == null ? m ? d[h] === null ? new C("The " + x + " `" + v + "` is marked as required " + ("in `" + y + "`, but its value is `null`.")) : new C("The " + x + " `" + v + "` is marked as required in " + ("`" + y + "`, but its value is `undefined`.")) : null : s(d, h, y, x, v);
|
|
205
205
|
}
|
|
206
206
|
var p = f.bind(null, !1);
|
|
207
207
|
return p.isRequired = f.bind(null, !0), p;
|
|
208
208
|
}
|
|
209
|
-
function I(
|
|
210
|
-
function a(E, f, p,
|
|
211
|
-
var y = E[f],
|
|
212
|
-
if (
|
|
213
|
-
var
|
|
209
|
+
function I(s) {
|
|
210
|
+
function a(E, f, p, m, d, h) {
|
|
211
|
+
var y = E[f], x = V(y);
|
|
212
|
+
if (x !== s) {
|
|
213
|
+
var v = U(y);
|
|
214
214
|
return new C(
|
|
215
|
-
"Invalid " +
|
|
216
|
-
{ expectedType:
|
|
215
|
+
"Invalid " + m + " `" + d + "` of type " + ("`" + v + "` supplied to `" + p + "`, expected ") + ("`" + s + "`."),
|
|
216
|
+
{ expectedType: s }
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
|
-
return
|
|
221
|
+
return w(a);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
return
|
|
223
|
+
function H() {
|
|
224
|
+
return w(u);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
function a(E, f, p,
|
|
228
|
-
if (typeof
|
|
226
|
+
function we(s) {
|
|
227
|
+
function a(E, f, p, m, d) {
|
|
228
|
+
if (typeof s != "function")
|
|
229
229
|
return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
|
|
230
230
|
var h = E[f];
|
|
231
231
|
if (!Array.isArray(h)) {
|
|
232
|
-
var y =
|
|
233
|
-
return new C("Invalid " +
|
|
232
|
+
var y = V(h);
|
|
233
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an array."));
|
|
234
234
|
}
|
|
235
|
-
for (var
|
|
236
|
-
var
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
235
|
+
for (var x = 0; x < h.length; x++) {
|
|
236
|
+
var v = s(h, x, p, m, d + "[" + x + "]", t);
|
|
237
|
+
if (v instanceof Error)
|
|
238
|
+
return v;
|
|
239
239
|
}
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return w(a);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
function
|
|
244
|
+
function Re() {
|
|
245
|
+
function s(a, E, f, p, m) {
|
|
246
246
|
var d = a[E];
|
|
247
|
-
if (!
|
|
248
|
-
var h =
|
|
249
|
-
return new C("Invalid " + p + " `" +
|
|
247
|
+
if (!c(d)) {
|
|
248
|
+
var h = V(d);
|
|
249
|
+
return new C("Invalid " + p + " `" + m + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement."));
|
|
250
250
|
}
|
|
251
251
|
return null;
|
|
252
252
|
}
|
|
253
|
-
return
|
|
253
|
+
return w(s);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
function
|
|
255
|
+
function $e() {
|
|
256
|
+
function s(a, E, f, p, m) {
|
|
257
257
|
var d = a[E];
|
|
258
258
|
if (!n.isValidElementType(d)) {
|
|
259
|
-
var h =
|
|
260
|
-
return new C("Invalid " + p + " `" +
|
|
259
|
+
var h = V(d);
|
|
260
|
+
return new C("Invalid " + p + " `" + m + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement type."));
|
|
261
261
|
}
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
|
-
return
|
|
264
|
+
return w(s);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
function a(E, f, p,
|
|
268
|
-
if (!(E[f] instanceof
|
|
269
|
-
var h =
|
|
270
|
-
return new C("Invalid " +
|
|
266
|
+
function je(s) {
|
|
267
|
+
function a(E, f, p, m, d) {
|
|
268
|
+
if (!(E[f] instanceof s)) {
|
|
269
|
+
var h = s.name || S, y = qe(E[f]);
|
|
270
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected ") + ("instance of `" + h + "`."));
|
|
271
271
|
}
|
|
272
272
|
return null;
|
|
273
273
|
}
|
|
274
|
-
return
|
|
274
|
+
return w(a);
|
|
275
275
|
}
|
|
276
|
-
function De(
|
|
277
|
-
if (!Array.isArray(
|
|
276
|
+
function De(s) {
|
|
277
|
+
if (!Array.isArray(s))
|
|
278
278
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
279
279
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
280
|
-
) : i("Invalid argument supplied to oneOf, expected an array.")),
|
|
281
|
-
function a(E, f, p,
|
|
282
|
-
for (var h = E[f], y = 0; y <
|
|
283
|
-
if (
|
|
280
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
281
|
+
function a(E, f, p, m, d) {
|
|
282
|
+
for (var h = E[f], y = 0; y < s.length; y++)
|
|
283
|
+
if (B(h, s[y]))
|
|
284
284
|
return null;
|
|
285
|
-
var
|
|
286
|
-
var
|
|
287
|
-
return
|
|
285
|
+
var x = JSON.stringify(s, function(v, k) {
|
|
286
|
+
var R = U(k);
|
|
287
|
+
return R === "symbol" ? String(k) : k;
|
|
288
288
|
});
|
|
289
|
-
return new C("Invalid " +
|
|
289
|
+
return new C("Invalid " + m + " `" + d + "` of value `" + String(h) + "` " + ("supplied to `" + p + "`, expected one of " + x + "."));
|
|
290
290
|
}
|
|
291
|
-
return
|
|
291
|
+
return w(a);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
function a(E, f, p,
|
|
295
|
-
if (typeof
|
|
293
|
+
function Pe(s) {
|
|
294
|
+
function a(E, f, p, m, d) {
|
|
295
|
+
if (typeof s != "function")
|
|
296
296
|
return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
|
|
297
|
-
var h = E[f], y =
|
|
297
|
+
var h = E[f], y = V(h);
|
|
298
298
|
if (y !== "object")
|
|
299
|
-
return new C("Invalid " +
|
|
300
|
-
for (var
|
|
301
|
-
if (r(h,
|
|
302
|
-
var
|
|
303
|
-
if (
|
|
304
|
-
return
|
|
299
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an object."));
|
|
300
|
+
for (var x in h)
|
|
301
|
+
if (r(h, x)) {
|
|
302
|
+
var v = s(h, x, p, m, d + "." + x, t);
|
|
303
|
+
if (v instanceof Error)
|
|
304
|
+
return v;
|
|
305
305
|
}
|
|
306
306
|
return null;
|
|
307
307
|
}
|
|
308
|
-
return
|
|
308
|
+
return w(a);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
if (!Array.isArray(
|
|
312
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
313
|
-
for (var a = 0; a <
|
|
314
|
-
var E =
|
|
310
|
+
function Ie(s) {
|
|
311
|
+
if (!Array.isArray(s))
|
|
312
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
313
|
+
for (var a = 0; a < s.length; a++) {
|
|
314
|
+
var E = s[a];
|
|
315
315
|
if (typeof E != "function")
|
|
316
316
|
return i(
|
|
317
317
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Me(E) + " at index " + a + "."
|
|
318
|
-
),
|
|
318
|
+
), u;
|
|
319
319
|
}
|
|
320
|
-
function f(p,
|
|
321
|
-
for (var
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
320
|
+
function f(p, m, d, h, y) {
|
|
321
|
+
for (var x = [], v = 0; v < s.length; v++) {
|
|
322
|
+
var k = s[v], R = k(p, m, d, h, y, t);
|
|
323
|
+
if (R == null)
|
|
324
324
|
return null;
|
|
325
|
-
|
|
325
|
+
R.data && r(R.data, "expectedType") && x.push(R.data.expectedType);
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" + d + "`" +
|
|
327
|
+
var K = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
|
|
328
|
+
return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" + d + "`" + K + "."));
|
|
329
329
|
}
|
|
330
|
-
return
|
|
330
|
+
return w(f);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
function
|
|
334
|
-
return
|
|
332
|
+
function Ae() {
|
|
333
|
+
function s(a, E, f, p, m) {
|
|
334
|
+
return X(a[E]) ? null : new C("Invalid " + p + " `" + m + "` supplied to " + ("`" + f + "`, expected a ReactNode."));
|
|
335
335
|
}
|
|
336
|
-
return
|
|
336
|
+
return w(s);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function de(s, a, E, f, p) {
|
|
339
339
|
return new C(
|
|
340
|
-
(
|
|
340
|
+
(s || "React class") + ": " + a + " type `" + E + "." + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
function a(E, f, p,
|
|
345
|
-
var h = E[f], y =
|
|
343
|
+
function Ve(s) {
|
|
344
|
+
function a(E, f, p, m, d) {
|
|
345
|
+
var h = E[f], y = V(h);
|
|
346
346
|
if (y !== "object")
|
|
347
|
-
return new C("Invalid " +
|
|
348
|
-
for (var
|
|
349
|
-
var
|
|
350
|
-
if (typeof
|
|
351
|
-
return
|
|
352
|
-
var
|
|
353
|
-
if (
|
|
354
|
-
return
|
|
347
|
+
return new C("Invalid " + m + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
348
|
+
for (var x in s) {
|
|
349
|
+
var v = s[x];
|
|
350
|
+
if (typeof v != "function")
|
|
351
|
+
return de(p, m, d, x, U(v));
|
|
352
|
+
var k = v(h, x, p, m, d + "." + x, t);
|
|
353
|
+
if (k)
|
|
354
|
+
return k;
|
|
355
355
|
}
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return w(a);
|
|
359
359
|
}
|
|
360
|
-
function _e(
|
|
361
|
-
function a(E, f, p,
|
|
362
|
-
var h = E[f], y =
|
|
360
|
+
function _e(s) {
|
|
361
|
+
function a(E, f, p, m, d) {
|
|
362
|
+
var h = E[f], y = V(h);
|
|
363
363
|
if (y !== "object")
|
|
364
|
-
return new C("Invalid " +
|
|
365
|
-
var
|
|
366
|
-
for (var
|
|
367
|
-
var
|
|
368
|
-
if (r(
|
|
369
|
-
return
|
|
370
|
-
if (!
|
|
364
|
+
return new C("Invalid " + m + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
365
|
+
var x = e({}, E[f], s);
|
|
366
|
+
for (var v in x) {
|
|
367
|
+
var k = s[v];
|
|
368
|
+
if (r(s, v) && typeof k != "function")
|
|
369
|
+
return de(p, m, d, v, U(k));
|
|
370
|
+
if (!k)
|
|
371
371
|
return new C(
|
|
372
|
-
"Invalid " +
|
|
373
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
372
|
+
"Invalid " + m + " `" + d + "` key `" + v + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(E[f], null, " ") + `
|
|
373
|
+
Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
374
374
|
);
|
|
375
|
-
var
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
375
|
+
var R = k(h, v, p, m, d + "." + v, t);
|
|
376
|
+
if (R)
|
|
377
|
+
return R;
|
|
378
378
|
}
|
|
379
379
|
return null;
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return w(a);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
switch (typeof
|
|
383
|
+
function X(s) {
|
|
384
|
+
switch (typeof s) {
|
|
385
385
|
case "number":
|
|
386
386
|
case "string":
|
|
387
387
|
case "undefined":
|
|
388
388
|
return !0;
|
|
389
389
|
case "boolean":
|
|
390
|
-
return !
|
|
390
|
+
return !s;
|
|
391
391
|
case "object":
|
|
392
|
-
if (Array.isArray(
|
|
393
|
-
return
|
|
394
|
-
if (
|
|
392
|
+
if (Array.isArray(s))
|
|
393
|
+
return s.every(X);
|
|
394
|
+
if (s === null || c(s))
|
|
395
395
|
return !0;
|
|
396
|
-
var a =
|
|
396
|
+
var a = T(s);
|
|
397
397
|
if (a) {
|
|
398
|
-
var E = a.call(
|
|
399
|
-
if (a !==
|
|
398
|
+
var E = a.call(s), f;
|
|
399
|
+
if (a !== s.entries) {
|
|
400
400
|
for (; !(f = E.next()).done; )
|
|
401
|
-
if (!
|
|
401
|
+
if (!X(f.value))
|
|
402
402
|
return !1;
|
|
403
403
|
} else
|
|
404
404
|
for (; !(f = E.next()).done; ) {
|
|
405
405
|
var p = f.value;
|
|
406
|
-
if (p && !
|
|
406
|
+
if (p && !X(p[1]))
|
|
407
407
|
return !1;
|
|
408
408
|
}
|
|
409
409
|
} else
|
|
@@ -413,27 +413,27 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function Le(
|
|
417
|
-
return
|
|
416
|
+
function Le(s, a) {
|
|
417
|
+
return s === "symbol" ? !0 : a ? a["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && a instanceof Symbol : !1;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
var a = typeof
|
|
421
|
-
return Array.isArray(
|
|
419
|
+
function V(s) {
|
|
420
|
+
var a = typeof s;
|
|
421
|
+
return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : Le(a, s) ? "symbol" : a;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
if (typeof
|
|
425
|
-
return "" +
|
|
426
|
-
var a =
|
|
423
|
+
function U(s) {
|
|
424
|
+
if (typeof s > "u" || s === null)
|
|
425
|
+
return "" + s;
|
|
426
|
+
var a = V(s);
|
|
427
427
|
if (a === "object") {
|
|
428
|
-
if (
|
|
428
|
+
if (s instanceof Date)
|
|
429
429
|
return "date";
|
|
430
|
-
if (
|
|
430
|
+
if (s instanceof RegExp)
|
|
431
431
|
return "regexp";
|
|
432
432
|
}
|
|
433
433
|
return a;
|
|
434
434
|
}
|
|
435
|
-
function Me(
|
|
436
|
-
var a =
|
|
435
|
+
function Me(s) {
|
|
436
|
+
var a = U(s);
|
|
437
437
|
switch (a) {
|
|
438
438
|
case "array":
|
|
439
439
|
case "object":
|
|
@@ -446,32 +446,32 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
446
446
|
return a;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
return !
|
|
449
|
+
function qe(s) {
|
|
450
|
+
return !s.constructor || !s.constructor.name ? S : s.constructor.name;
|
|
451
451
|
}
|
|
452
|
-
return
|
|
452
|
+
return A.checkPropTypes = o, A.resetWarningCache = o.resetWarningCache, A.PropTypes = A, A;
|
|
453
453
|
}, oe;
|
|
454
454
|
}
|
|
455
|
-
var
|
|
456
|
-
function
|
|
457
|
-
if (be) return
|
|
455
|
+
var se, be;
|
|
456
|
+
function Be() {
|
|
457
|
+
if (be) return se;
|
|
458
458
|
be = 1;
|
|
459
|
-
var n = /* @__PURE__ */
|
|
459
|
+
var n = /* @__PURE__ */ ue();
|
|
460
460
|
function e() {
|
|
461
461
|
}
|
|
462
462
|
function t() {
|
|
463
463
|
}
|
|
464
|
-
return t.resetWarningCache = e,
|
|
465
|
-
function r(
|
|
466
|
-
if (
|
|
467
|
-
var
|
|
464
|
+
return t.resetWarningCache = e, se = function() {
|
|
465
|
+
function r(u, c, O, N, b, T) {
|
|
466
|
+
if (T !== n) {
|
|
467
|
+
var S = new Error(
|
|
468
468
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
469
469
|
);
|
|
470
|
-
throw
|
|
470
|
+
throw S.name = "Invariant Violation", S;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
r.isRequired = r;
|
|
474
|
-
function
|
|
474
|
+
function o() {
|
|
475
475
|
return r;
|
|
476
476
|
}
|
|
477
477
|
var i = {
|
|
@@ -484,34 +484,34 @@ function Je() {
|
|
|
484
484
|
string: r,
|
|
485
485
|
symbol: r,
|
|
486
486
|
any: r,
|
|
487
|
-
arrayOf:
|
|
487
|
+
arrayOf: o,
|
|
488
488
|
element: r,
|
|
489
489
|
elementType: r,
|
|
490
|
-
instanceOf:
|
|
490
|
+
instanceOf: o,
|
|
491
491
|
node: r,
|
|
492
|
-
objectOf:
|
|
493
|
-
oneOf:
|
|
494
|
-
oneOfType:
|
|
495
|
-
shape:
|
|
496
|
-
exact:
|
|
492
|
+
objectOf: o,
|
|
493
|
+
oneOf: o,
|
|
494
|
+
oneOfType: o,
|
|
495
|
+
shape: o,
|
|
496
|
+
exact: o,
|
|
497
497
|
checkPropTypes: t,
|
|
498
498
|
resetWarningCache: e
|
|
499
499
|
};
|
|
500
500
|
return i.PropTypes = i, i;
|
|
501
|
-
},
|
|
501
|
+
}, se;
|
|
502
502
|
}
|
|
503
|
-
var
|
|
504
|
-
function
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
var n =
|
|
508
|
-
Q.exports = /* @__PURE__ */
|
|
503
|
+
var ge;
|
|
504
|
+
function He() {
|
|
505
|
+
if (ge) return Q.exports;
|
|
506
|
+
if (ge = 1, process.env.NODE_ENV !== "production") {
|
|
507
|
+
var n = Ne, e = !0;
|
|
508
|
+
Q.exports = /* @__PURE__ */ ze()(n.isElement, e);
|
|
509
509
|
} else
|
|
510
|
-
Q.exports = /* @__PURE__ */
|
|
510
|
+
Q.exports = /* @__PURE__ */ Be()();
|
|
511
511
|
return Q.exports;
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
const
|
|
513
|
+
var Xe = /* @__PURE__ */ He();
|
|
514
|
+
const l = /* @__PURE__ */ Ye(Xe);
|
|
515
515
|
function Oe(n, e) {
|
|
516
516
|
return n.replace(new RegExp(`(^|\\s)${e}(?:\\s|$)`, "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
517
517
|
}
|
|
@@ -527,39 +527,39 @@ function Ke(n, e) {
|
|
|
527
527
|
)
|
|
528
528
|
);
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const J = g.createContext(null);
|
|
531
531
|
var Qe = Object.defineProperty, Ze = (n, e, t) => e in n ? Qe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, et = (n, e, t) => Ze(n, e + "", t);
|
|
532
|
-
const tt = process.env.NODE_ENV !== "production" ?
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
enter:
|
|
536
|
-
exit:
|
|
537
|
-
appear:
|
|
532
|
+
const tt = process.env.NODE_ENV !== "production" ? l.oneOfType([
|
|
533
|
+
l.number,
|
|
534
|
+
l.shape({
|
|
535
|
+
enter: l.number,
|
|
536
|
+
exit: l.number,
|
|
537
|
+
appear: l.number
|
|
538
538
|
}).isRequired
|
|
539
|
-
]) : null, nt = process.env.NODE_ENV !== "production" ?
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
enter:
|
|
543
|
-
exit:
|
|
544
|
-
active:
|
|
539
|
+
]) : null, nt = process.env.NODE_ENV !== "production" ? l.oneOfType([
|
|
540
|
+
l.string,
|
|
541
|
+
l.shape({
|
|
542
|
+
enter: l.string,
|
|
543
|
+
exit: l.string,
|
|
544
|
+
active: l.string
|
|
545
545
|
}),
|
|
546
|
-
|
|
547
|
-
enter:
|
|
548
|
-
enterDone:
|
|
549
|
-
enterActive:
|
|
550
|
-
exit:
|
|
551
|
-
exitDone:
|
|
552
|
-
exitActive:
|
|
546
|
+
l.shape({
|
|
547
|
+
enter: l.string,
|
|
548
|
+
enterDone: l.string,
|
|
549
|
+
enterActive: l.string,
|
|
550
|
+
exit: l.string,
|
|
551
|
+
exitDone: l.string,
|
|
552
|
+
exitActive: l.string
|
|
553
553
|
})
|
|
554
|
-
]) : null,
|
|
555
|
-
let
|
|
554
|
+
]) : null, Te = (n) => n.scrollTop, G = "unmounted", L = "exited", $ = "entering", D = "entered", z = "exiting";
|
|
555
|
+
let P = class extends g.Component {
|
|
556
556
|
constructor(e, t) {
|
|
557
557
|
super(e, t);
|
|
558
|
-
let r = t,
|
|
559
|
-
this.appearStatus = null, e.in ?
|
|
558
|
+
let r = t, o = r && !r.isMounting ? e.enter : e.appear, i;
|
|
559
|
+
this.appearStatus = null, e.in ? o ? (i = L, this.appearStatus = $) : i = D : e.unmountOnExit || e.mountOnEnter ? i = G : i = L, this.state = { status: i }, this.nextCallback = null;
|
|
560
560
|
}
|
|
561
561
|
static getDerivedStateFromProps({ in: e }, t) {
|
|
562
|
-
return e && t.status ===
|
|
562
|
+
return e && t.status === G ? { status: L } : null;
|
|
563
563
|
}
|
|
564
564
|
// getSnapshotBeforeUpdate(prevProps) {
|
|
565
565
|
// let nextStatus = null
|
|
@@ -584,7 +584,7 @@ let A = class extends x.Component {
|
|
|
584
584
|
let t = null;
|
|
585
585
|
if (e !== this.props) {
|
|
586
586
|
const { status: r } = this.state;
|
|
587
|
-
this.props.in ? r !==
|
|
587
|
+
this.props.in ? r !== $ && r !== D && (t = $) : (r === $ || r === D) && (t = z);
|
|
588
588
|
}
|
|
589
589
|
this.updateStatus(!1, t);
|
|
590
590
|
}
|
|
@@ -593,46 +593,46 @@ let A = class extends x.Component {
|
|
|
593
593
|
}
|
|
594
594
|
getTimeouts() {
|
|
595
595
|
const { timeout: e } = this.props;
|
|
596
|
-
let t, r,
|
|
597
|
-
return t = r =
|
|
596
|
+
let t, r, o;
|
|
597
|
+
return t = r = o = e, e != null && typeof e != "number" && (t = e.exit, r = e.enter, o = e.appear !== void 0 ? e.appear : r), { exit: t, enter: r, appear: o };
|
|
598
598
|
}
|
|
599
599
|
updateStatus(e = !1, t) {
|
|
600
600
|
if (t !== null)
|
|
601
|
-
if (this.cancelNextCallback(), t ===
|
|
601
|
+
if (this.cancelNextCallback(), t === $) {
|
|
602
602
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
603
|
-
const r = this.props.nodeRef ? this.props.nodeRef.current :
|
|
604
|
-
r &&
|
|
603
|
+
const r = this.props.nodeRef ? this.props.nodeRef.current : Y.findDOMNode(this);
|
|
604
|
+
r && Te(r);
|
|
605
605
|
}
|
|
606
606
|
this.performEnter(e);
|
|
607
607
|
} else
|
|
608
608
|
this.performExit();
|
|
609
|
-
else this.props.unmountOnExit && this.state.status === L && this.setState({ status:
|
|
609
|
+
else this.props.unmountOnExit && this.state.status === L && this.setState({ status: G });
|
|
610
610
|
}
|
|
611
611
|
performEnter(e) {
|
|
612
|
-
const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [
|
|
613
|
-
if (!e && !t ||
|
|
612
|
+
const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [o, i] = this.props.nodeRef ? [r] : [Y.findDOMNode(this), r], u = this.getTimeouts(), c = r ? u.appear : u.enter;
|
|
613
|
+
if (!e && !t || fe.disabled) {
|
|
614
614
|
this.safeSetState({ status: D }, () => {
|
|
615
|
-
this.props.onEntered(
|
|
615
|
+
this.props.onEntered(o);
|
|
616
616
|
});
|
|
617
617
|
return;
|
|
618
618
|
}
|
|
619
|
-
this.props.onEnter(
|
|
620
|
-
this.props.onEntering(
|
|
619
|
+
this.props.onEnter(o, i), this.safeSetState({ status: $ }, () => {
|
|
620
|
+
this.props.onEntering(o, i), this.onTransitionEnd(c, () => {
|
|
621
621
|
this.safeSetState({ status: D }, () => {
|
|
622
|
-
this.props.onEntered(
|
|
622
|
+
this.props.onEntered(o, i);
|
|
623
623
|
});
|
|
624
624
|
});
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
performExit() {
|
|
628
|
-
const { exit: e } = this.props, t = this.getTimeouts(), r = this.props.nodeRef ? void 0 :
|
|
629
|
-
if (!e ||
|
|
628
|
+
const { exit: e } = this.props, t = this.getTimeouts(), r = this.props.nodeRef ? void 0 : Y.findDOMNode(this);
|
|
629
|
+
if (!e || fe.disabled) {
|
|
630
630
|
this.safeSetState({ status: L }, () => {
|
|
631
631
|
this.props.onExited(r);
|
|
632
632
|
});
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
|
-
this.props.onExit(r), this.safeSetState({ status:
|
|
635
|
+
this.props.onExit(r), this.safeSetState({ status: z }, () => {
|
|
636
636
|
this.props.onExiting(r), this.onTransitionEnd(t.exit, () => {
|
|
637
637
|
this.safeSetState({ status: L }, () => {
|
|
638
638
|
this.props.onExited(r);
|
|
@@ -656,49 +656,49 @@ let A = class extends x.Component {
|
|
|
656
656
|
}
|
|
657
657
|
onTransitionEnd(e, t) {
|
|
658
658
|
this.setNextCallback(t);
|
|
659
|
-
const r = this.props.nodeRef ? this.props.nodeRef.current :
|
|
660
|
-
if (!r ||
|
|
659
|
+
const r = this.props.nodeRef ? this.props.nodeRef.current : Y.findDOMNode(this), o = e == null && !this.props.addEndListener;
|
|
660
|
+
if (!r || o) {
|
|
661
661
|
setTimeout(this.nextCallback, 0);
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
664
|
if (this.props.addEndListener) {
|
|
665
|
-
const [i,
|
|
666
|
-
this.props.addEndListener(i,
|
|
665
|
+
const [i, u] = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback];
|
|
666
|
+
this.props.addEndListener(i, u);
|
|
667
667
|
}
|
|
668
668
|
e != null && setTimeout(this.nextCallback, e);
|
|
669
669
|
}
|
|
670
670
|
render() {
|
|
671
671
|
const e = this.state.status;
|
|
672
|
-
if (e ===
|
|
672
|
+
if (e === G)
|
|
673
673
|
return null;
|
|
674
674
|
const {
|
|
675
675
|
children: t,
|
|
676
676
|
// filter props for `Transition`
|
|
677
677
|
in: r,
|
|
678
|
-
mountOnEnter:
|
|
678
|
+
mountOnEnter: o,
|
|
679
679
|
unmountOnExit: i,
|
|
680
|
-
appear:
|
|
681
|
-
enter:
|
|
680
|
+
appear: u,
|
|
681
|
+
enter: c,
|
|
682
682
|
exit: O,
|
|
683
|
-
timeout:
|
|
683
|
+
timeout: N,
|
|
684
684
|
addEndListener: b,
|
|
685
|
-
onEnter:
|
|
686
|
-
onEntering:
|
|
687
|
-
onEntered:
|
|
688
|
-
onExit:
|
|
685
|
+
onEnter: T,
|
|
686
|
+
onEntering: S,
|
|
687
|
+
onEntered: A,
|
|
688
|
+
onExit: B,
|
|
689
689
|
onExiting: C,
|
|
690
|
-
onExited:
|
|
690
|
+
onExited: w,
|
|
691
691
|
nodeRef: I,
|
|
692
|
-
...
|
|
692
|
+
...H
|
|
693
693
|
} = this.props;
|
|
694
694
|
return (
|
|
695
695
|
// allows for nested Transitions
|
|
696
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ q(J.Provider, { value: null, children: typeof t == "function" ? t(e, H) : g.cloneElement(g.Children.only(t), H) })
|
|
697
697
|
);
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
et(
|
|
701
|
-
|
|
700
|
+
et(P, "contextType", J);
|
|
701
|
+
P.propTypes = {
|
|
702
702
|
/**
|
|
703
703
|
* A React reference to the DOM element that needs to transition:
|
|
704
704
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -713,12 +713,12 @@ A.propTypes = {
|
|
|
713
713
|
* (see
|
|
714
714
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
715
715
|
*/
|
|
716
|
-
nodeRef:
|
|
717
|
-
current: typeof Element > "u" ?
|
|
718
|
-
const
|
|
719
|
-
return
|
|
720
|
-
|
|
721
|
-
)(n, e, t, r,
|
|
716
|
+
nodeRef: l.shape({
|
|
717
|
+
current: typeof Element > "u" ? l.any : (n, e, t, r, o, i) => {
|
|
718
|
+
const u = n[e];
|
|
719
|
+
return l.instanceOf(
|
|
720
|
+
u && "ownerDocument" in u ? u.ownerDocument.defaultView.Element : Element
|
|
721
|
+
)(n, e, t, r, o, i);
|
|
722
722
|
}
|
|
723
723
|
}),
|
|
724
724
|
/**
|
|
@@ -735,26 +735,26 @@ A.propTypes = {
|
|
|
735
735
|
* </Transition>
|
|
736
736
|
* ```
|
|
737
737
|
*/
|
|
738
|
-
children:
|
|
739
|
-
|
|
740
|
-
|
|
738
|
+
children: l.oneOfType([
|
|
739
|
+
l.func.isRequired,
|
|
740
|
+
l.element.isRequired
|
|
741
741
|
]).isRequired,
|
|
742
742
|
/**
|
|
743
743
|
* Show the component; triggers the enter or exit states
|
|
744
744
|
*/
|
|
745
|
-
in:
|
|
745
|
+
in: l.bool,
|
|
746
746
|
/**
|
|
747
747
|
* By default the child component is mounted immediately along with
|
|
748
748
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
749
749
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
750
750
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
751
751
|
*/
|
|
752
|
-
mountOnEnter:
|
|
752
|
+
mountOnEnter: l.bool,
|
|
753
753
|
/**
|
|
754
754
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
755
755
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
756
756
|
*/
|
|
757
|
-
unmountOnExit:
|
|
757
|
+
unmountOnExit: l.bool,
|
|
758
758
|
/**
|
|
759
759
|
* By default the child component does not perform the enter transition when
|
|
760
760
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -766,15 +766,15 @@ A.propTypes = {
|
|
|
766
766
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
767
767
|
* > differently.
|
|
768
768
|
*/
|
|
769
|
-
appear:
|
|
769
|
+
appear: l.bool,
|
|
770
770
|
/**
|
|
771
771
|
* Enable or disable enter transitions.
|
|
772
772
|
*/
|
|
773
|
-
enter:
|
|
773
|
+
enter: l.bool,
|
|
774
774
|
/**
|
|
775
775
|
* Enable or disable exit transitions.
|
|
776
776
|
*/
|
|
777
|
-
exit:
|
|
777
|
+
exit: l.bool,
|
|
778
778
|
/**
|
|
779
779
|
* The duration of the transition, in milliseconds.
|
|
780
780
|
* Required unless `addEndListener` is provided.
|
|
@@ -819,7 +819,7 @@ A.propTypes = {
|
|
|
819
819
|
* }}
|
|
820
820
|
* ```
|
|
821
821
|
*/
|
|
822
|
-
addEndListener:
|
|
822
|
+
addEndListener: l.func,
|
|
823
823
|
/**
|
|
824
824
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
825
825
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -828,7 +828,7 @@ A.propTypes = {
|
|
|
828
828
|
*
|
|
829
829
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
830
830
|
*/
|
|
831
|
-
onEnter:
|
|
831
|
+
onEnter: l.func,
|
|
832
832
|
/**
|
|
833
833
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
834
834
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -837,7 +837,7 @@ A.propTypes = {
|
|
|
837
837
|
*
|
|
838
838
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
839
839
|
*/
|
|
840
|
-
onEntering:
|
|
840
|
+
onEntering: l.func,
|
|
841
841
|
/**
|
|
842
842
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
843
843
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -846,7 +846,7 @@ A.propTypes = {
|
|
|
846
846
|
*
|
|
847
847
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
848
848
|
*/
|
|
849
|
-
onEntered:
|
|
849
|
+
onEntered: l.func,
|
|
850
850
|
/**
|
|
851
851
|
* Callback fired before the "exiting" status is applied.
|
|
852
852
|
*
|
|
@@ -854,7 +854,7 @@ A.propTypes = {
|
|
|
854
854
|
*
|
|
855
855
|
* @type Function(node: HtmlElement) -> void
|
|
856
856
|
*/
|
|
857
|
-
onExit:
|
|
857
|
+
onExit: l.func,
|
|
858
858
|
/**
|
|
859
859
|
* Callback fired after the "exiting" status is applied.
|
|
860
860
|
*
|
|
@@ -862,7 +862,7 @@ A.propTypes = {
|
|
|
862
862
|
*
|
|
863
863
|
* @type Function(node: HtmlElement) -> void
|
|
864
864
|
*/
|
|
865
|
-
onExiting:
|
|
865
|
+
onExiting: l.func,
|
|
866
866
|
/**
|
|
867
867
|
* Callback fired after the "exited" status is applied.
|
|
868
868
|
*
|
|
@@ -870,82 +870,82 @@ A.propTypes = {
|
|
|
870
870
|
*
|
|
871
871
|
* @type Function(node: HtmlElement) -> void
|
|
872
872
|
*/
|
|
873
|
-
onExited:
|
|
873
|
+
onExited: l.func
|
|
874
874
|
};
|
|
875
|
-
function
|
|
875
|
+
function W() {
|
|
876
876
|
}
|
|
877
|
-
|
|
877
|
+
P.defaultProps = {
|
|
878
878
|
in: !1,
|
|
879
879
|
mountOnEnter: !1,
|
|
880
880
|
unmountOnExit: !1,
|
|
881
881
|
appear: !1,
|
|
882
882
|
enter: !0,
|
|
883
883
|
exit: !0,
|
|
884
|
-
onEnter:
|
|
885
|
-
onEntering:
|
|
886
|
-
onEntered:
|
|
887
|
-
onExit:
|
|
888
|
-
onExiting:
|
|
889
|
-
onExited:
|
|
884
|
+
onEnter: W,
|
|
885
|
+
onEntering: W,
|
|
886
|
+
onEntered: W,
|
|
887
|
+
onExit: W,
|
|
888
|
+
onExiting: W,
|
|
889
|
+
onExited: W
|
|
890
890
|
};
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
var rt = Object.defineProperty, it = (n, e, t) => e in n ? rt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
897
|
-
const
|
|
898
|
-
let
|
|
891
|
+
P.UNMOUNTED = G;
|
|
892
|
+
P.EXITED = L;
|
|
893
|
+
P.ENTERING = $;
|
|
894
|
+
P.ENTERED = D;
|
|
895
|
+
P.EXITING = z;
|
|
896
|
+
var rt = Object.defineProperty, it = (n, e, t) => e in n ? rt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j = (n, e, t) => it(n, typeof e != "symbol" ? e + "" : e, t);
|
|
897
|
+
const ot = (n, e) => n && e && e.split(" ").forEach((t) => Ue(n, t)), ae = (n, e) => n && e && e.split(" ").forEach((t) => Ke(n, t));
|
|
898
|
+
let Se = class extends g.Component {
|
|
899
899
|
constructor() {
|
|
900
|
-
super(...arguments),
|
|
900
|
+
super(...arguments), j(this, "appliedClasses", {
|
|
901
901
|
appear: {},
|
|
902
902
|
enter: {},
|
|
903
903
|
exit: {}
|
|
904
|
-
}),
|
|
905
|
-
const [r,
|
|
906
|
-
this.removeClasses(r, "exit"), this.addClass(r,
|
|
907
|
-
}),
|
|
908
|
-
const [r,
|
|
904
|
+
}), j(this, "onEnter", (e, t) => {
|
|
905
|
+
const [r, o] = this.resolveArguments(e, t);
|
|
906
|
+
this.removeClasses(r, "exit"), this.addClass(r, o ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(e, t);
|
|
907
|
+
}), j(this, "onEntering", (e, t) => {
|
|
908
|
+
const [r, o] = this.resolveArguments(e, t), i = o ? "appear" : "enter";
|
|
909
909
|
this.addClass(r, i, "active"), this.props.onEntering && this.props.onEntering(e, t);
|
|
910
|
-
}),
|
|
911
|
-
const [r,
|
|
910
|
+
}), j(this, "onEntered", (e, t) => {
|
|
911
|
+
const [r, o] = this.resolveArguments(e, t), i = o ? "appear" : "enter";
|
|
912
912
|
this.removeClasses(r, i), this.addClass(r, i, "done"), this.props.onEntered && this.props.onEntered(e, t);
|
|
913
|
-
}),
|
|
913
|
+
}), j(this, "onExit", (e) => {
|
|
914
914
|
const [t] = this.resolveArguments(e);
|
|
915
915
|
this.removeClasses(t, "appear"), this.removeClasses(t, "enter"), this.addClass(t, "exit", "base"), this.props.onExit && this.props.onExit(e);
|
|
916
|
-
}),
|
|
916
|
+
}), j(this, "onExiting", (e) => {
|
|
917
917
|
const [t] = this.resolveArguments(e);
|
|
918
918
|
this.addClass(t, "exit", "active"), this.props.onExiting && this.props.onExiting(e);
|
|
919
|
-
}),
|
|
919
|
+
}), j(this, "onExited", (e) => {
|
|
920
920
|
const [t] = this.resolveArguments(e);
|
|
921
921
|
this.removeClasses(t, "exit"), this.addClass(t, "exit", "done"), this.props.onExited && this.props.onExited(e);
|
|
922
|
-
}),
|
|
923
|
-
const { classNames: t } = this.props, r = typeof t == "string",
|
|
924
|
-
let i = r ? `${
|
|
922
|
+
}), j(this, "resolveArguments", (e, t) => this.props.nodeRef ? [this.props.nodeRef.current, e] : [e, t]), j(this, "getClassNames", (e) => {
|
|
923
|
+
const { classNames: t } = this.props, r = typeof t == "string", o = r && t ? `${t}-` : "";
|
|
924
|
+
let i = r ? `${o}${e}` : t[e], u = r ? `${i}-active` : t[`${e}Active`], c = r ? `${i}-done` : t[`${e}Done`];
|
|
925
925
|
return {
|
|
926
926
|
baseClassName: i,
|
|
927
|
-
activeClassName:
|
|
928
|
-
doneClassName:
|
|
927
|
+
activeClassName: u,
|
|
928
|
+
doneClassName: c
|
|
929
929
|
};
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
932
|
addClass(e, t, r) {
|
|
933
|
-
let
|
|
933
|
+
let o = this.getClassNames(t)[`${r}ClassName`];
|
|
934
934
|
const { doneClassName: i } = this.getClassNames("enter");
|
|
935
|
-
t === "appear" && r === "done" && i && (
|
|
935
|
+
t === "appear" && r === "done" && i && (o += ` ${i}`), r === "active" && e && Te(e), o && (this.appliedClasses[t][r] = o, ot(e, o));
|
|
936
936
|
}
|
|
937
937
|
removeClasses(e, t) {
|
|
938
938
|
const {
|
|
939
939
|
base: r,
|
|
940
|
-
active:
|
|
940
|
+
active: o,
|
|
941
941
|
done: i
|
|
942
942
|
} = this.appliedClasses[t];
|
|
943
|
-
this.appliedClasses[t] = {}, r &&
|
|
943
|
+
this.appliedClasses[t] = {}, r && ae(e, r), o && ae(e, o), i && ae(e, i);
|
|
944
944
|
}
|
|
945
945
|
render() {
|
|
946
946
|
const { classNames: e, ...t } = this.props;
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
|
|
947
|
+
return /* @__PURE__ */ q(
|
|
948
|
+
P,
|
|
949
949
|
{
|
|
950
950
|
...t,
|
|
951
951
|
onEnter: this.onEnter,
|
|
@@ -958,11 +958,11 @@ let Re = class extends x.Component {
|
|
|
958
958
|
);
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
j(Se, "defaultProps", {
|
|
962
962
|
classNames: ""
|
|
963
963
|
});
|
|
964
|
-
|
|
965
|
-
...
|
|
964
|
+
Se.propTypes = {
|
|
965
|
+
...P.propTypes,
|
|
966
966
|
/**
|
|
967
967
|
* The animation classNames applied to the component as it appears, enters,
|
|
968
968
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -1040,7 +1040,7 @@ Re.propTypes = {
|
|
|
1040
1040
|
*
|
|
1041
1041
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1042
1042
|
*/
|
|
1043
|
-
onEnter:
|
|
1043
|
+
onEnter: l.func,
|
|
1044
1044
|
/**
|
|
1045
1045
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
1046
1046
|
* 'appear-active' class is applied.
|
|
@@ -1049,7 +1049,7 @@ Re.propTypes = {
|
|
|
1049
1049
|
*
|
|
1050
1050
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1051
1051
|
*/
|
|
1052
|
-
onEntering:
|
|
1052
|
+
onEntering: l.func,
|
|
1053
1053
|
/**
|
|
1054
1054
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
1055
1055
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -1058,7 +1058,7 @@ Re.propTypes = {
|
|
|
1058
1058
|
*
|
|
1059
1059
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1060
1060
|
*/
|
|
1061
|
-
onEntered:
|
|
1061
|
+
onEntered: l.func,
|
|
1062
1062
|
/**
|
|
1063
1063
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
1064
1064
|
* applied.
|
|
@@ -1067,7 +1067,7 @@ Re.propTypes = {
|
|
|
1067
1067
|
*
|
|
1068
1068
|
* @type Function(node: HtmlElement)
|
|
1069
1069
|
*/
|
|
1070
|
-
onExit:
|
|
1070
|
+
onExit: l.func,
|
|
1071
1071
|
/**
|
|
1072
1072
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
1073
1073
|
*
|
|
@@ -1075,7 +1075,7 @@ Re.propTypes = {
|
|
|
1075
1075
|
*
|
|
1076
1076
|
* @type Function(node: HtmlElement)
|
|
1077
1077
|
*/
|
|
1078
|
-
onExiting:
|
|
1078
|
+
onExiting: l.func,
|
|
1079
1079
|
/**
|
|
1080
1080
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
1081
1081
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -1084,40 +1084,40 @@ Re.propTypes = {
|
|
|
1084
1084
|
*
|
|
1085
1085
|
* @type Function(node: HtmlElement)
|
|
1086
1086
|
*/
|
|
1087
|
-
onExited:
|
|
1087
|
+
onExited: l.func
|
|
1088
1088
|
};
|
|
1089
|
-
function
|
|
1090
|
-
let t = (
|
|
1091
|
-
return n &&
|
|
1092
|
-
r[
|
|
1089
|
+
function ce(n, e) {
|
|
1090
|
+
let t = (o) => e && Z(o) ? e(o) : o, r = /* @__PURE__ */ Object.create(null);
|
|
1091
|
+
return n && We.map(n, (o) => o).forEach((o) => {
|
|
1092
|
+
r[o.key] = t(o);
|
|
1093
1093
|
}), r;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function st(n, e) {
|
|
1096
1096
|
n = n || {}, e = e || {};
|
|
1097
|
-
function t(
|
|
1098
|
-
return
|
|
1097
|
+
function t(c) {
|
|
1098
|
+
return c in e ? e[c] : n[c];
|
|
1099
1099
|
}
|
|
1100
|
-
let r = /* @__PURE__ */ Object.create(null),
|
|
1101
|
-
for (let
|
|
1102
|
-
|
|
1103
|
-
let i,
|
|
1104
|
-
for (let
|
|
1105
|
-
if (r[
|
|
1106
|
-
for (i = 0; i < r[
|
|
1107
|
-
let O = r[
|
|
1108
|
-
|
|
1100
|
+
let r = /* @__PURE__ */ Object.create(null), o = [];
|
|
1101
|
+
for (let c in n)
|
|
1102
|
+
c in e ? o.length && (r[c] = o, o = []) : o.push(c);
|
|
1103
|
+
let i, u = {};
|
|
1104
|
+
for (let c in e) {
|
|
1105
|
+
if (r[c])
|
|
1106
|
+
for (i = 0; i < r[c].length; i++) {
|
|
1107
|
+
let O = r[c][i];
|
|
1108
|
+
u[r[c][i]] = t(O);
|
|
1109
1109
|
}
|
|
1110
|
-
c
|
|
1110
|
+
u[c] = t(c);
|
|
1111
1111
|
}
|
|
1112
|
-
for (i = 0; i <
|
|
1113
|
-
|
|
1114
|
-
return
|
|
1112
|
+
for (i = 0; i < o.length; i++)
|
|
1113
|
+
u[o[i]] = t(o[i]);
|
|
1114
|
+
return u;
|
|
1115
1115
|
}
|
|
1116
1116
|
function M(n, e, t) {
|
|
1117
1117
|
return t[e] != null ? t[e] : n.props[e];
|
|
1118
1118
|
}
|
|
1119
1119
|
function at(n, e) {
|
|
1120
|
-
return
|
|
1120
|
+
return ce(n.children, (t) => ee(t, {
|
|
1121
1121
|
onExited: e.bind(null, t),
|
|
1122
1122
|
in: !0,
|
|
1123
1123
|
appear: M(t, "appear", n),
|
|
@@ -1125,30 +1125,30 @@ function at(n, e) {
|
|
|
1125
1125
|
exit: M(t, "exit", n)
|
|
1126
1126
|
}));
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
let r =
|
|
1130
|
-
return Object.keys(
|
|
1131
|
-
let
|
|
1132
|
-
if (!Z(
|
|
1133
|
-
const
|
|
1134
|
-
O && (!
|
|
1135
|
-
onExited: t.bind(null,
|
|
1128
|
+
function lt(n, e, t) {
|
|
1129
|
+
let r = ce(n.children), o = st(e, r);
|
|
1130
|
+
return Object.keys(o).forEach((i) => {
|
|
1131
|
+
let u = o[i];
|
|
1132
|
+
if (!Z(u)) return;
|
|
1133
|
+
const c = i in e, O = i in r, N = e[i], b = Z(N) && !N.props.in;
|
|
1134
|
+
O && (!c || b) ? o[i] = ee(u, {
|
|
1135
|
+
onExited: t.bind(null, u),
|
|
1136
1136
|
in: !0,
|
|
1137
|
-
exit: M(
|
|
1138
|
-
enter: M(
|
|
1139
|
-
}) : !O &&
|
|
1140
|
-
onExited: t.bind(null,
|
|
1141
|
-
in:
|
|
1142
|
-
exit: M(
|
|
1143
|
-
enter: M(
|
|
1137
|
+
exit: M(u, "exit", n),
|
|
1138
|
+
enter: M(u, "enter", n)
|
|
1139
|
+
}) : !O && c && !b ? o[i] = ee(u, { in: !1 }) : O && c && Z(N) && (o[i] = ee(u, {
|
|
1140
|
+
onExited: t.bind(null, u),
|
|
1141
|
+
in: N.props.in,
|
|
1142
|
+
exit: M(u, "exit", n),
|
|
1143
|
+
enter: M(u, "enter", n)
|
|
1144
1144
|
}));
|
|
1145
|
-
}),
|
|
1145
|
+
}), o;
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1147
|
+
const ut = Object.values || ((n) => Object.keys(n).map((e) => n[e])), ct = {
|
|
1148
1148
|
component: "div",
|
|
1149
1149
|
childFactory: (n) => n
|
|
1150
1150
|
};
|
|
1151
|
-
class
|
|
1151
|
+
class pe extends g.Component {
|
|
1152
1152
|
constructor(e, t) {
|
|
1153
1153
|
super(e, t);
|
|
1154
1154
|
const r = this.handleExited.bind(this);
|
|
@@ -1166,26 +1166,26 @@ class de extends x.Component {
|
|
|
1166
1166
|
componentWillUnmount() {
|
|
1167
1167
|
this.mounted = !1;
|
|
1168
1168
|
}
|
|
1169
|
-
static getDerivedStateFromProps(e, { children: t, handleExited: r, firstRender:
|
|
1169
|
+
static getDerivedStateFromProps(e, { children: t, handleExited: r, firstRender: o }) {
|
|
1170
1170
|
return {
|
|
1171
|
-
children:
|
|
1171
|
+
children: o ? at(e, r) : lt(e, t, r),
|
|
1172
1172
|
firstRender: !1
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
1175
|
// node is `undefined` when user provided `nodeRef` prop
|
|
1176
1176
|
handleExited(e, t) {
|
|
1177
|
-
let r =
|
|
1178
|
-
e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((
|
|
1179
|
-
let i = { ...
|
|
1177
|
+
let r = ce(this.props.children);
|
|
1178
|
+
e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((o) => {
|
|
1179
|
+
let i = { ...o.children };
|
|
1180
1180
|
return delete i[e.key], { children: i };
|
|
1181
1181
|
}));
|
|
1182
1182
|
}
|
|
1183
1183
|
render() {
|
|
1184
|
-
const { component: e, childFactory: t, ...r } = this.props, { contextValue:
|
|
1185
|
-
return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */
|
|
1184
|
+
const { component: e, childFactory: t, ...r } = this.props, { contextValue: o } = this.state, i = ut(this.state.children).map(t);
|
|
1185
|
+
return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */ q(J.Provider, { value: o, children: i }) : /* @__PURE__ */ q(J.Provider, { value: o, children: /* @__PURE__ */ q(e, { ...r, children: i }) });
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
|
|
1188
|
+
pe.propTypes = {
|
|
1189
1189
|
/**
|
|
1190
1190
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
1191
1191
|
* behavior by providing a `component` prop.
|
|
@@ -1193,7 +1193,7 @@ de.propTypes = {
|
|
|
1193
1193
|
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
1194
1194
|
* borks your css styles.
|
|
1195
1195
|
*/
|
|
1196
|
-
component:
|
|
1196
|
+
component: l.any,
|
|
1197
1197
|
/**
|
|
1198
1198
|
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
1199
1199
|
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
@@ -1207,25 +1207,25 @@ de.propTypes = {
|
|
|
1207
1207
|
* the transition child as you change its content, this will cause
|
|
1208
1208
|
* `TransitionGroup` to transition the child out and back in.
|
|
1209
1209
|
*/
|
|
1210
|
-
children:
|
|
1210
|
+
children: l.node,
|
|
1211
1211
|
/**
|
|
1212
1212
|
* A convenience prop that enables or disables appear animations
|
|
1213
1213
|
* for all children. Note that specifying this will override any defaults set
|
|
1214
1214
|
* on individual children Transitions.
|
|
1215
1215
|
*/
|
|
1216
|
-
appear:
|
|
1216
|
+
appear: l.bool,
|
|
1217
1217
|
/**
|
|
1218
1218
|
* A convenience prop that enables or disables enter animations
|
|
1219
1219
|
* for all children. Note that specifying this will override any defaults set
|
|
1220
1220
|
* on individual children Transitions.
|
|
1221
1221
|
*/
|
|
1222
|
-
enter:
|
|
1222
|
+
enter: l.bool,
|
|
1223
1223
|
/**
|
|
1224
1224
|
* A convenience prop that enables or disables exit animations
|
|
1225
1225
|
* for all children. Note that specifying this will override any defaults set
|
|
1226
1226
|
* on individual children Transitions.
|
|
1227
1227
|
*/
|
|
1228
|
-
exit:
|
|
1228
|
+
exit: l.bool,
|
|
1229
1229
|
/**
|
|
1230
1230
|
* You may need to apply reactive updates to a child as it is exiting.
|
|
1231
1231
|
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
@@ -1236,29 +1236,29 @@ de.propTypes = {
|
|
|
1236
1236
|
*
|
|
1237
1237
|
* @type Function(child: ReactElement) -> ReactElement
|
|
1238
1238
|
*/
|
|
1239
|
-
childFactory:
|
|
1239
|
+
childFactory: l.func
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1242
|
-
var pt = Object.defineProperty, dt = (n, e, t) => e in n ? pt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
1243
|
-
class ft extends
|
|
1241
|
+
pe.defaultProps = ct;
|
|
1242
|
+
var pt = Object.defineProperty, dt = (n, e, t) => e in n ? pt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, F = (n, e, t) => dt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1243
|
+
class ft extends g.Component {
|
|
1244
1244
|
constructor() {
|
|
1245
|
-
super(...arguments),
|
|
1245
|
+
super(...arguments), F(this, "handleEnter", (...e) => this.handleLifecycle("onEnter", 0, e)), F(this, "handleEntering", (...e) => this.handleLifecycle("onEntering", 0, e)), F(this, "handleEntered", (...e) => this.handleLifecycle("onEntered", 0, e)), F(this, "handleExit", (...e) => this.handleLifecycle("onExit", 1, e)), F(this, "handleExiting", (...e) => this.handleLifecycle("onExiting", 1, e)), F(this, "handleExited", (...e) => this.handleLifecycle("onExited", 1, e));
|
|
1246
1246
|
}
|
|
1247
1247
|
handleLifecycle(e, t, r) {
|
|
1248
|
-
const { children:
|
|
1248
|
+
const { children: o } = this.props, i = g.Children.toArray(o)[t];
|
|
1249
1249
|
if (i.props[e] && i.props[e](...r), this.props[e]) {
|
|
1250
|
-
const
|
|
1251
|
-
this.props[e](
|
|
1250
|
+
const u = i.props.nodeRef ? void 0 : Y.findDOMNode(this);
|
|
1251
|
+
this.props[e](u);
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
render() {
|
|
1255
|
-
const { children: e, in: t, ...r } = this.props, [
|
|
1256
|
-
return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */
|
|
1255
|
+
const { children: e, in: t, ...r } = this.props, [o, i] = g.Children.toArray(e);
|
|
1256
|
+
return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */ q(pe, { ...r, children: t ? g.cloneElement(o, {
|
|
1257
1257
|
key: "first",
|
|
1258
1258
|
onEnter: this.handleEnter,
|
|
1259
1259
|
onEntering: this.handleEntering,
|
|
1260
1260
|
onEntered: this.handleEntered
|
|
1261
|
-
}) :
|
|
1261
|
+
}) : g.cloneElement(i, {
|
|
1262
1262
|
key: "second",
|
|
1263
1263
|
onEnter: this.handleExit,
|
|
1264
1264
|
onEntering: this.handleExiting,
|
|
@@ -1267,16 +1267,16 @@ class ft extends x.Component {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
ft.propTypes = {
|
|
1270
|
-
in:
|
|
1270
|
+
in: l.bool.isRequired,
|
|
1271
1271
|
children(n, e) {
|
|
1272
|
-
return
|
|
1272
|
+
return g.Children.count(n[e]) !== 2 ? new Error(
|
|
1273
1273
|
`"${e}" must be exactly two transition components.`
|
|
1274
1274
|
) : null;
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
|
-
var ht = Object.defineProperty, Et = (n, e, t) => e in n ? ht(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
1278
|
-
function
|
|
1279
|
-
return !(n === e ||
|
|
1277
|
+
var ht = Object.defineProperty, Et = (n, e, t) => e in n ? ht(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, le = (n, e, t) => Et(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1278
|
+
function mt(n, e) {
|
|
1279
|
+
return !(n === e || g.isValidElement(n) && g.isValidElement(e) && n.key != null && n.key === e.key);
|
|
1280
1280
|
}
|
|
1281
1281
|
const _ = {
|
|
1282
1282
|
out: "out-in",
|
|
@@ -1284,46 +1284,46 @@ const _ = {
|
|
|
1284
1284
|
}, te = (n, e, t) => (...r) => {
|
|
1285
1285
|
n.props[e] && n.props[e](...r), t();
|
|
1286
1286
|
}, yt = {
|
|
1287
|
-
[_.out]: ({ current: n, changeState: e }) =>
|
|
1287
|
+
[_.out]: ({ current: n, changeState: e }) => g.cloneElement(n, {
|
|
1288
1288
|
in: !1,
|
|
1289
1289
|
onExited: te(n, "onExited", () => {
|
|
1290
|
-
e(
|
|
1290
|
+
e($, null);
|
|
1291
1291
|
})
|
|
1292
1292
|
}),
|
|
1293
1293
|
[_.in]: ({ current: n, changeState: e, children: t }) => [
|
|
1294
1294
|
n,
|
|
1295
|
-
|
|
1295
|
+
g.cloneElement(t, {
|
|
1296
1296
|
in: !0,
|
|
1297
1297
|
onEntered: te(t, "onEntered", () => {
|
|
1298
|
-
e(
|
|
1298
|
+
e($);
|
|
1299
1299
|
})
|
|
1300
1300
|
})
|
|
1301
1301
|
]
|
|
1302
|
-
},
|
|
1303
|
-
[_.out]: ({ children: n, changeState: e }) =>
|
|
1302
|
+
}, vt = {
|
|
1303
|
+
[_.out]: ({ children: n, changeState: e }) => g.cloneElement(n, {
|
|
1304
1304
|
in: !0,
|
|
1305
1305
|
onEntered: te(n, "onEntered", () => {
|
|
1306
|
-
e(D,
|
|
1306
|
+
e(D, g.cloneElement(n, { in: !0 }));
|
|
1307
1307
|
})
|
|
1308
1308
|
}),
|
|
1309
1309
|
[_.in]: ({ current: n, children: e, changeState: t }) => [
|
|
1310
|
-
|
|
1310
|
+
g.cloneElement(n, {
|
|
1311
1311
|
in: !1,
|
|
1312
1312
|
onExited: te(n, "onExited", () => {
|
|
1313
|
-
t(D,
|
|
1313
|
+
t(D, g.cloneElement(e, { in: !0 }));
|
|
1314
1314
|
})
|
|
1315
1315
|
}),
|
|
1316
|
-
|
|
1316
|
+
g.cloneElement(e, {
|
|
1317
1317
|
in: !0
|
|
1318
1318
|
})
|
|
1319
1319
|
]
|
|
1320
1320
|
};
|
|
1321
|
-
class
|
|
1321
|
+
class ke extends g.Component {
|
|
1322
1322
|
constructor() {
|
|
1323
|
-
super(...arguments),
|
|
1323
|
+
super(...arguments), le(this, "state", {
|
|
1324
1324
|
status: D,
|
|
1325
1325
|
current: null
|
|
1326
|
-
}),
|
|
1326
|
+
}), le(this, "appeared", !1), le(this, "changeState", (e, t = this.state.current) => {
|
|
1327
1327
|
this.setState({
|
|
1328
1328
|
status: e,
|
|
1329
1329
|
current: t
|
|
@@ -1336,12 +1336,12 @@ class we extends x.Component {
|
|
|
1336
1336
|
static getDerivedStateFromProps(e, t) {
|
|
1337
1337
|
return e.children == null ? {
|
|
1338
1338
|
current: null
|
|
1339
|
-
} : t.status ===
|
|
1340
|
-
status:
|
|
1341
|
-
} : t.current &&
|
|
1342
|
-
status:
|
|
1339
|
+
} : t.status === $ && e.mode === _.in ? {
|
|
1340
|
+
status: $
|
|
1341
|
+
} : t.current && mt(t.current, e.children) ? {
|
|
1342
|
+
status: z
|
|
1343
1343
|
} : {
|
|
1344
|
-
current:
|
|
1344
|
+
current: g.cloneElement(e.children, {
|
|
1345
1345
|
in: !0
|
|
1346
1346
|
})
|
|
1347
1347
|
};
|
|
@@ -1349,23 +1349,23 @@ class we extends x.Component {
|
|
|
1349
1349
|
render() {
|
|
1350
1350
|
const {
|
|
1351
1351
|
props: { children: e, mode: t },
|
|
1352
|
-
state: { status: r, current:
|
|
1353
|
-
} = this, i = { children: e, current:
|
|
1354
|
-
let
|
|
1352
|
+
state: { status: r, current: o }
|
|
1353
|
+
} = this, i = { children: e, current: o, changeState: this.changeState, status: r };
|
|
1354
|
+
let u;
|
|
1355
1355
|
switch (r) {
|
|
1356
|
-
case
|
|
1357
|
-
|
|
1356
|
+
case $:
|
|
1357
|
+
u = vt[t](i);
|
|
1358
1358
|
break;
|
|
1359
|
-
case
|
|
1360
|
-
|
|
1359
|
+
case z:
|
|
1360
|
+
u = yt[t](i);
|
|
1361
1361
|
break;
|
|
1362
1362
|
case D:
|
|
1363
|
-
|
|
1363
|
+
u = o;
|
|
1364
1364
|
}
|
|
1365
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ q(J.Provider, { value: { isMounting: !this.appeared }, children: u });
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
|
|
1368
|
+
ke.propTypes = {
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Transition modes.
|
|
1371
1371
|
* `out-in`: Current element transitions out first, then when complete, the new element transitions in.
|
|
@@ -1373,19 +1373,19 @@ we.propTypes = {
|
|
|
1373
1373
|
*
|
|
1374
1374
|
* @type {'out-in'|'in-out'}
|
|
1375
1375
|
*/
|
|
1376
|
-
mode:
|
|
1376
|
+
mode: l.oneOf([_.in, _.out]),
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Any `Transition` or `CSSTransition` component.
|
|
1379
1379
|
*/
|
|
1380
|
-
children:
|
|
1380
|
+
children: l.oneOfType([l.element.isRequired])
|
|
1381
1381
|
};
|
|
1382
|
-
|
|
1382
|
+
ke.defaultProps = {
|
|
1383
1383
|
mode: _.out
|
|
1384
1384
|
};
|
|
1385
1385
|
export {
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1386
|
+
pe as b,
|
|
1387
|
+
Se as c,
|
|
1388
|
+
ke as h,
|
|
1389
1389
|
ft as m,
|
|
1390
|
-
|
|
1390
|
+
P as u
|
|
1391
1391
|
};
|