@activecollab/components 2.0.509 → 2.0.511
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/cjs/components/CaretButton/CaretButton.js +2 -4
- package/dist/cjs/components/CaretButton/CaretButton.js.map +1 -1
- package/dist/cjs/components/CaretButton/Styles.js +7 -1
- package/dist/cjs/components/CaretButton/Styles.js.map +1 -1
- package/dist/cjs/components/CounterButton/CounterButton.js +1 -2
- package/dist/cjs/components/CounterButton/CounterButton.js.map +1 -1
- package/dist/cjs/components/EditableHours/EditableHours.js +1 -3
- package/dist/cjs/components/EditableHours/EditableHours.js.map +1 -1
- package/dist/cjs/components/Filter/Filter.js +9 -2
- package/dist/cjs/components/Filter/Filter.js.map +1 -1
- package/dist/cjs/components/Filter/Styles.js +13 -1
- package/dist/cjs/components/Filter/Styles.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.js +6 -1
- package/dist/cjs/components/FilterInput/FilterInput.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.styles.js +5 -2
- package/dist/cjs/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/cjs/components/Header/Styles.js +1 -1
- package/dist/cjs/components/Header/Styles.js.map +1 -1
- package/dist/cjs/components/Icons/collection/ArrowRestore.js +1 -0
- package/dist/cjs/components/Icons/collection/ArrowRestore.js.map +1 -1
- package/dist/cjs/components/Icons/collection/CalendarDay.js +64 -0
- package/dist/cjs/components/Icons/collection/CalendarDay.js.map +1 -0
- package/dist/cjs/components/Icons/collection/CalendarMonth.js +64 -0
- package/dist/cjs/components/Icons/collection/CalendarMonth.js.map +1 -0
- package/dist/cjs/components/Icons/collection/CalendarWeek.js +64 -0
- package/dist/cjs/components/Icons/collection/CalendarWeek.js.map +1 -0
- package/dist/cjs/components/Icons/collection/Notebook.js +1 -0
- package/dist/cjs/components/Icons/collection/Notebook.js.map +1 -1
- package/dist/cjs/components/Icons/collection/Pencil.js +1 -0
- package/dist/cjs/components/Icons/collection/Pencil.js.map +1 -1
- package/dist/cjs/components/Icons/collection/index.js +21 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/MultiAvatar/MultiAvatar.js +1 -3
- package/dist/cjs/components/MultiAvatar/MultiAvatar.js.map +1 -1
- package/dist/cjs/components/MultiAvatar/Styles.js +8 -3
- package/dist/cjs/components/MultiAvatar/Styles.js.map +1 -1
- package/dist/cjs/components/Steppers/DateStepper/DateStepper.js +219 -35
- package/dist/cjs/components/Steppers/DateStepper/DateStepper.js.map +1 -1
- package/dist/cjs/components/Steppers/DateStepper/Styles.js +74 -4
- package/dist/cjs/components/Steppers/DateStepper/Styles.js.map +1 -1
- package/dist/cjs/components/Stopwatch/Stopwatch.js +2 -13
- package/dist/cjs/components/Stopwatch/Stopwatch.js.map +1 -1
- package/dist/cjs/components/Wizard/Step.js +1 -2
- package/dist/cjs/components/Wizard/Step.js.map +1 -1
- package/dist/cjs/components/Wizard/Styles.js +6 -1
- package/dist/cjs/components/Wizard/Styles.js.map +1 -1
- package/dist/cjs/utils/layers.js +16 -1
- package/dist/cjs/utils/layers.js.map +1 -1
- package/dist/cjs/utils/layers.test.js +34 -0
- package/dist/cjs/utils/layers.test.js.map +1 -0
- package/dist/esm/components/CaretButton/CaretButton.d.ts.map +1 -1
- package/dist/esm/components/CaretButton/CaretButton.js +3 -5
- package/dist/esm/components/CaretButton/CaretButton.js.map +1 -1
- package/dist/esm/components/CaretButton/Styles.d.ts +3 -0
- package/dist/esm/components/CaretButton/Styles.d.ts.map +1 -1
- package/dist/esm/components/CaretButton/Styles.js +6 -0
- package/dist/esm/components/CaretButton/Styles.js.map +1 -1
- package/dist/esm/components/CounterButton/CounterButton.d.ts.map +1 -1
- package/dist/esm/components/CounterButton/CounterButton.js +1 -2
- package/dist/esm/components/CounterButton/CounterButton.js.map +1 -1
- package/dist/esm/components/EditableHours/EditableHours.js +1 -3
- package/dist/esm/components/EditableHours/EditableHours.js.map +1 -1
- package/dist/esm/components/Filter/Filter.d.ts +3 -0
- package/dist/esm/components/Filter/Filter.d.ts.map +1 -1
- package/dist/esm/components/Filter/Filter.js +10 -3
- package/dist/esm/components/Filter/Filter.js.map +1 -1
- package/dist/esm/components/Filter/Styles.d.ts +2 -0
- package/dist/esm/components/Filter/Styles.d.ts.map +1 -1
- package/dist/esm/components/Filter/Styles.js +12 -0
- package/dist/esm/components/Filter/Styles.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.d.ts.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.js +6 -2
- package/dist/esm/components/FilterInput/FilterInput.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.js +5 -2
- package/dist/esm/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/esm/components/Header/Styles.js +1 -1
- package/dist/esm/components/Header/Styles.js.map +1 -1
- package/dist/esm/components/Icons/collection/ArrowRestore.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/ArrowRestore.js +1 -0
- package/dist/esm/components/Icons/collection/ArrowRestore.js.map +1 -1
- package/dist/esm/components/Icons/collection/CalendarDay.d.ts +32 -0
- package/dist/esm/components/Icons/collection/CalendarDay.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/CalendarDay.js +57 -0
- package/dist/esm/components/Icons/collection/CalendarDay.js.map +1 -0
- package/dist/esm/components/Icons/collection/CalendarMonth.d.ts +32 -0
- package/dist/esm/components/Icons/collection/CalendarMonth.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/CalendarMonth.js +57 -0
- package/dist/esm/components/Icons/collection/CalendarMonth.js.map +1 -0
- package/dist/esm/components/Icons/collection/CalendarWeek.d.ts +32 -0
- package/dist/esm/components/Icons/collection/CalendarWeek.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/CalendarWeek.js +57 -0
- package/dist/esm/components/Icons/collection/CalendarWeek.js.map +1 -0
- package/dist/esm/components/Icons/collection/Notebook.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/Notebook.js +1 -0
- package/dist/esm/components/Icons/collection/Notebook.js.map +1 -1
- package/dist/esm/components/Icons/collection/Pencil.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/Pencil.js +1 -0
- package/dist/esm/components/Icons/collection/Pencil.js.map +1 -1
- package/dist/esm/components/Icons/collection/index.d.ts +3 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +3 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/MultiAvatar/MultiAvatar.d.ts.map +1 -1
- package/dist/esm/components/MultiAvatar/MultiAvatar.js +2 -4
- package/dist/esm/components/MultiAvatar/MultiAvatar.js.map +1 -1
- package/dist/esm/components/MultiAvatar/Styles.d.ts +1 -0
- package/dist/esm/components/MultiAvatar/Styles.d.ts.map +1 -1
- package/dist/esm/components/MultiAvatar/Styles.js +7 -2
- package/dist/esm/components/MultiAvatar/Styles.js.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/DateStepper.d.ts +25 -2
- package/dist/esm/components/Steppers/DateStepper/DateStepper.d.ts.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/DateStepper.js +194 -31
- package/dist/esm/components/Steppers/DateStepper/DateStepper.js.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/Styles.d.ts +15 -0
- package/dist/esm/components/Steppers/DateStepper/Styles.d.ts.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/Styles.js +73 -3
- package/dist/esm/components/Steppers/DateStepper/Styles.js.map +1 -1
- package/dist/esm/components/Stopwatch/Stopwatch.d.ts.map +1 -1
- package/dist/esm/components/Stopwatch/Stopwatch.js +2 -12
- package/dist/esm/components/Stopwatch/Stopwatch.js.map +1 -1
- package/dist/esm/components/Wizard/Step.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Step.js +2 -3
- package/dist/esm/components/Wizard/Step.js.map +1 -1
- package/dist/esm/components/Wizard/Styles.d.ts +3 -0
- package/dist/esm/components/Wizard/Styles.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Styles.js +5 -0
- package/dist/esm/components/Wizard/Styles.js.map +1 -1
- package/dist/esm/utils/layers.d.ts +7 -0
- package/dist/esm/utils/layers.d.ts.map +1 -1
- package/dist/esm/utils/layers.js +13 -0
- package/dist/esm/utils/layers.js.map +1 -1
- package/dist/esm/utils/layers.test.d.ts +2 -0
- package/dist/esm/utils/layers.test.d.ts.map +1 -0
- package/dist/esm/utils/layers.test.js +32 -0
- package/dist/esm/utils/layers.test.js.map +1 -0
- package/dist/index.js +727 -262
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
})(["display:inline-flex;svg{margin:0 4px;}"]);
|
|
234
234
|
StyledButtonElement.displayName = "StyledButtonElement";
|
|
235
235
|
|
|
236
|
-
var _excluded$
|
|
236
|
+
var _excluded$6I = ["children", "active", "variant", "size", "type", "inset", "endAdornment", "endAdornmentInset", "iconOnly", "className"];
|
|
237
237
|
/**
|
|
238
238
|
* @component Button
|
|
239
239
|
* @description
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
_ref$iconOnly = _ref.iconOnly,
|
|
275
275
|
iconOnly = _ref$iconOnly === void 0 ? false : _ref$iconOnly,
|
|
276
276
|
className = _ref.className,
|
|
277
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
277
|
+
args = _objectWithoutProperties(_ref, _excluded$6I);
|
|
278
278
|
var content = endAdornment ? [...(children instanceof Array ? children : [children]), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
279
279
|
key: "end-adornment",
|
|
280
280
|
style: {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
})));
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
var _excluded$
|
|
351
|
+
var _excluded$6H = ["gradient"];
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* @component AddCrossTinyIcon
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
*/
|
|
379
379
|
var AddCrossTinyIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
380
380
|
var gradient = _ref.gradient,
|
|
381
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
381
|
+
props = _objectWithoutProperties(_ref, _excluded$6H);
|
|
382
382
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
383
383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
384
384
|
width: 24,
|
|
@@ -398,12 +398,12 @@
|
|
|
398
398
|
AddCrossTinyIcon.displayName = "AddCrossTinyIcon";
|
|
399
399
|
var AddCrossTinyIcon$1 = AddCrossTinyIcon;
|
|
400
400
|
|
|
401
|
-
var _excluded$
|
|
401
|
+
var _excluded$6G = ["className", "disabled"];
|
|
402
402
|
var GlobalAddButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
403
403
|
var className = _ref.className,
|
|
404
404
|
_ref$disabled = _ref.disabled,
|
|
405
405
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
406
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
406
|
+
rest = _objectWithoutProperties(_ref, _excluded$6G);
|
|
407
407
|
return /*#__PURE__*/React__default["default"].createElement(StyledGlobalAddButton, _extends({
|
|
408
408
|
ref: ref,
|
|
409
409
|
variant: "contained",
|
|
@@ -415,18 +415,7 @@
|
|
|
415
415
|
});
|
|
416
416
|
GlobalAddButton.displayName = "GlobalAddButton";
|
|
417
417
|
|
|
418
|
-
|
|
419
|
-
// not crowd the edge.
|
|
420
|
-
var StyledCaretButton = styled__default["default"](Button).withConfig({
|
|
421
|
-
displayName: "Styles__StyledCaretButton",
|
|
422
|
-
componentId: "sc-11aoinc-0"
|
|
423
|
-
})(["", ""], {
|
|
424
|
-
"paddingLeft": "0.75rem",
|
|
425
|
-
"paddingRight": "0.75rem"
|
|
426
|
-
});
|
|
427
|
-
StyledCaretButton.displayName = "StyledCaretButton";
|
|
428
|
-
|
|
429
|
-
var _excluded$6C = ["gradient"];
|
|
418
|
+
var _excluded$6F = ["gradient"];
|
|
430
419
|
|
|
431
420
|
/**
|
|
432
421
|
* @component RecurringIcon
|
|
@@ -456,7 +445,7 @@
|
|
|
456
445
|
*/
|
|
457
446
|
var RecurringIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
458
447
|
var gradient = _ref.gradient,
|
|
459
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
448
|
+
props = _objectWithoutProperties(_ref, _excluded$6F);
|
|
460
449
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
461
450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
462
451
|
width: 18,
|
|
@@ -477,7 +466,7 @@
|
|
|
477
466
|
RecurringIcon.displayName = "RecurringIcon";
|
|
478
467
|
var RecurringIcon$1 = RecurringIcon;
|
|
479
468
|
|
|
480
|
-
var _excluded$
|
|
469
|
+
var _excluded$6E = ["gradient"];
|
|
481
470
|
|
|
482
471
|
/**
|
|
483
472
|
* @component AccessLogIcon
|
|
@@ -507,7 +496,7 @@
|
|
|
507
496
|
*/
|
|
508
497
|
var AccessLogIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
509
498
|
var gradient = _ref.gradient,
|
|
510
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
499
|
+
props = _objectWithoutProperties(_ref, _excluded$6E);
|
|
511
500
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
512
501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
513
502
|
width: 24,
|
|
@@ -535,7 +524,7 @@
|
|
|
535
524
|
AccessLogIcon.displayName = "AccessLogIcon";
|
|
536
525
|
var AccessLogIcon$1 = AccessLogIcon;
|
|
537
526
|
|
|
538
|
-
var _excluded$
|
|
527
|
+
var _excluded$6D = ["gradient"];
|
|
539
528
|
|
|
540
529
|
/**
|
|
541
530
|
* @component ActivityIcon
|
|
@@ -565,7 +554,7 @@
|
|
|
565
554
|
*/
|
|
566
555
|
var ActivityIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
567
556
|
var gradient = _ref.gradient,
|
|
568
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
557
|
+
props = _objectWithoutProperties(_ref, _excluded$6D);
|
|
569
558
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
570
559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
560
|
width: 24,
|
|
@@ -589,7 +578,7 @@
|
|
|
589
578
|
ActivityIcon.displayName = "ActivityIcon";
|
|
590
579
|
var ActivityIcon$1 = ActivityIcon;
|
|
591
580
|
|
|
592
|
-
var _excluded$
|
|
581
|
+
var _excluded$6C = ["gradient"];
|
|
593
582
|
|
|
594
583
|
/**
|
|
595
584
|
* @component AddCrossIcon
|
|
@@ -619,7 +608,7 @@
|
|
|
619
608
|
*/
|
|
620
609
|
var AddCrossIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
621
610
|
var gradient = _ref.gradient,
|
|
622
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
611
|
+
props = _objectWithoutProperties(_ref, _excluded$6C);
|
|
623
612
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
624
613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
625
614
|
width: 10,
|
|
@@ -639,7 +628,7 @@
|
|
|
639
628
|
AddCrossIcon.displayName = "AddCrossIcon";
|
|
640
629
|
var AddCrossIcon$1 = AddCrossIcon;
|
|
641
630
|
|
|
642
|
-
var _excluded$
|
|
631
|
+
var _excluded$6B = ["gradient"];
|
|
643
632
|
|
|
644
633
|
/**
|
|
645
634
|
* @component ArchiveIcon
|
|
@@ -669,7 +658,7 @@
|
|
|
669
658
|
*/
|
|
670
659
|
var ArchiveIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
671
660
|
var gradient = _ref.gradient,
|
|
672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
661
|
+
props = _objectWithoutProperties(_ref, _excluded$6B);
|
|
673
662
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
674
663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
675
664
|
width: 24,
|
|
@@ -690,7 +679,7 @@
|
|
|
690
679
|
ArchiveIcon.displayName = "ArchiveIcon";
|
|
691
680
|
var ArchiveIcon$1 = ArchiveIcon;
|
|
692
681
|
|
|
693
|
-
var _excluded$
|
|
682
|
+
var _excluded$6A = ["gradient"];
|
|
694
683
|
|
|
695
684
|
/**
|
|
696
685
|
* @component ArrowBackMobileIcon
|
|
@@ -720,7 +709,7 @@
|
|
|
720
709
|
*/
|
|
721
710
|
var ArrowBackMobileIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
722
711
|
var gradient = _ref.gradient,
|
|
723
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
712
|
+
props = _objectWithoutProperties(_ref, _excluded$6A);
|
|
724
713
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
725
714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
726
715
|
width: 24,
|
|
@@ -741,7 +730,7 @@
|
|
|
741
730
|
ArrowBackMobileIcon.displayName = "ArrowBackMobileIcon";
|
|
742
731
|
var ArrowBackMobileIcon$1 = ArrowBackMobileIcon;
|
|
743
732
|
|
|
744
|
-
var _excluded$
|
|
733
|
+
var _excluded$6z = ["gradient"];
|
|
745
734
|
|
|
746
735
|
/**
|
|
747
736
|
* @component ArrowCollapseMultipleIcon
|
|
@@ -771,7 +760,7 @@
|
|
|
771
760
|
*/
|
|
772
761
|
var ArrowCollapseMultipleIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
773
762
|
var gradient = _ref.gradient,
|
|
774
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
763
|
+
props = _objectWithoutProperties(_ref, _excluded$6z);
|
|
775
764
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
776
765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
777
766
|
width: 24,
|
|
@@ -791,7 +780,7 @@
|
|
|
791
780
|
ArrowCollapseMultipleIcon.displayName = "ArrowCollapseMultipleIcon";
|
|
792
781
|
var ArrowCollapseMultipleIcon$1 = ArrowCollapseMultipleIcon;
|
|
793
782
|
|
|
794
|
-
var _excluded$
|
|
783
|
+
var _excluded$6y = ["gradient"];
|
|
795
784
|
|
|
796
785
|
/**
|
|
797
786
|
* @component ArrowDownLongIcon
|
|
@@ -821,7 +810,7 @@
|
|
|
821
810
|
*/
|
|
822
811
|
var ArrowDownLongIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
823
812
|
var gradient = _ref.gradient,
|
|
824
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
813
|
+
props = _objectWithoutProperties(_ref, _excluded$6y);
|
|
825
814
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
826
815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
827
816
|
width: 24,
|
|
@@ -841,7 +830,7 @@
|
|
|
841
830
|
ArrowDownLongIcon.displayName = "ArrowDownLongIcon";
|
|
842
831
|
var ArrowDownLongIcon$1 = ArrowDownLongIcon;
|
|
843
832
|
|
|
844
|
-
var _excluded$
|
|
833
|
+
var _excluded$6x = ["gradient"];
|
|
845
834
|
|
|
846
835
|
/**
|
|
847
836
|
* @component ArrowDownSmallIcon
|
|
@@ -871,7 +860,7 @@
|
|
|
871
860
|
*/
|
|
872
861
|
var ArrowDownSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
873
862
|
var gradient = _ref.gradient,
|
|
874
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
863
|
+
props = _objectWithoutProperties(_ref, _excluded$6x);
|
|
875
864
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
876
865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
877
866
|
width: 16,
|
|
@@ -891,7 +880,7 @@
|
|
|
891
880
|
ArrowDownSmallIcon.displayName = "ArrowDownSmallIcon";
|
|
892
881
|
var ArrowDownSmallIcon$1 = ArrowDownSmallIcon;
|
|
893
882
|
|
|
894
|
-
var _excluded$
|
|
883
|
+
var _excluded$6w = ["gradient"];
|
|
895
884
|
|
|
896
885
|
/**
|
|
897
886
|
* @component ArrowDownIcon
|
|
@@ -921,7 +910,7 @@
|
|
|
921
910
|
*/
|
|
922
911
|
var ArrowDownIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
923
912
|
var gradient = _ref.gradient,
|
|
924
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
913
|
+
props = _objectWithoutProperties(_ref, _excluded$6w);
|
|
925
914
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
926
915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
927
916
|
width: 24,
|
|
@@ -940,7 +929,7 @@
|
|
|
940
929
|
ArrowDownIcon.displayName = "ArrowDownIcon";
|
|
941
930
|
var ArrowDownIcon$1 = ArrowDownIcon;
|
|
942
931
|
|
|
943
|
-
var _excluded$
|
|
932
|
+
var _excluded$6v = ["gradient"];
|
|
944
933
|
|
|
945
934
|
/**
|
|
946
935
|
* @component ArrowExpandeMultipleIcon
|
|
@@ -970,7 +959,7 @@
|
|
|
970
959
|
*/
|
|
971
960
|
var ArrowExpandeMultipleIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
972
961
|
var gradient = _ref.gradient,
|
|
973
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
962
|
+
props = _objectWithoutProperties(_ref, _excluded$6v);
|
|
974
963
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
975
964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
976
965
|
width: 24,
|
|
@@ -990,7 +979,7 @@
|
|
|
990
979
|
ArrowExpandeMultipleIcon.displayName = "ArrowExpandeMultipleIcon";
|
|
991
980
|
var ArrowExpandeMultipleIcon$1 = ArrowExpandeMultipleIcon;
|
|
992
981
|
|
|
993
|
-
var _excluded$
|
|
982
|
+
var _excluded$6u = ["gradient"];
|
|
994
983
|
|
|
995
984
|
/**
|
|
996
985
|
* @component ArrowLeftBoxIcon
|
|
@@ -1020,7 +1009,7 @@
|
|
|
1020
1009
|
*/
|
|
1021
1010
|
var ArrowLeftBoxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1022
1011
|
var gradient = _ref.gradient,
|
|
1023
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1012
|
+
props = _objectWithoutProperties(_ref, _excluded$6u);
|
|
1024
1013
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1025
1014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1026
1015
|
width: 24,
|
|
@@ -1040,7 +1029,7 @@
|
|
|
1040
1029
|
ArrowLeftBoxIcon.displayName = "ArrowLeftBoxIcon";
|
|
1041
1030
|
var ArrowLeftBoxIcon$1 = ArrowLeftBoxIcon;
|
|
1042
1031
|
|
|
1043
|
-
var _excluded$
|
|
1032
|
+
var _excluded$6t = ["gradient"];
|
|
1044
1033
|
|
|
1045
1034
|
/**
|
|
1046
1035
|
* @component ArrowLeftIcon
|
|
@@ -1070,7 +1059,7 @@
|
|
|
1070
1059
|
*/
|
|
1071
1060
|
var ArrowLeftIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1072
1061
|
var gradient = _ref.gradient,
|
|
1073
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1062
|
+
props = _objectWithoutProperties(_ref, _excluded$6t);
|
|
1074
1063
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1075
1064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1076
1065
|
width: 24,
|
|
@@ -1090,7 +1079,7 @@
|
|
|
1090
1079
|
ArrowLeftIcon.displayName = "ArrowLeftIcon";
|
|
1091
1080
|
var ArrowLeftIcon$1 = ArrowLeftIcon;
|
|
1092
1081
|
|
|
1093
|
-
var _excluded$
|
|
1082
|
+
var _excluded$6s = ["gradient"];
|
|
1094
1083
|
|
|
1095
1084
|
/**
|
|
1096
1085
|
* @component ArrowRefreshIcon
|
|
@@ -1120,7 +1109,7 @@
|
|
|
1120
1109
|
*/
|
|
1121
1110
|
var ArrowRefreshIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1122
1111
|
var gradient = _ref.gradient,
|
|
1123
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1112
|
+
props = _objectWithoutProperties(_ref, _excluded$6s);
|
|
1124
1113
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1125
1114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1126
1115
|
width: 24,
|
|
@@ -1141,7 +1130,7 @@
|
|
|
1141
1130
|
ArrowRefreshIcon.displayName = "ArrowRefreshIcon";
|
|
1142
1131
|
var ArrowRefreshIcon$1 = ArrowRefreshIcon;
|
|
1143
1132
|
|
|
1144
|
-
var _excluded$
|
|
1133
|
+
var _excluded$6r = ["gradient"];
|
|
1145
1134
|
|
|
1146
1135
|
/**
|
|
1147
1136
|
* @component ArrowRestoreIcon
|
|
@@ -1171,11 +1160,12 @@
|
|
|
1171
1160
|
*/
|
|
1172
1161
|
var ArrowRestoreIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1173
1162
|
var gradient = _ref.gradient,
|
|
1174
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1163
|
+
props = _objectWithoutProperties(_ref, _excluded$6r);
|
|
1175
1164
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1176
1165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1177
1166
|
width: 24,
|
|
1178
1167
|
height: 24,
|
|
1168
|
+
viewBox: "0 0 24 24",
|
|
1179
1169
|
"data-testid": "ArrowRestoreIcon",
|
|
1180
1170
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
1181
1171
|
focusable: false,
|
|
@@ -1191,7 +1181,7 @@
|
|
|
1191
1181
|
ArrowRestoreIcon.displayName = "ArrowRestoreIcon";
|
|
1192
1182
|
var ArrowRestoreIcon$1 = ArrowRestoreIcon;
|
|
1193
1183
|
|
|
1194
|
-
var _excluded$
|
|
1184
|
+
var _excluded$6q = ["gradient"];
|
|
1195
1185
|
|
|
1196
1186
|
/**
|
|
1197
1187
|
* @component ArrowRightIcon
|
|
@@ -1221,7 +1211,7 @@
|
|
|
1221
1211
|
*/
|
|
1222
1212
|
var ArrowRightIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1223
1213
|
var gradient = _ref.gradient,
|
|
1224
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1214
|
+
props = _objectWithoutProperties(_ref, _excluded$6q);
|
|
1225
1215
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1226
1216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1227
1217
|
width: 24,
|
|
@@ -1241,7 +1231,7 @@
|
|
|
1241
1231
|
ArrowRightIcon.displayName = "ArrowRightIcon";
|
|
1242
1232
|
var ArrowRightIcon$1 = ArrowRightIcon;
|
|
1243
1233
|
|
|
1244
|
-
var _excluded$
|
|
1234
|
+
var _excluded$6p = ["gradient"];
|
|
1245
1235
|
|
|
1246
1236
|
/**
|
|
1247
1237
|
* @component ArrowUpLongIcon
|
|
@@ -1271,7 +1261,7 @@
|
|
|
1271
1261
|
*/
|
|
1272
1262
|
var ArrowUpLongIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1273
1263
|
var gradient = _ref.gradient,
|
|
1274
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1264
|
+
props = _objectWithoutProperties(_ref, _excluded$6p);
|
|
1275
1265
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1276
1266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1277
1267
|
width: 24,
|
|
@@ -1291,7 +1281,7 @@
|
|
|
1291
1281
|
ArrowUpLongIcon.displayName = "ArrowUpLongIcon";
|
|
1292
1282
|
var ArrowUpLongIcon$1 = ArrowUpLongIcon;
|
|
1293
1283
|
|
|
1294
|
-
var _excluded$
|
|
1284
|
+
var _excluded$6o = ["gradient"];
|
|
1295
1285
|
|
|
1296
1286
|
/**
|
|
1297
1287
|
* @component ArrowUpIcon
|
|
@@ -1321,7 +1311,7 @@
|
|
|
1321
1311
|
*/
|
|
1322
1312
|
var ArrowUpIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1323
1313
|
var gradient = _ref.gradient,
|
|
1324
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1314
|
+
props = _objectWithoutProperties(_ref, _excluded$6o);
|
|
1325
1315
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1326
1316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1327
1317
|
width: 24,
|
|
@@ -1340,7 +1330,7 @@
|
|
|
1340
1330
|
ArrowUpIcon.displayName = "ArrowUpIcon";
|
|
1341
1331
|
var ArrowUpIcon$1 = ArrowUpIcon;
|
|
1342
1332
|
|
|
1343
|
-
var _excluded$
|
|
1333
|
+
var _excluded$6n = ["gradient"];
|
|
1344
1334
|
|
|
1345
1335
|
/**
|
|
1346
1336
|
* @component AssignIcon
|
|
@@ -1370,7 +1360,7 @@
|
|
|
1370
1360
|
*/
|
|
1371
1361
|
var AssignIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1372
1362
|
var gradient = _ref.gradient,
|
|
1373
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1363
|
+
props = _objectWithoutProperties(_ref, _excluded$6n);
|
|
1374
1364
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1375
1365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1376
1366
|
width: 24,
|
|
@@ -1390,7 +1380,7 @@
|
|
|
1390
1380
|
AssignIcon.displayName = "AssignIcon";
|
|
1391
1381
|
var AssignIcon$1 = AssignIcon;
|
|
1392
1382
|
|
|
1393
|
-
var _excluded$
|
|
1383
|
+
var _excluded$6m = ["gradient"];
|
|
1394
1384
|
|
|
1395
1385
|
/**
|
|
1396
1386
|
* @component AttachmentIcon
|
|
@@ -1420,7 +1410,7 @@
|
|
|
1420
1410
|
*/
|
|
1421
1411
|
var AttachmentIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1422
1412
|
var gradient = _ref.gradient,
|
|
1423
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1413
|
+
props = _objectWithoutProperties(_ref, _excluded$6m);
|
|
1424
1414
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1425
1415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1426
1416
|
width: 24,
|
|
@@ -1440,7 +1430,7 @@
|
|
|
1440
1430
|
AttachmentIcon.displayName = "AttachmentIcon";
|
|
1441
1431
|
var AttachmentIcon$1 = AttachmentIcon;
|
|
1442
1432
|
|
|
1443
|
-
var _excluded$
|
|
1433
|
+
var _excluded$6l = ["gradient"];
|
|
1444
1434
|
|
|
1445
1435
|
/**
|
|
1446
1436
|
* @component BellOffSmallIcon
|
|
@@ -1470,7 +1460,7 @@
|
|
|
1470
1460
|
*/
|
|
1471
1461
|
var BellOffSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1472
1462
|
var gradient = _ref.gradient,
|
|
1473
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1463
|
+
props = _objectWithoutProperties(_ref, _excluded$6l);
|
|
1474
1464
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1475
1465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1476
1466
|
width: 12,
|
|
@@ -1490,7 +1480,7 @@
|
|
|
1490
1480
|
BellOffSmallIcon.displayName = "BellOffSmallIcon";
|
|
1491
1481
|
var BellOffSmallIcon$1 = BellOffSmallIcon;
|
|
1492
1482
|
|
|
1493
|
-
var _excluded$
|
|
1483
|
+
var _excluded$6k = ["gradient"];
|
|
1494
1484
|
|
|
1495
1485
|
/**
|
|
1496
1486
|
* @component BellOffIcon
|
|
@@ -1520,7 +1510,7 @@
|
|
|
1520
1510
|
*/
|
|
1521
1511
|
var BellOffIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1522
1512
|
var gradient = _ref.gradient,
|
|
1523
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1513
|
+
props = _objectWithoutProperties(_ref, _excluded$6k);
|
|
1524
1514
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1525
1515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1526
1516
|
width: 24,
|
|
@@ -1540,7 +1530,7 @@
|
|
|
1540
1530
|
BellOffIcon.displayName = "BellOffIcon";
|
|
1541
1531
|
var BellOffIcon$1 = BellOffIcon;
|
|
1542
1532
|
|
|
1543
|
-
var _excluded$
|
|
1533
|
+
var _excluded$6j = ["gradient"];
|
|
1544
1534
|
|
|
1545
1535
|
/**
|
|
1546
1536
|
* @component BillingIcon
|
|
@@ -1570,7 +1560,7 @@
|
|
|
1570
1560
|
*/
|
|
1571
1561
|
var BillingIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1572
1562
|
var gradient = _ref.gradient,
|
|
1573
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1563
|
+
props = _objectWithoutProperties(_ref, _excluded$6j);
|
|
1574
1564
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1575
1565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1576
1566
|
width: 24,
|
|
@@ -1593,7 +1583,7 @@
|
|
|
1593
1583
|
BillingIcon.displayName = "BillingIcon";
|
|
1594
1584
|
var BillingIcon$1 = BillingIcon;
|
|
1595
1585
|
|
|
1596
|
-
var _excluded$
|
|
1586
|
+
var _excluded$6i = ["gradient"];
|
|
1597
1587
|
|
|
1598
1588
|
/**
|
|
1599
1589
|
* @component BudgetAlertIcon
|
|
@@ -1623,7 +1613,7 @@
|
|
|
1623
1613
|
*/
|
|
1624
1614
|
var BudgetAlertIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1625
1615
|
var gradient = _ref.gradient,
|
|
1626
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1616
|
+
props = _objectWithoutProperties(_ref, _excluded$6i);
|
|
1627
1617
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1628
1618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
1619
|
width: 24,
|
|
@@ -1643,7 +1633,7 @@
|
|
|
1643
1633
|
BudgetAlertIcon.displayName = "BudgetAlertIcon";
|
|
1644
1634
|
var BudgetAlertIcon$1 = BudgetAlertIcon;
|
|
1645
1635
|
|
|
1646
|
-
var _excluded$
|
|
1636
|
+
var _excluded$6h = ["gradient"];
|
|
1647
1637
|
|
|
1648
1638
|
/**
|
|
1649
1639
|
* @component BulbIcon
|
|
@@ -1673,7 +1663,7 @@
|
|
|
1673
1663
|
*/
|
|
1674
1664
|
var BulbIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1675
1665
|
var gradient = _ref.gradient,
|
|
1676
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1666
|
+
props = _objectWithoutProperties(_ref, _excluded$6h);
|
|
1677
1667
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1678
1668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1679
1669
|
width: 16,
|
|
@@ -1692,7 +1682,7 @@
|
|
|
1692
1682
|
BulbIcon.displayName = "BulbIcon";
|
|
1693
1683
|
var BulbIcon$1 = BulbIcon;
|
|
1694
1684
|
|
|
1695
|
-
var _excluded$
|
|
1685
|
+
var _excluded$6g = ["gradient"];
|
|
1696
1686
|
|
|
1697
1687
|
/**
|
|
1698
1688
|
* @component CalendarAddXIcon
|
|
@@ -1722,7 +1712,7 @@
|
|
|
1722
1712
|
*/
|
|
1723
1713
|
var CalendarAddXIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1724
1714
|
var gradient = _ref.gradient,
|
|
1725
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1715
|
+
props = _objectWithoutProperties(_ref, _excluded$6g);
|
|
1726
1716
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1727
1717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1728
1718
|
width: 24,
|
|
@@ -1742,7 +1732,7 @@
|
|
|
1742
1732
|
CalendarAddXIcon.displayName = "CalendarAddXIcon";
|
|
1743
1733
|
var CalendarAddXIcon$1 = CalendarAddXIcon;
|
|
1744
1734
|
|
|
1745
|
-
var _excluded$
|
|
1735
|
+
var _excluded$6f = ["gradient"];
|
|
1746
1736
|
|
|
1747
1737
|
/**
|
|
1748
1738
|
* @component CalendarImportIcon
|
|
@@ -1772,7 +1762,7 @@
|
|
|
1772
1762
|
*/
|
|
1773
1763
|
var CalendarImportIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1774
1764
|
var gradient = _ref.gradient,
|
|
1775
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1765
|
+
props = _objectWithoutProperties(_ref, _excluded$6f);
|
|
1776
1766
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1777
1767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1778
1768
|
width: 18,
|
|
@@ -1795,7 +1785,7 @@
|
|
|
1795
1785
|
CalendarImportIcon.displayName = "CalendarImportIcon";
|
|
1796
1786
|
var CalendarImportIcon$1 = CalendarImportIcon;
|
|
1797
1787
|
|
|
1798
|
-
var _excluded$
|
|
1788
|
+
var _excluded$6e = ["gradient"];
|
|
1799
1789
|
|
|
1800
1790
|
/**
|
|
1801
1791
|
* @component CalendarIcon
|
|
@@ -1825,7 +1815,7 @@
|
|
|
1825
1815
|
*/
|
|
1826
1816
|
var CalendarIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1827
1817
|
var gradient = _ref.gradient,
|
|
1828
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1818
|
+
props = _objectWithoutProperties(_ref, _excluded$6e);
|
|
1829
1819
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1830
1820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1831
1821
|
width: 24,
|
|
@@ -1845,6 +1835,165 @@
|
|
|
1845
1835
|
CalendarIcon.displayName = "CalendarIcon";
|
|
1846
1836
|
var CalendarIcon$1 = CalendarIcon;
|
|
1847
1837
|
|
|
1838
|
+
var _excluded$6d = ["gradient"];
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* @component CalendarDayIcon
|
|
1842
|
+
* @description
|
|
1843
|
+
*
|
|
1844
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
1845
|
+
* The Icon component is
|
|
1846
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
1847
|
+
*
|
|
1848
|
+
* @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
|
|
1849
|
+
* Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
|
|
1850
|
+
*
|
|
1851
|
+
* @example
|
|
1852
|
+
* return (
|
|
1853
|
+
* <CalendarDayIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
|
|
1854
|
+
* )
|
|
1855
|
+
*
|
|
1856
|
+
* @example
|
|
1857
|
+
* return (
|
|
1858
|
+
* <CalendarDayIcon className="mr-2" />
|
|
1859
|
+
* )
|
|
1860
|
+
*
|
|
1861
|
+
* @see
|
|
1862
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
1863
|
+
* @see
|
|
1864
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
1865
|
+
*/
|
|
1866
|
+
var CalendarDayIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1867
|
+
var gradient = _ref.gradient,
|
|
1868
|
+
props = _objectWithoutProperties(_ref, _excluded$6d);
|
|
1869
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1870
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1871
|
+
width: 24,
|
|
1872
|
+
height: 24,
|
|
1873
|
+
viewBox: "0 0 24 24",
|
|
1874
|
+
"data-testid": "CalendarDayIcon",
|
|
1875
|
+
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
1876
|
+
focusable: false,
|
|
1877
|
+
ref: ref
|
|
1878
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(GradientDefs, {
|
|
1879
|
+
gradient: gradient
|
|
1880
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1881
|
+
fillRule: "evenodd",
|
|
1882
|
+
clipRule: "evenodd",
|
|
1883
|
+
d: "M7 2v2h10V2h2v2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V2zm13 7H4v11h16z"
|
|
1884
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1885
|
+
d: "M10 12.5h4v4h-4z"
|
|
1886
|
+
}));
|
|
1887
|
+
});
|
|
1888
|
+
CalendarDayIcon.displayName = "CalendarDayIcon";
|
|
1889
|
+
var CalendarDayIcon$1 = CalendarDayIcon;
|
|
1890
|
+
|
|
1891
|
+
var _excluded$6c = ["gradient"];
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* @component CalendarMonthIcon
|
|
1895
|
+
* @description
|
|
1896
|
+
*
|
|
1897
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
1898
|
+
* The Icon component is
|
|
1899
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
1900
|
+
*
|
|
1901
|
+
* @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
|
|
1902
|
+
* Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
|
|
1903
|
+
*
|
|
1904
|
+
* @example
|
|
1905
|
+
* return (
|
|
1906
|
+
* <CalendarMonthIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
|
|
1907
|
+
* )
|
|
1908
|
+
*
|
|
1909
|
+
* @example
|
|
1910
|
+
* return (
|
|
1911
|
+
* <CalendarMonthIcon className="mr-2" />
|
|
1912
|
+
* )
|
|
1913
|
+
*
|
|
1914
|
+
* @see
|
|
1915
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
1916
|
+
* @see
|
|
1917
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
1918
|
+
*/
|
|
1919
|
+
var CalendarMonthIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1920
|
+
var gradient = _ref.gradient,
|
|
1921
|
+
props = _objectWithoutProperties(_ref, _excluded$6c);
|
|
1922
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1924
|
+
width: 24,
|
|
1925
|
+
height: 24,
|
|
1926
|
+
viewBox: "0 0 24 24",
|
|
1927
|
+
"data-testid": "CalendarMonthIcon",
|
|
1928
|
+
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
1929
|
+
focusable: false,
|
|
1930
|
+
ref: ref
|
|
1931
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(GradientDefs, {
|
|
1932
|
+
gradient: gradient
|
|
1933
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1934
|
+
fillRule: "evenodd",
|
|
1935
|
+
clipRule: "evenodd",
|
|
1936
|
+
d: "M7 2v2h10V2h2v2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V2zm13 7H4v11h16z"
|
|
1937
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1938
|
+
d: "M6 11h3v3H6zM10.5 11h3v3h-3zM15 11h3v3h-3zM6 15h3v3H6zM10.5 15h3v3h-3zM15 15h3v3h-3z"
|
|
1939
|
+
}));
|
|
1940
|
+
});
|
|
1941
|
+
CalendarMonthIcon.displayName = "CalendarMonthIcon";
|
|
1942
|
+
var CalendarMonthIcon$1 = CalendarMonthIcon;
|
|
1943
|
+
|
|
1944
|
+
var _excluded$6b = ["gradient"];
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* @component CalendarWeekIcon
|
|
1948
|
+
* @description
|
|
1949
|
+
*
|
|
1950
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
1951
|
+
* The Icon component is
|
|
1952
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
1953
|
+
*
|
|
1954
|
+
* @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
|
|
1955
|
+
* Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
|
|
1956
|
+
*
|
|
1957
|
+
* @example
|
|
1958
|
+
* return (
|
|
1959
|
+
* <CalendarWeekIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
|
|
1960
|
+
* )
|
|
1961
|
+
*
|
|
1962
|
+
* @example
|
|
1963
|
+
* return (
|
|
1964
|
+
* <CalendarWeekIcon className="mr-2" />
|
|
1965
|
+
* )
|
|
1966
|
+
*
|
|
1967
|
+
* @see
|
|
1968
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
1969
|
+
* @see
|
|
1970
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
1971
|
+
*/
|
|
1972
|
+
var CalendarWeekIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1973
|
+
var gradient = _ref.gradient,
|
|
1974
|
+
props = _objectWithoutProperties(_ref, _excluded$6b);
|
|
1975
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1976
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1977
|
+
width: 24,
|
|
1978
|
+
height: 24,
|
|
1979
|
+
viewBox: "0 0 24 24",
|
|
1980
|
+
"data-testid": "CalendarWeekIcon",
|
|
1981
|
+
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
1982
|
+
focusable: false,
|
|
1983
|
+
ref: ref
|
|
1984
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(GradientDefs, {
|
|
1985
|
+
gradient: gradient
|
|
1986
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1987
|
+
fillRule: "evenodd",
|
|
1988
|
+
clipRule: "evenodd",
|
|
1989
|
+
d: "M7 2v2h10V2h2v2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V2zm13 7H4v11h16z"
|
|
1990
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1991
|
+
d: "M6 13h12v3H6z"
|
|
1992
|
+
}));
|
|
1993
|
+
});
|
|
1994
|
+
CalendarWeekIcon.displayName = "CalendarWeekIcon";
|
|
1995
|
+
var CalendarWeekIcon$1 = CalendarWeekIcon;
|
|
1996
|
+
|
|
1848
1997
|
var _excluded$6a = ["gradient"];
|
|
1849
1998
|
|
|
1850
1999
|
/**
|
|
@@ -9104,6 +9253,7 @@
|
|
|
9104
9253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9105
9254
|
width: 24,
|
|
9106
9255
|
height: 24,
|
|
9256
|
+
viewBox: "0 0 24 24",
|
|
9107
9257
|
"data-testid": "NotebookIcon",
|
|
9108
9258
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
9109
9259
|
focusable: false,
|
|
@@ -9657,6 +9807,7 @@
|
|
|
9657
9807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9658
9808
|
width: 24,
|
|
9659
9809
|
height: 24,
|
|
9810
|
+
viewBox: "0 0 24 24",
|
|
9660
9811
|
"data-testid": "PencilIcon",
|
|
9661
9812
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
9662
9813
|
focusable: false,
|
|
@@ -15181,6 +15332,22 @@
|
|
|
15181
15332
|
LayoutSingleIcon.displayName = "LayoutSingleIcon";
|
|
15182
15333
|
var LayoutSingleIcon$1 = LayoutSingleIcon;
|
|
15183
15334
|
|
|
15335
|
+
// A caret button carries four more pixels on each side than a plain button, so the caret does
|
|
15336
|
+
// not crowd the edge.
|
|
15337
|
+
var StyledCaretButton = styled__default["default"](Button).withConfig({
|
|
15338
|
+
displayName: "Styles__StyledCaretButton",
|
|
15339
|
+
componentId: "sc-11aoinc-0"
|
|
15340
|
+
})(["", ""], {
|
|
15341
|
+
"paddingLeft": "0.75rem",
|
|
15342
|
+
"paddingRight": "0.75rem"
|
|
15343
|
+
});
|
|
15344
|
+
StyledCaretButton.displayName = "StyledCaretButton";
|
|
15345
|
+
var StyledCaretIcon$1 = styled__default["default"](CollapseExpandSingleIcon$1).withConfig({
|
|
15346
|
+
displayName: "Styles__StyledCaretIcon",
|
|
15347
|
+
componentId: "sc-11aoinc-1"
|
|
15348
|
+
})(["transform:rotate(180deg);"]);
|
|
15349
|
+
StyledCaretIcon$1.displayName = "StyledCaretIcon";
|
|
15350
|
+
|
|
15184
15351
|
var _excluded$25 = ["children", "className"];
|
|
15185
15352
|
var CARET_SIZE = 16;
|
|
15186
15353
|
|
|
@@ -15208,10 +15375,9 @@
|
|
|
15208
15375
|
return /*#__PURE__*/React__default["default"].createElement(StyledCaretButton, _extends({
|
|
15209
15376
|
ref: ref,
|
|
15210
15377
|
className: classnames__default["default"]("c-caret-btn", className),
|
|
15211
|
-
endAdornment: /*#__PURE__*/React__default["default"].createElement(
|
|
15378
|
+
endAdornment: /*#__PURE__*/React__default["default"].createElement(StyledCaretIcon$1, {
|
|
15212
15379
|
width: CARET_SIZE,
|
|
15213
|
-
height: CARET_SIZE
|
|
15214
|
-
className: "tw-rotate-180"
|
|
15380
|
+
height: CARET_SIZE
|
|
15215
15381
|
}),
|
|
15216
15382
|
endAdornmentInset: CARET_INSET
|
|
15217
15383
|
}, rest), children);
|
|
@@ -15382,6 +15548,21 @@
|
|
|
15382
15548
|
tower: 1200,
|
|
15383
15549
|
house: 1000
|
|
15384
15550
|
};
|
|
15551
|
+
var LAYER_SELECTOR = ".c-window";
|
|
15552
|
+
|
|
15553
|
+
/** The layer in front: the last open window, or null when the page itself is in front. */
|
|
15554
|
+
var getTopLayer = function getTopLayer() {
|
|
15555
|
+
var windows = document.querySelectorAll(LAYER_SELECTOR);
|
|
15556
|
+
return windows.length ? windows[windows.length - 1] : null;
|
|
15557
|
+
};
|
|
15558
|
+
|
|
15559
|
+
/**
|
|
15560
|
+
* True when the layer of the element is in front. A handler of a global shortcut asks this first, so the shortcut
|
|
15561
|
+
* goes to the layer the user works in and never to a page or a window under it.
|
|
15562
|
+
*/
|
|
15563
|
+
var isInTopLayer = function isInTopLayer(element) {
|
|
15564
|
+
return element ? element.closest(LAYER_SELECTOR) === getTopLayer() : false;
|
|
15565
|
+
};
|
|
15385
15566
|
|
|
15386
15567
|
var colors$1 = {
|
|
15387
15568
|
yellow: {
|
|
@@ -18079,8 +18260,7 @@
|
|
|
18079
18260
|
dimension: 16,
|
|
18080
18261
|
value: counter
|
|
18081
18262
|
}) : null), counter > 0 ? /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
18082
|
-
title: "".concat(tooltipText)
|
|
18083
|
-
popperTooltipClassName: "z-index-1300"
|
|
18263
|
+
title: "".concat(tooltipText)
|
|
18084
18264
|
}, /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonReset, {
|
|
18085
18265
|
variant: "text colored",
|
|
18086
18266
|
className: "c-counter-button__reset",
|
|
@@ -18124,7 +18304,7 @@
|
|
|
18124
18304
|
var StyledButtonGroup = styled__default["default"](ButtonGroup).withConfig({
|
|
18125
18305
|
displayName: "Styles__StyledButtonGroup",
|
|
18126
18306
|
componentId: "sc-1v8h7mt-2"
|
|
18127
|
-
})(["", " ", " button:hover{position:relative;z-index:1;}"], FontStyle, BoxSizingStyle);
|
|
18307
|
+
})(["", " ", " button:hover{position:relative;z-index:1;}> button:first-child + div{margin-left:-1px;}"], FontStyle, BoxSizingStyle);
|
|
18128
18308
|
var StyledSpan$1 = styled__default["default"].span.withConfig({
|
|
18129
18309
|
displayName: "Styles__StyledSpan",
|
|
18130
18310
|
componentId: "sc-1v8h7mt-3"
|
|
@@ -18161,7 +18341,7 @@
|
|
|
18161
18341
|
"WebkitFontSmoothing": "antialiased",
|
|
18162
18342
|
"MozOsxFontSmoothing": "grayscale"
|
|
18163
18343
|
}, function (props) {
|
|
18164
|
-
return props.$mode !== "flat" && styled.css(["border:1px solid var(--color-theme-
|
|
18344
|
+
return props.$mode !== "flat" && styled.css(["border:1px solid var(--color-theme-600);"]);
|
|
18165
18345
|
}, function (props) {
|
|
18166
18346
|
return !props.$alwaysShowDate && styled.css(["@media (max-width:768px){display:none;}"]);
|
|
18167
18347
|
}, function (props) {
|
|
@@ -18172,7 +18352,77 @@
|
|
|
18172
18352
|
var StyledControl = styled__default["default"](IconButton).withConfig({
|
|
18173
18353
|
displayName: "Styles__StyledControl",
|
|
18174
18354
|
componentId: "sc-1v8h7mt-5"
|
|
18175
|
-
})(["border-radius:var(--ac-br-8);"]);
|
|
18355
|
+
})(["border-radius:var(--ac-br-8);&&:not(:hover):not(:active){border-color:var(--color-theme-600);}&&:disabled{opacity:1;svg{opacity:0.5;}}"]);
|
|
18356
|
+
var StyledStepValue = styled__default["default"].span.withConfig({
|
|
18357
|
+
displayName: "Styles__StyledStepValue",
|
|
18358
|
+
componentId: "sc-1v8h7mt-6"
|
|
18359
|
+
})(["display:inline-flex;align-items:center;justify-content:center;gap:2px;margin-right:-4px;white-space:nowrap;&& svg{width:16px;height:16px;flex-shrink:0;color:inherit;fill:currentColor;}"]);
|
|
18360
|
+
|
|
18361
|
+
/* the label keeps the middle of the button and the caret stands at its right edge */
|
|
18362
|
+
var StyledDateValue = styled__default["default"](StyledStepValue).withConfig({
|
|
18363
|
+
displayName: "Styles__StyledDateValue",
|
|
18364
|
+
componentId: "sc-1v8h7mt-7"
|
|
18365
|
+
})(["display:flex;width:calc(100% + 6px);margin-right:-6px;gap:4px;> span{flex:1 1 0;min-width:0;text-align:center;}"]);
|
|
18366
|
+
StyledDateValue.displayName = "StyledDateValue";
|
|
18367
|
+
/* an icon in the list of steps keeps the default icon color, as in every other menu */
|
|
18368
|
+
var StyledStepOptionIcon = styled__default["default"].span.withConfig({
|
|
18369
|
+
displayName: "Styles__StyledStepOptionIcon",
|
|
18370
|
+
componentId: "sc-1v8h7mt-8"
|
|
18371
|
+
})(["display:inline-flex;margin-right:8px;vertical-align:middle;&& svg{width:20px;height:20px;}"]);
|
|
18372
|
+
StyledStepOptionIcon.displayName = "StyledStepOptionIcon";
|
|
18373
|
+
StyledStepValue.displayName = "StyledStepValue";
|
|
18374
|
+
/* The pill appearance: one soft filled pill, with no borders. The paper shows as the line before the step picker. */
|
|
18375
|
+
var StyledPill = styled__default["default"].div.withConfig({
|
|
18376
|
+
displayName: "Styles__StyledPill",
|
|
18377
|
+
componentId: "sc-1v8h7mt-9"
|
|
18378
|
+
})(["", " ", " --c-date-stepper-height:32px;--c-date-stepper-arrow:24px;display:inline-flex;align-items:stretch;height:var(--c-date-stepper-height);border-radius:16px;background-color:color-mix(in srgb,var(--color-theme-900) 8%,transparent);&.c-date-stepper--small{--c-date-stepper-height:30px;--c-date-stepper-arrow:20px;}"], FontStyle, BoxSizingStyle);
|
|
18379
|
+
var pillPart = styled.css(["display:inline-flex;align-items:center;justify-content:center;height:var(--c-date-stepper-height);margin:0;border:0;background:none;color:var(--color-theme-800);font:inherit;cursor:pointer;svg{flex-shrink:0;color:inherit;fill:currentColor;}&:focus{outline:none;}&:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px;}"]);
|
|
18380
|
+
var StyledPillArrow = styled__default["default"].button.withConfig({
|
|
18381
|
+
displayName: "Styles__StyledPillArrow",
|
|
18382
|
+
componentId: "sc-1v8h7mt-10"
|
|
18383
|
+
})(["", " padding:", ";border-radius:", ";color:var(--color-theme-900);svg{width:var(--c-date-stepper-arrow);height:var(--c-date-stepper-arrow);}&:hover:not(:disabled){color:var(--color-primary);}&:disabled{cursor:default;color:var(--color-theme-500);}"], pillPart, function (_ref) {
|
|
18384
|
+
var $side = _ref.$side;
|
|
18385
|
+
return $side === "start" ? "0 4px 0 6px" : "0 6px 0 4px";
|
|
18386
|
+
}, function (_ref2) {
|
|
18387
|
+
var $side = _ref2.$side;
|
|
18388
|
+
return $side === "start" ? "16px 0 0 16px" : "0 16px 16px 0";
|
|
18389
|
+
});
|
|
18390
|
+
var StyledPillButton$1 = styled__default["default"].button.withConfig({
|
|
18391
|
+
displayName: "Styles__StyledPillButton",
|
|
18392
|
+
componentId: "sc-1v8h7mt-11"
|
|
18393
|
+
})(["", " gap:", "px;padding:", ";font-size:14px;font-weight:500;line-height:1;white-space:nowrap;svg{width:16px;height:16px;color:var(--color-theme-700);}&:hover,&[aria-expanded=\"true\"]{color:var(--color-primary);svg{color:var(--color-primary);}}"], pillPart, function (_ref3) {
|
|
18394
|
+
var $compact = _ref3.$compact;
|
|
18395
|
+
return $compact ? 0 : 6;
|
|
18396
|
+
}, function (_ref4) {
|
|
18397
|
+
var $compact = _ref4.$compact;
|
|
18398
|
+
return $compact ? "0 6px" : "0 4px 0 6px";
|
|
18399
|
+
});
|
|
18400
|
+
|
|
18401
|
+
/* next to a badge the text ends at the badge, so the distance between the two never changes */
|
|
18402
|
+
var StyledPillLabel = styled__default["default"].span.withConfig({
|
|
18403
|
+
displayName: "Styles__StyledPillLabel",
|
|
18404
|
+
componentId: "sc-1v8h7mt-12"
|
|
18405
|
+
})(["display:inline-block;text-align:", ";margin-right:", "px;"], function (_ref5) {
|
|
18406
|
+
var $withBadge = _ref5.$withBadge;
|
|
18407
|
+
return $withBadge ? "right" : "center";
|
|
18408
|
+
}, function (_ref6) {
|
|
18409
|
+
var $withBadge = _ref6.$withBadge;
|
|
18410
|
+
return $withBadge ? -2 : 0;
|
|
18411
|
+
});
|
|
18412
|
+
var StyledPillBadge = styled__default["default"].span.withConfig({
|
|
18413
|
+
displayName: "Styles__StyledPillBadge",
|
|
18414
|
+
componentId: "sc-1v8h7mt-13"
|
|
18415
|
+
})(["display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:18px;padding:0 6px;border-radius:9px;border:1px solid color-mix(in srgb,var(--page-paper-main) 50%,transparent);background-color:transparent;color:var(--color-theme-700);font-size:11px;font-variant-numeric:tabular-nums;box-sizing:border-box;"]);
|
|
18416
|
+
var StyledPillDivider = styled__default["default"].span.withConfig({
|
|
18417
|
+
displayName: "Styles__StyledPillDivider",
|
|
18418
|
+
componentId: "sc-1v8h7mt-14"
|
|
18419
|
+
})(["flex:0 0 1px;background-color:var(--page-paper-main);"]);
|
|
18420
|
+
StyledPill.displayName = "StyledPill";
|
|
18421
|
+
StyledPillArrow.displayName = "StyledPillArrow";
|
|
18422
|
+
StyledPillButton$1.displayName = "StyledPillButton";
|
|
18423
|
+
StyledPillLabel.displayName = "StyledPillLabel";
|
|
18424
|
+
StyledPillBadge.displayName = "StyledPillBadge";
|
|
18425
|
+
StyledPillDivider.displayName = "StyledPillDivider";
|
|
18176
18426
|
StyledButtonGroup.displayName = "StyledButtonGroup";
|
|
18177
18427
|
StyledSpan$1.displayName = "StyledSpan";
|
|
18178
18428
|
StyledDiv$1.displayName = "StyledDiv";
|
|
@@ -19832,12 +20082,62 @@
|
|
|
19832
20082
|
}) : null);
|
|
19833
20083
|
};
|
|
19834
20084
|
|
|
20085
|
+
/**
|
|
20086
|
+
* Every range of a step that lies whole inside the year of `from`. The pill appearance sizes its date block
|
|
20087
|
+
* after the widest one, so the block keeps its width while the user moves back and forward.
|
|
20088
|
+
*/
|
|
20089
|
+
var getStepRanges = function getStepRanges(step, from, period) {
|
|
20090
|
+
var unit = {
|
|
20091
|
+
daily: "day",
|
|
20092
|
+
weekly: period,
|
|
20093
|
+
monthly: "month",
|
|
20094
|
+
quarterly: "quarter",
|
|
20095
|
+
yearly: "year"
|
|
20096
|
+
}[step];
|
|
20097
|
+
if (!unit) {
|
|
20098
|
+
return [];
|
|
20099
|
+
}
|
|
20100
|
+
var year = moment__default["default"].utc(from).year();
|
|
20101
|
+
var add = unit === "isoWeek" ? "week" : unit;
|
|
20102
|
+
var ranges = [];
|
|
20103
|
+
var cursor = moment__default["default"].utc([year, 0, 1]).startOf(unit);
|
|
20104
|
+
if (cursor.year() < year && unit !== "week" && unit !== "isoWeek") {
|
|
20105
|
+
cursor = cursor.add(1, add);
|
|
20106
|
+
}
|
|
20107
|
+
while (cursor.year() <= year && ranges.length < 400) {
|
|
20108
|
+
var end = cursor.clone().endOf(unit);
|
|
20109
|
+
|
|
20110
|
+
// a range that crosses the year writes the year in its label, so it is not a fair measure
|
|
20111
|
+
if (cursor.year() === year && end.year() === year) {
|
|
20112
|
+
ranges.push([cursor.clone(), end]);
|
|
20113
|
+
}
|
|
20114
|
+
cursor = cursor.clone().add(1, add);
|
|
20115
|
+
}
|
|
20116
|
+
return ranges;
|
|
20117
|
+
};
|
|
20118
|
+
var measureContext;
|
|
20119
|
+
var measureText = function measureText(text, font) {
|
|
20120
|
+
if (measureContext === undefined) {
|
|
20121
|
+
try {
|
|
20122
|
+
measureContext = document.createElement("canvas").getContext("2d");
|
|
20123
|
+
} catch (error) {
|
|
20124
|
+
measureContext = null;
|
|
20125
|
+
}
|
|
20126
|
+
}
|
|
20127
|
+
if (!measureContext) {
|
|
20128
|
+
return 0;
|
|
20129
|
+
}
|
|
20130
|
+
measureContext.font = font;
|
|
20131
|
+
return measureContext.measureText(text).width;
|
|
20132
|
+
};
|
|
20133
|
+
|
|
19835
20134
|
/**
|
|
19836
20135
|
* This component allow you to select date range. It accepts two parameters "from" and "to" as valid format
|
|
19837
20136
|
* onChange and onBack and onForward it will return "from: Date" and "to: Date" as function arguments
|
|
19838
20137
|
*/
|
|
19839
20138
|
|
|
19840
20139
|
var DateStepper = function DateStepper(_ref) {
|
|
20140
|
+
var _stepOption$label, _stepOption$icon2;
|
|
19841
20141
|
var step = _ref.step,
|
|
19842
20142
|
formatCallback = _ref.formatCallback,
|
|
19843
20143
|
onChange = _ref.onChange,
|
|
@@ -19864,15 +20164,36 @@
|
|
|
19864
20164
|
alwaysShowDate = _ref$alwaysShowDate === void 0 ? false : _ref$alwaysShowDate,
|
|
19865
20165
|
_ref$disableArrows = _ref.disableArrows,
|
|
19866
20166
|
disableArrows = _ref$disableArrows === void 0 ? false : _ref$disableArrows,
|
|
19867
|
-
maxRange = _ref.maxRange
|
|
19868
|
-
|
|
20167
|
+
maxRange = _ref.maxRange,
|
|
20168
|
+
stepOptions = _ref.stepOptions,
|
|
20169
|
+
onStepChange = _ref.onStepChange,
|
|
20170
|
+
_ref$appearance = _ref.appearance,
|
|
20171
|
+
appearance = _ref$appearance === void 0 ? "segments" : _ref$appearance,
|
|
20172
|
+
_ref$size = _ref.size,
|
|
20173
|
+
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
20174
|
+
formatBadge = _ref.formatBadge;
|
|
20175
|
+
var _useState = React.useState(false),
|
|
19869
20176
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19870
|
-
|
|
19871
|
-
|
|
19872
|
-
var
|
|
20177
|
+
isStepMenuOpen = _useState2[0],
|
|
20178
|
+
setStepMenuOpen = _useState2[1];
|
|
20179
|
+
var openStepMenu = React.useCallback(function () {
|
|
20180
|
+
return setStepMenuOpen(true);
|
|
20181
|
+
}, []);
|
|
20182
|
+
var closeStepMenu = React.useCallback(function () {
|
|
20183
|
+
return setStepMenuOpen(false);
|
|
20184
|
+
}, []);
|
|
20185
|
+
var stepOption = stepOptions === null || stepOptions === void 0 ? void 0 : stepOptions.find(function (option) {
|
|
20186
|
+
return option.value === step;
|
|
20187
|
+
});
|
|
20188
|
+
var stepLabel = (_stepOption$label = stepOption === null || stepOption === void 0 ? void 0 : stepOption.label) !== null && _stepOption$label !== void 0 ? _stepOption$label : step;
|
|
20189
|
+
var _useState3 = React.useState(moment__default["default"].utc(from)),
|
|
19873
20190
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19874
|
-
|
|
19875
|
-
|
|
20191
|
+
fromDate = _useState4[0],
|
|
20192
|
+
setFromDate = _useState4[1];
|
|
20193
|
+
var _useState5 = React.useState(to ? moment__default["default"].utc(to) : null),
|
|
20194
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
20195
|
+
toDate = _useState6[0],
|
|
20196
|
+
setToDate = _useState6[1];
|
|
19876
20197
|
var getDatesByPeriod = React.useCallback(function (interval) {
|
|
19877
20198
|
var date = fromDate ? fromDate : moment__default["default"]();
|
|
19878
20199
|
if (step === "daily") {
|
|
@@ -19904,7 +20225,7 @@
|
|
|
19904
20225
|
}
|
|
19905
20226
|
return [date, date];
|
|
19906
20227
|
}, [fromDate, toDate, period, step]);
|
|
19907
|
-
var
|
|
20228
|
+
var formatRange = React.useCallback(function (fromDate, toDate) {
|
|
19908
20229
|
if (formatCallback) {
|
|
19909
20230
|
return formatCallback(fromDate, toDate ? toDate : fromDate);
|
|
19910
20231
|
}
|
|
@@ -19949,7 +20270,10 @@
|
|
|
19949
20270
|
return showWeekOrCustomDateFormat(fromDate, toDate);
|
|
19950
20271
|
}
|
|
19951
20272
|
return "";
|
|
19952
|
-
}, [
|
|
20273
|
+
}, [step, formatCallback, period]);
|
|
20274
|
+
var getDateFormatted = React.useMemo(function () {
|
|
20275
|
+
return formatRange(fromDate, toDate);
|
|
20276
|
+
}, [formatRange, fromDate, toDate]);
|
|
19953
20277
|
var datePickerMode = React.useMemo(function () {
|
|
19954
20278
|
if (step === "custom") return "custom";
|
|
19955
20279
|
if (step === "yearly") return "custom";
|
|
@@ -20087,6 +20411,120 @@
|
|
|
20087
20411
|
}
|
|
20088
20412
|
};
|
|
20089
20413
|
}, [isDisabled]);
|
|
20414
|
+
var labelRef = React.useRef(null);
|
|
20415
|
+
var _useState7 = React.useState(),
|
|
20416
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
20417
|
+
labelWidth = _useState8[0],
|
|
20418
|
+
setLabelWidth = _useState8[1];
|
|
20419
|
+
var fromYear = fromDate.year();
|
|
20420
|
+
|
|
20421
|
+
// The date block of the pill takes the width of the widest range of the step, so it does not jump on back and forward.
|
|
20422
|
+
React.useLayoutEffect(function () {
|
|
20423
|
+
if (appearance !== "pill" || !labelRef.current) {
|
|
20424
|
+
return;
|
|
20425
|
+
}
|
|
20426
|
+
var _window$getComputedSt = window.getComputedStyle(labelRef.current),
|
|
20427
|
+
font = _window$getComputedSt.font;
|
|
20428
|
+
var widths = getStepRanges(step, moment__default["default"].utc([fromYear, 0, 1]), period).map(function (_ref2) {
|
|
20429
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
20430
|
+
start = _ref3[0],
|
|
20431
|
+
end = _ref3[1];
|
|
20432
|
+
return formatRange(start, end);
|
|
20433
|
+
}).filter(function (label) {
|
|
20434
|
+
return typeof label === "string";
|
|
20435
|
+
}).map(function (label) {
|
|
20436
|
+
return measureText(label, font);
|
|
20437
|
+
});
|
|
20438
|
+
setLabelWidth(widths.length ? Math.ceil(Math.max(...widths)) : undefined);
|
|
20439
|
+
}, [appearance, formatRange, fromYear, period, step]);
|
|
20440
|
+
var badge = appearance === "pill" && formatBadge ? formatBadge(fromDate, toDate ? toDate : fromDate) : undefined;
|
|
20441
|
+
var renderDatePicker = function renderDatePicker(target) {
|
|
20442
|
+
return /*#__PURE__*/React__default["default"].createElement(DatePicker, {
|
|
20443
|
+
month: defaultMonth,
|
|
20444
|
+
onCalendarToggle: onToggleDatePicker,
|
|
20445
|
+
target: target,
|
|
20446
|
+
mode: datePickerMode,
|
|
20447
|
+
selected: {
|
|
20448
|
+
from: moment__default["default"].utc(fromDate).unix(),
|
|
20449
|
+
to: toDate ? moment__default["default"].utc(toDate).unix() : null
|
|
20450
|
+
},
|
|
20451
|
+
onChange: onDatePickerChange,
|
|
20452
|
+
firstDayOfWeek: period === "week" ? 0 : 1,
|
|
20453
|
+
modifiers: modifiers,
|
|
20454
|
+
disabledDaysAfter: maxValue,
|
|
20455
|
+
disabledDaysBefore: minValue,
|
|
20456
|
+
disableYearPicker: !enableYearPicker,
|
|
20457
|
+
popperClassName: popperClassName,
|
|
20458
|
+
position: position,
|
|
20459
|
+
maxRange: maxRange,
|
|
20460
|
+
key: datePickerMode,
|
|
20461
|
+
instant: true,
|
|
20462
|
+
required: true
|
|
20463
|
+
});
|
|
20464
|
+
};
|
|
20465
|
+
var renderStepMenu = function renderStepMenu(target) {
|
|
20466
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
20467
|
+
open: isStepMenuOpen,
|
|
20468
|
+
onOpen: openStepMenu,
|
|
20469
|
+
onClose: closeStepMenu,
|
|
20470
|
+
position: "bottom-start",
|
|
20471
|
+
target: target
|
|
20472
|
+
}, /*#__PURE__*/React__default["default"].createElement(List, null, (stepOptions !== null && stepOptions !== void 0 ? stepOptions : []).map(function (option) {
|
|
20473
|
+
return /*#__PURE__*/React__default["default"].createElement(ListItem, {
|
|
20474
|
+
key: option.value,
|
|
20475
|
+
"aria-selected": option.value === step,
|
|
20476
|
+
onClick: function onClick() {
|
|
20477
|
+
closeStepMenu();
|
|
20478
|
+
onStepChange === null || onStepChange === void 0 || onStepChange(option.value);
|
|
20479
|
+
}
|
|
20480
|
+
}, option.icon ? /*#__PURE__*/React__default["default"].createElement(StyledStepOptionIcon, null, option.icon) : null, option.label);
|
|
20481
|
+
})));
|
|
20482
|
+
};
|
|
20483
|
+
if (appearance === "pill") {
|
|
20484
|
+
var _stepOption$icon;
|
|
20485
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledPill, {
|
|
20486
|
+
className: classnames__default["default"]("c-date-stepper", "c-date-stepper--pill", {
|
|
20487
|
+
"c-date-stepper--small": size === "small"
|
|
20488
|
+
}, className)
|
|
20489
|
+
}, !disableArrows ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledPillArrow, {
|
|
20490
|
+
type: "button",
|
|
20491
|
+
onClick: onLeftClickHandler,
|
|
20492
|
+
disabled: isBeforeMinDate,
|
|
20493
|
+
$side: "start"
|
|
20494
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon$1, null)), /*#__PURE__*/React__default["default"].createElement(StyledPillDivider, null)) : null, withDatePicker && step !== "yearly" ? renderDatePicker(/*#__PURE__*/React__default["default"].createElement(StyledPillButton$1, {
|
|
20495
|
+
type: "button",
|
|
20496
|
+
"data-testid": "date-stepper-date"
|
|
20497
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledPillLabel, {
|
|
20498
|
+
ref: labelRef,
|
|
20499
|
+
style: {
|
|
20500
|
+
minWidth: labelWidth
|
|
20501
|
+
},
|
|
20502
|
+
$withBadge: Boolean(badge)
|
|
20503
|
+
}, getDateFormatted), badge ? /*#__PURE__*/React__default["default"].createElement(StyledPillBadge, {
|
|
20504
|
+
"data-testid": "date-stepper-badge"
|
|
20505
|
+
}, badge) : null, /*#__PURE__*/React__default["default"].createElement(ArrowDownSmallIcon$1, null))) : /*#__PURE__*/React__default["default"].createElement(StyledPillButton$1, {
|
|
20506
|
+
as: "span",
|
|
20507
|
+
"data-testid": "date-stepper-date"
|
|
20508
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledPillLabel, {
|
|
20509
|
+
ref: labelRef,
|
|
20510
|
+
style: {
|
|
20511
|
+
minWidth: labelWidth
|
|
20512
|
+
}
|
|
20513
|
+
}, getDateFormatted)), stepOptions !== null && stepOptions !== void 0 && stepOptions.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledPillDivider, null), /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
20514
|
+
title: stepLabel,
|
|
20515
|
+
disable: isStepMenuOpen
|
|
20516
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, renderStepMenu(/*#__PURE__*/React__default["default"].createElement(StyledPillButton$1, {
|
|
20517
|
+
type: "button",
|
|
20518
|
+
"data-testid": "date-stepper-step",
|
|
20519
|
+
"aria-label": stepLabel,
|
|
20520
|
+
$compact: true
|
|
20521
|
+
}, (_stepOption$icon = stepOption === null || stepOption === void 0 ? void 0 : stepOption.icon) !== null && _stepOption$icon !== void 0 ? _stepOption$icon : stepLabel, /*#__PURE__*/React__default["default"].createElement(ArrowDownSmallIcon$1, null)))))) : null, !disableArrows ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledPillDivider, null), /*#__PURE__*/React__default["default"].createElement(StyledPillArrow, {
|
|
20522
|
+
type: "button",
|
|
20523
|
+
onClick: onRightClickHandler,
|
|
20524
|
+
disabled: isAfterMaxDate,
|
|
20525
|
+
$side: "end"
|
|
20526
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowRightIcon$1, null))) : null);
|
|
20527
|
+
}
|
|
20090
20528
|
return /*#__PURE__*/React__default["default"].createElement(StyledButtonGroup, {
|
|
20091
20529
|
className: classnames__default["default"]("c-date-stepper", className)
|
|
20092
20530
|
}, !disableArrows ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
|
|
@@ -20100,31 +20538,24 @@
|
|
|
20100
20538
|
$mode: mode,
|
|
20101
20539
|
$alwaysShowDate: alwaysShowDate,
|
|
20102
20540
|
style: dateStepperWidth(fromDate, toDate, step)
|
|
20103
|
-
}, withDatePicker && step !== "yearly" ? /*#__PURE__*/React__default["default"].createElement(
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
popperClassName: popperClassName,
|
|
20122
|
-
position: position,
|
|
20123
|
-
maxRange: maxRange,
|
|
20124
|
-
key: datePickerMode,
|
|
20125
|
-
instant: true,
|
|
20126
|
-
required: true
|
|
20127
|
-
}) : /*#__PURE__*/React__default["default"].createElement(StyledSpan$1, null, getDateFormatted)), !disableArrows ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
|
|
20541
|
+
}, withDatePicker && step !== "yearly" ? renderDatePicker(/*#__PURE__*/React__default["default"].createElement(StyledButton$1, {
|
|
20542
|
+
$step: "range",
|
|
20543
|
+
type: "button",
|
|
20544
|
+
"data-testid": "date-stepper-date"
|
|
20545
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledDateValue, null, /*#__PURE__*/React__default["default"].createElement("span", null, getDateFormatted), /*#__PURE__*/React__default["default"].createElement(ArrowDownSmallIcon$1, null)))) : /*#__PURE__*/React__default["default"].createElement(StyledSpan$1, null, getDateFormatted)), stepOptions !== null && stepOptions !== void 0 && stepOptions.length ? /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
20546
|
+
title: stepLabel,
|
|
20547
|
+
disable: isStepMenuOpen
|
|
20548
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledDiv$1, {
|
|
20549
|
+
$isTargetable: false,
|
|
20550
|
+
$isRounded: false,
|
|
20551
|
+
$mode: mode,
|
|
20552
|
+
$alwaysShowDate: true
|
|
20553
|
+
}, renderStepMenu(/*#__PURE__*/React__default["default"].createElement(StyledButton$1, {
|
|
20554
|
+
$step: "range",
|
|
20555
|
+
type: "button",
|
|
20556
|
+
"data-testid": "date-stepper-step",
|
|
20557
|
+
"aria-label": stepLabel
|
|
20558
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledStepValue, null, (_stepOption$icon2 = stepOption === null || stepOption === void 0 ? void 0 : stepOption.icon) !== null && _stepOption$icon2 !== void 0 ? _stepOption$icon2 : stepLabel, /*#__PURE__*/React__default["default"].createElement(ArrowDownSmallIcon$1, null)))))) : null, !disableArrows ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
|
|
20128
20559
|
type: "button",
|
|
20129
20560
|
variant: mode === "flat" ? "text gray" : "secondary",
|
|
20130
20561
|
onClick: onRightClickHandler,
|
|
@@ -21940,13 +22371,17 @@
|
|
|
21940
22371
|
StyledAdditionalInfo.displayName = "StyledAdditionalInfo";
|
|
21941
22372
|
|
|
21942
22373
|
var StyledMultiAvatarImg = styled.css(["width:inherit;height:inherit;"]);
|
|
22374
|
+
var StyledMultiAvatarRoot = styled__default["default"].span.withConfig({
|
|
22375
|
+
displayName: "Styles__StyledMultiAvatarRoot",
|
|
22376
|
+
componentId: "sc-k6nldn-0"
|
|
22377
|
+
})(["position:relative;display:inline-flex;"]);
|
|
21943
22378
|
var StyledMultiAvatarInner = styled__default["default"].div.withConfig({
|
|
21944
22379
|
displayName: "Styles__StyledMultiAvatarInner",
|
|
21945
|
-
componentId: "sc-k6nldn-
|
|
22380
|
+
componentId: "sc-k6nldn-1"
|
|
21946
22381
|
})(["overflow:hidden;position:absolute;display:inline-flex;"]);
|
|
21947
22382
|
var StyledMultiAvatar = styled__default["default"].div.withConfig({
|
|
21948
22383
|
displayName: "Styles__StyledMultiAvatar",
|
|
21949
|
-
componentId: "sc-k6nldn-
|
|
22384
|
+
componentId: "sc-k6nldn-2"
|
|
21950
22385
|
})(["", " border-radius:100%;position:relative;overflow:hidden;", " ", " ", ""], BoxSizingStyle, function (props) {
|
|
21951
22386
|
return props.$urlCount === 2 && styled.css(["", ":first-child{left:0;img{transform:translateX(-20%);}}", ":last-child{right:0;img{transform:translateX(-20%);}}"], StyledMultiAvatarInner, StyledMultiAvatarInner);
|
|
21952
22387
|
}, function (props) {
|
|
@@ -21956,6 +22391,7 @@
|
|
|
21956
22391
|
});
|
|
21957
22392
|
StyledMultiAvatar.displayName = "StyledMultiAvatar";
|
|
21958
22393
|
StyledMultiAvatarInner.displayName = "StyledMultiAvatarInner";
|
|
22394
|
+
StyledMultiAvatarRoot.displayName = "StyledMultiAvatarRoot";
|
|
21959
22395
|
|
|
21960
22396
|
/**
|
|
21961
22397
|
* @component MultiAvatar
|
|
@@ -22028,9 +22464,7 @@
|
|
|
22028
22464
|
}
|
|
22029
22465
|
return url;
|
|
22030
22466
|
}, [url]);
|
|
22031
|
-
return /*#__PURE__*/React__default["default"].createElement("
|
|
22032
|
-
className: "tw-relative tw-inline-flex"
|
|
22033
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledMultiAvatar, {
|
|
22467
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledMultiAvatarRoot, null, /*#__PURE__*/React__default["default"].createElement(StyledMultiAvatar, {
|
|
22034
22468
|
style: {
|
|
22035
22469
|
width: "".concat(size, "px"),
|
|
22036
22470
|
height: "".concat(size, "px")
|
|
@@ -27558,7 +27992,7 @@
|
|
|
27558
27992
|
})(["", " ", " padding:0 1rem;display:flex;overflow:hidden;@media screen and (max-width:350px){overflow:auto;}"], function (props) {
|
|
27559
27993
|
return props.size === "big" && styled.css(["height:140px;"]);
|
|
27560
27994
|
}, function (props) {
|
|
27561
|
-
return props.size === "small" && styled.css(["height:4rem;"]);
|
|
27995
|
+
return props.size === "small" && styled.css(["height:var(--c-header-height,4rem);"]);
|
|
27562
27996
|
});
|
|
27563
27997
|
StyledHeader$1.displayName = "StyledHeader";
|
|
27564
27998
|
|
|
@@ -31029,9 +31463,7 @@
|
|
|
31029
31463
|
type: "text"
|
|
31030
31464
|
}),
|
|
31031
31465
|
$ticking: ticking
|
|
31032
|
-
}, rest), ticking && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, splitTime === null || splitTime === void 0 ? void 0 : splitTime.hours, /*#__PURE__*/React__default["default"].createElement("span",
|
|
31033
|
-
className: "tw-animate-ping"
|
|
31034
|
-
}, ":"), splitTime === null || splitTime === void 0 ? void 0 : splitTime.minutes));
|
|
31466
|
+
}, rest), ticking && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, splitTime === null || splitTime === void 0 ? void 0 : splitTime.hours, /*#__PURE__*/React__default["default"].createElement("span", null, ":"), splitTime === null || splitTime === void 0 ? void 0 : splitTime.minutes));
|
|
31035
31467
|
});
|
|
31036
31468
|
EditableHours.displayName = "EditableHours";
|
|
31037
31469
|
|
|
@@ -31426,6 +31858,18 @@
|
|
|
31426
31858
|
"marginBottom": "1.25rem",
|
|
31427
31859
|
"width": "100%"
|
|
31428
31860
|
});
|
|
31861
|
+
var StyledSplitDivider = styled__default["default"].span.withConfig({
|
|
31862
|
+
displayName: "Styles__StyledSplitDivider",
|
|
31863
|
+
componentId: "sc-lxuoiz-10"
|
|
31864
|
+
})(["flex:0 0 1px;background-color:var(--page-paper-main);"]);
|
|
31865
|
+
|
|
31866
|
+
/* One pill, as high as a search field, for the search field and the filter trigger. The paper shows as the line between the halves. */
|
|
31867
|
+
var StyledSplitPill = styled__default["default"].div.withConfig({
|
|
31868
|
+
displayName: "Styles__StyledSplitPill",
|
|
31869
|
+
componentId: "sc-lxuoiz-11"
|
|
31870
|
+
})(["display:inline-flex;align-items:stretch;height:30px;border-radius:15px;background-color:color-mix(in srgb,var(--color-theme-900) 8%,transparent);&& .c-counter-button,&& .c-counter-button__reset{margin-inline:0 !important;}.c-counter-button{height:30px;min-height:30px;border-radius:0 15px 15px 0;}.c-counter-button svg,.c-counter-button__reset svg{width:20px;height:20px;}&& .c-counter-button{padding-left:12px;}.c-counter-button:not(.c-counter-button__selected){padding-right:16px;}.c-counter-button__selected{border-radius:0;}.c-counter-button__reset{height:30px;min-height:30px;border-radius:0 15px 15px 0;}> div:has(> .c-counter-button__selected){box-sizing:border-box;border:1px solid var(--color-primary);border-radius:0 15px 15px 0;.c-counter-button,.c-counter-button__reset{height:28px;min-height:28px;}.c-counter-button__reset{border-radius:0 14px 14px 0;}.c-counter-button__selected:not(:hover),.c-counter-button__reset:not(:hover){background-color:var(--color-primary-300);}}&:has(.c-filter-input--active,.c-filter-input--split:focus-within):has( .c-counter-button__selected ){", "{display:none;}> div:has(> .c-counter-button__selected){margin-left:-1px;}}"], StyledSplitDivider);
|
|
31871
|
+
StyledSplitPill.displayName = "StyledSplitPill";
|
|
31872
|
+
StyledSplitDivider.displayName = "StyledSplitDivider";
|
|
31429
31873
|
StyledMenu.displayName = "StyledMenu";
|
|
31430
31874
|
StyledMenuFooter.displayName = "StyledMenuFooter";
|
|
31431
31875
|
StyledStartMenuList.displayName = "StyledStartMenuList";
|
|
@@ -31556,7 +32000,131 @@
|
|
|
31556
32000
|
}), children);
|
|
31557
32001
|
};
|
|
31558
32002
|
|
|
31559
|
-
var
|
|
32003
|
+
var StyledFilterInput = styled__default["default"](Input).withConfig({
|
|
32004
|
+
displayName: "FilterInputstyles__StyledFilterInput",
|
|
32005
|
+
componentId: "sc-bna484-0"
|
|
32006
|
+
})(["&&{background-color:color-mix( in srgb,var(--color-theme-900) 8%,transparent );border-color:transparent;border-radius:15px;height:30px;padding-block:1px;padding-inline:8px;transition:width 200ms ease,background-color 200ms ease,border-color 200ms ease;width:120px;.c-input{background-color:transparent;}&:focus-within{border-color:var(--color-primary);width:170px;}", "}&&&.c-filter-input--split{background-color:transparent;border-radius:15px 0 0 15px;height:30px;padding-inline:10px;width:130px;&:focus-within{width:180px;}", " button{background:none;height:20px;left:4px;min-height:20px;min-width:20px;width:20px;&:hover{background:none;opacity:0.8;}svg{fill:var(--color-primary);height:20px;width:20px;}}}"], function (_ref) {
|
|
32007
|
+
var $active = _ref.$active;
|
|
32008
|
+
return $active && styled.css(["background-color:var(--color-primary-300);border-color:var(--color-primary);width:170px;> svg:first-child{fill:var(--color-primary);}"]);
|
|
32009
|
+
}, function (_ref2) {
|
|
32010
|
+
var $active = _ref2.$active;
|
|
32011
|
+
return $active && styled.css(["background-color:var(--color-primary-300);width:180px;"]);
|
|
32012
|
+
});
|
|
32013
|
+
var StyledClearButton = styled__default["default"](IconButton).withConfig({
|
|
32014
|
+
displayName: "FilterInputstyles__StyledClearButton",
|
|
32015
|
+
componentId: "sc-bna484-1"
|
|
32016
|
+
})(["&&{background-color:color-mix(in srgb,var(--color-primary) 25%,transparent);border-radius:50%;flex-shrink:0;height:20px;left:5px;min-height:20px;min-width:20px;padding:0;position:relative;width:20px;&:hover{background-color:color-mix( in srgb,var(--color-primary) 40%,transparent );}svg{fill:var(--color-theme-900);height:14px;width:14px;}}"]);
|
|
32017
|
+
|
|
32018
|
+
var _excluded$q = ["value", "onChange", "placeholder", "clearLabel", "shortcut", "debounce", "size", "onKeyDown"];
|
|
32019
|
+
var isMac = function isMac() {
|
|
32020
|
+
return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
32021
|
+
};
|
|
32022
|
+
var isFindShortcut = function isFindShortcut(event) {
|
|
32023
|
+
return event.key.toLowerCase() === "f" && !event.altKey && !event.shiftKey && (isMac() ? event.metaKey && !event.ctrlKey : event.ctrlKey && !event.metaKey);
|
|
32024
|
+
};
|
|
32025
|
+
var FilterInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32026
|
+
var _rest$ariaLabel;
|
|
32027
|
+
var value = _ref.value,
|
|
32028
|
+
onChange = _ref.onChange,
|
|
32029
|
+
_ref$placeholder = _ref.placeholder,
|
|
32030
|
+
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
32031
|
+
_ref$clearLabel = _ref.clearLabel,
|
|
32032
|
+
clearLabel = _ref$clearLabel === void 0 ? "Clear" : _ref$clearLabel,
|
|
32033
|
+
_ref$shortcut = _ref.shortcut,
|
|
32034
|
+
shortcut = _ref$shortcut === void 0 ? true : _ref$shortcut,
|
|
32035
|
+
_ref$debounce = _ref.debounce,
|
|
32036
|
+
debounce = _ref$debounce === void 0 ? 250 : _ref$debounce,
|
|
32037
|
+
_ref$size = _ref.size,
|
|
32038
|
+
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
32039
|
+
onKeyDown = _ref.onKeyDown,
|
|
32040
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
32041
|
+
var inputRef = React.useRef(null);
|
|
32042
|
+
var handleRef = useForkRef(ref, inputRef);
|
|
32043
|
+
var _useState = React.useState(value),
|
|
32044
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32045
|
+
text = _useState2[0],
|
|
32046
|
+
setText = _useState2[1];
|
|
32047
|
+
var timerRef = React.useRef();
|
|
32048
|
+
React.useEffect(function () {
|
|
32049
|
+
return setText(value);
|
|
32050
|
+
}, [value]);
|
|
32051
|
+
React.useEffect(function () {
|
|
32052
|
+
return function () {
|
|
32053
|
+
return clearTimeout(timerRef.current);
|
|
32054
|
+
};
|
|
32055
|
+
}, []);
|
|
32056
|
+
var report = React.useCallback(function (next, wait) {
|
|
32057
|
+
clearTimeout(timerRef.current);
|
|
32058
|
+
setText(next);
|
|
32059
|
+
if (wait > 0) {
|
|
32060
|
+
timerRef.current = setTimeout(function () {
|
|
32061
|
+
return onChange(next);
|
|
32062
|
+
}, wait);
|
|
32063
|
+
} else {
|
|
32064
|
+
onChange(next);
|
|
32065
|
+
}
|
|
32066
|
+
}, [onChange]);
|
|
32067
|
+
React.useEffect(function () {
|
|
32068
|
+
if (!shortcut) {
|
|
32069
|
+
return undefined;
|
|
32070
|
+
}
|
|
32071
|
+
var handleShortcut = function handleShortcut(event) {
|
|
32072
|
+
if (isFindShortcut(event) && isInTopLayer(inputRef.current)) {
|
|
32073
|
+
var _inputRef$current, _inputRef$current2;
|
|
32074
|
+
event.preventDefault();
|
|
32075
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
32076
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.select();
|
|
32077
|
+
}
|
|
32078
|
+
};
|
|
32079
|
+
document.addEventListener("keydown", handleShortcut);
|
|
32080
|
+
return function () {
|
|
32081
|
+
return document.removeEventListener("keydown", handleShortcut);
|
|
32082
|
+
};
|
|
32083
|
+
}, [shortcut]);
|
|
32084
|
+
var handleKeyDown = React.useCallback(function (event) {
|
|
32085
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
32086
|
+
if (event.key !== "Escape") {
|
|
32087
|
+
return;
|
|
32088
|
+
}
|
|
32089
|
+
if (text) {
|
|
32090
|
+
event.preventDefault();
|
|
32091
|
+
report("", 0);
|
|
32092
|
+
} else {
|
|
32093
|
+
var _inputRef$current3;
|
|
32094
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.blur();
|
|
32095
|
+
}
|
|
32096
|
+
}, [onKeyDown, report, text]);
|
|
32097
|
+
var handleClear = React.useCallback(function () {
|
|
32098
|
+
var _inputRef$current4;
|
|
32099
|
+
report("", 0);
|
|
32100
|
+
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 || _inputRef$current4.focus();
|
|
32101
|
+
}, [report]);
|
|
32102
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledFilterInput, _extends({}, rest, {
|
|
32103
|
+
className: classnames__default["default"](rest.className, {
|
|
32104
|
+
"c-filter-input--active": text !== ""
|
|
32105
|
+
}),
|
|
32106
|
+
ref: handleRef,
|
|
32107
|
+
size: size,
|
|
32108
|
+
value: text,
|
|
32109
|
+
"aria-label": (_rest$ariaLabel = rest["aria-label"]) !== null && _rest$ariaLabel !== void 0 ? _rest$ariaLabel : placeholder,
|
|
32110
|
+
placeholder: placeholder,
|
|
32111
|
+
$active: text !== "",
|
|
32112
|
+
startAdornment: /*#__PURE__*/React__default["default"].createElement(SearchIcon$1, null),
|
|
32113
|
+
endAdornment: text ? /*#__PURE__*/React__default["default"].createElement(StyledClearButton, {
|
|
32114
|
+
variant: "text gray",
|
|
32115
|
+
size: "small",
|
|
32116
|
+
"aria-label": clearLabel,
|
|
32117
|
+
onClick: handleClear
|
|
32118
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseSmallIcon$1, null)) : null,
|
|
32119
|
+
onChange: function onChange(event) {
|
|
32120
|
+
return report(event.target.value, debounce);
|
|
32121
|
+
},
|
|
32122
|
+
onKeyDown: handleKeyDown
|
|
32123
|
+
}));
|
|
32124
|
+
});
|
|
32125
|
+
FilterInput.displayName = "FilterInput";
|
|
32126
|
+
|
|
32127
|
+
var _excluded$p = ["id", "title", "submenu", "searchPlaceholder", "disableInternalSort", "isSingleSelect", "defaultValue", "type", "inputPlaceholder", "saveLabel", "clearLabel"];
|
|
31560
32128
|
var Filter = function Filter(_ref) {
|
|
31561
32129
|
var data = _ref.data,
|
|
31562
32130
|
_ref$selected = _ref.selected,
|
|
@@ -31577,7 +32145,8 @@
|
|
|
31577
32145
|
position = _ref$position === void 0 ? "bottom-end" : _ref$position,
|
|
31578
32146
|
_ref$disabled = _ref.disabled,
|
|
31579
32147
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
31580
|
-
className = _ref.className
|
|
32148
|
+
className = _ref.className,
|
|
32149
|
+
search = _ref.search;
|
|
31581
32150
|
var _useState = React.useState(false),
|
|
31582
32151
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31583
32152
|
open = _useState2[0],
|
|
@@ -31696,7 +32265,7 @@
|
|
|
31696
32265
|
}
|
|
31697
32266
|
return false;
|
|
31698
32267
|
}, [data]);
|
|
31699
|
-
|
|
32268
|
+
var menuElement = /*#__PURE__*/React__default["default"].createElement(StyledMenu, {
|
|
31700
32269
|
open: open,
|
|
31701
32270
|
onOpen: handleOpen,
|
|
31702
32271
|
onClose: handleClose,
|
|
@@ -31749,7 +32318,7 @@
|
|
|
31749
32318
|
_ref2$saveLabel = _ref2.saveLabel,
|
|
31750
32319
|
saveLabel = _ref2$saveLabel === void 0 ? "Save" : _ref2$saveLabel,
|
|
31751
32320
|
clearLabel = _ref2.clearLabel,
|
|
31752
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
32321
|
+
rest = _objectWithoutProperties(_ref2, _excluded$p);
|
|
31753
32322
|
return /*#__PURE__*/React__default["default"].createElement(SlideLeftRightTransition, {
|
|
31754
32323
|
key: "filter-submenu-".concat(index),
|
|
31755
32324
|
in: menu === id,
|
|
@@ -31797,6 +32366,11 @@
|
|
|
31797
32366
|
onClick: handleReset
|
|
31798
32367
|
}, resetLabel)) : null))));
|
|
31799
32368
|
}))));
|
|
32369
|
+
return search ? /*#__PURE__*/React__default["default"].createElement(StyledSplitPill, {
|
|
32370
|
+
"data-testid": "filter-split-pill"
|
|
32371
|
+
}, /*#__PURE__*/React__default["default"].createElement(FilterInput, _extends({}, search, {
|
|
32372
|
+
className: "c-filter-input--split"
|
|
32373
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledSplitDivider, null), menuElement) : menuElement;
|
|
31800
32374
|
};
|
|
31801
32375
|
|
|
31802
32376
|
var WizardContext = /*#__PURE__*/React.createContext({});
|
|
@@ -31840,6 +32414,10 @@
|
|
|
31840
32414
|
displayName: "Styles__StyledCustomStep",
|
|
31841
32415
|
componentId: "sc-88drbd-3"
|
|
31842
32416
|
})(["display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;"]);
|
|
32417
|
+
var StyledStepBackButton = styled__default["default"](IconButton).withConfig({
|
|
32418
|
+
displayName: "Styles__StyledStepBackButton",
|
|
32419
|
+
componentId: "sc-88drbd-4"
|
|
32420
|
+
})(["&&{margin-left:-0.75rem;margin-right:0.5rem;}"]);
|
|
31843
32421
|
|
|
31844
32422
|
var Step = function Step(_ref) {
|
|
31845
32423
|
var index = _ref.index,
|
|
@@ -31869,10 +32447,9 @@
|
|
|
31869
32447
|
}
|
|
31870
32448
|
return onNextButtonClick && onNextButtonClick();
|
|
31871
32449
|
}, [isLast, onClose, onNextButtonClick]);
|
|
31872
|
-
return !skip ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeader, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React__default["default"].createElement(
|
|
32450
|
+
return !skip ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeader, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React__default["default"].createElement(StyledStepBackButton, {
|
|
31873
32451
|
onClick: onPreviousButtonClick,
|
|
31874
32452
|
variant: "text gray",
|
|
31875
|
-
className: "tw--ml-3 tw-mr-2",
|
|
31876
32453
|
disabled: changingStepInProgress
|
|
31877
32454
|
}, /*#__PURE__*/React__default["default"].createElement(ArrowBackMobileIcon$1, null)) : null, /*#__PURE__*/React__default["default"].createElement(StyledStepTitle, null, /*#__PURE__*/React__default["default"].createElement(Caption2, null, title), /*#__PURE__*/React__default["default"].createElement(Header3, null, subtitle))), customRightHeader ? customRightHeader : /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
31878
32455
|
onClick: closeDialog,
|
|
@@ -32135,7 +32712,7 @@
|
|
|
32135
32712
|
return props.size + "px";
|
|
32136
32713
|
});
|
|
32137
32714
|
|
|
32138
|
-
var _excluded$
|
|
32715
|
+
var _excluded$o = ["limit", "size", "children", "hasTooltip", "className"];
|
|
32139
32716
|
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32140
32717
|
var _Children$toArray;
|
|
32141
32718
|
var limit = _ref.limit,
|
|
@@ -32145,7 +32722,7 @@
|
|
|
32145
32722
|
_ref$hasTooltip = _ref.hasTooltip,
|
|
32146
32723
|
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
32147
32724
|
className = _ref.className,
|
|
32148
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
32725
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
32149
32726
|
// always display counter with min +2 as +1 can takes space of an 1 more Avatar
|
|
32150
32727
|
var minChildren = React.Children.count(children) - limit > 1 ? false : true;
|
|
32151
32728
|
// gap between Avatars
|
|
@@ -32309,14 +32886,14 @@
|
|
|
32309
32886
|
return React.useContext(SearchContext);
|
|
32310
32887
|
};
|
|
32311
32888
|
|
|
32312
|
-
var _excluded$
|
|
32889
|
+
var _excluded$n = ["title", "renderIcon", "className", "index", "as"];
|
|
32313
32890
|
var CommandPaletteCommandItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32314
32891
|
var title = _ref.title,
|
|
32315
32892
|
renderIcon = _ref.renderIcon,
|
|
32316
32893
|
className = _ref.className,
|
|
32317
32894
|
index = _ref.index,
|
|
32318
32895
|
as = _ref.as,
|
|
32319
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
32896
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
32320
32897
|
var Component = as || "a";
|
|
32321
32898
|
var icon = renderIcon();
|
|
32322
32899
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -32485,7 +33062,7 @@
|
|
|
32485
33062
|
return "";
|
|
32486
33063
|
};
|
|
32487
33064
|
|
|
32488
|
-
var _excluded$
|
|
33065
|
+
var _excluded$m = ["title", "renderIcon", "className", "index", "loading", "as"];
|
|
32489
33066
|
var generateRandomWidth = function generateRandomWidth() {
|
|
32490
33067
|
// generate range 30-80
|
|
32491
33068
|
var randomNum = Math.round(Math.random() * 30 + 30);
|
|
@@ -32498,7 +33075,7 @@
|
|
|
32498
33075
|
index = _ref.index,
|
|
32499
33076
|
loading = _ref.loading,
|
|
32500
33077
|
as = _ref.as,
|
|
32501
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33078
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
32502
33079
|
var Component = as || "a";
|
|
32503
33080
|
var icon = renderIcon && renderIcon();
|
|
32504
33081
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -32585,7 +33162,7 @@
|
|
|
32585
33162
|
});
|
|
32586
33163
|
};
|
|
32587
33164
|
|
|
32588
|
-
var _excluded$
|
|
33165
|
+
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled"];
|
|
32589
33166
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32590
33167
|
var children = _ref.children,
|
|
32591
33168
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -32595,7 +33172,7 @@
|
|
|
32595
33172
|
loading = _ref.loading,
|
|
32596
33173
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
32597
33174
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
32598
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33175
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
32599
33176
|
var _useState = React.useState(0),
|
|
32600
33177
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32601
33178
|
selected = _useState2[0],
|
|
@@ -32777,18 +33354,18 @@
|
|
|
32777
33354
|
componentId: "sc-jfbqky-5"
|
|
32778
33355
|
})(["margin-block-start:24px;display:flex;flex-direction:column;gap:12px;align-items:center;", "{flex-direction:row;}"], screen.lg);
|
|
32779
33356
|
|
|
32780
|
-
var _excluded$
|
|
33357
|
+
var _excluded$k = ["children"];
|
|
32781
33358
|
|
|
32782
33359
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
32783
33360
|
|
|
32784
33361
|
var EmptySlateFooter = function EmptySlateFooter(_ref) {
|
|
32785
33362
|
var children = _ref.children,
|
|
32786
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33363
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
32787
33364
|
return /*#__PURE__*/React__default["default"].createElement(FooterContainer, rest, children);
|
|
32788
33365
|
};
|
|
32789
33366
|
EmptySlateFooter.displayName = "EmptySlateFooter";
|
|
32790
33367
|
|
|
32791
|
-
var _excluded$
|
|
33368
|
+
var _excluded$j = ["title", "description", "src", "alt", "illustration", "size", "children"];
|
|
32792
33369
|
var isAlreadyLoaded = function isAlreadyLoaded(image) {
|
|
32793
33370
|
return !!image && image.complete && image.naturalWidth > 0;
|
|
32794
33371
|
};
|
|
@@ -32802,7 +33379,7 @@
|
|
|
32802
33379
|
_ref$size = _ref.size,
|
|
32803
33380
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
32804
33381
|
children = _ref.children,
|
|
32805
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33382
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
32806
33383
|
var compact = size === "compact";
|
|
32807
33384
|
var imageRef = React.useRef(null);
|
|
32808
33385
|
var _useState = React.useState(),
|
|
@@ -32973,13 +33550,13 @@
|
|
|
32973
33550
|
}));
|
|
32974
33551
|
};
|
|
32975
33552
|
|
|
32976
|
-
var _excluded$
|
|
33553
|
+
var _excluded$i = ["title", "description", "clearLabel", "onClear"];
|
|
32977
33554
|
var NoResultsSlate = function NoResultsSlate(_ref) {
|
|
32978
33555
|
var title = _ref.title,
|
|
32979
33556
|
description = _ref.description,
|
|
32980
33557
|
clearLabel = _ref.clearLabel,
|
|
32981
33558
|
onClear = _ref.onClear,
|
|
32982
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33559
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
32983
33560
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoResultsSlate, _extends({}, rest, {
|
|
32984
33561
|
role: "status"
|
|
32985
33562
|
}), /*#__PURE__*/React__default["default"].createElement(StyledIllustrationBox, null, /*#__PURE__*/React__default["default"].createElement(NoResultsIllustration, null)), /*#__PURE__*/React__default["default"].createElement(StyledTitle, null, title), description ? /*#__PURE__*/React__default["default"].createElement(Body1, {
|
|
@@ -32991,124 +33568,6 @@
|
|
|
32991
33568
|
};
|
|
32992
33569
|
NoResultsSlate.displayName = "NoResultsSlate";
|
|
32993
33570
|
|
|
32994
|
-
var StyledFilterInput = styled__default["default"](Input).withConfig({
|
|
32995
|
-
displayName: "FilterInputstyles__StyledFilterInput",
|
|
32996
|
-
componentId: "sc-bna484-0"
|
|
32997
|
-
})(["&&{background-color:color-mix( in srgb,var(--color-theme-900) 8%,transparent );border-color:transparent;border-radius:13px;height:26px;padding-block:1px;padding-inline:8px;transition:width 200ms ease,background-color 200ms ease,border-color 200ms ease;width:160px;.c-input{background-color:transparent;}&:focus-within{border-color:var(--color-primary);width:256px;}", "}"], function (_ref) {
|
|
32998
|
-
var $active = _ref.$active;
|
|
32999
|
-
return $active && styled.css(["background-color:var(--color-primary-300);border-color:var(--color-primary);width:256px;> svg:first-child{fill:var(--color-primary);}"]);
|
|
33000
|
-
});
|
|
33001
|
-
var StyledClearButton = styled__default["default"](IconButton).withConfig({
|
|
33002
|
-
displayName: "FilterInputstyles__StyledClearButton",
|
|
33003
|
-
componentId: "sc-bna484-1"
|
|
33004
|
-
})(["&&{background-color:color-mix(in srgb,var(--color-primary) 25%,transparent);border-radius:50%;flex-shrink:0;height:20px;left:5px;min-height:20px;min-width:20px;padding:0;position:relative;width:20px;&:hover{background-color:color-mix( in srgb,var(--color-primary) 40%,transparent );}svg{fill:var(--color-theme-900);height:14px;width:14px;}}"]);
|
|
33005
|
-
|
|
33006
|
-
var _excluded$i = ["value", "onChange", "placeholder", "clearLabel", "shortcut", "debounce", "size", "onKeyDown"];
|
|
33007
|
-
var isMac = function isMac() {
|
|
33008
|
-
return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
33009
|
-
};
|
|
33010
|
-
var isFindShortcut = function isFindShortcut(event) {
|
|
33011
|
-
return event.key.toLowerCase() === "f" && !event.altKey && !event.shiftKey && (isMac() ? event.metaKey && !event.ctrlKey : event.ctrlKey && !event.metaKey);
|
|
33012
|
-
};
|
|
33013
|
-
var FilterInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
33014
|
-
var _rest$ariaLabel;
|
|
33015
|
-
var value = _ref.value,
|
|
33016
|
-
onChange = _ref.onChange,
|
|
33017
|
-
_ref$placeholder = _ref.placeholder,
|
|
33018
|
-
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
33019
|
-
_ref$clearLabel = _ref.clearLabel,
|
|
33020
|
-
clearLabel = _ref$clearLabel === void 0 ? "Clear" : _ref$clearLabel,
|
|
33021
|
-
_ref$shortcut = _ref.shortcut,
|
|
33022
|
-
shortcut = _ref$shortcut === void 0 ? true : _ref$shortcut,
|
|
33023
|
-
_ref$debounce = _ref.debounce,
|
|
33024
|
-
debounce = _ref$debounce === void 0 ? 250 : _ref$debounce,
|
|
33025
|
-
_ref$size = _ref.size,
|
|
33026
|
-
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
33027
|
-
onKeyDown = _ref.onKeyDown,
|
|
33028
|
-
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
33029
|
-
var inputRef = React.useRef(null);
|
|
33030
|
-
var handleRef = useForkRef(ref, inputRef);
|
|
33031
|
-
var _useState = React.useState(value),
|
|
33032
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33033
|
-
text = _useState2[0],
|
|
33034
|
-
setText = _useState2[1];
|
|
33035
|
-
var timerRef = React.useRef();
|
|
33036
|
-
React.useEffect(function () {
|
|
33037
|
-
return setText(value);
|
|
33038
|
-
}, [value]);
|
|
33039
|
-
React.useEffect(function () {
|
|
33040
|
-
return function () {
|
|
33041
|
-
return clearTimeout(timerRef.current);
|
|
33042
|
-
};
|
|
33043
|
-
}, []);
|
|
33044
|
-
var report = React.useCallback(function (next, wait) {
|
|
33045
|
-
clearTimeout(timerRef.current);
|
|
33046
|
-
setText(next);
|
|
33047
|
-
if (wait > 0) {
|
|
33048
|
-
timerRef.current = setTimeout(function () {
|
|
33049
|
-
return onChange(next);
|
|
33050
|
-
}, wait);
|
|
33051
|
-
} else {
|
|
33052
|
-
onChange(next);
|
|
33053
|
-
}
|
|
33054
|
-
}, [onChange]);
|
|
33055
|
-
React.useEffect(function () {
|
|
33056
|
-
if (!shortcut) {
|
|
33057
|
-
return undefined;
|
|
33058
|
-
}
|
|
33059
|
-
var handleShortcut = function handleShortcut(event) {
|
|
33060
|
-
if (isFindShortcut(event)) {
|
|
33061
|
-
var _inputRef$current, _inputRef$current2;
|
|
33062
|
-
event.preventDefault();
|
|
33063
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
33064
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.select();
|
|
33065
|
-
}
|
|
33066
|
-
};
|
|
33067
|
-
document.addEventListener("keydown", handleShortcut);
|
|
33068
|
-
return function () {
|
|
33069
|
-
return document.removeEventListener("keydown", handleShortcut);
|
|
33070
|
-
};
|
|
33071
|
-
}, [shortcut]);
|
|
33072
|
-
var handleKeyDown = React.useCallback(function (event) {
|
|
33073
|
-
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
33074
|
-
if (event.key !== "Escape") {
|
|
33075
|
-
return;
|
|
33076
|
-
}
|
|
33077
|
-
if (text) {
|
|
33078
|
-
event.preventDefault();
|
|
33079
|
-
report("", 0);
|
|
33080
|
-
} else {
|
|
33081
|
-
var _inputRef$current3;
|
|
33082
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.blur();
|
|
33083
|
-
}
|
|
33084
|
-
}, [onKeyDown, report, text]);
|
|
33085
|
-
var handleClear = React.useCallback(function () {
|
|
33086
|
-
var _inputRef$current4;
|
|
33087
|
-
report("", 0);
|
|
33088
|
-
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 || _inputRef$current4.focus();
|
|
33089
|
-
}, [report]);
|
|
33090
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledFilterInput, _extends({}, rest, {
|
|
33091
|
-
ref: handleRef,
|
|
33092
|
-
size: size,
|
|
33093
|
-
value: text,
|
|
33094
|
-
"aria-label": (_rest$ariaLabel = rest["aria-label"]) !== null && _rest$ariaLabel !== void 0 ? _rest$ariaLabel : placeholder,
|
|
33095
|
-
placeholder: placeholder,
|
|
33096
|
-
$active: text !== "",
|
|
33097
|
-
startAdornment: /*#__PURE__*/React__default["default"].createElement(SearchIcon$1, null),
|
|
33098
|
-
endAdornment: text ? /*#__PURE__*/React__default["default"].createElement(StyledClearButton, {
|
|
33099
|
-
variant: "text gray",
|
|
33100
|
-
size: "small",
|
|
33101
|
-
"aria-label": clearLabel,
|
|
33102
|
-
onClick: handleClear
|
|
33103
|
-
}, /*#__PURE__*/React__default["default"].createElement(CloseSmallIcon$1, null)) : null,
|
|
33104
|
-
onChange: function onChange(event) {
|
|
33105
|
-
return report(event.target.value, debounce);
|
|
33106
|
-
},
|
|
33107
|
-
onKeyDown: handleKeyDown
|
|
33108
|
-
}));
|
|
33109
|
-
});
|
|
33110
|
-
FilterInput.displayName = "FilterInput";
|
|
33111
|
-
|
|
33112
33571
|
var StyledToolbar = styled__default["default"].div.withConfig({
|
|
33113
33572
|
displayName: "Toolbarstyles__StyledToolbar",
|
|
33114
33573
|
componentId: "sc-n5xxbc-0"
|
|
@@ -36435,8 +36894,11 @@
|
|
|
36435
36894
|
exports.Button = Button;
|
|
36436
36895
|
exports.ButtonGroup = ButtonGroup;
|
|
36437
36896
|
exports.CalendarAddXIcon = CalendarAddXIcon$1;
|
|
36897
|
+
exports.CalendarDayIcon = CalendarDayIcon$1;
|
|
36438
36898
|
exports.CalendarIcon = CalendarIcon$1;
|
|
36439
36899
|
exports.CalendarImportIcon = CalendarImportIcon$1;
|
|
36900
|
+
exports.CalendarMonthIcon = CalendarMonthIcon$1;
|
|
36901
|
+
exports.CalendarWeekIcon = CalendarWeekIcon$1;
|
|
36440
36902
|
exports.CancelCrossIcon = CancelCrossIcon$1;
|
|
36441
36903
|
exports.Caption1 = Caption1;
|
|
36442
36904
|
exports.Caption2 = Caption2;
|
|
@@ -36944,8 +37406,11 @@
|
|
|
36944
37406
|
exports.formatNumber = formatNumber;
|
|
36945
37407
|
exports.getNumberFromString = getNumberFromString;
|
|
36946
37408
|
exports.getScrollParent = getScrollParent;
|
|
37409
|
+
exports.getStepRanges = getStepRanges;
|
|
37410
|
+
exports.getTopLayer = getTopLayer;
|
|
36947
37411
|
exports.hasSelectedText = hasSelectedText;
|
|
36948
37412
|
exports.isDarkTheme = isDarkTheme;
|
|
37413
|
+
exports.isInTopLayer = isInTopLayer;
|
|
36949
37414
|
exports.isOptionGroup = isOptionGroup;
|
|
36950
37415
|
exports.isPortableTextBlock = _isPortableTextBlock;
|
|
36951
37416
|
exports.isPortableTextContent = isPortableTextContent;
|