numora-react 1.0.4 → 1.0.5

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/dist/index.cjs.js CHANGED
@@ -16,33 +16,36 @@ var reactJsxRuntime_production = {};
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
18
  */
19
+
19
20
  var hasRequiredReactJsxRuntime_production;
20
- function requireReactJsxRuntime_production() {
21
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
22
- hasRequiredReactJsxRuntime_production = 1;
23
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
24
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
25
- function jsxProd(type, config, maybeKey) {
26
- var key = null;
27
- void 0 !== maybeKey && (key = "" + maybeKey);
28
- void 0 !== config.key && (key = "" + config.key);
29
- if ("key" in config) {
30
- maybeKey = {};
31
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
32
- } else maybeKey = config;
33
- config = maybeKey.ref;
34
- return {
35
- $$typeof: REACT_ELEMENT_TYPE,
36
- type: type,
37
- key: key,
38
- ref: void 0 !== config ? config : null,
39
- props: maybeKey
40
- };
41
- }
42
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
43
- reactJsxRuntime_production.jsx = jsxProd;
44
- reactJsxRuntime_production.jsxs = jsxProd;
45
- return reactJsxRuntime_production;
21
+
22
+ function requireReactJsxRuntime_production () {
23
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
24
+ hasRequiredReactJsxRuntime_production = 1;
25
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
26
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
27
+ function jsxProd(type, config, maybeKey) {
28
+ var key = null;
29
+ void 0 !== maybeKey && (key = "" + maybeKey);
30
+ void 0 !== config.key && (key = "" + config.key);
31
+ if ("key" in config) {
32
+ maybeKey = {};
33
+ for (var propName in config)
34
+ "key" !== propName && (maybeKey[propName] = config[propName]);
35
+ } else maybeKey = config;
36
+ config = maybeKey.ref;
37
+ return {
38
+ $$typeof: REACT_ELEMENT_TYPE,
39
+ type: type,
40
+ key: key,
41
+ ref: void 0 !== config ? config : null,
42
+ props: maybeKey
43
+ };
44
+ }
45
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
46
+ reactJsxRuntime_production.jsx = jsxProd;
47
+ reactJsxRuntime_production.jsxs = jsxProd;
48
+ return reactJsxRuntime_production;
46
49
  }
47
50
 
48
51
  var reactJsxRuntime_development = {};
@@ -56,240 +59,373 @@ var reactJsxRuntime_development = {};
56
59
  * This source code is licensed under the MIT license found in the
57
60
  * LICENSE file in the root directory of this source tree.
58
61
  */
62
+
59
63
  var hasRequiredReactJsxRuntime_development;
60
- function requireReactJsxRuntime_development() {
61
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
62
- hasRequiredReactJsxRuntime_development = 1;
63
- "production" !== process.env.NODE_ENV && function () {
64
- function getComponentNameFromType(type) {
65
- if (null == type) return null;
66
- if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
67
- if ("string" === typeof type) return type;
68
- switch (type) {
69
- case REACT_FRAGMENT_TYPE:
70
- return "Fragment";
71
- case REACT_PROFILER_TYPE:
72
- return "Profiler";
73
- case REACT_STRICT_MODE_TYPE:
74
- return "StrictMode";
75
- case REACT_SUSPENSE_TYPE:
76
- return "Suspense";
77
- case REACT_SUSPENSE_LIST_TYPE:
78
- return "SuspenseList";
79
- case REACT_ACTIVITY_TYPE:
80
- return "Activity";
81
- }
82
- if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
83
- case REACT_PORTAL_TYPE:
84
- return "Portal";
85
- case REACT_CONTEXT_TYPE:
86
- return type.displayName || "Context";
87
- case REACT_CONSUMER_TYPE:
88
- return (type._context.displayName || "Context") + ".Consumer";
89
- case REACT_FORWARD_REF_TYPE:
90
- var innerType = type.render;
91
- type = type.displayName;
92
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
93
- return type;
94
- case REACT_MEMO_TYPE:
95
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
96
- case REACT_LAZY_TYPE:
97
- innerType = type._payload;
98
- type = type._init;
99
- try {
100
- return getComponentNameFromType(type(innerType));
101
- } catch (x) {}
102
- }
103
- return null;
104
- }
105
- function testStringCoercion(value) {
106
- return "" + value;
107
- }
108
- function checkKeyStringCoercion(value) {
109
- try {
110
- testStringCoercion(value);
111
- var JSCompiler_inline_result = !1;
112
- } catch (e) {
113
- JSCompiler_inline_result = true;
114
- }
115
- if (JSCompiler_inline_result) {
116
- JSCompiler_inline_result = console;
117
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
118
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
119
- JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
120
- return testStringCoercion(value);
121
- }
122
- }
123
- function getTaskName(type) {
124
- if (type === REACT_FRAGMENT_TYPE) return "<>";
125
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
126
- try {
127
- var name = getComponentNameFromType(type);
128
- return name ? "<" + name + ">" : "<...>";
129
- } catch (x) {
130
- return "<...>";
131
- }
132
- }
133
- function getOwner() {
134
- var dispatcher = ReactSharedInternals.A;
135
- return null === dispatcher ? null : dispatcher.getOwner();
136
- }
137
- function UnknownOwner() {
138
- return Error("react-stack-top-frame");
139
- }
140
- function hasValidKey(config) {
141
- if (hasOwnProperty.call(config, "key")) {
142
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
143
- if (getter && getter.isReactWarning) return false;
144
- }
145
- return void 0 !== config.key;
146
- }
147
- function defineKeyPropWarningGetter(props, displayName) {
148
- function warnAboutAccessingKey() {
149
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.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://react.dev/link/special-props)", displayName));
150
- }
151
- warnAboutAccessingKey.isReactWarning = true;
152
- Object.defineProperty(props, "key", {
153
- get: warnAboutAccessingKey,
154
- configurable: true
155
- });
156
- }
157
- function elementRefGetterWithDeprecationWarning() {
158
- var componentName = getComponentNameFromType(this.type);
159
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
160
- componentName = this.props.ref;
161
- return void 0 !== componentName ? componentName : null;
162
- }
163
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
164
- var refProp = props.ref;
165
- type = {
166
- $$typeof: REACT_ELEMENT_TYPE,
167
- type: type,
168
- key: key,
169
- props: props,
170
- _owner: owner
171
- };
172
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
173
- enumerable: false,
174
- get: elementRefGetterWithDeprecationWarning
175
- }) : Object.defineProperty(type, "ref", {
176
- enumerable: false,
177
- value: null
178
- });
179
- type._store = {};
180
- Object.defineProperty(type._store, "validated", {
181
- configurable: false,
182
- enumerable: false,
183
- writable: true,
184
- value: 0
185
- });
186
- Object.defineProperty(type, "_debugInfo", {
187
- configurable: false,
188
- enumerable: false,
189
- writable: true,
190
- value: null
191
- });
192
- Object.defineProperty(type, "_debugStack", {
193
- configurable: false,
194
- enumerable: false,
195
- writable: true,
196
- value: debugStack
197
- });
198
- Object.defineProperty(type, "_debugTask", {
199
- configurable: false,
200
- enumerable: false,
201
- writable: true,
202
- value: debugTask
203
- });
204
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
205
- return type;
206
- }
207
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
208
- var children = config.children;
209
- if (void 0 !== children) if (isStaticChildren) {
210
- if (isArrayImpl(children)) {
211
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
212
- Object.freeze && Object.freeze(children);
213
- } else console.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.");
214
- } else validateChildKeys(children);
215
- if (hasOwnProperty.call(config, "key")) {
216
- children = getComponentNameFromType(type);
217
- var keys = Object.keys(config).filter(function (k) {
218
- return "key" !== k;
219
- });
220
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
221
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
222
- }
223
- children = null;
224
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
225
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
226
- if ("key" in config) {
227
- maybeKey = {};
228
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
229
- } else maybeKey = config;
230
- children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
231
- return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
232
- }
233
- function validateChildKeys(node) {
234
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
235
- }
236
- function isValidElement(object) {
237
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
238
- }
239
- var React = require$$0,
240
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
241
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
242
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
243
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
244
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
245
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
246
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
247
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
248
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
249
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
250
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
251
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
252
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
253
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
254
- ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
255
- hasOwnProperty = Object.prototype.hasOwnProperty,
256
- isArrayImpl = Array.isArray,
257
- createTask = console.createTask ? console.createTask : function () {
258
- return null;
259
- };
260
- React = {
261
- react_stack_bottom_frame: function (callStackForError) {
262
- return callStackForError();
263
- }
264
- };
265
- var specialPropKeyWarningShown;
266
- var didWarnAboutElementRef = {};
267
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
268
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
269
- var didWarnAboutKeySpread = {};
270
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
271
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
272
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
273
- return jsxDEVImpl(type, config, maybeKey, false, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
274
- };
275
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
276
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
277
- return jsxDEVImpl(type, config, maybeKey, true, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
278
- };
279
- }();
280
- return reactJsxRuntime_development;
64
+
65
+ function requireReactJsxRuntime_development () {
66
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
67
+ hasRequiredReactJsxRuntime_development = 1;
68
+ "production" !== process.env.NODE_ENV &&
69
+ (function () {
70
+ function getComponentNameFromType(type) {
71
+ if (null == type) return null;
72
+ if ("function" === typeof type)
73
+ return type.$$typeof === REACT_CLIENT_REFERENCE
74
+ ? null
75
+ : type.displayName || type.name || null;
76
+ if ("string" === typeof type) return type;
77
+ switch (type) {
78
+ case REACT_FRAGMENT_TYPE:
79
+ return "Fragment";
80
+ case REACT_PROFILER_TYPE:
81
+ return "Profiler";
82
+ case REACT_STRICT_MODE_TYPE:
83
+ return "StrictMode";
84
+ case REACT_SUSPENSE_TYPE:
85
+ return "Suspense";
86
+ case REACT_SUSPENSE_LIST_TYPE:
87
+ return "SuspenseList";
88
+ case REACT_ACTIVITY_TYPE:
89
+ return "Activity";
90
+ }
91
+ if ("object" === typeof type)
92
+ switch (
93
+ ("number" === typeof type.tag &&
94
+ console.error(
95
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
96
+ ),
97
+ type.$$typeof)
98
+ ) {
99
+ case REACT_PORTAL_TYPE:
100
+ return "Portal";
101
+ case REACT_CONTEXT_TYPE:
102
+ return (type.displayName || "Context") + ".Provider";
103
+ case REACT_CONSUMER_TYPE:
104
+ return (type._context.displayName || "Context") + ".Consumer";
105
+ case REACT_FORWARD_REF_TYPE:
106
+ var innerType = type.render;
107
+ type = type.displayName;
108
+ type ||
109
+ ((type = innerType.displayName || innerType.name || ""),
110
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
111
+ return type;
112
+ case REACT_MEMO_TYPE:
113
+ return (
114
+ (innerType = type.displayName || null),
115
+ null !== innerType
116
+ ? innerType
117
+ : getComponentNameFromType(type.type) || "Memo"
118
+ );
119
+ case REACT_LAZY_TYPE:
120
+ innerType = type._payload;
121
+ type = type._init;
122
+ try {
123
+ return getComponentNameFromType(type(innerType));
124
+ } catch (x) {}
125
+ }
126
+ return null;
127
+ }
128
+ function testStringCoercion(value) {
129
+ return "" + value;
130
+ }
131
+ function checkKeyStringCoercion(value) {
132
+ try {
133
+ testStringCoercion(value);
134
+ var JSCompiler_inline_result = !1;
135
+ } catch (e) {
136
+ JSCompiler_inline_result = true;
137
+ }
138
+ if (JSCompiler_inline_result) {
139
+ JSCompiler_inline_result = console;
140
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
141
+ var JSCompiler_inline_result$jscomp$0 =
142
+ ("function" === typeof Symbol &&
143
+ Symbol.toStringTag &&
144
+ value[Symbol.toStringTag]) ||
145
+ value.constructor.name ||
146
+ "Object";
147
+ JSCompiler_temp_const.call(
148
+ JSCompiler_inline_result,
149
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
150
+ JSCompiler_inline_result$jscomp$0
151
+ );
152
+ return testStringCoercion(value);
153
+ }
154
+ }
155
+ function getTaskName(type) {
156
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
157
+ if (
158
+ "object" === typeof type &&
159
+ null !== type &&
160
+ type.$$typeof === REACT_LAZY_TYPE
161
+ )
162
+ return "<...>";
163
+ try {
164
+ var name = getComponentNameFromType(type);
165
+ return name ? "<" + name + ">" : "<...>";
166
+ } catch (x) {
167
+ return "<...>";
168
+ }
169
+ }
170
+ function getOwner() {
171
+ var dispatcher = ReactSharedInternals.A;
172
+ return null === dispatcher ? null : dispatcher.getOwner();
173
+ }
174
+ function UnknownOwner() {
175
+ return Error("react-stack-top-frame");
176
+ }
177
+ function hasValidKey(config) {
178
+ if (hasOwnProperty.call(config, "key")) {
179
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
180
+ if (getter && getter.isReactWarning) return false;
181
+ }
182
+ return void 0 !== config.key;
183
+ }
184
+ function defineKeyPropWarningGetter(props, displayName) {
185
+ function warnAboutAccessingKey() {
186
+ specialPropKeyWarningShown ||
187
+ ((specialPropKeyWarningShown = true),
188
+ console.error(
189
+ "%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://react.dev/link/special-props)",
190
+ displayName
191
+ ));
192
+ }
193
+ warnAboutAccessingKey.isReactWarning = true;
194
+ Object.defineProperty(props, "key", {
195
+ get: warnAboutAccessingKey,
196
+ configurable: true
197
+ });
198
+ }
199
+ function elementRefGetterWithDeprecationWarning() {
200
+ var componentName = getComponentNameFromType(this.type);
201
+ didWarnAboutElementRef[componentName] ||
202
+ ((didWarnAboutElementRef[componentName] = true),
203
+ console.error(
204
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
205
+ ));
206
+ componentName = this.props.ref;
207
+ return void 0 !== componentName ? componentName : null;
208
+ }
209
+ function ReactElement(
210
+ type,
211
+ key,
212
+ self,
213
+ source,
214
+ owner,
215
+ props,
216
+ debugStack,
217
+ debugTask
218
+ ) {
219
+ self = props.ref;
220
+ type = {
221
+ $$typeof: REACT_ELEMENT_TYPE,
222
+ type: type,
223
+ key: key,
224
+ props: props,
225
+ _owner: owner
226
+ };
227
+ null !== (void 0 !== self ? self : null)
228
+ ? Object.defineProperty(type, "ref", {
229
+ enumerable: false,
230
+ get: elementRefGetterWithDeprecationWarning
231
+ })
232
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
233
+ type._store = {};
234
+ Object.defineProperty(type._store, "validated", {
235
+ configurable: false,
236
+ enumerable: false,
237
+ writable: true,
238
+ value: 0
239
+ });
240
+ Object.defineProperty(type, "_debugInfo", {
241
+ configurable: false,
242
+ enumerable: false,
243
+ writable: true,
244
+ value: null
245
+ });
246
+ Object.defineProperty(type, "_debugStack", {
247
+ configurable: false,
248
+ enumerable: false,
249
+ writable: true,
250
+ value: debugStack
251
+ });
252
+ Object.defineProperty(type, "_debugTask", {
253
+ configurable: false,
254
+ enumerable: false,
255
+ writable: true,
256
+ value: debugTask
257
+ });
258
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
259
+ return type;
260
+ }
261
+ function jsxDEVImpl(
262
+ type,
263
+ config,
264
+ maybeKey,
265
+ isStaticChildren,
266
+ source,
267
+ self,
268
+ debugStack,
269
+ debugTask
270
+ ) {
271
+ var children = config.children;
272
+ if (void 0 !== children)
273
+ if (isStaticChildren)
274
+ if (isArrayImpl(children)) {
275
+ for (
276
+ isStaticChildren = 0;
277
+ isStaticChildren < children.length;
278
+ isStaticChildren++
279
+ )
280
+ validateChildKeys(children[isStaticChildren]);
281
+ Object.freeze && Object.freeze(children);
282
+ } else
283
+ console.error(
284
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
285
+ );
286
+ else validateChildKeys(children);
287
+ if (hasOwnProperty.call(config, "key")) {
288
+ children = getComponentNameFromType(type);
289
+ var keys = Object.keys(config).filter(function (k) {
290
+ return "key" !== k;
291
+ });
292
+ isStaticChildren =
293
+ 0 < keys.length
294
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
295
+ : "{key: someKey}";
296
+ didWarnAboutKeySpread[children + isStaticChildren] ||
297
+ ((keys =
298
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
299
+ console.error(
300
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
301
+ isStaticChildren,
302
+ children,
303
+ keys,
304
+ children
305
+ ),
306
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
307
+ }
308
+ children = null;
309
+ void 0 !== maybeKey &&
310
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
311
+ hasValidKey(config) &&
312
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
313
+ if ("key" in config) {
314
+ maybeKey = {};
315
+ for (var propName in config)
316
+ "key" !== propName && (maybeKey[propName] = config[propName]);
317
+ } else maybeKey = config;
318
+ children &&
319
+ defineKeyPropWarningGetter(
320
+ maybeKey,
321
+ "function" === typeof type
322
+ ? type.displayName || type.name || "Unknown"
323
+ : type
324
+ );
325
+ return ReactElement(
326
+ type,
327
+ children,
328
+ self,
329
+ source,
330
+ getOwner(),
331
+ maybeKey,
332
+ debugStack,
333
+ debugTask
334
+ );
335
+ }
336
+ function validateChildKeys(node) {
337
+ "object" === typeof node &&
338
+ null !== node &&
339
+ node.$$typeof === REACT_ELEMENT_TYPE &&
340
+ node._store &&
341
+ (node._store.validated = 1);
342
+ }
343
+ var React = require$$0,
344
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
345
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
346
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
347
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
348
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
349
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
350
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
351
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
352
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
353
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
354
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
355
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
356
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
357
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
358
+ ReactSharedInternals =
359
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
360
+ hasOwnProperty = Object.prototype.hasOwnProperty,
361
+ isArrayImpl = Array.isArray,
362
+ createTask = console.createTask
363
+ ? console.createTask
364
+ : function () {
365
+ return null;
366
+ };
367
+ React = {
368
+ "react-stack-bottom-frame": function (callStackForError) {
369
+ return callStackForError();
370
+ }
371
+ };
372
+ var specialPropKeyWarningShown;
373
+ var didWarnAboutElementRef = {};
374
+ var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
375
+ React,
376
+ UnknownOwner
377
+ )();
378
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
379
+ var didWarnAboutKeySpread = {};
380
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
381
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
382
+ var trackActualOwner =
383
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
384
+ return jsxDEVImpl(
385
+ type,
386
+ config,
387
+ maybeKey,
388
+ false,
389
+ source,
390
+ self,
391
+ trackActualOwner
392
+ ? Error("react-stack-top-frame")
393
+ : unknownOwnerDebugStack,
394
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
395
+ );
396
+ };
397
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
398
+ var trackActualOwner =
399
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
400
+ return jsxDEVImpl(
401
+ type,
402
+ config,
403
+ maybeKey,
404
+ true,
405
+ source,
406
+ self,
407
+ trackActualOwner
408
+ ? Error("react-stack-top-frame")
409
+ : unknownOwnerDebugStack,
410
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
411
+ );
412
+ };
413
+ })();
414
+ return reactJsxRuntime_development;
281
415
  }
