@availity/element 0.1.3 → 0.2.1

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
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
11
+ var __commonJS = (cb, mod) => function __require() {
12
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
+ };
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
6
18
  var __copyProps = (to, from, except, desc) => {
7
19
  if (from && typeof from === "object" || typeof from === "function") {
8
20
  for (let key of __getOwnPropNames(from))
@@ -12,11 +24,1313 @@ var __copyProps = (to, from, except, desc) => {
12
24
  return to;
13
25
  };
14
26
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
15
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
32
 
33
+ // ../../node_modules/tsup/assets/cjs_shims.js
34
+ var init_cjs_shims = __esm({
35
+ "../../node_modules/tsup/assets/cjs_shims.js"() {
36
+ }
37
+ });
38
+
39
+ // ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
40
+ var require_react_is_production_min = __commonJS({
41
+ "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
42
+ "use strict";
43
+ init_cjs_shims();
44
+ var b = "function" === typeof Symbol && Symbol.for;
45
+ var c = b ? Symbol.for("react.element") : 60103;
46
+ var d = b ? Symbol.for("react.portal") : 60106;
47
+ var e = b ? Symbol.for("react.fragment") : 60107;
48
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
49
+ var g = b ? Symbol.for("react.profiler") : 60114;
50
+ var h = b ? Symbol.for("react.provider") : 60109;
51
+ var k = b ? Symbol.for("react.context") : 60110;
52
+ var l = b ? Symbol.for("react.async_mode") : 60111;
53
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
54
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
55
+ var p = b ? Symbol.for("react.suspense") : 60113;
56
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
57
+ var r = b ? Symbol.for("react.memo") : 60115;
58
+ var t = b ? Symbol.for("react.lazy") : 60116;
59
+ var v = b ? Symbol.for("react.block") : 60121;
60
+ var w = b ? Symbol.for("react.fundamental") : 60117;
61
+ var x = b ? Symbol.for("react.responder") : 60118;
62
+ var y = b ? Symbol.for("react.scope") : 60119;
63
+ function z(a) {
64
+ if ("object" === typeof a && null !== a) {
65
+ var u = a.$$typeof;
66
+ switch (u) {
67
+ case c:
68
+ switch (a = a.type, a) {
69
+ case l:
70
+ case m:
71
+ case e:
72
+ case g:
73
+ case f:
74
+ case p:
75
+ return a;
76
+ default:
77
+ switch (a = a && a.$$typeof, a) {
78
+ case k:
79
+ case n:
80
+ case t:
81
+ case r:
82
+ case h:
83
+ return a;
84
+ default:
85
+ return u;
86
+ }
87
+ }
88
+ case d:
89
+ return u;
90
+ }
91
+ }
92
+ }
93
+ function A(a) {
94
+ return z(a) === m;
95
+ }
96
+ exports.AsyncMode = l;
97
+ exports.ConcurrentMode = m;
98
+ exports.ContextConsumer = k;
99
+ exports.ContextProvider = h;
100
+ exports.Element = c;
101
+ exports.ForwardRef = n;
102
+ exports.Fragment = e;
103
+ exports.Lazy = t;
104
+ exports.Memo = r;
105
+ exports.Portal = d;
106
+ exports.Profiler = g;
107
+ exports.StrictMode = f;
108
+ exports.Suspense = p;
109
+ exports.isAsyncMode = function(a) {
110
+ return A(a) || z(a) === l;
111
+ };
112
+ exports.isConcurrentMode = A;
113
+ exports.isContextConsumer = function(a) {
114
+ return z(a) === k;
115
+ };
116
+ exports.isContextProvider = function(a) {
117
+ return z(a) === h;
118
+ };
119
+ exports.isElement = function(a) {
120
+ return "object" === typeof a && null !== a && a.$$typeof === c;
121
+ };
122
+ exports.isForwardRef = function(a) {
123
+ return z(a) === n;
124
+ };
125
+ exports.isFragment = function(a) {
126
+ return z(a) === e;
127
+ };
128
+ exports.isLazy = function(a) {
129
+ return z(a) === t;
130
+ };
131
+ exports.isMemo = function(a) {
132
+ return z(a) === r;
133
+ };
134
+ exports.isPortal = function(a) {
135
+ return z(a) === d;
136
+ };
137
+ exports.isProfiler = function(a) {
138
+ return z(a) === g;
139
+ };
140
+ exports.isStrictMode = function(a) {
141
+ return z(a) === f;
142
+ };
143
+ exports.isSuspense = function(a) {
144
+ return z(a) === p;
145
+ };
146
+ exports.isValidElementType = function(a) {
147
+ 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);
148
+ };
149
+ exports.typeOf = z;
150
+ }
151
+ });
152
+
153
+ // ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
154
+ var require_react_is_development = __commonJS({
155
+ "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports) {
156
+ "use strict";
157
+ init_cjs_shims();
158
+ if (process.env.NODE_ENV !== "production") {
159
+ (function() {
160
+ "use strict";
161
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
162
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
163
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
164
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
165
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
166
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
167
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
168
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
169
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
170
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
171
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
172
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
173
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
174
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
175
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
176
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
177
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
178
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
179
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
180
+ function isValidElementType(type) {
181
+ return typeof type === "string" || typeof type === "function" || 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);
182
+ }
183
+ function typeOf(object) {
184
+ if (typeof object === "object" && object !== null) {
185
+ var $$typeof = object.$$typeof;
186
+ switch ($$typeof) {
187
+ case REACT_ELEMENT_TYPE:
188
+ var type = object.type;
189
+ switch (type) {
190
+ case REACT_ASYNC_MODE_TYPE:
191
+ case REACT_CONCURRENT_MODE_TYPE:
192
+ case REACT_FRAGMENT_TYPE:
193
+ case REACT_PROFILER_TYPE:
194
+ case REACT_STRICT_MODE_TYPE:
195
+ case REACT_SUSPENSE_TYPE:
196
+ return type;
197
+ default:
198
+ var $$typeofType = type && type.$$typeof;
199
+ switch ($$typeofType) {
200
+ case REACT_CONTEXT_TYPE:
201
+ case REACT_FORWARD_REF_TYPE:
202
+ case REACT_LAZY_TYPE:
203
+ case REACT_MEMO_TYPE:
204
+ case REACT_PROVIDER_TYPE:
205
+ return $$typeofType;
206
+ default:
207
+ return $$typeof;
208
+ }
209
+ }
210
+ case REACT_PORTAL_TYPE:
211
+ return $$typeof;
212
+ }
213
+ }
214
+ return void 0;
215
+ }
216
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
217
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
218
+ var ContextConsumer = REACT_CONTEXT_TYPE;
219
+ var ContextProvider = REACT_PROVIDER_TYPE;
220
+ var Element = REACT_ELEMENT_TYPE;
221
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
222
+ var Fragment = REACT_FRAGMENT_TYPE;
223
+ var Lazy = REACT_LAZY_TYPE;
224
+ var Memo = REACT_MEMO_TYPE;
225
+ var Portal = REACT_PORTAL_TYPE;
226
+ var Profiler = REACT_PROFILER_TYPE;
227
+ var StrictMode = REACT_STRICT_MODE_TYPE;
228
+ var Suspense = REACT_SUSPENSE_TYPE;
229
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
230
+ function isAsyncMode(object) {
231
+ {
232
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
233
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
234
+ 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.");
235
+ }
236
+ }
237
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
238
+ }
239
+ function isConcurrentMode(object) {
240
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
241
+ }
242
+ function isContextConsumer(object) {
243
+ return typeOf(object) === REACT_CONTEXT_TYPE;
244
+ }
245
+ function isContextProvider(object) {
246
+ return typeOf(object) === REACT_PROVIDER_TYPE;
247
+ }
248
+ function isElement(object) {
249
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
250
+ }
251
+ function isForwardRef(object) {
252
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
253
+ }
254
+ function isFragment(object) {
255
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
256
+ }
257
+ function isLazy(object) {
258
+ return typeOf(object) === REACT_LAZY_TYPE;
259
+ }
260
+ function isMemo(object) {
261
+ return typeOf(object) === REACT_MEMO_TYPE;
262
+ }
263
+ function isPortal(object) {
264
+ return typeOf(object) === REACT_PORTAL_TYPE;
265
+ }
266
+ function isProfiler(object) {
267
+ return typeOf(object) === REACT_PROFILER_TYPE;
268
+ }
269
+ function isStrictMode(object) {
270
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
271
+ }
272
+ function isSuspense(object) {
273
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
274
+ }
275
+ exports.AsyncMode = AsyncMode;
276
+ exports.ConcurrentMode = ConcurrentMode;
277
+ exports.ContextConsumer = ContextConsumer;
278
+ exports.ContextProvider = ContextProvider;
279
+ exports.Element = Element;
280
+ exports.ForwardRef = ForwardRef;
281
+ exports.Fragment = Fragment;
282
+ exports.Lazy = Lazy;
283
+ exports.Memo = Memo;
284
+ exports.Portal = Portal;
285
+ exports.Profiler = Profiler;
286
+ exports.StrictMode = StrictMode;
287
+ exports.Suspense = Suspense;
288
+ exports.isAsyncMode = isAsyncMode;
289
+ exports.isConcurrentMode = isConcurrentMode;
290
+ exports.isContextConsumer = isContextConsumer;
291
+ exports.isContextProvider = isContextProvider;
292
+ exports.isElement = isElement;
293
+ exports.isForwardRef = isForwardRef;
294
+ exports.isFragment = isFragment;
295
+ exports.isLazy = isLazy;
296
+ exports.isMemo = isMemo;
297
+ exports.isPortal = isPortal;
298
+ exports.isProfiler = isProfiler;
299
+ exports.isStrictMode = isStrictMode;
300
+ exports.isSuspense = isSuspense;
301
+ exports.isValidElementType = isValidElementType;
302
+ exports.typeOf = typeOf;
303
+ })();
304
+ }
305
+ }
306
+ });
307
+
308
+ // ../../node_modules/prop-types/node_modules/react-is/index.js
309
+ var require_react_is = __commonJS({
310
+ "../../node_modules/prop-types/node_modules/react-is/index.js"(exports, module2) {
311
+ "use strict";
312
+ init_cjs_shims();
313
+ if (process.env.NODE_ENV === "production") {
314
+ module2.exports = require_react_is_production_min();
315
+ } else {
316
+ module2.exports = require_react_is_development();
317
+ }
318
+ }
319
+ });
320
+
321
+ // ../../node_modules/object-assign/index.js
322
+ var require_object_assign = __commonJS({
323
+ "../../node_modules/object-assign/index.js"(exports, module2) {
324
+ "use strict";
325
+ init_cjs_shims();
326
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
327
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
328
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
329
+ function toObject(val) {
330
+ if (val === null || val === void 0) {
331
+ throw new TypeError("Object.assign cannot be called with null or undefined");
332
+ }
333
+ return Object(val);
334
+ }
335
+ function shouldUseNative() {
336
+ try {
337
+ if (!Object.assign) {
338
+ return false;
339
+ }
340
+ var test1 = new String("abc");
341
+ test1[5] = "de";
342
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
343
+ return false;
344
+ }
345
+ var test2 = {};
346
+ for (var i = 0; i < 10; i++) {
347
+ test2["_" + String.fromCharCode(i)] = i;
348
+ }
349
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
350
+ return test2[n];
351
+ });
352
+ if (order2.join("") !== "0123456789") {
353
+ return false;
354
+ }
355
+ var test3 = {};
356
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
357
+ test3[letter] = letter;
358
+ });
359
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
360
+ return false;
361
+ }
362
+ return true;
363
+ } catch (err) {
364
+ return false;
365
+ }
366
+ }
367
+ module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
368
+ var from;
369
+ var to = toObject(target);
370
+ var symbols;
371
+ for (var s = 1; s < arguments.length; s++) {
372
+ from = Object(arguments[s]);
373
+ for (var key in from) {
374
+ if (hasOwnProperty.call(from, key)) {
375
+ to[key] = from[key];
376
+ }
377
+ }
378
+ if (getOwnPropertySymbols) {
379
+ symbols = getOwnPropertySymbols(from);
380
+ for (var i = 0; i < symbols.length; i++) {
381
+ if (propIsEnumerable.call(from, symbols[i])) {
382
+ to[symbols[i]] = from[symbols[i]];
383
+ }
384
+ }
385
+ }
386
+ }
387
+ return to;
388
+ };
389
+ }
390
+ });
391
+
392
+ // ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
393
+ var require_ReactPropTypesSecret = __commonJS({
394
+ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module2) {
395
+ "use strict";
396
+ init_cjs_shims();
397
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
398
+ module2.exports = ReactPropTypesSecret;
399
+ }
400
+ });
401
+
402
+ // ../../node_modules/prop-types/lib/has.js
403
+ var require_has = __commonJS({
404
+ "../../node_modules/prop-types/lib/has.js"(exports, module2) {
405
+ init_cjs_shims();
406
+ module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
407
+ }
408
+ });
409
+
410
+ // ../../node_modules/prop-types/checkPropTypes.js
411
+ var require_checkPropTypes = __commonJS({
412
+ "../../node_modules/prop-types/checkPropTypes.js"(exports, module2) {
413
+ "use strict";
414
+ init_cjs_shims();
415
+ var printWarning = function() {
416
+ };
417
+ if (process.env.NODE_ENV !== "production") {
418
+ ReactPropTypesSecret = require_ReactPropTypesSecret();
419
+ loggedTypeFailures = {};
420
+ has = require_has();
421
+ printWarning = function(text) {
422
+ var message = "Warning: " + text;
423
+ if (typeof console !== "undefined") {
424
+ console.error(message);
425
+ }
426
+ try {
427
+ throw new Error(message);
428
+ } catch (x) {
429
+ }
430
+ };
431
+ }
432
+ var ReactPropTypesSecret;
433
+ var loggedTypeFailures;
434
+ var has;
435
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
436
+ if (process.env.NODE_ENV !== "production") {
437
+ for (var typeSpecName in typeSpecs) {
438
+ if (has(typeSpecs, typeSpecName)) {
439
+ var error;
440
+ try {
441
+ if (typeof typeSpecs[typeSpecName] !== "function") {
442
+ var err = Error(
443
+ (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`."
444
+ );
445
+ err.name = "Invariant Violation";
446
+ throw err;
447
+ }
448
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
449
+ } catch (ex) {
450
+ error = ex;
451
+ }
452
+ if (error && !(error instanceof Error)) {
453
+ printWarning(
454
+ (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)."
455
+ );
456
+ }
457
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
458
+ loggedTypeFailures[error.message] = true;
459
+ var stack = getStack ? getStack() : "";
460
+ printWarning(
461
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
462
+ );
463
+ }
464
+ }
465
+ }
466
+ }
467
+ }
468
+ checkPropTypes.resetWarningCache = function() {
469
+ if (process.env.NODE_ENV !== "production") {
470
+ loggedTypeFailures = {};
471
+ }
472
+ };
473
+ module2.exports = checkPropTypes;
474
+ }
475
+ });
476
+
477
+ // ../../node_modules/prop-types/factoryWithTypeCheckers.js
478
+ var require_factoryWithTypeCheckers = __commonJS({
479
+ "../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module2) {
480
+ "use strict";
481
+ init_cjs_shims();
482
+ var ReactIs = require_react_is();
483
+ var assign = require_object_assign();
484
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
485
+ var has = require_has();
486
+ var checkPropTypes = require_checkPropTypes();
487
+ var printWarning = function() {
488
+ };
489
+ if (process.env.NODE_ENV !== "production") {
490
+ printWarning = function(text) {
491
+ var message = "Warning: " + text;
492
+ if (typeof console !== "undefined") {
493
+ console.error(message);
494
+ }
495
+ try {
496
+ throw new Error(message);
497
+ } catch (x) {
498
+ }
499
+ };
500
+ }
501
+ function emptyFunctionThatReturnsNull() {
502
+ return null;
503
+ }
504
+ module2.exports = function(isValidElement, throwOnDirectAccess) {
505
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
506
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
507
+ function getIteratorFn(maybeIterable) {
508
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
509
+ if (typeof iteratorFn === "function") {
510
+ return iteratorFn;
511
+ }
512
+ }
513
+ var ANONYMOUS = "<<anonymous>>";
514
+ var ReactPropTypes = {
515
+ array: createPrimitiveTypeChecker("array"),
516
+ bigint: createPrimitiveTypeChecker("bigint"),
517
+ bool: createPrimitiveTypeChecker("boolean"),
518
+ func: createPrimitiveTypeChecker("function"),
519
+ number: createPrimitiveTypeChecker("number"),
520
+ object: createPrimitiveTypeChecker("object"),
521
+ string: createPrimitiveTypeChecker("string"),
522
+ symbol: createPrimitiveTypeChecker("symbol"),
523
+ any: createAnyTypeChecker(),
524
+ arrayOf: createArrayOfTypeChecker,
525
+ element: createElementTypeChecker(),
526
+ elementType: createElementTypeTypeChecker(),
527
+ instanceOf: createInstanceTypeChecker,
528
+ node: createNodeChecker(),
529
+ objectOf: createObjectOfTypeChecker,
530
+ oneOf: createEnumTypeChecker,
531
+ oneOfType: createUnionTypeChecker,
532
+ shape: createShapeTypeChecker,
533
+ exact: createStrictShapeTypeChecker
534
+ };
535
+ function is(x, y) {
536
+ if (x === y) {
537
+ return x !== 0 || 1 / x === 1 / y;
538
+ } else {
539
+ return x !== x && y !== y;
540
+ }
541
+ }
542
+ function PropTypeError(message, data) {
543
+ this.message = message;
544
+ this.data = data && typeof data === "object" ? data : {};
545
+ this.stack = "";
546
+ }
547
+ PropTypeError.prototype = Error.prototype;
548
+ function createChainableTypeChecker(validate) {
549
+ if (process.env.NODE_ENV !== "production") {
550
+ var manualPropTypeCallCache = {};
551
+ var manualPropTypeWarningCount = 0;
552
+ }
553
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
554
+ componentName = componentName || ANONYMOUS;
555
+ propFullName = propFullName || propName;
556
+ if (secret !== ReactPropTypesSecret) {
557
+ if (throwOnDirectAccess) {
558
+ var err = new Error(
559
+ "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"
560
+ );
561
+ err.name = "Invariant Violation";
562
+ throw err;
563
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
564
+ var cacheKey = componentName + ":" + propName;
565
+ if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
566
+ printWarning(
567
+ "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."
568
+ );
569
+ manualPropTypeCallCache[cacheKey] = true;
570
+ manualPropTypeWarningCount++;
571
+ }
572
+ }
573
+ }
574
+ if (props[propName] == null) {
575
+ if (isRequired) {
576
+ if (props[propName] === null) {
577
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
578
+ }
579
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
580
+ }
581
+ return null;
582
+ } else {
583
+ return validate(props, propName, componentName, location, propFullName);
584
+ }
585
+ }
586
+ var chainedCheckType = checkType.bind(null, false);
587
+ chainedCheckType.isRequired = checkType.bind(null, true);
588
+ return chainedCheckType;
589
+ }
590
+ function createPrimitiveTypeChecker(expectedType) {
591
+ function validate(props, propName, componentName, location, propFullName, secret) {
592
+ var propValue = props[propName];
593
+ var propType = getPropType(propValue);
594
+ if (propType !== expectedType) {
595
+ var preciseType = getPreciseType(propValue);
596
+ return new PropTypeError(
597
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
598
+ { expectedType }
599
+ );
600
+ }
601
+ return null;
602
+ }
603
+ return createChainableTypeChecker(validate);
604
+ }
605
+ function createAnyTypeChecker() {
606
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
607
+ }
608
+ function createArrayOfTypeChecker(typeChecker) {
609
+ function validate(props, propName, componentName, location, propFullName) {
610
+ if (typeof typeChecker !== "function") {
611
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
612
+ }
613
+ var propValue = props[propName];
614
+ if (!Array.isArray(propValue)) {
615
+ var propType = getPropType(propValue);
616
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
617
+ }
618
+ for (var i = 0; i < propValue.length; i++) {
619
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
620
+ if (error instanceof Error) {
621
+ return error;
622
+ }
623
+ }
624
+ return null;
625
+ }
626
+ return createChainableTypeChecker(validate);
627
+ }
628
+ function createElementTypeChecker() {
629
+ function validate(props, propName, componentName, location, propFullName) {
630
+ var propValue = props[propName];
631
+ if (!isValidElement(propValue)) {
632
+ var propType = getPropType(propValue);
633
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
634
+ }
635
+ return null;
636
+ }
637
+ return createChainableTypeChecker(validate);
638
+ }
639
+ function createElementTypeTypeChecker() {
640
+ function validate(props, propName, componentName, location, propFullName) {
641
+ var propValue = props[propName];
642
+ if (!ReactIs.isValidElementType(propValue)) {
643
+ var propType = getPropType(propValue);
644
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
645
+ }
646
+ return null;
647
+ }
648
+ return createChainableTypeChecker(validate);
649
+ }
650
+ function createInstanceTypeChecker(expectedClass) {
651
+ function validate(props, propName, componentName, location, propFullName) {
652
+ if (!(props[propName] instanceof expectedClass)) {
653
+ var expectedClassName = expectedClass.name || ANONYMOUS;
654
+ var actualClassName = getClassName(props[propName]);
655
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
656
+ }
657
+ return null;
658
+ }
659
+ return createChainableTypeChecker(validate);
660
+ }
661
+ function createEnumTypeChecker(expectedValues) {
662
+ if (!Array.isArray(expectedValues)) {
663
+ if (process.env.NODE_ENV !== "production") {
664
+ if (arguments.length > 1) {
665
+ printWarning(
666
+ "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])."
667
+ );
668
+ } else {
669
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
670
+ }
671
+ }
672
+ return emptyFunctionThatReturnsNull;
673
+ }
674
+ function validate(props, propName, componentName, location, propFullName) {
675
+ var propValue = props[propName];
676
+ for (var i = 0; i < expectedValues.length; i++) {
677
+ if (is(propValue, expectedValues[i])) {
678
+ return null;
679
+ }
680
+ }
681
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
682
+ var type = getPreciseType(value);
683
+ if (type === "symbol") {
684
+ return String(value);
685
+ }
686
+ return value;
687
+ });
688
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
689
+ }
690
+ return createChainableTypeChecker(validate);
691
+ }
692
+ function createObjectOfTypeChecker(typeChecker) {
693
+ function validate(props, propName, componentName, location, propFullName) {
694
+ if (typeof typeChecker !== "function") {
695
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
696
+ }
697
+ var propValue = props[propName];
698
+ var propType = getPropType(propValue);
699
+ if (propType !== "object") {
700
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
701
+ }
702
+ for (var key in propValue) {
703
+ if (has(propValue, key)) {
704
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
705
+ if (error instanceof Error) {
706
+ return error;
707
+ }
708
+ }
709
+ }
710
+ return null;
711
+ }
712
+ return createChainableTypeChecker(validate);
713
+ }
714
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
715
+ if (!Array.isArray(arrayOfTypeCheckers)) {
716
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
717
+ return emptyFunctionThatReturnsNull;
718
+ }
719
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
720
+ var checker = arrayOfTypeCheckers[i];
721
+ if (typeof checker !== "function") {
722
+ printWarning(
723
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
724
+ );
725
+ return emptyFunctionThatReturnsNull;
726
+ }
727
+ }
728
+ function validate(props, propName, componentName, location, propFullName) {
729
+ var expectedTypes = [];
730
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
731
+ var checker2 = arrayOfTypeCheckers[i2];
732
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
733
+ if (checkerResult == null) {
734
+ return null;
735
+ }
736
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) {
737
+ expectedTypes.push(checkerResult.data.expectedType);
738
+ }
739
+ }
740
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
741
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
742
+ }
743
+ return createChainableTypeChecker(validate);
744
+ }
745
+ function createNodeChecker() {
746
+ function validate(props, propName, componentName, location, propFullName) {
747
+ if (!isNode(props[propName])) {
748
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
749
+ }
750
+ return null;
751
+ }
752
+ return createChainableTypeChecker(validate);
753
+ }
754
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
755
+ return new PropTypeError(
756
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
757
+ );
758
+ }
759
+ function createShapeTypeChecker(shapeTypes) {
760
+ function validate(props, propName, componentName, location, propFullName) {
761
+ var propValue = props[propName];
762
+ var propType = getPropType(propValue);
763
+ if (propType !== "object") {
764
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
765
+ }
766
+ for (var key in shapeTypes) {
767
+ var checker = shapeTypes[key];
768
+ if (typeof checker !== "function") {
769
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
770
+ }
771
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
772
+ if (error) {
773
+ return error;
774
+ }
775
+ }
776
+ return null;
777
+ }
778
+ return createChainableTypeChecker(validate);
779
+ }
780
+ function createStrictShapeTypeChecker(shapeTypes) {
781
+ function validate(props, propName, componentName, location, propFullName) {
782
+ var propValue = props[propName];
783
+ var propType = getPropType(propValue);
784
+ if (propType !== "object") {
785
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
786
+ }
787
+ var allKeys = assign({}, props[propName], shapeTypes);
788
+ for (var key in allKeys) {
789
+ var checker = shapeTypes[key];
790
+ if (has(shapeTypes, key) && typeof checker !== "function") {
791
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
792
+ }
793
+ if (!checker) {
794
+ return new PropTypeError(
795
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
796
+ );
797
+ }
798
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
799
+ if (error) {
800
+ return error;
801
+ }
802
+ }
803
+ return null;
804
+ }
805
+ return createChainableTypeChecker(validate);
806
+ }
807
+ function isNode(propValue) {
808
+ switch (typeof propValue) {
809
+ case "number":
810
+ case "string":
811
+ case "undefined":
812
+ return true;
813
+ case "boolean":
814
+ return !propValue;
815
+ case "object":
816
+ if (Array.isArray(propValue)) {
817
+ return propValue.every(isNode);
818
+ }
819
+ if (propValue === null || isValidElement(propValue)) {
820
+ return true;
821
+ }
822
+ var iteratorFn = getIteratorFn(propValue);
823
+ if (iteratorFn) {
824
+ var iterator = iteratorFn.call(propValue);
825
+ var step;
826
+ if (iteratorFn !== propValue.entries) {
827
+ while (!(step = iterator.next()).done) {
828
+ if (!isNode(step.value)) {
829
+ return false;
830
+ }
831
+ }
832
+ } else {
833
+ while (!(step = iterator.next()).done) {
834
+ var entry = step.value;
835
+ if (entry) {
836
+ if (!isNode(entry[1])) {
837
+ return false;
838
+ }
839
+ }
840
+ }
841
+ }
842
+ } else {
843
+ return false;
844
+ }
845
+ return true;
846
+ default:
847
+ return false;
848
+ }
849
+ }
850
+ function isSymbol(propType, propValue) {
851
+ if (propType === "symbol") {
852
+ return true;
853
+ }
854
+ if (!propValue) {
855
+ return false;
856
+ }
857
+ if (propValue["@@toStringTag"] === "Symbol") {
858
+ return true;
859
+ }
860
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
861
+ return true;
862
+ }
863
+ return false;
864
+ }
865
+ function getPropType(propValue) {
866
+ var propType = typeof propValue;
867
+ if (Array.isArray(propValue)) {
868
+ return "array";
869
+ }
870
+ if (propValue instanceof RegExp) {
871
+ return "object";
872
+ }
873
+ if (isSymbol(propType, propValue)) {
874
+ return "symbol";
875
+ }
876
+ return propType;
877
+ }
878
+ function getPreciseType(propValue) {
879
+ if (typeof propValue === "undefined" || propValue === null) {
880
+ return "" + propValue;
881
+ }
882
+ var propType = getPropType(propValue);
883
+ if (propType === "object") {
884
+ if (propValue instanceof Date) {
885
+ return "date";
886
+ } else if (propValue instanceof RegExp) {
887
+ return "regexp";
888
+ }
889
+ }
890
+ return propType;
891
+ }
892
+ function getPostfixForTypeWarning(value) {
893
+ var type = getPreciseType(value);
894
+ switch (type) {
895
+ case "array":
896
+ case "object":
897
+ return "an " + type;
898
+ case "boolean":
899
+ case "date":
900
+ case "regexp":
901
+ return "a " + type;
902
+ default:
903
+ return type;
904
+ }
905
+ }
906
+ function getClassName(propValue) {
907
+ if (!propValue.constructor || !propValue.constructor.name) {
908
+ return ANONYMOUS;
909
+ }
910
+ return propValue.constructor.name;
911
+ }
912
+ ReactPropTypes.checkPropTypes = checkPropTypes;
913
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
914
+ ReactPropTypes.PropTypes = ReactPropTypes;
915
+ return ReactPropTypes;
916
+ };
917
+ }
918
+ });
919
+
920
+ // ../../node_modules/prop-types/factoryWithThrowingShims.js
921
+ var require_factoryWithThrowingShims = __commonJS({
922
+ "../../node_modules/prop-types/factoryWithThrowingShims.js"(exports, module2) {
923
+ "use strict";
924
+ init_cjs_shims();
925
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
926
+ function emptyFunction() {
927
+ }
928
+ function emptyFunctionWithReset() {
929
+ }
930
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
931
+ module2.exports = function() {
932
+ function shim(props, propName, componentName, location, propFullName, secret) {
933
+ if (secret === ReactPropTypesSecret) {
934
+ return;
935
+ }
936
+ var err = new Error(
937
+ "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"
938
+ );
939
+ err.name = "Invariant Violation";
940
+ throw err;
941
+ }
942
+ ;
943
+ shim.isRequired = shim;
944
+ function getShim() {
945
+ return shim;
946
+ }
947
+ ;
948
+ var ReactPropTypes = {
949
+ array: shim,
950
+ bigint: shim,
951
+ bool: shim,
952
+ func: shim,
953
+ number: shim,
954
+ object: shim,
955
+ string: shim,
956
+ symbol: shim,
957
+ any: shim,
958
+ arrayOf: getShim,
959
+ element: shim,
960
+ elementType: shim,
961
+ instanceOf: getShim,
962
+ node: shim,
963
+ objectOf: getShim,
964
+ oneOf: getShim,
965
+ oneOfType: getShim,
966
+ shape: getShim,
967
+ exact: getShim,
968
+ checkPropTypes: emptyFunctionWithReset,
969
+ resetWarningCache: emptyFunction
970
+ };
971
+ ReactPropTypes.PropTypes = ReactPropTypes;
972
+ return ReactPropTypes;
973
+ };
974
+ }
975
+ });
976
+
977
+ // ../../node_modules/prop-types/index.js
978
+ var require_prop_types = __commonJS({
979
+ "../../node_modules/prop-types/index.js"(exports, module2) {
980
+ init_cjs_shims();
981
+ if (process.env.NODE_ENV !== "production") {
982
+ ReactIs = require_react_is();
983
+ throwOnDirectAccess = true;
984
+ module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
985
+ } else {
986
+ module2.exports = require_factoryWithThrowingShims()();
987
+ }
988
+ var ReactIs;
989
+ var throwOnDirectAccess;
990
+ }
991
+ });
992
+
17
993
  // src/index.ts
18
994
  var src_exports = {};
995
+ __export(src_exports, {
996
+ Button: () => Button2,
997
+ LoadingButton: () => LoadingButton3
998
+ });
19
999
  module.exports = __toCommonJS(src_exports);
1000
+ init_cjs_shims();
20
1001
  __reExport(src_exports, require("@availity/mui-alert"), module.exports);
21
1002
  __reExport(src_exports, require("@availity/mui-badge"), module.exports);
1003
+
1004
+ // ../button/src/index.ts
1005
+ init_cjs_shims();
1006
+
1007
+ // ../button/src/lib/Button.tsx
1008
+ init_cjs_shims();
1009
+ var import_material = require("@mui/material");
1010
+
1011
+ // ../../node_modules/@mui/lab/index.js
1012
+ init_cjs_shims();
1013
+
1014
+ // ../../node_modules/@mui/lab/node_modules/@babel/runtime/helpers/esm/extends.js
1015
+ init_cjs_shims();
1016
+ function _extends() {
1017
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
1018
+ for (var i = 1; i < arguments.length; i++) {
1019
+ var source = arguments[i];
1020
+ for (var key in source) {
1021
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1022
+ target[key] = source[key];
1023
+ }
1024
+ }
1025
+ }
1026
+ return target;
1027
+ };
1028
+ return _extends.apply(this, arguments);
1029
+ }
1030
+
1031
+ // ../../node_modules/@mui/lab/LoadingButton/index.js
1032
+ init_cjs_shims();
1033
+
1034
+ // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1035
+ init_cjs_shims();
1036
+
1037
+ // ../../node_modules/@mui/lab/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1038
+ init_cjs_shims();
1039
+ function _objectWithoutPropertiesLoose(source, excluded) {
1040
+ if (source == null)
1041
+ return {};
1042
+ var target = {};
1043
+ var sourceKeys = Object.keys(source);
1044
+ var key, i;
1045
+ for (i = 0; i < sourceKeys.length; i++) {
1046
+ key = sourceKeys[i];
1047
+ if (excluded.indexOf(key) >= 0)
1048
+ continue;
1049
+ target[key] = source[key];
1050
+ }
1051
+ return target;
1052
+ }
1053
+
1054
+ // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1055
+ var React = __toESM(require("react"));
1056
+ var import_prop_types = __toESM(require_prop_types());
1057
+
1058
+ // ../../node_modules/@mui/utils/esm/index.js
1059
+ init_cjs_shims();
1060
+
1061
+ // ../../node_modules/@mui/utils/esm/chainPropTypes.js
1062
+ init_cjs_shims();
1063
+ function chainPropTypes(propType1, propType2) {
1064
+ if (process.env.NODE_ENV === "production") {
1065
+ return () => null;
1066
+ }
1067
+ return function validate(...args) {
1068
+ return propType1(...args) || propType2(...args);
1069
+ };
1070
+ }
1071
+
1072
+ // ../../node_modules/@mui/utils/esm/composeClasses/index.js
1073
+ init_cjs_shims();
1074
+
1075
+ // ../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js
1076
+ init_cjs_shims();
1077
+ function composeClasses(slots, getUtilityClass, classes) {
1078
+ const output = {};
1079
+ Object.keys(slots).forEach(
1080
+ (slot) => {
1081
+ output[slot] = slots[slot].reduce((acc, key) => {
1082
+ if (key) {
1083
+ acc.push(getUtilityClass(key));
1084
+ if (classes && classes[key]) {
1085
+ acc.push(classes[key]);
1086
+ }
1087
+ }
1088
+ return acc;
1089
+ }, []).join(" ");
1090
+ }
1091
+ );
1092
+ return output;
1093
+ }
1094
+
1095
+ // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1096
+ var import_utils3 = require("@mui/material/utils");
1097
+
1098
+ // ../../node_modules/@mui/base/index.js
1099
+ init_cjs_shims();
1100
+
1101
+ // ../../node_modules/@mui/base/composeClasses/index.js
1102
+ init_cjs_shims();
1103
+
1104
+ // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1105
+ var import_styles = require("@mui/material/styles");
1106
+ var import_Button = __toESM(require("@mui/material/Button"));
1107
+ var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"));
1108
+
1109
+ // ../../node_modules/@mui/lab/LoadingButton/loadingButtonClasses.js
1110
+ init_cjs_shims();
1111
+ var import_generateUtilityClass = __toESM(require("@mui/material/generateUtilityClass"));
1112
+ var import_generateUtilityClasses = __toESM(require("@mui/material/generateUtilityClasses"));
1113
+ function getLoadingButtonUtilityClass(slot) {
1114
+ return (0, import_generateUtilityClass.default)("MuiLoadingButton", slot);
1115
+ }
1116
+ var loadingButtonClasses = (0, import_generateUtilityClasses.default)("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]);
1117
+ var loadingButtonClasses_default = loadingButtonClasses;
1118
+
1119
+ // ../../node_modules/@mui/lab/LoadingButton/LoadingButton.js
1120
+ var import_jsx_runtime = require("react/jsx-runtime");
1121
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1122
+ var _excluded = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"];
1123
+ var useUtilityClasses = (ownerState) => {
1124
+ const {
1125
+ loading,
1126
+ loadingPosition,
1127
+ classes
1128
+ } = ownerState;
1129
+ const slots = {
1130
+ root: ["root", loading && "loading"],
1131
+ startIcon: [loading && `startIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
1132
+ endIcon: [loading && `endIconLoading${(0, import_utils3.capitalize)(loadingPosition)}`],
1133
+ loadingIndicator: ["loadingIndicator", loading && `loadingIndicator${(0, import_utils3.capitalize)(loadingPosition)}`]
1134
+ };
1135
+ const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
1136
+ return _extends({}, classes, composedClasses);
1137
+ };
1138
+ var rootShouldForwardProp = (prop) => prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as" && prop !== "classes";
1139
+ var LoadingButtonRoot = (0, import_styles.styled)(import_Button.default, {
1140
+ shouldForwardProp: (prop) => rootShouldForwardProp(prop) || prop === "classes",
1141
+ name: "MuiLoadingButton",
1142
+ slot: "Root",
1143
+ overridesResolver: (props, styles) => {
1144
+ return [styles.root, styles.startIconLoadingStart && {
1145
+ [`& .${loadingButtonClasses_default.startIconLoadingStart}`]: styles.startIconLoadingStart
1146
+ }, styles.endIconLoadingEnd && {
1147
+ [`& .${loadingButtonClasses_default.endIconLoadingEnd}`]: styles.endIconLoadingEnd
1148
+ }];
1149
+ }
1150
+ })(({
1151
+ ownerState,
1152
+ theme
1153
+ }) => _extends({
1154
+ [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1155
+ transition: theme.transitions.create(["opacity"], {
1156
+ duration: theme.transitions.duration.short
1157
+ }),
1158
+ opacity: 0
1159
+ }
1160
+ }, ownerState.loadingPosition === "center" && {
1161
+ transition: theme.transitions.create(["background-color", "box-shadow", "border-color"], {
1162
+ duration: theme.transitions.duration.short
1163
+ }),
1164
+ [`&.${loadingButtonClasses_default.loading}`]: {
1165
+ color: "transparent"
1166
+ }
1167
+ }, ownerState.loadingPosition === "start" && ownerState.fullWidth && {
1168
+ [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1169
+ transition: theme.transitions.create(["opacity"], {
1170
+ duration: theme.transitions.duration.short
1171
+ }),
1172
+ opacity: 0,
1173
+ marginRight: -8
1174
+ }
1175
+ }, ownerState.loadingPosition === "end" && ownerState.fullWidth && {
1176
+ [`& .${loadingButtonClasses_default.startIconLoadingStart}, & .${loadingButtonClasses_default.endIconLoadingEnd}`]: {
1177
+ transition: theme.transitions.create(["opacity"], {
1178
+ duration: theme.transitions.duration.short
1179
+ }),
1180
+ opacity: 0,
1181
+ marginLeft: -8
1182
+ }
1183
+ }));
1184
+ var LoadingButtonLoadingIndicator = (0, import_styles.styled)("div", {
1185
+ name: "MuiLoadingButton",
1186
+ slot: "LoadingIndicator",
1187
+ overridesResolver: (props, styles) => {
1188
+ const {
1189
+ ownerState
1190
+ } = props;
1191
+ return [styles.loadingIndicator, styles[`loadingIndicator${(0, import_utils3.capitalize)(ownerState.loadingPosition)}`]];
1192
+ }
1193
+ })(({
1194
+ theme,
1195
+ ownerState
1196
+ }) => _extends({
1197
+ position: "absolute",
1198
+ visibility: "visible",
1199
+ display: "flex"
1200
+ }, ownerState.loadingPosition === "start" && (ownerState.variant === "outlined" || ownerState.variant === "contained") && {
1201
+ left: ownerState.size === "small" ? 10 : 14
1202
+ }, ownerState.loadingPosition === "start" && ownerState.variant === "text" && {
1203
+ left: 6
1204
+ }, ownerState.loadingPosition === "center" && {
1205
+ left: "50%",
1206
+ transform: "translate(-50%)",
1207
+ color: (theme.vars || theme).palette.action.disabled
1208
+ }, ownerState.loadingPosition === "end" && (ownerState.variant === "outlined" || ownerState.variant === "contained") && {
1209
+ right: ownerState.size === "small" ? 10 : 14
1210
+ }, ownerState.loadingPosition === "end" && ownerState.variant === "text" && {
1211
+ right: 6
1212
+ }, ownerState.loadingPosition === "start" && ownerState.fullWidth && {
1213
+ position: "relative",
1214
+ left: -10
1215
+ }, ownerState.loadingPosition === "end" && ownerState.fullWidth && {
1216
+ position: "relative",
1217
+ right: -10
1218
+ }));
1219
+ var LoadingButton = /* @__PURE__ */ React.forwardRef(function LoadingButton2(inProps, ref) {
1220
+ const props = (0, import_styles.useThemeProps)({
1221
+ props: inProps,
1222
+ name: "MuiLoadingButton"
1223
+ });
1224
+ const {
1225
+ children,
1226
+ disabled = false,
1227
+ id: idProp,
1228
+ loading = false,
1229
+ loadingIndicator: loadingIndicatorProp,
1230
+ loadingPosition = "center",
1231
+ variant = "text"
1232
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded);
1233
+ const id = (0, import_utils3.unstable_useId)(idProp);
1234
+ const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CircularProgress.default, {
1235
+ "aria-labelledby": id,
1236
+ color: "inherit",
1237
+ size: 16
1238
+ });
1239
+ const ownerState = _extends({}, props, {
1240
+ disabled,
1241
+ loading,
1242
+ loadingIndicator,
1243
+ loadingPosition,
1244
+ variant
1245
+ });
1246
+ const classes = useUtilityClasses(ownerState);
1247
+ const loadingButtonLoadingIndicator = loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingButtonLoadingIndicator, {
1248
+ className: classes.loadingIndicator,
1249
+ ownerState,
1250
+ children: loadingIndicator
1251
+ }) : null;
1252
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(LoadingButtonRoot, _extends({
1253
+ disabled: disabled || loading,
1254
+ id,
1255
+ ref
1256
+ }, other, {
1257
+ variant,
1258
+ classes,
1259
+ ownerState,
1260
+ children: [ownerState.loadingPosition === "end" ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === "end" ? loadingButtonLoadingIndicator : children]
1261
+ }));
1262
+ });
1263
+ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes = {
1264
+ children: import_prop_types.default.node,
1265
+ classes: import_prop_types.default.object,
1266
+ disabled: import_prop_types.default.bool,
1267
+ id: import_prop_types.default.string,
1268
+ loading: import_prop_types.default.bool,
1269
+ loadingIndicator: import_prop_types.default.node,
1270
+ loadingPosition: chainPropTypes(import_prop_types.default.oneOf(["start", "end", "center"]), (props) => {
1271
+ if (props.loadingPosition === "start" && !props.startIcon) {
1272
+ return new Error(`MUI: The loadingPosition="start" should be used in combination with startIcon.`);
1273
+ }
1274
+ if (props.loadingPosition === "end" && !props.endIcon) {
1275
+ return new Error(`MUI: The loadingPosition="end" should be used in combination with endIcon.`);
1276
+ }
1277
+ return null;
1278
+ }),
1279
+ 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]),
1280
+ variant: import_prop_types.default.oneOfType([import_prop_types.default.oneOf(["contained", "outlined", "text"]), import_prop_types.default.string])
1281
+ } : void 0;
1282
+ var LoadingButton_default = LoadingButton;
1283
+
1284
+ // ../button/src/lib/Button.tsx
1285
+ var import_jsx_runtime = require("react/jsx-runtime");
1286
+ var Button2 = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, {
1287
+ ...rest,
1288
+ children
1289
+ });
1290
+ var LoadingButton3 = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingButton_default, {
1291
+ ...rest,
1292
+ children
1293
+ });
1294
+
1295
+ // src/index.ts
22
1296
  __reExport(src_exports, require("@availity/theme-provider"), module.exports);
1297
+ // Annotate the CommonJS export names for ESM import in node:
1298
+ 0 && (module.exports = {
1299
+ Button,
1300
+ LoadingButton
1301
+ });
1302
+ /*
1303
+ object-assign
1304
+ (c) Sindre Sorhus
1305
+ @license MIT
1306
+ */
1307
+ /**
1308
+ * @mui/base v5.0.0-alpha.119
1309
+ *
1310
+ * @license MIT
1311
+ * This source code is licensed under the MIT license found in the
1312
+ * LICENSE file in the root directory of this source tree.
1313
+ */
1314
+ /**
1315
+ * @mui/lab v5.0.0-alpha.121
1316
+ *
1317
+ * @license MIT
1318
+ * This source code is licensed under the MIT license found in the
1319
+ * LICENSE file in the root directory of this source tree.
1320
+ */
1321
+ /** @license React v16.13.1
1322
+ * react-is.development.js
1323
+ *
1324
+ * Copyright (c) Facebook, Inc. and its affiliates.
1325
+ *
1326
+ * This source code is licensed under the MIT license found in the
1327
+ * LICENSE file in the root directory of this source tree.
1328
+ */
1329
+ /** @license React v16.13.1
1330
+ * react-is.production.min.js
1331
+ *
1332
+ * Copyright (c) Facebook, Inc. and its affiliates.
1333
+ *
1334
+ * This source code is licensed under the MIT license found in the
1335
+ * LICENSE file in the root directory of this source tree.
1336
+ */