@lumx/react 3.20.1-alpha.26 → 3.20.1-alpha.28
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/_internal/{Button-85482487.js → Button-5a87fee9.js} +10 -11
- package/_internal/Button-5a87fee9.js.map +1 -0
- package/_internal/{ButtonRoot-823f3e9c.js → ButtonRoot-bf682215.js} +2 -2
- package/_internal/ButtonRoot-bf682215.js.map +1 -0
- package/_internal/{Chip-a34f6905.js → Chip-8d0aae06.js} +8 -11
- package/_internal/Chip-8d0aae06.js.map +1 -0
- package/_internal/{ClickAwayProvider-7093ba23.js → ClickAwayProvider-1204f237.js} +2 -2
- package/_internal/ClickAwayProvider-1204f237.js.map +1 -0
- package/_internal/{IconButton-1a22c4c8.js → IconButton-351389b0.js} +5 -5
- package/_internal/{IconButton-1a22c4c8.js.map → IconButton-351389b0.js.map} +1 -1
- package/_internal/{ImageCaption-a0a6de5c.js → ImageCaption-4109b433.js} +4 -4
- package/_internal/{ImageCaption-a0a6de5c.js.map → ImageCaption-4109b433.js.map} +1 -1
- package/_internal/{List-54237e0e.js → List-b7882a99.js} +247 -223
- package/_internal/List-b7882a99.js.map +1 -0
- package/_internal/{PopoverDialog-4ebe79f2.js → PopoverDialog-2e7b9ed5.js} +12 -12
- package/_internal/PopoverDialog-2e7b9ed5.js.map +1 -0
- package/_internal/{Slides-ae91d12c.js → Slides-83646e84.js} +6 -9
- package/_internal/Slides-83646e84.js.map +1 -0
- package/_internal/{Thumbnail-0872250e.js → Thumbnail-741501a5.js} +3 -3
- package/_internal/{Thumbnail-0872250e.js.map → Thumbnail-741501a5.js.map} +1 -1
- package/_internal/components/{alert-dialog-0eeb06ce.js → alert-dialog-5df4f133.js} +6 -6
- package/_internal/components/{alert-dialog-0eeb06ce.js.map → alert-dialog-5df4f133.js.map} +1 -1
- package/_internal/components/{autocomplete-32170542.js → autocomplete-824c779e.js} +7 -7
- package/_internal/components/{autocomplete-32170542.js.map → autocomplete-824c779e.js.map} +1 -1
- package/_internal/components/{avatar-d2214a61.js → avatar-69b66f01.js} +3 -3
- package/_internal/components/{avatar-d2214a61.js.map → avatar-69b66f01.js.map} +1 -1
- package/_internal/components/{badge-8390e590.js → badge-63cd3b1c.js} +2 -2
- package/_internal/components/{badge-8390e590.js.map → badge-63cd3b1c.js.map} +1 -1
- package/_internal/components/{button-b5818c5a.js → button-eebd4e00.js} +4 -4
- package/_internal/components/{button-b5818c5a.js.map → button-eebd4e00.js.map} +1 -1
- package/_internal/components/{checkbox-346834f8.js → checkbox-54943a02.js} +5 -5
- package/_internal/components/{checkbox-346834f8.js.map → checkbox-54943a02.js.map} +1 -1
- package/_internal/components/{chip-e40c5521.js → chip-9ad6b318.js} +3 -3
- package/_internal/components/{chip-e40c5521.js.map → chip-9ad6b318.js.map} +1 -1
- package/_internal/components/{comment-block-a4997791.js → comment-block-55a4ab3c.js} +4 -4
- package/_internal/components/{comment-block-a4997791.js.map → comment-block-55a4ab3c.js.map} +1 -1
- package/_internal/components/date-picker-a824a3ae.js +2 -0
- package/_internal/components/date-picker-a824a3ae.js.map +1 -0
- package/_internal/components/{dialog-ebdb9500.js → dialog-5e6320b8.js} +8 -8
- package/_internal/components/dialog-5e6320b8.js.map +1 -0
- package/_internal/components/{divider-116af6b9.js → divider-bdf11ba3.js} +2 -2
- package/_internal/components/{divider-116af6b9.js.map → divider-bdf11ba3.js.map} +1 -1
- package/_internal/components/{drag-handle-6b073866.js → drag-handle-45912fd3.js} +3 -3
- package/_internal/components/{drag-handle-6b073866.js.map → drag-handle-45912fd3.js.map} +1 -1
- package/_internal/components/{dropdown-0baed51b.js → dropdown-0216211d.js} +6 -6
- package/_internal/components/{dropdown-0baed51b.js.map → dropdown-0216211d.js.map} +1 -1
- package/_internal/components/{expansion-panel-80edf6c9.js → expansion-panel-3ce73c6b.js} +8 -8
- package/_internal/components/expansion-panel-3ce73c6b.js.map +1 -0
- package/_internal/components/{flag-7c9d3abf.js → flag-1b177f78.js} +4 -4
- package/_internal/components/{flag-7c9d3abf.js.map → flag-1b177f78.js.map} +1 -1
- package/_internal/components/{flex-box-55144e5f.js → flex-box-93b97715.js} +3 -3
- package/_internal/components/flex-box-93b97715.js.map +1 -0
- package/_internal/components/{generic-block-ff0509ee.js → generic-block-925f7c5b.js} +16 -12
- package/_internal/components/generic-block-925f7c5b.js.map +1 -0
- package/_internal/components/{grid-6f1b5a41.js → grid-95fd1493.js} +2 -2
- package/_internal/components/{grid-6f1b5a41.js.map → grid-95fd1493.js.map} +1 -1
- package/_internal/components/{grid-column-f01df853.js → grid-column-43f28cfb.js} +3 -4
- package/_internal/components/grid-column-43f28cfb.js.map +1 -0
- package/_internal/components/{heading-d4c66a34.js → heading-45d6e78e.js} +3 -3
- package/_internal/components/{heading-d4c66a34.js.map → heading-45d6e78e.js.map} +1 -1
- package/_internal/components/icon-79195151.js +2 -0
- package/_internal/components/icon-79195151.js.map +1 -0
- package/_internal/components/{image-block-755d8b96.js → image-block-aba6d2db.js} +4 -4
- package/_internal/components/{image-block-755d8b96.js.map → image-block-aba6d2db.js.map} +1 -1
- package/_internal/components/{image-lightbox-d31dcd8a.js → image-lightbox-8b8e77c2.js} +9 -9
- package/_internal/components/{image-lightbox-d31dcd8a.js.map → image-lightbox-8b8e77c2.js.map} +1 -1
- package/_internal/components/{inline-list-e6f19a98.js → inline-list-dfb9fd34.js} +2 -2
- package/_internal/components/{inline-list-e6f19a98.js.map → inline-list-dfb9fd34.js.map} +1 -1
- package/_internal/components/{input-helper-64153099.js → input-helper-c8a0078b.js} +2 -2
- package/_internal/components/{input-helper-64153099.js.map → input-helper-c8a0078b.js.map} +1 -1
- package/_internal/components/{input-label-2feb0bb0.js → input-label-9711398b.js} +2 -2
- package/_internal/components/{input-label-2feb0bb0.js.map → input-label-9711398b.js.map} +1 -1
- package/_internal/components/{lightbox-9dbd7c15.js → lightbox-894abe64.js} +6 -6
- package/_internal/components/{lightbox-9dbd7c15.js.map → lightbox-894abe64.js.map} +1 -1
- package/_internal/components/{link-f9421eab.js → link-e70e64ed.js} +4 -4
- package/_internal/components/{link-f9421eab.js.map → link-e70e64ed.js.map} +1 -1
- package/_internal/components/{link-preview-5c7e3878.js → link-preview-e56f3570.js} +4 -4
- package/_internal/components/{link-preview-5c7e3878.js.map → link-preview-e56f3570.js.map} +1 -1
- package/_internal/components/{list-b08d8423.js → list-59b7ce56.js} +3 -3
- package/_internal/components/{list-b08d8423.js.map → list-59b7ce56.js.map} +1 -1
- package/_internal/components/{message-b3957df0.js → message-a255dfd3.js} +4 -4
- package/_internal/components/{message-b3957df0.js.map → message-a255dfd3.js.map} +1 -1
- package/_internal/components/{mosaic-742a9109.js → mosaic-192f2270.js} +4 -5
- package/_internal/components/mosaic-192f2270.js.map +1 -0
- package/_internal/components/{navigation-b1cd43c3.js → navigation-dfe8aac0.js} +7 -7
- package/_internal/components/{navigation-b1cd43c3.js.map → navigation-dfe8aac0.js.map} +1 -1
- package/_internal/components/{notification-94679f51.js → notification-10f289b5.js} +5 -8
- package/_internal/components/notification-10f289b5.js.map +1 -0
- package/_internal/components/popover-6c7f745b.js +3 -0
- package/_internal/components/popover-6c7f745b.js.map +1 -0
- package/_internal/components/{post-block-3ac52237.js → post-block-f7dcc6e9.js} +13 -13
- package/_internal/components/post-block-f7dcc6e9.js.map +1 -0
- package/_internal/components/{progress-f39c3fa2.js → progress-7a05fb0c.js} +2 -2
- package/_internal/components/{progress-f39c3fa2.js.map → progress-7a05fb0c.js.map} +1 -1
- package/_internal/components/{progress-tracker-997931ac.js → progress-tracker-48876add.js} +5 -5
- package/_internal/components/{progress-tracker-997931ac.js.map → progress-tracker-48876add.js.map} +1 -1
- package/_internal/components/{radio-button-559a4863.js → radio-button-07cf45e9.js} +4 -4
- package/_internal/components/{radio-button-559a4863.js.map → radio-button-07cf45e9.js.map} +1 -1
- package/_internal/components/{select-f3b44cb6.js → select-8b54a444.js} +13 -14
- package/_internal/components/select-8b54a444.js.map +1 -0
- package/_internal/components/{side-navigation-414825d8.js → side-navigation-7eeed3b4.js} +6 -7
- package/_internal/components/side-navigation-7eeed3b4.js.map +1 -0
- package/_internal/components/{skeleton-c66516ee.js → skeleton-a4e84085.js} +2 -2
- package/_internal/components/{skeleton-c66516ee.js.map → skeleton-a4e84085.js.map} +1 -1
- package/_internal/components/{slider-efbfbc45.js → slider-5d64b470.js} +4 -4
- package/_internal/components/{slider-efbfbc45.js.map → slider-5d64b470.js.map} +1 -1
- package/_internal/components/{slideshow-dc4b79ae.js → slideshow-bce65cf6.js} +4 -4
- package/_internal/components/{slideshow-dc4b79ae.js.map → slideshow-bce65cf6.js.map} +1 -1
- package/_internal/components/{switch-769a2a04.js → switch-7ae55d89.js} +5 -6
- package/_internal/components/switch-7ae55d89.js.map +1 -0
- package/_internal/components/{table-c43ec4a5.js → table-5bdf4aec.js} +3 -3
- package/_internal/components/{table-c43ec4a5.js.map → table-5bdf4aec.js.map} +1 -1
- package/_internal/components/{tabs-4037fe57.js → tabs-2ad54592.js} +4 -4
- package/_internal/components/{tabs-4037fe57.js.map → tabs-2ad54592.js.map} +1 -1
- package/_internal/components/text-09c81111.js +2 -0
- package/_internal/components/text-09c81111.js.map +1 -0
- package/_internal/components/{text-field-0a15a15d.js → text-field-3e1030f0.js} +7 -8
- package/_internal/components/text-field-3e1030f0.js.map +1 -0
- package/_internal/components/{thumbnail-f1784929.js → thumbnail-1c5828b9.js} +2 -2
- package/_internal/components/{thumbnail-f1784929.js.map → thumbnail-1c5828b9.js.map} +1 -1
- package/_internal/components/{toolbar-a43533a2.js → toolbar-0d14efb7.js} +2 -2
- package/_internal/components/{toolbar-a43533a2.js.map → toolbar-0d14efb7.js.map} +1 -1
- package/_internal/components/{tooltip-2885ab2e.js → tooltip-31181a24.js} +4 -4
- package/_internal/components/{tooltip-2885ab2e.js.map → tooltip-31181a24.js.map} +1 -1
- package/_internal/components/{uploader-7bc3adaa.js → uploader-845b2412.js} +3 -3
- package/_internal/components/{uploader-7bc3adaa.js.map → uploader-845b2412.js.map} +1 -1
- package/_internal/components/{user-block-5f7b09af.js → user-block-91c30797.js} +12 -13
- package/_internal/components/user-block-91c30797.js.map +1 -0
- package/_internal/{constants-b9e57936.js → constants-9b714e31.js} +145 -133
- package/_internal/{constants-b9e57936.js.map → constants-9b714e31.js.map} +1 -1
- package/_internal/forwardRef-d0e90329.js +82 -0
- package/_internal/{forwardRef-15f62847.js.map → forwardRef-d0e90329.js.map} +1 -1
- package/_internal/{index-9df37c0d.js → index-68e1b0af.js} +6 -6
- package/_internal/{index-9df37c0d.js.map → index-68e1b0af.js.map} +1 -1
- package/_internal/{index-192f8ada.js → index-745f94ee.js} +2 -2
- package/_internal/{index-192f8ada.js.map → index-745f94ee.js.map} +1 -1
- package/_internal/{index-b06353f2.js → index-ab520e78.js} +3 -3
- package/_internal/{index-b06353f2.js.map → index-ab520e78.js.map} +1 -1
- package/_internal/{isComponent-78df9309.js → isComponent-b9762ff1.js} +3 -5
- package/_internal/isComponent-b9762ff1.js.map +1 -0
- package/_internal/{useCallbackOnEscape-ea4d9eb4.js → useCallbackOnEscape-0b220f9c.js} +3 -3
- package/_internal/useCallbackOnEscape-0b220f9c.js.map +1 -0
- package/_internal/{useFocusTrap-c3c6378b.js → useFocusTrap-3114e5e8.js} +2 -2
- package/_internal/{useFocusTrap-c3c6378b.js.map → useFocusTrap-3114e5e8.js.map} +1 -1
- package/_internal/{wrapChildrenIconWithSpaces-f1e91251.js → wrapChildrenIconWithSpaces-e6038f72.js} +2 -2
- package/_internal/{wrapChildrenIconWithSpaces-f1e91251.js.map → wrapChildrenIconWithSpaces-e6038f72.js.map} +1 -1
- package/index.d.ts +4 -15
- package/index.js +61 -61
- package/package.json +7 -13
- package/utils/index.js +1 -1
- package/_internal/Button-85482487.js.map +0 -1
- package/_internal/ButtonRoot-823f3e9c.js.map +0 -1
- package/_internal/Chip-a34f6905.js.map +0 -1
- package/_internal/ClickAwayProvider-7093ba23.js.map +0 -1
- package/_internal/List-54237e0e.js.map +0 -1
- package/_internal/PopoverDialog-4ebe79f2.js.map +0 -1
- package/_internal/Slides-ae91d12c.js.map +0 -1
- package/_internal/components/date-picker-48a39549.js +0 -2
- package/_internal/components/date-picker-48a39549.js.map +0 -1
- package/_internal/components/dialog-ebdb9500.js.map +0 -1
- package/_internal/components/expansion-panel-80edf6c9.js.map +0 -1
- package/_internal/components/flex-box-55144e5f.js.map +0 -1
- package/_internal/components/generic-block-ff0509ee.js.map +0 -1
- package/_internal/components/grid-column-f01df853.js.map +0 -1
- package/_internal/components/icon-7c79ab42.js +0 -2
- package/_internal/components/icon-7c79ab42.js.map +0 -1
- package/_internal/components/mosaic-742a9109.js.map +0 -1
- package/_internal/components/notification-94679f51.js.map +0 -1
- package/_internal/components/popover-65bfbc57.js +0 -3
- package/_internal/components/popover-65bfbc57.js.map +0 -1
- package/_internal/components/post-block-3ac52237.js.map +0 -1
- package/_internal/components/select-f3b44cb6.js.map +0 -1
- package/_internal/components/side-navigation-414825d8.js.map +0 -1
- package/_internal/components/switch-769a2a04.js.map +0 -1
- package/_internal/components/text-851c62f8.js +0 -2
- package/_internal/components/text-851c62f8.js.map +0 -1
- package/_internal/components/text-field-0a15a15d.js.map +0 -1
- package/_internal/components/user-block-5f7b09af.js.map +0 -1
- package/_internal/forwardRef-15f62847.js +0 -70
- package/_internal/isComponent-78df9309.js.map +0 -1
- package/_internal/partitionMulti-4daccdd5.js +0 -25
- package/_internal/partitionMulti-4daccdd5.js.map +0 -1
- package/_internal/useCallbackOnEscape-ea4d9eb4.js.map +0 -1
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useMemo, Children, isValidElement, cloneElement, useRef } from 'react';
|
|
2
|
-
import { f as forwardRef, c as classNames } from './forwardRef-
|
|
3
|
-
import get from 'lodash/get';
|
|
2
|
+
import { f as forwardRef, c as classNames } from './forwardRef-d0e90329.js';
|
|
4
3
|
import { getRootClassName, handleBasicClasses } from '@lumx/core/js/utils/className';
|
|
5
4
|
import { m as mergeRefs } from './mergeRefs-f0d7d6ea.js';
|
|
6
|
-
import isEmpty from 'lodash/isEmpty';
|
|
7
5
|
import { onEnterPressed, onButtonPressed } from '@lumx/core/js/utils';
|
|
8
6
|
import { u as useDisableStateProps } from './useDisableStateProps-69e16b7c.js';
|
|
9
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
8
|
import { Size } from '@lumx/core/js/constants';
|
|
11
|
-
import { i as isComponent } from './isComponent-
|
|
9
|
+
import { i as isComponent } from './isComponent-b9762ff1.js';
|
|
12
10
|
|
|
13
11
|
const INITIAL_INDEX$1 = -1;
|
|
14
12
|
|
|
@@ -106,7 +104,7 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
106
104
|
onListItemSelected(selectedItem);
|
|
107
105
|
resetActiveIndex();
|
|
108
106
|
} else if (activeItemIndex === initialIndex && onEnterPressed) {
|
|
109
|
-
const value =
|
|
107
|
+
const value = evt.target?.value;
|
|
110
108
|
onEnterPressed(value);
|
|
111
109
|
resetActiveIndex();
|
|
112
110
|
}
|
|
@@ -117,7 +115,7 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
117
115
|
* @param evt - key pressed event
|
|
118
116
|
*/
|
|
119
117
|
const onTabKeyPressed = evt => {
|
|
120
|
-
const value =
|
|
118
|
+
const value = evt.target?.value;
|
|
121
119
|
if (preventTabOnEnteredValue && value && value.length > 0) {
|
|
122
120
|
preventDefaultAndStopPropagation(evt);
|
|
123
121
|
}
|
|
@@ -213,7 +211,7 @@ function isClickable({
|
|
|
213
211
|
linkProps,
|
|
214
212
|
onItemSelected
|
|
215
213
|
}) {
|
|
216
|
-
return
|
|
214
|
+
return !!linkProps?.href || !!onItemSelected;
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
/**
|
|
@@ -314,11 +312,19 @@ var reactIs_production_min = {};
|
|
|
314
312
|
* This source code is licensed under the MIT license found in the
|
|
315
313
|
* LICENSE file in the root directory of this source tree.
|
|
316
314
|
*/
|
|
315
|
+
|
|
316
|
+
var hasRequiredReactIs_production_min;
|
|
317
|
+
|
|
318
|
+
function requireReactIs_production_min () {
|
|
319
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
320
|
+
hasRequiredReactIs_production_min = 1;
|
|
317
321
|
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
318
|
-
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
319
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
320
|
-
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
321
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
|
322
|
+
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
323
|
+
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
324
|
+
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
325
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
|
326
|
+
return reactIs_production_min;
|
|
327
|
+
}
|
|
322
328
|
|
|
323
329
|
var reactIs_development = {};
|
|
324
330
|
|
|
@@ -332,220 +338,238 @@ var reactIs_development = {};
|
|
|
332
338
|
* LICENSE file in the root directory of this source tree.
|
|
333
339
|
*/
|
|
334
340
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
var
|
|
349
|
-
var
|
|
350
|
-
var
|
|
351
|
-
var
|
|
352
|
-
var
|
|
353
|
-
var
|
|
354
|
-
var
|
|
355
|
-
var
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
var
|
|
360
|
-
var
|
|
361
|
-
var
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
//
|
|
366
|
-
|
|
367
|
-
var
|
|
368
|
-
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
341
|
+
var hasRequiredReactIs_development;
|
|
342
|
+
|
|
343
|
+
function requireReactIs_development () {
|
|
344
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
345
|
+
hasRequiredReactIs_development = 1;
|
|
346
|
+
|
|
347
|
+
if (process.env.NODE_ENV !== "production") {
|
|
348
|
+
(function() {
|
|
349
|
+
|
|
350
|
+
// ATTENTION
|
|
351
|
+
// When adding new symbols to this file,
|
|
352
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
353
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
354
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
355
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
356
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
357
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
358
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
359
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
360
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
361
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
362
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
363
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
364
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
365
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
366
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
367
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
368
|
+
|
|
369
|
+
// -----------------------------------------------------------------------------
|
|
370
|
+
|
|
371
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
372
|
+
var enableCacheElement = false;
|
|
373
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
374
|
+
|
|
375
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
376
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
377
|
+
// issues in DEV builds.
|
|
378
|
+
|
|
379
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
380
|
+
|
|
381
|
+
var REACT_MODULE_REFERENCE;
|
|
382
|
+
|
|
383
|
+
{
|
|
384
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function isValidElementType(type) {
|
|
388
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
389
|
+
return true;
|
|
390
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
394
|
+
return true;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (typeof type === 'object' && type !== null) {
|
|
398
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
399
|
+
// types supported by any Flight configuration anywhere since
|
|
400
|
+
// we don't know which Flight build this will end up being used
|
|
401
|
+
// with.
|
|
402
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function typeOf(object) {
|
|
411
|
+
if (typeof object === 'object' && object !== null) {
|
|
412
|
+
var $$typeof = object.$$typeof;
|
|
413
|
+
|
|
414
|
+
switch ($$typeof) {
|
|
415
|
+
case REACT_ELEMENT_TYPE:
|
|
416
|
+
var type = object.type;
|
|
417
|
+
|
|
418
|
+
switch (type) {
|
|
419
|
+
case REACT_FRAGMENT_TYPE:
|
|
420
|
+
case REACT_PROFILER_TYPE:
|
|
421
|
+
case REACT_STRICT_MODE_TYPE:
|
|
422
|
+
case REACT_SUSPENSE_TYPE:
|
|
423
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
424
|
+
return type;
|
|
425
|
+
|
|
426
|
+
default:
|
|
427
|
+
var $$typeofType = type && type.$$typeof;
|
|
428
|
+
|
|
429
|
+
switch ($$typeofType) {
|
|
430
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
431
|
+
case REACT_CONTEXT_TYPE:
|
|
432
|
+
case REACT_FORWARD_REF_TYPE:
|
|
433
|
+
case REACT_LAZY_TYPE:
|
|
434
|
+
case REACT_MEMO_TYPE:
|
|
435
|
+
case REACT_PROVIDER_TYPE:
|
|
436
|
+
return $$typeofType;
|
|
437
|
+
|
|
438
|
+
default:
|
|
439
|
+
return $$typeof;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
case REACT_PORTAL_TYPE:
|
|
445
|
+
return $$typeof;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return undefined;
|
|
450
|
+
}
|
|
451
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
452
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
453
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
454
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
455
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
456
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
457
|
+
var Memo = REACT_MEMO_TYPE;
|
|
458
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
459
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
460
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
461
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
462
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
463
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
464
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
465
|
+
|
|
466
|
+
function isAsyncMode(object) {
|
|
467
|
+
{
|
|
468
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
469
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
470
|
+
|
|
471
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
function isConcurrentMode(object) {
|
|
478
|
+
{
|
|
479
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
480
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
481
|
+
|
|
482
|
+
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
function isContextConsumer(object) {
|
|
489
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
490
|
+
}
|
|
491
|
+
function isContextProvider(object) {
|
|
492
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
493
|
+
}
|
|
494
|
+
function isElement(object) {
|
|
495
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
496
|
+
}
|
|
497
|
+
function isForwardRef(object) {
|
|
498
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
499
|
+
}
|
|
500
|
+
function isFragment(object) {
|
|
501
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
502
|
+
}
|
|
503
|
+
function isLazy(object) {
|
|
504
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
505
|
+
}
|
|
506
|
+
function isMemo(object) {
|
|
507
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
508
|
+
}
|
|
509
|
+
function isPortal(object) {
|
|
510
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
511
|
+
}
|
|
512
|
+
function isProfiler(object) {
|
|
513
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
514
|
+
}
|
|
515
|
+
function isStrictMode(object) {
|
|
516
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
517
|
+
}
|
|
518
|
+
function isSuspense(object) {
|
|
519
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
520
|
+
}
|
|
521
|
+
function isSuspenseList(object) {
|
|
522
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
526
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
527
|
+
reactIs_development.Element = Element;
|
|
528
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
529
|
+
reactIs_development.Fragment = Fragment;
|
|
530
|
+
reactIs_development.Lazy = Lazy;
|
|
531
|
+
reactIs_development.Memo = Memo;
|
|
532
|
+
reactIs_development.Portal = Portal;
|
|
533
|
+
reactIs_development.Profiler = Profiler;
|
|
534
|
+
reactIs_development.StrictMode = StrictMode;
|
|
535
|
+
reactIs_development.Suspense = Suspense;
|
|
536
|
+
reactIs_development.SuspenseList = SuspenseList;
|
|
537
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
538
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
539
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
540
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
541
|
+
reactIs_development.isElement = isElement;
|
|
542
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
543
|
+
reactIs_development.isFragment = isFragment;
|
|
544
|
+
reactIs_development.isLazy = isLazy;
|
|
545
|
+
reactIs_development.isMemo = isMemo;
|
|
546
|
+
reactIs_development.isPortal = isPortal;
|
|
547
|
+
reactIs_development.isProfiler = isProfiler;
|
|
548
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
549
|
+
reactIs_development.isSuspense = isSuspense;
|
|
550
|
+
reactIs_development.isSuspenseList = isSuspenseList;
|
|
551
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
552
|
+
reactIs_development.typeOf = typeOf;
|
|
553
|
+
})();
|
|
554
|
+
}
|
|
555
|
+
return reactIs_development;
|
|
373
556
|
}
|
|
374
557
|
|
|
375
|
-
|
|
376
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
377
|
-
return true;
|
|
378
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
382
|
-
return true;
|
|
383
|
-
}
|
|
558
|
+
var hasRequiredReactIs;
|
|
384
559
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
// we don't know which Flight build this will end up being used
|
|
389
|
-
// with.
|
|
390
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
391
|
-
return true;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
560
|
+
function requireReactIs () {
|
|
561
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
562
|
+
hasRequiredReactIs = 1;
|
|
394
563
|
|
|
395
|
-
|
|
564
|
+
if (process.env.NODE_ENV === 'production') {
|
|
565
|
+
reactIs.exports = requireReactIs_production_min();
|
|
566
|
+
} else {
|
|
567
|
+
reactIs.exports = requireReactIs_development();
|
|
568
|
+
}
|
|
569
|
+
return reactIs.exports;
|
|
396
570
|
}
|
|
397
571
|
|
|
398
|
-
|
|
399
|
-
if (typeof object === 'object' && object !== null) {
|
|
400
|
-
var $$typeof = object.$$typeof;
|
|
401
|
-
|
|
402
|
-
switch ($$typeof) {
|
|
403
|
-
case REACT_ELEMENT_TYPE:
|
|
404
|
-
var type = object.type;
|
|
405
|
-
|
|
406
|
-
switch (type) {
|
|
407
|
-
case REACT_FRAGMENT_TYPE:
|
|
408
|
-
case REACT_PROFILER_TYPE:
|
|
409
|
-
case REACT_STRICT_MODE_TYPE:
|
|
410
|
-
case REACT_SUSPENSE_TYPE:
|
|
411
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
412
|
-
return type;
|
|
413
|
-
|
|
414
|
-
default:
|
|
415
|
-
var $$typeofType = type && type.$$typeof;
|
|
416
|
-
|
|
417
|
-
switch ($$typeofType) {
|
|
418
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
419
|
-
case REACT_CONTEXT_TYPE:
|
|
420
|
-
case REACT_FORWARD_REF_TYPE:
|
|
421
|
-
case REACT_LAZY_TYPE:
|
|
422
|
-
case REACT_MEMO_TYPE:
|
|
423
|
-
case REACT_PROVIDER_TYPE:
|
|
424
|
-
return $$typeofType;
|
|
425
|
-
|
|
426
|
-
default:
|
|
427
|
-
return $$typeof;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
case REACT_PORTAL_TYPE:
|
|
433
|
-
return $$typeof;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
return undefined;
|
|
438
|
-
}
|
|
439
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
440
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
441
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
442
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
443
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
444
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
445
|
-
var Memo = REACT_MEMO_TYPE;
|
|
446
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
447
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
448
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
449
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
450
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
451
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
452
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
453
|
-
|
|
454
|
-
function isAsyncMode(object) {
|
|
455
|
-
{
|
|
456
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
457
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
458
|
-
|
|
459
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
return false;
|
|
464
|
-
}
|
|
465
|
-
function isConcurrentMode(object) {
|
|
466
|
-
{
|
|
467
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
468
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
469
|
-
|
|
470
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
function isContextConsumer(object) {
|
|
477
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
478
|
-
}
|
|
479
|
-
function isContextProvider(object) {
|
|
480
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
481
|
-
}
|
|
482
|
-
function isElement(object) {
|
|
483
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
484
|
-
}
|
|
485
|
-
function isForwardRef(object) {
|
|
486
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
487
|
-
}
|
|
488
|
-
function isFragment(object) {
|
|
489
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
490
|
-
}
|
|
491
|
-
function isLazy(object) {
|
|
492
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
493
|
-
}
|
|
494
|
-
function isMemo(object) {
|
|
495
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
496
|
-
}
|
|
497
|
-
function isPortal(object) {
|
|
498
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
499
|
-
}
|
|
500
|
-
function isProfiler(object) {
|
|
501
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
502
|
-
}
|
|
503
|
-
function isStrictMode(object) {
|
|
504
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
505
|
-
}
|
|
506
|
-
function isSuspense(object) {
|
|
507
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
508
|
-
}
|
|
509
|
-
function isSuspenseList(object) {
|
|
510
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
514
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
515
|
-
reactIs_development.Element = Element;
|
|
516
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
517
|
-
reactIs_development.Fragment = Fragment;
|
|
518
|
-
reactIs_development.Lazy = Lazy;
|
|
519
|
-
reactIs_development.Memo = Memo;
|
|
520
|
-
reactIs_development.Portal = Portal;
|
|
521
|
-
reactIs_development.Profiler = Profiler;
|
|
522
|
-
reactIs_development.StrictMode = StrictMode;
|
|
523
|
-
reactIs_development.Suspense = Suspense;
|
|
524
|
-
reactIs_development.SuspenseList = SuspenseList;
|
|
525
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
526
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
527
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
528
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
529
|
-
reactIs_development.isElement = isElement;
|
|
530
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
531
|
-
reactIs_development.isFragment = isFragment;
|
|
532
|
-
reactIs_development.isLazy = isLazy;
|
|
533
|
-
reactIs_development.isMemo = isMemo;
|
|
534
|
-
reactIs_development.isPortal = isPortal;
|
|
535
|
-
reactIs_development.isProfiler = isProfiler;
|
|
536
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
537
|
-
reactIs_development.isSuspense = isSuspense;
|
|
538
|
-
reactIs_development.isSuspenseList = isSuspenseList;
|
|
539
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
540
|
-
reactIs_development.typeOf = typeOf;
|
|
541
|
-
})();
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
if (process.env.NODE_ENV === 'production') {
|
|
545
|
-
reactIs.exports = reactIs_production_min;
|
|
546
|
-
} else {
|
|
547
|
-
reactIs.exports = reactIs_development;
|
|
548
|
-
}
|
|
572
|
+
var reactIsExports = requireReactIs();
|
|
549
573
|
|
|
550
574
|
/**
|
|
551
575
|
* Flatten list of react nodes removing fragments and adding keys.
|
|
@@ -562,8 +586,8 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
562
586
|
function flattenChildren(children) {
|
|
563
587
|
function recur(nodes, keys = []) {
|
|
564
588
|
return Children.toArray(nodes).reduce((acc, node, index) => {
|
|
565
|
-
const nodeKeys = keys.concat(
|
|
566
|
-
if (
|
|
589
|
+
const nodeKeys = keys.concat(node?.key ?? index);
|
|
590
|
+
if (reactIsExports.isFragment(node)) {
|
|
567
591
|
acc.push(...recur(node.props.children, nodeKeys));
|
|
568
592
|
} else if (/*#__PURE__*/isValidElement(node)) {
|
|
569
593
|
acc.push(/*#__PURE__*/cloneElement(node, {
|
|
@@ -672,7 +696,7 @@ const useInteractiveList = options => {
|
|
|
672
696
|
setActiveItemIndex(nextIndex);
|
|
673
697
|
evt.preventDefault();
|
|
674
698
|
evt.stopPropagation();
|
|
675
|
-
onListItemNavigated?.(nextIndex,
|
|
699
|
+
onListItemNavigated?.(nextIndex, items[nextIndex]?.key);
|
|
676
700
|
};
|
|
677
701
|
|
|
678
702
|
/**
|
|
@@ -790,4 +814,4 @@ const List = Object.assign(InternalList, {
|
|
|
790
814
|
});
|
|
791
815
|
|
|
792
816
|
export { List as L, ListItem as a, isClickable as i };
|
|
793
|
-
//# sourceMappingURL=List-
|
|
817
|
+
//# sourceMappingURL=List-b7882a99.js.map
|