282
416
 
283
417
  var hasRequiredJsxRuntime;
284
- function requireJsxRuntime() {
285
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
286
- hasRequiredJsxRuntime = 1;
287
- if (process.env.NODE_ENV === 'production') {
288
- jsxRuntime.exports = requireReactJsxRuntime_production();
289
- } else {
290
- jsxRuntime.exports = requireReactJsxRuntime_development();
291
- }
292
- return jsxRuntime.exports;
418
+
419
+ function requireJsxRuntime () {
420
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
421
+ hasRequiredJsxRuntime = 1;
422
+
423
+ if (process.env.NODE_ENV === 'production') {
424
+ jsxRuntime.exports = requireReactJsxRuntime_production();
425
+ } else {
426
+ jsxRuntime.exports = requireReactJsxRuntime_development();
427
+ }
428
+ return jsxRuntime.exports;
293
429
  }
294
430
 
295
431
  var jsxRuntimeExports = requireJsxRuntime();
@@ -304,20 +440,21 @@ const DEFAULT_PROPS = {
304
440
  spellCheck: false,
305
441
  step: 'any'
306
442
  };
307
- const NumoraInput = /*#__PURE__*/require$$0.forwardRef(({
308
- maxDecimals = 2,
309
- onChange,
310
- formatOn = numora.FormatOn.Blur,
311
- thousandSeparator = ',',
312
- thousandStyle = numora.ThousandStyle.Thousand,
313
- decimalSeparator = '.',
314
- decimalMinLength,
315
- enableCompactNotation = false,
316
- enableNegative = false,
317
- enableLeadingZeros = false,
318
- rawValueMode = false,
319
- ...props
320
- }, ref) => {
443
+ const NumoraInput = /*#__PURE__*/require$$0.forwardRef((_ref, ref) => {
444
+ let {
445
+ maxDecimals = 2,
446
+ onChange,
447
+ formatOn = numora.FormatOn.Blur,
448
+ thousandSeparator = ',',
449
+ thousandStyle = numora.ThousandStyle.Thousand,
450
+ decimalSeparator = '.',
451
+ decimalMinLength,
452
+ enableCompactNotation = false,
453
+ enableNegative = false,
454
+ enableLeadingZeros = false,
455
+ rawValueMode = false,
456
+ ...props
457
+ } = _ref;
321
458
  const [caretPositionBeforeChange, setCaretPositionBeforeChange] = require$$0.useState();
322
459
  const formattingOptions = {
323
460
  formatOn,
@@ -383,5 +520,5 @@ const NumoraInput = /*#__PURE__*/require$$0.forwardRef(({
383
520
  });
384
521
  NumoraInput.displayName = 'NumoraInput';
385
522
 
386
- exports.NumoraInput = NumoraInput;
523
+ module.exports = NumoraInput;
387
524
  //# sourceMappingURL=index.cjs.js.map