@availity/mui-stepper 1.0.6 → 1.0.8

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.js CHANGED
@@ -34,9 +34,6 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
- var __commonJS = (cb, mod) => function __require() {
38
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
39
- };
40
37
  var __export = (target, all) => {
41
38
  for (var name in all)
42
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -59,954 +56,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
59
56
  ));
60
57
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
61
58
 
62
- // ../../node_modules/react-is/cjs/react-is.production.min.js
63
- var require_react_is_production_min = __commonJS({
64
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
65
- "use strict";
66
- var b = "function" === typeof Symbol && Symbol.for;
67
- var c = b ? Symbol.for("react.element") : 60103;
68
- var d = b ? Symbol.for("react.portal") : 60106;
69
- var e = b ? Symbol.for("react.fragment") : 60107;
70
- var f = b ? Symbol.for("react.strict_mode") : 60108;
71
- var g = b ? Symbol.for("react.profiler") : 60114;
72
- var h = b ? Symbol.for("react.provider") : 60109;
73
- var k = b ? Symbol.for("react.context") : 60110;
74
- var l = b ? Symbol.for("react.async_mode") : 60111;
75
- var m = b ? Symbol.for("react.concurrent_mode") : 60111;
76
- var n = b ? Symbol.for("react.forward_ref") : 60112;
77
- var p = b ? Symbol.for("react.suspense") : 60113;
78
- var q = b ? Symbol.for("react.suspense_list") : 60120;
79
- var r = b ? Symbol.for("react.memo") : 60115;
80
- var t = b ? Symbol.for("react.lazy") : 60116;
81
- var v = b ? Symbol.for("react.block") : 60121;
82
- var w = b ? Symbol.for("react.fundamental") : 60117;
83
- var x = b ? Symbol.for("react.responder") : 60118;
84
- var y = b ? Symbol.for("react.scope") : 60119;
85
- function z(a) {
86
- if ("object" === typeof a && null !== a) {
87
- var u = a.$$typeof;
88
- switch (u) {
89
- case c:
90
- switch (a = a.type, a) {
91
- case l:
92
- case m:
93
- case e:
94
- case g:
95
- case f:
96
- case p:
97
- return a;
98
- default:
99
- switch (a = a && a.$$typeof, a) {
100
- case k:
101
- case n:
102
- case t:
103
- case r:
104
- case h:
105
- return a;
106
- default:
107
- return u;
108
- }
109
- }
110
- case d:
111
- return u;
112
- }
113
- }
114
- }
115
- function A(a) {
116
- return z(a) === m;
117
- }
118
- exports2.AsyncMode = l;
119
- exports2.ConcurrentMode = m;
120
- exports2.ContextConsumer = k;
121
- exports2.ContextProvider = h;
122
- exports2.Element = c;
123
- exports2.ForwardRef = n;
124
- exports2.Fragment = e;
125
- exports2.Lazy = t;
126
- exports2.Memo = r;
127
- exports2.Portal = d;
128
- exports2.Profiler = g;
129
- exports2.StrictMode = f;
130
- exports2.Suspense = p;
131
- exports2.isAsyncMode = function(a) {
132
- return A(a) || z(a) === l;
133
- };
134
- exports2.isConcurrentMode = A;
135
- exports2.isContextConsumer = function(a) {
136
- return z(a) === k;
137
- };
138
- exports2.isContextProvider = function(a) {
139
- return z(a) === h;
140
- };
141
- exports2.isElement = function(a) {
142
- return "object" === typeof a && null !== a && a.$$typeof === c;
143
- };
144
- exports2.isForwardRef = function(a) {
145
- return z(a) === n;
146
- };
147
- exports2.isFragment = function(a) {
148
- return z(a) === e;
149
- };
150
- exports2.isLazy = function(a) {
151
- return z(a) === t;
152
- };
153
- exports2.isMemo = function(a) {
154
- return z(a) === r;
155
- };
156
- exports2.isPortal = function(a) {
157
- return z(a) === d;
158
- };
159
- exports2.isProfiler = function(a) {
160
- return z(a) === g;
161
- };
162
- exports2.isStrictMode = function(a) {
163
- return z(a) === f;
164
- };
165
- exports2.isSuspense = function(a) {
166
- return z(a) === p;
167
- };
168
- exports2.isValidElementType = function(a) {
169
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
170
- };
171
- exports2.typeOf = z;
172
- }
173
- });
174
-
175
- // ../../node_modules/react-is/cjs/react-is.development.js
176
- var require_react_is_development = __commonJS({
177
- "../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
178
- "use strict";
179
- if (process.env.NODE_ENV !== "production") {
180
- (function() {
181
- "use strict";
182
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
183
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
184
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
185
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
186
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
187
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
188
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
189
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
190
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
191
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
192
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
193
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
194
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
195
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
196
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
197
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
198
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
199
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
200
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
201
- function isValidElementType(type) {
202
- return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
203
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
204
- }
205
- function typeOf(object) {
206
- if (typeof object === "object" && object !== null) {
207
- var $$typeof = object.$$typeof;
208
- switch ($$typeof) {
209
- case REACT_ELEMENT_TYPE:
210
- var type = object.type;
211
- switch (type) {
212
- case REACT_ASYNC_MODE_TYPE:
213
- case REACT_CONCURRENT_MODE_TYPE:
214
- case REACT_FRAGMENT_TYPE:
215
- case REACT_PROFILER_TYPE:
216
- case REACT_STRICT_MODE_TYPE:
217
- case REACT_SUSPENSE_TYPE:
218
- return type;
219
- default:
220
- var $$typeofType = type && type.$$typeof;
221
- switch ($$typeofType) {
222
- case REACT_CONTEXT_TYPE:
223
- case REACT_FORWARD_REF_TYPE:
224
- case REACT_LAZY_TYPE:
225
- case REACT_MEMO_TYPE:
226
- case REACT_PROVIDER_TYPE:
227
- return $$typeofType;
228
- default:
229
- return $$typeof;
230
- }
231
- }
232
- case REACT_PORTAL_TYPE:
233
- return $$typeof;
234
- }
235
- }
236
- return void 0;
237
- }
238
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
239
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
240
- var ContextConsumer = REACT_CONTEXT_TYPE;
241
- var ContextProvider = REACT_PROVIDER_TYPE;
242
- var Element = REACT_ELEMENT_TYPE;
243
- var ForwardRef = REACT_FORWARD_REF_TYPE;
244
- var Fragment = REACT_FRAGMENT_TYPE;
245
- var Lazy = REACT_LAZY_TYPE;
246
- var Memo = REACT_MEMO_TYPE;
247
- var Portal = REACT_PORTAL_TYPE;
248
- var Profiler = REACT_PROFILER_TYPE;
249
- var StrictMode = REACT_STRICT_MODE_TYPE;
250
- var Suspense = REACT_SUSPENSE_TYPE;
251
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
252
- function isAsyncMode(object) {
253
- {
254
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
255
- hasWarnedAboutDeprecatedIsAsyncMode = true;
256
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
257
- }
258
- }
259
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
260
- }
261
- function isConcurrentMode(object) {
262
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
263
- }
264
- function isContextConsumer(object) {
265
- return typeOf(object) === REACT_CONTEXT_TYPE;
266
- }
267
- function isContextProvider(object) {
268
- return typeOf(object) === REACT_PROVIDER_TYPE;
269
- }
270
- function isElement(object) {
271
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
272
- }
273
- function isForwardRef(object) {
274
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
275
- }
276
- function isFragment(object) {
277
- return typeOf(object) === REACT_FRAGMENT_TYPE;
278
- }
279
- function isLazy(object) {
280
- return typeOf(object) === REACT_LAZY_TYPE;
281
- }
282
- function isMemo(object) {
283
- return typeOf(object) === REACT_MEMO_TYPE;
284
- }
285
- function isPortal(object) {
286
- return typeOf(object) === REACT_PORTAL_TYPE;
287
- }
288
- function isProfiler(object) {
289
- return typeOf(object) === REACT_PROFILER_TYPE;
290
- }
291
- function isStrictMode(object) {
292
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
293
- }
294
- function isSuspense(object) {
295
- return typeOf(object) === REACT_SUSPENSE_TYPE;
296
- }
297
- exports2.AsyncMode = AsyncMode;
298
- exports2.ConcurrentMode = ConcurrentMode;
299
- exports2.ContextConsumer = ContextConsumer;
300
- exports2.ContextProvider = ContextProvider;
301
- exports2.Element = Element;
302
- exports2.ForwardRef = ForwardRef;
303
- exports2.Fragment = Fragment;
304
- exports2.Lazy = Lazy;
305
- exports2.Memo = Memo;
306
- exports2.Portal = Portal;
307
- exports2.Profiler = Profiler;
308
- exports2.StrictMode = StrictMode;
309
- exports2.Suspense = Suspense;
310
- exports2.isAsyncMode = isAsyncMode;
311
- exports2.isConcurrentMode = isConcurrentMode;
312
- exports2.isContextConsumer = isContextConsumer;
313
- exports2.isContextProvider = isContextProvider;
314
- exports2.isElement = isElement;
315
- exports2.isForwardRef = isForwardRef;
316
- exports2.isFragment = isFragment;
317
- exports2.isLazy = isLazy;
318
- exports2.isMemo = isMemo;
319
- exports2.isPortal = isPortal;
320
- exports2.isProfiler = isProfiler;
321
- exports2.isStrictMode = isStrictMode;
322
- exports2.isSuspense = isSuspense;
323
- exports2.isValidElementType = isValidElementType;
324
- exports2.typeOf = typeOf;
325
- })();
326
- }
327
- }
328
- });
329
-
330
- // ../../node_modules/react-is/index.js
331
- var require_react_is = __commonJS({
332
- "../../node_modules/react-is/index.js"(exports2, module2) {
333
- "use strict";
334
- if (process.env.NODE_ENV === "production") {
335
- module2.exports = require_react_is_production_min();
336
- } else {
337
- module2.exports = require_react_is_development();
338
- }
339
- }
340
- });
341
-
342
- // ../../node_modules/object-assign/index.js
343
- var require_object_assign = __commonJS({
344
- "../../node_modules/object-assign/index.js"(exports2, module2) {
345
- "use strict";
346
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
347
- var hasOwnProperty = Object.prototype.hasOwnProperty;
348
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
349
- function toObject(val) {
350
- if (val === null || val === void 0) {
351
- throw new TypeError("Object.assign cannot be called with null or undefined");
352
- }
353
- return Object(val);
354
- }
355
- function shouldUseNative() {
356
- try {
357
- if (!Object.assign) {
358
- return false;
359
- }
360
- var test1 = new String("abc");
361
- test1[5] = "de";
362
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
363
- return false;
364
- }
365
- var test2 = {};
366
- for (var i = 0; i < 10; i++) {
367
- test2["_" + String.fromCharCode(i)] = i;
368
- }
369
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
370
- return test2[n];
371
- });
372
- if (order2.join("") !== "0123456789") {
373
- return false;
374
- }
375
- var test3 = {};
376
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
377
- test3[letter] = letter;
378
- });
379
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
380
- return false;
381
- }
382
- return true;
383
- } catch (err) {
384
- return false;
385
- }
386
- }
387
- module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
388
- var from;
389
- var to = toObject(target);
390
- var symbols;
391
- for (var s = 1; s < arguments.length; s++) {
392
- from = Object(arguments[s]);
393
- for (var key in from) {
394
- if (hasOwnProperty.call(from, key)) {
395
- to[key] = from[key];
396
- }
397
- }
398
- if (getOwnPropertySymbols) {
399
- symbols = getOwnPropertySymbols(from);
400
- for (var i = 0; i < symbols.length; i++) {
401
- if (propIsEnumerable.call(from, symbols[i])) {
402
- to[symbols[i]] = from[symbols[i]];
403
- }
404
- }
405
- }
406
- }
407
- return to;
408
- };
409
- }
410
- });
411
-
412
- // ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
413
- var require_ReactPropTypesSecret = __commonJS({
414
- "../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
415
- "use strict";
416
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
417
- module2.exports = ReactPropTypesSecret;
418
- }
419
- });
420
-
421
- // ../../node_modules/prop-types/lib/has.js
422
- var require_has = __commonJS({
423
- "../../node_modules/prop-types/lib/has.js"(exports2, module2) {
424
- "use strict";
425
- module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
426
- }
427
- });
428
-
429
- // ../../node_modules/prop-types/checkPropTypes.js
430
- var require_checkPropTypes = __commonJS({
431
- "../../node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
432
- "use strict";
433
- var printWarning = function() {
434
- };
435
- if (process.env.NODE_ENV !== "production") {
436
- ReactPropTypesSecret = require_ReactPropTypesSecret();
437
- loggedTypeFailures = {};
438
- has = require_has();
439
- printWarning = function(text) {
440
- var message = "Warning: " + text;
441
- if (typeof console !== "undefined") {
442
- console.error(message);
443
- }
444
- try {
445
- throw new Error(message);
446
- } catch (x) {
447
- }
448
- };
449
- }
450
- var ReactPropTypesSecret;
451
- var loggedTypeFailures;
452
- var has;
453
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
454
- if (process.env.NODE_ENV !== "production") {
455
- for (var typeSpecName in typeSpecs) {
456
- if (has(typeSpecs, typeSpecName)) {
457
- var error;
458
- try {
459
- if (typeof typeSpecs[typeSpecName] !== "function") {
460
- var err = Error(
461
- (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`."
462
- );
463
- err.name = "Invariant Violation";
464
- throw err;
465
- }
466
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
467
- } catch (ex) {
468
- error = ex;
469
- }
470
- if (error && !(error instanceof Error)) {
471
- printWarning(
472
- (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
473
- );
474
- }
475
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
476
- loggedTypeFailures[error.message] = true;
477
- var stack = getStack ? getStack() : "";
478
- printWarning(
479
- "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
480
- );
481
- }
482
- }
483
- }
484
- }
485
- }
486
- checkPropTypes.resetWarningCache = function() {
487
- if (process.env.NODE_ENV !== "production") {
488
- loggedTypeFailures = {};
489
- }
490
- };
491
- module2.exports = checkPropTypes;
492
- }
493
- });
494
-
495
- // ../../node_modules/prop-types/factoryWithTypeCheckers.js
496
- var require_factoryWithTypeCheckers = __commonJS({
497
- "../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
498
- "use strict";
499
- var ReactIs = require_react_is();
500
- var assign = require_object_assign();
501
- var ReactPropTypesSecret = require_ReactPropTypesSecret();
502
- var has = require_has();
503
- var checkPropTypes = require_checkPropTypes();
504
- var printWarning = function() {
505
- };
506
- if (process.env.NODE_ENV !== "production") {
507
- printWarning = function(text) {
508
- var message = "Warning: " + text;
509
- if (typeof console !== "undefined") {
510
- console.error(message);
511
- }
512
- try {
513
- throw new Error(message);
514
- } catch (x) {
515
- }
516
- };
517
- }
518
- function emptyFunctionThatReturnsNull() {
519
- return null;
520
- }
521
- module2.exports = function(isValidElement, throwOnDirectAccess) {
522
- var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
523
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
524
- function getIteratorFn(maybeIterable) {
525
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
526
- if (typeof iteratorFn === "function") {
527
- return iteratorFn;
528
- }
529
- }
530
- var ANONYMOUS = "<<anonymous>>";
531
- var ReactPropTypes = {
532
- array: createPrimitiveTypeChecker("array"),
533
- bigint: createPrimitiveTypeChecker("bigint"),
534
- bool: createPrimitiveTypeChecker("boolean"),
535
- func: createPrimitiveTypeChecker("function"),
536
- number: createPrimitiveTypeChecker("number"),
537
- object: createPrimitiveTypeChecker("object"),
538
- string: createPrimitiveTypeChecker("string"),
539
- symbol: createPrimitiveTypeChecker("symbol"),
540
- any: createAnyTypeChecker(),
541
- arrayOf: createArrayOfTypeChecker,
542
- element: createElementTypeChecker(),
543
- elementType: createElementTypeTypeChecker(),
544
- instanceOf: createInstanceTypeChecker,
545
- node: createNodeChecker(),
546
- objectOf: createObjectOfTypeChecker,
547
- oneOf: createEnumTypeChecker,
548
- oneOfType: createUnionTypeChecker,
549
- shape: createShapeTypeChecker,
550
- exact: createStrictShapeTypeChecker
551
- };
552
- function is(x, y) {
553
- if (x === y) {
554
- return x !== 0 || 1 / x === 1 / y;
555
- } else {
556
- return x !== x && y !== y;
557
- }
558
- }
559
- function PropTypeError(message, data) {
560
- this.message = message;
561
- this.data = data && typeof data === "object" ? data : {};
562
- this.stack = "";
563
- }
564
- PropTypeError.prototype = Error.prototype;
565
- function createChainableTypeChecker(validate) {
566
- if (process.env.NODE_ENV !== "production") {
567
- var manualPropTypeCallCache = {};
568
- var manualPropTypeWarningCount = 0;
569
- }
570
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
571
- componentName = componentName || ANONYMOUS;
572
- propFullName = propFullName || propName;
573
- if (secret !== ReactPropTypesSecret) {
574
- if (throwOnDirectAccess) {
575
- var err = new Error(
576
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
577
- );
578
- err.name = "Invariant Violation";
579
- throw err;
580
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
581
- var cacheKey = componentName + ":" + propName;
582
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
583
- manualPropTypeWarningCount < 3) {
584
- printWarning(
585
- "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
586
- );
587
- manualPropTypeCallCache[cacheKey] = true;
588
- manualPropTypeWarningCount++;
589
- }
590
- }
591
- }
592
- if (props[propName] == null) {
593
- if (isRequired) {
594
- if (props[propName] === null) {
595
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
596
- }
597
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
598
- }
599
- return null;
600
- } else {
601
- return validate(props, propName, componentName, location, propFullName);
602
- }
603
- }
604
- var chainedCheckType = checkType.bind(null, false);
605
- chainedCheckType.isRequired = checkType.bind(null, true);
606
- return chainedCheckType;
607
- }
608
- function createPrimitiveTypeChecker(expectedType) {
609
- function validate(props, propName, componentName, location, propFullName, secret) {
610
- var propValue = props[propName];
611
- var propType = getPropType(propValue);
612
- if (propType !== expectedType) {
613
- var preciseType = getPreciseType(propValue);
614
- return new PropTypeError(
615
- "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
616
- { expectedType }
617
- );
618
- }
619
- return null;
620
- }
621
- return createChainableTypeChecker(validate);
622
- }
623
- function createAnyTypeChecker() {
624
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
625
- }
626
- function createArrayOfTypeChecker(typeChecker) {
627
- function validate(props, propName, componentName, location, propFullName) {
628
- if (typeof typeChecker !== "function") {
629
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
630
- }
631
- var propValue = props[propName];
632
- if (!Array.isArray(propValue)) {
633
- var propType = getPropType(propValue);
634
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
635
- }
636
- for (var i = 0; i < propValue.length; i++) {
637
- var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
638
- if (error instanceof Error) {
639
- return error;
640
- }
641
- }
642
- return null;
643
- }
644
- return createChainableTypeChecker(validate);
645
- }
646
- function createElementTypeChecker() {
647
- function validate(props, propName, componentName, location, propFullName) {
648
- var propValue = props[propName];
649
- if (!isValidElement(propValue)) {
650
- var propType = getPropType(propValue);
651
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
652
- }
653
- return null;
654
- }
655
- return createChainableTypeChecker(validate);
656
- }
657
- function createElementTypeTypeChecker() {
658
- function validate(props, propName, componentName, location, propFullName) {
659
- var propValue = props[propName];
660
- if (!ReactIs.isValidElementType(propValue)) {
661
- var propType = getPropType(propValue);
662
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
663
- }
664
- return null;
665
- }
666
- return createChainableTypeChecker(validate);
667
- }
668
- function createInstanceTypeChecker(expectedClass) {
669
- function validate(props, propName, componentName, location, propFullName) {
670
- if (!(props[propName] instanceof expectedClass)) {
671
- var expectedClassName = expectedClass.name || ANONYMOUS;
672
- var actualClassName = getClassName(props[propName]);
673
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
674
- }
675
- return null;
676
- }
677
- return createChainableTypeChecker(validate);
678
- }
679
- function createEnumTypeChecker(expectedValues) {
680
- if (!Array.isArray(expectedValues)) {
681
- if (process.env.NODE_ENV !== "production") {
682
- if (arguments.length > 1) {
683
- printWarning(
684
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
685
- );
686
- } else {
687
- printWarning("Invalid argument supplied to oneOf, expected an array.");
688
- }
689
- }
690
- return emptyFunctionThatReturnsNull;
691
- }
692
- function validate(props, propName, componentName, location, propFullName) {
693
- var propValue = props[propName];
694
- for (var i = 0; i < expectedValues.length; i++) {
695
- if (is(propValue, expectedValues[i])) {
696
- return null;
697
- }
698
- }
699
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
700
- var type = getPreciseType(value);
701
- if (type === "symbol") {
702
- return String(value);
703
- }
704
- return value;
705
- });
706
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
707
- }
708
- return createChainableTypeChecker(validate);
709
- }
710
- function createObjectOfTypeChecker(typeChecker) {
711
- function validate(props, propName, componentName, location, propFullName) {
712
- if (typeof typeChecker !== "function") {
713
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
714
- }
715
- var propValue = props[propName];
716
- var propType = getPropType(propValue);
717
- if (propType !== "object") {
718
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
719
- }
720
- for (var key in propValue) {
721
- if (has(propValue, key)) {
722
- var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
723
- if (error instanceof Error) {
724
- return error;
725
- }
726
- }
727
- }
728
- return null;
729
- }
730
- return createChainableTypeChecker(validate);
731
- }
732
- function createUnionTypeChecker(arrayOfTypeCheckers) {
733
- if (!Array.isArray(arrayOfTypeCheckers)) {
734
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
735
- return emptyFunctionThatReturnsNull;
736
- }
737
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
738
- var checker = arrayOfTypeCheckers[i];
739
- if (typeof checker !== "function") {
740
- printWarning(
741
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
742
- );
743
- return emptyFunctionThatReturnsNull;
744
- }
745
- }
746
- function validate(props, propName, componentName, location, propFullName) {
747
- var expectedTypes = [];
748
- for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
749
- var checker2 = arrayOfTypeCheckers[i2];
750
- var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
751
- if (checkerResult == null) {
752
- return null;
753
- }
754
- if (checkerResult.data && has(checkerResult.data, "expectedType")) {
755
- expectedTypes.push(checkerResult.data.expectedType);
756
- }
757
- }
758
- var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
759
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
760
- }
761
- return createChainableTypeChecker(validate);
762
- }
763
- function createNodeChecker() {
764
- function validate(props, propName, componentName, location, propFullName) {
765
- if (!isNode(props[propName])) {
766
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
767
- }
768
- return null;
769
- }
770
- return createChainableTypeChecker(validate);
771
- }
772
- function invalidValidatorError(componentName, location, propFullName, key, type) {
773
- return new PropTypeError(
774
- (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
775
- );
776
- }
777
- function createShapeTypeChecker(shapeTypes) {
778
- function validate(props, propName, componentName, location, propFullName) {
779
- var propValue = props[propName];
780
- var propType = getPropType(propValue);
781
- if (propType !== "object") {
782
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
783
- }
784
- for (var key in shapeTypes) {
785
- var checker = shapeTypes[key];
786
- if (typeof checker !== "function") {
787
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
788
- }
789
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
790
- if (error) {
791
- return error;
792
- }
793
- }
794
- return null;
795
- }
796
- return createChainableTypeChecker(validate);
797
- }
798
- function createStrictShapeTypeChecker(shapeTypes) {
799
- function validate(props, propName, componentName, location, propFullName) {
800
- var propValue = props[propName];
801
- var propType = getPropType(propValue);
802
- if (propType !== "object") {
803
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
804
- }
805
- var allKeys = assign({}, props[propName], shapeTypes);
806
- for (var key in allKeys) {
807
- var checker = shapeTypes[key];
808
- if (has(shapeTypes, key) && typeof checker !== "function") {
809
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
810
- }
811
- if (!checker) {
812
- return new PropTypeError(
813
- "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
814
- );
815
- }
816
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
817
- if (error) {
818
- return error;
819
- }
820
- }
821
- return null;
822
- }
823
- return createChainableTypeChecker(validate);
824
- }
825
- function isNode(propValue) {
826
- switch (typeof propValue) {
827
- case "number":
828
- case "string":
829
- case "undefined":
830
- return true;
831
- case "boolean":
832
- return !propValue;
833
- case "object":
834
- if (Array.isArray(propValue)) {
835
- return propValue.every(isNode);
836
- }
837
- if (propValue === null || isValidElement(propValue)) {
838
- return true;
839
- }
840
- var iteratorFn = getIteratorFn(propValue);
841
- if (iteratorFn) {
842
- var iterator = iteratorFn.call(propValue);
843
- var step;
844
- if (iteratorFn !== propValue.entries) {
845
- while (!(step = iterator.next()).done) {
846
- if (!isNode(step.value)) {
847
- return false;
848
- }
849
- }
850
- } else {
851
- while (!(step = iterator.next()).done) {
852
- var entry = step.value;
853
- if (entry) {
854
- if (!isNode(entry[1])) {
855
- return false;
856
- }
857
- }
858
- }
859
- }
860
- } else {
861
- return false;
862
- }
863
- return true;
864
- default:
865
- return false;
866
- }
867
- }
868
- function isSymbol(propType, propValue) {
869
- if (propType === "symbol") {
870
- return true;
871
- }
872
- if (!propValue) {
873
- return false;
874
- }
875
- if (propValue["@@toStringTag"] === "Symbol") {
876
- return true;
877
- }
878
- if (typeof Symbol === "function" && propValue instanceof Symbol) {
879
- return true;
880
- }
881
- return false;
882
- }
883
- function getPropType(propValue) {
884
- var propType = typeof propValue;
885
- if (Array.isArray(propValue)) {
886
- return "array";
887
- }
888
- if (propValue instanceof RegExp) {
889
- return "object";
890
- }
891
- if (isSymbol(propType, propValue)) {
892
- return "symbol";
893
- }
894
- return propType;
895
- }
896
- function getPreciseType(propValue) {
897
- if (typeof propValue === "undefined" || propValue === null) {
898
- return "" + propValue;
899
- }
900
- var propType = getPropType(propValue);
901
- if (propType === "object") {
902
- if (propValue instanceof Date) {
903
- return "date";
904
- } else if (propValue instanceof RegExp) {
905
- return "regexp";
906
- }
907
- }
908
- return propType;
909
- }
910
- function getPostfixForTypeWarning(value) {
911
- var type = getPreciseType(value);
912
- switch (type) {
913
- case "array":
914
- case "object":
915
- return "an " + type;
916
- case "boolean":
917
- case "date":
918
- case "regexp":
919
- return "a " + type;
920
- default:
921
- return type;
922
- }
923
- }
924
- function getClassName(propValue) {
925
- if (!propValue.constructor || !propValue.constructor.name) {
926
- return ANONYMOUS;
927
- }
928
- return propValue.constructor.name;
929
- }
930
- ReactPropTypes.checkPropTypes = checkPropTypes;
931
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
932
- ReactPropTypes.PropTypes = ReactPropTypes;
933
- return ReactPropTypes;
934
- };
935
- }
936
- });
937
-
938
- // ../../node_modules/prop-types/factoryWithThrowingShims.js
939
- var require_factoryWithThrowingShims = __commonJS({
940
- "../../node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
941
- "use strict";
942
- var ReactPropTypesSecret = require_ReactPropTypesSecret();
943
- function emptyFunction() {
944
- }
945
- function emptyFunctionWithReset() {
946
- }
947
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
948
- module2.exports = function() {
949
- function shim(props, propName, componentName, location, propFullName, secret) {
950
- if (secret === ReactPropTypesSecret) {
951
- return;
952
- }
953
- var err = new Error(
954
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
955
- );
956
- err.name = "Invariant Violation";
957
- throw err;
958
- }
959
- ;
960
- shim.isRequired = shim;
961
- function getShim() {
962
- return shim;
963
- }
964
- ;
965
- var ReactPropTypes = {
966
- array: shim,
967
- bigint: shim,
968
- bool: shim,
969
- func: shim,
970
- number: shim,
971
- object: shim,
972
- string: shim,
973
- symbol: shim,
974
- any: shim,
975
- arrayOf: getShim,
976
- element: shim,
977
- elementType: shim,
978
- instanceOf: getShim,
979
- node: shim,
980
- objectOf: getShim,
981
- oneOf: getShim,
982
- oneOfType: getShim,
983
- shape: getShim,
984
- exact: getShim,
985
- checkPropTypes: emptyFunctionWithReset,
986
- resetWarningCache: emptyFunction
987
- };
988
- ReactPropTypes.PropTypes = ReactPropTypes;
989
- return ReactPropTypes;
990
- };
991
- }
992
- });
993
-
994
- // ../../node_modules/prop-types/index.js
995
- var require_prop_types = __commonJS({
996
- "../../node_modules/prop-types/index.js"(exports2, module2) {
997
- "use strict";
998
- if (process.env.NODE_ENV !== "production") {
999
- ReactIs = require_react_is();
1000
- throwOnDirectAccess = true;
1001
- module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1002
- } else {
1003
- module2.exports = require_factoryWithThrowingShims()();
1004
- }
1005
- var ReactIs;
1006
- var throwOnDirectAccess;
1007
- }
1008
- });
1009
-
1010
59
  // src/index.ts
1011
60
  var index_exports = {};
1012
61
  __export(index_exports, {
@@ -1088,537 +137,54 @@ var StepLabel = (_a) => {
1088
137
  StepLabel.muiName = import_StepLabel.default.muiName;
1089
138
 
1090
139
  // src/lib/Stepper.tsx
1091
- var import_react5 = require("react");
140
+ var import_react2 = require("react");
1092
141
  var import_Stepper = __toESM(require("@mui/material/Stepper"));
1093
142
 
1094
- // ../button/src/lib/Button.tsx
1095
- var import_react = require("react");
1096
- var import_Button = __toESM(require("@mui/material/Button"));
1097
- var import_jsx_runtime7 = require("react/jsx-runtime");
1098
- var overrideProps = {
1099
- disableRipple: true,
1100
- disableFocusRipple: true,
1101
- disableTouchRipple: true
1102
- };
1103
- var Button = (0, import_react.forwardRef)((props, ref) => {
1104
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Button.default, __spreadProps(__spreadValues(__spreadValues({}, props), overrideProps), { ref }));
1105
- });
1106
-
1107
- // ../button/src/lib/ButtonGroup.tsx
1108
- var import_ButtonGroup = __toESM(require("@mui/material/ButtonGroup"));
1109
- var import_jsx_runtime8 = require("react/jsx-runtime");
1110
-
1111
143
  // ../button/src/lib/IconButton.tsx
1112
- var import_react2 = require("react");
144
+ var import_react = require("react");
1113
145
  var import_IconButton = __toESM(require("@mui/material/IconButton"));
1114
146
  var import_Tooltip = __toESM(require("@mui/material/Tooltip"));
1115
- var import_jsx_runtime9 = require("react/jsx-runtime");
147
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1116
148
  var outlinedStyles = {
1117
149
  borderRadius: ".25rem",
1118
150
  border: 1
1119
151
  };
1120
- var IconButton = (0, import_react2.forwardRef)((props, ref) => {
152
+ var IconButton = (0, import_react.forwardRef)((props, ref) => {
1121
153
  const _a = props, { title, variant = "text", sx, size = "medium" } = _a, rest = __objRest(_a, ["title", "variant", "sx", "size"]);
1122
154
  const styles = __spreadValues(__spreadValues({}, sx), variant === "outlined" && outlinedStyles);
1123
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Tooltip.default, { title, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_IconButton.default, __spreadProps(__spreadValues({ "aria-label": title, sx: __spreadValues({}, styles) }, rest), { ref, size })) });
1124
- });
1125
-
1126
- // ../button/src/lib/LoadingButton.tsx
1127
- var import_react3 = require("react");
1128
-
1129
- // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1130
- var React = __toESM(require("react"));
1131
- var import_prop_types = __toESM(require_prop_types());
1132
-
1133
- // ../../node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js
1134
- function chainPropTypes(propType1, propType2) {
1135
- if (process.env.NODE_ENV === "production") {
1136
- return () => null;
1137
- }
1138
- return function validate(...args) {
1139
- return propType1(...args) || propType2(...args);
1140
- };
1141
- }
1142
-
1143
- // ../../node_modules/@mui/utils/esm/resolveProps/resolveProps.js
1144
- function resolveProps(defaultProps, props) {
1145
- const output = __spreadValues({}, props);
1146
- for (const key in defaultProps) {
1147
- if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
1148
- const propName = key;
1149
- if (propName === "components" || propName === "slots") {
1150
- output[propName] = __spreadValues(__spreadValues({}, defaultProps[propName]), output[propName]);
1151
- } else if (propName === "componentsProps" || propName === "slotProps") {
1152
- const defaultSlotProps = defaultProps[propName];
1153
- const slotProps = props[propName];
1154
- if (!slotProps) {
1155
- output[propName] = defaultSlotProps || {};
1156
- } else if (!defaultSlotProps) {
1157
- output[propName] = slotProps;
1158
- } else {
1159
- output[propName] = __spreadValues({}, slotProps);
1160
- for (const slotKey in defaultSlotProps) {
1161
- if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
1162
- const slotPropName = slotKey;
1163
- output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
1164
- }
1165
- }
1166
- }
1167
- } else if (output[propName] === void 0) {
1168
- output[propName] = defaultProps[propName];
1169
- }
1170
- }
1171
- }
1172
- return output;
1173
- }
1174
-
1175
- // ../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js
1176
- function composeClasses(slots, getUtilityClass, classes = void 0) {
1177
- const output = {};
1178
- for (const slotName in slots) {
1179
- const slot = slots[slotName];
1180
- let buffer = "";
1181
- let start = true;
1182
- for (let i = 0; i < slot.length; i += 1) {
1183
- const value = slot[i];
1184
- if (value) {
1185
- buffer += (start === true ? "" : " ") + getUtilityClass(value);
1186
- start = false;
1187
- if (classes && classes[value]) {
1188
- buffer += " " + classes[value];
1189
- }
1190
- }
1191
- }
1192
- output[slotName] = buffer;
1193
- }
1194
- return output;
1195
- }
1196
-
1197
- // ../../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js
1198
- var defaultGenerator = (componentName) => componentName;
1199
- var createClassNameGenerator = () => {
1200
- let generate = defaultGenerator;
1201
- return {
1202
- configure(generator) {
1203
- generate = generator;
1204
- },
1205
- generate(componentName) {
1206
- return generate(componentName);
1207
- },
1208
- reset() {
1209
- generate = defaultGenerator;
1210
- }
1211
- };
1212
- };
1213
- var ClassNameGenerator = createClassNameGenerator();
1214
- var ClassNameGenerator_default = ClassNameGenerator;
1215
-
1216
- // ../../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js
1217
- var globalStateClasses = {
1218
- active: "active",
1219
- checked: "checked",
1220
- completed: "completed",
1221
- disabled: "disabled",
1222
- error: "error",
1223
- expanded: "expanded",
1224
- focused: "focused",
1225
- focusVisible: "focusVisible",
1226
- open: "open",
1227
- readOnly: "readOnly",
1228
- required: "required",
1229
- selected: "selected"
1230
- };
1231
- function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") {
1232
- const globalStateClass = globalStateClasses[slot];
1233
- return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator_default.generate(componentName)}-${slot}`;
1234
- }
1235
-
1236
- // ../../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js
1237
- function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") {
1238
- const result = {};
1239
- slots.forEach((slot) => {
1240
- result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
1241
- });
1242
- return result;
1243
- }
1244
-
1245
- // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1246
- var import_utils3 = require("@mui/material/utils");
1247
- var import_DefaultPropsProvider = require("@mui/material/DefaultPropsProvider");
1248
- var import_Button2 = __toESM(require("@mui/material/Button"));
1249
- var import_ButtonGroup2 = require("@mui/material/ButtonGroup");
1250
- var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"));
1251
-
1252
- // ../../node_modules/@mui/lab/zero-styled/index.js
1253
- var import_styles = require("@mui/material/styles");
1254
-
1255
- // ../../node_modules/@mui/lab/LoadingButton/loadingButtonClasses.js
1256
- function getLoadingButtonUtilityClass(slot) {
1257
- return generateUtilityClass("MuiLoadingButton", slot);
1258
- }
1259
- var loadingButtonClasses = generateUtilityClasses("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]);
1260
- var loadingButtonClasses_default = loadingButtonClasses;
1261
-
1262
- // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1263
- var import_jsx_runtime10 = require("react/jsx-runtime");
1264
- var useUtilityClasses = (ownerState) => {
1265
- const {
1266
- loading,
1267
- loadingPosition,
1268
- classes
1269
- } = ownerState;
1270
- const slots = {
1271
- root: ["root", loading && "loading"],
1272
- label: ["label"],
1273
- startIcon: [loading && `startIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
1274
- endIcon: [loading && `endIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
1275
- loadingIndicator: ["loadingIndicator", loading && `loadingIndicator${(0, import_utils3.capitalize)(loadingPosition)}`]
1276
- };
1277
- const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
1278
- return __spreadValues(__spreadValues({}, classes), composedClasses);
1279
- };
1280
- var rootShouldForwardProp = (prop) => prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as" && prop !== "classes";
1281
- var LoadingButtonRoot = (0, import_styles.styled)(import_Button2.default, {
1282
- shouldForwardProp: (prop) => rootShouldForwardProp(prop) || prop === "classes",
1283
- name: "MuiLoadingButton",
1284
- slot: "Root",
1285
- overridesResolver: (props, styles) => {
1286
- return [styles.root, styles.startIconLoadingStart && {
1287
- [`& .${loadingButtonClasses_default.startIconLoadingStart}`]: styles.startIconLoadingStart
1288
- }, styles.endIconLoadingEnd && {
1289
- [`& .${loadingButtonClasses_default.endIconLoadingEnd}`]: styles.endIconLoadingEnd
1290
- }];
1291
- }
1292
- })((0, import_utils3.unstable_memoTheme)(({
1293
- theme
1294
- }) => ({
1295
- display: "inline-flex",
1296
- [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1297
- transition: theme.transitions.create(["opacity"], {
1298
- duration: theme.transitions.duration.short
1299
- }),
1300
- opacity: 0
1301
- },
1302
- variants: [{
1303
- props: {
1304
- loadingPosition: "center"
1305
- },
1306
- style: {
1307
- transition: theme.transitions.create(["background-color", "box-shadow", "border-color"], {
1308
- duration: theme.transitions.duration.short
1309
- }),
1310
- [`&.${loadingButtonClasses_default.loading}`]: {
1311
- color: "transparent"
1312
- }
1313
- }
1314
- }, {
1315
- props: ({
1316
- ownerState
1317
- }) => ownerState.loadingPosition === "start" && ownerState.fullWidth,
1318
- style: {
1319
- [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1320
- transition: theme.transitions.create(["opacity"], {
1321
- duration: theme.transitions.duration.short
1322
- }),
1323
- opacity: 0,
1324
- marginRight: -8
1325
- }
1326
- }
1327
- }, {
1328
- props: ({
1329
- ownerState
1330
- }) => ownerState.loadingPosition === "end" && ownerState.fullWidth,
1331
- style: {
1332
- [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1333
- transition: theme.transitions.create(["opacity"], {
1334
- duration: theme.transitions.duration.short
1335
- }),
1336
- opacity: 0,
1337
- marginLeft: -8
1338
- }
1339
- }
1340
- }]
1341
- })));
1342
- var LoadingButtonLoadingIndicator = (0, import_styles.styled)("span", {
1343
- name: "MuiLoadingButton",
1344
- slot: "LoadingIndicator",
1345
- overridesResolver: (props, styles) => {
1346
- const {
1347
- ownerState
1348
- } = props;
1349
- return [styles.loadingIndicator, styles[`loadingIndicator${(0, import_utils3.capitalize)(ownerState.loadingPosition)}`]];
1350
- }
1351
- })((0, import_utils3.unstable_memoTheme)(({
1352
- theme
1353
- }) => ({
1354
- position: "absolute",
1355
- visibility: "visible",
1356
- display: "flex",
1357
- variants: [{
1358
- props: {
1359
- loadingPosition: "start",
1360
- size: "small"
1361
- },
1362
- style: {
1363
- left: 10
1364
- }
1365
- }, {
1366
- props: ({
1367
- loadingPosition,
1368
- ownerState
1369
- }) => loadingPosition === "start" && ownerState.size !== "small",
1370
- style: {
1371
- left: 14
1372
- }
1373
- }, {
1374
- props: {
1375
- variant: "text",
1376
- loadingPosition: "start"
1377
- },
1378
- style: {
1379
- left: 6
1380
- }
1381
- }, {
1382
- props: {
1383
- loadingPosition: "center"
1384
- },
1385
- style: {
1386
- left: "50%",
1387
- transform: "translate(-50%)",
1388
- color: (theme.vars || theme).palette.action.disabled
1389
- }
1390
- }, {
1391
- props: {
1392
- loadingPosition: "end",
1393
- size: "small"
1394
- },
1395
- style: {
1396
- right: 10
1397
- }
1398
- }, {
1399
- props: ({
1400
- loadingPosition,
1401
- ownerState
1402
- }) => loadingPosition === "end" && ownerState.size !== "small",
1403
- style: {
1404
- right: 14
1405
- }
1406
- }, {
1407
- props: {
1408
- variant: "text",
1409
- loadingPosition: "end"
1410
- },
1411
- style: {
1412
- right: 6
1413
- }
1414
- }, {
1415
- props: ({
1416
- ownerState
1417
- }) => ownerState.loadingPosition === "start" && ownerState.fullWidth,
1418
- style: {
1419
- position: "relative",
1420
- left: -10
1421
- }
1422
- }, {
1423
- props: ({
1424
- ownerState
1425
- }) => ownerState.loadingPosition === "end" && ownerState.fullWidth,
1426
- style: {
1427
- position: "relative",
1428
- right: -10
1429
- }
1430
- }]
1431
- })));
1432
- var LoadingButtonLabel = (0, import_styles.styled)("span", {
1433
- name: "MuiLoadingButton",
1434
- slot: "Label",
1435
- overridesResolver: (props, styles) => {
1436
- return [styles.label];
1437
- }
1438
- })({
1439
- display: "inherit",
1440
- alignItems: "inherit",
1441
- justifyContent: "inherit"
1442
- });
1443
- var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inProps, ref) {
1444
- const contextProps = React.useContext(import_ButtonGroup2.ButtonGroupContext);
1445
- const resolvedProps = resolveProps(contextProps, inProps);
1446
- const props = (0, import_DefaultPropsProvider.useDefaultProps)({
1447
- props: resolvedProps,
1448
- name: "MuiLoadingButton"
1449
- });
1450
- const _a = props, {
1451
- children,
1452
- disabled = false,
1453
- id: idProp,
1454
- loading = false,
1455
- loadingIndicator: loadingIndicatorProp,
1456
- loadingPosition = "center",
1457
- variant = "text"
1458
- } = _a, other = __objRest(_a, [
1459
- "children",
1460
- "disabled",
1461
- "id",
1462
- "loading",
1463
- "loadingIndicator",
1464
- "loadingPosition",
1465
- "variant"
1466
- ]);
1467
- const id = (0, import_utils3.unstable_useId)(idProp);
1468
- const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_CircularProgress.default, {
1469
- "aria-labelledby": id,
1470
- color: "inherit",
1471
- size: 16
1472
- });
1473
- const ownerState = __spreadProps(__spreadValues({}, props), {
1474
- disabled,
1475
- loading,
1476
- loadingIndicator,
1477
- loadingPosition,
1478
- variant
1479
- });
1480
- const classes = useUtilityClasses(ownerState);
1481
- const loadingButtonLoadingIndicator = loading ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLoadingIndicator, {
1482
- className: classes.loadingIndicator,
1483
- ownerState,
1484
- children: loadingIndicator
1485
- }) : null;
1486
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(LoadingButtonRoot, __spreadProps(__spreadValues({
1487
- disabled: disabled || loading,
1488
- id,
1489
- ref
1490
- }, other), {
1491
- variant,
1492
- classes,
1493
- ownerState,
1494
- children: [ownerState.loadingPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLabel, {
1495
- className: classes.label,
1496
- children
1497
- }) : loadingButtonLoadingIndicator, ownerState.loadingPosition === "end" ? loadingButtonLoadingIndicator : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(LoadingButtonLabel, {
1498
- className: classes.label,
1499
- children
1500
- })]
1501
- }));
1502
- });
1503
- process.env.NODE_ENV !== "production" ? LoadingButton.propTypes = {
1504
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1505
- // │ These PropTypes are generated from the TypeScript type definitions. │
1506
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1507
- // └─────────────────────────────────────────────────────────────────────┘
1508
- /**
1509
- * The content of the component.
1510
- */
1511
- children: import_prop_types.default.node,
1512
- /**
1513
- * Override or extend the styles applied to the component.
1514
- */
1515
- classes: import_prop_types.default.object,
1516
- /**
1517
- * If `true`, the component is disabled.
1518
- * @default false
1519
- */
1520
- disabled: import_prop_types.default.bool,
1521
- /**
1522
- * @ignore
1523
- */
1524
- id: import_prop_types.default.string,
1525
- /**
1526
- * If `true`, the loading indicator is shown and the button becomes disabled.
1527
- * @default false
1528
- */
1529
- loading: import_prop_types.default.bool,
1530
- /**
1531
- * Element placed before the children if the button is in loading state.
1532
- * The node should contain an element with `role="progressbar"` with an accessible name.
1533
- * By default we render a `CircularProgress` that is labelled by the button itself.
1534
- * @default <CircularProgress color="inherit" size={16} />
1535
- */
1536
- loadingIndicator: import_prop_types.default.node,
1537
- /**
1538
- * The loading indicator can be positioned on the start, end, or the center of the button.
1539
- * @default 'center'
1540
- */
1541
- loadingPosition: chainPropTypes(import_prop_types.default.oneOf(["start", "end", "center"]), (props) => {
1542
- if (props.loadingPosition === "start" && !props.startIcon) {
1543
- return new Error(`MUI: The loadingPosition="start" should be used in combination with startIcon.`);
1544
- }
1545
- if (props.loadingPosition === "end" && !props.endIcon) {
1546
- return new Error(`MUI: The loadingPosition="end" should be used in combination with endIcon.`);
1547
- }
1548
- return null;
1549
- }),
1550
- /**
1551
- * The system prop that allows defining system overrides as well as additional CSS styles.
1552
- */
1553
- sx: import_prop_types.default.oneOfType([import_prop_types.default.arrayOf(import_prop_types.default.oneOfType([import_prop_types.default.func, import_prop_types.default.object, import_prop_types.default.bool])), import_prop_types.default.func, import_prop_types.default.object]),
1554
- /**
1555
- * The variant to use.
1556
- * @default 'text'
1557
- */
1558
- variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf(["contained", "outlined", "text"]), import_prop_types.default.string])
1559
- } : void 0;
1560
- var LoadingButton_default = LoadingButton;
1561
-
1562
- // ../button/src/lib/LoadingButton.tsx
1563
- var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"));
1564
- var import_jsx_runtime11 = require("react/jsx-runtime");
1565
- var LoadingIndicator = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_CircularProgress2.default, { color: "inherit", size: 16, "aria-label": "loading" });
1566
- var LoadingButton3 = (0, import_react3.forwardRef)((props, ref) => {
1567
- const _a = props, { children, loading } = _a, rest = __objRest(_a, ["children", "loading"]);
1568
- const loadingPosition = rest.startIcon ? "start" : "end";
1569
- const nonLoadingStyling = rest.startIcon || rest.endIcon || loading ? {} : { padding: "0 .7rem" };
1570
- const endIcon = rest.startIcon ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: loading ? { padding: "0 .7rem" } : {} });
1571
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1572
- LoadingButton_default,
1573
- __spreadProps(__spreadValues({
1574
- endIcon,
1575
- loadingPosition,
1576
- loading,
1577
- disableRipple: true,
1578
- loadingIndicator: LoadingIndicator
1579
- }, rest), {
1580
- ref,
1581
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { style: nonLoadingStyling, children })
1582
- })
1583
- );
155
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Tooltip.default, { title, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_IconButton.default, __spreadProps(__spreadValues({ "aria-label": title, sx: __spreadValues({}, styles) }, rest), { ref, size })) });
1584
156
  });
