@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
@@ -1071,6 +1071,7 @@
1071
1071
  var SLIDE_UP_POSITION_START = 15;
1072
1072
  var SLIDE_UP_POSITION_END = 0;
1073
1073
  var animations = {
1074
+ defaultTransition: "0.25s ease-in-out",
1074
1075
  // Если понадобится, сюда можно пробросить параметры через useTheme props
1075
1076
  slideUp: {
1076
1077
  "slide-up-enter": {
@@ -4588,7 +4589,7 @@
4588
4589
  ]
4589
4590
  }
4590
4591
  ];
4591
- function _array_like_to_array$s(arr, len) {
4592
+ function _array_like_to_array$r(arr, len) {
4592
4593
  if (len == null || len > arr.length)
4593
4594
  len = arr.length;
4594
4595
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -4597,7 +4598,7 @@
4597
4598
  }
4598
4599
  function _array_without_holes$8(arr) {
4599
4600
  if (Array.isArray(arr))
4600
- return _array_like_to_array$s(arr);
4601
+ return _array_like_to_array$r(arr);
4601
4602
  }
4602
4603
  function _iterable_to_array$8(iter) {
4603
4604
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
@@ -4607,20 +4608,20 @@
4607
4608
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4608
4609
  }
4609
4610
  function _to_consumable_array$8(arr) {
4610
- return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$8();
4611
+ return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$8();
4611
4612
  }
4612
- function _unsupported_iterable_to_array$s(o, minLen) {
4613
+ function _unsupported_iterable_to_array$r(o, minLen) {
4613
4614
  if (!o)
4614
4615
  return;
4615
4616
  if (typeof o === "string")
4616
- return _array_like_to_array$s(o, minLen);
4617
+ return _array_like_to_array$r(o, minLen);
4617
4618
  var n = Object.prototype.toString.call(o).slice(8, -1);
4618
4619
  if (n === "Object" && o.constructor)
4619
4620
  n = o.constructor.name;
4620
4621
  if (n === "Map" || n === "Set")
4621
4622
  return Array.from(n);
4622
4623
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4623
- return _array_like_to_array$s(o, minLen);
4624
+ return _array_like_to_array$r(o, minLen);
4624
4625
  }
4625
4626
  var findCountryByCode = function(countryCode) {
4626
4627
  var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo;
@@ -4703,18 +4704,18 @@
4703
4704
  }
4704
4705
  return mask;
4705
4706
  };
4706
- function _array_like_to_array$r(arr, len) {
4707
+ function _array_like_to_array$q(arr, len) {
4707
4708
  if (len == null || len > arr.length)
4708
4709
  len = arr.length;
4709
4710
  for (var i = 0, arr2 = new Array(len); i < len; i++)
4710
4711
  arr2[i] = arr[i];
4711
4712
  return arr2;
4712
4713
  }
4713
- function _array_with_holes$q(arr) {
4714
+ function _array_with_holes$p(arr) {
4714
4715
  if (Array.isArray(arr))
4715
4716
  return arr;
4716
4717
  }
4717
- function _iterable_to_array_limit$q(arr, i) {
4718
+ function _iterable_to_array_limit$p(arr, i) {
4718
4719
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
4719
4720
  if (_i == null)
4720
4721
  return;
@@ -4742,24 +4743,24 @@
4742
4743
  }
4743
4744
  return _arr;
4744
4745
  }
4745
- function _non_iterable_rest$q() {
4746
+ function _non_iterable_rest$p() {
4746
4747
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4747
4748
  }
4748
- function _sliced_to_array$q(arr, i) {
4749
- return _array_with_holes$q(arr) || _iterable_to_array_limit$q(arr, i) || _unsupported_iterable_to_array$r(arr, i) || _non_iterable_rest$q();
4749
+ function _sliced_to_array$p(arr, i) {
4750
+ return _array_with_holes$p(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$p();
4750
4751
  }
4751
- function _unsupported_iterable_to_array$r(o, minLen) {
4752
+ function _unsupported_iterable_to_array$q(o, minLen) {
4752
4753
  if (!o)
4753
4754
  return;
4754
4755
  if (typeof o === "string")
4755
- return _array_like_to_array$r(o, minLen);
4756
+ return _array_like_to_array$q(o, minLen);
4756
4757
  var n = Object.prototype.toString.call(o).slice(8, -1);
4757
4758
  if (n === "Object" && o.constructor)
4758
4759
  n = o.constructor.name;
4759
4760
  if (n === "Map" || n === "Set")
4760
4761
  return Array.from(n);
4761
4762
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4762
- return _array_like_to_array$r(o, minLen);
4763
+ return _array_like_to_array$q(o, minLen);
4763
4764
  }
4764
4765
  var rgba = hexToRgba;
4765
4766
  var transformToKebab = function(string) {
@@ -4882,7 +4883,7 @@
4882
4883
  var addDataAttributes = function() {
4883
4884
  var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4884
4885
  return Object.fromEntries(Object.entries(data).map(function(param) {
4885
- var _param = _sliced_to_array$q(param, 2), key = _param[0], value = _param[1];
4886
+ var _param = _sliced_to_array$p(param, 2), key = _param[0], value = _param[1];
4886
4887
  return trueReactPlatformHelpers.isString(value) && trueReactPlatformHelpers.isStringNotEmpty(value) || trueReactPlatformHelpers.isNotEmpty(value) ? [
4887
4888
  "data-".concat(transformToKebab(key)),
4888
4889
  value
@@ -6408,7 +6409,7 @@
6408
6409
  }, [enabled, referenceElement, popperElement]);
6409
6410
  return popperState;
6410
6411
  }
6411
- function _array_like_to_array$q(arr, len) {
6412
+ function _array_like_to_array$p(arr, len) {
6412
6413
  if (len == null || len > arr.length)
6413
6414
  len = arr.length;
6414
6415
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -6417,7 +6418,7 @@
6417
6418
  }
6418
6419
  function _array_without_holes$7(arr) {
6419
6420
  if (Array.isArray(arr))
6420
- return _array_like_to_array$q(arr);
6421
+ return _array_like_to_array$p(arr);
6421
6422
  }
6422
6423
  function _define_property$_(obj, key, value) {
6423
6424
  if (key in obj) {
@@ -6455,20 +6456,20 @@
6455
6456
  return target;
6456
6457
  }
6457
6458
  function _to_consumable_array$7(arr) {
6458
- return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$7();
6459
+ return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$p(arr) || _non_iterable_spread$7();
6459
6460
  }
6460
- function _unsupported_iterable_to_array$q(o, minLen) {
6461
+ function _unsupported_iterable_to_array$p(o, minLen) {
6461
6462
  if (!o)
6462
6463
  return;
6463
6464
  if (typeof o === "string")
6464
- return _array_like_to_array$q(o, minLen);
6465
+ return _array_like_to_array$p(o, minLen);
6465
6466
  var n = Object.prototype.toString.call(o).slice(8, -1);
6466
6467
  if (n === "Object" && o.constructor)
6467
6468
  n = o.constructor.name;
6468
6469
  if (n === "Map" || n === "Set")
6469
6470
  return Array.from(n);
6470
6471
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
6471
- return _array_like_to_array$q(o, minLen);
6472
+ return _array_like_to_array$p(o, minLen);
6472
6473
  }
6473
6474
  var useDropdown = function(param) {
6474
6475
  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;
@@ -6810,10 +6811,11 @@
6810
6811
  check: {
6811
6812
  paths: [
6812
6813
  {
6813
- 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"
6814
+ 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"
6814
6815
  }
6815
6816
  ]
6816
6817
  },
6818
+ /** @deprecated */
6817
6819
  "check-big": {
6818
6820
  paths: [
6819
6821
  {
@@ -6825,17 +6827,8 @@
6825
6827
  viewBox: "0 0 20 20",
6826
6828
  paths: [
6827
6829
  {
6828
- d: "M3 10.5L5.92929 13.4293C5.96834 13.4683 6.03166 13.4683 6.07071 13.4293L13.5 6",
6829
- strokeWidth: 2,
6830
- strokeLinecap: "round",
6831
- stroke: "currentColor",
6832
- fill: "none"
6833
- },
6834
- {
6835
- 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",
6836
- fill: "currentColor",
6837
- stroke: "none",
6838
- fillRule: void 0
6830
+ 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",
6831
+ fillRule: "evenodd"
6839
6832
  }
6840
6833
  ]
6841
6834
  },
@@ -7153,7 +7146,7 @@
7153
7146
  minus: {
7154
7147
  paths: [
7155
7148
  {
7156
- d: "M16 11H4c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1z"
7149
+ d: "M16 11H4a1 1 0 1 1 0-2h12a1 1 0 1 1 0 2Z"
7157
7150
  }
7158
7151
  ]
7159
7152
  },
@@ -7727,7 +7720,8 @@
7727
7720
  0,
7728
7721
  ITEM_HORIZONTAL_PADDING$1
7729
7722
  ],
7730
- transition: "background-color 0.25s ease-in-out",
7723
+ transition: animations.defaultTransition,
7724
+ transitionProperty: "background-color",
7731
7725
  cursor: "pointer"
7732
7726
  },
7733
7727
  default: {},
@@ -7860,7 +7854,8 @@
7860
7854
  0,
7861
7855
  ITEM_HORIZONTAL_PADDING
7862
7856
  ],
7863
- transition: "background-color 0.25s ease-in-out",
7857
+ transition: animations.defaultTransition,
7858
+ transitionProperty: "background-color",
7864
7859
  cursor: "pointer"
7865
7860
  },
7866
7861
  disabledItem: {
@@ -8003,13 +7998,14 @@
8003
7998
  10
8004
7999
  ],
8005
8000
  fontSize: 14,
8006
- transition: "color 0.25s ease-in-out"
8001
+ transition: animations.defaultTransition,
8002
+ transitionProperty: "color"
8007
8003
  },
8008
8004
  accountNameOpened: {},
8009
8005
  accountChevron: {
8010
8006
  width: 16,
8011
8007
  height: 16,
8012
- transition: "ease-in-out 0.25s",
8008
+ transition: animations.defaultTransition,
8013
8009
  transitionProperty: "transform, color"
8014
8010
  },
8015
8011
  accountChevronOpened: {
@@ -8027,14 +8023,14 @@
8027
8023
  height: 32
8028
8024
  }
8029
8025
  }, animations.slideUp));
8030
- function _array_like_to_array$p(arr, len) {
8026
+ function _array_like_to_array$o(arr, len) {
8031
8027
  if (len == null || len > arr.length)
8032
8028
  len = arr.length;
8033
8029
  for (var i = 0, arr2 = new Array(len); i < len; i++)
8034
8030
  arr2[i] = arr[i];
8035
8031
  return arr2;
8036
8032
  }
8037
- function _array_with_holes$p(arr) {
8033
+ function _array_with_holes$o(arr) {
8038
8034
  if (Array.isArray(arr))
8039
8035
  return arr;
8040
8036
  }
@@ -8051,7 +8047,7 @@
8051
8047
  }
8052
8048
  return obj;
8053
8049
  }
8054
- function _iterable_to_array_limit$p(arr, i) {
8050
+ function _iterable_to_array_limit$o(arr, i) {
8055
8051
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8056
8052
  if (_i == null)
8057
8053
  return;
@@ -8079,7 +8075,7 @@
8079
8075
  }
8080
8076
  return _arr;
8081
8077
  }
8082
- function _non_iterable_rest$p() {
8078
+ function _non_iterable_rest$o() {
8083
8079
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8084
8080
  }
8085
8081
  function _object_spread$S(target) {
@@ -8121,21 +8117,21 @@
8121
8117
  }
8122
8118
  return target;
8123
8119
  }
8124
- function _sliced_to_array$p(arr, i) {
8125
- return _array_with_holes$p(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$p();
8120
+ function _sliced_to_array$o(arr, i) {
8121
+ return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$o();
8126
8122
  }
8127
- function _unsupported_iterable_to_array$p(o, minLen) {
8123
+ function _unsupported_iterable_to_array$o(o, minLen) {
8128
8124
  if (!o)
8129
8125
  return;
8130
8126
  if (typeof o === "string")
8131
- return _array_like_to_array$p(o, minLen);
8127
+ return _array_like_to_array$o(o, minLen);
8132
8128
  var n = Object.prototype.toString.call(o).slice(8, -1);
8133
8129
  if (n === "Object" && o.constructor)
8134
8130
  n = o.constructor.name;
8135
8131
  if (n === "Map" || n === "Set")
8136
8132
  return Array.from(n);
8137
8133
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
8138
- return _array_like_to_array$p(o, minLen);
8134
+ return _array_like_to_array$o(o, minLen);
8139
8135
  }
8140
8136
  var AccountInfo = function(param) {
8141
8137
  var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
@@ -8149,7 +8145,7 @@
8149
8145
  });
8150
8146
  var nameRef = React.useRef(null);
8151
8147
  var dropdownRef = React.useRef(null);
8152
- var _useState = _sliced_to_array$p(React.useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
8148
+ var _useState = _sliced_to_array$o(React.useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
8153
8149
  var toggleMenu = function(event) {
8154
8150
  event.stopPropagation();
8155
8151
  setIsMenuOpen(function(v) {
@@ -8543,7 +8539,7 @@
8543
8539
  cursor: "pointer",
8544
8540
  outline: "none",
8545
8541
  boxSizing: "border-box",
8546
- transition: "0.25s ease-in-out",
8542
+ transition: animations.defaultTransition,
8547
8543
  transitionProperty: "background-color, color, box-shadow, border-color",
8548
8544
  maxWidth: "100%",
8549
8545
  border: [
@@ -8815,6 +8811,8 @@
8815
8811
  gap: 14,
8816
8812
  width: "fit-content"
8817
8813
  },
8814
+ checked: {},
8815
+ invalid: {},
8818
8816
  disabled: {
8819
8817
  cursor: "default",
8820
8818
  pointerEvents: "none"
@@ -8839,22 +8837,10 @@
8839
8837
  justifyContent: "center",
8840
8838
  boxSizing: "border-box"
8841
8839
  },
8842
- checked: {},
8843
8840
  labelPositionLeft: {
8844
8841
  flexDirection: "row-reverse"
8845
8842
  }
8846
8843
  });
8847
- function _array_like_to_array$o(arr, len) {
8848
- if (len == null || len > arr.length)
8849
- len = arr.length;
8850
- for (var i = 0, arr2 = new Array(len); i < len; i++)
8851
- arr2[i] = arr[i];
8852
- return arr2;
8853
- }
8854
- function _array_with_holes$o(arr) {
8855
- if (Array.isArray(arr))
8856
- return arr;
8857
- }
8858
8844
  function _define_property$P(obj, key, value) {
8859
8845
  if (key in obj) {
8860
8846
  Object.defineProperty(obj, key, {
@@ -8868,37 +8854,6 @@
8868
8854
  }
8869
8855
  return obj;
8870
8856
  }
8871
- function _iterable_to_array_limit$o(arr, i) {
8872
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8873
- if (_i == null)
8874
- return;
8875
- var _arr = [];
8876
- var _n = true;
8877
- var _d = false;
8878
- var _s, _e;
8879
- try {
8880
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
8881
- _arr.push(_s.value);
8882
- if (i && _arr.length === i)
8883
- break;
8884
- }
8885
- } catch (err) {
8886
- _d = true;
8887
- _e = err;
8888
- } finally {
8889
- try {
8890
- if (!_n && _i["return"] != null)
8891
- _i["return"]();
8892
- } finally {
8893
- if (_d)
8894
- throw _e;
8895
- }
8896
- }
8897
- return _arr;
8898
- }
8899
- function _non_iterable_rest$o() {
8900
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8901
- }
8902
8857
  function _object_spread$O(target) {
8903
8858
  for (var i = 1; i < arguments.length; i++) {
8904
8859
  var source = arguments[i] != null ? arguments[i] : {};
@@ -8938,50 +8893,27 @@
8938
8893
  }
8939
8894
  return target;
8940
8895
  }
8941
- function _sliced_to_array$o(arr, i) {
8942
- return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$o(arr, i) || _non_iterable_rest$o();
8943
- }
8944
- function _unsupported_iterable_to_array$o(o, minLen) {
8945
- if (!o)
8946
- return;
8947
- if (typeof o === "string")
8948
- return _array_like_to_array$o(o, minLen);
8949
- var n = Object.prototype.toString.call(o).slice(8, -1);
8950
- if (n === "Object" && o.constructor)
8951
- n = o.constructor.name;
8952
- if (n === "Map" || n === "Set")
8953
- return Array.from(n);
8954
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
8955
- return _array_like_to_array$o(o, minLen);
8956
- }
8957
8896
  function Checkbox(param) {
8958
- 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;
8897
+ 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;
8959
8898
  var classes = useStyles$K({
8960
8899
  theme: tweakStyles
8961
8900
  });
8962
- var _useState = _sliced_to_array$o(React.useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
8963
8901
  var hasAction = !isDisabled && !isReadonly;
8902
+ var isSelected = isChecked || isSemiChecked;
8964
8903
  var onToggle = function(event) {
8965
- var isSelectedNext = !isSelected;
8966
- onSelect({
8904
+ return onSelect === null || onSelect === void 0 ? void 0 : onSelect({
8967
8905
  value,
8968
- isSelected: isSelectedNext
8906
+ isSelected: !isSelected
8969
8907
  }, event);
8970
- setIsSelected(isSelectedNext);
8971
8908
  };
8972
- React.useEffect(function() {
8973
- setIsSelected(isChecked);
8974
- }, [
8975
- isChecked
8976
- ]);
8977
8909
  var _obj;
8978
8910
  return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
8979
- className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
8911
+ 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))
8980
8912
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
8981
8913
  children: [
8982
8914
  /* @__PURE__ */ jsx("input", _object_spread$O({
8983
- type: "checkbox",
8984
8915
  className: classes.input,
8916
+ type: "checkbox",
8985
8917
  checked: isSelected,
8986
8918
  disabled: isDisabled,
8987
8919
  readOnly: isReadonly
@@ -8990,8 +8922,8 @@
8990
8922
  onKeyDown: trueReactPlatformHelpers.getSelectKeyHandler(onToggle)
8991
8923
  })),
8992
8924
  /* @__PURE__ */ jsx("div", {
8993
- className: clsx(classes.check, isSelected && classes.checked),
8994
- children: /* @__PURE__ */ jsx(Icon, {
8925
+ className: classes.check,
8926
+ children: isSelected && /* @__PURE__ */ jsx(Icon, {
8995
8927
  type: isSemiChecked ? "minus" : "check"
8996
8928
  })
8997
8929
  }),
@@ -9015,7 +8947,8 @@
9015
8947
  appearance: "none",
9016
8948
  backgroundColor: "transparent",
9017
8949
  cursor: "pointer",
9018
- transition: "background-color 0.25s ease-in-out",
8950
+ transition: animations.defaultTransition,
8951
+ transitionProperty: "background-color",
9019
8952
  "&:hover": {
9020
8953
  backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
9021
8954
  },
@@ -9277,7 +9210,7 @@
9277
9210
  width: "100%",
9278
9211
  height: dimensions.CONTROL_HEIGHT,
9279
9212
  boxSizing: "border-box",
9280
- transition: "0.25s ease-in-out",
9213
+ transition: animations.defaultTransition,
9281
9214
  transitionProperty: "border-color",
9282
9215
  backgroundColor: "white",
9283
9216
  position: "relative"
@@ -9297,7 +9230,7 @@
9297
9230
  outline: "none",
9298
9231
  boxSizing: "border-box",
9299
9232
  outlineStyle: "none",
9300
- transition: "0.25s ease-in-out",
9233
+ transition: animations.defaultTransition,
9301
9234
  transitionProperty: "background-color",
9302
9235
  border: "none",
9303
9236
  background: "none",
@@ -9383,7 +9316,7 @@
9383
9316
  top: "50%",
9384
9317
  transformOrigin: "top left",
9385
9318
  transform: "translateY(-50%)",
9386
- transition: "0.25s ease-in-out",
9319
+ transition: animations.defaultTransition,
9387
9320
  transitionProperty: "transform, color",
9388
9321
  fontSize: 16
9389
9322
  },
@@ -9492,7 +9425,8 @@
9492
9425
  4
9493
9426
  ],
9494
9427
  width: 20,
9495
- transition: "color 0.25s ease-in-out",
9428
+ transition: animations.defaultTransition,
9429
+ transitionProperty: "color",
9496
9430
  boxSizing: "content-box",
9497
9431
  "&:last-child": {
9498
9432
  paddingRight: 8
@@ -13322,7 +13256,8 @@
13322
13256
  width: 40,
13323
13257
  height: FILTER_HEIGHT,
13324
13258
  cursor: "pointer",
13325
- transition: "background-color 0.25s ease-in-out"
13259
+ transition: animations.defaultTransition,
13260
+ transitionProperty: "background-color"
13326
13261
  },
13327
13262
  settingsIcon: {
13328
13263
  width: 16,
@@ -14151,13 +14086,16 @@
14151
14086
  var handleClear = function() {
14152
14087
  onChange(void 0);
14153
14088
  };
14154
- var onSelect = function(val) {
14155
- var _chosenValues_filter;
14156
- handleSelectValue(val.isSelected ? _to_consumable_array$5(chosenValues !== null && chosenValues !== void 0 ? chosenValues : []).concat([
14157
- val.value
14158
- ]) : (_chosenValues_filter = chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.filter(function(v) {
14159
- return getValueId(v) !== getValueId(val.value);
14160
- })) !== null && _chosenValues_filter !== void 0 ? _chosenValues_filter : []);
14089
+ var onSelect = function(param2) {
14090
+ var checkboxValue = param2.value, isSelected = param2.isSelected;
14091
+ if (trueReactPlatformHelpers.isNotEmpty(checkboxValue)) {
14092
+ var _chosenValues_filter;
14093
+ handleSelectValue(isSelected ? _to_consumable_array$5(chosenValues !== null && chosenValues !== void 0 ? chosenValues : []).concat([
14094
+ checkboxValue
14095
+ ]) : (_chosenValues_filter = chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.filter(function(v) {
14096
+ return getValueId(v) !== getValueId(checkboxValue);
14097
+ })) !== null && _chosenValues_filter !== void 0 ? _chosenValues_filter : []);
14098
+ }
14161
14099
  };
14162
14100
  var handleKeyDown = function(event) {
14163
14101
  if (event.code === "Escape") {
@@ -14608,7 +14546,8 @@
14608
14546
  cursor: "pointer",
14609
14547
  fontSize: 14,
14610
14548
  minHeight: ITEM_HEIGHT,
14611
- transition: "background-color 0.25s ease-in-out",
14549
+ transition: animations.defaultTransition,
14550
+ transitionProperty: "background-color",
14612
14551
  boxSizing: "border-box"
14613
14552
  },
14614
14553
  option: {
@@ -17303,7 +17242,7 @@
17303
17242
  ],
17304
17243
  borderRadius: 18,
17305
17244
  paddingRight: 8,
17306
- transition: "0.25s ease-in-out",
17245
+ transition: animations.defaultTransition,
17307
17246
  transitionProperty: "background-color, border-color"
17308
17247
  },
17309
17248
  focused: {
@@ -17786,7 +17725,7 @@
17786
17725
  var useStyles$q = createThemedStyles("FilterWrapper", {
17787
17726
  root: {
17788
17727
  position: "relative",
17789
- transition: "0.25s ease-in-out",
17728
+ transition: animations.defaultTransition,
17790
17729
  transitionProperty: "background-color, border-color",
17791
17730
  border: [
17792
17731
  1,
@@ -24545,11 +24484,8 @@
24545
24484
  background: "transparent",
24546
24485
  pointerEvents: "none",
24547
24486
  zIndex: 1,
24548
- transition: [
24549
- "box-shadow",
24550
- "0.25s",
24551
- "ease-in-out"
24552
- ],
24487
+ transition: animations.defaultTransition,
24488
+ transitionProperty: "box-shadow",
24553
24489
  "[data-scrolled] &": {
24554
24490
  boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
24555
24491
  }
@@ -25322,7 +25258,7 @@
25322
25258
  cursor: "pointer",
25323
25259
  outline: "none",
25324
25260
  boxSizing: "border-box",
25325
- transition: "0.25s ease-in-out",
25261
+ transition: animations.defaultTransition,
25326
25262
  transitionProperty: "background-color, color, border-color",
25327
25263
  border: "none",
25328
25264
  position: "relative",
@@ -25525,7 +25461,8 @@
25525
25461
  border: "none",
25526
25462
  outline: "none",
25527
25463
  backgroundColor: colors.GREY_BACKGROUND,
25528
- transition: "background-color 0.25s ease-in-out",
25464
+ transition: animations.defaultTransition,
25465
+ transitionProperty: "background-color",
25529
25466
  color: colors.FONT_MEDIUM,
25530
25467
  cursor: "pointer",
25531
25468
  display: "flex",
@@ -26303,7 +26240,8 @@
26303
26240
  borderRadius: "50%",
26304
26241
  border: "none",
26305
26242
  cursor: "pointer",
26306
- transition: "background-color 0.25s ease-in-out",
26243
+ transition: animations.defaultTransition,
26244
+ transitionProperty: "background-color",
26307
26245
  "&$hasCircle": {
26308
26246
  backgroundColor: rgba(colors.GREY_HOVER, 0.5)
26309
26247
  },
@@ -27843,7 +27781,7 @@
27843
27781
  height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
27844
27782
  backgroundColor: colors.CLASSIC_WHITE,
27845
27783
  borderRadius: dimensions.BORDER_RADIUS_SMALL,
27846
- transition: "0.25s ease-in-out",
27784
+ transition: animations.defaultTransition,
27847
27785
  transitionProperty: "transform, width"
27848
27786
  },
27849
27787
  "&$invalid": {
@@ -27856,7 +27794,8 @@
27856
27794
  height: "100%",
27857
27795
  color: colors.FONT_MEDIUM,
27858
27796
  fontSize: 16,
27859
- transition: "color 0.25s ease-in-out",
27797
+ transition: animations.defaultTransition,
27798
+ transitionProperty: "color",
27860
27799
  background: "none",
27861
27800
  "&$s": {
27862
27801
  padding: [
@@ -28648,8 +28587,8 @@
28648
28587
  backgroundColor: "#333",
28649
28588
  borderRadius: 10,
28650
28589
  boxSizing: "border-box",
28590
+ transition: animations.defaultTransition,
28651
28591
  transitionProperty: "opacity, background-color",
28652
- transition: "0.25s ease-in-out",
28653
28592
  "&::before": {
28654
28593
  content: '""',
28655
28594
  position: "absolute",
@@ -28662,16 +28601,16 @@
28662
28601
  backgroundColor: "#fff",
28663
28602
  borderRadius: "50%",
28664
28603
  zIndex: 1,
28665
- transitionProperty: "left, background-color",
28666
- transition: "0.25s ease-in-out"
28604
+ transition: animations.defaultTransition,
28605
+ transitionProperty: "left, background-color"
28667
28606
  }
28668
28607
  },
28669
28608
  input: {
28670
28609
  display: "none"
28671
28610
  },
28672
28611
  label: {
28673
- transitionProperty: "opacity, color",
28674
- transition: "0.25s ease-in-out"
28612
+ transition: animations.defaultTransition,
28613
+ transitionProperty: "opacity, color"
28675
28614
  },
28676
28615
  labelLeft: {
28677
28616
  order: -1,
@@ -28781,7 +28720,7 @@
28781
28720
  width: "100%",
28782
28721
  flexGrow: 1,
28783
28722
  boxSizing: "border-box",
28784
- transition: "0.25s ease-in-out",
28723
+ transition: animations.defaultTransition,
28785
28724
  transitionProperty: "border-color",
28786
28725
  backgroundColor: "white",
28787
28726
  border: [
@@ -28803,7 +28742,7 @@
28803
28742
  PADDING_X,
28804
28743
  8
28805
28744
  ],
28806
- transition: "0.25s ease-in-out",
28745
+ transition: animations.defaultTransition,
28807
28746
  transitionProperty: "background-color",
28808
28747
  border: "none",
28809
28748
  resize: "none",
@@ -28855,7 +28794,7 @@
28855
28794
  top: PADDING_X * 2,
28856
28795
  transformOrigin: "top left",
28857
28796
  transform: "translateY(-50%)",
28858
- transition: "0.25s ease-in-out",
28797
+ transition: animations.defaultTransition,
28859
28798
  transitionProperty: "transform, color",
28860
28799
  fontSize: 16
28861
28800
  },
@@ -29125,7 +29064,8 @@
29125
29064
  borderRadius: 0,
29126
29065
  cursor: "pointer",
29127
29066
  outline: "none",
29128
- transition: "color 0.25s ease-in-out",
29067
+ transition: animations.defaultTransition,
29068
+ transitionProperty: "color",
29129
29069
  "&[disabled]": {
29130
29070
  cursor: "default",
29131
29071
  pointerEvents: "none"
@@ -29164,7 +29104,7 @@
29164
29104
  width: 24,
29165
29105
  height: 24,
29166
29106
  borderRadius: "50%",
29167
- transition: "0.25s ease-in-out",
29107
+ transition: animations.defaultTransition,
29168
29108
  transitionProperty: [
29169
29109
  "background",
29170
29110
  "color"
@@ -30375,7 +30315,8 @@
30375
30315
  borderRadius: "50%",
30376
30316
  border: "none",
30377
30317
  cursor: "pointer",
30378
- transition: "background-color 0.25s ease-in-out"
30318
+ transition: animations.defaultTransition,
30319
+ transitionProperty: "background-color"
30379
30320
  },
30380
30321
  icon: {
30381
30322
  width: 30,