@true-engineering/true-react-common-ui-kit 3.10.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +16 -0
  2. package/dist/components/Checkbox/Checkbox.d.ts +8 -7
  3. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -5
  4. package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -1
  5. package/dist/theme/common.d.ts +2 -0
  6. package/dist/true-react-common-ui-kit.js +102 -161
  7. package/dist/true-react-common-ui-kit.js.map +1 -1
  8. package/dist/true-react-common-ui-kit.umd.cjs +102 -161
  9. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  10. package/package.json +1 -1
  11. package/src/components/AccountInfo/AccountInfo.styles.ts +3 -2
  12. package/src/components/Button/Button.styles.ts +2 -2
  13. package/src/components/Checkbox/Checkbox.stories.tsx +40 -14
  14. package/src/components/Checkbox/Checkbox.styles.ts +4 -2
  15. package/src/components/Checkbox/Checkbox.tsx +21 -25
  16. package/src/components/CloseButton/CloseButton.styles.ts +3 -2
  17. package/src/components/FiltersPane/FiltersPane.styles.ts +3 -2
  18. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -2
  19. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +2 -2
  20. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
  21. package/src/components/FlexibleTable/FlexibleTable.styles.ts +3 -2
  22. package/src/components/Icon/icons-list.ts +5 -13
  23. package/src/components/IconButton/IconButton.styles.ts +2 -2
  24. package/src/components/IncrementInput/IncrementInput.styles.ts +3 -2
  25. package/src/components/Input/Input.styles.ts +6 -5
  26. package/src/components/List/List.styles.ts +3 -2
  27. package/src/components/List/components/ListItem/ListItem.styles.ts +3 -2
  28. package/src/components/MoreMenu/MoreMenu.styles.ts +3 -2
  29. package/src/components/MultiSelectList/MultiSelectList.tsx +9 -6
  30. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +3 -2
  31. package/src/components/Selector/Selector.styles.ts +4 -3
  32. package/src/components/Switch/Switch.styles.ts +4 -4
  33. package/src/components/TextArea/TextArea.styles.ts +4 -4
  34. package/src/components/TextButton/TextButton.styles.ts +4 -3
  35. package/src/theme/common.ts +2 -0
