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