@rolster/react-components 18.26.24 → 19.0.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 (50) hide show
  1. package/dist/cjs/assets/{index-QCv-Uo8R.css → index-DEldF_Je.css} +203 -8
  2. package/dist/cjs/index.js +618 -1299
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/es/assets/{index-QCv-Uo8R.css → index-DEldF_Je.css} +203 -8
  5. package/dist/es/index.js +620 -1303
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/esm/components/atoms/Badge/Badge.css +4 -2
  8. package/dist/esm/components/atoms/Badge/Badge.css.map +1 -1
  9. package/dist/esm/components/molecules/Pagination/Pagination.js +1 -1
  10. package/dist/esm/components/molecules/Pagination/Pagination.js.map +1 -1
  11. package/dist/esm/components/organisms/FieldClock/FieldClock.css +71 -0
  12. package/dist/esm/components/organisms/FieldClock/FieldClock.css.map +1 -0
  13. package/dist/esm/components/organisms/FieldClock/FieldClock.d.ts +37 -0
  14. package/dist/esm/components/organisms/FieldClock/FieldClock.js +52 -0
  15. package/dist/esm/components/organisms/FieldClock/FieldClock.js.map +1 -0
  16. package/dist/esm/components/organisms/FieldDate/FieldDate.css +2 -2
  17. package/dist/esm/components/organisms/FieldDate/FieldDate.css.map +1 -1
  18. package/dist/esm/components/organisms/FieldDate/FieldDate.js +5 -5
  19. package/dist/esm/components/organisms/FieldDate/FieldDate.js.map +1 -1
  20. package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.css +5 -2
  21. package/dist/esm/components/organisms/FieldDateRange/FieldDateRange.css.map +1 -1
  22. package/dist/esm/components/organisms/ImageEditor/ImageEditor.js +1 -1
  23. package/dist/esm/components/organisms/ImageEditor/ImageEditor.js.map +1 -1
  24. package/dist/esm/components/organisms/PickerClock/PickerClock.css +116 -0
  25. package/dist/esm/components/organisms/PickerClock/PickerClock.css.map +1 -0
  26. package/dist/esm/components/organisms/PickerClock/PickerClock.d.ts +13 -0
  27. package/dist/esm/components/organisms/PickerClock/PickerClock.js +208 -0
  28. package/dist/esm/components/organisms/PickerClock/PickerClock.js.map +1 -0
  29. package/dist/esm/components/organisms/PickerDate/PickerDate.css +3 -2
  30. package/dist/esm/components/organisms/PickerDate/PickerDate.css.map +1 -1
  31. package/dist/esm/components/organisms/PickerDate/PickerDate.js +11 -13
  32. package/dist/esm/components/organisms/PickerDate/PickerDate.js.map +1 -1
  33. package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.d.ts +1 -1
  34. package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js +2 -2
  35. package/dist/esm/components/organisms/PickerDateRange/PickerDateRange.js.map +1 -1
  36. package/dist/esm/components/organisms/Snackbar/Snackbar.js +1 -1
  37. package/dist/esm/components/organisms/Snackbar/Snackbar.js.map +1 -1
  38. package/dist/esm/controllers/DatatableController.d.ts +1 -1
  39. package/dist/esm/controllers/DatatableController.js.map +1 -1
  40. package/dist/esm/controllers/ListController.d.ts +3 -3
  41. package/dist/esm/controllers/ListController.js +1 -1
  42. package/dist/esm/controllers/ListController.js.map +1 -1
  43. package/dist/esm/definitions.d.ts +3 -3
  44. package/dist/esm/index.d.ts +2 -0
  45. package/dist/esm/index.js +2 -0
  46. package/dist/esm/index.js.map +1 -1
  47. package/package.json +9 -10
  48. package/dist/esm/components/molecules/PickerClock/PickerClock.d.ts +0 -1
  49. package/dist/esm/components/molecules/PickerClock/PickerClock.js +0 -5
  50. package/dist/esm/components/molecules/PickerClock/PickerClock.js.map +0 -1
package/dist/es/index.js CHANGED
@@ -1,33 +1,54 @@
1
- import require$$0, { useMemo, useState, useEffect, useCallback, useRef, createContext } from 'react';
1
+ import require$$0, { useMemo, useState, useEffect, useCallback, useRef, useEffectEvent, createContext } from 'react';
2
2
  import { currencyFormat, BigDecimal, valueIsDefined, SealedPartial } from '@rolster/commons';
3
3
  import { i18n, i18nSubscribe } from '@rolster/i18n';
4
- import { PaginationController, verifyDayPicker, createDayPicker, createDayRangePicker, verifyMonthPicker, createMonthPicker, monthLimitTemplate, createYearPicker, verifyYearPicker, ListCollection, locationListCanTop, navigationListFromInput, navigationListFromElement, createAutocompleteStore, dateOutRange, verifyDateRange, PickerListenerEvent } from '@rolster/components';
5
- import { DAY_LABELS, DateRange, normalizeMinTime, assignDayInDate, dateIsBefore, MONTH_NAMES, Month, dateFormatTemplate, assignYearInDate, assignMonthInDate } from '@rolster/dates';
4
+ import { PaginationController, verifyDayPicker, createDayPicker, createDayRangePicker, verifyMonthPicker, createMonthPicker, monthLimitTemplate, createYearPicker, verifyYearPicker, ListCollection, locationListCanTop, navigationListFromInput, navigationListFromElement, createAutocompleteStore, PickerListenerEvent, dateOutRange, verifyDateRange } from '@rolster/components';
5
+ import { DAY_LABELS, DateRange, normalizeMinTime, assignDayInDate, dateIsBefore, MONTH_NAMES, Month, Time, dateFormatTemplate, assignYearInDate, assignMonthInDate } from '@rolster/dates';
6
6
  import ReactDOM from 'react-dom';
7
7
  import { useReactControl } from '@rolster/react-forms';
8
8
 
9
9
  var jsxRuntime = {exports: {}};
10
10
 
11
- var reactJsxRuntime_production_min = {};
11
+ var reactJsxRuntime_production = {};
12
12
 
13
13
  /**
14
14
  * @license React
15
- * react-jsx-runtime.production.min.js
15
+ * react-jsx-runtime.production.js
16
16
  *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
17
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
18
18
  *
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
21
  */
22
22
 