1585
157
 
1586
158
  // src/lib/Stepper.tsx
1587
159
  var import_mui_icon2 = require("@availity/mui-icon");
1588
160
 
1589
- // ../layout/src/lib/Box.tsx
1590
- var import_react4 = require("react");
1591
- var import_Box = __toESM(require("@mui/material/Box"));
1592
- var import_jsx_runtime12 = require("react/jsx-runtime");
1593
- var Box = (0, import_react4.forwardRef)((props, ref) => {
1594
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Box.default, __spreadProps(__spreadValues({}, props), { ref }));
1595
- });
1596
-
1597
- // ../layout/src/lib/Container.tsx
1598
- var import_Container = __toESM(require("@mui/material/Container"));
1599
- var import_jsx_runtime13 = require("react/jsx-runtime");
1600
-
1601
161
  // ../layout/src/lib/Grid.tsx
1602
162
  var import_Grid2 = __toESM(require("@mui/material/Grid2"));
1603
- var import_jsx_runtime14 = require("react/jsx-runtime");
163
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1604
164
  var Grid = (args) => {
1605
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Grid2.default, __spreadValues({}, args));
165
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_Grid2.default, __spreadValues({}, args));
1606
166
  };
1607
167
 
1608
- // ../layout/src/lib/Stack.tsx
1609
- var import_Stack = __toESM(require("@mui/material/Stack"));
1610
- var import_jsx_runtime15 = require("react/jsx-runtime");
1611
-
1612
168
  // src/lib/Stepper.tsx
