@geneui/components 2.12.1 → 2.12.2

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.
Files changed (93) hide show
  1. package/ActionableList/index.js +1 -1
  2. package/AdvancedSearch/index.js +2 -3
  3. package/Alert/index.js +1 -1
  4. package/Avatar/index.js +1 -1
  5. package/Badge/index.js +1 -1
  6. package/Breadcrumb/index.js +1 -1
  7. package/BusyLoader/index.js +1 -1
  8. package/Button/index.js +1 -1
  9. package/CHANGELOG.md +13 -0
  10. package/Card/index.js +1 -1
  11. package/CardList/index.js +9 -7
  12. package/{CellMeasurerCache-bc2163c1.js → CellMeasurerCache-3741d716.js} +1 -1
  13. package/Charts/index.js +23 -23
  14. package/CheckboxGroupWithSearch/index.js +2 -2
  15. package/Collapse/index.js +1 -1
  16. package/ColorPicker/index.js +1 -1
  17. package/ComboBox/index.js +2 -2
  18. package/Counter/index.js +1 -1
  19. package/DateFilter/index.js +2 -3
  20. package/DatePicker/index.js +1 -1
  21. package/DatePickerInput/index.js +14 -14
  22. package/Divider/index.js +1 -1
  23. package/Drawer/index.js +1 -1
  24. package/Dropdown/index.js +4 -4
  25. package/Editor/index.js +1 -1
  26. package/Empty/index.js +1 -1
  27. package/ExtendedInput/index.js +2 -2
  28. package/Form/index.js +7 -10
  29. package/FormContainer/index.js +1 -1
  30. package/FormableDatePicker/index.js +1 -2
  31. package/FormableDropdown/index.js +6 -6
  32. package/FormableMultiSelectDropdown/index.js +6 -6
  33. package/GeneUIProvider/index.js +1 -1
  34. package/Grid/index.js +1 -1
  35. package/Holder/index.js +1 -1
  36. package/Icon/index.js +1 -1
  37. package/Image/index.js +1 -1
  38. package/ImagePreview/index.js +1 -1
  39. package/KeyValue/index.js +1 -1
  40. package/Label/index.js +1 -1
  41. package/LinkButton/index.js +1 -1
  42. package/Menu/index.js +1 -1
  43. package/MobileNavigation/index.js +1 -1
  44. package/MobilePopup/index.js +1 -1
  45. package/Modal/index.js +1 -1
  46. package/ModuleTitle/index.js +1 -1
  47. package/NavigationMenu/index.js +1 -1
  48. package/Notification/index.js +1 -1
  49. package/Option/index.js +1 -1
  50. package/Overlay/index.js +1 -1
  51. package/Overspread/index.js +5 -3
  52. package/Pagination/index.js +1 -1
  53. package/Paper/index.js +1 -1
  54. package/Popover/index.js +1 -1
  55. package/PopoverV2/index.js +16 -987
  56. package/Products/index.js +1 -1
  57. package/Profile/index.js +1 -1
  58. package/Progress/index.js +1 -1
  59. package/RichEditor/index.js +1 -1
  60. package/{RichEditor-8b9c3afa.js → RichEditor-8b0f7ccd.js} +1 -1
  61. package/Scrollbar/index.js +1 -1
  62. package/SearchWithDropdown/index.js +6 -6
  63. package/Section/index.js +1 -1
  64. package/SkeletonLoader/index.js +1 -1
  65. package/Status/index.js +1 -1
  66. package/Steps/index.js +1 -1
  67. package/SuggestionList/index.js +1 -1
  68. package/Switcher/index.js +1 -1
  69. package/Table/index.js +5 -5
  70. package/TableCompositions/index.js +12 -13
  71. package/Tabs/index.js +1 -1
  72. package/Tag/index.js +1 -1
  73. package/Time/index.js +1 -1
  74. package/TimePicker/index.js +2 -3
  75. package/Timeline/index.js +2 -2
  76. package/Title/index.js +1 -1
  77. package/Toaster/index.js +1 -1
  78. package/Tooltip/index.js +1 -1
  79. package/TransferList/index.js +3 -3
  80. package/Uploader/index.js +4 -4
  81. package/ValidatableDatePicker/index.js +1 -2
  82. package/ValidatableDropdown/index.js +7 -7
  83. package/ValidatableElements/index.js +7 -10
  84. package/ValidatableMultiSelectDropdown/index.js +7 -7
  85. package/ValidatableNumberInput/index.js +7 -0
  86. package/Widget/index.js +6 -6
  87. package/{index-78d2ea5b.js → index-11eea761.js} +7 -7
  88. package/{index-583e0b30.js → index-2ad83e03.js} +1 -1
  89. package/{index-bd525a3a.js → index-34e47647.js} +4 -4
  90. package/index-462461c0.js +1940 -0
  91. package/index.js +6 -7
  92. package/package.json +1 -1
  93. package/jsx-runtime-57b40d9e.js +0 -957
