@northlight/ui 2.13.0 → 2.14.0
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/es/northlight.d.ts +57 -11
- package/dist/es/northlight.js +1144 -994
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +1142 -991
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.northlight = {}, global.react, global.React, global.chakraReactSelect, global.ramda, global.focus, global.reactHookForm, global.system, global.tokens, global.icons, global.joi, global.checkbox$1, global.radio$1, global.utils, global.radio, global.checkbox, global.datepicker, global.datepicker$1, global.date, global.button, global.i18n, global.calendar$1, global.calendar, global.reactRouterDom, global.clickable, global.framerMotion, global.core, global.utilities, global.sortable, global.modifiers, global.reactWindow, global.AutoSizer, global.AvatarEditor, global.themeTools, global.reactNumberFormat, global.InputMask));
|
|
5
5
|
})(this, (function (exports, react, React, chakraReactSelect, ramda, focus, reactHookForm, system, tokens, icons, joi, checkbox$1, radio$1, utils, radio, checkbox, datepicker, datepicker$1, date, button, i18n, calendar$1, calendar, reactRouterDom, clickable, framerMotion, core, utilities, sortable, modifiers, reactWindow, AutoSizer, AvatarEditor, themeTools, reactNumberFormat, InputMask) { 'use strict';
|
|
6
6
|
|
|
7
|
+
var __defProp$2c = Object.defineProperty;
|
|
8
|
+
var __getOwnPropSymbols$2c = Object.getOwnPropertySymbols;
|
|
9
|
+
var __hasOwnProp$2c = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum$2c = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp$2c = (obj, key, value) => key in obj ? __defProp$2c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues$2c = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp$2c.call(b, prop))
|
|
15
|
+
__defNormalProp$2c(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols$2c)
|
|
17
|
+
for (var prop of __getOwnPropSymbols$2c(b)) {
|
|
18
|
+
if (__propIsEnum$2c.call(b, prop))
|
|
19
|
+
__defNormalProp$2c(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
const Accordion = (props) => /* @__PURE__ */ React.createElement(react.Accordion, __spreadValues$2c({}, props));
|
|
24
|
+
|
|
7
25
|
var __defProp$2b = Object.defineProperty;
|
|
8
26
|
var __getOwnPropSymbols$2b = Object.getOwnPropertySymbols;
|
|
9
27
|
var __hasOwnProp$2b = Object.prototype.hasOwnProperty;
|
|
@@ -20,7 +38,7 @@
|
|
|
20
38
|
}
|
|
21
39
|
return a;
|
|
22
40
|
};
|
|
23
|
-
const
|
|
41
|
+
const AccordionButton = (props) => /* @__PURE__ */ React.createElement(react.AccordionButton, __spreadValues$2b({}, props));
|
|
24
42
|
|
|
25
43
|
var __defProp$2a = Object.defineProperty;
|
|
26
44
|
var __getOwnPropSymbols$2a = Object.getOwnPropertySymbols;
|
|
@@ -38,7 +56,7 @@
|
|
|
38
56
|
}
|
|
39
57
|
return a;
|
|
40
58
|
};
|
|
41
|
-
const
|
|
59
|
+
const AccordionPanel = (props) => /* @__PURE__ */ React.createElement(react.AccordionPanel, __spreadValues$2a({}, props));
|
|
42
60
|
|
|
43
61
|
var __defProp$29 = Object.defineProperty;
|
|
44
62
|
var __getOwnPropSymbols$29 = Object.getOwnPropertySymbols;
|
|
@@ -56,25 +74,7 @@
|
|
|
56
74
|
}
|
|
57
75
|
return a;
|
|
58
76
|
};
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
var __defProp$28 = Object.defineProperty;
|
|
62
|
-
var __getOwnPropSymbols$28 = Object.getOwnPropertySymbols;
|
|
63
|
-
var __hasOwnProp$28 = Object.prototype.hasOwnProperty;
|
|
64
|
-
var __propIsEnum$28 = Object.prototype.propertyIsEnumerable;
|
|
65
|
-
var __defNormalProp$28 = (obj, key, value) => key in obj ? __defProp$28(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
66
|
-
var __spreadValues$28 = (a, b) => {
|
|
67
|
-
for (var prop in b || (b = {}))
|
|
68
|
-
if (__hasOwnProp$28.call(b, prop))
|
|
69
|
-
__defNormalProp$28(a, prop, b[prop]);
|
|
70
|
-
if (__getOwnPropSymbols$28)
|
|
71
|
-
for (var prop of __getOwnPropSymbols$28(b)) {
|
|
72
|
-
if (__propIsEnum$28.call(b, prop))
|
|
73
|
-
__defNormalProp$28(a, prop, b[prop]);
|
|
74
|
-
}
|
|
75
|
-
return a;
|
|
76
|
-
};
|
|
77
|
-
const AccordionItem = (props) => /* @__PURE__ */ React.createElement(react.AccordionItem, __spreadValues$28({}, props));
|
|
77
|
+
const AccordionItem = (props) => /* @__PURE__ */ React.createElement(react.AccordionItem, __spreadValues$29({}, props));
|
|
78
78
|
|
|
79
79
|
const useDebounce = (value, delay) => {
|
|
80
80
|
const [debouncedValue, setDebouncedValue] = React.useState(value);
|
|
@@ -390,6 +390,24 @@
|
|
|
390
390
|
return fieldError;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
var __defProp$28 = Object.defineProperty;
|
|
394
|
+
var __getOwnPropSymbols$28 = Object.getOwnPropertySymbols;
|
|
395
|
+
var __hasOwnProp$28 = Object.prototype.hasOwnProperty;
|
|
396
|
+
var __propIsEnum$28 = Object.prototype.propertyIsEnumerable;
|
|
397
|
+
var __defNormalProp$28 = (obj, key, value) => key in obj ? __defProp$28(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
398
|
+
var __spreadValues$28 = (a, b) => {
|
|
399
|
+
for (var prop in b || (b = {}))
|
|
400
|
+
if (__hasOwnProp$28.call(b, prop))
|
|
401
|
+
__defNormalProp$28(a, prop, b[prop]);
|
|
402
|
+
if (__getOwnPropSymbols$28)
|
|
403
|
+
for (var prop of __getOwnPropSymbols$28(b)) {
|
|
404
|
+
if (__propIsEnum$28.call(b, prop))
|
|
405
|
+
__defNormalProp$28(a, prop, b[prop]);
|
|
406
|
+
}
|
|
407
|
+
return a;
|
|
408
|
+
};
|
|
409
|
+
const passPropsToChild = (child, styles) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$28({}, styles)) : child;
|
|
410
|
+
|
|
393
411
|
var __defProp$27 = Object.defineProperty;
|
|
394
412
|
var __getOwnPropSymbols$27 = Object.getOwnPropertySymbols;
|
|
395
413
|
var __hasOwnProp$27 = Object.prototype.hasOwnProperty;
|
|
@@ -406,27 +424,9 @@
|
|
|
406
424
|
}
|
|
407
425
|
return a;
|
|
408
426
|
};
|
|
409
|
-
const passPropsToChild = (child, styles) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$27({}, styles)) : child;
|
|
410
|
-
|
|
411
|
-
var __defProp$26 = Object.defineProperty;
|
|
412
|
-
var __getOwnPropSymbols$26 = Object.getOwnPropertySymbols;
|
|
413
|
-
var __hasOwnProp$26 = Object.prototype.hasOwnProperty;
|
|
414
|
-
var __propIsEnum$26 = Object.prototype.propertyIsEnumerable;
|
|
415
|
-
var __defNormalProp$26 = (obj, key, value) => key in obj ? __defProp$26(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
416
|
-
var __spreadValues$26 = (a, b) => {
|
|
417
|
-
for (var prop in b || (b = {}))
|
|
418
|
-
if (__hasOwnProp$26.call(b, prop))
|
|
419
|
-
__defNormalProp$26(a, prop, b[prop]);
|
|
420
|
-
if (__getOwnPropSymbols$26)
|
|
421
|
-
for (var prop of __getOwnPropSymbols$26(b)) {
|
|
422
|
-
if (__propIsEnum$26.call(b, prop))
|
|
423
|
-
__defNormalProp$26(a, prop, b[prop]);
|
|
424
|
-
}
|
|
425
|
-
return a;
|
|
426
|
-
};
|
|
427
427
|
const getChildrenWithProps = (children, styles, predicate = ramda.T) => {
|
|
428
428
|
const childrenAsArr = React.Children.toArray(children);
|
|
429
|
-
const childrenWithoutFocus = childrenAsArr.map((child, i) => predicate(child, i) ? passPropsToChild(child, __spreadValues$
|
|
429
|
+
const childrenWithoutFocus = childrenAsArr.map((child, i) => predicate(child, i) ? passPropsToChild(child, __spreadValues$27({}, styles)) : child);
|
|
430
430
|
return childrenWithoutFocus;
|
|
431
431
|
};
|
|
432
432
|
|
|
@@ -453,79 +453,79 @@
|
|
|
453
453
|
return theme;
|
|
454
454
|
};
|
|
455
455
|
|
|
456
|
-
var __defProp$
|
|
456
|
+
var __defProp$26 = Object.defineProperty;
|
|
457
457
|
var __defProps$y = Object.defineProperties;
|
|
458
458
|
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
459
|
-
var __getOwnPropSymbols$
|
|
460
|
-
var __hasOwnProp$
|
|
461
|
-
var __propIsEnum$
|
|
462
|
-
var __defNormalProp$
|
|
463
|
-
var __spreadValues$
|
|
459
|
+
var __getOwnPropSymbols$26 = Object.getOwnPropertySymbols;
|
|
460
|
+
var __hasOwnProp$26 = Object.prototype.hasOwnProperty;
|
|
461
|
+
var __propIsEnum$26 = Object.prototype.propertyIsEnumerable;
|
|
462
|
+
var __defNormalProp$26 = (obj, key, value) => key in obj ? __defProp$26(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
463
|
+
var __spreadValues$26 = (a, b) => {
|
|
464
464
|
for (var prop in b || (b = {}))
|
|
465
|
-
if (__hasOwnProp$
|
|
466
|
-
__defNormalProp$
|
|
467
|
-
if (__getOwnPropSymbols$
|
|
468
|
-
for (var prop of __getOwnPropSymbols$
|
|
469
|
-
if (__propIsEnum$
|
|
470
|
-
__defNormalProp$
|
|
465
|
+
if (__hasOwnProp$26.call(b, prop))
|
|
466
|
+
__defNormalProp$26(a, prop, b[prop]);
|
|
467
|
+
if (__getOwnPropSymbols$26)
|
|
468
|
+
for (var prop of __getOwnPropSymbols$26(b)) {
|
|
469
|
+
if (__propIsEnum$26.call(b, prop))
|
|
470
|
+
__defNormalProp$26(a, prop, b[prop]);
|
|
471
471
|
}
|
|
472
472
|
return a;
|
|
473
473
|
};
|
|
474
474
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
475
475
|
const customSelectStyles = {
|
|
476
|
-
container: (provided) => __spreadProps$y(__spreadValues$
|
|
476
|
+
container: (provided) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
477
477
|
width: "100%",
|
|
478
478
|
color: "text.default"
|
|
479
479
|
}),
|
|
480
|
-
option: (provided, state) => __spreadProps$y(__spreadValues$
|
|
480
|
+
option: (provided, state) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
481
481
|
background: state.isFocused && "background.select.option-focus",
|
|
482
482
|
_active: {
|
|
483
483
|
background: "background.select.option-active"
|
|
484
484
|
}
|
|
485
485
|
}),
|
|
486
|
-
valueContainer: (provided) => __spreadProps$y(__spreadValues$
|
|
486
|
+
valueContainer: (provided) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
487
487
|
paddingInlineStart: "padding-inline.select.default"
|
|
488
488
|
}),
|
|
489
|
-
downChevron: (provided) => __spreadProps$y(__spreadValues$
|
|
489
|
+
downChevron: (provided) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
490
490
|
color: "icon.select.default"
|
|
491
491
|
}),
|
|
492
|
-
placeholder: (provided) => __spreadProps$y(__spreadValues$
|
|
492
|
+
placeholder: (provided) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
493
493
|
color: "text.select.placeholder"
|
|
494
494
|
}),
|
|
495
495
|
multiValue: (provided, state) => {
|
|
496
496
|
var _a;
|
|
497
497
|
const background = state.data.isFixed ? "background.select.option-disabled" : (_a = state.data.color) != null ? _a : provided.bgColor;
|
|
498
|
-
return __spreadProps$y(__spreadValues$
|
|
498
|
+
return __spreadProps$y(__spreadValues$26({}, provided), {
|
|
499
499
|
bgColor: background,
|
|
500
500
|
color: getContrastColor(background)
|
|
501
501
|
});
|
|
502
502
|
},
|
|
503
|
-
menuList: (provided) => __spreadProps$y(__spreadValues$
|
|
503
|
+
menuList: (provided) => __spreadProps$y(__spreadValues$26({}, provided), {
|
|
504
504
|
bgColor: "background.default"
|
|
505
505
|
})
|
|
506
506
|
};
|
|
507
507
|
|
|
508
|
-
var __defProp$
|
|
508
|
+
var __defProp$25 = Object.defineProperty;
|
|
509
509
|
var __defProps$x = Object.defineProperties;
|
|
510
510
|
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
511
|
-
var __getOwnPropSymbols$
|
|
512
|
-
var __hasOwnProp$
|
|
513
|
-
var __propIsEnum$
|
|
514
|
-
var __defNormalProp$
|
|
515
|
-
var __spreadValues$
|
|
511
|
+
var __getOwnPropSymbols$25 = Object.getOwnPropertySymbols;
|
|
512
|
+
var __hasOwnProp$25 = Object.prototype.hasOwnProperty;
|
|
513
|
+
var __propIsEnum$25 = Object.prototype.propertyIsEnumerable;
|
|
514
|
+
var __defNormalProp$25 = (obj, key, value) => key in obj ? __defProp$25(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
515
|
+
var __spreadValues$25 = (a, b) => {
|
|
516
516
|
for (var prop in b || (b = {}))
|
|
517
|
-
if (__hasOwnProp$
|
|
518
|
-
__defNormalProp$
|
|
519
|
-
if (__getOwnPropSymbols$
|
|
520
|
-
for (var prop of __getOwnPropSymbols$
|
|
521
|
-
if (__propIsEnum$
|
|
522
|
-
__defNormalProp$
|
|
517
|
+
if (__hasOwnProp$25.call(b, prop))
|
|
518
|
+
__defNormalProp$25(a, prop, b[prop]);
|
|
519
|
+
if (__getOwnPropSymbols$25)
|
|
520
|
+
for (var prop of __getOwnPropSymbols$25(b)) {
|
|
521
|
+
if (__propIsEnum$25.call(b, prop))
|
|
522
|
+
__defNormalProp$25(a, prop, b[prop]);
|
|
523
523
|
}
|
|
524
524
|
return a;
|
|
525
525
|
};
|
|
526
526
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
527
|
-
const tagsInputStyles = (isFocused, borderColor) => __spreadProps$x(__spreadValues$
|
|
528
|
-
container: (provided) => __spreadProps$x(__spreadValues$
|
|
527
|
+
const tagsInputStyles = (isFocused, borderColor) => __spreadProps$x(__spreadValues$25({}, customSelectStyles), {
|
|
528
|
+
container: (provided) => __spreadProps$x(__spreadValues$25({}, provided), {
|
|
529
529
|
w: "full",
|
|
530
530
|
height: "100%",
|
|
531
531
|
resize: "vertical",
|
|
@@ -538,45 +538,45 @@
|
|
|
538
538
|
color: "text.default",
|
|
539
539
|
boxShadow: isFocused ? `0 0 0 1px ${borderColor}` : "none"
|
|
540
540
|
}),
|
|
541
|
-
control: (provided) => __spreadProps$x(__spreadValues$
|
|
541
|
+
control: (provided) => __spreadProps$x(__spreadValues$25({}, provided), {
|
|
542
542
|
minHeight: "20",
|
|
543
543
|
height: "100%",
|
|
544
544
|
alignItems: "start"
|
|
545
545
|
}),
|
|
546
|
-
valueContainer: (provided) => __spreadProps$x(__spreadValues$
|
|
546
|
+
valueContainer: (provided) => __spreadProps$x(__spreadValues$25({}, provided), {
|
|
547
547
|
paddingInlineStart: "padding-inline.select.default",
|
|
548
548
|
overflowY: "auto",
|
|
549
549
|
maxH: "100%"
|
|
550
550
|
})
|
|
551
551
|
});
|
|
552
552
|
|
|
553
|
-
var __defProp$
|
|
553
|
+
var __defProp$24 = Object.defineProperty;
|
|
554
554
|
var __defProps$w = Object.defineProperties;
|
|
555
555
|
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
556
|
-
var __getOwnPropSymbols$
|
|
557
|
-
var __hasOwnProp$
|
|
558
|
-
var __propIsEnum$
|
|
559
|
-
var __defNormalProp$
|
|
560
|
-
var __spreadValues$
|
|
556
|
+
var __getOwnPropSymbols$24 = Object.getOwnPropertySymbols;
|
|
557
|
+
var __hasOwnProp$24 = Object.prototype.hasOwnProperty;
|
|
558
|
+
var __propIsEnum$24 = Object.prototype.propertyIsEnumerable;
|
|
559
|
+
var __defNormalProp$24 = (obj, key, value) => key in obj ? __defProp$24(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
560
|
+
var __spreadValues$24 = (a, b) => {
|
|
561
561
|
for (var prop in b || (b = {}))
|
|
562
|
-
if (__hasOwnProp$
|
|
563
|
-
__defNormalProp$
|
|
564
|
-
if (__getOwnPropSymbols$
|
|
565
|
-
for (var prop of __getOwnPropSymbols$
|
|
566
|
-
if (__propIsEnum$
|
|
567
|
-
__defNormalProp$
|
|
562
|
+
if (__hasOwnProp$24.call(b, prop))
|
|
563
|
+
__defNormalProp$24(a, prop, b[prop]);
|
|
564
|
+
if (__getOwnPropSymbols$24)
|
|
565
|
+
for (var prop of __getOwnPropSymbols$24(b)) {
|
|
566
|
+
if (__propIsEnum$24.call(b, prop))
|
|
567
|
+
__defNormalProp$24(a, prop, b[prop]);
|
|
568
568
|
}
|
|
569
569
|
return a;
|
|
570
570
|
};
|
|
571
571
|
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
572
|
-
var __objRest$
|
|
572
|
+
var __objRest$1x = (source, exclude) => {
|
|
573
573
|
var target = {};
|
|
574
574
|
for (var prop in source)
|
|
575
|
-
if (__hasOwnProp$
|
|
575
|
+
if (__hasOwnProp$24.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
576
576
|
target[prop] = source[prop];
|
|
577
|
-
if (source != null && __getOwnPropSymbols$
|
|
578
|
-
for (var prop of __getOwnPropSymbols$
|
|
579
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
577
|
+
if (source != null && __getOwnPropSymbols$24)
|
|
578
|
+
for (var prop of __getOwnPropSymbols$24(source)) {
|
|
579
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$24.call(source, prop))
|
|
580
580
|
target[prop] = source[prop];
|
|
581
581
|
}
|
|
582
582
|
return target;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
loadingList = () => null,
|
|
590
590
|
"data-testid": testId,
|
|
591
591
|
value = []
|
|
592
|
-
} = _b, rest = __objRest$
|
|
592
|
+
} = _b, rest = __objRest$1x(_b, [
|
|
593
593
|
"options",
|
|
594
594
|
"onChange",
|
|
595
595
|
"isLoading",
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
};
|
|
658
658
|
return /* @__PURE__ */ React.createElement(react.Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
659
659
|
CustomSelect,
|
|
660
|
-
__spreadValues$
|
|
660
|
+
__spreadValues$24(__spreadProps$w(__spreadValues$24({
|
|
661
661
|
isMulti: true,
|
|
662
662
|
menuPortalTarget: document.body,
|
|
663
663
|
placeholder: "Type something and press Enter or comma...",
|
|
@@ -690,30 +690,30 @@
|
|
|
690
690
|
));
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
-
var __defProp$
|
|
694
|
-
var __getOwnPropSymbols$
|
|
695
|
-
var __hasOwnProp$
|
|
696
|
-
var __propIsEnum$
|
|
697
|
-
var __defNormalProp$
|
|
698
|
-
var __spreadValues$
|
|
693
|
+
var __defProp$23 = Object.defineProperty;
|
|
694
|
+
var __getOwnPropSymbols$23 = Object.getOwnPropertySymbols;
|
|
695
|
+
var __hasOwnProp$23 = Object.prototype.hasOwnProperty;
|
|
696
|
+
var __propIsEnum$23 = Object.prototype.propertyIsEnumerable;
|
|
697
|
+
var __defNormalProp$23 = (obj, key, value) => key in obj ? __defProp$23(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
698
|
+
var __spreadValues$23 = (a, b) => {
|
|
699
699
|
for (var prop in b || (b = {}))
|
|
700
|
-
if (__hasOwnProp$
|
|
701
|
-
__defNormalProp$
|
|
702
|
-
if (__getOwnPropSymbols$
|
|
703
|
-
for (var prop of __getOwnPropSymbols$
|
|
704
|
-
if (__propIsEnum$
|
|
705
|
-
__defNormalProp$
|
|
700
|
+
if (__hasOwnProp$23.call(b, prop))
|
|
701
|
+
__defNormalProp$23(a, prop, b[prop]);
|
|
702
|
+
if (__getOwnPropSymbols$23)
|
|
703
|
+
for (var prop of __getOwnPropSymbols$23(b)) {
|
|
704
|
+
if (__propIsEnum$23.call(b, prop))
|
|
705
|
+
__defNormalProp$23(a, prop, b[prop]);
|
|
706
706
|
}
|
|
707
707
|
return a;
|
|
708
708
|
};
|
|
709
|
-
var __objRest$
|
|
709
|
+
var __objRest$1w = (source, exclude) => {
|
|
710
710
|
var target = {};
|
|
711
711
|
for (var prop in source)
|
|
712
|
-
if (__hasOwnProp$
|
|
712
|
+
if (__hasOwnProp$23.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
713
713
|
target[prop] = source[prop];
|
|
714
|
-
if (source != null && __getOwnPropSymbols$
|
|
715
|
-
for (var prop of __getOwnPropSymbols$
|
|
716
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
714
|
+
if (source != null && __getOwnPropSymbols$23)
|
|
715
|
+
for (var prop of __getOwnPropSymbols$23(source)) {
|
|
716
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$23.call(source, prop))
|
|
717
717
|
target[prop] = source[prop];
|
|
718
718
|
}
|
|
719
719
|
return target;
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
name,
|
|
724
724
|
image,
|
|
725
725
|
variant = "square"
|
|
726
|
-
} = _b, rest = __objRest$
|
|
726
|
+
} = _b, rest = __objRest$1w(_b, [
|
|
727
727
|
"name",
|
|
728
728
|
"image",
|
|
729
729
|
"variant"
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
const {
|
|
733
733
|
container,
|
|
734
734
|
text
|
|
735
|
-
} = react.useMultiStyleConfig("Avatar", __spreadValues$
|
|
735
|
+
} = react.useMultiStyleConfig("Avatar", __spreadValues$23({ variant, image }, rest));
|
|
736
736
|
return /* @__PURE__ */ React.createElement(
|
|
737
737
|
react.chakra.div,
|
|
738
738
|
{
|
|
@@ -749,30 +749,30 @@
|
|
|
749
749
|
);
|
|
750
750
|
};
|
|
751
751
|
|
|
752
|
-
var __defProp$
|
|
753
|
-
var __getOwnPropSymbols$
|
|
754
|
-
var __hasOwnProp$
|
|
755
|
-
var __propIsEnum$
|
|
756
|
-
var __defNormalProp$
|
|
757
|
-
var __spreadValues$
|
|
752
|
+
var __defProp$22 = Object.defineProperty;
|
|
753
|
+
var __getOwnPropSymbols$22 = Object.getOwnPropertySymbols;
|
|
754
|
+
var __hasOwnProp$22 = Object.prototype.hasOwnProperty;
|
|
755
|
+
var __propIsEnum$22 = Object.prototype.propertyIsEnumerable;
|
|
756
|
+
var __defNormalProp$22 = (obj, key, value) => key in obj ? __defProp$22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
757
|
+
var __spreadValues$22 = (a, b) => {
|
|
758
758
|
for (var prop in b || (b = {}))
|
|
759
|
-
if (__hasOwnProp$
|
|
760
|
-
__defNormalProp$
|
|
761
|
-
if (__getOwnPropSymbols$
|
|
762
|
-
for (var prop of __getOwnPropSymbols$
|
|
763
|
-
if (__propIsEnum$
|
|
764
|
-
__defNormalProp$
|
|
759
|
+
if (__hasOwnProp$22.call(b, prop))
|
|
760
|
+
__defNormalProp$22(a, prop, b[prop]);
|
|
761
|
+
if (__getOwnPropSymbols$22)
|
|
762
|
+
for (var prop of __getOwnPropSymbols$22(b)) {
|
|
763
|
+
if (__propIsEnum$22.call(b, prop))
|
|
764
|
+
__defNormalProp$22(a, prop, b[prop]);
|
|
765
765
|
}
|
|
766
766
|
return a;
|
|
767
767
|
};
|
|
768
|
-
var __objRest$
|
|
768
|
+
var __objRest$1v = (source, exclude) => {
|
|
769
769
|
var target = {};
|
|
770
770
|
for (var prop in source)
|
|
771
|
-
if (__hasOwnProp$
|
|
771
|
+
if (__hasOwnProp$22.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
772
772
|
target[prop] = source[prop];
|
|
773
|
-
if (source != null && __getOwnPropSymbols$
|
|
774
|
-
for (var prop of __getOwnPropSymbols$
|
|
775
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
773
|
+
if (source != null && __getOwnPropSymbols$22)
|
|
774
|
+
for (var prop of __getOwnPropSymbols$22(source)) {
|
|
775
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$22.call(source, prop))
|
|
776
776
|
target[prop] = source[prop];
|
|
777
777
|
}
|
|
778
778
|
return target;
|
|
@@ -781,12 +781,30 @@
|
|
|
781
781
|
var _b = _a, {
|
|
782
782
|
variant = "success",
|
|
783
783
|
children
|
|
784
|
-
} = _b, rest = __objRest$
|
|
784
|
+
} = _b, rest = __objRest$1v(_b, [
|
|
785
785
|
"variant",
|
|
786
786
|
"children"
|
|
787
787
|
]);
|
|
788
|
-
return /* @__PURE__ */ React.createElement(react.Alert, __spreadValues$
|
|
788
|
+
return /* @__PURE__ */ React.createElement(react.Alert, __spreadValues$22({ variant }, rest), children);
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
var __defProp$21 = Object.defineProperty;
|
|
792
|
+
var __getOwnPropSymbols$21 = Object.getOwnPropertySymbols;
|
|
793
|
+
var __hasOwnProp$21 = Object.prototype.hasOwnProperty;
|
|
794
|
+
var __propIsEnum$21 = Object.prototype.propertyIsEnumerable;
|
|
795
|
+
var __defNormalProp$21 = (obj, key, value) => key in obj ? __defProp$21(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
796
|
+
var __spreadValues$21 = (a, b) => {
|
|
797
|
+
for (var prop in b || (b = {}))
|
|
798
|
+
if (__hasOwnProp$21.call(b, prop))
|
|
799
|
+
__defNormalProp$21(a, prop, b[prop]);
|
|
800
|
+
if (__getOwnPropSymbols$21)
|
|
801
|
+
for (var prop of __getOwnPropSymbols$21(b)) {
|
|
802
|
+
if (__propIsEnum$21.call(b, prop))
|
|
803
|
+
__defNormalProp$21(a, prop, b[prop]);
|
|
804
|
+
}
|
|
805
|
+
return a;
|
|
789
806
|
};
|
|
807
|
+
const AspectRatio = (props) => /* @__PURE__ */ React.createElement(react.AspectRatio, __spreadValues$21({}, props));
|
|
790
808
|
|
|
791
809
|
var __defProp$20 = Object.defineProperty;
|
|
792
810
|
var __getOwnPropSymbols$20 = Object.getOwnPropertySymbols;
|
|
@@ -804,32 +822,14 @@
|
|
|
804
822
|
}
|
|
805
823
|
return a;
|
|
806
824
|
};
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
var __defProp$1$ = Object.defineProperty;
|
|
810
|
-
var __getOwnPropSymbols$1$ = Object.getOwnPropertySymbols;
|
|
811
|
-
var __hasOwnProp$1$ = Object.prototype.hasOwnProperty;
|
|
812
|
-
var __propIsEnum$1$ = Object.prototype.propertyIsEnumerable;
|
|
813
|
-
var __defNormalProp$1$ = (obj, key, value) => key in obj ? __defProp$1$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
814
|
-
var __spreadValues$1$ = (a, b) => {
|
|
815
|
-
for (var prop in b || (b = {}))
|
|
816
|
-
if (__hasOwnProp$1$.call(b, prop))
|
|
817
|
-
__defNormalProp$1$(a, prop, b[prop]);
|
|
818
|
-
if (__getOwnPropSymbols$1$)
|
|
819
|
-
for (var prop of __getOwnPropSymbols$1$(b)) {
|
|
820
|
-
if (__propIsEnum$1$.call(b, prop))
|
|
821
|
-
__defNormalProp$1$(a, prop, b[prop]);
|
|
822
|
-
}
|
|
823
|
-
return a;
|
|
824
|
-
};
|
|
825
|
-
var __objRest$1t = (source, exclude) => {
|
|
825
|
+
var __objRest$1u = (source, exclude) => {
|
|
826
826
|
var target = {};
|
|
827
827
|
for (var prop in source)
|
|
828
|
-
if (__hasOwnProp$
|
|
828
|
+
if (__hasOwnProp$20.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
829
829
|
target[prop] = source[prop];
|
|
830
|
-
if (source != null && __getOwnPropSymbols$
|
|
831
|
-
for (var prop of __getOwnPropSymbols$
|
|
832
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
830
|
+
if (source != null && __getOwnPropSymbols$20)
|
|
831
|
+
for (var prop of __getOwnPropSymbols$20(source)) {
|
|
832
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$20.call(source, prop))
|
|
833
833
|
target[prop] = source[prop];
|
|
834
834
|
}
|
|
835
835
|
return target;
|
|
@@ -840,7 +840,7 @@
|
|
|
840
840
|
size,
|
|
841
841
|
color,
|
|
842
842
|
boxSize
|
|
843
|
-
} = _b, rest = __objRest$
|
|
843
|
+
} = _b, rest = __objRest$1u(_b, [
|
|
844
844
|
"as",
|
|
845
845
|
"size",
|
|
846
846
|
"color",
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
const styles = react.useStyleConfig("Icon", { size, color, boxSize });
|
|
851
851
|
return /* @__PURE__ */ React.createElement(
|
|
852
852
|
react.Icon,
|
|
853
|
-
__spreadValues$
|
|
853
|
+
__spreadValues$20({
|
|
854
854
|
ref,
|
|
855
855
|
sx: styles
|
|
856
856
|
}, rest),
|
|
@@ -865,30 +865,30 @@
|
|
|
865
865
|
return /* @__PURE__ */ React.createElement(react.chakra.span, { sx: badge }, notificationCount > 999 ? "999+" : notificationCount);
|
|
866
866
|
};
|
|
867
867
|
|
|
868
|
-
var __defProp$
|
|
869
|
-
var __getOwnPropSymbols$
|
|
870
|
-
var __hasOwnProp$
|
|
871
|
-
var __propIsEnum$
|
|
872
|
-
var __defNormalProp$
|
|
873
|
-
var __spreadValues$
|
|
868
|
+
var __defProp$1$ = Object.defineProperty;
|
|
869
|
+
var __getOwnPropSymbols$1$ = Object.getOwnPropertySymbols;
|
|
870
|
+
var __hasOwnProp$1$ = Object.prototype.hasOwnProperty;
|
|
871
|
+
var __propIsEnum$1$ = Object.prototype.propertyIsEnumerable;
|
|
872
|
+
var __defNormalProp$1$ = (obj, key, value) => key in obj ? __defProp$1$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
873
|
+
var __spreadValues$1$ = (a, b) => {
|
|
874
874
|
for (var prop in b || (b = {}))
|
|
875
|
-
if (__hasOwnProp$
|
|
876
|
-
__defNormalProp$
|
|
877
|
-
if (__getOwnPropSymbols$
|
|
878
|
-
for (var prop of __getOwnPropSymbols$
|
|
879
|
-
if (__propIsEnum$
|
|
880
|
-
__defNormalProp$
|
|
875
|
+
if (__hasOwnProp$1$.call(b, prop))
|
|
876
|
+
__defNormalProp$1$(a, prop, b[prop]);
|
|
877
|
+
if (__getOwnPropSymbols$1$)
|
|
878
|
+
for (var prop of __getOwnPropSymbols$1$(b)) {
|
|
879
|
+
if (__propIsEnum$1$.call(b, prop))
|
|
880
|
+
__defNormalProp$1$(a, prop, b[prop]);
|
|
881
881
|
}
|
|
882
882
|
return a;
|
|
883
883
|
};
|
|
884
|
-
var __objRest$
|
|
884
|
+
var __objRest$1t = (source, exclude) => {
|
|
885
885
|
var target = {};
|
|
886
886
|
for (var prop in source)
|
|
887
|
-
if (__hasOwnProp$
|
|
887
|
+
if (__hasOwnProp$1$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
888
888
|
target[prop] = source[prop];
|
|
889
|
-
if (source != null && __getOwnPropSymbols$
|
|
890
|
-
for (var prop of __getOwnPropSymbols$
|
|
891
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
889
|
+
if (source != null && __getOwnPropSymbols$1$)
|
|
890
|
+
for (var prop of __getOwnPropSymbols$1$(source)) {
|
|
891
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1$.call(source, prop))
|
|
892
892
|
target[prop] = source[prop];
|
|
893
893
|
}
|
|
894
894
|
return target;
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
name,
|
|
901
901
|
image,
|
|
902
902
|
size
|
|
903
|
-
} = _b, rest = __objRest$
|
|
903
|
+
} = _b, rest = __objRest$1t(_b, [
|
|
904
904
|
"variant",
|
|
905
905
|
"notificationCount",
|
|
906
906
|
"name",
|
|
@@ -913,7 +913,7 @@
|
|
|
913
913
|
size,
|
|
914
914
|
name
|
|
915
915
|
});
|
|
916
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$
|
|
916
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$1$({ __css: container, "data-testid": "avatar-test-id" }, rest), image ? /* @__PURE__ */ React.createElement(
|
|
917
917
|
react.chakra.img,
|
|
918
918
|
{
|
|
919
919
|
alt: name,
|
|
@@ -930,6 +930,53 @@
|
|
|
930
930
|
), notificationCount > 0 && /* @__PURE__ */ React.createElement(AvatarBadge, { notificationCount }));
|
|
931
931
|
};
|
|
932
932
|
|
|
933
|
+
var __defProp$1_ = Object.defineProperty;
|
|
934
|
+
var __getOwnPropSymbols$1_ = Object.getOwnPropertySymbols;
|
|
935
|
+
var __hasOwnProp$1_ = Object.prototype.hasOwnProperty;
|
|
936
|
+
var __propIsEnum$1_ = Object.prototype.propertyIsEnumerable;
|
|
937
|
+
var __defNormalProp$1_ = (obj, key, value) => key in obj ? __defProp$1_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
938
|
+
var __spreadValues$1_ = (a, b) => {
|
|
939
|
+
for (var prop in b || (b = {}))
|
|
940
|
+
if (__hasOwnProp$1_.call(b, prop))
|
|
941
|
+
__defNormalProp$1_(a, prop, b[prop]);
|
|
942
|
+
if (__getOwnPropSymbols$1_)
|
|
943
|
+
for (var prop of __getOwnPropSymbols$1_(b)) {
|
|
944
|
+
if (__propIsEnum$1_.call(b, prop))
|
|
945
|
+
__defNormalProp$1_(a, prop, b[prop]);
|
|
946
|
+
}
|
|
947
|
+
return a;
|
|
948
|
+
};
|
|
949
|
+
var __objRest$1s = (source, exclude) => {
|
|
950
|
+
var target = {};
|
|
951
|
+
for (var prop in source)
|
|
952
|
+
if (__hasOwnProp$1_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
953
|
+
target[prop] = source[prop];
|
|
954
|
+
if (source != null && __getOwnPropSymbols$1_)
|
|
955
|
+
for (var prop of __getOwnPropSymbols$1_(source)) {
|
|
956
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1_.call(source, prop))
|
|
957
|
+
target[prop] = source[prop];
|
|
958
|
+
}
|
|
959
|
+
return target;
|
|
960
|
+
};
|
|
961
|
+
const H1$1 = (_a) => {
|
|
962
|
+
var _b = _a, {
|
|
963
|
+
children,
|
|
964
|
+
sx = {}
|
|
965
|
+
} = _b, rest = __objRest$1s(_b, [
|
|
966
|
+
"children",
|
|
967
|
+
"sx"
|
|
968
|
+
]);
|
|
969
|
+
const styles = react.useStyleConfig("H1", { sx });
|
|
970
|
+
return /* @__PURE__ */ React.createElement(
|
|
971
|
+
react.Heading,
|
|
972
|
+
__spreadValues$1_({
|
|
973
|
+
as: "h1",
|
|
974
|
+
sx: styles
|
|
975
|
+
}, rest),
|
|
976
|
+
children
|
|
977
|
+
);
|
|
978
|
+
};
|
|
979
|
+
|
|
933
980
|
var __defProp$1Z = Object.defineProperty;
|
|
934
981
|
var __getOwnPropSymbols$1Z = Object.getOwnPropertySymbols;
|
|
935
982
|
var __hasOwnProp$1Z = Object.prototype.hasOwnProperty;
|
|
@@ -958,7 +1005,7 @@
|
|
|
958
1005
|
}
|
|
959
1006
|
return target;
|
|
960
1007
|
};
|
|
961
|
-
const
|
|
1008
|
+
const H2$1 = (_a) => {
|
|
962
1009
|
var _b = _a, {
|
|
963
1010
|
children,
|
|
964
1011
|
sx = {}
|
|
@@ -966,11 +1013,11 @@
|
|
|
966
1013
|
"children",
|
|
967
1014
|
"sx"
|
|
968
1015
|
]);
|
|
969
|
-
const styles = react.useStyleConfig("
|
|
1016
|
+
const styles = react.useStyleConfig("H2", { sx });
|
|
970
1017
|
return /* @__PURE__ */ React.createElement(
|
|
971
1018
|
react.Heading,
|
|
972
1019
|
__spreadValues$1Z({
|
|
973
|
-
as: "
|
|
1020
|
+
as: "h2",
|
|
974
1021
|
sx: styles
|
|
975
1022
|
}, rest),
|
|
976
1023
|
children
|
|
@@ -1005,7 +1052,7 @@
|
|
|
1005
1052
|
}
|
|
1006
1053
|
return target;
|
|
1007
1054
|
};
|
|
1008
|
-
const
|
|
1055
|
+
const H3$1 = (_a) => {
|
|
1009
1056
|
var _b = _a, {
|
|
1010
1057
|
children,
|
|
1011
1058
|
sx = {}
|
|
@@ -1013,11 +1060,11 @@
|
|
|
1013
1060
|
"children",
|
|
1014
1061
|
"sx"
|
|
1015
1062
|
]);
|
|
1016
|
-
const styles = react.useStyleConfig("
|
|
1063
|
+
const styles = react.useStyleConfig("H3", { sx });
|
|
1017
1064
|
return /* @__PURE__ */ React.createElement(
|
|
1018
1065
|
react.Heading,
|
|
1019
1066
|
__spreadValues$1Y({
|
|
1020
|
-
as: "
|
|
1067
|
+
as: "h3",
|
|
1021
1068
|
sx: styles
|
|
1022
1069
|
}, rest),
|
|
1023
1070
|
children
|
|
@@ -1052,7 +1099,7 @@
|
|
|
1052
1099
|
}
|
|
1053
1100
|
return target;
|
|
1054
1101
|
};
|
|
1055
|
-
const
|
|
1102
|
+
const H4$1 = (_a) => {
|
|
1056
1103
|
var _b = _a, {
|
|
1057
1104
|
children,
|
|
1058
1105
|
sx = {}
|
|
@@ -1060,11 +1107,11 @@
|
|
|
1060
1107
|
"children",
|
|
1061
1108
|
"sx"
|
|
1062
1109
|
]);
|
|
1063
|
-
const styles = react.useStyleConfig("
|
|
1110
|
+
const styles = react.useStyleConfig("H4", { sx });
|
|
1064
1111
|
return /* @__PURE__ */ React.createElement(
|
|
1065
1112
|
react.Heading,
|
|
1066
1113
|
__spreadValues$1X({
|
|
1067
|
-
as: "
|
|
1114
|
+
as: "h4",
|
|
1068
1115
|
sx: styles
|
|
1069
1116
|
}, rest),
|
|
1070
1117
|
children
|
|
@@ -1099,7 +1146,7 @@
|
|
|
1099
1146
|
}
|
|
1100
1147
|
return target;
|
|
1101
1148
|
};
|
|
1102
|
-
const
|
|
1149
|
+
const H5$1 = (_a) => {
|
|
1103
1150
|
var _b = _a, {
|
|
1104
1151
|
children,
|
|
1105
1152
|
sx = {}
|
|
@@ -1107,11 +1154,11 @@
|
|
|
1107
1154
|
"children",
|
|
1108
1155
|
"sx"
|
|
1109
1156
|
]);
|
|
1110
|
-
const styles = react.useStyleConfig("
|
|
1157
|
+
const styles = react.useStyleConfig("H5", { sx });
|
|
1111
1158
|
return /* @__PURE__ */ React.createElement(
|
|
1112
1159
|
react.Heading,
|
|
1113
1160
|
__spreadValues$1W({
|
|
1114
|
-
as: "
|
|
1161
|
+
as: "h5",
|
|
1115
1162
|
sx: styles
|
|
1116
1163
|
}, rest),
|
|
1117
1164
|
children
|
|
@@ -1146,7 +1193,7 @@
|
|
|
1146
1193
|
}
|
|
1147
1194
|
return target;
|
|
1148
1195
|
};
|
|
1149
|
-
const
|
|
1196
|
+
const H6$1 = (_a) => {
|
|
1150
1197
|
var _b = _a, {
|
|
1151
1198
|
children,
|
|
1152
1199
|
sx = {}
|
|
@@ -1154,11 +1201,11 @@
|
|
|
1154
1201
|
"children",
|
|
1155
1202
|
"sx"
|
|
1156
1203
|
]);
|
|
1157
|
-
const styles = react.useStyleConfig("
|
|
1204
|
+
const styles = react.useStyleConfig("H6", { sx });
|
|
1158
1205
|
return /* @__PURE__ */ React.createElement(
|
|
1159
1206
|
react.Heading,
|
|
1160
1207
|
__spreadValues$1V({
|
|
1161
|
-
as: "
|
|
1208
|
+
as: "h6",
|
|
1162
1209
|
sx: styles
|
|
1163
1210
|
}, rest),
|
|
1164
1211
|
children
|
|
@@ -1193,19 +1240,21 @@
|
|
|
1193
1240
|
}
|
|
1194
1241
|
return target;
|
|
1195
1242
|
};
|
|
1196
|
-
const
|
|
1243
|
+
const P$1 = (_a) => {
|
|
1197
1244
|
var _b = _a, {
|
|
1198
1245
|
children,
|
|
1246
|
+
variant = "16",
|
|
1199
1247
|
sx = {}
|
|
1200
1248
|
} = _b, rest = __objRest$1m(_b, [
|
|
1201
1249
|
"children",
|
|
1250
|
+
"variant",
|
|
1202
1251
|
"sx"
|
|
1203
1252
|
]);
|
|
1204
|
-
const styles = react.useStyleConfig("
|
|
1253
|
+
const styles = react.useStyleConfig("P", { variant, sx });
|
|
1205
1254
|
return /* @__PURE__ */ React.createElement(
|
|
1206
|
-
react.
|
|
1255
|
+
react.Text,
|
|
1207
1256
|
__spreadValues$1U({
|
|
1208
|
-
|
|
1257
|
+
variant,
|
|
1209
1258
|
sx: styles
|
|
1210
1259
|
}, rest),
|
|
1211
1260
|
children
|
|
@@ -1240,25 +1289,10 @@
|
|
|
1240
1289
|
}
|
|
1241
1290
|
return target;
|
|
1242
1291
|
};
|
|
1243
|
-
const
|
|
1244
|
-
var _b = _a, {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
sx = {}
|
|
1248
|
-
} = _b, rest = __objRest$1l(_b, [
|
|
1249
|
-
"children",
|
|
1250
|
-
"variant",
|
|
1251
|
-
"sx"
|
|
1252
|
-
]);
|
|
1253
|
-
const styles = react.useStyleConfig("P", { variant, sx });
|
|
1254
|
-
return /* @__PURE__ */ React.createElement(
|
|
1255
|
-
react.Text,
|
|
1256
|
-
__spreadValues$1T({
|
|
1257
|
-
variant,
|
|
1258
|
-
sx: styles
|
|
1259
|
-
}, rest),
|
|
1260
|
-
children
|
|
1261
|
-
);
|
|
1292
|
+
const Blockquote$1 = (_a) => {
|
|
1293
|
+
var _b = _a, { children, sx = {} } = _b, rest = __objRest$1l(_b, ["children", "sx"]);
|
|
1294
|
+
const styles = react.useStyleConfig("Blockquote", { sx });
|
|
1295
|
+
return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$1T({ as: "span", sx: styles }, rest), children);
|
|
1262
1296
|
};
|
|
1263
1297
|
|
|
1264
1298
|
var __defProp$1S = Object.defineProperty;
|
|
@@ -1289,10 +1323,23 @@
|
|
|
1289
1323
|
}
|
|
1290
1324
|
return target;
|
|
1291
1325
|
};
|
|
1292
|
-
const
|
|
1293
|
-
var _b = _a, {
|
|
1294
|
-
|
|
1295
|
-
|
|
1326
|
+
const Capitalized$1 = (_a) => {
|
|
1327
|
+
var _b = _a, {
|
|
1328
|
+
children,
|
|
1329
|
+
sx = {}
|
|
1330
|
+
} = _b, rest = __objRest$1k(_b, [
|
|
1331
|
+
"children",
|
|
1332
|
+
"sx"
|
|
1333
|
+
]);
|
|
1334
|
+
const styles = react.useStyleConfig("Capitalized", { sx });
|
|
1335
|
+
return /* @__PURE__ */ React.createElement(
|
|
1336
|
+
react.Text,
|
|
1337
|
+
__spreadValues$1S({
|
|
1338
|
+
as: "span",
|
|
1339
|
+
sx: styles
|
|
1340
|
+
}, rest),
|
|
1341
|
+
children
|
|
1342
|
+
);
|
|
1296
1343
|
};
|
|
1297
1344
|
|
|
1298
1345
|
var __defProp$1R = Object.defineProperty;
|
|
@@ -1323,7 +1370,7 @@
|
|
|
1323
1370
|
}
|
|
1324
1371
|
return target;
|
|
1325
1372
|
};
|
|
1326
|
-
const
|
|
1373
|
+
const Lead$1 = (_a) => {
|
|
1327
1374
|
var _b = _a, {
|
|
1328
1375
|
children,
|
|
1329
1376
|
sx = {}
|
|
@@ -1331,7 +1378,7 @@
|
|
|
1331
1378
|
"children",
|
|
1332
1379
|
"sx"
|
|
1333
1380
|
]);
|
|
1334
|
-
const styles = react.useStyleConfig("
|
|
1381
|
+
const styles = react.useStyleConfig("Lead", { sx });
|
|
1335
1382
|
return /* @__PURE__ */ React.createElement(
|
|
1336
1383
|
react.Text,
|
|
1337
1384
|
__spreadValues$1R({
|
|
@@ -1370,7 +1417,7 @@
|
|
|
1370
1417
|
}
|
|
1371
1418
|
return target;
|
|
1372
1419
|
};
|
|
1373
|
-
const
|
|
1420
|
+
const Small$1 = (_a) => {
|
|
1374
1421
|
var _b = _a, {
|
|
1375
1422
|
children,
|
|
1376
1423
|
sx = {}
|
|
@@ -1378,11 +1425,11 @@
|
|
|
1378
1425
|
"children",
|
|
1379
1426
|
"sx"
|
|
1380
1427
|
]);
|
|
1381
|
-
const styles = react.useStyleConfig("
|
|
1428
|
+
const styles = react.useStyleConfig("Small", { sx });
|
|
1382
1429
|
return /* @__PURE__ */ React.createElement(
|
|
1383
1430
|
react.Text,
|
|
1384
1431
|
__spreadValues$1Q({
|
|
1385
|
-
as: "
|
|
1432
|
+
as: "small",
|
|
1386
1433
|
sx: styles
|
|
1387
1434
|
}, rest),
|
|
1388
1435
|
children
|
|
@@ -1417,7 +1464,7 @@
|
|
|
1417
1464
|
}
|
|
1418
1465
|
return target;
|
|
1419
1466
|
};
|
|
1420
|
-
const
|
|
1467
|
+
const Tiny$1 = (_a) => {
|
|
1421
1468
|
var _b = _a, {
|
|
1422
1469
|
children,
|
|
1423
1470
|
sx = {}
|
|
@@ -1425,11 +1472,11 @@
|
|
|
1425
1472
|
"children",
|
|
1426
1473
|
"sx"
|
|
1427
1474
|
]);
|
|
1428
|
-
const styles = react.useStyleConfig("
|
|
1475
|
+
const styles = react.useStyleConfig("Tiny", { sx });
|
|
1429
1476
|
return /* @__PURE__ */ React.createElement(
|
|
1430
1477
|
react.Text,
|
|
1431
1478
|
__spreadValues$1P({
|
|
1432
|
-
as: "
|
|
1479
|
+
as: "span",
|
|
1433
1480
|
sx: styles
|
|
1434
1481
|
}, rest),
|
|
1435
1482
|
children
|
|
@@ -1464,59 +1511,12 @@
|
|
|
1464
1511
|
}
|
|
1465
1512
|
return target;
|
|
1466
1513
|
};
|
|
1467
|
-
const Tiny$1 = (_a) => {
|
|
1468
|
-
var _b = _a, {
|
|
1469
|
-
children,
|
|
1470
|
-
sx = {}
|
|
1471
|
-
} = _b, rest = __objRest$1g(_b, [
|
|
1472
|
-
"children",
|
|
1473
|
-
"sx"
|
|
1474
|
-
]);
|
|
1475
|
-
const styles = react.useStyleConfig("Tiny", { sx });
|
|
1476
|
-
return /* @__PURE__ */ React.createElement(
|
|
1477
|
-
react.Text,
|
|
1478
|
-
__spreadValues$1O({
|
|
1479
|
-
as: "span",
|
|
1480
|
-
sx: styles
|
|
1481
|
-
}, rest),
|
|
1482
|
-
children
|
|
1483
|
-
);
|
|
1484
|
-
};
|
|
1485
|
-
|
|
1486
|
-
var __defProp$1N = Object.defineProperty;
|
|
1487
|
-
var __getOwnPropSymbols$1N = Object.getOwnPropertySymbols;
|
|
1488
|
-
var __hasOwnProp$1N = Object.prototype.hasOwnProperty;
|
|
1489
|
-
var __propIsEnum$1N = Object.prototype.propertyIsEnumerable;
|
|
1490
|
-
var __defNormalProp$1N = (obj, key, value) => key in obj ? __defProp$1N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1491
|
-
var __spreadValues$1N = (a, b) => {
|
|
1492
|
-
for (var prop in b || (b = {}))
|
|
1493
|
-
if (__hasOwnProp$1N.call(b, prop))
|
|
1494
|
-
__defNormalProp$1N(a, prop, b[prop]);
|
|
1495
|
-
if (__getOwnPropSymbols$1N)
|
|
1496
|
-
for (var prop of __getOwnPropSymbols$1N(b)) {
|
|
1497
|
-
if (__propIsEnum$1N.call(b, prop))
|
|
1498
|
-
__defNormalProp$1N(a, prop, b[prop]);
|
|
1499
|
-
}
|
|
1500
|
-
return a;
|
|
1501
|
-
};
|
|
1502
|
-
var __objRest$1f = (source, exclude) => {
|
|
1503
|
-
var target = {};
|
|
1504
|
-
for (var prop in source)
|
|
1505
|
-
if (__hasOwnProp$1N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1506
|
-
target[prop] = source[prop];
|
|
1507
|
-
if (source != null && __getOwnPropSymbols$1N)
|
|
1508
|
-
for (var prop of __getOwnPropSymbols$1N(source)) {
|
|
1509
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1N.call(source, prop))
|
|
1510
|
-
target[prop] = source[prop];
|
|
1511
|
-
}
|
|
1512
|
-
return target;
|
|
1513
|
-
};
|
|
1514
1514
|
const Label$1 = React.forwardRef((_a, ref) => {
|
|
1515
1515
|
var _b = _a, {
|
|
1516
1516
|
children,
|
|
1517
1517
|
size = "sm",
|
|
1518
1518
|
sx = {}
|
|
1519
|
-
} = _b, rest = __objRest$
|
|
1519
|
+
} = _b, rest = __objRest$1g(_b, [
|
|
1520
1520
|
"children",
|
|
1521
1521
|
"size",
|
|
1522
1522
|
"sx"
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
const styles = react.useStyleConfig("Label", { sx, size });
|
|
1525
1525
|
return /* @__PURE__ */ React.createElement(
|
|
1526
1526
|
react.FormLabel,
|
|
1527
|
-
__spreadValues$
|
|
1527
|
+
__spreadValues$1O({
|
|
1528
1528
|
sx: styles,
|
|
1529
1529
|
requiredIndicator: /* @__PURE__ */ React.createElement(react.VisuallyHidden, null),
|
|
1530
1530
|
ref
|
|
@@ -1613,30 +1613,30 @@
|
|
|
1613
1613
|
return { rect, containerRef };
|
|
1614
1614
|
};
|
|
1615
1615
|
|
|
1616
|
-
var __defProp$
|
|
1617
|
-
var __getOwnPropSymbols$
|
|
1618
|
-
var __hasOwnProp$
|
|
1619
|
-
var __propIsEnum$
|
|
1620
|
-
var __defNormalProp$
|
|
1621
|
-
var __spreadValues$
|
|
1616
|
+
var __defProp$1N = Object.defineProperty;
|
|
1617
|
+
var __getOwnPropSymbols$1N = Object.getOwnPropertySymbols;
|
|
1618
|
+
var __hasOwnProp$1N = Object.prototype.hasOwnProperty;
|
|
1619
|
+
var __propIsEnum$1N = Object.prototype.propertyIsEnumerable;
|
|
1620
|
+
var __defNormalProp$1N = (obj, key, value) => key in obj ? __defProp$1N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1621
|
+
var __spreadValues$1N = (a, b) => {
|
|
1622
1622
|
for (var prop in b || (b = {}))
|
|
1623
|
-
if (__hasOwnProp$
|
|
1624
|
-
__defNormalProp$
|
|
1625
|
-
if (__getOwnPropSymbols$
|
|
1626
|
-
for (var prop of __getOwnPropSymbols$
|
|
1627
|
-
if (__propIsEnum$
|
|
1628
|
-
__defNormalProp$
|
|
1623
|
+
if (__hasOwnProp$1N.call(b, prop))
|
|
1624
|
+
__defNormalProp$1N(a, prop, b[prop]);
|
|
1625
|
+
if (__getOwnPropSymbols$1N)
|
|
1626
|
+
for (var prop of __getOwnPropSymbols$1N(b)) {
|
|
1627
|
+
if (__propIsEnum$1N.call(b, prop))
|
|
1628
|
+
__defNormalProp$1N(a, prop, b[prop]);
|
|
1629
1629
|
}
|
|
1630
1630
|
return a;
|
|
1631
1631
|
};
|
|
1632
|
-
var __objRest$
|
|
1632
|
+
var __objRest$1f = (source, exclude) => {
|
|
1633
1633
|
var target = {};
|
|
1634
1634
|
for (var prop in source)
|
|
1635
|
-
if (__hasOwnProp$
|
|
1635
|
+
if (__hasOwnProp$1N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1636
1636
|
target[prop] = source[prop];
|
|
1637
|
-
if (source != null && __getOwnPropSymbols$
|
|
1638
|
-
for (var prop of __getOwnPropSymbols$
|
|
1639
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1637
|
+
if (source != null && __getOwnPropSymbols$1N)
|
|
1638
|
+
for (var prop of __getOwnPropSymbols$1N(source)) {
|
|
1639
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1N.call(source, prop))
|
|
1640
1640
|
target[prop] = source[prop];
|
|
1641
1641
|
}
|
|
1642
1642
|
return target;
|
|
@@ -1646,21 +1646,39 @@
|
|
|
1646
1646
|
children,
|
|
1647
1647
|
max = Infinity,
|
|
1648
1648
|
spacing = "-4"
|
|
1649
|
-
} = _b, rest = __objRest$
|
|
1649
|
+
} = _b, rest = __objRest$1f(_b, [
|
|
1650
1650
|
"children",
|
|
1651
1651
|
"max",
|
|
1652
1652
|
"spacing"
|
|
1653
1653
|
]);
|
|
1654
1654
|
const [nbrRemainingAvatars, setNbrRemainingAvatars] = React.useState(0);
|
|
1655
|
-
return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$
|
|
1655
|
+
return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$1N({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(react.HStack, { spacing }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, children)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small$1, { sx: { color: "blue.500" } }, "+", nbrRemainingAvatars));
|
|
1656
1656
|
};
|
|
1657
1657
|
|
|
1658
|
-
var __defProp$
|
|
1659
|
-
var __getOwnPropSymbols$
|
|
1660
|
-
var __hasOwnProp$
|
|
1661
|
-
var __propIsEnum$
|
|
1662
|
-
var __defNormalProp$
|
|
1663
|
-
var __spreadValues$
|
|
1658
|
+
var __defProp$1M = Object.defineProperty;
|
|
1659
|
+
var __getOwnPropSymbols$1M = Object.getOwnPropertySymbols;
|
|
1660
|
+
var __hasOwnProp$1M = Object.prototype.hasOwnProperty;
|
|
1661
|
+
var __propIsEnum$1M = Object.prototype.propertyIsEnumerable;
|
|
1662
|
+
var __defNormalProp$1M = (obj, key, value) => key in obj ? __defProp$1M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1663
|
+
var __spreadValues$1M = (a, b) => {
|
|
1664
|
+
for (var prop in b || (b = {}))
|
|
1665
|
+
if (__hasOwnProp$1M.call(b, prop))
|
|
1666
|
+
__defNormalProp$1M(a, prop, b[prop]);
|
|
1667
|
+
if (__getOwnPropSymbols$1M)
|
|
1668
|
+
for (var prop of __getOwnPropSymbols$1M(b)) {
|
|
1669
|
+
if (__propIsEnum$1M.call(b, prop))
|
|
1670
|
+
__defNormalProp$1M(a, prop, b[prop]);
|
|
1671
|
+
}
|
|
1672
|
+
return a;
|
|
1673
|
+
};
|
|
1674
|
+
const Badge = (props) => /* @__PURE__ */ React.createElement(react.Badge, __spreadValues$1M({}, props));
|
|
1675
|
+
|
|
1676
|
+
var __defProp$1L = Object.defineProperty;
|
|
1677
|
+
var __getOwnPropSymbols$1L = Object.getOwnPropertySymbols;
|
|
1678
|
+
var __hasOwnProp$1L = Object.prototype.hasOwnProperty;
|
|
1679
|
+
var __propIsEnum$1L = Object.prototype.propertyIsEnumerable;
|
|
1680
|
+
var __defNormalProp$1L = (obj, key, value) => key in obj ? __defProp$1L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1681
|
+
var __spreadValues$1L = (a, b) => {
|
|
1664
1682
|
for (var prop in b || (b = {}))
|
|
1665
1683
|
if (__hasOwnProp$1L.call(b, prop))
|
|
1666
1684
|
__defNormalProp$1L(a, prop, b[prop]);
|
|
@@ -1671,7 +1689,31 @@
|
|
|
1671
1689
|
}
|
|
1672
1690
|
return a;
|
|
1673
1691
|
};
|
|
1674
|
-
|
|
1692
|
+
var __objRest$1e = (source, exclude) => {
|
|
1693
|
+
var target = {};
|
|
1694
|
+
for (var prop in source)
|
|
1695
|
+
if (__hasOwnProp$1L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1696
|
+
target[prop] = source[prop];
|
|
1697
|
+
if (source != null && __getOwnPropSymbols$1L)
|
|
1698
|
+
for (var prop of __getOwnPropSymbols$1L(source)) {
|
|
1699
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1L.call(source, prop))
|
|
1700
|
+
target[prop] = source[prop];
|
|
1701
|
+
}
|
|
1702
|
+
return target;
|
|
1703
|
+
};
|
|
1704
|
+
const Blinker$1 = (_a) => {
|
|
1705
|
+
var _b = _a, {
|
|
1706
|
+
color = "",
|
|
1707
|
+
size,
|
|
1708
|
+
isBlinking = true
|
|
1709
|
+
} = _b, rest = __objRest$1e(_b, [
|
|
1710
|
+
"color",
|
|
1711
|
+
"size",
|
|
1712
|
+
"isBlinking"
|
|
1713
|
+
]);
|
|
1714
|
+
const styles = react.useStyleConfig("Blinker", { color, size, isBlinking });
|
|
1715
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$1L({ sx: styles, "data-testid": "blinker-test-id" }, rest));
|
|
1716
|
+
};
|
|
1675
1717
|
|
|
1676
1718
|
var __defProp$1K = Object.defineProperty;
|
|
1677
1719
|
var __getOwnPropSymbols$1K = Object.getOwnPropertySymbols;
|
|
@@ -1701,18 +1743,9 @@
|
|
|
1701
1743
|
}
|
|
1702
1744
|
return target;
|
|
1703
1745
|
};
|
|
1704
|
-
const
|
|
1705
|
-
var
|
|
1706
|
-
|
|
1707
|
-
size,
|
|
1708
|
-
isBlinking = true
|
|
1709
|
-
} = _b, rest = __objRest$1d(_b, [
|
|
1710
|
-
"color",
|
|
1711
|
-
"size",
|
|
1712
|
-
"isBlinking"
|
|
1713
|
-
]);
|
|
1714
|
-
const styles = react.useStyleConfig("Blinker", { color, size, isBlinking });
|
|
1715
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$1K({ sx: styles, "data-testid": "blinker-test-id" }, rest));
|
|
1746
|
+
const Spinner$1 = (_a) => {
|
|
1747
|
+
var rest = __objRest$1d(_a, []);
|
|
1748
|
+
return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$1K({}, rest));
|
|
1716
1749
|
};
|
|
1717
1750
|
|
|
1718
1751
|
var __defProp$1J = Object.defineProperty;
|
|
@@ -1743,39 +1776,6 @@
|
|
|
1743
1776
|
}
|
|
1744
1777
|
return target;
|
|
1745
1778
|
};
|
|
1746
|
-
const Spinner$1 = (_a) => {
|
|
1747
|
-
var rest = __objRest$1c(_a, []);
|
|
1748
|
-
return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$1J({}, rest));
|
|
1749
|
-
};
|
|
1750
|
-
|
|
1751
|
-
var __defProp$1I = Object.defineProperty;
|
|
1752
|
-
var __getOwnPropSymbols$1I = Object.getOwnPropertySymbols;
|
|
1753
|
-
var __hasOwnProp$1I = Object.prototype.hasOwnProperty;
|
|
1754
|
-
var __propIsEnum$1I = Object.prototype.propertyIsEnumerable;
|
|
1755
|
-
var __defNormalProp$1I = (obj, key, value) => key in obj ? __defProp$1I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1756
|
-
var __spreadValues$1I = (a, b) => {
|
|
1757
|
-
for (var prop in b || (b = {}))
|
|
1758
|
-
if (__hasOwnProp$1I.call(b, prop))
|
|
1759
|
-
__defNormalProp$1I(a, prop, b[prop]);
|
|
1760
|
-
if (__getOwnPropSymbols$1I)
|
|
1761
|
-
for (var prop of __getOwnPropSymbols$1I(b)) {
|
|
1762
|
-
if (__propIsEnum$1I.call(b, prop))
|
|
1763
|
-
__defNormalProp$1I(a, prop, b[prop]);
|
|
1764
|
-
}
|
|
1765
|
-
return a;
|
|
1766
|
-
};
|
|
1767
|
-
var __objRest$1b = (source, exclude) => {
|
|
1768
|
-
var target = {};
|
|
1769
|
-
for (var prop in source)
|
|
1770
|
-
if (__hasOwnProp$1I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1771
|
-
target[prop] = source[prop];
|
|
1772
|
-
if (source != null && __getOwnPropSymbols$1I)
|
|
1773
|
-
for (var prop of __getOwnPropSymbols$1I(source)) {
|
|
1774
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1I.call(source, prop))
|
|
1775
|
-
target[prop] = source[prop];
|
|
1776
|
-
}
|
|
1777
|
-
return target;
|
|
1778
|
-
};
|
|
1779
1779
|
const SpinnerSizeMap = {
|
|
1780
1780
|
xs: "xs",
|
|
1781
1781
|
sm: "sm",
|
|
@@ -1784,10 +1784,10 @@
|
|
|
1784
1784
|
};
|
|
1785
1785
|
const Button$1 = React.forwardRef(
|
|
1786
1786
|
(_a, ref) => {
|
|
1787
|
-
var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$
|
|
1787
|
+
var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$1c(_b, ["variant", "children", "size"]);
|
|
1788
1788
|
return /* @__PURE__ */ React.createElement(
|
|
1789
1789
|
react.Button,
|
|
1790
|
-
__spreadValues$
|
|
1790
|
+
__spreadValues$1J({
|
|
1791
1791
|
variant,
|
|
1792
1792
|
ref,
|
|
1793
1793
|
size,
|
|
@@ -1803,30 +1803,30 @@
|
|
|
1803
1803
|
}
|
|
1804
1804
|
);
|
|
1805
1805
|
|
|
1806
|
-
var __defProp$
|
|
1807
|
-
var __getOwnPropSymbols$
|
|
1808
|
-
var __hasOwnProp$
|
|
1809
|
-
var __propIsEnum$
|
|
1810
|
-
var __defNormalProp$
|
|
1811
|
-
var __spreadValues$
|
|
1806
|
+
var __defProp$1I = Object.defineProperty;
|
|
1807
|
+
var __getOwnPropSymbols$1I = Object.getOwnPropertySymbols;
|
|
1808
|
+
var __hasOwnProp$1I = Object.prototype.hasOwnProperty;
|
|
1809
|
+
var __propIsEnum$1I = Object.prototype.propertyIsEnumerable;
|
|
1810
|
+
var __defNormalProp$1I = (obj, key, value) => key in obj ? __defProp$1I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1811
|
+
var __spreadValues$1I = (a, b) => {
|
|
1812
1812
|
for (var prop in b || (b = {}))
|
|
1813
|
-
if (__hasOwnProp$
|
|
1814
|
-
__defNormalProp$
|
|
1815
|
-
if (__getOwnPropSymbols$
|
|
1816
|
-
for (var prop of __getOwnPropSymbols$
|
|
1817
|
-
if (__propIsEnum$
|
|
1818
|
-
__defNormalProp$
|
|
1813
|
+
if (__hasOwnProp$1I.call(b, prop))
|
|
1814
|
+
__defNormalProp$1I(a, prop, b[prop]);
|
|
1815
|
+
if (__getOwnPropSymbols$1I)
|
|
1816
|
+
for (var prop of __getOwnPropSymbols$1I(b)) {
|
|
1817
|
+
if (__propIsEnum$1I.call(b, prop))
|
|
1818
|
+
__defNormalProp$1I(a, prop, b[prop]);
|
|
1819
1819
|
}
|
|
1820
1820
|
return a;
|
|
1821
1821
|
};
|
|
1822
|
-
var __objRest$
|
|
1822
|
+
var __objRest$1b = (source, exclude) => {
|
|
1823
1823
|
var target = {};
|
|
1824
1824
|
for (var prop in source)
|
|
1825
|
-
if (__hasOwnProp$
|
|
1825
|
+
if (__hasOwnProp$1I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1826
1826
|
target[prop] = source[prop];
|
|
1827
|
-
if (source != null && __getOwnPropSymbols$
|
|
1828
|
-
for (var prop of __getOwnPropSymbols$
|
|
1829
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1827
|
+
if (source != null && __getOwnPropSymbols$1I)
|
|
1828
|
+
for (var prop of __getOwnPropSymbols$1I(source)) {
|
|
1829
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1I.call(source, prop))
|
|
1830
1830
|
target[prop] = source[prop];
|
|
1831
1831
|
}
|
|
1832
1832
|
return target;
|
|
@@ -1838,7 +1838,7 @@
|
|
|
1838
1838
|
name,
|
|
1839
1839
|
size = "md",
|
|
1840
1840
|
variant = "default"
|
|
1841
|
-
} = _b, rest = __objRest$
|
|
1841
|
+
} = _b, rest = __objRest$1b(_b, [
|
|
1842
1842
|
"value",
|
|
1843
1843
|
"onChange",
|
|
1844
1844
|
"name",
|
|
@@ -1847,7 +1847,7 @@
|
|
|
1847
1847
|
]);
|
|
1848
1848
|
return /* @__PURE__ */ React.createElement(
|
|
1849
1849
|
react.Checkbox,
|
|
1850
|
-
__spreadValues$
|
|
1850
|
+
__spreadValues$1I({
|
|
1851
1851
|
size,
|
|
1852
1852
|
id: name,
|
|
1853
1853
|
onChange,
|
|
@@ -1873,30 +1873,30 @@
|
|
|
1873
1873
|
return newObj;
|
|
1874
1874
|
};
|
|
1875
1875
|
|
|
1876
|
-
var __defProp$
|
|
1877
|
-
var __getOwnPropSymbols$
|
|
1878
|
-
var __hasOwnProp$
|
|
1879
|
-
var __propIsEnum$
|
|
1880
|
-
var __defNormalProp$
|
|
1881
|
-
var __spreadValues$
|
|
1876
|
+
var __defProp$1H = Object.defineProperty;
|
|
1877
|
+
var __getOwnPropSymbols$1H = Object.getOwnPropertySymbols;
|
|
1878
|
+
var __hasOwnProp$1H = Object.prototype.hasOwnProperty;
|
|
1879
|
+
var __propIsEnum$1H = Object.prototype.propertyIsEnumerable;
|
|
1880
|
+
var __defNormalProp$1H = (obj, key, value) => key in obj ? __defProp$1H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1881
|
+
var __spreadValues$1H = (a, b) => {
|
|
1882
1882
|
for (var prop in b || (b = {}))
|
|
1883
|
-
if (__hasOwnProp$
|
|
1884
|
-
__defNormalProp$
|
|
1885
|
-
if (__getOwnPropSymbols$
|
|
1886
|
-
for (var prop of __getOwnPropSymbols$
|
|
1887
|
-
if (__propIsEnum$
|
|
1888
|
-
__defNormalProp$
|
|
1883
|
+
if (__hasOwnProp$1H.call(b, prop))
|
|
1884
|
+
__defNormalProp$1H(a, prop, b[prop]);
|
|
1885
|
+
if (__getOwnPropSymbols$1H)
|
|
1886
|
+
for (var prop of __getOwnPropSymbols$1H(b)) {
|
|
1887
|
+
if (__propIsEnum$1H.call(b, prop))
|
|
1888
|
+
__defNormalProp$1H(a, prop, b[prop]);
|
|
1889
1889
|
}
|
|
1890
1890
|
return a;
|
|
1891
1891
|
};
|
|
1892
|
-
var __objRest$
|
|
1892
|
+
var __objRest$1a = (source, exclude) => {
|
|
1893
1893
|
var target = {};
|
|
1894
1894
|
for (var prop in source)
|
|
1895
|
-
if (__hasOwnProp$
|
|
1895
|
+
if (__hasOwnProp$1H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1896
1896
|
target[prop] = source[prop];
|
|
1897
|
-
if (source != null && __getOwnPropSymbols$
|
|
1898
|
-
for (var prop of __getOwnPropSymbols$
|
|
1899
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1897
|
+
if (source != null && __getOwnPropSymbols$1H)
|
|
1898
|
+
for (var prop of __getOwnPropSymbols$1H(source)) {
|
|
1899
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1H.call(source, prop))
|
|
1900
1900
|
target[prop] = source[prop];
|
|
1901
1901
|
}
|
|
1902
1902
|
return target;
|
|
@@ -1913,7 +1913,7 @@
|
|
|
1913
1913
|
shouldTrim = true,
|
|
1914
1914
|
innerFormStyle = {},
|
|
1915
1915
|
joiSchema
|
|
1916
|
-
} = _b, rest = __objRest$
|
|
1916
|
+
} = _b, rest = __objRest$1a(_b, [
|
|
1917
1917
|
"initialValues",
|
|
1918
1918
|
"onSubmit",
|
|
1919
1919
|
"children",
|
|
@@ -1936,7 +1936,7 @@
|
|
|
1936
1936
|
return joi.joiResolver(joiSchema);
|
|
1937
1937
|
return void 0;
|
|
1938
1938
|
};
|
|
1939
|
-
const newMethods = methods || reactHookForm.useForm(__spreadValues$
|
|
1939
|
+
const newMethods = methods || reactHookForm.useForm(__spreadValues$1H({
|
|
1940
1940
|
defaultValues: initialValues,
|
|
1941
1941
|
resolver: getResolver()
|
|
1942
1942
|
}, formSettings));
|
|
@@ -1962,36 +1962,36 @@
|
|
|
1962
1962
|
newMethods.trigger();
|
|
1963
1963
|
e.preventDefault();
|
|
1964
1964
|
};
|
|
1965
|
-
return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$
|
|
1965
|
+
return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$1H(__spreadValues$1H({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1H({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
1966
1966
|
});
|
|
1967
1967
|
|
|
1968
|
-
var __defProp$
|
|
1968
|
+
var __defProp$1G = Object.defineProperty;
|
|
1969
1969
|
var __defProps$v = Object.defineProperties;
|
|
1970
1970
|
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1971
|
-
var __getOwnPropSymbols$
|
|
1972
|
-
var __hasOwnProp$
|
|
1973
|
-
var __propIsEnum$
|
|
1974
|
-
var __defNormalProp$
|
|
1975
|
-
var __spreadValues$
|
|
1971
|
+
var __getOwnPropSymbols$1G = Object.getOwnPropertySymbols;
|
|
1972
|
+
var __hasOwnProp$1G = Object.prototype.hasOwnProperty;
|
|
1973
|
+
var __propIsEnum$1G = Object.prototype.propertyIsEnumerable;
|
|
1974
|
+
var __defNormalProp$1G = (obj, key, value) => key in obj ? __defProp$1G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1975
|
+
var __spreadValues$1G = (a, b) => {
|
|
1976
1976
|
for (var prop in b || (b = {}))
|
|
1977
|
-
if (__hasOwnProp$
|
|
1978
|
-
__defNormalProp$
|
|
1979
|
-
if (__getOwnPropSymbols$
|
|
1980
|
-
for (var prop of __getOwnPropSymbols$
|
|
1981
|
-
if (__propIsEnum$
|
|
1982
|
-
__defNormalProp$
|
|
1977
|
+
if (__hasOwnProp$1G.call(b, prop))
|
|
1978
|
+
__defNormalProp$1G(a, prop, b[prop]);
|
|
1979
|
+
if (__getOwnPropSymbols$1G)
|
|
1980
|
+
for (var prop of __getOwnPropSymbols$1G(b)) {
|
|
1981
|
+
if (__propIsEnum$1G.call(b, prop))
|
|
1982
|
+
__defNormalProp$1G(a, prop, b[prop]);
|
|
1983
1983
|
}
|
|
1984
1984
|
return a;
|
|
1985
1985
|
};
|
|
1986
1986
|
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1987
|
-
var __objRest$
|
|
1987
|
+
var __objRest$19 = (source, exclude) => {
|
|
1988
1988
|
var target = {};
|
|
1989
1989
|
for (var prop in source)
|
|
1990
|
-
if (__hasOwnProp$
|
|
1990
|
+
if (__hasOwnProp$1G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1991
1991
|
target[prop] = source[prop];
|
|
1992
|
-
if (source != null && __getOwnPropSymbols$
|
|
1993
|
-
for (var prop of __getOwnPropSymbols$
|
|
1994
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1992
|
+
if (source != null && __getOwnPropSymbols$1G)
|
|
1993
|
+
for (var prop of __getOwnPropSymbols$1G(source)) {
|
|
1994
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1G.call(source, prop))
|
|
1995
1995
|
target[prop] = source[prop];
|
|
1996
1996
|
}
|
|
1997
1997
|
return target;
|
|
@@ -1999,12 +1999,12 @@
|
|
|
1999
1999
|
const FormLabel = React.forwardRef((_a, ref) => {
|
|
2000
2000
|
var _b = _a, {
|
|
2001
2001
|
children: label
|
|
2002
|
-
} = _b, rest = __objRest$
|
|
2002
|
+
} = _b, rest = __objRest$19(_b, [
|
|
2003
2003
|
"children"
|
|
2004
2004
|
]);
|
|
2005
2005
|
return /* @__PURE__ */ React.createElement(
|
|
2006
2006
|
Label$1,
|
|
2007
|
-
__spreadProps$v(__spreadValues$
|
|
2007
|
+
__spreadProps$v(__spreadValues$1G({
|
|
2008
2008
|
size: "sm",
|
|
2009
2009
|
sx: {
|
|
2010
2010
|
width: "80%",
|
|
@@ -2020,30 +2020,30 @@
|
|
|
2020
2020
|
);
|
|
2021
2021
|
});
|
|
2022
2022
|
|
|
2023
|
-
var __defProp$
|
|
2024
|
-
var __getOwnPropSymbols$
|
|
2025
|
-
var __hasOwnProp$
|
|
2026
|
-
var __propIsEnum$
|
|
2027
|
-
var __defNormalProp$
|
|
2028
|
-
var __spreadValues$
|
|
2023
|
+
var __defProp$1F = Object.defineProperty;
|
|
2024
|
+
var __getOwnPropSymbols$1F = Object.getOwnPropertySymbols;
|
|
2025
|
+
var __hasOwnProp$1F = Object.prototype.hasOwnProperty;
|
|
2026
|
+
var __propIsEnum$1F = Object.prototype.propertyIsEnumerable;
|
|
2027
|
+
var __defNormalProp$1F = (obj, key, value) => key in obj ? __defProp$1F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2028
|
+
var __spreadValues$1F = (a, b) => {
|
|
2029
2029
|
for (var prop in b || (b = {}))
|
|
2030
|
-
if (__hasOwnProp$
|
|
2031
|
-
__defNormalProp$
|
|
2032
|
-
if (__getOwnPropSymbols$
|
|
2033
|
-
for (var prop of __getOwnPropSymbols$
|
|
2034
|
-
if (__propIsEnum$
|
|
2035
|
-
__defNormalProp$
|
|
2030
|
+
if (__hasOwnProp$1F.call(b, prop))
|
|
2031
|
+
__defNormalProp$1F(a, prop, b[prop]);
|
|
2032
|
+
if (__getOwnPropSymbols$1F)
|
|
2033
|
+
for (var prop of __getOwnPropSymbols$1F(b)) {
|
|
2034
|
+
if (__propIsEnum$1F.call(b, prop))
|
|
2035
|
+
__defNormalProp$1F(a, prop, b[prop]);
|
|
2036
2036
|
}
|
|
2037
2037
|
return a;
|
|
2038
2038
|
};
|
|
2039
|
-
var __objRest$
|
|
2039
|
+
var __objRest$18 = (source, exclude) => {
|
|
2040
2040
|
var target = {};
|
|
2041
2041
|
for (var prop in source)
|
|
2042
|
-
if (__hasOwnProp$
|
|
2042
|
+
if (__hasOwnProp$1F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2043
2043
|
target[prop] = source[prop];
|
|
2044
|
-
if (source != null && __getOwnPropSymbols$
|
|
2045
|
-
for (var prop of __getOwnPropSymbols$
|
|
2046
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2044
|
+
if (source != null && __getOwnPropSymbols$1F)
|
|
2045
|
+
for (var prop of __getOwnPropSymbols$1F(source)) {
|
|
2046
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1F.call(source, prop))
|
|
2047
2047
|
target[prop] = source[prop];
|
|
2048
2048
|
}
|
|
2049
2049
|
return target;
|
|
@@ -2058,7 +2058,7 @@
|
|
|
2058
2058
|
noLabelConnection = false,
|
|
2059
2059
|
validate,
|
|
2060
2060
|
control: passedControl
|
|
2061
|
-
} = _b, rest = __objRest$
|
|
2061
|
+
} = _b, rest = __objRest$18(_b, [
|
|
2062
2062
|
"name",
|
|
2063
2063
|
"label",
|
|
2064
2064
|
"children",
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
const fieldError = getFieldError(name, errors);
|
|
2075
2075
|
return /* @__PURE__ */ React.createElement(react.FormControl, { isInvalid: !!fieldError, isRequired, ref }, /* @__PURE__ */ React.createElement(
|
|
2076
2076
|
react.Stack,
|
|
2077
|
-
__spreadValues$
|
|
2077
|
+
__spreadValues$1F({
|
|
2078
2078
|
spacing: "auto",
|
|
2079
2079
|
direction,
|
|
2080
2080
|
alignItems: direction === "column" ? "stretch" : "center"
|
|
@@ -2102,30 +2102,30 @@
|
|
|
2102
2102
|
return setValueRefreshed;
|
|
2103
2103
|
};
|
|
2104
2104
|
|
|
2105
|
-
var __defProp$
|
|
2106
|
-
var __getOwnPropSymbols$
|
|
2107
|
-
var __hasOwnProp$
|
|
2108
|
-
var __propIsEnum$
|
|
2109
|
-
var __defNormalProp$
|
|
2110
|
-
var __spreadValues$
|
|
2105
|
+
var __defProp$1E = Object.defineProperty;
|
|
2106
|
+
var __getOwnPropSymbols$1E = Object.getOwnPropertySymbols;
|
|
2107
|
+
var __hasOwnProp$1E = Object.prototype.hasOwnProperty;
|
|
2108
|
+
var __propIsEnum$1E = Object.prototype.propertyIsEnumerable;
|
|
2109
|
+
var __defNormalProp$1E = (obj, key, value) => key in obj ? __defProp$1E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2110
|
+
var __spreadValues$1E = (a, b) => {
|
|
2111
2111
|
for (var prop in b || (b = {}))
|
|
2112
|
-
if (__hasOwnProp$
|
|
2113
|
-
__defNormalProp$
|
|
2114
|
-
if (__getOwnPropSymbols$
|
|
2115
|
-
for (var prop of __getOwnPropSymbols$
|
|
2116
|
-
if (__propIsEnum$
|
|
2117
|
-
__defNormalProp$
|
|
2112
|
+
if (__hasOwnProp$1E.call(b, prop))
|
|
2113
|
+
__defNormalProp$1E(a, prop, b[prop]);
|
|
2114
|
+
if (__getOwnPropSymbols$1E)
|
|
2115
|
+
for (var prop of __getOwnPropSymbols$1E(b)) {
|
|
2116
|
+
if (__propIsEnum$1E.call(b, prop))
|
|
2117
|
+
__defNormalProp$1E(a, prop, b[prop]);
|
|
2118
2118
|
}
|
|
2119
2119
|
return a;
|
|
2120
2120
|
};
|
|
2121
|
-
var __objRest$
|
|
2121
|
+
var __objRest$17 = (source, exclude) => {
|
|
2122
2122
|
var target = {};
|
|
2123
2123
|
for (var prop in source)
|
|
2124
|
-
if (__hasOwnProp$
|
|
2124
|
+
if (__hasOwnProp$1E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2125
2125
|
target[prop] = source[prop];
|
|
2126
|
-
if (source != null && __getOwnPropSymbols$
|
|
2127
|
-
for (var prop of __getOwnPropSymbols$
|
|
2128
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2126
|
+
if (source != null && __getOwnPropSymbols$1E)
|
|
2127
|
+
for (var prop of __getOwnPropSymbols$1E(source)) {
|
|
2128
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1E.call(source, prop))
|
|
2129
2129
|
target[prop] = source[prop];
|
|
2130
2130
|
}
|
|
2131
2131
|
return target;
|
|
@@ -2141,7 +2141,7 @@
|
|
|
2141
2141
|
direction = "row",
|
|
2142
2142
|
labelPlacement = "left",
|
|
2143
2143
|
labelSize = "md"
|
|
2144
|
-
} = _b, rest = __objRest$
|
|
2144
|
+
} = _b, rest = __objRest$17(_b, [
|
|
2145
2145
|
"name",
|
|
2146
2146
|
"label",
|
|
2147
2147
|
"variant",
|
|
@@ -2176,7 +2176,7 @@
|
|
|
2176
2176
|
},
|
|
2177
2177
|
/* @__PURE__ */ React.createElement(
|
|
2178
2178
|
Checkbox$1,
|
|
2179
|
-
__spreadValues$
|
|
2179
|
+
__spreadValues$1E({
|
|
2180
2180
|
name,
|
|
2181
2181
|
onChange: (e) => {
|
|
2182
2182
|
onChange(e);
|
|
@@ -2193,30 +2193,30 @@
|
|
|
2193
2193
|
);
|
|
2194
2194
|
});
|
|
2195
2195
|
|
|
2196
|
-
var __defProp$
|
|
2197
|
-
var __getOwnPropSymbols$
|
|
2198
|
-
var __hasOwnProp$
|
|
2199
|
-
var __propIsEnum$
|
|
2200
|
-
var __defNormalProp$
|
|
2201
|
-
var __spreadValues$
|
|
2196
|
+
var __defProp$1D = Object.defineProperty;
|
|
2197
|
+
var __getOwnPropSymbols$1D = Object.getOwnPropertySymbols;
|
|
2198
|
+
var __hasOwnProp$1D = Object.prototype.hasOwnProperty;
|
|
2199
|
+
var __propIsEnum$1D = Object.prototype.propertyIsEnumerable;
|
|
2200
|
+
var __defNormalProp$1D = (obj, key, value) => key in obj ? __defProp$1D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2201
|
+
var __spreadValues$1D = (a, b) => {
|
|
2202
2202
|
for (var prop in b || (b = {}))
|
|
2203
|
-
if (__hasOwnProp$
|
|
2204
|
-
__defNormalProp$
|
|
2205
|
-
if (__getOwnPropSymbols$
|
|
2206
|
-
for (var prop of __getOwnPropSymbols$
|
|
2207
|
-
if (__propIsEnum$
|
|
2208
|
-
__defNormalProp$
|
|
2203
|
+
if (__hasOwnProp$1D.call(b, prop))
|
|
2204
|
+
__defNormalProp$1D(a, prop, b[prop]);
|
|
2205
|
+
if (__getOwnPropSymbols$1D)
|
|
2206
|
+
for (var prop of __getOwnPropSymbols$1D(b)) {
|
|
2207
|
+
if (__propIsEnum$1D.call(b, prop))
|
|
2208
|
+
__defNormalProp$1D(a, prop, b[prop]);
|
|
2209
2209
|
}
|
|
2210
2210
|
return a;
|
|
2211
2211
|
};
|
|
2212
|
-
var __objRest$
|
|
2212
|
+
var __objRest$16 = (source, exclude) => {
|
|
2213
2213
|
var target = {};
|
|
2214
2214
|
for (var prop in source)
|
|
2215
|
-
if (__hasOwnProp$
|
|
2215
|
+
if (__hasOwnProp$1D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2216
2216
|
target[prop] = source[prop];
|
|
2217
|
-
if (source != null && __getOwnPropSymbols$
|
|
2218
|
-
for (var prop of __getOwnPropSymbols$
|
|
2219
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2217
|
+
if (source != null && __getOwnPropSymbols$1D)
|
|
2218
|
+
for (var prop of __getOwnPropSymbols$1D(source)) {
|
|
2219
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1D.call(source, prop))
|
|
2220
2220
|
target[prop] = source[prop];
|
|
2221
2221
|
}
|
|
2222
2222
|
return target;
|
|
@@ -2227,7 +2227,7 @@
|
|
|
2227
2227
|
icon,
|
|
2228
2228
|
"aria-label": ariaLabel,
|
|
2229
2229
|
children
|
|
2230
|
-
} = _b, rest = __objRest$
|
|
2230
|
+
} = _b, rest = __objRest$16(_b, [
|
|
2231
2231
|
"variant",
|
|
2232
2232
|
"icon",
|
|
2233
2233
|
"aria-label",
|
|
@@ -2237,7 +2237,7 @@
|
|
|
2237
2237
|
const IconWithSize = React.cloneElement(IconComponent, { size: rest.size });
|
|
2238
2238
|
return /* @__PURE__ */ React.createElement(
|
|
2239
2239
|
react.IconButton,
|
|
2240
|
-
__spreadValues$
|
|
2240
|
+
__spreadValues$1D({
|
|
2241
2241
|
variant,
|
|
2242
2242
|
icon: IconWithSize,
|
|
2243
2243
|
"aria-label": ariaLabel,
|
|
@@ -2328,30 +2328,30 @@
|
|
|
2328
2328
|
);
|
|
2329
2329
|
};
|
|
2330
2330
|
|
|
2331
|
-
var __defProp$
|
|
2332
|
-
var __getOwnPropSymbols$
|
|
2333
|
-
var __hasOwnProp$
|
|
2334
|
-
var __propIsEnum$
|
|
2335
|
-
var __defNormalProp$
|
|
2336
|
-
var __spreadValues$
|
|
2331
|
+
var __defProp$1C = Object.defineProperty;
|
|
2332
|
+
var __getOwnPropSymbols$1C = Object.getOwnPropertySymbols;
|
|
2333
|
+
var __hasOwnProp$1C = Object.prototype.hasOwnProperty;
|
|
2334
|
+
var __propIsEnum$1C = Object.prototype.propertyIsEnumerable;
|
|
2335
|
+
var __defNormalProp$1C = (obj, key, value) => key in obj ? __defProp$1C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2336
|
+
var __spreadValues$1C = (a, b) => {
|
|
2337
2337
|
for (var prop in b || (b = {}))
|
|
2338
|
-
if (__hasOwnProp$
|
|
2339
|
-
__defNormalProp$
|
|
2340
|
-
if (__getOwnPropSymbols$
|
|
2341
|
-
for (var prop of __getOwnPropSymbols$
|
|
2342
|
-
if (__propIsEnum$
|
|
2343
|
-
__defNormalProp$
|
|
2338
|
+
if (__hasOwnProp$1C.call(b, prop))
|
|
2339
|
+
__defNormalProp$1C(a, prop, b[prop]);
|
|
2340
|
+
if (__getOwnPropSymbols$1C)
|
|
2341
|
+
for (var prop of __getOwnPropSymbols$1C(b)) {
|
|
2342
|
+
if (__propIsEnum$1C.call(b, prop))
|
|
2343
|
+
__defNormalProp$1C(a, prop, b[prop]);
|
|
2344
2344
|
}
|
|
2345
2345
|
return a;
|
|
2346
2346
|
};
|
|
2347
|
-
var __objRest$
|
|
2347
|
+
var __objRest$15 = (source, exclude) => {
|
|
2348
2348
|
var target = {};
|
|
2349
2349
|
for (var prop in source)
|
|
2350
|
-
if (__hasOwnProp$
|
|
2350
|
+
if (__hasOwnProp$1C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2351
2351
|
target[prop] = source[prop];
|
|
2352
|
-
if (source != null && __getOwnPropSymbols$
|
|
2353
|
-
for (var prop of __getOwnPropSymbols$
|
|
2354
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2352
|
+
if (source != null && __getOwnPropSymbols$1C)
|
|
2353
|
+
for (var prop of __getOwnPropSymbols$1C(source)) {
|
|
2354
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1C.call(source, prop))
|
|
2355
2355
|
target[prop] = source[prop];
|
|
2356
2356
|
}
|
|
2357
2357
|
return target;
|
|
@@ -2366,7 +2366,7 @@
|
|
|
2366
2366
|
name,
|
|
2367
2367
|
size = "md",
|
|
2368
2368
|
popoverProps
|
|
2369
|
-
} = _b, rest = __objRest$
|
|
2369
|
+
} = _b, rest = __objRest$15(_b, [
|
|
2370
2370
|
"onChange",
|
|
2371
2371
|
"colors",
|
|
2372
2372
|
"expandedColors",
|
|
@@ -2425,14 +2425,14 @@
|
|
|
2425
2425
|
};
|
|
2426
2426
|
return /* @__PURE__ */ React.createElement(react.Box, { "data-testid": "color-picker-test-id" }, /* @__PURE__ */ React.createElement(
|
|
2427
2427
|
react.Popover,
|
|
2428
|
-
__spreadValues$
|
|
2428
|
+
__spreadValues$1C({
|
|
2429
2429
|
isOpen,
|
|
2430
2430
|
onClose,
|
|
2431
2431
|
initialFocusRef
|
|
2432
2432
|
}, popoverProps),
|
|
2433
2433
|
/* @__PURE__ */ React.createElement(react.PopoverTrigger, null, /* @__PURE__ */ React.createElement(
|
|
2434
2434
|
IconButton,
|
|
2435
|
-
__spreadValues$
|
|
2435
|
+
__spreadValues$1C({
|
|
2436
2436
|
onClick: onToggle,
|
|
2437
2437
|
"aria-label": name || "color picker",
|
|
2438
2438
|
name,
|
|
@@ -2481,30 +2481,30 @@
|
|
|
2481
2481
|
));
|
|
2482
2482
|
};
|
|
2483
2483
|
|
|
2484
|
-
var __defProp$
|
|
2485
|
-
var __getOwnPropSymbols$
|
|
2486
|
-
var __hasOwnProp$
|
|
2487
|
-
var __propIsEnum$
|
|
2488
|
-
var __defNormalProp$
|
|
2489
|
-
var __spreadValues$
|
|
2484
|
+
var __defProp$1B = Object.defineProperty;
|
|
2485
|
+
var __getOwnPropSymbols$1B = Object.getOwnPropertySymbols;
|
|
2486
|
+
var __hasOwnProp$1B = Object.prototype.hasOwnProperty;
|
|
2487
|
+
var __propIsEnum$1B = Object.prototype.propertyIsEnumerable;
|
|
2488
|
+
var __defNormalProp$1B = (obj, key, value) => key in obj ? __defProp$1B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2489
|
+
var __spreadValues$1B = (a, b) => {
|
|
2490
2490
|
for (var prop in b || (b = {}))
|
|
2491
|
-
if (__hasOwnProp$
|
|
2492
|
-
__defNormalProp$
|
|
2493
|
-
if (__getOwnPropSymbols$
|
|
2494
|
-
for (var prop of __getOwnPropSymbols$
|
|
2495
|
-
if (__propIsEnum$
|
|
2496
|
-
__defNormalProp$
|
|
2491
|
+
if (__hasOwnProp$1B.call(b, prop))
|
|
2492
|
+
__defNormalProp$1B(a, prop, b[prop]);
|
|
2493
|
+
if (__getOwnPropSymbols$1B)
|
|
2494
|
+
for (var prop of __getOwnPropSymbols$1B(b)) {
|
|
2495
|
+
if (__propIsEnum$1B.call(b, prop))
|
|
2496
|
+
__defNormalProp$1B(a, prop, b[prop]);
|
|
2497
2497
|
}
|
|
2498
2498
|
return a;
|
|
2499
2499
|
};
|
|
2500
|
-
var __objRest$
|
|
2500
|
+
var __objRest$14 = (source, exclude) => {
|
|
2501
2501
|
var target = {};
|
|
2502
2502
|
for (var prop in source)
|
|
2503
|
-
if (__hasOwnProp$
|
|
2503
|
+
if (__hasOwnProp$1B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2504
2504
|
target[prop] = source[prop];
|
|
2505
|
-
if (source != null && __getOwnPropSymbols$
|
|
2506
|
-
for (var prop of __getOwnPropSymbols$
|
|
2507
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2505
|
+
if (source != null && __getOwnPropSymbols$1B)
|
|
2506
|
+
for (var prop of __getOwnPropSymbols$1B(source)) {
|
|
2507
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1B.call(source, prop))
|
|
2508
2508
|
target[prop] = source[prop];
|
|
2509
2509
|
}
|
|
2510
2510
|
return target;
|
|
@@ -2516,7 +2516,7 @@
|
|
|
2516
2516
|
direction,
|
|
2517
2517
|
isRequired,
|
|
2518
2518
|
validate
|
|
2519
|
-
} = _b, rest = __objRest$
|
|
2519
|
+
} = _b, rest = __objRest$14(_b, [
|
|
2520
2520
|
"name",
|
|
2521
2521
|
"label",
|
|
2522
2522
|
"direction",
|
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
},
|
|
2535
2535
|
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
2536
2536
|
ColorPicker$1,
|
|
2537
|
-
__spreadValues$
|
|
2537
|
+
__spreadValues$1B({
|
|
2538
2538
|
name,
|
|
2539
2539
|
onChange,
|
|
2540
2540
|
value
|
|
@@ -2543,21 +2543,21 @@
|
|
|
2543
2543
|
);
|
|
2544
2544
|
};
|
|
2545
2545
|
|
|
2546
|
-
var __defProp$
|
|
2546
|
+
var __defProp$1A = Object.defineProperty;
|
|
2547
2547
|
var __defProps$u = Object.defineProperties;
|
|
2548
2548
|
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
2549
|
-
var __getOwnPropSymbols$
|
|
2550
|
-
var __hasOwnProp$
|
|
2551
|
-
var __propIsEnum$
|
|
2552
|
-
var __defNormalProp$
|
|
2553
|
-
var __spreadValues$
|
|
2549
|
+
var __getOwnPropSymbols$1A = Object.getOwnPropertySymbols;
|
|
2550
|
+
var __hasOwnProp$1A = Object.prototype.hasOwnProperty;
|
|
2551
|
+
var __propIsEnum$1A = Object.prototype.propertyIsEnumerable;
|
|
2552
|
+
var __defNormalProp$1A = (obj, key, value) => key in obj ? __defProp$1A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2553
|
+
var __spreadValues$1A = (a, b) => {
|
|
2554
2554
|
for (var prop in b || (b = {}))
|
|
2555
|
-
if (__hasOwnProp$
|
|
2556
|
-
__defNormalProp$
|
|
2557
|
-
if (__getOwnPropSymbols$
|
|
2558
|
-
for (var prop of __getOwnPropSymbols$
|
|
2559
|
-
if (__propIsEnum$
|
|
2560
|
-
__defNormalProp$
|
|
2555
|
+
if (__hasOwnProp$1A.call(b, prop))
|
|
2556
|
+
__defNormalProp$1A(a, prop, b[prop]);
|
|
2557
|
+
if (__getOwnPropSymbols$1A)
|
|
2558
|
+
for (var prop of __getOwnPropSymbols$1A(b)) {
|
|
2559
|
+
if (__propIsEnum$1A.call(b, prop))
|
|
2560
|
+
__defNormalProp$1A(a, prop, b[prop]);
|
|
2561
2561
|
}
|
|
2562
2562
|
return a;
|
|
2563
2563
|
};
|
|
@@ -2565,7 +2565,7 @@
|
|
|
2565
2565
|
const FlipButtonContext = React.createContext(null);
|
|
2566
2566
|
const useFlipButtonState = (props, isMulti) => isMulti ? checkbox.useCheckboxGroupState(props) : radio.useRadioGroupState(props);
|
|
2567
2567
|
const useFlipButtonGroup = (props, state, isMulti) => {
|
|
2568
|
-
const propsWithLabel = __spreadProps$u(__spreadValues$
|
|
2568
|
+
const propsWithLabel = __spreadProps$u(__spreadValues$1A({}, props), {
|
|
2569
2569
|
"aria-label": `${isMulti ? "Checkbox" : "Radio"}-button-group`
|
|
2570
2570
|
});
|
|
2571
2571
|
return isMulti ? checkbox$1.useCheckboxGroup(
|
|
@@ -2582,33 +2582,33 @@
|
|
|
2582
2582
|
return { state, flipButtonGroupProps };
|
|
2583
2583
|
};
|
|
2584
2584
|
|
|
2585
|
-
var __defProp$
|
|
2585
|
+
var __defProp$1z = Object.defineProperty;
|
|
2586
2586
|
var __defProps$t = Object.defineProperties;
|
|
2587
2587
|
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
2588
|
-
var __getOwnPropSymbols$
|
|
2589
|
-
var __hasOwnProp$
|
|
2590
|
-
var __propIsEnum$
|
|
2591
|
-
var __defNormalProp$
|
|
2592
|
-
var __spreadValues$
|
|
2588
|
+
var __getOwnPropSymbols$1z = Object.getOwnPropertySymbols;
|
|
2589
|
+
var __hasOwnProp$1z = Object.prototype.hasOwnProperty;
|
|
2590
|
+
var __propIsEnum$1z = Object.prototype.propertyIsEnumerable;
|
|
2591
|
+
var __defNormalProp$1z = (obj, key, value) => key in obj ? __defProp$1z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2592
|
+
var __spreadValues$1z = (a, b) => {
|
|
2593
2593
|
for (var prop in b || (b = {}))
|
|
2594
|
-
if (__hasOwnProp$
|
|
2595
|
-
__defNormalProp$
|
|
2596
|
-
if (__getOwnPropSymbols$
|
|
2597
|
-
for (var prop of __getOwnPropSymbols$
|
|
2598
|
-
if (__propIsEnum$
|
|
2599
|
-
__defNormalProp$
|
|
2594
|
+
if (__hasOwnProp$1z.call(b, prop))
|
|
2595
|
+
__defNormalProp$1z(a, prop, b[prop]);
|
|
2596
|
+
if (__getOwnPropSymbols$1z)
|
|
2597
|
+
for (var prop of __getOwnPropSymbols$1z(b)) {
|
|
2598
|
+
if (__propIsEnum$1z.call(b, prop))
|
|
2599
|
+
__defNormalProp$1z(a, prop, b[prop]);
|
|
2600
2600
|
}
|
|
2601
2601
|
return a;
|
|
2602
2602
|
};
|
|
2603
2603
|
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
2604
|
-
var __objRest$
|
|
2604
|
+
var __objRest$13 = (source, exclude) => {
|
|
2605
2605
|
var target = {};
|
|
2606
2606
|
for (var prop in source)
|
|
2607
|
-
if (__hasOwnProp$
|
|
2607
|
+
if (__hasOwnProp$1z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2608
2608
|
target[prop] = source[prop];
|
|
2609
|
-
if (source != null && __getOwnPropSymbols$
|
|
2610
|
-
for (var prop of __getOwnPropSymbols$
|
|
2611
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2609
|
+
if (source != null && __getOwnPropSymbols$1z)
|
|
2610
|
+
for (var prop of __getOwnPropSymbols$1z(source)) {
|
|
2611
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1z.call(source, prop))
|
|
2612
2612
|
target[prop] = source[prop];
|
|
2613
2613
|
}
|
|
2614
2614
|
return target;
|
|
@@ -2623,7 +2623,7 @@
|
|
|
2623
2623
|
icon,
|
|
2624
2624
|
value,
|
|
2625
2625
|
iconPlacement = "left"
|
|
2626
|
-
} = _a, rest = __objRest$
|
|
2626
|
+
} = _a, rest = __objRest$13(_a, [
|
|
2627
2627
|
"children",
|
|
2628
2628
|
"size",
|
|
2629
2629
|
"variant",
|
|
@@ -2647,7 +2647,7 @@
|
|
|
2647
2647
|
};
|
|
2648
2648
|
const focusRing = isFocused ? focusStyles : {};
|
|
2649
2649
|
const isSelected = isMulti ? state.isSelected(value) : state.selectedValue === value;
|
|
2650
|
-
const flipButtonProps = __spreadProps$t(__spreadValues$
|
|
2650
|
+
const flipButtonProps = __spreadProps$t(__spreadValues$1z({}, utils.mergeProps(inputProps, focusProps)), {
|
|
2651
2651
|
ref,
|
|
2652
2652
|
style: { opacity: "0", width: "0", height: "0" },
|
|
2653
2653
|
"aria-label": isMulti ? "Checkbox-input" : "Radio-input"
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
as: "label",
|
|
2660
2660
|
cursor: "pointer"
|
|
2661
2661
|
};
|
|
2662
|
-
return typeof children === "function" ? children(__spreadValues$
|
|
2662
|
+
return typeof children === "function" ? children(__spreadValues$1z({
|
|
2663
2663
|
state,
|
|
2664
2664
|
containerProps,
|
|
2665
2665
|
flipButtonProps,
|
|
@@ -2678,39 +2678,39 @@
|
|
|
2678
2678
|
"aria-disabled": isDisabled,
|
|
2679
2679
|
as: "label"
|
|
2680
2680
|
},
|
|
2681
|
-
/* @__PURE__ */ React.createElement("input", __spreadValues$
|
|
2681
|
+
/* @__PURE__ */ React.createElement("input", __spreadValues$1z({}, flipButtonProps)),
|
|
2682
2682
|
icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon$1, { as: icon || icons.CheckSolid, sx: buttonIcon }) : isSelected && iconPlacement !== "none" && /* @__PURE__ */ React.createElement(react.SlideFade, { in: isSelected }, /* @__PURE__ */ React.createElement(Icon$1, { as: icon || icons.CheckSolid, sx: buttonIcon })),
|
|
2683
2683
|
/* @__PURE__ */ React.createElement(react.Text, { textAlign: "center" }, children)
|
|
2684
2684
|
);
|
|
2685
2685
|
};
|
|
2686
2686
|
|
|
2687
|
-
var __defProp$
|
|
2687
|
+
var __defProp$1y = Object.defineProperty;
|
|
2688
2688
|
var __defProps$s = Object.defineProperties;
|
|
2689
2689
|
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
2690
|
-
var __getOwnPropSymbols$
|
|
2691
|
-
var __hasOwnProp$
|
|
2692
|
-
var __propIsEnum$
|
|
2693
|
-
var __defNormalProp$
|
|
2694
|
-
var __spreadValues$
|
|
2690
|
+
var __getOwnPropSymbols$1y = Object.getOwnPropertySymbols;
|
|
2691
|
+
var __hasOwnProp$1y = Object.prototype.hasOwnProperty;
|
|
2692
|
+
var __propIsEnum$1y = Object.prototype.propertyIsEnumerable;
|
|
2693
|
+
var __defNormalProp$1y = (obj, key, value) => key in obj ? __defProp$1y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2694
|
+
var __spreadValues$1y = (a, b) => {
|
|
2695
2695
|
for (var prop in b || (b = {}))
|
|
2696
|
-
if (__hasOwnProp$
|
|
2697
|
-
__defNormalProp$
|
|
2698
|
-
if (__getOwnPropSymbols$
|
|
2699
|
-
for (var prop of __getOwnPropSymbols$
|
|
2700
|
-
if (__propIsEnum$
|
|
2701
|
-
__defNormalProp$
|
|
2696
|
+
if (__hasOwnProp$1y.call(b, prop))
|
|
2697
|
+
__defNormalProp$1y(a, prop, b[prop]);
|
|
2698
|
+
if (__getOwnPropSymbols$1y)
|
|
2699
|
+
for (var prop of __getOwnPropSymbols$1y(b)) {
|
|
2700
|
+
if (__propIsEnum$1y.call(b, prop))
|
|
2701
|
+
__defNormalProp$1y(a, prop, b[prop]);
|
|
2702
2702
|
}
|
|
2703
2703
|
return a;
|
|
2704
2704
|
};
|
|
2705
2705
|
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
2706
|
-
var __objRest$
|
|
2706
|
+
var __objRest$12 = (source, exclude) => {
|
|
2707
2707
|
var target = {};
|
|
2708
2708
|
for (var prop in source)
|
|
2709
|
-
if (__hasOwnProp$
|
|
2709
|
+
if (__hasOwnProp$1y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2710
2710
|
target[prop] = source[prop];
|
|
2711
|
-
if (source != null && __getOwnPropSymbols$
|
|
2712
|
-
for (var prop of __getOwnPropSymbols$
|
|
2713
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2711
|
+
if (source != null && __getOwnPropSymbols$1y)
|
|
2712
|
+
for (var prop of __getOwnPropSymbols$1y(source)) {
|
|
2713
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1y.call(source, prop))
|
|
2714
2714
|
target[prop] = source[prop];
|
|
2715
2715
|
}
|
|
2716
2716
|
return target;
|
|
@@ -2727,7 +2727,7 @@
|
|
|
2727
2727
|
variant,
|
|
2728
2728
|
icon,
|
|
2729
2729
|
sx = {}
|
|
2730
|
-
} = _a, rest = __objRest$
|
|
2730
|
+
} = _a, rest = __objRest$12(_a, [
|
|
2731
2731
|
"isMulti",
|
|
2732
2732
|
"name",
|
|
2733
2733
|
"children",
|
|
@@ -2742,7 +2742,7 @@
|
|
|
2742
2742
|
const { state, flipButtonGroupProps } = useFlipButton(props, isMulti);
|
|
2743
2743
|
const numberOfButtons = React.Children.count(children);
|
|
2744
2744
|
const childrenWithProps = React.Children.toArray(children).map(
|
|
2745
|
-
(child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$
|
|
2745
|
+
(child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$1y({
|
|
2746
2746
|
key: child.props.value,
|
|
2747
2747
|
isMulti,
|
|
2748
2748
|
variant,
|
|
@@ -2761,7 +2761,7 @@
|
|
|
2761
2761
|
const restWithoutOnChange = ramda.omit(["onChange"], rest);
|
|
2762
2762
|
return /* @__PURE__ */ React.createElement(
|
|
2763
2763
|
react.Stack,
|
|
2764
|
-
__spreadValues$
|
|
2764
|
+
__spreadValues$1y(__spreadProps$s(__spreadValues$1y({}, flipButtonGroupProps), {
|
|
2765
2765
|
direction,
|
|
2766
2766
|
id: name,
|
|
2767
2767
|
spacing: 0,
|
|
@@ -2771,30 +2771,30 @@
|
|
|
2771
2771
|
);
|
|
2772
2772
|
};
|
|
2773
2773
|
|
|
2774
|
-
var __defProp$
|
|
2775
|
-
var __getOwnPropSymbols$
|
|
2776
|
-
var __hasOwnProp$
|
|
2777
|
-
var __propIsEnum$
|
|
2778
|
-
var __defNormalProp$
|
|
2779
|
-
var __spreadValues$
|
|
2774
|
+
var __defProp$1x = Object.defineProperty;
|
|
2775
|
+
var __getOwnPropSymbols$1x = Object.getOwnPropertySymbols;
|
|
2776
|
+
var __hasOwnProp$1x = Object.prototype.hasOwnProperty;
|
|
2777
|
+
var __propIsEnum$1x = Object.prototype.propertyIsEnumerable;
|
|
2778
|
+
var __defNormalProp$1x = (obj, key, value) => key in obj ? __defProp$1x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2779
|
+
var __spreadValues$1x = (a, b) => {
|
|
2780
2780
|
for (var prop in b || (b = {}))
|
|
2781
|
-
if (__hasOwnProp$
|
|
2782
|
-
__defNormalProp$
|
|
2783
|
-
if (__getOwnPropSymbols$
|
|
2784
|
-
for (var prop of __getOwnPropSymbols$
|
|
2785
|
-
if (__propIsEnum$
|
|
2786
|
-
__defNormalProp$
|
|
2781
|
+
if (__hasOwnProp$1x.call(b, prop))
|
|
2782
|
+
__defNormalProp$1x(a, prop, b[prop]);
|
|
2783
|
+
if (__getOwnPropSymbols$1x)
|
|
2784
|
+
for (var prop of __getOwnPropSymbols$1x(b)) {
|
|
2785
|
+
if (__propIsEnum$1x.call(b, prop))
|
|
2786
|
+
__defNormalProp$1x(a, prop, b[prop]);
|
|
2787
2787
|
}
|
|
2788
2788
|
return a;
|
|
2789
2789
|
};
|
|
2790
|
-
var __objRest$
|
|
2790
|
+
var __objRest$11 = (source, exclude) => {
|
|
2791
2791
|
var target = {};
|
|
2792
2792
|
for (var prop in source)
|
|
2793
|
-
if (__hasOwnProp$
|
|
2793
|
+
if (__hasOwnProp$1x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2794
2794
|
target[prop] = source[prop];
|
|
2795
|
-
if (source != null && __getOwnPropSymbols$
|
|
2796
|
-
for (var prop of __getOwnPropSymbols$
|
|
2797
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2795
|
+
if (source != null && __getOwnPropSymbols$1x)
|
|
2796
|
+
for (var prop of __getOwnPropSymbols$1x(source)) {
|
|
2797
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1x.call(source, prop))
|
|
2798
2798
|
target[prop] = source[prop];
|
|
2799
2799
|
}
|
|
2800
2800
|
return target;
|
|
@@ -2809,7 +2809,7 @@
|
|
|
2809
2809
|
iconPlacement = "left",
|
|
2810
2810
|
onChange: onChangeCallback = ramda.identity,
|
|
2811
2811
|
validate
|
|
2812
|
-
} = _b, rest = __objRest$
|
|
2812
|
+
} = _b, rest = __objRest$11(_b, [
|
|
2813
2813
|
"name",
|
|
2814
2814
|
"label",
|
|
2815
2815
|
"children",
|
|
@@ -2831,7 +2831,7 @@
|
|
|
2831
2831
|
},
|
|
2832
2832
|
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
2833
2833
|
FlipButtonGroup,
|
|
2834
|
-
__spreadValues$
|
|
2834
|
+
__spreadValues$1x({
|
|
2835
2835
|
name,
|
|
2836
2836
|
onChange: (e) => {
|
|
2837
2837
|
onChange(e);
|
|
@@ -2846,21 +2846,21 @@
|
|
|
2846
2846
|
);
|
|
2847
2847
|
});
|
|
2848
2848
|
|
|
2849
|
-
var __defProp$
|
|
2850
|
-
var __defProps$r = Object.defineProperties;
|
|
2851
|
-
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
2852
|
-
var __getOwnPropSymbols$
|
|
2853
|
-
var __hasOwnProp$
|
|
2854
|
-
var __propIsEnum$
|
|
2855
|
-
var __defNormalProp$
|
|
2856
|
-
var __spreadValues$
|
|
2849
|
+
var __defProp$1w = Object.defineProperty;
|
|
2850
|
+
var __defProps$r = Object.defineProperties;
|
|
2851
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
2852
|
+
var __getOwnPropSymbols$1w = Object.getOwnPropertySymbols;
|
|
2853
|
+
var __hasOwnProp$1w = Object.prototype.hasOwnProperty;
|
|
2854
|
+
var __propIsEnum$1w = Object.prototype.propertyIsEnumerable;
|
|
2855
|
+
var __defNormalProp$1w = (obj, key, value) => key in obj ? __defProp$1w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2856
|
+
var __spreadValues$1w = (a, b) => {
|
|
2857
2857
|
for (var prop in b || (b = {}))
|
|
2858
|
-
if (__hasOwnProp$
|
|
2859
|
-
__defNormalProp$
|
|
2860
|
-
if (__getOwnPropSymbols$
|
|
2861
|
-
for (var prop of __getOwnPropSymbols$
|
|
2862
|
-
if (__propIsEnum$
|
|
2863
|
-
__defNormalProp$
|
|
2858
|
+
if (__hasOwnProp$1w.call(b, prop))
|
|
2859
|
+
__defNormalProp$1w(a, prop, b[prop]);
|
|
2860
|
+
if (__getOwnPropSymbols$1w)
|
|
2861
|
+
for (var prop of __getOwnPropSymbols$1w(b)) {
|
|
2862
|
+
if (__propIsEnum$1w.call(b, prop))
|
|
2863
|
+
__defNormalProp$1w(a, prop, b[prop]);
|
|
2864
2864
|
}
|
|
2865
2865
|
return a;
|
|
2866
2866
|
};
|
|
@@ -2871,7 +2871,7 @@
|
|
|
2871
2871
|
const { buttonProps } = button.useButton(props, ref);
|
|
2872
2872
|
return /* @__PURE__ */ React.createElement(
|
|
2873
2873
|
Button$1,
|
|
2874
|
-
__spreadProps$r(__spreadValues$
|
|
2874
|
+
__spreadProps$r(__spreadValues$1w({}, buttonProps), {
|
|
2875
2875
|
ref,
|
|
2876
2876
|
size: "sm",
|
|
2877
2877
|
boxSize: 8,
|
|
@@ -2884,21 +2884,21 @@
|
|
|
2884
2884
|
);
|
|
2885
2885
|
};
|
|
2886
2886
|
|
|
2887
|
-
var __defProp$
|
|
2887
|
+
var __defProp$1v = Object.defineProperty;
|
|
2888
2888
|
var __defProps$q = Object.defineProperties;
|
|
2889
2889
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2890
|
-
var __getOwnPropSymbols$
|
|
2891
|
-
var __hasOwnProp$
|
|
2892
|
-
var __propIsEnum$
|
|
2893
|
-
var __defNormalProp$
|
|
2894
|
-
var __spreadValues$
|
|
2890
|
+
var __getOwnPropSymbols$1v = Object.getOwnPropertySymbols;
|
|
2891
|
+
var __hasOwnProp$1v = Object.prototype.hasOwnProperty;
|
|
2892
|
+
var __propIsEnum$1v = Object.prototype.propertyIsEnumerable;
|
|
2893
|
+
var __defNormalProp$1v = (obj, key, value) => key in obj ? __defProp$1v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2894
|
+
var __spreadValues$1v = (a, b) => {
|
|
2895
2895
|
for (var prop in b || (b = {}))
|
|
2896
|
-
if (__hasOwnProp$
|
|
2897
|
-
__defNormalProp$
|
|
2898
|
-
if (__getOwnPropSymbols$
|
|
2899
|
-
for (var prop of __getOwnPropSymbols$
|
|
2900
|
-
if (__propIsEnum$
|
|
2901
|
-
__defNormalProp$
|
|
2896
|
+
if (__hasOwnProp$1v.call(b, prop))
|
|
2897
|
+
__defNormalProp$1v(a, prop, b[prop]);
|
|
2898
|
+
if (__getOwnPropSymbols$1v)
|
|
2899
|
+
for (var prop of __getOwnPropSymbols$1v(b)) {
|
|
2900
|
+
if (__propIsEnum$1v.call(b, prop))
|
|
2901
|
+
__defNormalProp$1v(a, prop, b[prop]);
|
|
2902
2902
|
}
|
|
2903
2903
|
return a;
|
|
2904
2904
|
};
|
|
@@ -2911,7 +2911,7 @@
|
|
|
2911
2911
|
const minWidth = `${String(segment.maxValue).length}ch`;
|
|
2912
2912
|
return /* @__PURE__ */ React.createElement(
|
|
2913
2913
|
react.Box,
|
|
2914
|
-
__spreadProps$q(__spreadValues$
|
|
2914
|
+
__spreadProps$q(__spreadValues$1v({}, segmentProps), {
|
|
2915
2915
|
ref,
|
|
2916
2916
|
__css: dateSegment,
|
|
2917
2917
|
minWidth: isDivider ? 0 : minWidth,
|
|
@@ -2931,28 +2931,28 @@
|
|
|
2931
2931
|
const formatQuery = (query) => mapFormat[ramda.toLower(query)[0]];
|
|
2932
2932
|
const delimeterIncluded = /([.,:;|\-/\\])/;
|
|
2933
2933
|
|
|
2934
|
-
var __defProp$
|
|
2934
|
+
var __defProp$1u = Object.defineProperty;
|
|
2935
2935
|
var __defProps$p = Object.defineProperties;
|
|
2936
2936
|
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
2937
|
-
var __getOwnPropSymbols$
|
|
2938
|
-
var __hasOwnProp$
|
|
2939
|
-
var __propIsEnum$
|
|
2940
|
-
var __defNormalProp$
|
|
2941
|
-
var __spreadValues$
|
|
2937
|
+
var __getOwnPropSymbols$1u = Object.getOwnPropertySymbols;
|
|
2938
|
+
var __hasOwnProp$1u = Object.prototype.hasOwnProperty;
|
|
2939
|
+
var __propIsEnum$1u = Object.prototype.propertyIsEnumerable;
|
|
2940
|
+
var __defNormalProp$1u = (obj, key, value) => key in obj ? __defProp$1u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2941
|
+
var __spreadValues$1u = (a, b) => {
|
|
2942
2942
|
for (var prop in b || (b = {}))
|
|
2943
|
-
if (__hasOwnProp$
|
|
2944
|
-
__defNormalProp$
|
|
2945
|
-
if (__getOwnPropSymbols$
|
|
2946
|
-
for (var prop of __getOwnPropSymbols$
|
|
2947
|
-
if (__propIsEnum$
|
|
2948
|
-
__defNormalProp$
|
|
2943
|
+
if (__hasOwnProp$1u.call(b, prop))
|
|
2944
|
+
__defNormalProp$1u(a, prop, b[prop]);
|
|
2945
|
+
if (__getOwnPropSymbols$1u)
|
|
2946
|
+
for (var prop of __getOwnPropSymbols$1u(b)) {
|
|
2947
|
+
if (__propIsEnum$1u.call(b, prop))
|
|
2948
|
+
__defNormalProp$1u(a, prop, b[prop]);
|
|
2949
2949
|
}
|
|
2950
2950
|
return a;
|
|
2951
2951
|
};
|
|
2952
2952
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2953
2953
|
const DateField = (props) => {
|
|
2954
2954
|
const ref = React.useRef(null);
|
|
2955
|
-
const state = datepicker$1.useDateFieldState(__spreadProps$p(__spreadValues$
|
|
2955
|
+
const state = datepicker$1.useDateFieldState(__spreadProps$p(__spreadValues$1u({}, props), {
|
|
2956
2956
|
/* Hard coding the United Kingdom locale,
|
|
2957
2957
|
this enforces using english characters e.g.
|
|
2958
2958
|
yyyy and not other such as åååå or chinese, which prevents hard to predict bugs */
|
|
@@ -2965,13 +2965,13 @@
|
|
|
2965
2965
|
const { dateFormat = "dd/mm/yyyy" } = props;
|
|
2966
2966
|
const getMatchingSegment = (query, index) => ramda.find(
|
|
2967
2967
|
(segment) => segment.placeholder === formatQuery(query)
|
|
2968
|
-
)(segments) || __spreadProps$p(__spreadValues$
|
|
2968
|
+
)(segments) || __spreadProps$p(__spreadValues$1u({}, segments[index]), { text: query });
|
|
2969
2969
|
const sortedSegments = ramda.split(delimeterIncluded, dateFormat).map(
|
|
2970
2970
|
(query, index) => getMatchingSegment(query, index)
|
|
2971
2971
|
);
|
|
2972
2972
|
return /* @__PURE__ */ React.createElement(
|
|
2973
2973
|
react.Box,
|
|
2974
|
-
__spreadProps$p(__spreadValues$
|
|
2974
|
+
__spreadProps$p(__spreadValues$1u({}, fieldProps), {
|
|
2975
2975
|
ref,
|
|
2976
2976
|
display: "flex",
|
|
2977
2977
|
__css: dateField,
|
|
@@ -2984,44 +2984,44 @@
|
|
|
2984
2984
|
);
|
|
2985
2985
|
};
|
|
2986
2986
|
|
|
2987
|
-
var __defProp$
|
|
2987
|
+
var __defProp$1t = Object.defineProperty;
|
|
2988
2988
|
var __defProps$o = Object.defineProperties;
|
|
2989
2989
|
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2990
|
-
var __getOwnPropSymbols$
|
|
2991
|
-
var __hasOwnProp$
|
|
2992
|
-
var __propIsEnum$
|
|
2993
|
-
var __defNormalProp$
|
|
2994
|
-
var __spreadValues$
|
|
2990
|
+
var __getOwnPropSymbols$1t = Object.getOwnPropertySymbols;
|
|
2991
|
+
var __hasOwnProp$1t = Object.prototype.hasOwnProperty;
|
|
2992
|
+
var __propIsEnum$1t = Object.prototype.propertyIsEnumerable;
|
|
2993
|
+
var __defNormalProp$1t = (obj, key, value) => key in obj ? __defProp$1t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2994
|
+
var __spreadValues$1t = (a, b) => {
|
|
2995
2995
|
for (var prop in b || (b = {}))
|
|
2996
|
-
if (__hasOwnProp$
|
|
2997
|
-
__defNormalProp$
|
|
2998
|
-
if (__getOwnPropSymbols$
|
|
2999
|
-
for (var prop of __getOwnPropSymbols$
|
|
3000
|
-
if (__propIsEnum$
|
|
3001
|
-
__defNormalProp$
|
|
2996
|
+
if (__hasOwnProp$1t.call(b, prop))
|
|
2997
|
+
__defNormalProp$1t(a, prop, b[prop]);
|
|
2998
|
+
if (__getOwnPropSymbols$1t)
|
|
2999
|
+
for (var prop of __getOwnPropSymbols$1t(b)) {
|
|
3000
|
+
if (__propIsEnum$1t.call(b, prop))
|
|
3001
|
+
__defNormalProp$1t(a, prop, b[prop]);
|
|
3002
3002
|
}
|
|
3003
3003
|
return a;
|
|
3004
3004
|
};
|
|
3005
3005
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
3006
|
-
var __objRest
|
|
3006
|
+
var __objRest$10 = (source, exclude) => {
|
|
3007
3007
|
var target = {};
|
|
3008
3008
|
for (var prop in source)
|
|
3009
|
-
if (__hasOwnProp$
|
|
3009
|
+
if (__hasOwnProp$1t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3010
3010
|
target[prop] = source[prop];
|
|
3011
|
-
if (source != null && __getOwnPropSymbols$
|
|
3012
|
-
for (var prop of __getOwnPropSymbols$
|
|
3013
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3011
|
+
if (source != null && __getOwnPropSymbols$1t)
|
|
3012
|
+
for (var prop of __getOwnPropSymbols$1t(source)) {
|
|
3013
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1t.call(source, prop))
|
|
3014
3014
|
target[prop] = source[prop];
|
|
3015
3015
|
}
|
|
3016
3016
|
return target;
|
|
3017
3017
|
};
|
|
3018
3018
|
const StyledField = React.forwardRef(
|
|
3019
3019
|
(_a, ref) => {
|
|
3020
|
-
var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest
|
|
3020
|
+
var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest$10(_b, ["isInvalid", "isDisabled", "children", "variant"]);
|
|
3021
3021
|
const { styledField } = react.useMultiStyleConfig("DatePicker", { variant });
|
|
3022
3022
|
return /* @__PURE__ */ React.createElement(
|
|
3023
3023
|
react.Box,
|
|
3024
|
-
__spreadProps$o(__spreadValues$
|
|
3024
|
+
__spreadProps$o(__spreadValues$1t({}, rest), {
|
|
3025
3025
|
ref,
|
|
3026
3026
|
"aria-invalid": isInvalid,
|
|
3027
3027
|
"aria-disabled": isDisabled,
|
|
@@ -3035,7 +3035,27 @@
|
|
|
3035
3035
|
}
|
|
3036
3036
|
);
|
|
3037
3037
|
|
|
3038
|
+
var __defProp$1s = Object.defineProperty;
|
|
3039
|
+
var __getOwnPropSymbols$1s = Object.getOwnPropertySymbols;
|
|
3040
|
+
var __hasOwnProp$1s = Object.prototype.hasOwnProperty;
|
|
3041
|
+
var __propIsEnum$1s = Object.prototype.propertyIsEnumerable;
|
|
3042
|
+
var __defNormalProp$1s = (obj, key, value) => key in obj ? __defProp$1s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3043
|
+
var __spreadValues$1s = (a, b) => {
|
|
3044
|
+
for (var prop in b || (b = {}))
|
|
3045
|
+
if (__hasOwnProp$1s.call(b, prop))
|
|
3046
|
+
__defNormalProp$1s(a, prop, b[prop]);
|
|
3047
|
+
if (__getOwnPropSymbols$1s)
|
|
3048
|
+
for (var prop of __getOwnPropSymbols$1s(b)) {
|
|
3049
|
+
if (__propIsEnum$1s.call(b, prop))
|
|
3050
|
+
__defNormalProp$1s(a, prop, b[prop]);
|
|
3051
|
+
}
|
|
3052
|
+
return a;
|
|
3053
|
+
};
|
|
3054
|
+
const Table$1 = (props) => /* @__PURE__ */ React.createElement(react.Table, __spreadValues$1s({}, props));
|
|
3055
|
+
|
|
3038
3056
|
var __defProp$1r = Object.defineProperty;
|
|
3057
|
+
var __defProps$n = Object.defineProperties;
|
|
3058
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3039
3059
|
var __getOwnPropSymbols$1r = Object.getOwnPropertySymbols;
|
|
3040
3060
|
var __hasOwnProp$1r = Object.prototype.hasOwnProperty;
|
|
3041
3061
|
var __propIsEnum$1r = Object.prototype.propertyIsEnumerable;
|
|
@@ -3051,26 +3071,6 @@
|
|
|
3051
3071
|
}
|
|
3052
3072
|
return a;
|
|
3053
3073
|
};
|
|
3054
|
-
const Table$1 = (props) => /* @__PURE__ */ React.createElement(react.Table, __spreadValues$1r({}, props));
|
|
3055
|
-
|
|
3056
|
-
var __defProp$1q = Object.defineProperty;
|
|
3057
|
-
var __defProps$n = Object.defineProperties;
|
|
3058
|
-
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3059
|
-
var __getOwnPropSymbols$1q = Object.getOwnPropertySymbols;
|
|
3060
|
-
var __hasOwnProp$1q = Object.prototype.hasOwnProperty;
|
|
3061
|
-
var __propIsEnum$1q = Object.prototype.propertyIsEnumerable;
|
|
3062
|
-
var __defNormalProp$1q = (obj, key, value) => key in obj ? __defProp$1q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3063
|
-
var __spreadValues$1q = (a, b) => {
|
|
3064
|
-
for (var prop in b || (b = {}))
|
|
3065
|
-
if (__hasOwnProp$1q.call(b, prop))
|
|
3066
|
-
__defNormalProp$1q(a, prop, b[prop]);
|
|
3067
|
-
if (__getOwnPropSymbols$1q)
|
|
3068
|
-
for (var prop of __getOwnPropSymbols$1q(b)) {
|
|
3069
|
-
if (__propIsEnum$1q.call(b, prop))
|
|
3070
|
-
__defNormalProp$1q(a, prop, b[prop]);
|
|
3071
|
-
}
|
|
3072
|
-
return a;
|
|
3073
|
-
};
|
|
3074
3074
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3075
3075
|
const CalendarCell = ({
|
|
3076
3076
|
state,
|
|
@@ -3085,9 +3085,9 @@
|
|
|
3085
3085
|
);
|
|
3086
3086
|
const isToday = date$1.compare(date.today(state.timeZone)) === 0;
|
|
3087
3087
|
const isOutsideMonth = !date.isSameMonth(currentMonth, date$1);
|
|
3088
|
-
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$
|
|
3088
|
+
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$1r({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
3089
3089
|
Button$1,
|
|
3090
|
-
__spreadProps$n(__spreadValues$
|
|
3090
|
+
__spreadProps$n(__spreadValues$1r({}, buttonProps), {
|
|
3091
3091
|
ref,
|
|
3092
3092
|
borderRadius: "xs",
|
|
3093
3093
|
boxSize: 8,
|
|
@@ -3110,41 +3110,41 @@
|
|
|
3110
3110
|
return /* @__PURE__ */ React.createElement(system.chakra.tr, null, weekDaysWithIds.map(({ label, _id }) => /* @__PURE__ */ React.createElement(system.chakra.th, { key: _id, __css: dayLabel }, label)));
|
|
3111
3111
|
});
|
|
3112
3112
|
|
|
3113
|
-
var __defProp$
|
|
3114
|
-
var __getOwnPropSymbols$
|
|
3115
|
-
var __hasOwnProp$
|
|
3116
|
-
var __propIsEnum$
|
|
3117
|
-
var __defNormalProp$
|
|
3118
|
-
var __spreadValues$
|
|
3113
|
+
var __defProp$1q = Object.defineProperty;
|
|
3114
|
+
var __getOwnPropSymbols$1q = Object.getOwnPropertySymbols;
|
|
3115
|
+
var __hasOwnProp$1q = Object.prototype.hasOwnProperty;
|
|
3116
|
+
var __propIsEnum$1q = Object.prototype.propertyIsEnumerable;
|
|
3117
|
+
var __defNormalProp$1q = (obj, key, value) => key in obj ? __defProp$1q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3118
|
+
var __spreadValues$1q = (a, b) => {
|
|
3119
3119
|
for (var prop in b || (b = {}))
|
|
3120
|
-
if (__hasOwnProp$
|
|
3121
|
-
__defNormalProp$
|
|
3122
|
-
if (__getOwnPropSymbols$
|
|
3123
|
-
for (var prop of __getOwnPropSymbols$
|
|
3124
|
-
if (__propIsEnum$
|
|
3125
|
-
__defNormalProp$
|
|
3120
|
+
if (__hasOwnProp$1q.call(b, prop))
|
|
3121
|
+
__defNormalProp$1q(a, prop, b[prop]);
|
|
3122
|
+
if (__getOwnPropSymbols$1q)
|
|
3123
|
+
for (var prop of __getOwnPropSymbols$1q(b)) {
|
|
3124
|
+
if (__propIsEnum$1q.call(b, prop))
|
|
3125
|
+
__defNormalProp$1q(a, prop, b[prop]);
|
|
3126
3126
|
}
|
|
3127
3127
|
return a;
|
|
3128
3128
|
};
|
|
3129
|
-
var __objRest
|
|
3129
|
+
var __objRest$$ = (source, exclude) => {
|
|
3130
3130
|
var target = {};
|
|
3131
3131
|
for (var prop in source)
|
|
3132
|
-
if (__hasOwnProp$
|
|
3132
|
+
if (__hasOwnProp$1q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3133
3133
|
target[prop] = source[prop];
|
|
3134
|
-
if (source != null && __getOwnPropSymbols$
|
|
3135
|
-
for (var prop of __getOwnPropSymbols$
|
|
3136
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3134
|
+
if (source != null && __getOwnPropSymbols$1q)
|
|
3135
|
+
for (var prop of __getOwnPropSymbols$1q(source)) {
|
|
3136
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1q.call(source, prop))
|
|
3137
3137
|
target[prop] = source[prop];
|
|
3138
3138
|
}
|
|
3139
3139
|
return target;
|
|
3140
3140
|
};
|
|
3141
3141
|
const CalendarGrid = React.memo(
|
|
3142
3142
|
(_a) => {
|
|
3143
|
-
var _b = _a, { state, locale } = _b, rest = __objRest
|
|
3143
|
+
var _b = _a, { state, locale } = _b, rest = __objRest$$(_b, ["state", "locale"]);
|
|
3144
3144
|
const startDate = state.visibleRange.start;
|
|
3145
3145
|
const { gridProps, headerProps, weekDays } = calendar.useCalendarGrid(rest, state);
|
|
3146
3146
|
const weeksInMonth = date.getWeeksInMonth(startDate, locale);
|
|
3147
|
-
return /* @__PURE__ */ React.createElement(Table$1, __spreadValues$
|
|
3147
|
+
return /* @__PURE__ */ React.createElement(Table$1, __spreadValues$1q({ variant: "unstyled" }, gridProps), /* @__PURE__ */ React.createElement(react.Thead, __spreadValues$1q({}, headerProps), /* @__PURE__ */ React.createElement(DayLabels, { weekDays })), /* @__PURE__ */ React.createElement(react.Tbody, null, ramda.times((weekIndex) => /* @__PURE__ */ React.createElement(react.Tr, { key: weekIndex }, state.getDatesInWeek(weekIndex, startDate).map(
|
|
3148
3148
|
(date) => date ? /* @__PURE__ */ React.createElement(
|
|
3149
3149
|
CalendarCell,
|
|
3150
3150
|
{
|
|
@@ -3158,44 +3158,44 @@
|
|
|
3158
3158
|
}
|
|
3159
3159
|
);
|
|
3160
3160
|
|
|
3161
|
-
var __defProp$
|
|
3161
|
+
var __defProp$1p = Object.defineProperty;
|
|
3162
3162
|
var __defProps$m = Object.defineProperties;
|
|
3163
3163
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
3164
|
-
var __getOwnPropSymbols$
|
|
3165
|
-
var __hasOwnProp$
|
|
3166
|
-
var __propIsEnum$
|
|
3167
|
-
var __defNormalProp$
|
|
3168
|
-
var __spreadValues$
|
|
3164
|
+
var __getOwnPropSymbols$1p = Object.getOwnPropertySymbols;
|
|
3165
|
+
var __hasOwnProp$1p = Object.prototype.hasOwnProperty;
|
|
3166
|
+
var __propIsEnum$1p = Object.prototype.propertyIsEnumerable;
|
|
3167
|
+
var __defNormalProp$1p = (obj, key, value) => key in obj ? __defProp$1p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3168
|
+
var __spreadValues$1p = (a, b) => {
|
|
3169
3169
|
for (var prop in b || (b = {}))
|
|
3170
|
-
if (__hasOwnProp$
|
|
3171
|
-
__defNormalProp$
|
|
3172
|
-
if (__getOwnPropSymbols$
|
|
3173
|
-
for (var prop of __getOwnPropSymbols$
|
|
3174
|
-
if (__propIsEnum$
|
|
3175
|
-
__defNormalProp$
|
|
3170
|
+
if (__hasOwnProp$1p.call(b, prop))
|
|
3171
|
+
__defNormalProp$1p(a, prop, b[prop]);
|
|
3172
|
+
if (__getOwnPropSymbols$1p)
|
|
3173
|
+
for (var prop of __getOwnPropSymbols$1p(b)) {
|
|
3174
|
+
if (__propIsEnum$1p.call(b, prop))
|
|
3175
|
+
__defNormalProp$1p(a, prop, b[prop]);
|
|
3176
3176
|
}
|
|
3177
3177
|
return a;
|
|
3178
3178
|
};
|
|
3179
3179
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
3180
|
-
var __objRest$
|
|
3180
|
+
var __objRest$_ = (source, exclude) => {
|
|
3181
3181
|
var target = {};
|
|
3182
3182
|
for (var prop in source)
|
|
3183
|
-
if (__hasOwnProp$
|
|
3183
|
+
if (__hasOwnProp$1p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3184
3184
|
target[prop] = source[prop];
|
|
3185
|
-
if (source != null && __getOwnPropSymbols$
|
|
3186
|
-
for (var prop of __getOwnPropSymbols$
|
|
3187
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3185
|
+
if (source != null && __getOwnPropSymbols$1p)
|
|
3186
|
+
for (var prop of __getOwnPropSymbols$1p(source)) {
|
|
3187
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1p.call(source, prop))
|
|
3188
3188
|
target[prop] = source[prop];
|
|
3189
3189
|
}
|
|
3190
3190
|
return target;
|
|
3191
3191
|
};
|
|
3192
3192
|
const MonthButton = (_a) => {
|
|
3193
|
-
var _b = _a, { children } = _b, rest = __objRest$
|
|
3193
|
+
var _b = _a, { children } = _b, rest = __objRest$_(_b, ["children"]);
|
|
3194
3194
|
const ref = React.useRef(null);
|
|
3195
3195
|
const { buttonProps } = button.useButton(rest, ref);
|
|
3196
3196
|
return /* @__PURE__ */ React.createElement(
|
|
3197
3197
|
Button$1,
|
|
3198
|
-
__spreadProps$m(__spreadValues$
|
|
3198
|
+
__spreadProps$m(__spreadValues$1p({}, buttonProps), {
|
|
3199
3199
|
boxSize: 8,
|
|
3200
3200
|
size: "xs",
|
|
3201
3201
|
variant: "ghost",
|
|
@@ -3344,21 +3344,21 @@
|
|
|
3344
3344
|
return /* @__PURE__ */ React.createElement(YearSelect, { onChange, years });
|
|
3345
3345
|
};
|
|
3346
3346
|
|
|
3347
|
-
var __defProp$
|
|
3347
|
+
var __defProp$1o = Object.defineProperty;
|
|
3348
3348
|
var __defProps$l = Object.defineProperties;
|
|
3349
3349
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
3350
|
-
var __getOwnPropSymbols$
|
|
3351
|
-
var __hasOwnProp$
|
|
3352
|
-
var __propIsEnum$
|
|
3353
|
-
var __defNormalProp$
|
|
3354
|
-
var __spreadValues$
|
|
3350
|
+
var __getOwnPropSymbols$1o = Object.getOwnPropertySymbols;
|
|
3351
|
+
var __hasOwnProp$1o = Object.prototype.hasOwnProperty;
|
|
3352
|
+
var __propIsEnum$1o = Object.prototype.propertyIsEnumerable;
|
|
3353
|
+
var __defNormalProp$1o = (obj, key, value) => key in obj ? __defProp$1o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3354
|
+
var __spreadValues$1o = (a, b) => {
|
|
3355
3355
|
for (var prop in b || (b = {}))
|
|
3356
|
-
if (__hasOwnProp$
|
|
3357
|
-
__defNormalProp$
|
|
3358
|
-
if (__getOwnPropSymbols$
|
|
3359
|
-
for (var prop of __getOwnPropSymbols$
|
|
3360
|
-
if (__propIsEnum$
|
|
3361
|
-
__defNormalProp$
|
|
3356
|
+
if (__hasOwnProp$1o.call(b, prop))
|
|
3357
|
+
__defNormalProp$1o(a, prop, b[prop]);
|
|
3358
|
+
if (__getOwnPropSymbols$1o)
|
|
3359
|
+
for (var prop of __getOwnPropSymbols$1o(b)) {
|
|
3360
|
+
if (__propIsEnum$1o.call(b, prop))
|
|
3361
|
+
__defNormalProp$1o(a, prop, b[prop]);
|
|
3362
3362
|
}
|
|
3363
3363
|
return a;
|
|
3364
3364
|
};
|
|
@@ -3366,7 +3366,7 @@
|
|
|
3366
3366
|
const Calendar$1 = (props) => {
|
|
3367
3367
|
const { locale } = i18n.useLocale();
|
|
3368
3368
|
const { container } = react.useMultiStyleConfig("Calendar");
|
|
3369
|
-
const state = calendar$1.useCalendarState(__spreadProps$l(__spreadValues$
|
|
3369
|
+
const state = calendar$1.useCalendarState(__spreadProps$l(__spreadValues$1o({}, props), {
|
|
3370
3370
|
locale,
|
|
3371
3371
|
createCalendar: () => new date.GregorianCalendar()
|
|
3372
3372
|
}));
|
|
@@ -3374,24 +3374,24 @@
|
|
|
3374
3374
|
props,
|
|
3375
3375
|
state
|
|
3376
3376
|
);
|
|
3377
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$l(__spreadValues$
|
|
3377
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$l(__spreadValues$1o({}, calendarProps), { __css: container }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "2" }, /* @__PURE__ */ React.createElement(YearSelectCalendar, { state })), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2 }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1o({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1o({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 })))), /* @__PURE__ */ React.createElement(CalendarGrid, { state, locale })));
|
|
3378
3378
|
};
|
|
3379
3379
|
|
|
3380
|
-
var __defProp$
|
|
3380
|
+
var __defProp$1n = Object.defineProperty;
|
|
3381
3381
|
var __defProps$k = Object.defineProperties;
|
|
3382
3382
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3383
|
-
var __getOwnPropSymbols$
|
|
3384
|
-
var __hasOwnProp$
|
|
3385
|
-
var __propIsEnum$
|
|
3386
|
-
var __defNormalProp$
|
|
3387
|
-
var __spreadValues$
|
|
3383
|
+
var __getOwnPropSymbols$1n = Object.getOwnPropertySymbols;
|
|
3384
|
+
var __hasOwnProp$1n = Object.prototype.hasOwnProperty;
|
|
3385
|
+
var __propIsEnum$1n = Object.prototype.propertyIsEnumerable;
|
|
3386
|
+
var __defNormalProp$1n = (obj, key, value) => key in obj ? __defProp$1n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3387
|
+
var __spreadValues$1n = (a, b) => {
|
|
3388
3388
|
for (var prop in b || (b = {}))
|
|
3389
|
-
if (__hasOwnProp$
|
|
3390
|
-
__defNormalProp$
|
|
3391
|
-
if (__getOwnPropSymbols$
|
|
3392
|
-
for (var prop of __getOwnPropSymbols$
|
|
3393
|
-
if (__propIsEnum$
|
|
3394
|
-
__defNormalProp$
|
|
3389
|
+
if (__hasOwnProp$1n.call(b, prop))
|
|
3390
|
+
__defNormalProp$1n(a, prop, b[prop]);
|
|
3391
|
+
if (__getOwnPropSymbols$1n)
|
|
3392
|
+
for (var prop of __getOwnPropSymbols$1n(b)) {
|
|
3393
|
+
if (__propIsEnum$1n.call(b, prop))
|
|
3394
|
+
__defNormalProp$1n(a, prop, b[prop]);
|
|
3395
3395
|
}
|
|
3396
3396
|
return a;
|
|
3397
3397
|
};
|
|
@@ -3408,12 +3408,12 @@
|
|
|
3408
3408
|
} = props;
|
|
3409
3409
|
const ref = React.useRef();
|
|
3410
3410
|
const { group } = react.useMultiStyleConfig("DatePicker");
|
|
3411
|
-
const state = datepicker$1.useDatePickerState(__spreadProps$k(__spreadValues$
|
|
3411
|
+
const state = datepicker$1.useDatePickerState(__spreadProps$k(__spreadValues$1n({}, props), {
|
|
3412
3412
|
shouldCloseOnSelect: false,
|
|
3413
3413
|
hideTimeZone: true
|
|
3414
3414
|
}));
|
|
3415
3415
|
const { buttonProps, fieldProps, calendarProps, groupProps, dialogProps } = datepicker.useDatePicker(
|
|
3416
|
-
__spreadProps$k(__spreadValues$
|
|
3416
|
+
__spreadProps$k(__spreadValues$1n({}, props), { minValue: minValue || date.parseDate("1994-03-08") }),
|
|
3417
3417
|
state,
|
|
3418
3418
|
ref
|
|
3419
3419
|
);
|
|
@@ -3425,7 +3425,7 @@
|
|
|
3425
3425
|
onClose: () => state.setOpen(false),
|
|
3426
3426
|
placement: "bottom-end"
|
|
3427
3427
|
},
|
|
3428
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$k(__spreadValues$
|
|
3428
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$k(__spreadValues$1n({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(StyledField, { isDisabled, isInvalid, variant }, /* @__PURE__ */ React.createElement(
|
|
3429
3429
|
react.Box,
|
|
3430
3430
|
{
|
|
3431
3431
|
paddingInlineStart: "1a",
|
|
@@ -3433,7 +3433,7 @@
|
|
|
3433
3433
|
},
|
|
3434
3434
|
/* @__PURE__ */ React.createElement(
|
|
3435
3435
|
DateField,
|
|
3436
|
-
__spreadProps$k(__spreadValues$
|
|
3436
|
+
__spreadProps$k(__spreadValues$1n({}, fieldProps), {
|
|
3437
3437
|
dateFormat
|
|
3438
3438
|
})
|
|
3439
3439
|
)
|
|
@@ -3445,7 +3445,7 @@
|
|
|
3445
3445
|
},
|
|
3446
3446
|
/* @__PURE__ */ React.createElement(
|
|
3447
3447
|
Trigger,
|
|
3448
|
-
__spreadProps$k(__spreadValues$
|
|
3448
|
+
__spreadProps$k(__spreadValues$1n({}, buttonProps), {
|
|
3449
3449
|
isDisabled,
|
|
3450
3450
|
handleClick: togglePopup
|
|
3451
3451
|
})
|
|
@@ -3463,50 +3463,50 @@
|
|
|
3463
3463
|
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.XCloseSolid })
|
|
3464
3464
|
}
|
|
3465
3465
|
))),
|
|
3466
|
-
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$k(__spreadValues$
|
|
3466
|
+
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$k(__spreadValues$1n({}, dialogProps), { ref, w: 64, border: "none" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(Calendar$1, __spreadValues$1n({}, calendarProps))))
|
|
3467
3467
|
);
|
|
3468
3468
|
};
|
|
3469
3469
|
|
|
3470
|
-
var __defProp$
|
|
3471
|
-
var __getOwnPropSymbols$
|
|
3472
|
-
var __hasOwnProp$
|
|
3473
|
-
var __propIsEnum$
|
|
3474
|
-
var __defNormalProp$
|
|
3475
|
-
var __spreadValues$
|
|
3476
|
-
for (var prop in b || (b = {}))
|
|
3477
|
-
if (__hasOwnProp$
|
|
3478
|
-
__defNormalProp$
|
|
3479
|
-
if (__getOwnPropSymbols$
|
|
3480
|
-
for (var prop of __getOwnPropSymbols$
|
|
3481
|
-
if (__propIsEnum$
|
|
3482
|
-
__defNormalProp$
|
|
3470
|
+
var __defProp$1m = Object.defineProperty;
|
|
3471
|
+
var __getOwnPropSymbols$1m = Object.getOwnPropertySymbols;
|
|
3472
|
+
var __hasOwnProp$1m = Object.prototype.hasOwnProperty;
|
|
3473
|
+
var __propIsEnum$1m = Object.prototype.propertyIsEnumerable;
|
|
3474
|
+
var __defNormalProp$1m = (obj, key, value) => key in obj ? __defProp$1m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3475
|
+
var __spreadValues$1m = (a, b) => {
|
|
3476
|
+
for (var prop in b || (b = {}))
|
|
3477
|
+
if (__hasOwnProp$1m.call(b, prop))
|
|
3478
|
+
__defNormalProp$1m(a, prop, b[prop]);
|
|
3479
|
+
if (__getOwnPropSymbols$1m)
|
|
3480
|
+
for (var prop of __getOwnPropSymbols$1m(b)) {
|
|
3481
|
+
if (__propIsEnum$1m.call(b, prop))
|
|
3482
|
+
__defNormalProp$1m(a, prop, b[prop]);
|
|
3483
3483
|
}
|
|
3484
3484
|
return a;
|
|
3485
3485
|
};
|
|
3486
|
-
var __objRest$
|
|
3486
|
+
var __objRest$Z = (source, exclude) => {
|
|
3487
3487
|
var target = {};
|
|
3488
3488
|
for (var prop in source)
|
|
3489
|
-
if (__hasOwnProp$
|
|
3489
|
+
if (__hasOwnProp$1m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3490
3490
|
target[prop] = source[prop];
|
|
3491
|
-
if (source != null && __getOwnPropSymbols$
|
|
3492
|
-
for (var prop of __getOwnPropSymbols$
|
|
3493
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3491
|
+
if (source != null && __getOwnPropSymbols$1m)
|
|
3492
|
+
for (var prop of __getOwnPropSymbols$1m(source)) {
|
|
3493
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1m.call(source, prop))
|
|
3494
3494
|
target[prop] = source[prop];
|
|
3495
3495
|
}
|
|
3496
3496
|
return target;
|
|
3497
3497
|
};
|
|
3498
3498
|
const Clickable = (_a) => {
|
|
3499
|
-
var _b = _a, { href, linkProps } = _b, rest = __objRest$
|
|
3499
|
+
var _b = _a, { href, linkProps } = _b, rest = __objRest$Z(_b, ["href", "linkProps"]);
|
|
3500
3500
|
const clickable$1 = clickable.useClickable(rest);
|
|
3501
3501
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, !ramda.isNil(href) && /* @__PURE__ */ React.createElement(
|
|
3502
3502
|
react.Link,
|
|
3503
|
-
__spreadValues$
|
|
3503
|
+
__spreadValues$1m(__spreadValues$1m({
|
|
3504
3504
|
as: reactRouterDom.Link,
|
|
3505
3505
|
_focusVisible: ring,
|
|
3506
3506
|
to: href,
|
|
3507
3507
|
_hover: { textDecoration: "none" }
|
|
3508
3508
|
}, linkProps), clickable$1)
|
|
3509
|
-
), ramda.isNil(href) && /* @__PURE__ */ React.createElement(react.chakra.button, __spreadValues$
|
|
3509
|
+
), ramda.isNil(href) && /* @__PURE__ */ React.createElement(react.chakra.button, __spreadValues$1m({ _focusVisible: ring }, clickable$1)));
|
|
3510
3510
|
};
|
|
3511
3511
|
|
|
3512
3512
|
const defaultFadeDelay = 250;
|
|
@@ -3569,6 +3569,73 @@
|
|
|
3569
3569
|
return hidden;
|
|
3570
3570
|
};
|
|
3571
3571
|
|
|
3572
|
+
var __defProp$1l = Object.defineProperty;
|
|
3573
|
+
var __getOwnPropSymbols$1l = Object.getOwnPropertySymbols;
|
|
3574
|
+
var __hasOwnProp$1l = Object.prototype.hasOwnProperty;
|
|
3575
|
+
var __propIsEnum$1l = Object.prototype.propertyIsEnumerable;
|
|
3576
|
+
var __defNormalProp$1l = (obj, key, value) => key in obj ? __defProp$1l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3577
|
+
var __spreadValues$1l = (a, b) => {
|
|
3578
|
+
for (var prop in b || (b = {}))
|
|
3579
|
+
if (__hasOwnProp$1l.call(b, prop))
|
|
3580
|
+
__defNormalProp$1l(a, prop, b[prop]);
|
|
3581
|
+
if (__getOwnPropSymbols$1l)
|
|
3582
|
+
for (var prop of __getOwnPropSymbols$1l(b)) {
|
|
3583
|
+
if (__propIsEnum$1l.call(b, prop))
|
|
3584
|
+
__defNormalProp$1l(a, prop, b[prop]);
|
|
3585
|
+
}
|
|
3586
|
+
return a;
|
|
3587
|
+
};
|
|
3588
|
+
var __objRest$Y = (source, exclude) => {
|
|
3589
|
+
var target = {};
|
|
3590
|
+
for (var prop in source)
|
|
3591
|
+
if (__hasOwnProp$1l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3592
|
+
target[prop] = source[prop];
|
|
3593
|
+
if (source != null && __getOwnPropSymbols$1l)
|
|
3594
|
+
for (var prop of __getOwnPropSymbols$1l(source)) {
|
|
3595
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1l.call(source, prop))
|
|
3596
|
+
target[prop] = source[prop];
|
|
3597
|
+
}
|
|
3598
|
+
return target;
|
|
3599
|
+
};
|
|
3600
|
+
const Fade = (_a) => {
|
|
3601
|
+
var _b = _a, {
|
|
3602
|
+
children,
|
|
3603
|
+
enterDuration = null,
|
|
3604
|
+
exitDuration = null,
|
|
3605
|
+
duration = null,
|
|
3606
|
+
in: show = false,
|
|
3607
|
+
disableFocus = true,
|
|
3608
|
+
hideDisplay = false,
|
|
3609
|
+
enterDelay = 0,
|
|
3610
|
+
exitDelay = 0,
|
|
3611
|
+
onTransitionComplete = ramda.identity
|
|
3612
|
+
} = _b, rest = __objRest$Y(_b, [
|
|
3613
|
+
"children",
|
|
3614
|
+
"enterDuration",
|
|
3615
|
+
"exitDuration",
|
|
3616
|
+
"duration",
|
|
3617
|
+
"in",
|
|
3618
|
+
"disableFocus",
|
|
3619
|
+
"hideDisplay",
|
|
3620
|
+
"enterDelay",
|
|
3621
|
+
"exitDelay",
|
|
3622
|
+
"onTransitionComplete"
|
|
3623
|
+
]);
|
|
3624
|
+
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3625
|
+
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3626
|
+
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3627
|
+
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3628
|
+
return /* @__PURE__ */ React.createElement(
|
|
3629
|
+
react.Fade,
|
|
3630
|
+
__spreadValues$1l({
|
|
3631
|
+
in: showWithDelay,
|
|
3632
|
+
transition,
|
|
3633
|
+
unmountOnExit: hideDisplay
|
|
3634
|
+
}, rest),
|
|
3635
|
+
childrenWithProps
|
|
3636
|
+
);
|
|
3637
|
+
};
|
|
3638
|
+
|
|
3572
3639
|
var __defProp$1k = Object.defineProperty;
|
|
3573
3640
|
var __getOwnPropSymbols$1k = Object.getOwnPropertySymbols;
|
|
3574
3641
|
var __hasOwnProp$1k = Object.prototype.hasOwnProperty;
|
|
@@ -3597,7 +3664,7 @@
|
|
|
3597
3664
|
}
|
|
3598
3665
|
return target;
|
|
3599
3666
|
};
|
|
3600
|
-
const
|
|
3667
|
+
const ScaleFade = (_a) => {
|
|
3601
3668
|
var _b = _a, {
|
|
3602
3669
|
children,
|
|
3603
3670
|
enterDuration = null,
|
|
@@ -3626,7 +3693,7 @@
|
|
|
3626
3693
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3627
3694
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3628
3695
|
return /* @__PURE__ */ React.createElement(
|
|
3629
|
-
react.
|
|
3696
|
+
react.ScaleFade,
|
|
3630
3697
|
__spreadValues$1k({
|
|
3631
3698
|
in: showWithDelay,
|
|
3632
3699
|
transition,
|
|
@@ -3664,7 +3731,7 @@
|
|
|
3664
3731
|
}
|
|
3665
3732
|
return target;
|
|
3666
3733
|
};
|
|
3667
|
-
const
|
|
3734
|
+
const Slide = (_a) => {
|
|
3668
3735
|
var _b = _a, {
|
|
3669
3736
|
children,
|
|
3670
3737
|
enterDuration = null,
|
|
@@ -3675,6 +3742,7 @@
|
|
|
3675
3742
|
hideDisplay = false,
|
|
3676
3743
|
enterDelay = 0,
|
|
3677
3744
|
exitDelay = 0,
|
|
3745
|
+
direction = "bottom",
|
|
3678
3746
|
onTransitionComplete = ramda.identity
|
|
3679
3747
|
} = _b, rest = __objRest$W(_b, [
|
|
3680
3748
|
"children",
|
|
@@ -3686,6 +3754,7 @@
|
|
|
3686
3754
|
"hideDisplay",
|
|
3687
3755
|
"enterDelay",
|
|
3688
3756
|
"exitDelay",
|
|
3757
|
+
"direction",
|
|
3689
3758
|
"onTransitionComplete"
|
|
3690
3759
|
]);
|
|
3691
3760
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
@@ -3693,10 +3762,11 @@
|
|
|
3693
3762
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3694
3763
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3695
3764
|
return /* @__PURE__ */ React.createElement(
|
|
3696
|
-
react.
|
|
3765
|
+
react.Slide,
|
|
3697
3766
|
__spreadValues$1j({
|
|
3698
3767
|
in: showWithDelay,
|
|
3699
3768
|
transition,
|
|
3769
|
+
direction,
|
|
3700
3770
|
unmountOnExit: hideDisplay
|
|
3701
3771
|
}, rest),
|
|
3702
3772
|
childrenWithProps
|
|
@@ -3731,7 +3801,7 @@
|
|
|
3731
3801
|
}
|
|
3732
3802
|
return target;
|
|
3733
3803
|
};
|
|
3734
|
-
const
|
|
3804
|
+
const SlideFade = (_a) => {
|
|
3735
3805
|
var _b = _a, {
|
|
3736
3806
|
children,
|
|
3737
3807
|
enterDuration = null,
|
|
@@ -3740,9 +3810,12 @@
|
|
|
3740
3810
|
in: show = false,
|
|
3741
3811
|
disableFocus = true,
|
|
3742
3812
|
hideDisplay = false,
|
|
3813
|
+
direction = "bottom",
|
|
3814
|
+
offset: delta = defaultOffset,
|
|
3815
|
+
offsetX: deltaX = 0,
|
|
3816
|
+
offsetY: deltaY = 0,
|
|
3743
3817
|
enterDelay = 0,
|
|
3744
3818
|
exitDelay = 0,
|
|
3745
|
-
direction = "bottom",
|
|
3746
3819
|
onTransitionComplete = ramda.identity
|
|
3747
3820
|
} = _b, rest = __objRest$V(_b, [
|
|
3748
3821
|
"children",
|
|
@@ -3752,21 +3825,26 @@
|
|
|
3752
3825
|
"in",
|
|
3753
3826
|
"disableFocus",
|
|
3754
3827
|
"hideDisplay",
|
|
3828
|
+
"direction",
|
|
3829
|
+
"offset",
|
|
3830
|
+
"offsetX",
|
|
3831
|
+
"offsetY",
|
|
3755
3832
|
"enterDelay",
|
|
3756
3833
|
"exitDelay",
|
|
3757
|
-
"direction",
|
|
3758
3834
|
"onTransitionComplete"
|
|
3759
3835
|
]);
|
|
3760
3836
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3837
|
+
const { offsetX, offsetY } = getOffsets(direction, delta, deltaX, deltaY);
|
|
3761
3838
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3762
3839
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3763
3840
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3764
3841
|
return /* @__PURE__ */ React.createElement(
|
|
3765
|
-
react.
|
|
3842
|
+
react.SlideFade,
|
|
3766
3843
|
__spreadValues$1i({
|
|
3767
3844
|
in: showWithDelay,
|
|
3768
3845
|
transition,
|
|
3769
|
-
|
|
3846
|
+
offsetX,
|
|
3847
|
+
offsetY,
|
|
3770
3848
|
unmountOnExit: hideDisplay
|
|
3771
3849
|
}, rest),
|
|
3772
3850
|
childrenWithProps
|
|
@@ -3801,7 +3879,7 @@
|
|
|
3801
3879
|
}
|
|
3802
3880
|
return target;
|
|
3803
3881
|
};
|
|
3804
|
-
const
|
|
3882
|
+
const Collapse = (_a) => {
|
|
3805
3883
|
var _b = _a, {
|
|
3806
3884
|
children,
|
|
3807
3885
|
enterDuration = null,
|
|
@@ -3810,10 +3888,6 @@
|
|
|
3810
3888
|
in: show = false,
|
|
3811
3889
|
disableFocus = true,
|
|
3812
3890
|
hideDisplay = false,
|
|
3813
|
-
direction = "bottom",
|
|
3814
|
-
offset: delta = defaultOffset,
|
|
3815
|
-
offsetX: deltaX = 0,
|
|
3816
|
-
offsetY: deltaY = 0,
|
|
3817
3891
|
enterDelay = 0,
|
|
3818
3892
|
exitDelay = 0,
|
|
3819
3893
|
onTransitionComplete = ramda.identity
|
|
@@ -3825,26 +3899,19 @@
|
|
|
3825
3899
|
"in",
|
|
3826
3900
|
"disableFocus",
|
|
3827
3901
|
"hideDisplay",
|
|
3828
|
-
"direction",
|
|
3829
|
-
"offset",
|
|
3830
|
-
"offsetX",
|
|
3831
|
-
"offsetY",
|
|
3832
3902
|
"enterDelay",
|
|
3833
3903
|
"exitDelay",
|
|
3834
3904
|
"onTransitionComplete"
|
|
3835
3905
|
]);
|
|
3836
3906
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3837
|
-
const { offsetX, offsetY } = getOffsets(direction, delta, deltaX, deltaY);
|
|
3838
3907
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3839
3908
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3840
3909
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3841
3910
|
return /* @__PURE__ */ React.createElement(
|
|
3842
|
-
react.
|
|
3911
|
+
react.Collapse,
|
|
3843
3912
|
__spreadValues$1h({
|
|
3844
3913
|
in: showWithDelay,
|
|
3845
3914
|
transition,
|
|
3846
|
-
offsetX,
|
|
3847
|
-
offsetY,
|
|
3848
3915
|
unmountOnExit: hideDisplay
|
|
3849
3916
|
}, rest),
|
|
3850
3917
|
childrenWithProps
|
|
@@ -3852,6 +3919,8 @@
|
|
|
3852
3919
|
};
|
|
3853
3920
|
|
|
3854
3921
|
var __defProp$1g = Object.defineProperty;
|
|
3922
|
+
var __defProps$j = Object.defineProperties;
|
|
3923
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
3855
3924
|
var __getOwnPropSymbols$1g = Object.getOwnPropertySymbols;
|
|
3856
3925
|
var __hasOwnProp$1g = Object.prototype.hasOwnProperty;
|
|
3857
3926
|
var __propIsEnum$1g = Object.prototype.propertyIsEnumerable;
|
|
@@ -3867,77 +3936,8 @@
|
|
|
3867
3936
|
}
|
|
3868
3937
|
return a;
|
|
3869
3938
|
};
|
|
3870
|
-
var __objRest$T = (source, exclude) => {
|
|
3871
|
-
var target = {};
|
|
3872
|
-
for (var prop in source)
|
|
3873
|
-
if (__hasOwnProp$1g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3874
|
-
target[prop] = source[prop];
|
|
3875
|
-
if (source != null && __getOwnPropSymbols$1g)
|
|
3876
|
-
for (var prop of __getOwnPropSymbols$1g(source)) {
|
|
3877
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1g.call(source, prop))
|
|
3878
|
-
target[prop] = source[prop];
|
|
3879
|
-
}
|
|
3880
|
-
return target;
|
|
3881
|
-
};
|
|
3882
|
-
const Collapse = (_a) => {
|
|
3883
|
-
var _b = _a, {
|
|
3884
|
-
children,
|
|
3885
|
-
enterDuration = null,
|
|
3886
|
-
exitDuration = null,
|
|
3887
|
-
duration = null,
|
|
3888
|
-
in: show = false,
|
|
3889
|
-
disableFocus = true,
|
|
3890
|
-
hideDisplay = false,
|
|
3891
|
-
enterDelay = 0,
|
|
3892
|
-
exitDelay = 0,
|
|
3893
|
-
onTransitionComplete = ramda.identity
|
|
3894
|
-
} = _b, rest = __objRest$T(_b, [
|
|
3895
|
-
"children",
|
|
3896
|
-
"enterDuration",
|
|
3897
|
-
"exitDuration",
|
|
3898
|
-
"duration",
|
|
3899
|
-
"in",
|
|
3900
|
-
"disableFocus",
|
|
3901
|
-
"hideDisplay",
|
|
3902
|
-
"enterDelay",
|
|
3903
|
-
"exitDelay",
|
|
3904
|
-
"onTransitionComplete"
|
|
3905
|
-
]);
|
|
3906
|
-
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3907
|
-
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3908
|
-
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3909
|
-
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3910
|
-
return /* @__PURE__ */ React.createElement(
|
|
3911
|
-
react.Collapse,
|
|
3912
|
-
__spreadValues$1g({
|
|
3913
|
-
in: showWithDelay,
|
|
3914
|
-
transition,
|
|
3915
|
-
unmountOnExit: hideDisplay
|
|
3916
|
-
}, rest),
|
|
3917
|
-
childrenWithProps
|
|
3918
|
-
);
|
|
3919
|
-
};
|
|
3920
|
-
|
|
3921
|
-
var __defProp$1f = Object.defineProperty;
|
|
3922
|
-
var __defProps$j = Object.defineProperties;
|
|
3923
|
-
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
3924
|
-
var __getOwnPropSymbols$1f = Object.getOwnPropertySymbols;
|
|
3925
|
-
var __hasOwnProp$1f = Object.prototype.hasOwnProperty;
|
|
3926
|
-
var __propIsEnum$1f = Object.prototype.propertyIsEnumerable;
|
|
3927
|
-
var __defNormalProp$1f = (obj, key, value) => key in obj ? __defProp$1f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3928
|
-
var __spreadValues$1f = (a, b) => {
|
|
3929
|
-
for (var prop in b || (b = {}))
|
|
3930
|
-
if (__hasOwnProp$1f.call(b, prop))
|
|
3931
|
-
__defNormalProp$1f(a, prop, b[prop]);
|
|
3932
|
-
if (__getOwnPropSymbols$1f)
|
|
3933
|
-
for (var prop of __getOwnPropSymbols$1f(b)) {
|
|
3934
|
-
if (__propIsEnum$1f.call(b, prop))
|
|
3935
|
-
__defNormalProp$1f(a, prop, b[prop]);
|
|
3936
|
-
}
|
|
3937
|
-
return a;
|
|
3938
|
-
};
|
|
3939
3939
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
3940
|
-
const MoveButton = (props) => /* @__PURE__ */ React.createElement(Clickable, __spreadProps$j(__spreadValues$
|
|
3940
|
+
const MoveButton = (props) => /* @__PURE__ */ React.createElement(Clickable, __spreadProps$j(__spreadValues$1g({}, props), { w: "max-content" }), /* @__PURE__ */ React.createElement(
|
|
3941
3941
|
P$1,
|
|
3942
3942
|
{
|
|
3943
3943
|
variant: "14",
|
|
@@ -3956,19 +3956,19 @@
|
|
|
3956
3956
|
|
|
3957
3957
|
const validRange = (date, state) => !date || (!state.minValue || date.start >= state.minValue) && (!state.maxValue || date.end <= state.maxValue) && date.end >= date.start;
|
|
3958
3958
|
|
|
3959
|
-
var __defProp$
|
|
3960
|
-
var __getOwnPropSymbols$
|
|
3961
|
-
var __hasOwnProp$
|
|
3962
|
-
var __propIsEnum$
|
|
3963
|
-
var __defNormalProp$
|
|
3964
|
-
var __spreadValues$
|
|
3959
|
+
var __defProp$1f = Object.defineProperty;
|
|
3960
|
+
var __getOwnPropSymbols$1f = Object.getOwnPropertySymbols;
|
|
3961
|
+
var __hasOwnProp$1f = Object.prototype.hasOwnProperty;
|
|
3962
|
+
var __propIsEnum$1f = Object.prototype.propertyIsEnumerable;
|
|
3963
|
+
var __defNormalProp$1f = (obj, key, value) => key in obj ? __defProp$1f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3964
|
+
var __spreadValues$1f = (a, b) => {
|
|
3965
3965
|
for (var prop in b || (b = {}))
|
|
3966
|
-
if (__hasOwnProp$
|
|
3967
|
-
__defNormalProp$
|
|
3968
|
-
if (__getOwnPropSymbols$
|
|
3969
|
-
for (var prop of __getOwnPropSymbols$
|
|
3970
|
-
if (__propIsEnum$
|
|
3971
|
-
__defNormalProp$
|
|
3966
|
+
if (__hasOwnProp$1f.call(b, prop))
|
|
3967
|
+
__defNormalProp$1f(a, prop, b[prop]);
|
|
3968
|
+
if (__getOwnPropSymbols$1f)
|
|
3969
|
+
for (var prop of __getOwnPropSymbols$1f(b)) {
|
|
3970
|
+
if (__propIsEnum$1f.call(b, prop))
|
|
3971
|
+
__defNormalProp$1f(a, prop, b[prop]);
|
|
3972
3972
|
}
|
|
3973
3973
|
return a;
|
|
3974
3974
|
};
|
|
@@ -3984,7 +3984,7 @@
|
|
|
3984
3984
|
},
|
|
3985
3985
|
/* @__PURE__ */ React.createElement(Icon$1, { as: icon, color: "blue.500", size: "lg" }),
|
|
3986
3986
|
dates.map(
|
|
3987
|
-
(date) => validRange(date.value, state) && /* @__PURE__ */ React.createElement(MoveButton, __spreadValues$
|
|
3987
|
+
(date) => validRange(date.value, state) && /* @__PURE__ */ React.createElement(MoveButton, __spreadValues$1f({}, getMethods(date)), date.label)
|
|
3988
3988
|
)
|
|
3989
3989
|
);
|
|
3990
3990
|
|
|
@@ -4154,21 +4154,21 @@
|
|
|
4154
4154
|
);
|
|
4155
4155
|
};
|
|
4156
4156
|
|
|
4157
|
-
var __defProp$
|
|
4157
|
+
var __defProp$1e = Object.defineProperty;
|
|
4158
4158
|
var __defProps$i = Object.defineProperties;
|
|
4159
4159
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
4160
|
-
var __getOwnPropSymbols$
|
|
4161
|
-
var __hasOwnProp$
|
|
4162
|
-
var __propIsEnum$
|
|
4163
|
-
var __defNormalProp$
|
|
4164
|
-
var __spreadValues$
|
|
4160
|
+
var __getOwnPropSymbols$1e = Object.getOwnPropertySymbols;
|
|
4161
|
+
var __hasOwnProp$1e = Object.prototype.hasOwnProperty;
|
|
4162
|
+
var __propIsEnum$1e = Object.prototype.propertyIsEnumerable;
|
|
4163
|
+
var __defNormalProp$1e = (obj, key, value) => key in obj ? __defProp$1e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4164
|
+
var __spreadValues$1e = (a, b) => {
|
|
4165
4165
|
for (var prop in b || (b = {}))
|
|
4166
|
-
if (__hasOwnProp$
|
|
4167
|
-
__defNormalProp$
|
|
4168
|
-
if (__getOwnPropSymbols$
|
|
4169
|
-
for (var prop of __getOwnPropSymbols$
|
|
4170
|
-
if (__propIsEnum$
|
|
4171
|
-
__defNormalProp$
|
|
4166
|
+
if (__hasOwnProp$1e.call(b, prop))
|
|
4167
|
+
__defNormalProp$1e(a, prop, b[prop]);
|
|
4168
|
+
if (__getOwnPropSymbols$1e)
|
|
4169
|
+
for (var prop of __getOwnPropSymbols$1e(b)) {
|
|
4170
|
+
if (__propIsEnum$1e.call(b, prop))
|
|
4171
|
+
__defNormalProp$1e(a, prop, b[prop]);
|
|
4172
4172
|
}
|
|
4173
4173
|
return a;
|
|
4174
4174
|
};
|
|
@@ -4184,9 +4184,9 @@
|
|
|
4184
4184
|
ref
|
|
4185
4185
|
);
|
|
4186
4186
|
const isToday = date$1.compare(date.today(state.timeZone)) === 0;
|
|
4187
|
-
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$
|
|
4187
|
+
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$1e({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
4188
4188
|
react.chakra.button,
|
|
4189
|
-
__spreadProps$i(__spreadValues$
|
|
4189
|
+
__spreadProps$i(__spreadValues$1e({}, buttonProps), {
|
|
4190
4190
|
type: "button",
|
|
4191
4191
|
ref,
|
|
4192
4192
|
borderRadius: "xs",
|
|
@@ -4222,21 +4222,21 @@
|
|
|
4222
4222
|
));
|
|
4223
4223
|
};
|
|
4224
4224
|
|
|
4225
|
-
var __defProp$
|
|
4225
|
+
var __defProp$1d = Object.defineProperty;
|
|
4226
4226
|
var __defProps$h = Object.defineProperties;
|
|
4227
4227
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
4228
|
-
var __getOwnPropSymbols$
|
|
4229
|
-
var __hasOwnProp$
|
|
4230
|
-
var __propIsEnum$
|
|
4231
|
-
var __defNormalProp$
|
|
4232
|
-
var __spreadValues$
|
|
4228
|
+
var __getOwnPropSymbols$1d = Object.getOwnPropertySymbols;
|
|
4229
|
+
var __hasOwnProp$1d = Object.prototype.hasOwnProperty;
|
|
4230
|
+
var __propIsEnum$1d = Object.prototype.propertyIsEnumerable;
|
|
4231
|
+
var __defNormalProp$1d = (obj, key, value) => key in obj ? __defProp$1d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4232
|
+
var __spreadValues$1d = (a, b) => {
|
|
4233
4233
|
for (var prop in b || (b = {}))
|
|
4234
|
-
if (__hasOwnProp$
|
|
4235
|
-
__defNormalProp$
|
|
4236
|
-
if (__getOwnPropSymbols$
|
|
4237
|
-
for (var prop of __getOwnPropSymbols$
|
|
4238
|
-
if (__propIsEnum$
|
|
4239
|
-
__defNormalProp$
|
|
4234
|
+
if (__hasOwnProp$1d.call(b, prop))
|
|
4235
|
+
__defNormalProp$1d(a, prop, b[prop]);
|
|
4236
|
+
if (__getOwnPropSymbols$1d)
|
|
4237
|
+
for (var prop of __getOwnPropSymbols$1d(b)) {
|
|
4238
|
+
if (__propIsEnum$1d.call(b, prop))
|
|
4239
|
+
__defNormalProp$1d(a, prop, b[prop]);
|
|
4240
4240
|
}
|
|
4241
4241
|
return a;
|
|
4242
4242
|
};
|
|
@@ -4246,7 +4246,7 @@
|
|
|
4246
4246
|
const endDate = date.endOfMonth(startDate);
|
|
4247
4247
|
const { gridProps, headerProps, weekDays } = calendar.useCalendarGrid({ startDate, endDate }, state);
|
|
4248
4248
|
const weeksInMonth = date.getWeeksInMonth(state.visibleRange.start, locale);
|
|
4249
|
-
return /* @__PURE__ */ React.createElement(react.Box, { h: "245px", p: "0" }, /* @__PURE__ */ React.createElement(react.chakra.table, __spreadProps$h(__spreadValues$
|
|
4249
|
+
return /* @__PURE__ */ React.createElement(react.Box, { h: "245px", p: "0" }, /* @__PURE__ */ React.createElement(react.chakra.table, __spreadProps$h(__spreadValues$1d({}, gridProps), { sx: { borderSpacing: "0px" } }), /* @__PURE__ */ React.createElement(react.chakra.thead, __spreadValues$1d({}, headerProps), /* @__PURE__ */ React.createElement(DayLabels, { weekDays })), /* @__PURE__ */ React.createElement(react.chakra.tbody, null, ramda.times((weekIndex) => /* @__PURE__ */ React.createElement(react.chakra.tr, { key: weekIndex }, state.getDatesInWeek(weekIndex, startDate).map(
|
|
4250
4250
|
(date, i) => date ? /* @__PURE__ */ React.createElement(
|
|
4251
4251
|
RangeCell,
|
|
4252
4252
|
{
|
|
@@ -4545,21 +4545,21 @@
|
|
|
4545
4545
|
));
|
|
4546
4546
|
};
|
|
4547
4547
|
|
|
4548
|
-
var __defProp$
|
|
4548
|
+
var __defProp$1c = Object.defineProperty;
|
|
4549
4549
|
var __defProps$g = Object.defineProperties;
|
|
4550
4550
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
4551
|
-
var __getOwnPropSymbols$
|
|
4552
|
-
var __hasOwnProp$
|
|
4553
|
-
var __propIsEnum$
|
|
4554
|
-
var __defNormalProp$
|
|
4555
|
-
var __spreadValues$
|
|
4551
|
+
var __getOwnPropSymbols$1c = Object.getOwnPropertySymbols;
|
|
4552
|
+
var __hasOwnProp$1c = Object.prototype.hasOwnProperty;
|
|
4553
|
+
var __propIsEnum$1c = Object.prototype.propertyIsEnumerable;
|
|
4554
|
+
var __defNormalProp$1c = (obj, key, value) => key in obj ? __defProp$1c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4555
|
+
var __spreadValues$1c = (a, b) => {
|
|
4556
4556
|
for (var prop in b || (b = {}))
|
|
4557
|
-
if (__hasOwnProp$
|
|
4558
|
-
__defNormalProp$
|
|
4559
|
-
if (__getOwnPropSymbols$
|
|
4560
|
-
for (var prop of __getOwnPropSymbols$
|
|
4561
|
-
if (__propIsEnum$
|
|
4562
|
-
__defNormalProp$
|
|
4557
|
+
if (__hasOwnProp$1c.call(b, prop))
|
|
4558
|
+
__defNormalProp$1c(a, prop, b[prop]);
|
|
4559
|
+
if (__getOwnPropSymbols$1c)
|
|
4560
|
+
for (var prop of __getOwnPropSymbols$1c(b)) {
|
|
4561
|
+
if (__propIsEnum$1c.call(b, prop))
|
|
4562
|
+
__defNormalProp$1c(a, prop, b[prop]);
|
|
4563
4563
|
}
|
|
4564
4564
|
return a;
|
|
4565
4565
|
};
|
|
@@ -4567,7 +4567,7 @@
|
|
|
4567
4567
|
const RangeCalendar = (props) => {
|
|
4568
4568
|
const { locale } = i18n.useLocale();
|
|
4569
4569
|
const [updateRange, setUpdateRange] = React.useState(false);
|
|
4570
|
-
const state = calendar$1.useRangeCalendarState(__spreadProps$g(__spreadValues$
|
|
4570
|
+
const state = calendar$1.useRangeCalendarState(__spreadProps$g(__spreadValues$1c({}, props), {
|
|
4571
4571
|
visibleDuration: { months: updateRange ? 1 : 2 },
|
|
4572
4572
|
locale,
|
|
4573
4573
|
createCalendar: () => new date.GregorianCalendar()
|
|
@@ -4585,7 +4585,7 @@
|
|
|
4585
4585
|
ref
|
|
4586
4586
|
);
|
|
4587
4587
|
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4588
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$
|
|
4588
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$1c({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4589
4589
|
QuickSelect,
|
|
4590
4590
|
{
|
|
4591
4591
|
state,
|
|
@@ -4594,7 +4594,7 @@
|
|
|
4594
4594
|
fiscalStartMonth,
|
|
4595
4595
|
fiscalStartDay
|
|
4596
4596
|
}
|
|
4597
|
-
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$
|
|
4597
|
+
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1c({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.Box, { w: "52" }, /* @__PURE__ */ React.createElement(Label$1, { textAlign: "center" }, months[state.visibleRange.start.month - 1], " -", " ", months[state.visibleRange.start.month], " ", state.visibleRange.end.year)), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1c({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "start", spacing: 4 }, /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(AdjustRange, { state, adjust: "start" })), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 1 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 1 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(
|
|
4598
4598
|
RangeCalendarGrid,
|
|
4599
4599
|
{
|
|
4600
4600
|
state,
|
|
@@ -4604,28 +4604,28 @@
|
|
|
4604
4604
|
), /* @__PURE__ */ React.createElement(AdjustRange, { state, adjust: "end" }), /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "end", pt: "2" }, isClearable && /* @__PURE__ */ React.createElement(Button$1, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button$1, { variant: "brand", onClick: handleClose, size: "sm" }, "Save"))))))));
|
|
4605
4605
|
};
|
|
4606
4606
|
|
|
4607
|
-
var __defProp$
|
|
4607
|
+
var __defProp$1b = Object.defineProperty;
|
|
4608
4608
|
var __defProps$f = Object.defineProperties;
|
|
4609
4609
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
4610
|
-
var __getOwnPropSymbols$
|
|
4611
|
-
var __hasOwnProp$
|
|
4612
|
-
var __propIsEnum$
|
|
4613
|
-
var __defNormalProp$
|
|
4614
|
-
var __spreadValues$
|
|
4610
|
+
var __getOwnPropSymbols$1b = Object.getOwnPropertySymbols;
|
|
4611
|
+
var __hasOwnProp$1b = Object.prototype.hasOwnProperty;
|
|
4612
|
+
var __propIsEnum$1b = Object.prototype.propertyIsEnumerable;
|
|
4613
|
+
var __defNormalProp$1b = (obj, key, value) => key in obj ? __defProp$1b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4614
|
+
var __spreadValues$1b = (a, b) => {
|
|
4615
4615
|
for (var prop in b || (b = {}))
|
|
4616
|
-
if (__hasOwnProp$
|
|
4617
|
-
__defNormalProp$
|
|
4618
|
-
if (__getOwnPropSymbols$
|
|
4619
|
-
for (var prop of __getOwnPropSymbols$
|
|
4620
|
-
if (__propIsEnum$
|
|
4621
|
-
__defNormalProp$
|
|
4616
|
+
if (__hasOwnProp$1b.call(b, prop))
|
|
4617
|
+
__defNormalProp$1b(a, prop, b[prop]);
|
|
4618
|
+
if (__getOwnPropSymbols$1b)
|
|
4619
|
+
for (var prop of __getOwnPropSymbols$1b(b)) {
|
|
4620
|
+
if (__propIsEnum$1b.call(b, prop))
|
|
4621
|
+
__defNormalProp$1b(a, prop, b[prop]);
|
|
4622
4622
|
}
|
|
4623
4623
|
return a;
|
|
4624
4624
|
};
|
|
4625
4625
|
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
4626
4626
|
const SimpleRangeCalendar = (props) => {
|
|
4627
4627
|
const { locale } = i18n.useLocale();
|
|
4628
|
-
const state = calendar$1.useRangeCalendarState(__spreadProps$f(__spreadValues$
|
|
4628
|
+
const state = calendar$1.useRangeCalendarState(__spreadProps$f(__spreadValues$1b({}, props), {
|
|
4629
4629
|
visibleDuration: { months: 1 },
|
|
4630
4630
|
locale,
|
|
4631
4631
|
createCalendar: () => new date.GregorianCalendar()
|
|
@@ -4638,7 +4638,7 @@
|
|
|
4638
4638
|
ref
|
|
4639
4639
|
);
|
|
4640
4640
|
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4641
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$f(__spreadValues$
|
|
4641
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$f(__spreadValues$1b({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4642
4642
|
QuickSelect,
|
|
4643
4643
|
{
|
|
4644
4644
|
state,
|
|
@@ -4649,26 +4649,26 @@
|
|
|
4649
4649
|
fiscalStartDay,
|
|
4650
4650
|
height: "72"
|
|
4651
4651
|
}
|
|
4652
|
-
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$
|
|
4652
|
+
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1b({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.HStack, { w: "full", justify: "center" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1b({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.Stack, { h: "full", justify: "space-between" }, /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "end", pt: "2" }, isClearable && /* @__PURE__ */ React.createElement(Button$1, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button$1, { variant: "brand", onClick: handleClose, size: "sm" }, "Save")))))));
|
|
4653
4653
|
};
|
|
4654
4654
|
|
|
4655
4655
|
const isValidDateRange = (value) => ramda.is(Object, value) && ramda.has("startDate", value) && ramda.has("endDate", value) && ramda.is(String, value.startDate) && ramda.is(String, value.endDate);
|
|
4656
4656
|
|
|
4657
|
-
var __defProp$
|
|
4657
|
+
var __defProp$1a = Object.defineProperty;
|
|
4658
4658
|
var __defProps$e = Object.defineProperties;
|
|
4659
4659
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
4660
|
-
var __getOwnPropSymbols$
|
|
4661
|
-
var __hasOwnProp$
|
|
4662
|
-
var __propIsEnum$
|
|
4663
|
-
var __defNormalProp$
|
|
4664
|
-
var __spreadValues$
|
|
4660
|
+
var __getOwnPropSymbols$1a = Object.getOwnPropertySymbols;
|
|
4661
|
+
var __hasOwnProp$1a = Object.prototype.hasOwnProperty;
|
|
4662
|
+
var __propIsEnum$1a = Object.prototype.propertyIsEnumerable;
|
|
4663
|
+
var __defNormalProp$1a = (obj, key, value) => key in obj ? __defProp$1a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4664
|
+
var __spreadValues$1a = (a, b) => {
|
|
4665
4665
|
for (var prop in b || (b = {}))
|
|
4666
|
-
if (__hasOwnProp$
|
|
4667
|
-
__defNormalProp$
|
|
4668
|
-
if (__getOwnPropSymbols$
|
|
4669
|
-
for (var prop of __getOwnPropSymbols$
|
|
4670
|
-
if (__propIsEnum$
|
|
4671
|
-
__defNormalProp$
|
|
4666
|
+
if (__hasOwnProp$1a.call(b, prop))
|
|
4667
|
+
__defNormalProp$1a(a, prop, b[prop]);
|
|
4668
|
+
if (__getOwnPropSymbols$1a)
|
|
4669
|
+
for (var prop of __getOwnPropSymbols$1a(b)) {
|
|
4670
|
+
if (__propIsEnum$1a.call(b, prop))
|
|
4671
|
+
__defNormalProp$1a(a, prop, b[prop]);
|
|
4672
4672
|
}
|
|
4673
4673
|
return a;
|
|
4674
4674
|
};
|
|
@@ -4707,7 +4707,7 @@
|
|
|
4707
4707
|
minValue: ramda.isNil(minValue) ? void 0 : date.parseDate(minValue),
|
|
4708
4708
|
maxValue: ramda.isNil(maxValue) ? void 0 : date.parseDate(maxValue)
|
|
4709
4709
|
};
|
|
4710
|
-
const state = datepicker$1.useDateRangePickerState(__spreadProps$e(__spreadValues$
|
|
4710
|
+
const state = datepicker$1.useDateRangePickerState(__spreadProps$e(__spreadValues$1a(__spreadValues$1a({}, props), parsedProps), {
|
|
4711
4711
|
shouldCloseOnSelect: false,
|
|
4712
4712
|
hideTimeZone: true
|
|
4713
4713
|
}));
|
|
@@ -4719,7 +4719,7 @@
|
|
|
4719
4719
|
dialogProps,
|
|
4720
4720
|
calendarProps
|
|
4721
4721
|
} = datepicker.useDateRangePicker(
|
|
4722
|
-
__spreadProps$e(__spreadValues$
|
|
4722
|
+
__spreadProps$e(__spreadValues$1a(__spreadValues$1a({}, props), parsedProps), {
|
|
4723
4723
|
minValue: parsedProps.minValue || date.parseDate("1994-03-08")
|
|
4724
4724
|
}),
|
|
4725
4725
|
state,
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
onClose: handleClose,
|
|
4737
4737
|
placement: "bottom-start"
|
|
4738
4738
|
},
|
|
4739
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$e(__spreadValues$
|
|
4739
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$e(__spreadValues$1a({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(StyledField, { isDisabled, isInvalid, variant }, /* @__PURE__ */ React.createElement(
|
|
4740
4740
|
react.HStack,
|
|
4741
4741
|
{
|
|
4742
4742
|
paddingInlineStart: "1a",
|
|
@@ -4744,20 +4744,20 @@
|
|
|
4744
4744
|
},
|
|
4745
4745
|
/* @__PURE__ */ React.createElement(
|
|
4746
4746
|
DateField,
|
|
4747
|
-
__spreadProps$e(__spreadValues$
|
|
4747
|
+
__spreadProps$e(__spreadValues$1a({}, startFieldProps), {
|
|
4748
4748
|
dateFormat
|
|
4749
4749
|
})
|
|
4750
4750
|
),
|
|
4751
4751
|
/* @__PURE__ */ React.createElement(P$1, null, "-"),
|
|
4752
4752
|
/* @__PURE__ */ React.createElement(
|
|
4753
4753
|
DateField,
|
|
4754
|
-
__spreadProps$e(__spreadValues$
|
|
4754
|
+
__spreadProps$e(__spreadValues$1a({}, endFieldProps), {
|
|
4755
4755
|
dateFormat
|
|
4756
4756
|
})
|
|
4757
4757
|
)
|
|
4758
4758
|
)), /* @__PURE__ */ React.createElement(react.InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
|
|
4759
4759
|
Trigger,
|
|
4760
|
-
__spreadProps$e(__spreadValues$
|
|
4760
|
+
__spreadProps$e(__spreadValues$1a({}, buttonProps), {
|
|
4761
4761
|
isDisabled,
|
|
4762
4762
|
handleClick: togglePopup
|
|
4763
4763
|
})
|
|
@@ -4774,9 +4774,9 @@
|
|
|
4774
4774
|
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.XCloseSolid })
|
|
4775
4775
|
}
|
|
4776
4776
|
))),
|
|
4777
|
-
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$e(__spreadValues$
|
|
4777
|
+
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$e(__spreadValues$1a({}, dialogProps), { ref, w: "max-content" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, mode === "simple" && /* @__PURE__ */ React.createElement(
|
|
4778
4778
|
SimpleRangeCalendar,
|
|
4779
|
-
__spreadProps$e(__spreadValues$
|
|
4779
|
+
__spreadProps$e(__spreadValues$1a({}, calendarProps), {
|
|
4780
4780
|
resetDate,
|
|
4781
4781
|
handleClose,
|
|
4782
4782
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
@@ -4785,7 +4785,7 @@
|
|
|
4785
4785
|
})
|
|
4786
4786
|
), mode === "advanced" && /* @__PURE__ */ React.createElement(
|
|
4787
4787
|
RangeCalendar,
|
|
4788
|
-
__spreadProps$e(__spreadValues$
|
|
4788
|
+
__spreadProps$e(__spreadValues$1a({}, calendarProps), {
|
|
4789
4789
|
resetDate,
|
|
4790
4790
|
handleClose,
|
|
4791
4791
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
@@ -4796,30 +4796,30 @@
|
|
|
4796
4796
|
);
|
|
4797
4797
|
};
|
|
4798
4798
|
|
|
4799
|
-
var __defProp$
|
|
4800
|
-
var __getOwnPropSymbols$
|
|
4801
|
-
var __hasOwnProp$
|
|
4802
|
-
var __propIsEnum$
|
|
4803
|
-
var __defNormalProp$
|
|
4804
|
-
var __spreadValues$
|
|
4799
|
+
var __defProp$19 = Object.defineProperty;
|
|
4800
|
+
var __getOwnPropSymbols$19 = Object.getOwnPropertySymbols;
|
|
4801
|
+
var __hasOwnProp$19 = Object.prototype.hasOwnProperty;
|
|
4802
|
+
var __propIsEnum$19 = Object.prototype.propertyIsEnumerable;
|
|
4803
|
+
var __defNormalProp$19 = (obj, key, value) => key in obj ? __defProp$19(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4804
|
+
var __spreadValues$19 = (a, b) => {
|
|
4805
4805
|
for (var prop in b || (b = {}))
|
|
4806
|
-
if (__hasOwnProp$
|
|
4807
|
-
__defNormalProp$
|
|
4808
|
-
if (__getOwnPropSymbols$
|
|
4809
|
-
for (var prop of __getOwnPropSymbols$
|
|
4810
|
-
if (__propIsEnum$
|
|
4811
|
-
__defNormalProp$
|
|
4806
|
+
if (__hasOwnProp$19.call(b, prop))
|
|
4807
|
+
__defNormalProp$19(a, prop, b[prop]);
|
|
4808
|
+
if (__getOwnPropSymbols$19)
|
|
4809
|
+
for (var prop of __getOwnPropSymbols$19(b)) {
|
|
4810
|
+
if (__propIsEnum$19.call(b, prop))
|
|
4811
|
+
__defNormalProp$19(a, prop, b[prop]);
|
|
4812
4812
|
}
|
|
4813
4813
|
return a;
|
|
4814
4814
|
};
|
|
4815
|
-
var __objRest$
|
|
4815
|
+
var __objRest$T = (source, exclude) => {
|
|
4816
4816
|
var target = {};
|
|
4817
4817
|
for (var prop in source)
|
|
4818
|
-
if (__hasOwnProp$
|
|
4818
|
+
if (__hasOwnProp$19.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4819
4819
|
target[prop] = source[prop];
|
|
4820
|
-
if (source != null && __getOwnPropSymbols$
|
|
4821
|
-
for (var prop of __getOwnPropSymbols$
|
|
4822
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4820
|
+
if (source != null && __getOwnPropSymbols$19)
|
|
4821
|
+
for (var prop of __getOwnPropSymbols$19(source)) {
|
|
4822
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$19.call(source, prop))
|
|
4823
4823
|
target[prop] = source[prop];
|
|
4824
4824
|
}
|
|
4825
4825
|
return target;
|
|
@@ -4829,39 +4829,39 @@
|
|
|
4829
4829
|
inputLeftElement,
|
|
4830
4830
|
inputRightElement,
|
|
4831
4831
|
children
|
|
4832
|
-
} = _b, rest = __objRest$
|
|
4832
|
+
} = _b, rest = __objRest$T(_b, [
|
|
4833
4833
|
"inputLeftElement",
|
|
4834
4834
|
"inputRightElement",
|
|
4835
4835
|
"children"
|
|
4836
4836
|
]);
|
|
4837
4837
|
const containsInputGroupElement = ramda.not(ramda.all(ramda.isNil, [inputLeftElement, inputRightElement]));
|
|
4838
|
-
return containsInputGroupElement ? /* @__PURE__ */ React.createElement(react.InputGroup, __spreadValues$
|
|
4838
|
+
return containsInputGroupElement ? /* @__PURE__ */ React.createElement(react.InputGroup, __spreadValues$19({}, rest), inputLeftElement, children, inputRightElement) : /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
4839
4839
|
};
|
|
4840
4840
|
|
|
4841
|
-
var __defProp$
|
|
4842
|
-
var __getOwnPropSymbols$
|
|
4843
|
-
var __hasOwnProp$
|
|
4844
|
-
var __propIsEnum$
|
|
4845
|
-
var __defNormalProp$
|
|
4846
|
-
var __spreadValues$
|
|
4841
|
+
var __defProp$18 = Object.defineProperty;
|
|
4842
|
+
var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
|
|
4843
|
+
var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
|
|
4844
|
+
var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
|
|
4845
|
+
var __defNormalProp$18 = (obj, key, value) => key in obj ? __defProp$18(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4846
|
+
var __spreadValues$18 = (a, b) => {
|
|
4847
4847
|
for (var prop in b || (b = {}))
|
|
4848
|
-
if (__hasOwnProp$
|
|
4849
|
-
__defNormalProp$
|
|
4850
|
-
if (__getOwnPropSymbols$
|
|
4851
|
-
for (var prop of __getOwnPropSymbols$
|
|
4852
|
-
if (__propIsEnum$
|
|
4853
|
-
__defNormalProp$
|
|
4848
|
+
if (__hasOwnProp$18.call(b, prop))
|
|
4849
|
+
__defNormalProp$18(a, prop, b[prop]);
|
|
4850
|
+
if (__getOwnPropSymbols$18)
|
|
4851
|
+
for (var prop of __getOwnPropSymbols$18(b)) {
|
|
4852
|
+
if (__propIsEnum$18.call(b, prop))
|
|
4853
|
+
__defNormalProp$18(a, prop, b[prop]);
|
|
4854
4854
|
}
|
|
4855
4855
|
return a;
|
|
4856
4856
|
};
|
|
4857
|
-
var __objRest$
|
|
4857
|
+
var __objRest$S = (source, exclude) => {
|
|
4858
4858
|
var target = {};
|
|
4859
4859
|
for (var prop in source)
|
|
4860
|
-
if (__hasOwnProp$
|
|
4860
|
+
if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4861
4861
|
target[prop] = source[prop];
|
|
4862
|
-
if (source != null && __getOwnPropSymbols$
|
|
4863
|
-
for (var prop of __getOwnPropSymbols$
|
|
4864
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4862
|
+
if (source != null && __getOwnPropSymbols$18)
|
|
4863
|
+
for (var prop of __getOwnPropSymbols$18(source)) {
|
|
4864
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
|
|
4865
4865
|
target[prop] = source[prop];
|
|
4866
4866
|
}
|
|
4867
4867
|
return target;
|
|
@@ -4879,7 +4879,7 @@
|
|
|
4879
4879
|
onChange: onChangeCallback = ramda.identity,
|
|
4880
4880
|
inputLeftElement,
|
|
4881
4881
|
inputRightElement
|
|
4882
|
-
} = _b, rest = __objRest$
|
|
4882
|
+
} = _b, rest = __objRest$S(_b, [
|
|
4883
4883
|
"name",
|
|
4884
4884
|
"minValue",
|
|
4885
4885
|
"maxValue",
|
|
@@ -4923,7 +4923,7 @@
|
|
|
4923
4923
|
},
|
|
4924
4924
|
/* @__PURE__ */ React.createElement(
|
|
4925
4925
|
DatePicker$1,
|
|
4926
|
-
__spreadValues$
|
|
4926
|
+
__spreadValues$18({
|
|
4927
4927
|
firstDayOfWeek,
|
|
4928
4928
|
"aria-label": label,
|
|
4929
4929
|
isInvalid: !!errors[name],
|
|
@@ -4939,30 +4939,30 @@
|
|
|
4939
4939
|
);
|
|
4940
4940
|
});
|
|
4941
4941
|
|
|
4942
|
-
var __defProp$
|
|
4943
|
-
var __getOwnPropSymbols$
|
|
4944
|
-
var __hasOwnProp$
|
|
4945
|
-
var __propIsEnum$
|
|
4946
|
-
var __defNormalProp$
|
|
4947
|
-
var __spreadValues$
|
|
4942
|
+
var __defProp$17 = Object.defineProperty;
|
|
4943
|
+
var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
|
|
4944
|
+
var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
|
|
4945
|
+
var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
|
|
4946
|
+
var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4947
|
+
var __spreadValues$17 = (a, b) => {
|
|
4948
4948
|
for (var prop in b || (b = {}))
|
|
4949
|
-
if (__hasOwnProp$
|
|
4950
|
-
__defNormalProp$
|
|
4951
|
-
if (__getOwnPropSymbols$
|
|
4952
|
-
for (var prop of __getOwnPropSymbols$
|
|
4953
|
-
if (__propIsEnum$
|
|
4954
|
-
__defNormalProp$
|
|
4949
|
+
if (__hasOwnProp$17.call(b, prop))
|
|
4950
|
+
__defNormalProp$17(a, prop, b[prop]);
|
|
4951
|
+
if (__getOwnPropSymbols$17)
|
|
4952
|
+
for (var prop of __getOwnPropSymbols$17(b)) {
|
|
4953
|
+
if (__propIsEnum$17.call(b, prop))
|
|
4954
|
+
__defNormalProp$17(a, prop, b[prop]);
|
|
4955
4955
|
}
|
|
4956
4956
|
return a;
|
|
4957
4957
|
};
|
|
4958
|
-
var __objRest$
|
|
4958
|
+
var __objRest$R = (source, exclude) => {
|
|
4959
4959
|
var target = {};
|
|
4960
4960
|
for (var prop in source)
|
|
4961
|
-
if (__hasOwnProp$
|
|
4961
|
+
if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4962
4962
|
target[prop] = source[prop];
|
|
4963
|
-
if (source != null && __getOwnPropSymbols$
|
|
4964
|
-
for (var prop of __getOwnPropSymbols$
|
|
4965
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4963
|
+
if (source != null && __getOwnPropSymbols$17)
|
|
4964
|
+
for (var prop of __getOwnPropSymbols$17(source)) {
|
|
4965
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
|
|
4966
4966
|
target[prop] = source[prop];
|
|
4967
4967
|
}
|
|
4968
4968
|
return target;
|
|
@@ -4979,7 +4979,7 @@
|
|
|
4979
4979
|
firstDayOfWeek = "monday",
|
|
4980
4980
|
onChange: onChangeCallback = ramda.identity,
|
|
4981
4981
|
isClearable = true
|
|
4982
|
-
} = _b, rest = __objRest$
|
|
4982
|
+
} = _b, rest = __objRest$R(_b, [
|
|
4983
4983
|
"name",
|
|
4984
4984
|
"minValue",
|
|
4985
4985
|
"maxValue",
|
|
@@ -5016,7 +5016,7 @@
|
|
|
5016
5016
|
},
|
|
5017
5017
|
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React.createElement(
|
|
5018
5018
|
DateRangePicker,
|
|
5019
|
-
__spreadValues$
|
|
5019
|
+
__spreadValues$17({
|
|
5020
5020
|
firstDayOfWeek,
|
|
5021
5021
|
"aria-label": label,
|
|
5022
5022
|
isInvalid: !!errors[name],
|
|
@@ -5032,6 +5032,156 @@
|
|
|
5032
5032
|
);
|
|
5033
5033
|
});
|
|
5034
5034
|
|
|
5035
|
+
var __defProp$16 = Object.defineProperty;
|
|
5036
|
+
var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
|
|
5037
|
+
var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
|
|
5038
|
+
var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
|
|
5039
|
+
var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5040
|
+
var __spreadValues$16 = (a, b) => {
|
|
5041
|
+
for (var prop in b || (b = {}))
|
|
5042
|
+
if (__hasOwnProp$16.call(b, prop))
|
|
5043
|
+
__defNormalProp$16(a, prop, b[prop]);
|
|
5044
|
+
if (__getOwnPropSymbols$16)
|
|
5045
|
+
for (var prop of __getOwnPropSymbols$16(b)) {
|
|
5046
|
+
if (__propIsEnum$16.call(b, prop))
|
|
5047
|
+
__defNormalProp$16(a, prop, b[prop]);
|
|
5048
|
+
}
|
|
5049
|
+
return a;
|
|
5050
|
+
};
|
|
5051
|
+
var __objRest$Q = (source, exclude) => {
|
|
5052
|
+
var target = {};
|
|
5053
|
+
for (var prop in source)
|
|
5054
|
+
if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5055
|
+
target[prop] = source[prop];
|
|
5056
|
+
if (source != null && __getOwnPropSymbols$16)
|
|
5057
|
+
for (var prop of __getOwnPropSymbols$16(source)) {
|
|
5058
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
|
|
5059
|
+
target[prop] = source[prop];
|
|
5060
|
+
}
|
|
5061
|
+
return target;
|
|
5062
|
+
};
|
|
5063
|
+
const TimeoutProgressCircle = (_a) => {
|
|
5064
|
+
var _b = _a, {
|
|
5065
|
+
progress
|
|
5066
|
+
} = _b, rest = __objRest$Q(_b, [
|
|
5067
|
+
"progress"
|
|
5068
|
+
]);
|
|
5069
|
+
const RADIUS = 22;
|
|
5070
|
+
const STROKE_WIDTH = 3;
|
|
5071
|
+
const SVG_SIZE = 2 * (RADIUS + STROKE_WIDTH);
|
|
5072
|
+
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
5073
|
+
const strokeDashoffset = CIRCUMFERENCE - progress / 100 * CIRCUMFERENCE;
|
|
5074
|
+
return /* @__PURE__ */ React.createElement(
|
|
5075
|
+
react.Circle,
|
|
5076
|
+
__spreadValues$16({
|
|
5077
|
+
as: "svg",
|
|
5078
|
+
size: `${SVG_SIZE}px`,
|
|
5079
|
+
viewBox: `0 0 ${SVG_SIZE} ${SVG_SIZE}`,
|
|
5080
|
+
sx: {
|
|
5081
|
+
transform: "rotate(-90deg)"
|
|
5082
|
+
}
|
|
5083
|
+
}, rest),
|
|
5084
|
+
/* @__PURE__ */ React.createElement(
|
|
5085
|
+
system.chakra.circle,
|
|
5086
|
+
{
|
|
5087
|
+
cx: SVG_SIZE / 2,
|
|
5088
|
+
cy: SVG_SIZE / 2,
|
|
5089
|
+
r: RADIUS,
|
|
5090
|
+
fill: "transparent",
|
|
5091
|
+
stroke: "border.hover",
|
|
5092
|
+
strokeWidth: STROKE_WIDTH
|
|
5093
|
+
}
|
|
5094
|
+
),
|
|
5095
|
+
/* @__PURE__ */ React.createElement(
|
|
5096
|
+
system.chakra.circle,
|
|
5097
|
+
{
|
|
5098
|
+
cx: SVG_SIZE / 2,
|
|
5099
|
+
cy: SVG_SIZE / 2,
|
|
5100
|
+
r: RADIUS,
|
|
5101
|
+
fill: "transparent",
|
|
5102
|
+
stroke: "border.error",
|
|
5103
|
+
strokeWidth: STROKE_WIDTH,
|
|
5104
|
+
strokeDasharray: CIRCUMFERENCE,
|
|
5105
|
+
strokeDashoffset,
|
|
5106
|
+
strokeLinecap: "round"
|
|
5107
|
+
}
|
|
5108
|
+
)
|
|
5109
|
+
);
|
|
5110
|
+
};
|
|
5111
|
+
|
|
5112
|
+
const IntentButton = ({
|
|
5113
|
+
icon = icons.TrashDuo,
|
|
5114
|
+
timeout = 1e3,
|
|
5115
|
+
onTimeout = () => {
|
|
5116
|
+
},
|
|
5117
|
+
tooltipText = "Hold to Delete",
|
|
5118
|
+
"aria-label": ariaLabel = "confirm delete"
|
|
5119
|
+
}) => {
|
|
5120
|
+
const [progress, setProgress] = React.useState(0);
|
|
5121
|
+
const [isHovering, setIsHovering] = React.useState(false);
|
|
5122
|
+
const timerRef = React.useRef(void 0);
|
|
5123
|
+
const clearTimer = () => {
|
|
5124
|
+
if (timerRef.current) {
|
|
5125
|
+
clearInterval(timerRef.current);
|
|
5126
|
+
timerRef.current = void 0;
|
|
5127
|
+
}
|
|
5128
|
+
setProgress(0);
|
|
5129
|
+
};
|
|
5130
|
+
React.useEffect(() => clearTimer, []);
|
|
5131
|
+
const startTimer = () => {
|
|
5132
|
+
clearTimer();
|
|
5133
|
+
const startTime = Date.now();
|
|
5134
|
+
timerRef.current = setInterval(() => {
|
|
5135
|
+
const elapsedTime = Date.now() - startTime;
|
|
5136
|
+
const updatedProgress = elapsedTime / timeout * 100;
|
|
5137
|
+
if (updatedProgress >= 100) {
|
|
5138
|
+
clearInterval(timerRef.current);
|
|
5139
|
+
onTimeout();
|
|
5140
|
+
} else {
|
|
5141
|
+
setProgress(updatedProgress);
|
|
5142
|
+
}
|
|
5143
|
+
}, 10);
|
|
5144
|
+
};
|
|
5145
|
+
const handleMouseEnter = () => {
|
|
5146
|
+
setIsHovering(true);
|
|
5147
|
+
};
|
|
5148
|
+
const handleMouseLeave = () => {
|
|
5149
|
+
setIsHovering(false);
|
|
5150
|
+
clearTimer();
|
|
5151
|
+
};
|
|
5152
|
+
return /* @__PURE__ */ React.createElement(react.Tooltip, { label: tooltipText, placement: "top" }, /* @__PURE__ */ React.createElement(
|
|
5153
|
+
react.Center,
|
|
5154
|
+
{
|
|
5155
|
+
position: "relative",
|
|
5156
|
+
cursor: "pointer",
|
|
5157
|
+
onMouseDown: startTimer,
|
|
5158
|
+
onMouseUp: clearTimer,
|
|
5159
|
+
onMouseLeave: handleMouseLeave,
|
|
5160
|
+
onMouseEnter: handleMouseEnter,
|
|
5161
|
+
boxSize: "50px",
|
|
5162
|
+
opacity: `${(100 - progress) / 100}`
|
|
5163
|
+
},
|
|
5164
|
+
/* @__PURE__ */ React.createElement(
|
|
5165
|
+
IconButton,
|
|
5166
|
+
{
|
|
5167
|
+
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icon }),
|
|
5168
|
+
size: "md",
|
|
5169
|
+
"aria-label": ariaLabel,
|
|
5170
|
+
variant: "ghost"
|
|
5171
|
+
}
|
|
5172
|
+
),
|
|
5173
|
+
isHovering && /* @__PURE__ */ React.createElement(
|
|
5174
|
+
TimeoutProgressCircle,
|
|
5175
|
+
{
|
|
5176
|
+
progress,
|
|
5177
|
+
position: "absolute",
|
|
5178
|
+
top: "0",
|
|
5179
|
+
left: "0"
|
|
5180
|
+
}
|
|
5181
|
+
)
|
|
5182
|
+
));
|
|
5183
|
+
};
|
|
5184
|
+
|
|
5035
5185
|
var __defProp$15 = Object.defineProperty;
|
|
5036
5186
|
var __defProps$d = Object.defineProperties;
|
|
5037
5187
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
@@ -5098,7 +5248,7 @@
|
|
|
5098
5248
|
};
|
|
5099
5249
|
const defaultWidth = getPixelSize(size);
|
|
5100
5250
|
const minWidth = getPixelSize("sm");
|
|
5101
|
-
const maxWidth =
|
|
5251
|
+
const maxWidth = window.innerWidth;
|
|
5102
5252
|
const [adjustableWidth, setAdjustableWidth] = React.useState(defaultWidth);
|
|
5103
5253
|
return /* @__PURE__ */ React.createElement(react.Box, { w: adjustableWidth, display: isOpen && shouldPush ? "initial" : "none" }, /* @__PURE__ */ React.createElement(react.Portal, null, /* @__PURE__ */ React.createElement(
|
|
5104
5254
|
Slide,
|
|
@@ -13591,6 +13741,7 @@
|
|
|
13591
13741
|
exports.H6 = H6$1;
|
|
13592
13742
|
exports.Icon = Icon$1;
|
|
13593
13743
|
exports.IconButton = IconButton;
|
|
13744
|
+
exports.IntentButton = IntentButton;
|
|
13594
13745
|
exports.Label = Label$1;
|
|
13595
13746
|
exports.Lead = Lead$1;
|
|
13596
13747
|
exports.MaskedTextInput = MaskedTextInput;
|