@@ -1082,6 +1082,7 @@ var helpers = {
1082
1082
  var SLIDE_UP_POSITION_START = 15;
1083
1083
  var SLIDE_UP_POSITION_END = 0;
1084
1084
  var animations = {
1085
+ defaultTransition: "0.25s ease-in-out",
1085
1086
  // Если понадобится, сюда можно пробросить параметры через useTheme props
1086
1087
  slideUp: {
1087
1088
  "slide-up-enter": {
@@ -4599,7 +4600,7 @@ var phoneInfo = [
4599
4600
  ]
4600
4601
  }
4601
4602
  ];
4602
- function _array_like_to_array$s(arr, len) {
4603
+ function _array_like_to_array$r(arr, len) {
4603
4604
  if (len == null || len > arr.length)
4604
4605
  len = arr.length;
4605
4606
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -4608,7 +4609,7 @@ function _array_like_to_array$s(arr, len) {
4608
4609
  }
4609
4610
  function _array_without_holes$8(arr) {
4610
4611
  if (Array.isArray(arr))
4611
- return _array_like_to_array$s(arr);
4612
+ return _array_like_to_array$r(arr);
4612
4613
  }
4613
4614
  function _iterable_to_array$8(iter) {
4614
4615
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
@@ -4618,20 +4619,20 @@ function _non_iterable_spread$8() {
4618
4619
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4619
4620
  }
4620
4621
  function _to_consumable_array$8(arr) {
4621
- return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$8();
4622
+ return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$8();
4622
4623
  }
4623
- function _unsupported_iterable_to_array$s(o, minLen) {
4624
+ function _unsupported_iterable_to_array$r(o, minLen) {
4624
4625
  if (!o)
4625
4626
  return;
4626
4627
  if (typeof o === "string")
4627
- return _array_like_to_array$s(o, minLen);
4628
+ return _array_like_to_array$r(o, minLen);
4628
4629
  var n = Object.prototype.toString.call(o).slice(8, -1);
4629
4630
  if (n === "Object" && o.constructor)
4630
4631
  n = o.constructor.name;
4631
4632
  if (n === "Map" || n === "Set")
4632
4633
  return Array.from(n);
4633
4634
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4634
- return _array_like_to_array$s(o, minLen);
4635
+ return _array_like_to_array$r(o, minLen);
4635
4636
  }
4636
4637
  var findCountryByCode = function(countryCode) {
4637
4638
  var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo;
@@ -4714,18 +4715,18 @@ var getPhoneMask = function(countryCode) {
4714
4715
  }
4715
4716
  return mask;
4716
4717
  };
4717
- function _array_like_to_array$r(arr, len) {
4718
+ function _array_like_to_array$q(arr, len) {
4718
4719
  if (len == null || len > arr.length)
4719
4720
  len = arr.length;
4720
4721
  for (var i = 0, arr2 = new Array(len); i < len; i++)
4721
4722
  arr2[i] = arr[i];
4722
4723
  return arr2;
4723
4724
  }
4724
- function _array_with_holes$q(arr) {
4725
+ function _array_with_holes$p(arr) {
4725
4726
  if (Array.isArray(arr))
4726
4727
  return arr;
4727
4728
  }
4728
- function _iterable_to_array_limit$q(arr, i) {
4729
+ function _iterable_to_array_limit$p(arr, i) {
4729
4730
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
4730
4731
  if (_i == null)
4731
4732
  return;
@@ -4753,24 +4754,24 @@ function _iterable_to_array_limit$q(arr, i) {
4753
4754
  }
4754
4755
  return _arr;
4755
4756
  }
4756
- function _non_iterable_rest$q() {
4757
+ function _non_iterable_rest$p() {
4757
4758
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4758
4759
  }
4759
- function _sliced_to_array$q(arr, i) {
4760
- return _array_with_holes$q(arr) || _iterable_to_array_limit$q(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$q();
4760
+ function _sliced_to_array$p(arr, i) {
4761
+ return _array_with_holes$p(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$p();
4761
4762
  }
4762
- function _unsupported_iterable_to_array$r(o, minLen) {
4763
+ function _unsupported_iterable_to_array$q(o, minLen) {
4763
4764
  if (!o)
4764
4765
  return;
4765
4766
  if (typeof o === "string")
4766
- return _array_like_to_array$r(o, minLen);
4767
+ return _array_like_to_array$q(o, minLen);
4767
4768
  var n = Object.prototype.toString.call(o).slice(8, -1);
4768
4769
  if (n === "Object" && o.constructor)
4769
4770
  n = o.constructor.name;
4770
4771
  if (n === "Map" || n === "Set")
4771
4772
  return Array.from(n);
4772
4773
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4773
- return _array_like_to_array$r(o, minLen);
4774
+ return _array_like_to_array$q(o, minLen);
4774
4775
  }
4775
4776
  var rgba = hexToRgba;
4776
4777
  var transformToKebab = function(string) {
@@ -4893,7 +4894,7 @@ var trimStringToMaxLength = function(val, maxLength) {
4893
4894
  var addDataAttributes = function() {
4894
4895
  var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4895
4896
  return Object.fromEntries(Object.entries(data).map(function(param) {
4896
- var _param = _sliced_to_array$q(param, 2), key = _param[0], value = _param[1];
4897
+ var _param = _sliced_to_array$p(param, 2), key = _param[0], value = _param[1];
4897
4898
  return isString(value) && isStringNotEmpty(value) || isNotEmpty(value) ? [
4898
4899
  "data-".concat(transformToKebab(key)),
4899
4900
  value
@@ -6419,7 +6420,7 @@ function usePopper(referenceElement, popperElement, _temp) {
6419
6420
  }, [enabled, referenceElement, popperElement]);
6420
6421
  return popperState;
6421
6422
  }
6422
- function _array_like_to_array$q(arr, len) {
6423
+ function _array_like_to_array$p(arr, len) {
6423
6424
  if (len == null || len > arr.length)
6424
6425
  len = arr.length;
6425
6426
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -6428,7 +6429,7 @@ function _array_like_to_array$q(arr, len) {
6428
6429
  }
6429
6430
  function _array_without_holes$7(arr) {
6430
6431
  if (Array.isArray(arr))
6431
- return _array_like_to_array$q(arr);
6432
+ return _array_like_to_array$p(arr);
6432
6433
  }
6433
6434
  function _define_property$_(obj, key, value) {
6434
6435
  if (key in obj) {
@@ -6466,20 +6467,20 @@ function _object_spread$Z(target) {
6466
6467
  return target;
6467
6468
  }
6468
6469
  function _to_consumable_array$7(arr) {
6469
- return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$7();
6470
+ return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$p(arr) || _non_iterable_spread$7();
6470
6471
  }
6471
- function _unsupported_iterable_to_array$q(o, minLen) {
6472
+ function _unsupported_iterable_to_array$p(o, minLen) {
6472
6473
  if (!o)
6473
6474
  return;
6474
6475
  if (typeof o === "string")
6475
- return _array_like_to_array$q(o, minLen);
6476
+ return _array_like_to_array$p(o, minLen);
6476
6477
  var n = Object.prototype.toString.call(o).slice(8, -1);
6477
6478
  if (n === "Object" && o.constructor)
6478
6479
  n = o.constructor.name;
6479
6480
  if (n === "Map" || n === "Set")
6480
6481
  return Array.from(n);
6481
6482
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
6482
- return _array_like_to_array$q(o, minLen);
6483
+ return _array_like_to_array$p(o, minLen);
6483
6484
  }
6484
6485
  var useDropdown = function(param) {
6485
6486
  var isOpen = param.isOpen, onDropdownClose = param.onDropdownClose, referenceElement = param.referenceElement, dropdownElement = param.dropdownElement, options = param.options, _param_dependenciesForPositionUpdating = param.dependenciesForPositionUpdating, dependenciesForPositionUpdating = _param_dependenciesForPositionUpdating === void 0 ? [] : _param_dependenciesForPositionUpdating;
@@ -6821,10 +6822,11 @@ var iconsList = checkIcons({
6821
6822
  check: {
6822
6823
  paths: [
6823
6824
  {
6824
- d: "M9.333 11.252l4.96-4.96a1 1 0 011.414 1.415l-5.667 5.667a1 1 0 01-1.414 0L6.293 11.04a1 1 0 111.414-1.414l1.626 1.626z"
6825
+ d: "m7.5 13.086 7.793-7.793a1 1 0 1 1 1.414 1.414l-8.5 8.5a1 1 0 0 1-1.414 0l-3.5-3.5a1 1 0 1 1 1.414-1.414L7.5 13.086Z"
6825
6826
  }
6826
6827
  ]
6827
6828
  },
6829
+ /** @deprecated */
6828
6830
  "check-big": {
6829
6831
  paths: [
6830
6832
  {
@@ -6836,17 +6838,8 @@ var iconsList = checkIcons({
6836
6838
  viewBox: "0 0 20 20",
6837
6839
  paths: [
6838
6840
  {
6839
- d: "M3 10.5L5.92929 13.4293C5.96834 13.4683 6.03166 13.4683 6.07071 13.4293L13.5 6",
6840
- strokeWidth: 2,
6841
- strokeLinecap: "round",
6842
- stroke: "currentColor",
6843
- fill: "none"
6844
- },
6845
- {
6846
- d: "M10.2071 13.2929L9.5 12.5858L8.08579 14L8.79289 14.7071L10.2071 13.2929ZM18.2071 7.70711C18.5976 7.31658 18.5976 6.68342 18.2071 6.29289C17.8166 5.90237 17.1834 5.90237 16.7929 6.29289L18.2071 7.70711ZM9.92929 14.4293L10.6364 13.7222L9.92929 14.4293ZM10.0707 14.4293L9.3636 13.7222L10.0707 14.4293ZM8.79289 14.7071L9.22218 15.1364L10.6364 13.7222L10.2071 13.2929L8.79289 14.7071ZM10.7778 15.1364L18.2071 7.70711L16.7929 6.29289L9.3636 13.7222L10.7778 15.1364ZM9.22218 15.1364C9.65176 15.566 10.3482 15.566 10.7778 15.1364L9.3636 13.7222C9.71508 13.3707 10.2849 13.3707 10.6364 13.7222L9.22218 15.1364Z",
6847
- fill: "currentColor",
6848
- stroke: "none",
6849
- fillRule: void 0
6841
+ d: "M14.207 6.707a1 1 0 0 0-1.414-1.414L6 12.086 3.707 9.793a1 1 0 0 0-1.414 1.414l2.93 2.93a1.1 1.1 0 0 0 1.555 0l7.43-7.43Zm4 1a1 1 0 0 0-1.414-1.414L10 13.086l-.5-.5L8.086 14l1.136 1.136a1.1 1.1 0 0 0 1.556 0l7.43-7.429Z",
6842
+ fillRule: "evenodd"
6850
6843
  }
6851
6844
  ]
6852
6845
  },
@@ -7164,7 +7157,7 @@ var iconsList = checkIcons({
7164
7157
  minus: {
7165
7158
  paths: [
7166
7159
  {
7167
- d: "M16 11H4c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1z"
7160
+ d: "M16 11H4a1 1 0 1 1 0-2h12a1 1 0 1 1 0 2Z"
7168
7161
  }
7169
7162
  ]
7170
7163
  },
@@ -7738,7 +7731,8 @@ var useStyles$S = createThemedStyles("ListItem", {
7738
7731
  0,
7739
7732
  ITEM_HORIZONTAL_PADDING$1
7740
7733
  ],
7741
- transition: "background-color 0.25s ease-in-out",
7734
+ transition: animations.defaultTransition,
7735
+ transitionProperty: "background-color",
7742
7736
  cursor: "pointer"
7743
7737
  },
7744
7738
  default: {},
@@ -7871,7 +7865,8 @@ var useStyles$R = createThemedStyles("List", {
7871
7865
  0,
7872
7866
  ITEM_HORIZONTAL_PADDING
7873
7867
  ],
7874
- transition: "background-color 0.25s ease-in-out",
7868
+ transition: animations.defaultTransition,
7869
+ transitionProperty: "background-color",
7875
7870
  cursor: "pointer"
7876
7871
  },
7877
7872
  disabledItem: {
@@ -8014,13 +8009,14 @@ var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
8014
8009
  10
8015
8010
  ],
8016
8011
  fontSize: 14,
8017
- transition: "color 0.25s ease-in-out"
8012
+ transition: animations.defaultTransition,
8013
+ transitionProperty: "color"
8018
8014
  },
8019
8015
  accountNameOpened: {},
8020
8016
  accountChevron: {
8021
8017
  width: 16,
8022
8018
  height: 16,
8023
- transition: "ease-in-out 0.25s",
8019
+ transition: animations.defaultTransition,
8024
8020
  transitionProperty: "transform, color"
8025
8021
  },
8026
8022
  accountChevronOpened: {
@@ -8038,14 +8034,14 @@ var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
8038
8034
  height: 32
8039
8035
  }
8040
8036
  }, animations.slideUp));
8041
- function _array_like_to_array$p(arr, len) {
8037
+ function _array_like_to_array$o(arr, len) {
8042
8038
  if (len == null || len > arr.length)
8043
8039
  len = arr.length;
8044
8040
  for (var i = 0, arr2 = new Array(len); i < len; i++)
8045
8041
  arr2[i] = arr[i];
8046
8042
  return arr2;
8047
8043
  }
8048
- function _array_with_holes$p(arr) {
8044
+ function _array_with_holes$o(arr) {
8049
8045
  if (Array.isArray(arr))
8050
8046
  return arr;
8051
8047
  }
@@ -8062,7 +8058,7 @@ function _define_property$T(obj, key, value) {
8062
8058
  }
8063
8059
  return obj;
8064
8060
  }
8065
- function _iterable_to_array_limit$p(arr, i) {
8061
+ function _iterable_to_array_limit$o(arr, i) {
8066
8062
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8067
8063
  if (_i == null)
8068
8064
  return;
@@ -8090,7 +8086,7 @@ function _iterable_to_array_limit$p(arr, i) {
8090
8086
  }
8091
8087
  return _arr;
8092
8088
  }
8093
- function _non_iterable_rest$p() {
8089
+ function _non_iterable_rest$o() {
8094
8090
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8095
8091
  }
8096
8092
  function _object_spread$S(target) {
@@ -8132,21 +8128,21 @@ function _object_spread_props$K(target, source) {
8132
8128
  }
8133
8129
  return target;
8134
8130
  }
8135
- function _sliced_to_array$p(arr, i) {
8136
- return _array_with_holes$p(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$p();
8131
+ function _sliced_to_array$o(arr, i) {
8132
+ return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$o();
8137
8133
  }
8138
- function _unsupported_iterable_to_array$p(o, minLen) {
8134
+ function _unsupported_iterable_to_array$o(o, minLen) {
8139
8135
  if (!o)
8140
8136
  return;
8141
8137
  if (typeof o === "string")
8142
- return _array_like_to_array$p(o, minLen);
8138
+ return _array_like_to_array$o(o, minLen);
8143
8139
  var n = Object.prototype.toString.call(o).slice(8, -1);
8144
8140
  if (n === "Object" && o.constructor)
8145
8141
  n = o.constructor.name;
8146
8142
  if (n === "Map" || n === "Set")
8147
8143
  return Array.from(n);
8148
8144
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
8149
- return _array_like_to_array$p(o, minLen);
8145
+ return _array_like_to_array$o(o, minLen);
8150
8146
  }
8151
8147
  var AccountInfo = function(param) {
8152
8148
  var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
@@ -8160,7 +8156,7 @@ var AccountInfo = function(param) {
8160
8156
  });
8161
8157
  var nameRef = useRef(null);
8162
8158
  var dropdownRef = useRef(null);
8163
- var _useState = _sliced_to_array$p(useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
8159
+ var _useState = _sliced_to_array$o(useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
8164
8160
  var toggleMenu = function(event) {
8165
8161
  event.stopPropagation();
8166
8162
  setIsMenuOpen(function(v) {
@@ -8554,7 +8550,7 @@ var useStyles$L = createThemedStyles("Button", {
8554
8550
  cursor: "pointer",
8555
8551
  outline: "none",
8556
8552
  boxSizing: "border-box",
8557
- transition: "0.25s ease-in-out",
8553
+ transition: animations.defaultTransition,
8558
8554
  transitionProperty: "background-color, color, box-shadow, border-color",
8559
8555
  maxWidth: "100%",
8560
8556
  border: [
@@ -8826,6 +8822,8 @@ var useStyles$K = createThemedStyles("Checkbox", {
8826
8822
  gap: 14,
8827
8823
  width: "fit-content"
8828
8824
  },
8825
+ checked: {},
8826
+ invalid: {},
8829
8827
  disabled: {
8830
8828
  cursor: "default",
8831
8829
  pointerEvents: "none"
@@ -8850,22 +8848,10 @@ var useStyles$K = createThemedStyles("Checkbox", {
8850
8848
  justifyContent: "center",
8851
8849
  boxSizing: "border-box"
8852
8850
  },
8853
- checked: {},
8854
8851
  labelPositionLeft: {
8855
8852
  flexDirection: "row-reverse"
8856
8853
  }
8857
8854
  });
8858
- function _array_like_to_array$o(arr, len) {
8859
- if (len == null || len > arr.length)
8860
- len = arr.length;
8861
- for (var i = 0, arr2 = new Array(len); i < len; i++)
8862
- arr2[i] = arr[i];
8863
- return arr2;
8864
- }
8865
- function _array_with_holes$o(arr) {
8866
- if (Array.isArray(arr))
8867
- return arr;
8868
- }
8869
8855
  function _define_property$P(obj, key, value) {
8870
8856
  if (key in obj) {
8871
8857
  Object.defineProperty(obj, key, {
@@ -8879,37 +8865,6 @@ function _define_property$P(obj, key, value) {
8879
8865
  }
8880
8866
  return obj;
8881
8867
  }
8882
- function _iterable_to_array_limit$o(arr, i) {
8883
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8884
- if (_i == null)
8885
- return;
8886
- var _arr = [];
8887
- var _n = true;
8888
- var _d = false;
8889
- var _s, _e;
8890
- try {
8891
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
8892
- _arr.push(_s.value);
8893
- if (i && _arr.length === i)
8894
- break;
8895
- }
8896
- } catch (err) {
8897
- _d = true;
8898
- _e = err;
8899
- } finally {
8900
- try {
8901
- if (!_n && _i["return"] != null)
8902
- _i["return"]();
8903
- } finally {
8904
- if (_d)
8905
- throw _e;
8906
- }
8907
- }
8908
- return _arr;
8909
- }
8910
- function _non_iterable_rest$o() {
8911
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8912
- }
8913
8868
  function _object_spread$O(target) {
8914
8869
  for (var i = 1; i < arguments.length; i++) {
8915
8870
  var source = arguments[i] != null ? arguments[i] : {};
@@ -8949,50 +8904,27 @@ function _object_spread_props$G(target, source) {
8949
8904
  }
8950
8905
  return target;
8951
8906
  }
8952
- function _sliced_to_array$o(arr, i) {
8953
- return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$o();
8954
- }
8955
- function _unsupported_iterable_to_array$o(o, minLen) {
8956
- if (!o)
8957
- return;
8958
- if (typeof o === "string")
8959
- return _array_like_to_array$o(o, minLen);
8960
- var n = Object.prototype.toString.call(o).slice(8, -1);
8961
- if (n === "Object" && o.constructor)
8962
- n = o.constructor.name;
8963
- if (n === "Map" || n === "Set")
8964
- return Array.from(n);
8965
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
8966
- return _array_like_to_array$o(o, minLen);
8967
- }
8968
8907
  function Checkbox(param) {
8969
- var children = param.children, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, data = param.data, testId = param.testId, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
8908
+ var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
8970
8909
  var classes = useStyles$K({
8971
8910
  theme: tweakStyles
8972
8911
  });
8973
- var _useState = _sliced_to_array$o(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
8974
8912
  var hasAction = !isDisabled && !isReadonly;
8913
+ var isSelected = isChecked || isSemiChecked;
8975
8914
  var onToggle = function(event) {
8976
- var isSelectedNext = !isSelected;
8977
- onSelect({
8915
+ return onSelect === null || onSelect === void 0 ? void 0 : onSelect({
8978
8916
  value,
8979
- isSelected: isSelectedNext
8917
+ isSelected: !isSelected
8980
8918
  }, event);
8981
- setIsSelected(isSelectedNext);
8982
8919
  };
8983
- useEffect(function() {
8984
- setIsSelected(isChecked);
8985
- }, [
8986
- isChecked
8987
- ]);
8988
8920
  var _obj;
8989
8921
  return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
8990
- className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
8922
+ className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.checked, isSelected), _define_property$P(_obj, classes.invalid, isInvalid), _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
8991
8923
  }, addDataTestId(testId), addDataAttributes(data)), {
8992
8924
  children: [
8993
8925
  /* @__PURE__ */ jsx("input", _object_spread$O({
8994
- type: "checkbox",
8995
8926
  className: classes.input,
8927
+ type: "checkbox",
8996
8928
  checked: isSelected,
8997
8929
  disabled: isDisabled,
8998
8930
  readOnly: isReadonly
@@ -9001,8 +8933,8 @@ function Checkbox(param) {
9001
8933
  onKeyDown: getSelectKeyHandler(onToggle)
9002
8934
  })),
9003
8935
  /* @__PURE__ */ jsx("div", {
9004
- className: clsx(classes.check, isSelected && classes.checked),
9005
- children: /* @__PURE__ */ jsx(Icon, {
8936
+ className: classes.check,
8937
+ children: isSelected && /* @__PURE__ */ jsx(Icon, {
9006
8938
  type: isSemiChecked ? "minus" : "check"
9007
8939
  })
9008
8940
  }),
@@ -9026,7 +8958,8 @@ var useStyles$J = createThemedStyles("CloseButton", {
9026
8958
  appearance: "none",
9027
8959
  backgroundColor: "transparent",
9028
8960
  cursor: "pointer",
9029
- transition: "background-color 0.25s ease-in-out",
8961
+ transition: animations.defaultTransition,
8962
+ transitionProperty: "background-color",
9030
8963
  "&:hover": {
9031
8964
  backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
9032
8965
  },
@@ -9288,7 +9221,7 @@ var useStyles$G = createThemedStyles("Input", {
9288
9221
  width: "100%",
9289
9222
  height: dimensions.CONTROL_HEIGHT,
9290
9223
  boxSizing: "border-box",
9291
- transition: "0.25s ease-in-out",
9224
+ transition: animations.defaultTransition,
9292
9225
  transitionProperty: "border-color",
9293
9226
  backgroundColor: "white",
9294
9227
  position: "relative"
@@ -9308,7 +9241,7 @@ var useStyles$G = createThemedStyles("Input", {
9308
9241
  outline: "none",
9309
9242
  boxSizing: "border-box",
9310
9243
  outlineStyle: "none",
9311
- transition: "0.25s ease-in-out",
9244
+ transition: animations.defaultTransition,
9312
9245
  transitionProperty: "background-color",
9313
9246
  border: "none",
9314
9247
  background: "none",
@@ -9394,7 +9327,7 @@ var useStyles$G = createThemedStyles("Input", {
9394
9327
  top: "50%",
9395
9328
  transformOrigin: "top left",
9396
9329
  transform: "translateY(-50%)",
9397
- transition: "0.25s ease-in-out",
9330
+ transition: animations.defaultTransition,
9398
9331
  transitionProperty: "transform, color",
9399
9332
  fontSize: 16
9400
9333
  },
@@ -9503,7 +9436,8 @@ var useStyles$G = createThemedStyles("Input", {
9503
9436
  4
9504
9437
  ],
9505
9438
  width: 20,
9506
- transition: "color 0.25s ease-in-out",
9439
+ transition: animations.defaultTransition,
9440
+ transitionProperty: "color",
9507
9441
  boxSizing: "content-box",
9508
9442
  "&:last-child": {
9509
9443
  paddingRight: 8
@@ -13333,7 +13267,8 @@ var useStyles$y = createThemedStyles("FiltersPane", {
13333
13267
  width: 40,
13334
13268
  height: FILTER_HEIGHT,
13335
13269
  cursor: "pointer",
13336
- transition: "background-color 0.25s ease-in-out"
13270
+ transition: animations.defaultTransition,
13271
+ transitionProperty: "background-color"
13337
13272
  },
13338
13273
  settingsIcon: {
13339
13274
  width: 16,
@@ -14162,13 +14097,16 @@ function MultiSelectList(param) {
14162
14097
  var handleClear = function() {
14163
14098
  onChange(void 0);
14164
14099
  };
14165
- var onSelect = function(val) {
14166
- var _chosenValues_filter;
14167
- handleSelectValue(val.isSelected ? _to_consumable_array$5(chosenValues !== null && chosenValues !== void 0 ? chosenValues : []).concat([
14168
- val.value
14169
- ]) : (_chosenValues_filter = chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.filter(function(v) {
14170
- return getValueId(v) !== getValueId(val.value);
14171
- })) !== null && _chosenValues_filter !== void 0 ? _chosenValues_filter : []);
14100
+ var onSelect = function(param2) {
14101
+ var checkboxValue = param2.value, isSelected = param2.isSelected;
14102
+ if (isNotEmpty(checkboxValue)) {
14103
+ var _chosenValues_filter;
14104
+ handleSelectValue(isSelected ? _to_consumable_array$5(chosenValues !== null && chosenValues !== void 0 ? chosenValues : []).concat([
14105
+ checkboxValue
14106
+ ]) : (_chosenValues_filter = chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.filter(function(v) {
14107
+ return getValueId(v) !== getValueId(checkboxValue);
14108
+ })) !== null && _chosenValues_filter !== void 0 ? _chosenValues_filter : []);
14109
+ }
14172
14110
  };
14173
14111
  var handleKeyDown = function(event) {
14174
14112
  if (event.code === "Escape") {
@@ -14619,7 +14557,8 @@ var useStyles$v = createThemedStyles("FilterSelect", {
14619
14557
  cursor: "pointer",
14620
14558
  fontSize: 14,
14621
14559
  minHeight: ITEM_HEIGHT,
14622
- transition: "background-color 0.25s ease-in-out",
14560
+ transition: animations.defaultTransition,
14561
+ transitionProperty: "background-color",
14623
14562
  boxSizing: "border-box"
14624
14563
  },
14625
14564
  option: {
@@ -17314,7 +17253,7 @@ var useStyles$s = createThemedStyles("FiltersPaneSearch", {
17314
17253
  ],
17315
17254
  borderRadius: 18,
17316
17255
  paddingRight: 8,
17317
- transition: "0.25s ease-in-out",
17256
+ transition: animations.defaultTransition,
17318
17257
  transitionProperty: "background-color, border-color"
17319
17258
  },
17320
17259
  focused: {
@@ -17797,7 +17736,7 @@ function FilterValueView(param) {
17797
17736
  var useStyles$q = createThemedStyles("FilterWrapper", {
17798
17737
  root: {
17799
17738
  position: "relative",
17800
- transition: "0.25s ease-in-out",
17739
+ transition: animations.defaultTransition,
17801
17740
  transitionProperty: "background-color, border-color",
17802
17741
  border: [
17803
17742
  1,
@@ -24556,11 +24495,8 @@ var useStyles$n = createThemedStyles("FlexibleTable", {
24556
24495
  background: "transparent",
24557
24496
  pointerEvents: "none",
24558
24497
  zIndex: 1,
24559
- transition: [
24560
- "box-shadow",
24561
- "0.25s",
24562
- "ease-in-out"
24563
- ],
24498
+ transition: animations.defaultTransition,
24499
+ transitionProperty: "box-shadow",
24564
24500
  "[data-scrolled] &": {
24565
24501
  boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
24566
24502
  }
@@ -25333,7 +25269,7 @@ var useStyles$k = createThemedStyles("IconButton", {
25333
25269
  cursor: "pointer",
25334
25270
  outline: "none",
25335
25271
  boxSizing: "border-box",
25336
- transition: "0.25s ease-in-out",
25272
+ transition: animations.defaultTransition,
25337
25273
  transitionProperty: "background-color, color, border-color",
25338
25274
  border: "none",
25339
25275
  position: "relative",
@@ -25536,7 +25472,8 @@ var useStyles$j = createThemedStyles("IncrementInput", {
25536
25472
  border: "none",
25537
25473
  outline: "none",
25538
25474
  backgroundColor: colors.GREY_BACKGROUND,
25539
- transition: "background-color 0.25s ease-in-out",
25475
+ transition: animations.defaultTransition,
25476
+ transitionProperty: "background-color",
25540
25477
  color: colors.FONT_MEDIUM,
25541
25478
  cursor: "pointer",
25542
25479
  display: "flex",
@@ -26314,7 +26251,8 @@ var useStyles$h = createThemedStyles("MoreMenu", {
26314
26251
  borderRadius: "50%",
26315
26252
  border: "none",
26316
26253
  cursor: "pointer",
26317
- transition: "background-color 0.25s ease-in-out",
26254
+ transition: animations.defaultTransition,
26255
+ transitionProperty: "background-color",
26318
26256
  "&$hasCircle": {
26319
26257
  backgroundColor: rgba(colors.GREY_HOVER, 0.5)
26320
26258
  },
@@ -27854,7 +27792,7 @@ var useStyles$a = createThemedStyles("Selector", {
27854
27792
  height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
27855
27793
  backgroundColor: colors.CLASSIC_WHITE,
27856
27794
  borderRadius: dimensions.BORDER_RADIUS_SMALL,
27857
- transition: "0.25s ease-in-out",
27795
+ transition: animations.defaultTransition,
27858
27796
  transitionProperty: "transform, width"
27859
27797
  },
27860
27798
  "&$invalid": {
@@ -27867,7 +27805,8 @@ var useStyles$a = createThemedStyles("Selector", {
27867
27805
  height: "100%",
27868
27806
  color: colors.FONT_MEDIUM,
27869
27807
  fontSize: 16,
27870
- transition: "color 0.25s ease-in-out",
27808
+ transition: animations.defaultTransition,
27809
+ transitionProperty: "color",
27871
27810
  background: "none",
27872
27811
  "&$s": {
27873
27812
  padding: [
@@ -28659,8 +28598,8 @@ var useStyles$8 = createThemedStyles("Switch", {
28659
28598
  backgroundColor: "#333",
28660
28599
  borderRadius: 10,
28661
28600
  boxSizing: "border-box",
28601
+ transition: animations.defaultTransition,
28662
28602
  transitionProperty: "opacity, background-color",
28663
- transition: "0.25s ease-in-out",
28664
28603
  "&::before": {
28665
28604
  content: '""',
28666
28605
  position: "absolute",
@@ -28673,16 +28612,16 @@ var useStyles$8 = createThemedStyles("Switch", {
28673
28612
  backgroundColor: "#fff",
28674
28613
  borderRadius: "50%",
28675
28614
  zIndex: 1,
28676
- transitionProperty: "left, background-color",
28677
- transition: "0.25s ease-in-out"
28615
+ transition: animations.defaultTransition,
28616
+ transitionProperty: "left, background-color"
28678
28617
  }
28679
28618
  },
28680
28619
  input: {
28681
28620
  display: "none"
28682
28621
  },
28683
28622
  label: {
28684
- transitionProperty: "opacity, color",
28685
- transition: "0.25s ease-in-out"
28623
+ transition: animations.defaultTransition,
28624
+ transitionProperty: "opacity, color"
28686
28625
  },
28687
28626
  labelLeft: {
28688
28627
  order: -1,
@@ -28792,7 +28731,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
28792
28731
  width: "100%",
28793
28732
  flexGrow: 1,
28794
28733
  boxSizing: "border-box",
28795
- transition: "0.25s ease-in-out",
28734
+ transition: animations.defaultTransition,
28796
28735
  transitionProperty: "border-color",
28797
28736
  backgroundColor: "white",
28798
28737
  border: [
@@ -28814,7 +28753,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
28814
28753
  PADDING_X,
28815
28754
  8
28816
28755
  ],
28817
- transition: "0.25s ease-in-out",
28756
+ transition: animations.defaultTransition,
28818
28757
  transitionProperty: "background-color",
28819
28758
  border: "none",
28820
28759
  resize: "none",
@@ -28866,7 +28805,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
28866
28805
  top: PADDING_X * 2,
28867
28806
  transformOrigin: "top left",
28868
28807
  transform: "translateY(-50%)",
28869
- transition: "0.25s ease-in-out",
28808
+ transition: animations.defaultTransition,
28870
28809
  transitionProperty: "transform, color",
28871
28810
  fontSize: 16
28872
28811
  },
@@ -29136,7 +29075,8 @@ var useStyles$6 = createThemedStyles("TextButton", {
29136
29075
  borderRadius: 0,
29137
29076
  cursor: "pointer",
29138
29077
  outline: "none",
29139
- transition: "color 0.25s ease-in-out",
29078
+ transition: animations.defaultTransition,
29079
+ transitionProperty: "color",
29140
29080
  "&[disabled]": {
29141
29081
  cursor: "default",
29142
29082
  pointerEvents: "none"
@@ -29175,7 +29115,7 @@ var useStyles$6 = createThemedStyles("TextButton", {
29175
29115
  width: 24,
29176
29116
  height: 24,
29177
29117
  borderRadius: "50%",
29178
- transition: "0.25s ease-in-out",
29118
+ transition: animations.defaultTransition,
29179
29119
  transitionProperty: [
29180
29120
  "background",
29181
29121
  "color"
@@ -30386,7 +30326,8 @@ var useStyles = createThemedStyles("NewMoreMenu", {
30386
30326
  borderRadius: "50%",
30387
30327
  border: "none",
30388
30328
  cursor: "pointer",
30389
- transition: "background-color 0.25s ease-in-out"
30329
+ transition: animations.defaultTransition,
30330
+ transitionProperty: "background-color"
30390
30331
  },
30391
30332
  icon: {
30392
30333
  width: 30,