@@ -1,957 +0,0 @@
1
- import React__default from 'react';
2
-
3
- var jsxRuntimeExports = {};
4
- var jsxRuntime = {
5
- get exports(){ return jsxRuntimeExports; },
6
- set exports(v){ jsxRuntimeExports = v; },
7
- };
8
-
9
- var reactJsxRuntime_production_min = {};
10
-
11
- /** @license React v16.14.0
12
- * react-jsx-runtime.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */
19
-
20
- var hasRequiredReactJsxRuntime_production_min;
21
-
22
- function requireReactJsxRuntime_production_min () {
23
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
24
- hasRequiredReactJsxRuntime_production_min = 1;
25
- var f=React__default,g=60103;reactJsxRuntime_production_min.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");reactJsxRuntime_production_min.Fragment=h("react.fragment");}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
26
- function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
27
- return reactJsxRuntime_production_min;
28
- }
29
-
30
- var reactJsxRuntime_development = {};
31
-
32
- /** @license React v16.14.0
33
- * react-jsx-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
-
41
- var hasRequiredReactJsxRuntime_development;
42
-
43
- function requireReactJsxRuntime_development () {
44
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
45
- hasRequiredReactJsxRuntime_development = 1;
46
- (function (exports) {
47
-
48
- if (process.env.NODE_ENV !== "production") {
49
- (function() {
50
-
51
- var React = React__default;
52
-
53
- // ATTENTION
54
- // When adding new symbols to this file,
55
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
56
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
57
- // nor polyfill, then a plain number is used for performance.
58
- var REACT_ELEMENT_TYPE = 0xeac7;
59
- var REACT_PORTAL_TYPE = 0xeaca;
60
- exports.Fragment = 0xeacb;
61
- var REACT_STRICT_MODE_TYPE = 0xeacc;
62
- var REACT_PROFILER_TYPE = 0xead2;
63
- var REACT_PROVIDER_TYPE = 0xeacd;
64
- var REACT_CONTEXT_TYPE = 0xeace;
65
- var REACT_FORWARD_REF_TYPE = 0xead0;
66
- var REACT_SUSPENSE_TYPE = 0xead1;
67
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
68
- var REACT_MEMO_TYPE = 0xead3;
69
- var REACT_LAZY_TYPE = 0xead4;
70
- var REACT_BLOCK_TYPE = 0xead9;
71
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
72
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
73
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
74
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
75
-
76
- if (typeof Symbol === 'function' && Symbol.for) {
77
- var symbolFor = Symbol.for;
78
- REACT_ELEMENT_TYPE = symbolFor('react.element');
79
- REACT_PORTAL_TYPE = symbolFor('react.portal');
80
- exports.Fragment = symbolFor('react.fragment');
81
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
82
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
83
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
84
- REACT_CONTEXT_TYPE = symbolFor('react.context');
85
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
86
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
87
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
88
- REACT_MEMO_TYPE = symbolFor('react.memo');
89
- REACT_LAZY_TYPE = symbolFor('react.lazy');
90
- REACT_BLOCK_TYPE = symbolFor('react.block');
91
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
92
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
93
- symbolFor('react.scope');
94
- symbolFor('react.opaque.id');
95
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
96
- symbolFor('react.offscreen');
97
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
98
- }
99
-
100
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
101
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
102
- function getIteratorFn(maybeIterable) {
103
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
104
- return null;
105
- }
106
-
107
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
108
-
109
- if (typeof maybeIterator === 'function') {
110
- return maybeIterator;
111
- }
112
-
113
- return null;
114
- }
115
-
116
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
117
-
118
- function error(format) {
119
- {
120
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
121
- args[_key2 - 1] = arguments[_key2];
122
- }
123
-
124
- printWarning('error', format, args);
125
- }
126
- }
127
-
128
- function printWarning(level, format, args) {
129
- // When changing this logic, you might want to also
130
- // update consoleWithStackDev.www.js as well.
131
- {
132
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
133
- var stack = '';
134
-
135
- if (currentlyValidatingElement) {
136
- var name = getComponentName(currentlyValidatingElement.type);
137
- var owner = currentlyValidatingElement._owner;
138
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
139
- }
140
-
141
- stack += ReactDebugCurrentFrame.getStackAddendum();
142
-
143
- if (stack !== '') {
144
- format += '%s';
145
- args = args.concat([stack]);
146
- }
147
-
148
- var argsWithFormat = args.map(function (item) {
149
- return '' + item;
150
- }); // Careful: RN currently depends on this prefix
151
-
152
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
153
- // breaks IE9: https://github.com/facebook/react/issues/13610
154
- // eslint-disable-next-line react-internal/no-production-logging
155
-
156
- Function.prototype.apply.call(console[level], console, argsWithFormat);
157
- }
158
- }
159
-
160
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
161
-
162
- var enableScopeAPI = false; // Experimental Create Event Handle API.
163
-
164
- function isValidElementType(type) {
165
- if (typeof type === 'string' || typeof type === 'function') {
166
- return true;
167
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
168
-
169
-
170
- if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
171
- return true;
172
- }
173
-
174
- if (typeof type === 'object' && type !== null) {
175
- 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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
176
- return true;
177
- }
178
- }
179
-
180
- return false;
181
- }
182
-
183
-
184
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
185
- function describeComponentFrame (name, source, ownerName) {
186
- var sourceInfo = '';
187
-
188
- if (source) {
189
- var path = source.fileName;
190
- var fileName = path.replace(BEFORE_SLASH_RE, '');
191
-
192
- {
193
- // In DEV, include code for a common special case:
194
- // prefer "folder/index.js" instead of just "index.js".
195
- if (/^index\./.test(fileName)) {
196
- var match = path.match(BEFORE_SLASH_RE);
197
-
198
- if (match) {
199
- var pathBeforeSlash = match[1];
200
-
201
- if (pathBeforeSlash) {
202
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
203
- fileName = folderName + '/' + fileName;
204
- }
205
- }
206
- }
207
- }
208
-
209
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
210
- } else if (ownerName) {
211
- sourceInfo = ' (created by ' + ownerName + ')';
212
- }
213
-
214
- return '\n in ' + (name || 'Unknown') + sourceInfo;
215
- }
216
-
217
- var Resolved = 1;
218
- function refineResolvedLazyComponent(lazyComponent) {
219
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
220
- }
221
-
222
- function getWrappedName(outerType, innerType, wrapperName) {
223
- var functionName = innerType.displayName || innerType.name || '';
224
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
225
- }
226
-
227
- function getComponentName(type) {
228
- if (type == null) {
229
- // Host root, text node or just invalid type.
230
- return null;
231
- }
232
-
233
- {
234
- if (typeof type.tag === 'number') {
235
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
236
- }
237
- }
238
-
239
- if (typeof type === 'function') {
240
- return type.displayName || type.name || null;
241
- }
242
-
243
- if (typeof type === 'string') {
244
- return type;
245
- }
246
-
247
- switch (type) {
248
- case exports.Fragment:
249
- return 'Fragment';
250
-
251
- case REACT_PORTAL_TYPE:
252
- return 'Portal';
253
-
254
- case REACT_PROFILER_TYPE:
255
- return "Profiler";
256
-
257
- case REACT_STRICT_MODE_TYPE:
258
- return 'StrictMode';
259
-
260
- case REACT_SUSPENSE_TYPE:
261
- return 'Suspense';
262
-
263
- case REACT_SUSPENSE_LIST_TYPE:
264
- return 'SuspenseList';
265
- }
266
-
267
- if (typeof type === 'object') {
268
- switch (type.$$typeof) {
269
- case REACT_CONTEXT_TYPE:
270
- return 'Context.Consumer';
271
-
272
- case REACT_PROVIDER_TYPE:
273
- return 'Context.Provider';
274
-
275
- case REACT_FORWARD_REF_TYPE:
276
- return getWrappedName(type, type.render, 'ForwardRef');
277
-
278
- case REACT_MEMO_TYPE:
279
- return getComponentName(type.type);
280
-
281
- case REACT_BLOCK_TYPE:
282
- return getComponentName(type.render);
283
-
284
- case REACT_LAZY_TYPE:
285
- {
286
- var thenable = type;
287
- var resolvedThenable = refineResolvedLazyComponent(thenable);
288
-
289
- if (resolvedThenable) {
290
- return getComponentName(resolvedThenable);
291
- }
292
-
293
- break;
294
- }
295
- }
296
- }
297
-
298
- return null;
299
- }
300
-
301
- var loggedTypeFailures = {};
302
- ReactSharedInternals.ReactDebugCurrentFrame;
303
- var currentlyValidatingElement = null;
304
-
305
- function setCurrentlyValidatingElement(element) {
306
- {
307
- currentlyValidatingElement = element;
308
- }
309
- }
310
-
311
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
312
- {
313
- // $FlowFixMe This is okay but Flow doesn't know it.
314
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
315
-
316
- for (var typeSpecName in typeSpecs) {
317
- if (has(typeSpecs, typeSpecName)) {
318
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
319
- // fail the render phase where it didn't fail before. So we log it.
320
- // After these have been cleaned up, we'll let them throw.
321
-
322
- try {
323
- // This is intentionally an invariant that gets caught. It's the same
324
- // behavior as without this statement except with a better message.
325
- if (typeof typeSpecs[typeSpecName] !== 'function') {
326
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
327
- err.name = 'Invariant Violation';
328
- throw err;
329
- }
330
-
331
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
332
- } catch (ex) {
333
- error$1 = ex;
334
- }
335
-
336
- if (error$1 && !(error$1 instanceof Error)) {
337
- setCurrentlyValidatingElement(element);
338
-
339
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %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).', componentName || 'React class', location, typeSpecName, typeof error$1);
340
-
341
- setCurrentlyValidatingElement(null);
342
- }
343
-
344
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
345
- // Only monitor this failure once because there tends to be a lot of the
346
- // same error.
347
- loggedTypeFailures[error$1.message] = true;
348
- setCurrentlyValidatingElement(element);
349
-
350
- error('Failed %s type: %s', location, error$1.message);
351
-
352
- setCurrentlyValidatingElement(null);
353
- }
354
- }
355
- }
356
- }
357
- }
358
-
359
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
360
- var hasOwnProperty = Object.prototype.hasOwnProperty;
361
- var RESERVED_PROPS = {
362
- key: true,
363
- ref: true,
364
- __self: true,
365
- __source: true
366
- };
367
- var specialPropKeyWarningShown;
368
- var specialPropRefWarningShown;
369
- var didWarnAboutStringRefs;
370
-
371
- {
372
- didWarnAboutStringRefs = {};
373
- }
374
-
375
- function hasValidRef(config) {
376
- {
377
- if (hasOwnProperty.call(config, 'ref')) {
378
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
379
-
380
- if (getter && getter.isReactWarning) {
381
- return false;
382
- }
383
- }
384
- }
385
-
386
- return config.ref !== undefined;
387
- }
388
-
389
- function hasValidKey(config) {
390
- {
391
- if (hasOwnProperty.call(config, 'key')) {
392
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
393
-
394
- if (getter && getter.isReactWarning) {
395
- return false;
396
- }
397
- }
398
- }
399
-
400
- return config.key !== undefined;
401
- }
402
-
403
- function warnIfStringRefCannotBeAutoConverted(config, self) {
404
- {
405
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
406
- var componentName = getComponentName(ReactCurrentOwner.current.type);
407
-
408
- if (!didWarnAboutStringRefs[componentName]) {
409
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
410
-
411
- didWarnAboutStringRefs[componentName] = true;
412
- }
413
- }
414
- }
415
- }
416
-
417
- function defineKeyPropWarningGetter(props, displayName) {
418
- {
419
- var warnAboutAccessingKey = function () {
420
- if (!specialPropKeyWarningShown) {
421
- specialPropKeyWarningShown = true;
422
-
423
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
424
- }
425
- };
426
-
427
- warnAboutAccessingKey.isReactWarning = true;
428
- Object.defineProperty(props, 'key', {
429
- get: warnAboutAccessingKey,
430
- configurable: true
431
- });
432
- }
433
- }
434
-
435
- function defineRefPropWarningGetter(props, displayName) {
436
- {
437
- var warnAboutAccessingRef = function () {
438
- if (!specialPropRefWarningShown) {
439
- specialPropRefWarningShown = true;
440
-
441
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
442
- }
443
- };
444
-
445
- warnAboutAccessingRef.isReactWarning = true;
446
- Object.defineProperty(props, 'ref', {
447
- get: warnAboutAccessingRef,
448
- configurable: true
449
- });
450
- }
451
- }
452
- /**
453
- * Factory method to create a new React element. This no longer adheres to
454
- * the class pattern, so do not use new to call it. Also, instanceof check
455
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
456
- * if something is a React Element.
457
- *
458
- * @param {*} type
459
- * @param {*} props
460
- * @param {*} key
461
- * @param {string|object} ref
462
- * @param {*} owner
463
- * @param {*} self A *temporary* helper to detect places where `this` is
464
- * different from the `owner` when React.createElement is called, so that we
465
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
466
- * functions, and as long as `this` and owner are the same, there will be no
467
- * change in behavior.
468
- * @param {*} source An annotation object (added by a transpiler or otherwise)
469
- * indicating filename, line number, and/or other information.
470
- * @internal
471
- */
472
-
473
-
474
- var ReactElement = function (type, key, ref, self, source, owner, props) {
475
- var element = {
476
- // This tag allows us to uniquely identify this as a React Element
477
- $$typeof: REACT_ELEMENT_TYPE,
478
- // Built-in properties that belong on the element
479
- type: type,
480
- key: key,
481
- ref: ref,
482
- props: props,
483
- // Record the component responsible for creating this element.
484
- _owner: owner
485
- };
486
-
487
- {
488
- // The validation flag is currently mutative. We put it on
489
- // an external backing store so that we can freeze the whole object.
490
- // This can be replaced with a WeakMap once they are implemented in
491
- // commonly used development environments.
492
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
493
- // the validation flag non-enumerable (where possible, which should
494
- // include every environment we run tests in), so the test framework
495
- // ignores it.
496
-
497
- Object.defineProperty(element._store, 'validated', {
498
- configurable: false,
499
- enumerable: false,
500
- writable: true,
501
- value: false
502
- }); // self and source are DEV only properties.
503
-
504
- Object.defineProperty(element, '_self', {
505
- configurable: false,
506
- enumerable: false,
507
- writable: false,
508
- value: self
509
- }); // Two elements created in two different places should be considered
510
- // equal for testing purposes and therefore we hide it from enumeration.
511
-
512
- Object.defineProperty(element, '_source', {
513
- configurable: false,
514
- enumerable: false,
515
- writable: false,
516
- value: source
517
- });
518
-
519
- if (Object.freeze) {
520
- Object.freeze(element.props);
521
- Object.freeze(element);
522
- }
523
- }
524
-
525
- return element;
526
- };
527
- /**
528
- * https://github.com/reactjs/rfcs/pull/107
529
- * @param {*} type
530
- * @param {object} props
531
- * @param {string} key
532
- */
533
-
534
- function jsxDEV(type, config, maybeKey, source, self) {
535
- {
536
- var propName; // Reserved names are extracted
537
-
538
- var props = {};
539
- var key = null;
540
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
541
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
542
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
543
- // but as an intermediary step, we will use jsxDEV for everything except
544
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
545
- // key is explicitly declared to be undefined or not.
546
-
547
- if (maybeKey !== undefined) {
548
- key = '' + maybeKey;
549
- }
550
-
551
- if (hasValidKey(config)) {
552
- key = '' + config.key;
553
- }
554
-
555
- if (hasValidRef(config)) {
556
- ref = config.ref;
557
- warnIfStringRefCannotBeAutoConverted(config, self);
558
- } // Remaining properties are added to a new props object
559
-
560
-
561
- for (propName in config) {
562
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
563
- props[propName] = config[propName];
564
- }
565
- } // Resolve default props
566
-
567
-
568
- if (type && type.defaultProps) {
569
- var defaultProps = type.defaultProps;
570
-
571
- for (propName in defaultProps) {
572
- if (props[propName] === undefined) {
573
- props[propName] = defaultProps[propName];
574
- }
575
- }
576
- }
577
-
578
- if (key || ref) {
579
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
580
-
581
- if (key) {
582
- defineKeyPropWarningGetter(props, displayName);
583
- }
584
-
585
- if (ref) {
586
- defineRefPropWarningGetter(props, displayName);
587
- }
588
- }
589
-
590
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
591
- }
592
- }
593
-
594
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
595
- ReactSharedInternals.ReactDebugCurrentFrame;
596
-
597
- function setCurrentlyValidatingElement$1(element) {
598
- currentlyValidatingElement = element;
599
- }
600
-
601
- var propTypesMisspellWarningShown;
602
-
603
- {
604
- propTypesMisspellWarningShown = false;
605
- }
606
- /**
607
- * Verifies the object is a ReactElement.
608
- * See https://reactjs.org/docs/react-api.html#isvalidelement
609
- * @param {?object} object
610
- * @return {boolean} True if `object` is a ReactElement.
611
- * @final
612
- */
613
-
614
- function isValidElement(object) {
615
- {
616
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
617
- }
618
- }
619
-
620
- function getDeclarationErrorAddendum() {
621
- {
622
- if (ReactCurrentOwner$1.current) {
623
- var name = getComponentName(ReactCurrentOwner$1.current.type);
624
-
625
- if (name) {
626
- return '\n\nCheck the render method of `' + name + '`.';
627
- }
628
- }
629
-
630
- return '';
631
- }
632
- }
633
-
634
- function getSourceInfoErrorAddendum(source) {
635
- {
636
- if (source !== undefined) {
637
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
638
- var lineNumber = source.lineNumber;
639
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
640
- }
641
-
642
- return '';
643
- }
644
- }
645
- /**
646
- * Warn if there's no key explicitly set on dynamic arrays of children or
647
- * object keys are not valid. This allows us to keep track of children between
648
- * updates.
649
- */
650
-
651
-
652
- var ownerHasKeyUseWarning = {};
653
-
654
- function getCurrentComponentErrorInfo(parentType) {
655
- {
656
- var info = getDeclarationErrorAddendum();
657
-
658
- if (!info) {
659
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
660
-
661
- if (parentName) {
662
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
663
- }
664
- }
665
-
666
- return info;
667
- }
668
- }
669
- /**
670
- * Warn if the element doesn't have an explicit key assigned to it.
671
- * This element is in an array. The array could grow and shrink or be
672
- * reordered. All children that haven't already been validated are required to
673
- * have a "key" property assigned to it. Error statuses are cached so a warning
674
- * will only be shown once.
675
- *
676
- * @internal
677
- * @param {ReactElement} element Element that requires a key.
678
- * @param {*} parentType element's parent's type.
679
- */
680
-
681
-
682
- function validateExplicitKey(element, parentType) {
683
- {
684
- if (!element._store || element._store.validated || element.key != null) {
685
- return;
686
- }
687
-
688
- element._store.validated = true;
689
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
690
-
691
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
692
- return;
693
- }
694
-
695
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
696
- // property, it may be the creator of the child that's responsible for
697
- // assigning it a key.
698
-
699
- var childOwner = '';
700
-
701
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
702
- // Give the component that originally created this child.
703
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
704
- }
705
-
706
- setCurrentlyValidatingElement$1(element);
707
-
708
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
709
-
710
- setCurrentlyValidatingElement$1(null);
711
- }
712
- }
713
- /**
714
- * Ensure that every element either is passed in a static location, in an
715
- * array with an explicit keys property defined, or in an object literal
716
- * with valid key property.
717
- *
718
- * @internal
719
- * @param {ReactNode} node Statically passed child of any type.
720
- * @param {*} parentType node's parent's type.
721
- */
722
-
723
-
724
- function validateChildKeys(node, parentType) {
725
- {
726
- if (typeof node !== 'object') {
727
- return;
728
- }
729
-
730
- if (Array.isArray(node)) {
731
- for (var i = 0; i < node.length; i++) {
732
- var child = node[i];
733
-
734
- if (isValidElement(child)) {
735
- validateExplicitKey(child, parentType);
736
- }
737
- }
738
- } else if (isValidElement(node)) {
739
- // This element was passed in a valid location.
740
- if (node._store) {
741
- node._store.validated = true;
742
- }
743
- } else if (node) {
744
- var iteratorFn = getIteratorFn(node);
745
-
746
- if (typeof iteratorFn === 'function') {
747
- // Entry iterators used to provide implicit keys,
748
- // but now we print a separate warning for them later.
749
- if (iteratorFn !== node.entries) {
750
- var iterator = iteratorFn.call(node);
751
- var step;
752
-
753
- while (!(step = iterator.next()).done) {
754
- if (isValidElement(step.value)) {
755
- validateExplicitKey(step.value, parentType);
756
- }
757
- }
758
- }
759
- }
760
- }
761
- }
762
- }
763
- /**
764
- * Given an element, validate that its props follow the propTypes definition,
765
- * provided by the type.
766
- *
767
- * @param {ReactElement} element
768
- */
769
-
770
-
771
- function validatePropTypes(element) {
772
- {
773
- var type = element.type;
774
-
775
- if (type === null || type === undefined || typeof type === 'string') {
776
- return;
777
- }
778
-
779
- var propTypes;
780
-
781
- if (typeof type === 'function') {
782
- propTypes = type.propTypes;
783
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
784
- // Inner props are checked in the reconciler.
785
- type.$$typeof === REACT_MEMO_TYPE)) {
786
- propTypes = type.propTypes;
787
- } else {
788
- return;
789
- }
790
-
791
- if (propTypes) {
792
- // Intentionally inside to avoid triggering lazy initializers:
793
- var name = getComponentName(type);
794
- checkPropTypes(propTypes, element.props, 'prop', name, element);
795
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
796
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
797
-
798
- var _name = getComponentName(type);
799
-
800
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
801
- }
802
-
803
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
804
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
805
- }
806
- }
807
- }
808
- /**
809
- * Given a fragment, validate that it can only be provided with fragment props
810
- * @param {ReactElement} fragment
811
- */
812
-
813
-
814
- function validateFragmentProps(fragment) {
815
- {
816
- var keys = Object.keys(fragment.props);
817
-
818
- for (var i = 0; i < keys.length; i++) {
819
- var key = keys[i];
820
-
821
- if (key !== 'children' && key !== 'key') {
822
- setCurrentlyValidatingElement$1(fragment);
823
-
824
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
825
-
826
- setCurrentlyValidatingElement$1(null);
827
- break;
828
- }
829
- }
830
-
831
- if (fragment.ref !== null) {
832
- setCurrentlyValidatingElement$1(fragment);
833
-
834
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
835
-
836
- setCurrentlyValidatingElement$1(null);
837
- }
838
- }
839
- }
840
-
841
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
842
- {
843
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
844
- // succeed and there will likely be errors in render.
845
-
846
- if (!validType) {
847
- var info = '';
848
-
849
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
850
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
851
- }
852
-
853
- var sourceInfo = getSourceInfoErrorAddendum(source);
854
-
855
- if (sourceInfo) {
856
- info += sourceInfo;
857
- } else {
858
- info += getDeclarationErrorAddendum();
859
- }
860
-
861
- var typeString;
862
-
863
- if (type === null) {
864
- typeString = 'null';
865
- } else if (Array.isArray(type)) {
866
- typeString = 'array';
867
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
868
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
869
- info = ' Did you accidentally export a JSX literal instead of a component?';
870
- } else {
871
- typeString = typeof type;
872
- }
873
-
874
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
875
- }
876
-
877
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
878
- // TODO: Drop this when these are no longer allowed as the type argument.
879
-
880
- if (element == null) {
881
- return element;
882
- } // Skip key warning if the type isn't valid since our key validation logic
883
- // doesn't expect a non-string/function type and can throw confusing errors.
884
- // We don't want exception behavior to differ between dev and prod.
885
- // (Rendering will throw with a helpful message and as soon as the type is
886
- // fixed, the key warnings will appear.)
887
-
888
-
889
- if (validType) {
890
- var children = props.children;
891
-
892
- if (children !== undefined) {
893
- if (isStaticChildren) {
894
- if (Array.isArray(children)) {
895
- for (var i = 0; i < children.length; i++) {
896
- validateChildKeys(children[i], type);
897
- }
898
-
899
- if (Object.freeze) {
900
- Object.freeze(children);
901
- }
902
- } else {
903
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
904
- }
905
- } else {
906
- validateChildKeys(children, type);
907
- }
908
- }
909
- }
910
-
911
- if (type === exports.Fragment) {
912
- validateFragmentProps(element);
913
- } else {
914
- validatePropTypes(element);
915
- }
916
-
917
- return element;
918
- }
919
- } // These two functions exist to still get child warnings in dev
920
- // even with the prod transform. This means that jsxDEV is purely
921
- // opt-in behavior for better messages but that we won't stop
922
- // giving you warnings if you use production apis.
923
-
924
- function jsxWithValidationStatic(type, props, key) {
925
- {
926
- return jsxWithValidation(type, props, key, true);
927
- }
928
- }
929
- function jsxWithValidationDynamic(type, props, key) {
930
- {
931
- return jsxWithValidation(type, props, key, false);
932
- }
933
- }
934
-
935
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
936
- // for now we can ship identical prod functions
937
-
938
- var jsxs = jsxWithValidationStatic ;
939
-
940
- exports.jsx = jsx;
941
- exports.jsxs = jsxs;
942
- })();
943
- }
944
- } (reactJsxRuntime_development));
945
- return reactJsxRuntime_development;
946
- }
947
-
948
- (function (module) {
949
-
950
- if (process.env.NODE_ENV === 'production') {
951
- module.exports = requireReactJsxRuntime_production_min();
952
- } else {
953
- module.exports = requireReactJsxRuntime_development();
954
- }
955
- } (jsxRuntime));
956
-
957
- export { jsxRuntimeExports as j };