@activecollab/components 2.0.510 → 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/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/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/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/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/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/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 +694 -236
- 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,7 +415,7 @@
|
|
|
415
415
|
});
|
|
416
416
|
GlobalAddButton.displayName = "GlobalAddButton";
|
|
417
417
|
|
|
418
|
-
var _excluded$
|
|
418
|
+
var _excluded$6F = ["gradient"];
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
421
|
* @component RecurringIcon
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
*/
|
|
446
446
|
var RecurringIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
447
447
|
var gradient = _ref.gradient,
|
|
448
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
448
|
+
props = _objectWithoutProperties(_ref, _excluded$6F);
|
|
449
449
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
450
450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
451
451
|
width: 18,
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
RecurringIcon.displayName = "RecurringIcon";
|
|
467
467
|
var RecurringIcon$1 = RecurringIcon;
|
|
468
468
|
|
|
469
|
-
var _excluded$
|
|
469
|
+
var _excluded$6E = ["gradient"];
|
|
470
470
|
|
|
471
471
|
/**
|
|
472
472
|
* @component AccessLogIcon
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
*/
|
|
497
497
|
var AccessLogIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
498
498
|
var gradient = _ref.gradient,
|
|
499
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
499
|
+
props = _objectWithoutProperties(_ref, _excluded$6E);
|
|
500
500
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
501
501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
502
502
|
width: 24,
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
AccessLogIcon.displayName = "AccessLogIcon";
|
|
525
525
|
var AccessLogIcon$1 = AccessLogIcon;
|
|
526
526
|
|
|
527
|
-
var _excluded$
|
|
527
|
+
var _excluded$6D = ["gradient"];
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
530
|
* @component ActivityIcon
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
*/
|
|
555
555
|
var ActivityIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
556
556
|
var gradient = _ref.gradient,
|
|
557
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
557
|
+
props = _objectWithoutProperties(_ref, _excluded$6D);
|
|
558
558
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
559
559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
560
560
|
width: 24,
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
ActivityIcon.displayName = "ActivityIcon";
|
|
579
579
|
var ActivityIcon$1 = ActivityIcon;
|
|
580
580
|
|
|
581
|
-
var _excluded$
|
|
581
|
+
var _excluded$6C = ["gradient"];
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* @component AddCrossIcon
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
*/
|
|
609
609
|
var AddCrossIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
610
610
|
var gradient = _ref.gradient,
|
|
611
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
611
|
+
props = _objectWithoutProperties(_ref, _excluded$6C);
|
|
612
612
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
613
613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
614
614
|
width: 10,
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
AddCrossIcon.displayName = "AddCrossIcon";
|
|
629
629
|
var AddCrossIcon$1 = AddCrossIcon;
|
|
630
630
|
|
|
631
|
-
var _excluded$
|
|
631
|
+
var _excluded$6B = ["gradient"];
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
634
|
* @component ArchiveIcon
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
*/
|
|
659
659
|
var ArchiveIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
660
660
|
var gradient = _ref.gradient,
|
|
661
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
661
|
+
props = _objectWithoutProperties(_ref, _excluded$6B);
|
|
662
662
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
663
663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
664
664
|
width: 24,
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
ArchiveIcon.displayName = "ArchiveIcon";
|
|
680
680
|
var ArchiveIcon$1 = ArchiveIcon;
|
|
681
681
|
|
|
682
|
-
var _excluded$
|
|
682
|
+
var _excluded$6A = ["gradient"];
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
685
|
* @component ArrowBackMobileIcon
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
*/
|
|
710
710
|
var ArrowBackMobileIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
711
711
|
var gradient = _ref.gradient,
|
|
712
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
712
|
+
props = _objectWithoutProperties(_ref, _excluded$6A);
|
|
713
713
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
714
714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
715
715
|
width: 24,
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
ArrowBackMobileIcon.displayName = "ArrowBackMobileIcon";
|
|
731
731
|
var ArrowBackMobileIcon$1 = ArrowBackMobileIcon;
|
|
732
732
|
|
|
733
|
-
var _excluded$
|
|
733
|
+
var _excluded$6z = ["gradient"];
|
|
734
734
|
|
|
735
735
|
/**
|
|
736
736
|
* @component ArrowCollapseMultipleIcon
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
*/
|
|
761
761
|
var ArrowCollapseMultipleIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
762
762
|
var gradient = _ref.gradient,
|
|
763
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
763
|
+
props = _objectWithoutProperties(_ref, _excluded$6z);
|
|
764
764
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
765
765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
766
766
|
width: 24,
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
ArrowCollapseMultipleIcon.displayName = "ArrowCollapseMultipleIcon";
|
|
781
781
|
var ArrowCollapseMultipleIcon$1 = ArrowCollapseMultipleIcon;
|
|
782
782
|
|
|
783
|
-
var _excluded$
|
|
783
|
+
var _excluded$6y = ["gradient"];
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
786
|
* @component ArrowDownLongIcon
|
|
@@ -810,7 +810,7 @@
|
|
|
810
810
|
*/
|
|
811
811
|
var ArrowDownLongIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
812
812
|
var gradient = _ref.gradient,
|
|
813
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
813
|
+
props = _objectWithoutProperties(_ref, _excluded$6y);
|
|
814
814
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
815
815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
816
816
|
width: 24,
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
ArrowDownLongIcon.displayName = "ArrowDownLongIcon";
|
|
831
831
|
var ArrowDownLongIcon$1 = ArrowDownLongIcon;
|
|
832
832
|
|
|
833
|
-
var _excluded$
|
|
833
|
+
var _excluded$6x = ["gradient"];
|
|
834
834
|
|
|
835
835
|
/**
|
|
836
836
|
* @component ArrowDownSmallIcon
|
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
*/
|
|
861
861
|
var ArrowDownSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
862
862
|
var gradient = _ref.gradient,
|
|
863
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
863
|
+
props = _objectWithoutProperties(_ref, _excluded$6x);
|
|
864
864
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
865
865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
866
866
|
width: 16,
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
ArrowDownSmallIcon.displayName = "ArrowDownSmallIcon";
|
|
881
881
|
var ArrowDownSmallIcon$1 = ArrowDownSmallIcon;
|
|
882
882
|
|
|
883
|
-
var _excluded$
|
|
883
|
+
var _excluded$6w = ["gradient"];
|
|
884
884
|
|
|
885
885
|
/**
|
|
886
886
|
* @component ArrowDownIcon
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
*/
|
|
911
911
|
var ArrowDownIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
912
912
|
var gradient = _ref.gradient,
|
|
913
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
913
|
+
props = _objectWithoutProperties(_ref, _excluded$6w);
|
|
914
914
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
915
915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
916
916
|
width: 24,
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
ArrowDownIcon.displayName = "ArrowDownIcon";
|
|
930
930
|
var ArrowDownIcon$1 = ArrowDownIcon;
|
|
931
931
|
|
|
932
|
-
var _excluded$
|
|
932
|
+
var _excluded$6v = ["gradient"];
|
|
933
933
|
|
|
934
934
|
/**
|
|
935
935
|
* @component ArrowExpandeMultipleIcon
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
*/
|
|
960
960
|
var ArrowExpandeMultipleIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
961
961
|
var gradient = _ref.gradient,
|
|
962
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
962
|
+
props = _objectWithoutProperties(_ref, _excluded$6v);
|
|
963
963
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
964
964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
965
965
|
width: 24,
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
ArrowExpandeMultipleIcon.displayName = "ArrowExpandeMultipleIcon";
|
|
980
980
|
var ArrowExpandeMultipleIcon$1 = ArrowExpandeMultipleIcon;
|
|
981
981
|
|
|
982
|
-
var _excluded$
|
|
982
|
+
var _excluded$6u = ["gradient"];
|
|
983
983
|
|
|
984
984
|
/**
|
|
985
985
|
* @component ArrowLeftBoxIcon
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
*/
|
|
1010
1010
|
var ArrowLeftBoxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1011
1011
|
var gradient = _ref.gradient,
|
|
1012
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1012
|
+
props = _objectWithoutProperties(_ref, _excluded$6u);
|
|
1013
1013
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1014
1014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1015
1015
|
width: 24,
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
ArrowLeftBoxIcon.displayName = "ArrowLeftBoxIcon";
|
|
1030
1030
|
var ArrowLeftBoxIcon$1 = ArrowLeftBoxIcon;
|
|
1031
1031
|
|
|
1032
|
-
var _excluded$
|
|
1032
|
+
var _excluded$6t = ["gradient"];
|
|
1033
1033
|
|
|
1034
1034
|
/**
|
|
1035
1035
|
* @component ArrowLeftIcon
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
*/
|
|
1060
1060
|
var ArrowLeftIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1061
1061
|
var gradient = _ref.gradient,
|
|
1062
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1062
|
+
props = _objectWithoutProperties(_ref, _excluded$6t);
|
|
1063
1063
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1064
1064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1065
1065
|
width: 24,
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
ArrowLeftIcon.displayName = "ArrowLeftIcon";
|
|
1080
1080
|
var ArrowLeftIcon$1 = ArrowLeftIcon;
|
|
1081
1081
|
|
|
1082
|
-
var _excluded$
|
|
1082
|
+
var _excluded$6s = ["gradient"];
|
|
1083
1083
|
|
|
1084
1084
|
/**
|
|
1085
1085
|
* @component ArrowRefreshIcon
|
|
@@ -1109,7 +1109,7 @@
|
|
|
1109
1109
|
*/
|
|
1110
1110
|
var ArrowRefreshIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1111
1111
|
var gradient = _ref.gradient,
|
|
1112
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1112
|
+
props = _objectWithoutProperties(_ref, _excluded$6s);
|
|
1113
1113
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1114
1114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1115
1115
|
width: 24,
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
ArrowRefreshIcon.displayName = "ArrowRefreshIcon";
|
|
1131
1131
|
var ArrowRefreshIcon$1 = ArrowRefreshIcon;
|
|
1132
1132
|
|
|
1133
|
-
var _excluded$
|
|
1133
|
+
var _excluded$6r = ["gradient"];
|
|
1134
1134
|
|
|
1135
1135
|
/**
|
|
1136
1136
|
* @component ArrowRestoreIcon
|
|
@@ -1160,11 +1160,12 @@
|
|
|
1160
1160
|
*/
|
|
1161
1161
|
var ArrowRestoreIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1162
1162
|
var gradient = _ref.gradient,
|
|
1163
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1163
|
+
props = _objectWithoutProperties(_ref, _excluded$6r);
|
|
1164
1164
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1165
1165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1166
1166
|
width: 24,
|
|
1167
1167
|
height: 24,
|
|
1168
|
+
viewBox: "0 0 24 24",
|
|
1168
1169
|
"data-testid": "ArrowRestoreIcon",
|
|
1169
1170
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
1170
1171
|
focusable: false,
|
|
@@ -1180,7 +1181,7 @@
|
|
|
1180
1181
|
ArrowRestoreIcon.displayName = "ArrowRestoreIcon";
|
|
1181
1182
|
var ArrowRestoreIcon$1 = ArrowRestoreIcon;
|
|
1182
1183
|
|
|
1183
|
-
var _excluded$
|
|
1184
|
+
var _excluded$6q = ["gradient"];
|
|
1184
1185
|
|
|
1185
1186
|
/**
|
|
1186
1187
|
* @component ArrowRightIcon
|
|
@@ -1210,7 +1211,7 @@
|
|
|
1210
1211
|
*/
|
|
1211
1212
|
var ArrowRightIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1212
1213
|
var gradient = _ref.gradient,
|
|
1213
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1214
|
+
props = _objectWithoutProperties(_ref, _excluded$6q);
|
|
1214
1215
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1215
1216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1216
1217
|
width: 24,
|
|
@@ -1230,7 +1231,7 @@
|
|
|
1230
1231
|
ArrowRightIcon.displayName = "ArrowRightIcon";
|
|
1231
1232
|
var ArrowRightIcon$1 = ArrowRightIcon;
|
|
1232
1233
|
|
|
1233
|
-
var _excluded$
|
|
1234
|
+
var _excluded$6p = ["gradient"];
|
|
1234
1235
|
|
|
1235
1236
|
/**
|
|
1236
1237
|
* @component ArrowUpLongIcon
|
|
@@ -1260,7 +1261,7 @@
|
|
|
1260
1261
|
*/
|
|
1261
1262
|
var ArrowUpLongIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1262
1263
|
var gradient = _ref.gradient,
|
|
1263
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1264
|
+
props = _objectWithoutProperties(_ref, _excluded$6p);
|
|
1264
1265
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1265
1266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1266
1267
|
width: 24,
|
|
@@ -1280,7 +1281,7 @@
|
|
|
1280
1281
|
ArrowUpLongIcon.displayName = "ArrowUpLongIcon";
|
|
1281
1282
|
var ArrowUpLongIcon$1 = ArrowUpLongIcon;
|
|
1282
1283
|
|
|
1283
|
-
var _excluded$
|
|
1284
|
+
var _excluded$6o = ["gradient"];
|
|
1284
1285
|
|
|
1285
1286
|
/**
|
|
1286
1287
|
* @component ArrowUpIcon
|
|
@@ -1310,7 +1311,7 @@
|
|
|
1310
1311
|
*/
|
|
1311
1312
|
var ArrowUpIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1312
1313
|
var gradient = _ref.gradient,
|
|
1313
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1314
|
+
props = _objectWithoutProperties(_ref, _excluded$6o);
|
|
1314
1315
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1315
1316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1316
1317
|
width: 24,
|
|
@@ -1329,7 +1330,7 @@
|
|
|
1329
1330
|
ArrowUpIcon.displayName = "ArrowUpIcon";
|
|
1330
1331
|
var ArrowUpIcon$1 = ArrowUpIcon;
|
|
1331
1332
|
|
|
1332
|
-
var _excluded$
|
|
1333
|
+
var _excluded$6n = ["gradient"];
|
|
1333
1334
|
|
|
1334
1335
|
/**
|
|
1335
1336
|
* @component AssignIcon
|
|
@@ -1359,7 +1360,7 @@
|
|
|
1359
1360
|
*/
|
|
1360
1361
|
var AssignIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1361
1362
|
var gradient = _ref.gradient,
|
|
1362
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1363
|
+
props = _objectWithoutProperties(_ref, _excluded$6n);
|
|
1363
1364
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1364
1365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1365
1366
|
width: 24,
|
|
@@ -1379,7 +1380,7 @@
|
|
|
1379
1380
|
AssignIcon.displayName = "AssignIcon";
|
|
1380
1381
|
var AssignIcon$1 = AssignIcon;
|
|
1381
1382
|
|
|
1382
|
-
var _excluded$
|
|
1383
|
+
var _excluded$6m = ["gradient"];
|
|
1383
1384
|
|
|
1384
1385
|
/**
|
|
1385
1386
|
* @component AttachmentIcon
|
|
@@ -1409,7 +1410,7 @@
|
|
|
1409
1410
|
*/
|
|
1410
1411
|
var AttachmentIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1411
1412
|
var gradient = _ref.gradient,
|
|
1412
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1413
|
+
props = _objectWithoutProperties(_ref, _excluded$6m);
|
|
1413
1414
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1414
1415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1415
1416
|
width: 24,
|
|
@@ -1429,7 +1430,7 @@
|
|
|
1429
1430
|
AttachmentIcon.displayName = "AttachmentIcon";
|
|
1430
1431
|
var AttachmentIcon$1 = AttachmentIcon;
|
|
1431
1432
|
|
|
1432
|
-
var _excluded$
|
|
1433
|
+
var _excluded$6l = ["gradient"];
|
|
1433
1434
|
|
|
1434
1435
|
/**
|
|
1435
1436
|
* @component BellOffSmallIcon
|
|
@@ -1459,7 +1460,7 @@
|
|
|
1459
1460
|
*/
|
|
1460
1461
|
var BellOffSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1461
1462
|
var gradient = _ref.gradient,
|
|
1462
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1463
|
+
props = _objectWithoutProperties(_ref, _excluded$6l);
|
|
1463
1464
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1464
1465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1465
1466
|
width: 12,
|
|
@@ -1479,7 +1480,7 @@
|
|
|
1479
1480
|
BellOffSmallIcon.displayName = "BellOffSmallIcon";
|
|
1480
1481
|
var BellOffSmallIcon$1 = BellOffSmallIcon;
|
|
1481
1482
|
|
|
1482
|
-
var _excluded$
|
|
1483
|
+
var _excluded$6k = ["gradient"];
|
|
1483
1484
|
|
|
1484
1485
|
/**
|
|
1485
1486
|
* @component BellOffIcon
|
|
@@ -1509,7 +1510,7 @@
|
|
|
1509
1510
|
*/
|
|
1510
1511
|
var BellOffIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1511
1512
|
var gradient = _ref.gradient,
|
|
1512
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1513
|
+
props = _objectWithoutProperties(_ref, _excluded$6k);
|
|
1513
1514
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1514
1515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1515
1516
|
width: 24,
|
|
@@ -1529,7 +1530,7 @@
|
|
|
1529
1530
|
BellOffIcon.displayName = "BellOffIcon";
|
|
1530
1531
|
var BellOffIcon$1 = BellOffIcon;
|
|
1531
1532
|
|
|
1532
|
-
var _excluded$
|
|
1533
|
+
var _excluded$6j = ["gradient"];
|
|
1533
1534
|
|
|
1534
1535
|
/**
|
|
1535
1536
|
* @component BillingIcon
|
|
@@ -1559,7 +1560,7 @@
|
|
|
1559
1560
|
*/
|
|
1560
1561
|
var BillingIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1561
1562
|
var gradient = _ref.gradient,
|
|
1562
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1563
|
+
props = _objectWithoutProperties(_ref, _excluded$6j);
|
|
1563
1564
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1564
1565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1565
1566
|
width: 24,
|
|
@@ -1582,7 +1583,7 @@
|
|
|
1582
1583
|
BillingIcon.displayName = "BillingIcon";
|
|
1583
1584
|
var BillingIcon$1 = BillingIcon;
|
|
1584
1585
|
|
|
1585
|
-
var _excluded$
|
|
1586
|
+
var _excluded$6i = ["gradient"];
|
|
1586
1587
|
|
|
1587
1588
|
/**
|
|
1588
1589
|
* @component BudgetAlertIcon
|
|
@@ -1612,7 +1613,7 @@
|
|
|
1612
1613
|
*/
|
|
1613
1614
|
var BudgetAlertIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1614
1615
|
var gradient = _ref.gradient,
|
|
1615
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1616
|
+
props = _objectWithoutProperties(_ref, _excluded$6i);
|
|
1616
1617
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1617
1618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
1619
|
width: 24,
|
|
@@ -1632,7 +1633,7 @@
|
|
|
1632
1633
|
BudgetAlertIcon.displayName = "BudgetAlertIcon";
|
|
1633
1634
|
var BudgetAlertIcon$1 = BudgetAlertIcon;
|
|
1634
1635
|
|
|
1635
|
-
var _excluded$
|
|
1636
|
+
var _excluded$6h = ["gradient"];
|
|
1636
1637
|
|
|
1637
1638
|
/**
|
|
1638
1639
|
* @component BulbIcon
|
|
@@ -1662,7 +1663,7 @@
|
|
|
1662
1663
|
*/
|
|
1663
1664
|
var BulbIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1664
1665
|
var gradient = _ref.gradient,
|
|
1665
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1666
|
+
props = _objectWithoutProperties(_ref, _excluded$6h);
|
|
1666
1667
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1667
1668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1668
1669
|
width: 16,
|
|
@@ -1681,7 +1682,7 @@
|
|
|
1681
1682
|
BulbIcon.displayName = "BulbIcon";
|
|
1682
1683
|
var BulbIcon$1 = BulbIcon;
|
|
1683
1684
|
|
|
1684
|
-
var _excluded$
|
|
1685
|
+
var _excluded$6g = ["gradient"];
|
|
1685
1686
|
|
|
1686
1687
|
/**
|
|
1687
1688
|
* @component CalendarAddXIcon
|
|
@@ -1711,7 +1712,7 @@
|
|
|
1711
1712
|
*/
|
|
1712
1713
|
var CalendarAddXIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1713
1714
|
var gradient = _ref.gradient,
|
|
1714
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1715
|
+
props = _objectWithoutProperties(_ref, _excluded$6g);
|
|
1715
1716
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1716
1717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1717
1718
|
width: 24,
|
|
@@ -1731,7 +1732,7 @@
|
|
|
1731
1732
|
CalendarAddXIcon.displayName = "CalendarAddXIcon";
|
|
1732
1733
|
var CalendarAddXIcon$1 = CalendarAddXIcon;
|
|
1733
1734
|
|
|
1734
|
-
var _excluded$
|
|
1735
|
+
var _excluded$6f = ["gradient"];
|
|
1735
1736
|
|
|
1736
1737
|
/**
|
|
1737
1738
|
* @component CalendarImportIcon
|
|
@@ -1761,7 +1762,7 @@
|
|
|
1761
1762
|
*/
|
|
1762
1763
|
var CalendarImportIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1763
1764
|
var gradient = _ref.gradient,
|
|
1764
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1765
|
+
props = _objectWithoutProperties(_ref, _excluded$6f);
|
|
1765
1766
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1766
1767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1767
1768
|
width: 18,
|
|
@@ -1784,7 +1785,7 @@
|
|
|
1784
1785
|
CalendarImportIcon.displayName = "CalendarImportIcon";
|
|
1785
1786
|
var CalendarImportIcon$1 = CalendarImportIcon;
|
|
1786
1787
|
|
|
1787
|
-
var _excluded$
|
|
1788
|
+
var _excluded$6e = ["gradient"];
|
|
1788
1789
|
|
|
1789
1790
|
/**
|
|
1790
1791
|
* @component CalendarIcon
|
|
@@ -1814,7 +1815,7 @@
|
|
|
1814
1815
|
*/
|
|
1815
1816
|
var CalendarIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
1816
1817
|
var gradient = _ref.gradient,
|
|
1817
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1818
|
+
props = _objectWithoutProperties(_ref, _excluded$6e);
|
|
1818
1819
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1819
1820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1820
1821
|
width: 24,
|
|
@@ -1834,6 +1835,165 @@
|
|
|
1834
1835
|
CalendarIcon.displayName = "CalendarIcon";
|
|
1835
1836
|
var CalendarIcon$1 = CalendarIcon;
|
|
1836
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
|
+
|
|
1837
1997
|
var _excluded$6a = ["gradient"];
|
|
1838
1998
|
|
|
1839
1999
|
/**
|
|
@@ -9093,6 +9253,7 @@
|
|
|
9093
9253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9094
9254
|
width: 24,
|
|
9095
9255
|
height: 24,
|
|
9256
|
+
viewBox: "0 0 24 24",
|
|
9096
9257
|
"data-testid": "NotebookIcon",
|
|
9097
9258
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
9098
9259
|
focusable: false,
|
|
@@ -9646,6 +9807,7 @@
|
|
|
9646
9807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9647
9808
|
width: 24,
|
|
9648
9809
|
height: 24,
|
|
9810
|
+
viewBox: "0 0 24 24",
|
|
9649
9811
|
"data-testid": "PencilIcon",
|
|
9650
9812
|
fill: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.fill ? props.fill : "var(--color-theme-600)",
|
|
9651
9813
|
focusable: false,
|
|
@@ -15386,6 +15548,21 @@
|
|
|
15386
15548
|
tower: 1200,
|
|
15387
15549
|
house: 1000
|
|
15388
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
|
+
};
|
|
15389
15566
|
|
|
15390
15567
|
var colors$1 = {
|
|
15391
15568
|
yellow: {
|
|
@@ -18127,7 +18304,7 @@
|
|
|
18127
18304
|
var StyledButtonGroup = styled__default["default"](ButtonGroup).withConfig({
|
|
18128
18305
|
displayName: "Styles__StyledButtonGroup",
|
|
18129
18306
|
componentId: "sc-1v8h7mt-2"
|
|
18130
|
-
})(["", " ", " 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);
|
|
18131
18308
|
var StyledSpan$1 = styled__default["default"].span.withConfig({
|
|
18132
18309
|
displayName: "Styles__StyledSpan",
|
|
18133
18310
|
componentId: "sc-1v8h7mt-3"
|
|
@@ -18164,7 +18341,7 @@
|
|
|
18164
18341
|
"WebkitFontSmoothing": "antialiased",
|
|
18165
18342
|
"MozOsxFontSmoothing": "grayscale"
|
|
18166
18343
|
}, function (props) {
|
|
18167
|
-
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);"]);
|
|
18168
18345
|
}, function (props) {
|
|
18169
18346
|
return !props.$alwaysShowDate && styled.css(["@media (max-width:768px){display:none;}"]);
|
|
18170
18347
|
}, function (props) {
|
|
@@ -18175,7 +18352,77 @@
|
|
|
18175
18352
|
var StyledControl = styled__default["default"](IconButton).withConfig({
|
|
18176
18353
|
displayName: "Styles__StyledControl",
|
|
18177
18354
|
componentId: "sc-1v8h7mt-5"
|
|
18178
|
-
})(["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";
|
|
18179
18426
|
StyledButtonGroup.displayName = "StyledButtonGroup";
|
|
18180
18427
|
StyledSpan$1.displayName = "StyledSpan";
|
|
18181
18428
|
StyledDiv$1.displayName = "StyledDiv";
|
|
@@ -19835,12 +20082,62 @@
|
|
|
19835
20082
|
}) : null);
|
|
19836
20083
|
};
|
|
19837
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
|
+
|
|
19838
20134
|
/**
|
|
19839
20135
|
* This component allow you to select date range. It accepts two parameters "from" and "to" as valid format
|
|
19840
20136
|
* onChange and onBack and onForward it will return "from: Date" and "to: Date" as function arguments
|
|
19841
20137
|
*/
|
|
19842
20138
|
|
|
19843
20139
|
var DateStepper = function DateStepper(_ref) {
|
|
20140
|
+
var _stepOption$label, _stepOption$icon2;
|
|
19844
20141
|
var step = _ref.step,
|
|
19845
20142
|
formatCallback = _ref.formatCallback,
|
|
19846
20143
|
onChange = _ref.onChange,
|
|
@@ -19867,15 +20164,36 @@
|
|
|
19867
20164
|
alwaysShowDate = _ref$alwaysShowDate === void 0 ? false : _ref$alwaysShowDate,
|
|
19868
20165
|
_ref$disableArrows = _ref.disableArrows,
|
|
19869
20166
|
disableArrows = _ref$disableArrows === void 0 ? false : _ref$disableArrows,
|
|
19870
|
-
maxRange = _ref.maxRange
|
|
19871
|
-
|
|
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),
|
|
19872
20176
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
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)),
|
|
19876
20190
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19877
|
-
|
|
19878
|
-
|
|
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];
|
|
19879
20197
|
var getDatesByPeriod = React.useCallback(function (interval) {
|
|
19880
20198
|
var date = fromDate ? fromDate : moment__default["default"]();
|
|
19881
20199
|
if (step === "daily") {
|
|
@@ -19907,7 +20225,7 @@
|
|
|
19907
20225
|
}
|
|
19908
20226
|
return [date, date];
|
|
19909
20227
|
}, [fromDate, toDate, period, step]);
|
|
19910
|
-
var
|
|
20228
|
+
var formatRange = React.useCallback(function (fromDate, toDate) {
|
|
19911
20229
|
if (formatCallback) {
|
|
19912
20230
|
return formatCallback(fromDate, toDate ? toDate : fromDate);
|
|
19913
20231
|
}
|
|
@@ -19952,7 +20270,10 @@
|
|
|
19952
20270
|
return showWeekOrCustomDateFormat(fromDate, toDate);
|
|
19953
20271
|
}
|
|
19954
20272
|
return "";
|
|
19955
|
-
}, [
|
|
20273
|
+
}, [step, formatCallback, period]);
|
|
20274
|
+
var getDateFormatted = React.useMemo(function () {
|
|
20275
|
+
return formatRange(fromDate, toDate);
|
|
20276
|
+
}, [formatRange, fromDate, toDate]);
|
|
19956
20277
|
var datePickerMode = React.useMemo(function () {
|
|
19957
20278
|
if (step === "custom") return "custom";
|
|
19958
20279
|
if (step === "yearly") return "custom";
|
|
@@ -20090,6 +20411,120 @@
|
|
|
20090
20411
|
}
|
|
20091
20412
|
};
|
|
20092
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
|
+
}
|
|
20093
20528
|
return /*#__PURE__*/React__default["default"].createElement(StyledButtonGroup, {
|
|
20094
20529
|
className: classnames__default["default"]("c-date-stepper", className)
|
|
20095
20530
|
}, !disableArrows ? /*#__PURE__*/React__default["default"].createElement(StyledControl, {
|
|
@@ -20103,31 +20538,24 @@
|
|
|
20103
20538
|
$mode: mode,
|
|
20104
20539
|
$alwaysShowDate: alwaysShowDate,
|
|
20105
20540
|
style: dateStepperWidth(fromDate, toDate, step)
|
|
20106
|
-
}, withDatePicker && step !== "yearly" ? /*#__PURE__*/React__default["default"].createElement(
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
popperClassName: popperClassName,
|
|
20125
|
-
position: position,
|
|
20126
|
-
maxRange: maxRange,
|
|
20127
|
-
key: datePickerMode,
|
|
20128
|
-
instant: true,
|
|
20129
|
-
required: true
|
|
20130
|
-
}) : /*#__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, {
|
|
20131
20559
|
type: "button",
|
|
20132
20560
|
variant: mode === "flat" ? "text gray" : "secondary",
|
|
20133
20561
|
onClick: onRightClickHandler,
|
|
@@ -27564,7 +27992,7 @@
|
|
|
27564
27992
|
})(["", " ", " padding:0 1rem;display:flex;overflow:hidden;@media screen and (max-width:350px){overflow:auto;}"], function (props) {
|
|
27565
27993
|
return props.size === "big" && styled.css(["height:140px;"]);
|
|
27566
27994
|
}, function (props) {
|
|
27567
|
-
return props.size === "small" && styled.css(["height:4rem;"]);
|
|
27995
|
+
return props.size === "small" && styled.css(["height:var(--c-header-height,4rem);"]);
|
|
27568
27996
|
});
|
|
27569
27997
|
StyledHeader$1.displayName = "StyledHeader";
|
|
27570
27998
|
|
|
@@ -31430,6 +31858,18 @@
|
|
|
31430
31858
|
"marginBottom": "1.25rem",
|
|
31431
31859
|
"width": "100%"
|
|
31432
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";
|
|
31433
31873
|
StyledMenu.displayName = "StyledMenu";
|
|
31434
31874
|
StyledMenuFooter.displayName = "StyledMenuFooter";
|
|
31435
31875
|
StyledStartMenuList.displayName = "StyledStartMenuList";
|
|
@@ -31560,7 +32000,131 @@
|
|
|
31560
32000
|
}), children);
|
|
31561
32001
|
};
|
|
31562
32002
|
|
|
31563
|
-
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"];
|
|
31564
32128
|
var Filter = function Filter(_ref) {
|
|
31565
32129
|
var data = _ref.data,
|
|
31566
32130
|
_ref$selected = _ref.selected,
|
|
@@ -31581,7 +32145,8 @@
|
|
|
31581
32145
|
position = _ref$position === void 0 ? "bottom-end" : _ref$position,
|
|
31582
32146
|
_ref$disabled = _ref.disabled,
|
|
31583
32147
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
31584
|
-
className = _ref.className
|
|
32148
|
+
className = _ref.className,
|
|
32149
|
+
search = _ref.search;
|
|
31585
32150
|
var _useState = React.useState(false),
|
|
31586
32151
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31587
32152
|
open = _useState2[0],
|
|
@@ -31700,7 +32265,7 @@
|
|
|
31700
32265
|
}
|
|
31701
32266
|
return false;
|
|
31702
32267
|
}, [data]);
|
|
31703
|
-
|
|
32268
|
+
var menuElement = /*#__PURE__*/React__default["default"].createElement(StyledMenu, {
|
|
31704
32269
|
open: open,
|
|
31705
32270
|
onOpen: handleOpen,
|
|
31706
32271
|
onClose: handleClose,
|
|
@@ -31753,7 +32318,7 @@
|
|
|
31753
32318
|
_ref2$saveLabel = _ref2.saveLabel,
|
|
31754
32319
|
saveLabel = _ref2$saveLabel === void 0 ? "Save" : _ref2$saveLabel,
|
|
31755
32320
|
clearLabel = _ref2.clearLabel,
|
|
31756
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
32321
|
+
rest = _objectWithoutProperties(_ref2, _excluded$p);
|
|
31757
32322
|
return /*#__PURE__*/React__default["default"].createElement(SlideLeftRightTransition, {
|
|
31758
32323
|
key: "filter-submenu-".concat(index),
|
|
31759
32324
|
in: menu === id,
|
|
@@ -31801,6 +32366,11 @@
|
|
|
31801
32366
|
onClick: handleReset
|
|
31802
32367
|
}, resetLabel)) : null))));
|
|
31803
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;
|
|
31804
32374
|
};
|
|
31805
32375
|
|
|
31806
32376
|
var WizardContext = /*#__PURE__*/React.createContext({});
|
|
@@ -32142,7 +32712,7 @@
|
|
|
32142
32712
|
return props.size + "px";
|
|
32143
32713
|
});
|
|
32144
32714
|
|
|
32145
|
-
var _excluded$
|
|
32715
|
+
var _excluded$o = ["limit", "size", "children", "hasTooltip", "className"];
|
|
32146
32716
|
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32147
32717
|
var _Children$toArray;
|
|
32148
32718
|
var limit = _ref.limit,
|
|
@@ -32152,7 +32722,7 @@
|
|
|
32152
32722
|
_ref$hasTooltip = _ref.hasTooltip,
|
|
32153
32723
|
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
32154
32724
|
className = _ref.className,
|
|
32155
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
32725
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
32156
32726
|
// always display counter with min +2 as +1 can takes space of an 1 more Avatar
|
|
32157
32727
|
var minChildren = React.Children.count(children) - limit > 1 ? false : true;
|
|
32158
32728
|
// gap between Avatars
|
|
@@ -32316,14 +32886,14 @@
|
|
|
32316
32886
|
return React.useContext(SearchContext);
|
|
32317
32887
|
};
|
|
32318
32888
|
|
|
32319
|
-
var _excluded$
|
|
32889
|
+
var _excluded$n = ["title", "renderIcon", "className", "index", "as"];
|
|
32320
32890
|
var CommandPaletteCommandItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32321
32891
|
var title = _ref.title,
|
|
32322
32892
|
renderIcon = _ref.renderIcon,
|
|
32323
32893
|
className = _ref.className,
|
|
32324
32894
|
index = _ref.index,
|
|
32325
32895
|
as = _ref.as,
|
|
32326
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
32896
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
32327
32897
|
var Component = as || "a";
|
|
32328
32898
|
var icon = renderIcon();
|
|
32329
32899
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -32492,7 +33062,7 @@
|
|
|
32492
33062
|
return "";
|
|
32493
33063
|
};
|
|
32494
33064
|
|
|
32495
|
-
var _excluded$
|
|
33065
|
+
var _excluded$m = ["title", "renderIcon", "className", "index", "loading", "as"];
|
|
32496
33066
|
var generateRandomWidth = function generateRandomWidth() {
|
|
32497
33067
|
// generate range 30-80
|
|
32498
33068
|
var randomNum = Math.round(Math.random() * 30 + 30);
|
|
@@ -32505,7 +33075,7 @@
|
|
|
32505
33075
|
index = _ref.index,
|
|
32506
33076
|
loading = _ref.loading,
|
|
32507
33077
|
as = _ref.as,
|
|
32508
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33078
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
32509
33079
|
var Component = as || "a";
|
|
32510
33080
|
var icon = renderIcon && renderIcon();
|
|
32511
33081
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -32592,7 +33162,7 @@
|
|
|
32592
33162
|
});
|
|
32593
33163
|
};
|
|
32594
33164
|
|
|
32595
|
-
var _excluded$
|
|
33165
|
+
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled"];
|
|
32596
33166
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32597
33167
|
var children = _ref.children,
|
|
32598
33168
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -32602,7 +33172,7 @@
|
|
|
32602
33172
|
loading = _ref.loading,
|
|
32603
33173
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
32604
33174
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
32605
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33175
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
32606
33176
|
var _useState = React.useState(0),
|
|
32607
33177
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32608
33178
|
selected = _useState2[0],
|
|
@@ -32784,18 +33354,18 @@
|
|
|
32784
33354
|
componentId: "sc-jfbqky-5"
|
|
32785
33355
|
})(["margin-block-start:24px;display:flex;flex-direction:column;gap:12px;align-items:center;", "{flex-direction:row;}"], screen.lg);
|
|
32786
33356
|
|
|
32787
|
-
var _excluded$
|
|
33357
|
+
var _excluded$k = ["children"];
|
|
32788
33358
|
|
|
32789
33359
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
32790
33360
|
|
|
32791
33361
|
var EmptySlateFooter = function EmptySlateFooter(_ref) {
|
|
32792
33362
|
var children = _ref.children,
|
|
32793
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33363
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
32794
33364
|
return /*#__PURE__*/React__default["default"].createElement(FooterContainer, rest, children);
|
|
32795
33365
|
};
|
|
32796
33366
|
EmptySlateFooter.displayName = "EmptySlateFooter";
|
|
32797
33367
|
|
|
32798
|
-
var _excluded$
|
|
33368
|
+
var _excluded$j = ["title", "description", "src", "alt", "illustration", "size", "children"];
|
|
32799
33369
|
var isAlreadyLoaded = function isAlreadyLoaded(image) {
|
|
32800
33370
|
return !!image && image.complete && image.naturalWidth > 0;
|
|
32801
33371
|
};
|
|
@@ -32809,7 +33379,7 @@
|
|
|
32809
33379
|
_ref$size = _ref.size,
|
|
32810
33380
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
32811
33381
|
children = _ref.children,
|
|
32812
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33382
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
32813
33383
|
var compact = size === "compact";
|
|
32814
33384
|
var imageRef = React.useRef(null);
|
|
32815
33385
|
var _useState = React.useState(),
|
|
@@ -32980,13 +33550,13 @@
|
|
|
32980
33550
|
}));
|
|
32981
33551
|
};
|
|
32982
33552
|
|
|
32983
|
-
var _excluded$
|
|
33553
|
+
var _excluded$i = ["title", "description", "clearLabel", "onClear"];
|
|
32984
33554
|
var NoResultsSlate = function NoResultsSlate(_ref) {
|
|
32985
33555
|
var title = _ref.title,
|
|
32986
33556
|
description = _ref.description,
|
|
32987
33557
|
clearLabel = _ref.clearLabel,
|
|
32988
33558
|
onClear = _ref.onClear,
|
|
32989
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
33559
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
32990
33560
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoResultsSlate, _extends({}, rest, {
|
|
32991
33561
|
role: "status"
|
|
32992
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, {
|
|
@@ -32998,124 +33568,6 @@
|
|
|
32998
33568
|
};
|
|
32999
33569
|
NoResultsSlate.displayName = "NoResultsSlate";
|
|
33000
33570
|
|
|
33001
|
-
var StyledFilterInput = styled__default["default"](Input).withConfig({
|
|
33002
|
-
displayName: "FilterInputstyles__StyledFilterInput",
|
|
33003
|
-
componentId: "sc-bna484-0"
|
|
33004
|
-
})(["&&{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) {
|
|
33005
|
-
var $active = _ref.$active;
|
|
33006
|
-
return $active && styled.css(["background-color:var(--color-primary-300);border-color:var(--color-primary);width:256px;> svg:first-child{fill:var(--color-primary);}"]);
|
|
33007
|
-
});
|
|
33008
|
-
var StyledClearButton = styled__default["default"](IconButton).withConfig({
|
|
33009
|
-
displayName: "FilterInputstyles__StyledClearButton",
|
|
33010
|
-
componentId: "sc-bna484-1"
|
|
33011
|
-
})(["&&{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;}}"]);
|
|
33012
|
-
|
|
33013
|
-
var _excluded$i = ["value", "onChange", "placeholder", "clearLabel", "shortcut", "debounce", "size", "onKeyDown"];
|
|
33014
|
-
var isMac = function isMac() {
|
|
33015
|
-
return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
33016
|
-
};
|
|
33017
|
-
var isFindShortcut = function isFindShortcut(event) {
|
|
33018
|
-
return event.key.toLowerCase() === "f" && !event.altKey && !event.shiftKey && (isMac() ? event.metaKey && !event.ctrlKey : event.ctrlKey && !event.metaKey);
|
|
33019
|
-
};
|
|
33020
|
-
var FilterInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
33021
|
-
var _rest$ariaLabel;
|
|
33022
|
-
var value = _ref.value,
|
|
33023
|
-
onChange = _ref.onChange,
|
|
33024
|
-
_ref$placeholder = _ref.placeholder,
|
|
33025
|
-
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
33026
|
-
_ref$clearLabel = _ref.clearLabel,
|
|
33027
|
-
clearLabel = _ref$clearLabel === void 0 ? "Clear" : _ref$clearLabel,
|
|
33028
|
-
_ref$shortcut = _ref.shortcut,
|
|
33029
|
-
shortcut = _ref$shortcut === void 0 ? true : _ref$shortcut,
|
|
33030
|
-
_ref$debounce = _ref.debounce,
|
|
33031
|
-
debounce = _ref$debounce === void 0 ? 250 : _ref$debounce,
|
|
33032
|
-
_ref$size = _ref.size,
|
|
33033
|
-
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
33034
|
-
onKeyDown = _ref.onKeyDown,
|
|
33035
|
-
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
33036
|
-
var inputRef = React.useRef(null);
|
|
33037
|
-
var handleRef = useForkRef(ref, inputRef);
|
|
33038
|
-
var _useState = React.useState(value),
|
|
33039
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33040
|
-
text = _useState2[0],
|
|
33041
|
-
setText = _useState2[1];
|
|
33042
|
-
var timerRef = React.useRef();
|
|
33043
|
-
React.useEffect(function () {
|
|
33044
|
-
return setText(value);
|
|
33045
|
-
}, [value]);
|
|
33046
|
-
React.useEffect(function () {
|
|
33047
|
-
return function () {
|
|
33048
|
-
return clearTimeout(timerRef.current);
|
|
33049
|
-
};
|
|
33050
|
-
}, []);
|
|
33051
|
-
var report = React.useCallback(function (next, wait) {
|
|
33052
|
-
clearTimeout(timerRef.current);
|
|
33053
|
-
setText(next);
|
|
33054
|
-
if (wait > 0) {
|
|
33055
|
-
timerRef.current = setTimeout(function () {
|
|
33056
|
-
return onChange(next);
|
|
33057
|
-
}, wait);
|
|
33058
|
-
} else {
|
|
33059
|
-
onChange(next);
|
|
33060
|
-
}
|
|
33061
|
-
}, [onChange]);
|
|
33062
|
-
React.useEffect(function () {
|
|
33063
|
-
if (!shortcut) {
|
|
33064
|
-
return undefined;
|
|
33065
|
-
}
|
|
33066
|
-
var handleShortcut = function handleShortcut(event) {
|
|
33067
|
-
if (isFindShortcut(event)) {
|
|
33068
|
-
var _inputRef$current, _inputRef$current2;
|
|
33069
|
-
event.preventDefault();
|
|
33070
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
33071
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.select();
|
|
33072
|
-
}
|
|
33073
|
-
};
|
|
33074
|
-
document.addEventListener("keydown", handleShortcut);
|
|
33075
|
-
return function () {
|
|
33076
|
-
return document.removeEventListener("keydown", handleShortcut);
|
|
33077
|
-
};
|
|
33078
|
-
}, [shortcut]);
|
|
33079
|
-
var handleKeyDown = React.useCallback(function (event) {
|
|
33080
|
-
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
33081
|
-
if (event.key !== "Escape") {
|
|
33082
|
-
return;
|
|
33083
|
-
}
|
|
33084
|
-
if (text) {
|
|
33085
|
-
event.preventDefault();
|
|
33086
|
-
report("", 0);
|
|
33087
|
-
} else {
|
|
33088
|
-
var _inputRef$current3;
|
|
33089
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.blur();
|
|
33090
|
-
}
|
|
33091
|
-
}, [onKeyDown, report, text]);
|
|
33092
|
-
var handleClear = React.useCallback(function () {
|
|
33093
|
-
var _inputRef$current4;
|
|
33094
|
-
report("", 0);
|
|
33095
|
-
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 || _inputRef$current4.focus();
|
|
33096
|
-
}, [report]);
|
|
33097
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledFilterInput, _extends({}, rest, {
|
|
33098
|
-
ref: handleRef,
|
|
33099
|
-
size: size,
|
|
33100
|
-
value: text,
|
|
33101
|
-
"aria-label": (_rest$ariaLabel = rest["aria-label"]) !== null && _rest$ariaLabel !== void 0 ? _rest$ariaLabel : placeholder,
|
|
33102
|
-
placeholder: placeholder,
|
|
33103
|
-
$active: text !== "",
|
|
33104
|
-
startAdornment: /*#__PURE__*/React__default["default"].createElement(SearchIcon$1, null),
|
|
33105
|
-
endAdornment: text ? /*#__PURE__*/React__default["default"].createElement(StyledClearButton, {
|
|
33106
|
-
variant: "text gray",
|
|
33107
|
-
size: "small",
|
|
33108
|
-
"aria-label": clearLabel,
|
|
33109
|
-
onClick: handleClear
|
|
33110
|
-
}, /*#__PURE__*/React__default["default"].createElement(CloseSmallIcon$1, null)) : null,
|
|
33111
|
-
onChange: function onChange(event) {
|
|
33112
|
-
return report(event.target.value, debounce);
|
|
33113
|
-
},
|
|
33114
|
-
onKeyDown: handleKeyDown
|
|
33115
|
-
}));
|
|
33116
|
-
});
|
|
33117
|
-
FilterInput.displayName = "FilterInput";
|
|
33118
|
-
|
|
33119
33571
|
var StyledToolbar = styled__default["default"].div.withConfig({
|
|
33120
33572
|
displayName: "Toolbarstyles__StyledToolbar",
|
|
33121
33573
|
componentId: "sc-n5xxbc-0"
|
|
@@ -36442,8 +36894,11 @@
|
|
|
36442
36894
|
exports.Button = Button;
|
|
36443
36895
|
exports.ButtonGroup = ButtonGroup;
|
|
36444
36896
|
exports.CalendarAddXIcon = CalendarAddXIcon$1;
|
|
36897
|
+
exports.CalendarDayIcon = CalendarDayIcon$1;
|
|
36445
36898
|
exports.CalendarIcon = CalendarIcon$1;
|
|
36446
36899
|
exports.CalendarImportIcon = CalendarImportIcon$1;
|
|
36900
|
+
exports.CalendarMonthIcon = CalendarMonthIcon$1;
|
|
36901
|
+
exports.CalendarWeekIcon = CalendarWeekIcon$1;
|
|
36447
36902
|
exports.CancelCrossIcon = CancelCrossIcon$1;
|
|
36448
36903
|
exports.Caption1 = Caption1;
|
|
36449
36904
|
exports.Caption2 = Caption2;
|
|
@@ -36951,8 +37406,11 @@
|
|
|
36951
37406
|
exports.formatNumber = formatNumber;
|
|
36952
37407
|
exports.getNumberFromString = getNumberFromString;
|
|
36953
37408
|
exports.getScrollParent = getScrollParent;
|
|
37409
|
+
exports.getStepRanges = getStepRanges;
|
|
37410
|
+
exports.getTopLayer = getTopLayer;
|
|
36954
37411
|
exports.hasSelectedText = hasSelectedText;
|
|
36955
37412
|
exports.isDarkTheme = isDarkTheme;
|
|
37413
|
+
exports.isInTopLayer = isInTopLayer;
|
|
36956
37414
|
exports.isOptionGroup = isOptionGroup;
|
|
36957
37415
|
exports.isPortableTextBlock = _isPortableTextBlock;
|
|
36958
37416
|
exports.isPortableTextContent = isPortableTextContent;
|