@ntbjs/react-components 2.0.0-rc.11 → 2.0.0-rc.13
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/cjs/components/data/Alert/Alert.js +8 -10
- package/cjs/components/data/Alert/Alert.styled.js +17 -10
- package/cjs/components/data/Badge/Badge.js +13 -13
- package/cjs/components/data/Badge/Badge.styled.js +37 -26
- package/cjs/components/data/Popover/Popover.js +4 -2
- package/cjs/components/data/Tab/Tab.styled.js +6 -1
- package/cjs/components/data/Tabs/Tabs.js +22 -12
- package/cjs/components/data/Tabs/Tabs.styled.js +29 -16
- package/cjs/components/data/Tooltip/Tooltip.js +3 -1
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/cjs/components/inputs/ActionButton/ActionButton.js +5 -3
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/cjs/components/inputs/Button/Button.js +45 -38
- package/cjs/components/inputs/Button/Button.styled.js +84 -38
- package/cjs/components/inputs/Checkbox/Checkbox.js +1 -1
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +2 -2
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +5 -48
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +27 -31
- package/cjs/components/inputs/Radio/Radio.styled.js +9 -2
- package/cjs/components/inputs/Switch/Switch.js +1 -1
- package/cjs/components/inputs/Switch/Switch.styled.js +22 -7
- package/cjs/components/inputs/TextArea/TextArea.js +10 -20
- package/cjs/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/cjs/components/inputs/TextInput/TextInput.js +21 -22
- package/cjs/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/cjs/components/widgets/AssetAction/AssetAction.js +1 -1
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/cjs/components/widgets/InfoCard/InfoCard.js +17 -9
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +43 -22
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +78 -22
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/cjs/components/widgets/widgets/index.js +0 -2
- package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/cjs/node_modules/react/cjs/react.development.js +125 -82
- package/cjs/node_modules/react/cjs/react.production.js +88 -92
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +5 -5
- package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +23 -17
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
- package/cjs/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +3 -3
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +4 -1
- package/cjs/styles/utils/colors-export.js +41 -0
- package/cjs/utils/defaultTheme.js +28 -5
- package/esm/components/data/Alert/Alert.js +8 -10
- package/esm/components/data/Alert/Alert.styled.js +17 -10
- package/esm/components/data/Badge/Badge.js +13 -13
- package/esm/components/data/Badge/Badge.styled.js +37 -26
- package/esm/components/data/Popover/Popover.js +4 -2
- package/esm/components/data/Tab/Tab.styled.js +6 -1
- package/esm/components/data/Tabs/Tabs.js +23 -13
- package/esm/components/data/Tabs/Tabs.styled.js +29 -16
- package/esm/components/data/Tooltip/Tooltip.js +3 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/esm/components/inputs/ActionButton/ActionButton.js +5 -3
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/esm/components/inputs/Button/Button.js +45 -38
- package/esm/components/inputs/Button/Button.styled.js +84 -38
- package/esm/components/inputs/Checkbox/Checkbox.js +1 -1
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +4 -4
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/esm/components/inputs/MultiSelect/MultiSelect.js +6 -49
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +28 -28
- package/esm/components/inputs/Radio/Radio.styled.js +9 -2
- package/esm/components/inputs/Switch/Switch.js +1 -1
- package/esm/components/inputs/Switch/Switch.styled.js +22 -7
- package/esm/components/inputs/TextArea/TextArea.js +10 -20
- package/esm/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/esm/components/inputs/TextInput/TextInput.js +21 -22
- package/esm/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/esm/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/esm/components/widgets/AssetAction/AssetAction.js +1 -1
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/esm/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/esm/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +10 -2
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/esm/components/widgets/ProgressBar/ProgressBar.js +31 -10
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +77 -23
- package/esm/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/esm/components/widgets/widgets/index.js +0 -1
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
- package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +4 -4
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/esm/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/esm/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/esm/node_modules/react/cjs/react.development.js +125 -82
- package/esm/node_modules/react/cjs/react.production.js +88 -92
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +3 -3
- package/esm/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +12 -6
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
- package/esm/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +1 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +9 -0
- package/esm/styles/utils/colors-export.js +37 -0
- package/esm/utils/defaultTheme.js +28 -5
- package/package.json +16 -22
- package/styles/utils/colors-export.js +35 -0
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/esm/components/widgets/Instructions/Instructions.js +0 -213
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/esm/styles/utils/colors.scss.js +0 -7
- package/styles/config.scss +0 -37
- /package/styles/utils/{colors.scss → .colors.scss} +0 -0
|
@@ -59,6 +59,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
59
59
|
this.refs = emptyObject;
|
|
60
60
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
61
61
|
}
|
|
62
|
+
function noop() {}
|
|
62
63
|
function testStringCoercion(value) {
|
|
63
64
|
return "" + value;
|
|
64
65
|
}
|
|
@@ -118,7 +119,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
118
119
|
case REACT_PORTAL_TYPE:
|
|
119
120
|
return "Portal";
|
|
120
121
|
case REACT_CONTEXT_TYPE:
|
|
121
|
-
return
|
|
122
|
+
return type.displayName || "Context";
|
|
122
123
|
case REACT_CONSUMER_TYPE:
|
|
123
124
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
124
125
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -198,17 +199,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
198
199
|
componentName = this.props.ref;
|
|
199
200
|
return void 0 !== componentName ? componentName : null;
|
|
200
201
|
}
|
|
201
|
-
function ReactElement(
|
|
202
|
-
|
|
203
|
-
key,
|
|
204
|
-
self,
|
|
205
|
-
source,
|
|
206
|
-
owner,
|
|
207
|
-
props,
|
|
208
|
-
debugStack,
|
|
209
|
-
debugTask
|
|
210
|
-
) {
|
|
211
|
-
self = props.ref;
|
|
202
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
203
|
+
var refProp = props.ref;
|
|
212
204
|
type = {
|
|
213
205
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
214
206
|
type: type,
|
|
@@ -216,7 +208,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
216
208
|
props: props,
|
|
217
209
|
_owner: owner
|
|
218
210
|
};
|
|
219
|
-
null !== (void 0 !==
|
|
211
|
+
null !== (void 0 !== refProp ? refProp : null)
|
|
220
212
|
? Object.defineProperty(type, "ref", {
|
|
221
213
|
enumerable: !1,
|
|
222
214
|
get: elementRefGetterWithDeprecationWarning
|
|
@@ -254,10 +246,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
254
246
|
newKey = ReactElement(
|
|
255
247
|
oldElement.type,
|
|
256
248
|
newKey,
|
|
257
|
-
void 0,
|
|
258
|
-
void 0,
|
|
259
|
-
oldElement._owner,
|
|
260
249
|
oldElement.props,
|
|
250
|
+
oldElement._owner,
|
|
261
251
|
oldElement._debugStack,
|
|
262
252
|
oldElement._debugTask
|
|
263
253
|
);
|
|
@@ -265,6 +255,18 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
265
255
|
(newKey._store.validated = oldElement._store.validated);
|
|
266
256
|
return newKey;
|
|
267
257
|
}
|
|
258
|
+
function validateChildKeys(node) {
|
|
259
|
+
isValidElement(node)
|
|
260
|
+
? node._store && (node._store.validated = 1)
|
|
261
|
+
: "object" === typeof node &&
|
|
262
|
+
null !== node &&
|
|
263
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
|
264
|
+
("fulfilled" === node._payload.status
|
|
265
|
+
? isValidElement(node._payload.value) &&
|
|
266
|
+
node._payload.value._store &&
|
|
267
|
+
(node._payload.value._store.validated = 1)
|
|
268
|
+
: node._store && (node._store.validated = 1));
|
|
269
|
+
}
|
|
268
270
|
function isValidElement(object) {
|
|
269
271
|
return (
|
|
270
272
|
"object" === typeof object &&
|
|
@@ -288,7 +290,6 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
288
290
|
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
289
291
|
: index.toString(36);
|
|
290
292
|
}
|
|
291
|
-
function noop$1() {}
|
|
292
293
|
function resolveThenable(thenable) {
|
|
293
294
|
switch (thenable.status) {
|
|
294
295
|
case "fulfilled":
|
|
@@ -298,7 +299,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
298
299
|
default:
|
|
299
300
|
switch (
|
|
300
301
|
("string" === typeof thenable.status
|
|
301
|
-
? thenable.then(noop
|
|
302
|
+
? thenable.then(noop, noop)
|
|
302
303
|
: ((thenable.status = "pending"),
|
|
303
304
|
thenable.then(
|
|
304
305
|
function (fulfilledValue) {
|
|
@@ -460,35 +461,56 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
460
461
|
}
|
|
461
462
|
function lazyInitializer(payload) {
|
|
462
463
|
if (-1 === payload._status) {
|
|
463
|
-
var
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
var ioInfo = payload._ioInfo;
|
|
465
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
466
|
+
ioInfo = payload._result;
|
|
467
|
+
var thenable = ioInfo();
|
|
468
|
+
thenable.then(
|
|
466
469
|
function (moduleObject) {
|
|
467
|
-
if (0 === payload._status || -1 === payload._status)
|
|
468
|
-
|
|
470
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
471
|
+
payload._status = 1;
|
|
472
|
+
payload._result = moduleObject;
|
|
473
|
+
var _ioInfo = payload._ioInfo;
|
|
474
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
475
|
+
void 0 === thenable.status &&
|
|
476
|
+
((thenable.status = "fulfilled"),
|
|
477
|
+
(thenable.value = moduleObject));
|
|
478
|
+
}
|
|
469
479
|
},
|
|
470
480
|
function (error) {
|
|
471
|
-
if (0 === payload._status || -1 === payload._status)
|
|
472
|
-
|
|
481
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
482
|
+
payload._status = 2;
|
|
483
|
+
payload._result = error;
|
|
484
|
+
var _ioInfo2 = payload._ioInfo;
|
|
485
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
486
|
+
void 0 === thenable.status &&
|
|
487
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
488
|
+
}
|
|
473
489
|
}
|
|
474
490
|
);
|
|
491
|
+
ioInfo = payload._ioInfo;
|
|
492
|
+
if (null != ioInfo) {
|
|
493
|
+
ioInfo.value = thenable;
|
|
494
|
+
var displayName = thenable.displayName;
|
|
495
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
496
|
+
}
|
|
475
497
|
-1 === payload._status &&
|
|
476
|
-
((payload._status = 0), (payload._result =
|
|
498
|
+
((payload._status = 0), (payload._result = thenable));
|
|
477
499
|
}
|
|
478
500
|
if (1 === payload._status)
|
|
479
501
|
return (
|
|
480
|
-
(
|
|
481
|
-
void 0 ===
|
|
502
|
+
(ioInfo = payload._result),
|
|
503
|
+
void 0 === ioInfo &&
|
|
482
504
|
console.error(
|
|
483
505
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
484
|
-
|
|
506
|
+
ioInfo
|
|
485
507
|
),
|
|
486
|
-
"default" in
|
|
508
|
+
"default" in ioInfo ||
|
|
487
509
|
console.error(
|
|
488
510
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
489
|
-
|
|
511
|
+
ioInfo
|
|
490
512
|
),
|
|
491
|
-
|
|
513
|
+
ioInfo.default
|
|
492
514
|
);
|
|
493
515
|
throw payload._result;
|
|
494
516
|
}
|
|
@@ -500,7 +522,9 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
500
522
|
);
|
|
501
523
|
return dispatcher;
|
|
502
524
|
}
|
|
503
|
-
function
|
|
525
|
+
function releaseAsyncTransition() {
|
|
526
|
+
ReactSharedInternals.asyncTransitions--;
|
|
527
|
+
}
|
|
504
528
|
function enqueueTask(task) {
|
|
505
529
|
if (null === enqueueTaskImpl)
|
|
506
530
|
try {
|
|
@@ -592,8 +616,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
592
616
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
593
617
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
594
618
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
595
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
596
|
-
|
|
619
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
620
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
597
621
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
598
622
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
599
623
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -636,16 +660,15 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
636
660
|
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
637
661
|
};
|
|
638
662
|
var deprecatedAPIs = {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
fnName;
|
|
663
|
+
isMounted: [
|
|
664
|
+
"isMounted",
|
|
665
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
666
|
+
],
|
|
667
|
+
replaceState: [
|
|
668
|
+
"replaceState",
|
|
669
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
670
|
+
]
|
|
671
|
+
};
|
|
649
672
|
for (fnName in deprecatedAPIs)
|
|
650
673
|
deprecatedAPIs.hasOwnProperty(fnName) &&
|
|
651
674
|
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
@@ -661,8 +684,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
661
684
|
A: null,
|
|
662
685
|
T: null,
|
|
663
686
|
S: null,
|
|
664
|
-
V: null,
|
|
665
687
|
actQueue: null,
|
|
688
|
+
asyncTransitions: 0,
|
|
666
689
|
isBatchingLegacy: !1,
|
|
667
690
|
didScheduleLegacyUpdate: !1,
|
|
668
691
|
didUsePromise: !1,
|
|
@@ -677,15 +700,16 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
677
700
|
return null;
|
|
678
701
|
};
|
|
679
702
|
deprecatedAPIs = {
|
|
680
|
-
|
|
703
|
+
react_stack_bottom_frame: function (callStackForError) {
|
|
681
704
|
return callStackForError();
|
|
682
705
|
}
|
|
683
706
|
};
|
|
684
707
|
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
685
708
|
var didWarnAboutElementRef = {};
|
|
686
|
-
var unknownOwnerDebugStack = deprecatedAPIs
|
|
687
|
-
|
|
688
|
-
|
|
709
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
710
|
+
deprecatedAPIs,
|
|
711
|
+
UnknownOwner
|
|
712
|
+
)();
|
|
689
713
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
690
714
|
var didWarnAboutMaps = !1,
|
|
691
715
|
userProvidedKeyEscapeRegex = /\/+/g,
|
|
@@ -737,7 +761,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
737
761
|
return resolveDispatcher().useMemoCache(size);
|
|
738
762
|
}
|
|
739
763
|
});
|
|
740
|
-
|
|
764
|
+
var fnName = {
|
|
741
765
|
map: mapChildren,
|
|
742
766
|
forEach: function (children, forEachFunc, forEachContext) {
|
|
743
767
|
mapChildren(
|
|
@@ -770,6 +794,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
770
794
|
return children;
|
|
771
795
|
}
|
|
772
796
|
};
|
|
797
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
798
|
+
exports.Children = fnName;
|
|
773
799
|
exports.Component = Component;
|
|
774
800
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
775
801
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
@@ -895,6 +921,9 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
895
921
|
return fn.apply(null, arguments);
|
|
896
922
|
};
|
|
897
923
|
};
|
|
924
|
+
exports.cacheSignal = function () {
|
|
925
|
+
return null;
|
|
926
|
+
};
|
|
898
927
|
exports.captureOwnerStack = function () {
|
|
899
928
|
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
900
929
|
return null === getCurrentStack ? null : getCurrentStack();
|
|
@@ -947,16 +976,13 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
947
976
|
props = ReactElement(
|
|
948
977
|
element.type,
|
|
949
978
|
key,
|
|
950
|
-
void 0,
|
|
951
|
-
void 0,
|
|
952
|
-
owner,
|
|
953
979
|
props,
|
|
980
|
+
owner,
|
|
954
981
|
element._debugStack,
|
|
955
982
|
element._debugTask
|
|
956
983
|
);
|
|
957
984
|
for (key = 2; key < arguments.length; key++)
|
|
958
|
-
(
|
|
959
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
985
|
+
validateChildKeys(arguments[key]);
|
|
960
986
|
return props;
|
|
961
987
|
};
|
|
962
988
|
exports.createContext = function (defaultValue) {
|
|
@@ -978,12 +1004,10 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
978
1004
|
return defaultValue;
|
|
979
1005
|
};
|
|
980
1006
|
exports.createElement = function (type, config, children) {
|
|
981
|
-
for (var i = 2; i < arguments.length; i++)
|
|
982
|
-
|
|
983
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
984
|
-
}
|
|
1007
|
+
for (var i = 2; i < arguments.length; i++)
|
|
1008
|
+
validateChildKeys(arguments[i]);
|
|
985
1009
|
i = {};
|
|
986
|
-
|
|
1010
|
+
var key = null;
|
|
987
1011
|
if (null != config)
|
|
988
1012
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
989
1013
|
!("__self" in config) ||
|
|
@@ -993,7 +1017,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
993
1017
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
994
1018
|
)),
|
|
995
1019
|
hasValidKey(config) &&
|
|
996
|
-
(checkKeyStringCoercion(config.key), (
|
|
1020
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
|
997
1021
|
config))
|
|
998
1022
|
hasOwnProperty.call(config, propName) &&
|
|
999
1023
|
"key" !== propName &&
|
|
@@ -1015,7 +1039,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1015
1039
|
if (type && type.defaultProps)
|
|
1016
1040
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1017
1041
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1018
|
-
|
|
1042
|
+
key &&
|
|
1019
1043
|
defineKeyPropWarningGetter(
|
|
1020
1044
|
i,
|
|
1021
1045
|
"function" === typeof type
|
|
@@ -1025,11 +1049,9 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1025
1049
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1026
1050
|
return ReactElement(
|
|
1027
1051
|
type,
|
|
1028
|
-
|
|
1029
|
-
void 0,
|
|
1030
|
-
void 0,
|
|
1031
|
-
getOwner(),
|
|
1052
|
+
key,
|
|
1032
1053
|
i,
|
|
1054
|
+
getOwner(),
|
|
1033
1055
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1034
1056
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1035
1057
|
);
|
|
@@ -1082,11 +1104,24 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1082
1104
|
};
|
|
1083
1105
|
exports.isValidElement = isValidElement;
|
|
1084
1106
|
exports.lazy = function (ctor) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1107
|
+
ctor = { _status: -1, _result: ctor };
|
|
1108
|
+
var lazyType = {
|
|
1109
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1110
|
+
_payload: ctor,
|
|
1111
|
+
_init: lazyInitializer
|
|
1112
|
+
},
|
|
1113
|
+
ioInfo = {
|
|
1114
|
+
name: "lazy",
|
|
1115
|
+
start: -1,
|
|
1116
|
+
end: -1,
|
|
1117
|
+
value: null,
|
|
1118
|
+
owner: null,
|
|
1119
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1120
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1121
|
+
};
|
|
1122
|
+
ctor._ioInfo = ioInfo;
|
|
1123
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1124
|
+
return lazyType;
|
|
1090
1125
|
};
|
|
1091
1126
|
exports.memo = function (type, compare) {
|
|
1092
1127
|
null == type &&
|
|
@@ -1119,8 +1154,8 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1119
1154
|
exports.startTransition = function (scope) {
|
|
1120
1155
|
var prevTransition = ReactSharedInternals.T,
|
|
1121
1156
|
currentTransition = {};
|
|
1122
|
-
ReactSharedInternals.T = currentTransition;
|
|
1123
1157
|
currentTransition._updatedFibers = new Set();
|
|
1158
|
+
ReactSharedInternals.T = currentTransition;
|
|
1124
1159
|
try {
|
|
1125
1160
|
var returnValue = scope(),
|
|
1126
1161
|
onStartTransitionFinish = ReactSharedInternals.S;
|
|
@@ -1129,7 +1164,9 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1129
1164
|
"object" === typeof returnValue &&
|
|
1130
1165
|
null !== returnValue &&
|
|
1131
1166
|
"function" === typeof returnValue.then &&
|
|
1132
|
-
|
|
1167
|
+
(ReactSharedInternals.asyncTransitions++,
|
|
1168
|
+
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
1169
|
+
returnValue.then(noop, reportGlobalError));
|
|
1133
1170
|
} catch (error) {
|
|
1134
1171
|
reportGlobalError(error);
|
|
1135
1172
|
} finally {
|
|
@@ -1141,6 +1178,14 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1141
1178
|
console.warn(
|
|
1142
1179
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1143
1180
|
)),
|
|
1181
|
+
null !== prevTransition &&
|
|
1182
|
+
null !== currentTransition.types &&
|
|
1183
|
+
(null !== prevTransition.types &&
|
|
1184
|
+
prevTransition.types !== currentTransition.types &&
|
|
1185
|
+
console.error(
|
|
1186
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1187
|
+
),
|
|
1188
|
+
(prevTransition.types = currentTransition.types)),
|
|
1144
1189
|
(ReactSharedInternals.T = prevTransition);
|
|
1145
1190
|
}
|
|
1146
1191
|
};
|
|
@@ -1174,17 +1219,15 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1174
1219
|
exports.useDeferredValue = function (value, initialValue) {
|
|
1175
1220
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1176
1221
|
};
|
|
1177
|
-
exports.useEffect = function (create,
|
|
1222
|
+
exports.useEffect = function (create, deps) {
|
|
1178
1223
|
null == create &&
|
|
1179
1224
|
console.warn(
|
|
1180
1225
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1181
1226
|
);
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
);
|
|
1187
|
-
return dispatcher.useEffect(create, createDeps);
|
|
1227
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
1228
|
+
};
|
|
1229
|
+
exports.useEffectEvent = function (callback) {
|
|
1230
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
1188
1231
|
};
|
|
1189
1232
|
exports.useId = function () {
|
|
1190
1233
|
return resolveDispatcher().useId();
|
|
@@ -1235,7 +1278,7 @@ import { r as react_development } from '../../../_virtual/react.development.js';
|
|
|
1235
1278
|
exports.useTransition = function () {
|
|
1236
1279
|
return resolveDispatcher().useTransition();
|
|
1237
1280
|
};
|
|
1238
|
-
exports.version = "19.
|
|
1281
|
+
exports.version = "19.2.0";
|
|
1239
1282
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1240
1283
|
"function" ===
|
|
1241
1284
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|