23
- var hasRequiredReactJsxRuntime_production_min;
24
-
25
- function requireReactJsxRuntime_production_min () {
26
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
27
- hasRequiredReactJsxRuntime_production_min = 1;
28
- var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
29
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.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:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
30
- return reactJsxRuntime_production_min;
23
+ var hasRequiredReactJsxRuntime_production;
24
+
25
+ function requireReactJsxRuntime_production () {
26
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
27
+ hasRequiredReactJsxRuntime_production = 1;
28
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
29
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
30
+ function jsxProd(type, config, maybeKey) {
31
+ var key = null;
32
+ void 0 !== maybeKey && (key = "" + maybeKey);
33
+ void 0 !== config.key && (key = "" + config.key);
34
+ if ("key" in config) {
35
+ maybeKey = {};
36
+ for (var propName in config)
37
+ "key" !== propName && (maybeKey[propName] = config[propName]);
38
+ } else maybeKey = config;
39
+ config = maybeKey.ref;
40
+ return {
41
+ $$typeof: REACT_ELEMENT_TYPE,
42
+ type: type,
43
+ key: key,
44
+ ref: void 0 !== config ? config : null,
45
+ props: maybeKey
46
+ };
47
+ }
48
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
49
+ reactJsxRuntime_production.jsx = jsxProd;
50
+ reactJsxRuntime_production.jsxs = jsxProd;
51
+ return reactJsxRuntime_production;
31
52
  }
32
53
 
33
54
  var reactJsxRuntime_development = {};
@@ -36,7 +57,7 @@ var reactJsxRuntime_development = {};
36
57
  * @license React
37
58
  * react-jsx-runtime.development.js
38
59
  *
39
- * Copyright (c) Facebook, Inc. and its affiliates.
60
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
61
  *
41
62
  * This source code is licensed under the MIT license found in the
42
63
  * LICENSE file in the root directory of this source tree.
@@ -47,1295 +68,352 @@ var hasRequiredReactJsxRuntime_development;
47
68
  function requireReactJsxRuntime_development () {
48
69
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
49
70
  hasRequiredReactJsxRuntime_development = 1;
50
-
51
- if (process.env.NODE_ENV !== "production") {
52
- (function() {
53
-
54
- var React = require$$0;
55
-
56
- // ATTENTION
57
- // When adding new symbols to this file,
58
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
59
- // The Symbol used to tag the ReactElement-like types.
60
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
61
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
62
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
63
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
64
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
65
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
66
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
67
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
68
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
69
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
70
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
71
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
72
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
73
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
74
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
75
- function getIteratorFn(maybeIterable) {
76
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
77
- return null;
78
- }
79
-
80
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
81
-
82
- if (typeof maybeIterator === 'function') {
83
- return maybeIterator;
84
- }
85
-
86
- return null;
87
- }
88
-
89
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
90
-
91
- function error(format) {
92
- {
93
- {
94
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
95
- args[_key2 - 1] = arguments[_key2];
71
+ "production" !== process.env.NODE_ENV &&
72
+ (function () {
73
+ function getComponentNameFromType(type) {
74
+ if (null == type) return null;
75
+ if ("function" === typeof type)
76
+ return type.$$typeof === REACT_CLIENT_REFERENCE
77
+ ? null
78
+ : type.displayName || type.name || null;
79
+ if ("string" === typeof type) return type;
80
+ switch (type) {
81
+ case REACT_FRAGMENT_TYPE:
82
+ return "Fragment";
83
+ case REACT_PROFILER_TYPE:
84
+ return "Profiler";
85
+ case REACT_STRICT_MODE_TYPE:
86
+ return "StrictMode";
87
+ case REACT_SUSPENSE_TYPE:
88
+ return "Suspense";
89
+ case REACT_SUSPENSE_LIST_TYPE:
90
+ return "SuspenseList";
91
+ case REACT_ACTIVITY_TYPE:
92
+ return "Activity";
96
93
  }
97
-
98
- printWarning('error', format, args);
99
- }
100
- }
101
- }
102
-
103
- function printWarning(level, format, args) {
104
- // When changing this logic, you might want to also
105
- // update consoleWithStackDev.www.js as well.
106
- {
107
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
108
- var stack = ReactDebugCurrentFrame.getStackAddendum();
109
-
110
- if (stack !== '') {
111
- format += '%s';
112
- args = args.concat([stack]);
113
- } // eslint-disable-next-line react-internal/safe-string-coercion
114
-
115
-
116
- var argsWithFormat = args.map(function (item) {
117
- return String(item);
118
- }); // Careful: RN currently depends on this prefix
119
-
120
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
121
- // breaks IE9: https://github.com/facebook/react/issues/13610
122
- // eslint-disable-next-line react-internal/no-production-logging
123
-
124
- Function.prototype.apply.call(console[level], console, argsWithFormat);
125
- }
126
- }
127
-
128
- // -----------------------------------------------------------------------------
129
-
130
- var enableScopeAPI = false; // Experimental Create Event Handle API.
131
- var enableCacheElement = false;
132
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
133
-
134
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
135
- // stuff. Intended to enable React core members to more easily debug scheduling
136
- // issues in DEV builds.
137
-
138
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
139
-
140
- var REACT_MODULE_REFERENCE;
141
-
142
- {
143
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
144
- }
145
-
146
- function isValidElementType(type) {
147
- if (typeof type === 'string' || typeof type === 'function') {
148
- return true;
149
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
150
-
151
-
152
- 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 ) {
153
- return true;
154
- }
155
-
156
- if (typeof type === 'object' && type !== null) {
157
- 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
158
- // types supported by any Flight configuration anywhere since
159
- // we don't know which Flight build this will end up being used
160
- // with.
161
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
162
- return true;
163
- }
164
- }
165
-
166
- return false;
167
- }
168
-
169
- function getWrappedName(outerType, innerType, wrapperName) {
170
- var displayName = outerType.displayName;
171
-
172
- if (displayName) {
173
- return displayName;
174
- }
175
-
176
- var functionName = innerType.displayName || innerType.name || '';
177
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
178
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
179
-
180
-
181
- function getContextName(type) {
182
- return type.displayName || 'Context';
183
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
184
-
185
-
186
- function getComponentNameFromType(type) {
187
- if (type == null) {
188
- // Host root, text node or just invalid type.
189
- return null;
190
- }
191
-
192
- {
193
- if (typeof type.tag === 'number') {
194
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
195
- }
196
- }
197
-
198
- if (typeof type === 'function') {
199
- return type.displayName || type.name || null;
200
- }
201
-
202
- if (typeof type === 'string') {
203
- return type;
204
- }
205
-
206
- switch (type) {
207
- case REACT_FRAGMENT_TYPE:
208
- return 'Fragment';
209
-
210
- case REACT_PORTAL_TYPE:
211
- return 'Portal';
212
-
213
- case REACT_PROFILER_TYPE:
214
- return 'Profiler';
215
-
216
- case REACT_STRICT_MODE_TYPE:
217
- return 'StrictMode';
218
-
219
- case REACT_SUSPENSE_TYPE:
220
- return 'Suspense';
221
-
222
- case REACT_SUSPENSE_LIST_TYPE:
223
- return 'SuspenseList';
224
-
225
- }
226
-
227
- if (typeof type === 'object') {
228
- switch (type.$$typeof) {
229
- case REACT_CONTEXT_TYPE:
230
- var context = type;
231
- return getContextName(context) + '.Consumer';
232
-
233
- case REACT_PROVIDER_TYPE:
234
- var provider = type;
235
- return getContextName(provider._context) + '.Provider';
236
-
237
- case REACT_FORWARD_REF_TYPE:
238
- return getWrappedName(type, type.render, 'ForwardRef');
239
-
240
- case REACT_MEMO_TYPE:
241
- var outerName = type.displayName || null;
242
-
243
- if (outerName !== null) {
244
- return outerName;
94
+ if ("object" === typeof type)
95
+ switch (
96
+ ("number" === typeof type.tag &&
97
+ console.error(
98
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
99
+ ),
100
+ type.$$typeof)
101
+ ) {
102
+ case REACT_PORTAL_TYPE:
103
+ return "Portal";
104
+ case REACT_CONTEXT_TYPE:
105
+ return type.displayName || "Context";
106
+ case REACT_CONSUMER_TYPE:
107
+ return (type._context.displayName || "Context") + ".Consumer";
108
+ case REACT_FORWARD_REF_TYPE:
109
+ var innerType = type.render;
110
+ type = type.displayName;
111
+ type ||
112
+ ((type = innerType.displayName || innerType.name || ""),
113
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
114
+ return type;
115
+ case REACT_MEMO_TYPE:
116
+ return (
117
+ (innerType = type.displayName || null),
118
+ null !== innerType
119
+ ? innerType
120
+ : getComponentNameFromType(type.type) || "Memo"
121
+ );
122
+ case REACT_LAZY_TYPE:
123
+ innerType = type._payload;
124
+ type = type._init;
125
+ try {
126
+ return getComponentNameFromType(type(innerType));
127
+ } catch (x) {}
245
128
  }
246
-
247
- return getComponentNameFromType(type.type) || 'Memo';
248
-
249
- case REACT_LAZY_TYPE:
250
- {
251
- var lazyComponent = type;
252
- var payload = lazyComponent._payload;
253
- var init = lazyComponent._init;
254
-
255
- try {
256
- return getComponentNameFromType(init(payload));
257
- } catch (x) {
258
- return null;
259
- }
260
- }
261
-
262
- // eslint-disable-next-line no-fallthrough
129
+ return null;
263
130
  }
264
- }
265
-
266
- return null;
267
- }
268
-
269
- var assign = Object.assign;
270
-
271
- // Helpers to patch console.logs to avoid logging during side-effect free
272
- // replaying on render function. This currently only patches the object
273
- // lazily which won't cover if the log function was extracted eagerly.
274
- // We could also eagerly patch the method.
275
- var disabledDepth = 0;
276
- var prevLog;
277
- var prevInfo;
278
- var prevWarn;
279
- var prevError;
280
- var prevGroup;
281
- var prevGroupCollapsed;
282
- var prevGroupEnd;
283
-
284
- function disabledLog() {}
285
-
286
- disabledLog.__reactDisabledLog = true;
287
- function disableLogs() {
288
- {
289
- if (disabledDepth === 0) {
290
- /* eslint-disable react-internal/no-production-logging */
291
- prevLog = console.log;
292
- prevInfo = console.info;
293
- prevWarn = console.warn;
294
- prevError = console.error;
295
- prevGroup = console.group;
296
- prevGroupCollapsed = console.groupCollapsed;
297
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
298
-
299
- var props = {
300
- configurable: true,
301
- enumerable: true,
302
- value: disabledLog,
303
- writable: true
304
- }; // $FlowFixMe Flow thinks console is immutable.
305
-
306
- Object.defineProperties(console, {
307
- info: props,
308
- log: props,
309
- warn: props,
310
- error: props,
311
- group: props,
312
- groupCollapsed: props,
313
- groupEnd: props
314
- });
315
- /* eslint-enable react-internal/no-production-logging */
316
- }
317
-
318
- disabledDepth++;
319
- }
320
- }
321
- function reenableLogs() {
322
- {
323
- disabledDepth--;
324
-
325
- if (disabledDepth === 0) {
326
- /* eslint-disable react-internal/no-production-logging */
327
- var props = {
328
- configurable: true,
329
- enumerable: true,
330
- writable: true
331
- }; // $FlowFixMe Flow thinks console is immutable.
332
-
333
- Object.defineProperties(console, {
334
- log: assign({}, props, {
335
- value: prevLog
336
- }),
337
- info: assign({}, props, {
338
- value: prevInfo
339
- }),
340
- warn: assign({}, props, {
341
- value: prevWarn
342
- }),
343
- error: assign({}, props, {
344
- value: prevError
345
- }),
346
- group: assign({}, props, {
347
- value: prevGroup
348
- }),
349
- groupCollapsed: assign({}, props, {
350
- value: prevGroupCollapsed
351
- }),
352
- groupEnd: assign({}, props, {
353
- value: prevGroupEnd
354
- })
355
- });
356
- /* eslint-enable react-internal/no-production-logging */
357
- }
358
-
359
- if (disabledDepth < 0) {
360
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
131
+ function testStringCoercion(value) {
132
+ return "" + value;
361
133
  }
362
- }
363
- }
364
-
365
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
366
- var prefix;
367
- function describeBuiltInComponentFrame(name, source, ownerFn) {
368
- {
369
- if (prefix === undefined) {
370
- // Extract the VM specific prefix used by each line.
134
+ function checkKeyStringCoercion(value) {
371
135
  try {
372
- throw Error();
373
- } catch (x) {
374
- var match = x.stack.trim().match(/\n( *(at )?)/);
375
- prefix = match && match[1] || '';
136
+ testStringCoercion(value);
137
+ var JSCompiler_inline_result = !1;
138
+ } catch (e) {
139
+ JSCompiler_inline_result = true;
376
140
  }
377
- } // We use the prefix to ensure our stacks line up with native stack frames.
378
-
379
-
380
- return '\n' + prefix + name;
381
- }
382
- }
383
- var reentry = false;
384
- var componentFrameCache;
385
-
386
- {
387
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
388
- componentFrameCache = new PossiblyWeakMap();
389
- }
390
-
391
- function describeNativeComponentFrame(fn, construct) {
392
- // If something asked for a stack inside a fake render, it should get ignored.
393
- if ( !fn || reentry) {
394
- return '';
395
- }
396
-
397
- {
398
- var frame = componentFrameCache.get(fn);
399
-
400
- if (frame !== undefined) {
401
- return frame;
402
- }
403
- }
404
-
405
- var control;
406
- reentry = true;
407
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
408
-
409
- Error.prepareStackTrace = undefined;
410
- var previousDispatcher;
411
-
412
- {
413
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
414
- // for warnings.
415
-
416
- ReactCurrentDispatcher.current = null;
417
- disableLogs();
418
- }
419
-
420
- try {
421
- // This should throw.
422
- if (construct) {
423
- // Something should be setting the props in the constructor.
424
- var Fake = function () {
425
- throw Error();
426
- }; // $FlowFixMe
427
-
428
-
429
- Object.defineProperty(Fake.prototype, 'props', {
430
- set: function () {
431
- // We use a throwing setter instead of frozen or non-writable props
432
- // because that won't throw in a non-strict mode function.
433
- throw Error();
434
- }
435
- });
436
-
437
- if (typeof Reflect === 'object' && Reflect.construct) {
438
- // We construct a different control for this case to include any extra
439
- // frames added by the construct call.
440
- try {
441
- Reflect.construct(Fake, []);
442
- } catch (x) {
443
- control = x;
444
- }
445
-
446
- Reflect.construct(fn, [], Fake);
447
- } else {
448
- try {
449
- Fake.call();
450
- } catch (x) {
451
- control = x;
452
- }
453
-
454
- fn.call(Fake.prototype);
141
+ if (JSCompiler_inline_result) {
142
+ JSCompiler_inline_result = console;
143
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
144
+ var JSCompiler_inline_result$jscomp$0 =
145
+ ("function" === typeof Symbol &&
146
+ Symbol.toStringTag &&
147
+ value[Symbol.toStringTag]) ||
148
+ value.constructor.name ||
149
+ "Object";
150
+ JSCompiler_temp_const.call(
151
+ JSCompiler_inline_result,
152
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
153
+ JSCompiler_inline_result$jscomp$0
154
+ );
155
+ return testStringCoercion(value);
455
156
  }
456
- } else {
157
+ }
158
+ function getTaskName(type) {
159
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
160
+ if (
161
+ "object" === typeof type &&
162
+ null !== type &&
163
+ type.$$typeof === REACT_LAZY_TYPE
164
+ )
165
+ return "<...>";
457
166
  try {
458
- throw Error();
167
+ var name = getComponentNameFromType(type);
168
+ return name ? "<" + name + ">" : "<...>";
459
169
  } catch (x) {
460
- control = x;
461
- }
462
-
463
- fn();
464
- }
465
- } catch (sample) {
466
- // This is inlined manually because closure doesn't do it for us.
467
- if (sample && control && typeof sample.stack === 'string') {
468
- // This extracts the first frame from the sample that isn't also in the control.
469
- // Skipping one frame that we assume is the frame that calls the two.
470
- var sampleLines = sample.stack.split('\n');
471
- var controlLines = control.stack.split('\n');
472
- var s = sampleLines.length - 1;
473
- var c = controlLines.length - 1;
474
-
475
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
476
- // We expect at least one stack frame to be shared.
477
- // Typically this will be the root most one. However, stack frames may be
478
- // cut off due to maximum stack limits. In this case, one maybe cut off
479
- // earlier than the other. We assume that the sample is longer or the same
480
- // and there for cut off earlier. So we should find the root most frame in
481
- // the sample somewhere in the control.
482
- c--;
483
- }
484
-
485
- for (; s >= 1 && c >= 0; s--, c--) {
486
- // Next we find the first one that isn't the same which should be the
487
- // frame that called our sample function and the control.
488
- if (sampleLines[s] !== controlLines[c]) {
489
- // In V8, the first line is describing the message but other VMs don't.
490
- // If we're about to return the first line, and the control is also on the same
491
- // line, that's a pretty good indicator that our sample threw at same line as
492
- // the control. I.e. before we entered the sample frame. So we ignore this result.
493
- // This can happen if you passed a class to function component, or non-function.
494
- if (s !== 1 || c !== 1) {
495
- do {
496
- s--;
497
- c--; // We may still have similar intermediate frames from the construct call.
498
- // The next one that isn't the same should be our match though.
499
-
500
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
501
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
502
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
503
- // but we have a user-provided "displayName"
504
- // splice it in to make the stack more readable.
505
-
506
-
507
- if (fn.displayName && _frame.includes('<anonymous>')) {
508
- _frame = _frame.replace('<anonymous>', fn.displayName);
509
- }
510
-
511
- {
512
- if (typeof fn === 'function') {
513
- componentFrameCache.set(fn, _frame);
514
- }
515
- } // Return the line we found.
516
-
517
-
518
- return _frame;
519
- }
520
- } while (s >= 1 && c >= 0);
521
- }
522
-
523
- break;
524
- }
170
+ return "<...>";
525
171
  }
526
172
  }
527
- } finally {
528
- reentry = false;
529
-
530
- {
531
- ReactCurrentDispatcher.current = previousDispatcher;
532
- reenableLogs();
533
- }
534
-
535
- Error.prepareStackTrace = previousPrepareStackTrace;
536
- } // Fallback to just using the name if we couldn't make it throw.
537
-
538
-
539
- var name = fn ? fn.displayName || fn.name : '';
540
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
541
-
542
- {
543
- if (typeof fn === 'function') {
544
- componentFrameCache.set(fn, syntheticFrame);
173
+ function getOwner() {
174
+ var dispatcher = ReactSharedInternals.A;
175
+ return null === dispatcher ? null : dispatcher.getOwner();
545
176
  }
546
- }
547
-
548
- return syntheticFrame;
549
- }
550
- function describeFunctionComponentFrame(fn, source, ownerFn) {
551
- {
552
- return describeNativeComponentFrame(fn, false);
553
- }
554
- }
555
-
556
- function shouldConstruct(Component) {
557
- var prototype = Component.prototype;
558
- return !!(prototype && prototype.isReactComponent);
559
- }
560
-
561
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
562
-
563
- if (type == null) {
564
- return '';
565
- }
566
-
567
- if (typeof type === 'function') {
568
- {
569
- return describeNativeComponentFrame(type, shouldConstruct(type));
570
- }
571
- }
572
-
573
- if (typeof type === 'string') {
574
- return describeBuiltInComponentFrame(type);
575
- }
576
-
577
- switch (type) {
578
- case REACT_SUSPENSE_TYPE:
579
- return describeBuiltInComponentFrame('Suspense');
580
-
581
- case REACT_SUSPENSE_LIST_TYPE:
582
- return describeBuiltInComponentFrame('SuspenseList');
583
- }
584
-
585
- if (typeof type === 'object') {
586
- switch (type.$$typeof) {
587
- case REACT_FORWARD_REF_TYPE:
588
- return describeFunctionComponentFrame(type.render);
589
-
590
- case REACT_MEMO_TYPE:
591
- // Memo may contain any component type so we recursively resolve it.
592
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
593
-
594
- case REACT_LAZY_TYPE:
595
- {
596
- var lazyComponent = type;
597
- var payload = lazyComponent._payload;
598
- var init = lazyComponent._init;
599
-
600
- try {
601
- // Lazy may contain any component type so we recursively resolve it.
602
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
603
- } catch (x) {}
604
- }
605
- }
606
- }
607
-
608
- return '';
609
- }
610
-
611
- var hasOwnProperty = Object.prototype.hasOwnProperty;
612
-
613
- var loggedTypeFailures = {};
614
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
615
-
616
- function setCurrentlyValidatingElement(element) {
617
- {
618
- if (element) {
619
- var owner = element._owner;
620
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
621
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
622
- } else {
623
- ReactDebugCurrentFrame.setExtraStackFrame(null);
177
+ function UnknownOwner() {
178
+ return Error("react-stack-top-frame");
624
179
  }
625
- }
626
- }
627
-
628
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
629
- {
630
- // $FlowFixMe This is okay but Flow doesn't know it.
631
- var has = Function.call.bind(hasOwnProperty);
632
-
633
- for (var typeSpecName in typeSpecs) {
634
- if (has(typeSpecs, typeSpecName)) {
635
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
636
- // fail the render phase where it didn't fail before. So we log it.
637
- // After these have been cleaned up, we'll let them throw.
638
-
639
- try {
640
- // This is intentionally an invariant that gets caught. It's the same
641
- // behavior as without this statement except with a better message.
642
- if (typeof typeSpecs[typeSpecName] !== 'function') {
643
- // eslint-disable-next-line react-internal/prod-error-codes
644
- 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`.');
645
- err.name = 'Invariant Violation';
646
- throw err;
647
- }
648
-
649
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
650
- } catch (ex) {
651
- error$1 = ex;
652
- }
653
-
654
- if (error$1 && !(error$1 instanceof Error)) {
655
- setCurrentlyValidatingElement(element);
656
-
657
- 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);
658
-
659
- setCurrentlyValidatingElement(null);
660
- }
661
-
662
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
663
- // Only monitor this failure once because there tends to be a lot of the
664
- // same error.
665
- loggedTypeFailures[error$1.message] = true;
666
- setCurrentlyValidatingElement(element);
667
-
668
- error('Failed %s type: %s', location, error$1.message);
669
-
670
- setCurrentlyValidatingElement(null);
671
- }
180
+ function hasValidKey(config) {
181
+ if (hasOwnProperty.call(config, "key")) {
182
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
183
+ if (getter && getter.isReactWarning) return false;
672
184
  }
185
+ return void 0 !== config.key;
673
186
  }
674
- }
675
- }
676
-
677
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
678
-
679
- function isArray(a) {
680
- return isArrayImpl(a);
681
- }
682
-
683
- /*
684
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
685
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
686
- *
687
- * The functions in this module will throw an easier-to-understand,
688
- * easier-to-debug exception with a clear errors message message explaining the
689
- * problem. (Instead of a confusing exception thrown inside the implementation
690
- * of the `value` object).
691
- */
692
- // $FlowFixMe only called in DEV, so void return is not possible.
693
- function typeName(value) {
694
- {
695
- // toStringTag is needed for namespaced types like Temporal.Instant
696
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
697
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
698
- return type;
699
- }
700
- } // $FlowFixMe only called in DEV, so void return is not possible.
701
-
702
-
703
- function willCoercionThrow(value) {
704
- {
705
- try {
706
- testStringCoercion(value);
707
- return false;
708
- } catch (e) {
709
- return true;
710
- }
711
- }
712
- }
713
-
714
- function testStringCoercion(value) {
715
- // If you ended up here by following an exception call stack, here's what's
716
- // happened: you supplied an object or symbol value to React (as a prop, key,
717
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
718
- // coerce it to a string using `'' + value`, an exception was thrown.
719
- //
720
- // The most common types that will cause this exception are `Symbol` instances
721
- // and Temporal objects like `Temporal.Instant`. But any object that has a
722
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
723
- // exception. (Library authors do this to prevent users from using built-in
724
- // numeric operators like `+` or comparison operators like `>=` because custom
725
- // methods are needed to perform accurate arithmetic or comparison.)
726
- //
727
- // To fix the problem, coerce this object or symbol value to a string before
728
- // passing it to React. The most reliable way is usually `String(value)`.
729
- //
730
- // To find which value is throwing, check the browser or debugger console.
731
- // Before this exception was thrown, there should be `console.error` output
732
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
733
- // problem and how that type was used: key, atrribute, input value prop, etc.
734
- // In most cases, this console output also shows the component and its
735
- // ancestor components where the exception happened.
736
- //
737
- // eslint-disable-next-line react-internal/safe-string-coercion
738
- return '' + value;
739
- }
740
- function checkKeyStringCoercion(value) {
741
- {
742
- if (willCoercionThrow(value)) {
743
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
744
-
745
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
746
- }
747
- }
748
- }
749
-
750
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
751
- var RESERVED_PROPS = {
752
- key: true,
753
- ref: true,
754
- __self: true,
755
- __source: true
756
- };
757
- var specialPropKeyWarningShown;
758
- var specialPropRefWarningShown;
759
-
760
- function hasValidRef(config) {
761
- {
762
- if (hasOwnProperty.call(config, 'ref')) {
763
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
764
-
765
- if (getter && getter.isReactWarning) {
766
- return false;
187
+ function defineKeyPropWarningGetter(props, displayName) {
188
+ function warnAboutAccessingKey() {
189
+ specialPropKeyWarningShown ||
190
+ ((specialPropKeyWarningShown = true),
191
+ console.error(
192
+ "%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)",
193
+ displayName
194
+ ));
767
195
  }
196
+ warnAboutAccessingKey.isReactWarning = true;
197
+ Object.defineProperty(props, "key", {
198
+ get: warnAboutAccessingKey,
199
+ configurable: true
200
+ });
768
201
  }
769
- }
770
-
771
- return config.ref !== undefined;
772
- }
773
-
774
- function hasValidKey(config) {
775
- {
776
- if (hasOwnProperty.call(config, 'key')) {
777
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
778
-
779
- if (getter && getter.isReactWarning) {
780
- return false;
781
- }
782
- }
783
- }
784
-
785
- return config.key !== undefined;
786
- }
787
-
788
- function warnIfStringRefCannotBeAutoConverted(config, self) {
789
- {
790
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
791
- }
792
- }
793
-
794
- function defineKeyPropWarningGetter(props, displayName) {
795
- {
796
- var warnAboutAccessingKey = function () {
797
- if (!specialPropKeyWarningShown) {
798
- specialPropKeyWarningShown = true;
799
-
800
- 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);
801
- }
802
- };
803
-
804
- warnAboutAccessingKey.isReactWarning = true;
805
- Object.defineProperty(props, 'key', {
806
- get: warnAboutAccessingKey,
807
- configurable: true
808
- });
809
- }
810
- }
811
-
812
- function defineRefPropWarningGetter(props, displayName) {
813
- {
814
- var warnAboutAccessingRef = function () {
815
- if (!specialPropRefWarningShown) {
816
- specialPropRefWarningShown = true;
817
-
818
- 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);
819
- }
820
- };
821
-
822
- warnAboutAccessingRef.isReactWarning = true;
823
- Object.defineProperty(props, 'ref', {
824
- get: warnAboutAccessingRef,
825
- configurable: true
826
- });
827
- }
828
- }
829
- /**
830
- * Factory method to create a new React element. This no longer adheres to
831
- * the class pattern, so do not use new to call it. Also, instanceof check
832
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
833
- * if something is a React Element.
834
- *
835
- * @param {*} type
836
- * @param {*} props
837
- * @param {*} key
838
- * @param {string|object} ref
839
- * @param {*} owner
840
- * @param {*} self A *temporary* helper to detect places where `this` is
841
- * different from the `owner` when React.createElement is called, so that we
842
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
843
- * functions, and as long as `this` and owner are the same, there will be no
844
- * change in behavior.
845
- * @param {*} source An annotation object (added by a transpiler or otherwise)
846
- * indicating filename, line number, and/or other information.
847
- * @internal
848
- */
849
-
850
-
851
- var ReactElement = function (type, key, ref, self, source, owner, props) {
852
- var element = {
853
- // This tag allows us to uniquely identify this as a React Element
854
- $$typeof: REACT_ELEMENT_TYPE,
855
- // Built-in properties that belong on the element
856
- type: type,
857
- key: key,
858
- ref: ref,
859
- props: props,
860
- // Record the component responsible for creating this element.
861
- _owner: owner
862
- };
863
-
864
- {
865
- // The validation flag is currently mutative. We put it on
866
- // an external backing store so that we can freeze the whole object.
867
- // This can be replaced with a WeakMap once they are implemented in
868
- // commonly used development environments.
869
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
870
- // the validation flag non-enumerable (where possible, which should
871
- // include every environment we run tests in), so the test framework
872
- // ignores it.
873
-
874
- Object.defineProperty(element._store, 'validated', {
875
- configurable: false,
876
- enumerable: false,
877
- writable: true,
878
- value: false
879
- }); // self and source are DEV only properties.
880
-
881
- Object.defineProperty(element, '_self', {
882
- configurable: false,
883
- enumerable: false,
884
- writable: false,
885
- value: self
886
- }); // Two elements created in two different places should be considered
887
- // equal for testing purposes and therefore we hide it from enumeration.
888
-
889
- Object.defineProperty(element, '_source', {
890
- configurable: false,
891
- enumerable: false,
892
- writable: false,
893
- value: source
894
- });
895
-
896
- if (Object.freeze) {
897
- Object.freeze(element.props);
898
- Object.freeze(element);
899
- }
900
- }
901
-
902
- return element;
903
- };
904
- /**
905
- * https://github.com/reactjs/rfcs/pull/107
906
- * @param {*} type
907
- * @param {object} props
908
- * @param {string} key
909
- */
910
-
911
- function jsxDEV(type, config, maybeKey, source, self) {
912
- {
913
- var propName; // Reserved names are extracted
914
-
915
- var props = {};
916
- var key = null;
917
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
918
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
919
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
920
- // but as an intermediary step, we will use jsxDEV for everything except
921
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
922
- // key is explicitly declared to be undefined or not.
923
-
924
- if (maybeKey !== undefined) {
925
- {
926
- checkKeyStringCoercion(maybeKey);
927
- }
928
-
929
- key = '' + maybeKey;
930
- }
931
-
932
- if (hasValidKey(config)) {
933
- {
934
- checkKeyStringCoercion(config.key);
935
- }
936
-
937
- key = '' + config.key;
938
- }
939
-
940
- if (hasValidRef(config)) {
941
- ref = config.ref;
942
- warnIfStringRefCannotBeAutoConverted(config, self);
943
- } // Remaining properties are added to a new props object
944
-
945
-
946
- for (propName in config) {
947
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
948
- props[propName] = config[propName];
949
- }
950
- } // Resolve default props
951
-
952
-
953
- if (type && type.defaultProps) {
954
- var defaultProps = type.defaultProps;
955
-
956
- for (propName in defaultProps) {
957
- if (props[propName] === undefined) {
958
- props[propName] = defaultProps[propName];
959
- }
960
- }
961
- }
962
-
963
- if (key || ref) {
964
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
965
-
966
- if (key) {
967
- defineKeyPropWarningGetter(props, displayName);
968
- }
969
-
970
- if (ref) {
971
- defineRefPropWarningGetter(props, displayName);
972
- }
973
- }
974
-
975
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
976
- }
977
- }
978
-
979
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
980
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
981
-
982
- function setCurrentlyValidatingElement$1(element) {
983
- {
984
- if (element) {
985
- var owner = element._owner;
986
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
987
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
988
- } else {
989
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
990
- }
991
- }
992
- }
993
-
994
- var propTypesMisspellWarningShown;
995
-
996
- {
997
- propTypesMisspellWarningShown = false;
998
- }
999
- /**
1000
- * Verifies the object is a ReactElement.
1001
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1002
- * @param {?object} object
1003
- * @return {boolean} True if `object` is a ReactElement.
1004
- * @final
1005
- */
1006
-
1007
-
1008
- function isValidElement(object) {
1009
- {
1010
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1011
- }
1012
- }
1013
-
1014
- function getDeclarationErrorAddendum() {
1015
- {
1016
- if (ReactCurrentOwner$1.current) {
1017
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1018
-
1019
- if (name) {
1020
- return '\n\nCheck the render method of `' + name + '`.';
1021
- }
1022
- }
1023
-
1024
- return '';
1025
- }
1026
- }
1027
-
1028
- function getSourceInfoErrorAddendum(source) {
1029
- {
1030
-
1031
- return '';
1032
- }
1033
- }
1034
- /**
1035
- * Warn if there's no key explicitly set on dynamic arrays of children or
1036
- * object keys are not valid. This allows us to keep track of children between
1037
- * updates.
1038
- */
1039
-
1040
-
1041
- var ownerHasKeyUseWarning = {};
1042
-
1043
- function getCurrentComponentErrorInfo(parentType) {
1044
- {
1045
- var info = getDeclarationErrorAddendum();
1046
-
1047
- if (!info) {
1048
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1049
-
1050
- if (parentName) {
1051
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1052
- }
1053
- }
1054
-
1055
- return info;
1056
- }
1057
- }
1058
- /**
1059
- * Warn if the element doesn't have an explicit key assigned to it.
1060
- * This element is in an array. The array could grow and shrink or be
1061
- * reordered. All children that haven't already been validated are required to
1062
- * have a "key" property assigned to it. Error statuses are cached so a warning
1063
- * will only be shown once.
1064
- *
1065
- * @internal
1066
- * @param {ReactElement} element Element that requires a key.
1067
- * @param {*} parentType element's parent's type.
1068
- */
1069
-
1070
-
1071
- function validateExplicitKey(element, parentType) {
1072
- {
1073
- if (!element._store || element._store.validated || element.key != null) {
1074
- return;
1075
- }
1076
-
1077
- element._store.validated = true;
1078
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1079
-
1080
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1081
- return;
1082
- }
1083
-
1084
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1085
- // property, it may be the creator of the child that's responsible for
1086
- // assigning it a key.
1087
-
1088
- var childOwner = '';
1089
-
1090
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1091
- // Give the component that originally created this child.
1092
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1093
- }
1094
-
1095
- setCurrentlyValidatingElement$1(element);
1096
-
1097
- 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);
1098
-
1099
- setCurrentlyValidatingElement$1(null);
1100
- }
1101
- }
1102
- /**
1103
- * Ensure that every element either is passed in a static location, in an
1104
- * array with an explicit keys property defined, or in an object literal
1105
- * with valid key property.
1106
- *
1107
- * @internal
1108
- * @param {ReactNode} node Statically passed child of any type.
1109
- * @param {*} parentType node's parent's type.
1110
- */
1111
-
1112
-
1113
- function validateChildKeys(node, parentType) {
1114
- {
1115
- if (typeof node !== 'object') {
1116
- return;
1117
- }
1118
-
1119
- if (isArray(node)) {
1120
- for (var i = 0; i < node.length; i++) {
1121
- var child = node[i];
1122
-
1123
- if (isValidElement(child)) {
1124
- validateExplicitKey(child, parentType);
1125
- }
1126
- }
1127
- } else if (isValidElement(node)) {
1128
- // This element was passed in a valid location.
1129
- if (node._store) {
1130
- node._store.validated = true;
1131
- }
1132
- } else if (node) {
1133
- var iteratorFn = getIteratorFn(node);
1134
-
1135
- if (typeof iteratorFn === 'function') {
1136
- // Entry iterators used to provide implicit keys,
1137
- // but now we print a separate warning for them later.
1138
- if (iteratorFn !== node.entries) {
1139
- var iterator = iteratorFn.call(node);
1140
- var step;
1141
-
1142
- while (!(step = iterator.next()).done) {
1143
- if (isValidElement(step.value)) {
1144
- validateExplicitKey(step.value, parentType);
1145
- }
1146
- }
1147
- }
1148
- }
1149
- }
1150
- }
1151
- }
1152
- /**
1153
- * Given an element, validate that its props follow the propTypes definition,
1154
- * provided by the type.
1155
- *
1156
- * @param {ReactElement} element
1157
- */
1158
-
1159
-
1160
- function validatePropTypes(element) {
1161
- {
1162
- var type = element.type;
1163
-
1164
- if (type === null || type === undefined || typeof type === 'string') {
1165
- return;
1166
- }
1167
-
1168
- var propTypes;
1169
-
1170
- if (typeof type === 'function') {
1171
- propTypes = type.propTypes;
1172
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1173
- // Inner props are checked in the reconciler.
1174
- type.$$typeof === REACT_MEMO_TYPE)) {
1175
- propTypes = type.propTypes;
1176
- } else {
1177
- return;
202
+ function elementRefGetterWithDeprecationWarning() {
203
+ var componentName = getComponentNameFromType(this.type);
204
+ didWarnAboutElementRef[componentName] ||
205
+ ((didWarnAboutElementRef[componentName] = true),
206
+ console.error(
207
+ "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."
208
+ ));
209
+ componentName = this.props.ref;
210
+ return void 0 !== componentName ? componentName : null;
1178
211
  }
1179
-
1180
- if (propTypes) {
1181
- // Intentionally inside to avoid triggering lazy initializers:
1182
- var name = getComponentNameFromType(type);
1183
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1184
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1185
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1186
-
1187
- var _name = getComponentNameFromType(type);
1188
-
1189
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1190
- }
1191
-
1192
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1193
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
212
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
213
+ var refProp = props.ref;
214
+ type = {
215
+ $$typeof: REACT_ELEMENT_TYPE,
216
+ type: type,
217
+ key: key,
218
+ props: props,
219
+ _owner: owner
220
+ };
221
+ null !== (void 0 !== refProp ? refProp : null)
222
+ ? Object.defineProperty(type, "ref", {
223
+ enumerable: false,
224
+ get: elementRefGetterWithDeprecationWarning
225
+ })
226
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
227
+ type._store = {};
228
+ Object.defineProperty(type._store, "validated", {
229
+ configurable: false,
230
+ enumerable: false,
231
+ writable: true,
232
+ value: 0
233
+ });
234
+ Object.defineProperty(type, "_debugInfo", {
235
+ configurable: false,
236
+ enumerable: false,
237
+ writable: true,
238
+ value: null
239
+ });
240
+ Object.defineProperty(type, "_debugStack", {
241
+ configurable: false,
242
+ enumerable: false,
243
+ writable: true,
244
+ value: debugStack
245
+ });
246
+ Object.defineProperty(type, "_debugTask", {
247
+ configurable: false,
248
+ enumerable: false,
249
+ writable: true,
250
+ value: debugTask
251
+ });
252
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
253
+ return type;
1194
254
  }
1195
- }
1196
- }
1197
- /**
1198
- * Given a fragment, validate that it can only be provided with fragment props
1199
- * @param {ReactElement} fragment
1200
- */
1201
-
1202
-
1203
- function validateFragmentProps(fragment) {
1204
- {
1205
- var keys = Object.keys(fragment.props);
1206
-
1207
- for (var i = 0; i < keys.length; i++) {
1208
- var key = keys[i];
1209
-
1210
- if (key !== 'children' && key !== 'key') {
1211
- setCurrentlyValidatingElement$1(fragment);
1212
-
1213
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1214
-
1215
- setCurrentlyValidatingElement$1(null);
1216
- break;
255
+ function jsxDEVImpl(
256
+ type,
257
+ config,
258
+ maybeKey,
259
+ isStaticChildren,
260
+ debugStack,
261
+ debugTask
262
+ ) {
263
+ var children = config.children;
264
+ if (void 0 !== children)
265
+ if (isStaticChildren)
266
+ if (isArrayImpl(children)) {
267
+ for (
268
+ isStaticChildren = 0;
269
+ isStaticChildren < children.length;
270
+ isStaticChildren++
271
+ )
272
+ validateChildKeys(children[isStaticChildren]);
273
+ Object.freeze && Object.freeze(children);
274
+ } else
275
+ console.error(
276
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
277
+ );
278
+ else validateChildKeys(children);
279
+ if (hasOwnProperty.call(config, "key")) {
280
+ children = getComponentNameFromType(type);
281
+ var keys = Object.keys(config).filter(function (k) {
282
+ return "key" !== k;
283
+ });
284
+ isStaticChildren =
285
+ 0 < keys.length
286
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
287
+ : "{key: someKey}";
288
+ didWarnAboutKeySpread[children + isStaticChildren] ||
289
+ ((keys =
290
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
291
+ console.error(
292
+ '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} />',
293
+ isStaticChildren,
294
+ children,
295
+ keys,
296
+ children
297
+ ),
298
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
1217
299
  }
300
+ children = null;
301
+ void 0 !== maybeKey &&
302
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
303
+ hasValidKey(config) &&
304
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
305
+ if ("key" in config) {
306
+ maybeKey = {};
307
+ for (var propName in config)
308
+ "key" !== propName && (maybeKey[propName] = config[propName]);
309
+ } else maybeKey = config;
310
+ children &&
311
+ defineKeyPropWarningGetter(
312
+ maybeKey,
313
+ "function" === typeof type
314
+ ? type.displayName || type.name || "Unknown"
315
+ : type
316
+ );
317
+ return ReactElement(
318
+ type,
319
+ children,
320
+ maybeKey,
321
+ getOwner(),
322
+ debugStack,
323
+ debugTask
324
+ );
1218
325
  }
1219
-
1220
- if (fragment.ref !== null) {
1221
- setCurrentlyValidatingElement$1(fragment);
1222
-
1223
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1224
-
1225
- setCurrentlyValidatingElement$1(null);
326
+ function validateChildKeys(node) {
327
+ isValidElement(node)
328
+ ? node._store && (node._store.validated = 1)
329
+ : "object" === typeof node &&
330
+ null !== node &&
331
+ node.$$typeof === REACT_LAZY_TYPE &&
332
+ ("fulfilled" === node._payload.status
333
+ ? isValidElement(node._payload.value) &&
334
+ node._payload.value._store &&
335
+ (node._payload.value._store.validated = 1)
336
+ : node._store && (node._store.validated = 1));
1226
337
  }
1227
- }
1228
- }
1229
-
1230
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1231
- {
1232
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1233
- // succeed and there will likely be errors in render.
1234
-
1235
- if (!validType) {
1236
- var info = '';
1237
-
1238
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1239
- 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.";
1240
- }
1241
-
1242
- var sourceInfo = getSourceInfoErrorAddendum();
1243
-
1244
- if (sourceInfo) {
1245
- info += sourceInfo;
1246
- } else {
1247
- info += getDeclarationErrorAddendum();
1248
- }
1249
-
1250
- var typeString;
1251
-
1252
- if (type === null) {
1253
- typeString = 'null';
1254
- } else if (isArray(type)) {
1255
- typeString = 'array';
1256
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1257
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1258
- info = ' Did you accidentally export a JSX literal instead of a component?';
1259
- } else {
1260
- typeString = typeof type;
1261
- }
1262
-
1263
- 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);
338
+ function isValidElement(object) {
339
+ return (
340
+ "object" === typeof object &&
341
+ null !== object &&
342
+ object.$$typeof === REACT_ELEMENT_TYPE
343
+ );
1264
344
  }
1265
-
1266
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1267
- // TODO: Drop this when these are no longer allowed as the type argument.
1268
-
1269
- if (element == null) {
1270
- return element;
1271
- } // Skip key warning if the type isn't valid since our key validation logic
1272
- // doesn't expect a non-string/function type and can throw confusing errors.
1273
- // We don't want exception behavior to differ between dev and prod.
1274
- // (Rendering will throw with a helpful message and as soon as the type is
1275
- // fixed, the key warnings will appear.)
1276
-
1277
-
1278
- if (validType) {
1279
- var children = props.children;
1280
-
1281
- if (children !== undefined) {
1282
- if (isStaticChildren) {
1283
- if (isArray(children)) {
1284
- for (var i = 0; i < children.length; i++) {
1285
- validateChildKeys(children[i], type);
1286
- }
1287
-
1288
- if (Object.freeze) {
1289
- Object.freeze(children);
1290
- }
1291
- } else {
1292
- 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.');
1293
- }
1294
- } else {
1295
- validateChildKeys(children, type);
1296
- }
345
+ var React = require$$0,
346
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
347
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
348
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
349
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
350
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
351
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
352
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
353
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
354
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
355
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
356
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
357
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
358
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
359
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
360
+ ReactSharedInternals =
361
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
362
+ hasOwnProperty = Object.prototype.hasOwnProperty,
363
+ isArrayImpl = Array.isArray,
364
+ createTask = console.createTask
365
+ ? console.createTask
366
+ : function () {
367
+ return null;
368
+ };
369
+ React = {
370
+ react_stack_bottom_frame: function (callStackForError) {
371
+ return callStackForError();
1297
372
  }
1298
- }
1299
-
1300
- if (type === REACT_FRAGMENT_TYPE) {
1301
- validateFragmentProps(element);
1302
- } else {
1303
- validatePropTypes(element);
1304
- }
1305
-
1306
- return element;
1307
- }
1308
- } // These two functions exist to still get child warnings in dev
1309
- // even with the prod transform. This means that jsxDEV is purely
1310
- // opt-in behavior for better messages but that we won't stop
1311
- // giving you warnings if you use production apis.
1312
-
1313
- function jsxWithValidationStatic(type, props, key) {
1314
- {
1315
- return jsxWithValidation(type, props, key, true);
1316
- }
1317
- }
1318
- function jsxWithValidationDynamic(type, props, key) {
1319
- {
1320
- return jsxWithValidation(type, props, key, false);
1321
- }
1322
- }
1323
-
1324
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1325
- // for now we can ship identical prod functions
1326
-
1327
- var jsxs = jsxWithValidationStatic ;
1328
-
1329
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1330
- reactJsxRuntime_development.jsx = jsx;
1331
- reactJsxRuntime_development.jsxs = jsxs;
373
+ };
374
+ var specialPropKeyWarningShown;
375
+ var didWarnAboutElementRef = {};
376
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
377
+ React,
378
+ UnknownOwner
379
+ )();
380
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
381
+ var didWarnAboutKeySpread = {};
382
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
383
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
384
+ var trackActualOwner =
385
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
386
+ return jsxDEVImpl(
387
+ type,
388
+ config,
389
+ maybeKey,
390
+ false,
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) {
398
+ var trackActualOwner =
399
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
400
+ return jsxDEVImpl(
401
+ type,
402
+ config,
403
+ maybeKey,
404
+ true,
405
+ trackActualOwner
406
+ ? Error("react-stack-top-frame")
407
+ : unknownOwnerDebugStack,
408
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
409
+ );
410
+ };
1332
411
  })();
1333
- }
1334
412
  return reactJsxRuntime_development;
1335
413
  }
1336
414
 
1337
415
  if (process.env.NODE_ENV === 'production') {
1338
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
416
+ jsxRuntime.exports = requireReactJsxRuntime_production();
1339
417
  } else {
1340
418
  jsxRuntime.exports = requireReactJsxRuntime_development();
1341
419
  }
@@ -2052,7 +1130,7 @@ function RlsNavbar({ children, identifier, rlsTheme }) {
2052
1130
 
2053
1131
  function RlsPagination({ suggestions, count, filter, onPagination }) {
2054
1132
  const [template, setTemplate] = useState();
2055
- const controller = useRef();
1133
+ const controller = useRef(undefined);
2056
1134
  const refreshTemplate = useCallback((template, suggestions) => {
2057
1135
  const { firstPage, lastPage } = template;
2058
1136
  onPagination && onPagination({ firstPage, lastPage, suggestions });
@@ -2691,7 +1769,7 @@ function useListController(props) {
2691
1769
  });
2692
1770
  const changeValueInternal = useRef(false);
2693
1771
  const position = useRef(0);
2694
- const valueProtected = useRef();
1772
+ const valueProtected = useRef(undefined);
2695
1773
  useEffect(() => {
2696
1774
  function onCloseSuggestions({ target }) {
2697
1775
  !refContent?.current?.contains(target) &&
@@ -2980,10 +2058,6 @@ function RlsFieldAutocomplete(props) {
2980
2058
  return jsxRuntimeExports.jsx(RlsFieldAutocompleteTemplate, { ...props, render: render });
2981
2059
  }
2982
2060
 
2983
- const DATE_FORMAT = '{dd}/{mx}/{yy}';
2984
- const DATE_FORMAT_TITLE = '{dw}, {mx} {dd} de {yy}';
2985
- const DATE_RANGE_FORMAT = '{dd}/{mx}/{yy}';
2986
-
2987
2061
  function RlsModal({ children, className, onAutoClose, visible, rlsTheme }) {
2988
2062
  const classNameModal = useMemo(() => {
2989
2063
  return renderClassStatus('rls-modal', { visible }, className);
@@ -2994,6 +2068,251 @@ function RlsModal({ children, className, onAutoClose, visible, rlsTheme }) {
2994
2068
  return ReactDOM.createPortal(jsxRuntimeExports.jsxs("div", { className: classNameModal, "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsx("div", { className: "rls-modal__component", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-modal__backdrop", onClick: onClickBackdrop })] }), document.body);
2995
2069
  }
2996
2070
 
2071
+ function formatTime(value) {
2072
+ return String(value).padStart(2, '0');
2073
+ }
2074
+ const CLOCK_VALUES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
2075
+ const RADIUS = 48;
2076
+ const DIAL_RADIUS = 60;
2077
+ const TICK_RADIUS = 7;
2078
+ function RlsPickerClockTick({ onValue, selectionIsHours, value }) {
2079
+ const styleTick = useMemo(() => {
2080
+ const radian = (value / 6) * Math.PI;
2081
+ const x = Math.sin(radian) * RADIUS;
2082
+ const y = Math.cos(radian) * RADIUS;
2083
+ return {
2084
+ left: `${DIAL_RADIUS + x - TICK_RADIUS - 1}rem`,
2085
+ top: `${DIAL_RADIUS - y - TICK_RADIUS - 1}rem`
2086
+ };
2087
+ }, []);
2088
+ const label = useMemo(() => {
2089
+ if (selectionIsHours) {
2090
+ return formatTime(value);
2091
+ }
2092
+ if (value === 12) {
2093
+ return formatTime(0);
2094
+ }
2095
+ return formatTime(value * 5);
2096
+ }, [selectionIsHours]);
2097
+ const onClick = useCallback((event) => {
2098
+ event.preventDefault();
2099
+ onValue(value);
2100
+ }, [onValue]);
2101
+ return (jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__tick", style: styleTick, onClick: onClick, children: label }));
2102
+ }
2103
+ function RlsPickerClock({ formControl, onListener, rlsTheme, time }) {
2104
+ const timeInitial = useMemo(() => {
2105
+ return formControl?.value ?? time ?? Time.now();
2106
+ }, [formControl?.value, time]);
2107
+ const plateElement = useRef(null);
2108
+ const lineElement = useRef(null);
2109
+ const centerElement = useRef(null);
2110
+ const indicatorElement = useRef(null);
2111
+ const pointElement = useRef(null);
2112
+ const [labels, setLabels] = useState({
2113
+ timeActionCancel: reactI18n('dateActionCancel'),
2114
+ timeActionSelect: reactI18n('dateActionSelect')
2115
+ });
2116
+ const [zoneIsPM, setZoneIsPM] = useState(timeInitial.hour >= 12);
2117
+ const [hour, setHour] = useState(zoneIsPM ? timeInitial.hour - 12 : timeInitial.hour);
2118
+ const [minute, setMinute] = useState(timeInitial.minute);
2119
+ const [selectionIsHours, setSelectionIsHours] = useState(true);
2120
+ const selectionIsActive = useRef(false);
2121
+ const radianUnit = useMemo(() => {
2122
+ return Math.PI / (selectionIsHours ? 6 : 30);
2123
+ }, [selectionIsHours]);
2124
+ const hourFormat = useMemo(() => {
2125
+ return formatTime(hour === 0 ? 12 : hour);
2126
+ }, [hour]);
2127
+ const minuteFormat = useMemo(() => {
2128
+ return formatTime(minute);
2129
+ }, [minute]);
2130
+ const classNameHour = useMemo(() => {
2131
+ return renderClassStatus('rls-picker-clock__title__value', {
2132
+ active: selectionIsHours
2133
+ });
2134
+ }, [selectionIsHours]);
2135
+ const classNameMinute = useMemo(() => {
2136
+ return renderClassStatus('rls-picker-clock__title__value', {
2137
+ active: !selectionIsHours
2138
+ });
2139
+ }, [selectionIsHours]);
2140
+ const classNameAM = useMemo(() => {
2141
+ return renderClassStatus('rls-picker-clock__zone__value', {
2142
+ active: !zoneIsPM
2143
+ });
2144
+ }, [zoneIsPM]);
2145
+ const classNamePM = useMemo(() => {
2146
+ return renderClassStatus('rls-picker-clock__zone__value', {
2147
+ active: zoneIsPM
2148
+ });
2149
+ }, [zoneIsPM]);
2150
+ const refreshClockHour = useEffectEvent(() => {
2151
+ refreshClock(hour > 12 ? hour - 12 : hour);
2152
+ });
2153
+ const refreshClockMinute = useEffectEvent(() => {
2154
+ refreshClock(minute);
2155
+ });
2156
+ useEffect(() => {
2157
+ return i18nSubscribe(() => {
2158
+ setLabels({
2159
+ timeActionCancel: reactI18n('dateActionCancel'),
2160
+ timeActionSelect: reactI18n('dateActionSelect')
2161
+ });
2162
+ });
2163
+ }, []);
2164
+ useEffect(() => {
2165
+ selectionIsHours ? refreshClockHour() : refreshClockMinute();
2166
+ }, [selectionIsHours]);
2167
+ const refreshComponent = useCallback((clientX, clientY) => {
2168
+ const rectangle = plateElement.current.getBoundingClientRect();
2169
+ const centerX = rectangle.left + rectangle.width / 2;
2170
+ const centerY = rectangle.top + rectangle.height / 2;
2171
+ const positionX = clientX - centerX;
2172
+ const positionY = clientY - centerY;
2173
+ const angle = Math.atan2(-positionX, positionY) + Math.PI;
2174
+ const value = Math.round(angle / radianUnit);
2175
+ refreshClock(value);
2176
+ selectionIsHours ? setHour(value === 0 ? 12 : value) : setMinute(value);
2177
+ }, [selectionIsHours, radianUnit]);
2178
+ const refreshClock = useCallback((value) => {
2179
+ const angle = value * radianUnit;
2180
+ const x2 = Math.sin(angle) * (RADIUS - TICK_RADIUS);
2181
+ const y2 = -Math.cos(angle) * (RADIUS - TICK_RADIUS);
2182
+ const cx = Math.sin(angle) * RADIUS;
2183
+ const cy = -Math.cos(angle) * RADIUS;
2184
+ lineElement.current.setAttribute('x2', `${x2 - 1}rem`);
2185
+ lineElement.current.setAttribute('y2', `${y2 - 1}rem`);
2186
+ indicatorElement.current.setAttribute('cx', `${cx - 1}rem`);
2187
+ indicatorElement.current.setAttribute('cy', `${cy - 1}rem`);
2188
+ pointElement.current.setAttribute('cx', `${cx - 1}rem`);
2189
+ pointElement.current.setAttribute('cy', `${cy - 1}rem`);
2190
+ pointElement.current.style.visibility =
2191
+ selectionIsHours || value % 5 === 0 ? 'hidden' : 'visible';
2192
+ }, [selectionIsHours, radianUnit]);
2193
+ const onClickHour = useCallback(() => {
2194
+ setSelectionIsHours(true);
2195
+ }, []);
2196
+ const onClickMinute = useCallback(() => {
2197
+ setSelectionIsHours(false);
2198
+ }, []);
2199
+ const onClickAM = useCallback(() => {
2200
+ setZoneIsPM(false);
2201
+ }, []);
2202
+ const onClickPM = useCallback(() => {
2203
+ setZoneIsPM(true);
2204
+ }, []);
2205
+ const onActiveSelection = useCallback(() => {
2206
+ selectionIsActive.current = true;
2207
+ }, []);
2208
+ const onMouseSelection = useCallback((event) => {
2209
+ if (selectionIsActive.current) {
2210
+ event.preventDefault();
2211
+ refreshComponent(event.clientX, event.clientY);
2212
+ }
2213
+ }, [refreshComponent]);
2214
+ const onTouchSelection = useCallback((event) => {
2215
+ const touch = event.touches.item(0);
2216
+ if (selectionIsActive.current && touch) {
2217
+ refreshComponent(touch.clientX, touch.clientY);
2218
+ }
2219
+ }, [refreshComponent]);
2220
+ const onInactiveSelection = useCallback(() => {
2221
+ selectionIsActive.current = false;
2222
+ }, []);
2223
+ const onClickValue = useCallback((value) => {
2224
+ if (selectionIsHours) {
2225
+ setHour(value);
2226
+ refreshClock(value);
2227
+ }
2228
+ else {
2229
+ const minute = value === 12 ? 0 : value * 5;
2230
+ setMinute(minute);
2231
+ refreshClock(minute);
2232
+ }
2233
+ }, [selectionIsHours]);
2234
+ const onCancel = useCallback(() => {
2235
+ onListener?.({ event: PickerListenerEvent.Cancel });
2236
+ }, [onListener]);
2237
+ const onCurrentTime = useCallback(() => {
2238
+ const currentTime = Time.now();
2239
+ formControl?.setValue(currentTime);
2240
+ setHour(currentTime.hour);
2241
+ setMinute(currentTime.minute);
2242
+ onListener?.({
2243
+ event: PickerListenerEvent.Select,
2244
+ value: currentTime
2245
+ });
2246
+ }, [formControl, onListener]);
2247
+ const onSelect = useCallback(() => {
2248
+ const hourValue = zoneIsPM
2249
+ ? hour !== 12
2250
+ ? hour + 12
2251
+ : 12
2252
+ : hour === 12
2253
+ ? 0
2254
+ : hour;
2255
+ const timeValue = new Time(hourValue, minute);
2256
+ formControl?.setValue(timeValue);
2257
+ onListener?.({
2258
+ event: PickerListenerEvent.Select,
2259
+ value: timeValue
2260
+ });
2261
+ }, [formControl, hour, minute, zoneIsPM, onListener]);
2262
+ return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__header", children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__title", children: [jsxRuntimeExports.jsx("span", { className: classNameHour, onClick: onClickHour, children: hourFormat }), jsxRuntimeExports.jsx("span", { className: "rls-picker-clock__title__separator", children: ":" }), jsxRuntimeExports.jsx("span", { className: classNameMinute, onClick: onClickMinute, children: minuteFormat })] }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__zone", children: [jsxRuntimeExports.jsx("span", { className: classNameAM, onClick: onClickAM, children: "AM" }), jsxRuntimeExports.jsx("span", { className: classNamePM, onClick: onClickPM, children: "PM" })] })] }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__body", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__plate", ref: plateElement, onMouseDown: onActiveSelection, onMouseMove: onMouseSelection, onMouseUp: onInactiveSelection, onMouseLeave: onInactiveSelection, onTouchStart: onActiveSelection, onTouchMove: onTouchSelection, onTouchEnd: onInactiveSelection, children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__canvas", children: jsxRuntimeExports.jsx("svg", { width: "120rem", height: "120rem", children: jsxRuntimeExports.jsxs("g", { style: {
2263
+ transform: `translate(${DIAL_RADIUS}rem, ${DIAL_RADIUS}rem)`
2264
+ }, children: [jsxRuntimeExports.jsx("line", { ref: lineElement, className: "rls-picker-clock__canvas__line", x1: "-1", y1: "-1" }), jsxRuntimeExports.jsx("circle", { ref: centerElement, className: "rls-picker-clock__canvas__center", r: "4", cx: "-1", cy: "-1" }), jsxRuntimeExports.jsx("circle", { ref: indicatorElement, className: "rls-picker-clock__canvas__indicator", r: `${TICK_RADIUS}rem` }), jsxRuntimeExports.jsx("circle", { ref: pointElement, className: "rls-picker-clock__canvas__point", r: "3.5" })] }) }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__hours", children: CLOCK_VALUES.map((value) => {
2265
+ return (jsxRuntimeExports.jsx(RlsPickerClockTick, { value: value, selectionIsHours: selectionIsHours, onValue: onClickValue }, value));
2266
+ }) })] }) }), jsxRuntimeExports.jsxs("div", { className: "rls-picker-clock__footer", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__footer--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.timeActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__footer--today", children: jsxRuntimeExports.jsx(RlsButtonAction, { icon: "timer", onClick: onCurrentTime }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-clock__footer--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "gradient", onClick: onSelect, children: labels.timeActionSelect }) })] })] }));
2267
+ }
2268
+
2269
+ function RlsFieldClock({ children, disabled, formControl, identifier, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, time, value: valueInitial }) {
2270
+ const [value, setValue] = useState(formControl?.value ?? valueInitial);
2271
+ const [modalIsVisible, setModalIsVisible] = useState(false);
2272
+ const _disabled = useMemo(() => {
2273
+ return formControl?.disabled || disabled;
2274
+ }, [formControl?.disabled, disabled]);
2275
+ const className = useMemo(() => {
2276
+ return renderClassStatus('rls-field-box', {
2277
+ disabled: _disabled,
2278
+ readonly: readOnly
2279
+ });
2280
+ }, [_disabled, readOnly]);
2281
+ const { icon, valueInput } = useMemo(() => {
2282
+ return {
2283
+ icon: value ? 'trash-2' : 'timer',
2284
+ valueInput: value?.normalizeMeridiemFormat || ''
2285
+ };
2286
+ }, [value]);
2287
+ const onClickInput = useCallback(() => {
2288
+ !readOnly && setModalIsVisible(true);
2289
+ }, [readOnly]);
2290
+ const onChange = useCallback((value) => {
2291
+ setValue(value);
2292
+ onValue?.(value);
2293
+ }, [onValue]);
2294
+ const onClickAction = useCallback(() => {
2295
+ if (value) {
2296
+ formControl?.setValue(valueInitial);
2297
+ formControl?.touch();
2298
+ onChange(valueInitial);
2299
+ }
2300
+ else {
2301
+ setModalIsVisible(true);
2302
+ }
2303
+ }, [value, formControl, valueInitial, onChange]);
2304
+ const onListener = useCallback(({ event, value }) => {
2305
+ event !== PickerListenerEvent.Cancel && onChange(value);
2306
+ formControl?.touch();
2307
+ setModalIsVisible(false);
2308
+ }, [formControl, onChange]);
2309
+ return (jsxRuntimeExports.jsxs("div", { id: identifier, className: "rls-field-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: className, children: [children && jsxRuntimeExports.jsx("span", { className: "rls-field-box__label", children: children }), jsxRuntimeExports.jsx("div", { className: "rls-field-box__component", children: jsxRuntimeExports.jsxs("div", { className: "rls-field-box__body", children: [jsxRuntimeExports.jsx("input", { className: "rls-field-date__control", type: "text", value: valueInput, readOnly: true, placeholder: placeholder, onClick: onClickInput, disabled: _disabled }), !readOnly && (jsxRuntimeExports.jsx("button", { className: "rls-field-date__action", onClick: onClickAction, disabled: _disabled, children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) }))] }) }), !msgErrorDisabled && (jsxRuntimeExports.jsx(RlsMessageFormError, { className: "rls-field-box__error", formControl: formControl }))] }), jsxRuntimeExports.jsx(RlsModal, { className: "rls-field-clock-modal", visible: modalIsVisible, rlsTheme: rlsTheme, children: jsxRuntimeExports.jsx(RlsPickerClock, { formControl: formControl, time: time, disabled: _disabled, onListener: onListener }) })] }));
2310
+ }
2311
+
2312
+ const DATE_FORMAT = '{dd}/{mx}/{yy}';
2313
+ const DATE_FORMAT_TITLE = '{dw}, {mx} {dd} de {yy}';
2314
+ const DATE_RANGE_FORMAT = '{dd}/{mx}/{yy}';
2315
+
2997
2316
  function RlsPickerDate({ automatic, date, disabled, formControl, maxDate, minDate, onListener, rlsTheme }) {
2998
2317
  const today = useRef(new Date()); // Initial current date in component
2999
2318
  const _date = useMemo(() => {
@@ -3046,33 +2365,31 @@ function RlsPickerDate({ automatic, date, disabled, formControl, maxDate, minDat
3046
2365
  type === 'month' ? setVisibility('MONTH') : setVisibility('YEAR');
3047
2366
  }, []);
3048
2367
  const onCancel = useCallback(() => {
3049
- onListener && onListener({ event: PickerListenerEvent.Cancel });
2368
+ onListener?.({ event: PickerListenerEvent.Cancel });
3050
2369
  }, [onListener]);
3051
2370
  const onToday = useCallback(() => {
3052
2371
  yearControl.setValue(today.current.getFullYear());
3053
2372
  dayControl.setValue(today.current.getDate());
3054
2373
  monthControl.setValue(today.current.getMonth());
3055
2374
  formControl?.setValue(today.current);
3056
- onListener &&
3057
- onListener({
3058
- event: PickerListenerEvent.Now,
3059
- value: today.current
3060
- });
3061
- }, [today.current, formControl, onListener]);
2375
+ onListener?.({
2376
+ event: PickerListenerEvent.Now,
2377
+ value: today.current
2378
+ });
2379
+ }, [formControl, onListener]);
3062
2380
  const onSelect = useCallback(() => {
3063
2381
  formControl?.setValue(value);
3064
- onListener &&
3065
- onListener({
3066
- event: PickerListenerEvent.Select,
3067
- value
3068
- });
2382
+ onListener?.({
2383
+ event: PickerListenerEvent.Select,
2384
+ value
2385
+ });
3069
2386
  }, [formControl, value, onListener]);
3070
2387
  return (jsxRuntimeExports.jsxs("div", { className: "rls-picker-date", "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__header", children: [jsxRuntimeExports.jsx(RlsPickerSelectorTitle, { monthControl: monthControl, yearControl: yearControl, date: value, maxDate: maxDate, minDate: minDate, disabled: visibility === 'YEAR', type: 'month', onClick: onVisibilityTitle }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__title", children: jsxRuntimeExports.jsx("span", { onClick: onVisibilityDay, children: title }) })] }), jsxRuntimeExports.jsxs("div", { className: classNameComponent, children: [jsxRuntimeExports.jsx(RlsPickerDay, { formControl: dayControl, date: _date, month: monthControl.value, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled }), jsxRuntimeExports.jsx(RlsPickerMonth, { formControl: monthControl, date: _date, year: yearControl.value, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay }), jsxRuntimeExports.jsx(RlsPickerYear, { formControl: yearControl, date: _date, maxDate: maxDate, minDate: minDate, disabled: disabled, onValue: onVisibilityDay })] }), !automatic && (jsxRuntimeExports.jsx("div", { className: "rls-picker-date__footer", children: jsxRuntimeExports.jsxs("div", { className: "rls-picker-date__actions", children: [jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--cancel", children: jsxRuntimeExports.jsx(RlsButton, { type: "flat", onClick: onCancel, children: labels.dateActionCancel }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--today", children: jsxRuntimeExports.jsx(RlsButtonAction, { icon: "calendar", onClick: onToday, disabled: itIsDisabledToday }) }), jsxRuntimeExports.jsx("div", { className: "rls-picker-date__actions--ok", children: jsxRuntimeExports.jsx(RlsButton, { type: "gradient", onClick: onSelect, children: labels.dateActionSelect }) })] }) }))] }));
3071
2388
  }
3072
2389
 
3073
- function RlsFieldDate({ children, date, disabled, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: _value }) {
2390
+ function RlsFieldDate({ children, date, disabled, formControl, format, identifier, maxDate, minDate, msgErrorDisabled, onValue, placeholder, readOnly, rlsTheme, value: valueInitial }) {
3074
2391
  const today = useRef(new Date()); // Initial current date in component
3075
- const [value, setValue] = useState(formControl?.value ?? _value);
2392
+ const [value, setValue] = useState(formControl?.value ?? valueInitial);
3076
2393
  const [modalIsVisible, setModalIsVisible] = useState(false);
3077
2394
  const _disabled = useMemo(() => {
3078
2395
  return formControl?.disabled || disabled;
@@ -3107,14 +2424,14 @@ function RlsFieldDate({ children, date, disabled, formControl, format, identifie
3107
2424
  }, [onValue]);
3108
2425
  const onClickAction = useCallback(() => {
3109
2426
  if (value) {
3110
- formControl?.setValue(_value);
2427
+ formControl?.setValue(valueInitial);
3111
2428
  formControl?.touch();
3112
- onChange(_value);
2429
+ onChange(valueInitial);
3113
2430
  }
3114
2431
  else {
3115
2432
  setModalIsVisible(true);
3116
2433
  }
3117
- }, [value, formControl, _value, onChange]);
2434
+ }, [value, formControl, valueInitial, onChange]);
3118
2435
  const onListener = useCallback(({ event, value }) => {
3119
2436
  event !== PickerListenerEvent.Cancel && onChange(value);
3120
2437
  formControl?.touch();
@@ -3129,8 +2446,8 @@ function rangeFormatTemplate({ maxDate, minDate }) {
3129
2446
  return `${minFormat} - ${maxFormat}`;
3130
2447
  }
3131
2448
 
3132
- function RlsPickerDateRange({ automatic, date: _picker, disabled, formControl, maxDate, minDate, onListener, rlsTheme }) {
3133
- const _date = useMemo(() => normalizeMinTime(_picker ?? new Date()), [_picker]);
2449
+ function RlsPickerDateRange({ automatic, date: datePicker, disabled, formControl, maxDate, minDate, onListener, rlsTheme }) {
2450
+ const _date = useMemo(() => normalizeMinTime(datePicker ?? new Date()), [datePicker]);
3134
2451
  const _range = useMemo(() => formControl?.value ?? DateRange.now(), [formControl?.value]);
3135
2452
  const yearControl = useReactControl(_date.getFullYear());
3136
2453
  const monthControl = useReactControl(_date.getMonth());
@@ -3562,7 +2879,7 @@ function RlsImageEditor(props) {
3562
2879
  const refCanvas = useRef(null);
3563
2880
  const refPicture = useRef(null);
3564
2881
  const image = useRef(new Image());
3565
- const originalImage = useRef();
2882
+ const originalImage = useRef(undefined);
3566
2883
  const ratio = useMemo(() => {
3567
2884
  return props.ratio || '1:1';
3568
2885
  }, [props.ratio]);
@@ -3851,7 +3168,7 @@ function RlsSnackbar({ content, onClose, icon, rlsTheme, title, visible }) {
3851
3168
  return (jsxRuntimeExports.jsxs("div", { className: className, "rls-theme": rlsTheme, children: [icon && (jsxRuntimeExports.jsx("div", { className: "rls-snackbar__avatar", children: jsxRuntimeExports.jsx(RlsIcon, { value: icon }) })), jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__component", children: [jsxRuntimeExports.jsxs("div", { className: "rls-snackbar__header", children: [jsxRuntimeExports.jsx("div", { className: "rls-snackbar__title", children: title }), jsxRuntimeExports.jsx("button", { onClick: onClose, children: jsxRuntimeExports.jsx(RlsIcon, { value: "close" }) })] }), jsxRuntimeExports.jsx("div", { className: "rls-snackbar__content", children: content })] })] }));
3852
3169
  }
3853
3170
  function useSnackbar() {
3854
- const timeoutId = useRef();
3171
+ const timeoutId = useRef(undefined);
3855
3172
  const duration = useRef(4000);
3856
3173
  const [state, setState] = useState({
3857
3174
  config: {},
@@ -3934,5 +3251,5 @@ function usePortalController() {
3934
3251
  return { close, open, visible };
3935
3252
  }
3936
3253
 
3937
- export { ConfirmationResult, RlsAlert, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBottomSheet, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonOption, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContent, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableFloating, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableSubheader, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldDate, RlsFieldDateRange, RlsFieldDecimal, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldPercentage, RlsFieldReadonly, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsImage, RlsImageChooser, RlsImageEditor, RlsInput, RlsInputDecimal, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputPercentage, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsModalSheet, RlsNavbar, RlsPagination, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerSelectorTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSlider, RlsSnackbar, RlsSpinner, RlsSwitch, RlsSwitchControl, RlsTabs, RlsTabularText, RlsToolbar, calculateImgDimension, rangeFormatTemplate, renderClassStatus, setErrorsI18n, useConfirmation, useDatatable, useFieldAutocomplete, useFieldSelect, useFormSingleSelectionController, useFormToggleController, useImageEditorController, useListController, usePortalController, useRelocationOnComponent, useResize, useSnackbar };
3254
+ export { ConfirmationResult, RlsAlert, RlsAmount, RlsApplication, RlsAvatar, RlsBadge, RlsBallot, RlsBottomSheet, RlsBreadcrumb, RlsButton, RlsButtonAction, RlsButtonOption, RlsButtonProgress, RlsButtonToggle, RlsCard, RlsCheckBox, RlsCheckBoxControl, RlsConfirmation, RlsContent, RlsContext, RlsDatatable, RlsDatatableCell, RlsDatatableData, RlsDatatableFloating, RlsDatatableHeader, RlsDatatableRecord, RlsDatatableSubheader, RlsDatatableTitle, RlsDatatableTotals, RlsFieldAutocomplete, RlsFieldAutocompleteTemplate, RlsFieldClock, RlsFieldDate, RlsFieldDateRange, RlsFieldDecimal, RlsFieldMoney, RlsFieldNumber, RlsFieldPassword, RlsFieldPercentage, RlsFieldReadonly, RlsFieldSelect, RlsFieldSelectTemplate, RlsFieldText, RlsFormNavigation, RlsIcon, RlsImage, RlsImageChooser, RlsImageEditor, RlsInput, RlsInputDecimal, RlsInputMoney, RlsInputNumber, RlsInputPassword, RlsInputPercentage, RlsInputSearch, RlsInputText, RlsLabel, RlsLabelCheckBox, RlsLabelRadioButton, RlsLabelSwitch, RlsMessageFormError, RlsMessageIcon, RlsModal, RlsModalSheet, RlsNavbar, RlsPagination, RlsPickerClock, RlsPickerDate, RlsPickerDateRange, RlsPickerDay, RlsPickerDayRange, RlsPickerMonth, RlsPickerSelectorTitle, RlsPickerYear, RlsPoster, RlsProgressBar, RlsProgressCircular, RlsRadioButton, RlsSkeleton, RlsSkeletonText, RlsSlider, RlsSnackbar, RlsSpinner, RlsSwitch, RlsSwitchControl, RlsTabs, RlsTabularText, RlsToolbar, calculateImgDimension, rangeFormatTemplate, renderClassStatus, setErrorsI18n, useConfirmation, useDatatable, useFieldAutocomplete, useFieldSelect, useFormSingleSelectionController, useFormToggleController, useImageEditorController, useListController, usePortalController, useRelocationOnComponent, useResize, useSnackbar };
3938
3255
  //# sourceMappingURL=index.js.map