1613
- var import_styles2 = require("@mui/material/styles");
1614
- var import_jsx_runtime16 = require("react/jsx-runtime");
169
+ var import_styles = require("@mui/material/styles");
170
+ var import_jsx_runtime9 = require("react/jsx-runtime");
171
+ var HiddenConnectorStepper = (0, import_styles.styled)(import_Stepper.default, {
172
+ name: "MuiStepper",
173
+ slot: "AvHideConnector",
174
+ overridesResolver: (props, styles) => styles.avHideConnector
175
+ })({
176
+ ".MuiStepLabel-root::before, .MuiStepLabel-root::after, .MuiStepConnector-root": {
177
+ display: "none"
178
+ }
179
+ });
1615
180
  var Stepper = (_a) => {
1616
181
  var _b = _a, { children, connector, orientation, scrollButtons } = _b, rest = __objRest(_b, ["children", "connector", "orientation", "scrollButtons"]);
1617
182
  const alternativeLabel = orientation !== "vertical";
1618
- const stepperRef = (0, import_react5.useRef)(null);
1619
- const [showLeftButton, setShowLeftButton] = (0, import_react5.useState)(true);
1620
- const [showRightButton, setShowRightButton] = (0, import_react5.useState)(true);
1621
- (0, import_react5.useEffect)(() => {
183
+ const Stepper2 = connector === null ? HiddenConnectorStepper : import_Stepper.default;
184
+ const stepperRef = (0, import_react2.useRef)(null);
185
+ const [showLeftButton, setShowLeftButton] = (0, import_react2.useState)(true);
186
+ const [showRightButton, setShowRightButton] = (0, import_react2.useState)(true);
187
+ (0, import_react2.useEffect)(() => {
1622
188
  const stepper = stepperRef.current;
1623
189
  const handleScroll = () => {
1624
190
  if (stepper) {
@@ -1643,13 +209,13 @@ var Stepper = (_a) => {
1643
209
  };
1644
210
  }, []);
1645
211
  const showScrollButtons = scrollButtons && orientation !== "vertical";
1646
- const ScrollIconContainer = (0, import_styles2.styled)("div")({
212
+ const ScrollIconContainer = (0, import_styles.styled)("div")({
1647
213
  width: "50px",
1648
214
  flexShrink: 0,
1649
215
  paddingTop: "15px"
1650
216
  });
1651
- return showScrollButtons ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Grid, { container: true, direction: "row", justifyContent: "space-between", wrap: "nowrap", children: [
1652
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ScrollIconContainer, { style: { paddingRight: "8px" }, children: showLeftButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
217
+ return showScrollButtons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Grid, { container: true, direction: "row", justifyContent: "space-between", wrap: "nowrap", children: [
218
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ScrollIconContainer, { style: { paddingRight: "8px" }, children: showLeftButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1653
219
  IconButton,
1654
220
  {
1655
221
  title: "Previous",
@@ -1658,11 +224,11 @@ var Stepper = (_a) => {
1658
224
  var _a2;
1659
225
  return (_a2 = stepperRef.current) == null ? void 0 : _a2.scrollTo({ left: 0, behavior: "smooth" });
1660
226
  },
1661
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_mui_icon2.NavigatePreviousIcon, { fontSize: "xsmall" })
227
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_mui_icon2.NavigatePreviousIcon, { fontSize: "xsmall" })
1662
228
  }
1663
229
  ) }),
1664
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1665
- import_Stepper.default,
230
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
231
+ Stepper2,
1666
232
  __spreadProps(__spreadValues({
1667
233
  "aria-label": "multi-step process",
1668
234
  role: "region"
@@ -1675,7 +241,7 @@ var Stepper = (_a) => {
1675
241
  tabIndex: 0
1676
242
  })
1677
243
  ),
1678
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
244
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1679
245
  IconButton,
1680
246
  {
1681
247
  title: "Next",
@@ -1687,11 +253,11 @@ var Stepper = (_a) => {
1687
253
  behavior: "smooth"
1688
254
  });
1689
255
  },
1690
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_mui_icon2.NavigateNextIcon, { fontSize: "xsmall" })
256
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_mui_icon2.NavigateNextIcon, { fontSize: "xsmall" })
1691
257
  }
1692
258
  ) })
1693
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1694
- import_Stepper.default,
259
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
260
+ Stepper2,
1695
261
  __spreadProps(__spreadValues({
1696
262
  "aria-label": "multi-step process",
1697
263
  role: "region"
@@ -1714,32 +280,3 @@ var Stepper = (_a) => {
1714
280
  StepLabel,
1715
281
  Stepper
1716
282
  });
1717
- /*! Bundled license information:
1718
-
1719
- react-is/cjs/react-is.production.min.js:
1720
- (** @license React v16.13.1
1721
- * react-is.production.min.js
1722
- *
1723
- * Copyright (c) Facebook, Inc. and its affiliates.
1724
- *
1725
- * This source code is licensed under the MIT license found in the
1726
- * LICENSE file in the root directory of this source tree.
1727
- *)
1728
-
1729
- react-is/cjs/react-is.development.js:
1730
- (** @license React v16.13.1
1731
- * react-is.development.js
1732
- *
1733
- * Copyright (c) Facebook, Inc. and its affiliates.
1734
- *
1735
- * This source code is licensed under the MIT license found in the
1736
- * LICENSE file in the root directory of this source tree.
1737
- *)
1738
-
1739
- object-assign/index.js:
1740
- (*
1741
- object-assign
1742
- (c) Sindre Sorhus
1743
- @license MIT
1744
- *)
1745
- */