@true-engineering/true-react-common-ui-kit 3.10.0 → 3.11.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 (27) hide show
  1. package/README.md +6 -0
  2. package/dist/theme/common.d.ts +2 -0
  3. package/dist/true-react-common-ui-kit.js +45 -35
  4. package/dist/true-react-common-ui-kit.js.map +1 -1
  5. package/dist/true-react-common-ui-kit.umd.cjs +45 -35
  6. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/AccountInfo/AccountInfo.styles.ts +3 -2
  9. package/src/components/Button/Button.styles.ts +2 -2
  10. package/src/components/CloseButton/CloseButton.styles.ts +3 -2
  11. package/src/components/FiltersPane/FiltersPane.styles.ts +3 -2
  12. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -2
  13. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +2 -2
  14. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
  15. package/src/components/FlexibleTable/FlexibleTable.styles.ts +3 -2
  16. package/src/components/IconButton/IconButton.styles.ts +2 -2
  17. package/src/components/IncrementInput/IncrementInput.styles.ts +3 -2
  18. package/src/components/Input/Input.styles.ts +6 -5
  19. package/src/components/List/List.styles.ts +3 -2
  20. package/src/components/List/components/ListItem/ListItem.styles.ts +3 -2
  21. package/src/components/MoreMenu/MoreMenu.styles.ts +3 -2
  22. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +3 -2
  23. package/src/components/Selector/Selector.styles.ts +4 -3
  24. package/src/components/Switch/Switch.styles.ts +4 -4
  25. package/src/components/TextArea/TextArea.styles.ts +4 -4
  26. package/src/components/TextButton/TextButton.styles.ts +4 -3
  27. 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": {
@@ -7727,7 +7728,8 @@
7727
7728
  0,
7728
7729
  ITEM_HORIZONTAL_PADDING$1
7729
7730
  ],
7730
- transition: "background-color 0.25s ease-in-out",
7731
+ transition: animations.defaultTransition,
7732
+ transitionProperty: "background-color",
7731
7733
  cursor: "pointer"
7732
7734
  },
7733
7735
  default: {},
@@ -7860,7 +7862,8 @@
7860
7862
  0,
7861
7863
  ITEM_HORIZONTAL_PADDING
7862
7864
  ],
7863
- transition: "background-color 0.25s ease-in-out",
7865
+ transition: animations.defaultTransition,
7866
+ transitionProperty: "background-color",
7864
7867
  cursor: "pointer"
7865
7868
  },
7866
7869
  disabledItem: {
@@ -8003,13 +8006,14 @@
8003
8006
  10
8004
8007
  ],
8005
8008
  fontSize: 14,
8006
- transition: "color 0.25s ease-in-out"
8009
+ transition: animations.defaultTransition,
8010
+ transitionProperty: "color"
8007
8011
  },
8008
8012
  accountNameOpened: {},
8009
8013
  accountChevron: {
8010
8014
  width: 16,
8011
8015
  height: 16,
8012
- transition: "ease-in-out 0.25s",
8016
+ transition: animations.defaultTransition,
8013
8017
  transitionProperty: "transform, color"
8014
8018
  },
8015
8019
  accountChevronOpened: {
@@ -8543,7 +8547,7 @@
8543
8547
  cursor: "pointer",
8544
8548
  outline: "none",
8545
8549
  boxSizing: "border-box",
8546
- transition: "0.25s ease-in-out",
8550
+ transition: animations.defaultTransition,
8547
8551
  transitionProperty: "background-color, color, box-shadow, border-color",
8548
8552
  maxWidth: "100%",
8549
8553
  border: [
@@ -9015,7 +9019,8 @@
9015
9019
  appearance: "none",
9016
9020
  backgroundColor: "transparent",
9017
9021
  cursor: "pointer",
9018
- transition: "background-color 0.25s ease-in-out",
9022
+ transition: animations.defaultTransition,
9023
+ transitionProperty: "background-color",
9019
9024
  "&:hover": {
9020
9025
  backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
9021
9026
  },
@@ -9277,7 +9282,7 @@
9277
9282
  width: "100%",
9278
9283
  height: dimensions.CONTROL_HEIGHT,
9279
9284
  boxSizing: "border-box",
9280
- transition: "0.25s ease-in-out",
9285
+ transition: animations.defaultTransition,
9281
9286
  transitionProperty: "border-color",
9282
9287
  backgroundColor: "white",
9283
9288
  position: "relative"
@@ -9297,7 +9302,7 @@
9297
9302
  outline: "none",
9298
9303
  boxSizing: "border-box",
9299
9304
  outlineStyle: "none",
9300
- transition: "0.25s ease-in-out",
9305
+ transition: animations.defaultTransition,
9301
9306
  transitionProperty: "background-color",
9302
9307
  border: "none",
9303
9308
  background: "none",
@@ -9383,7 +9388,7 @@
9383
9388
  top: "50%",
9384
9389
  transformOrigin: "top left",
9385
9390
  transform: "translateY(-50%)",
9386
- transition: "0.25s ease-in-out",
9391
+ transition: animations.defaultTransition,
9387
9392
  transitionProperty: "transform, color",
9388
9393
  fontSize: 16
9389
9394
  },
@@ -9492,7 +9497,8 @@
9492
9497
  4
9493
9498
  ],
9494
9499
  width: 20,
9495
- transition: "color 0.25s ease-in-out",
9500
+ transition: animations.defaultTransition,
9501
+ transitionProperty: "color",
9496
9502
  boxSizing: "content-box",
9497
9503
  "&:last-child": {
9498
9504
  paddingRight: 8
@@ -13322,7 +13328,8 @@
13322
13328
  width: 40,
13323
13329
  height: FILTER_HEIGHT,
13324
13330
  cursor: "pointer",
13325
- transition: "background-color 0.25s ease-in-out"
13331
+ transition: animations.defaultTransition,
13332
+ transitionProperty: "background-color"
13326
13333
  },
13327
13334
  settingsIcon: {
13328
13335
  width: 16,
@@ -14608,7 +14615,8 @@
14608
14615
  cursor: "pointer",
14609
14616
  fontSize: 14,
14610
14617
  minHeight: ITEM_HEIGHT,
14611
- transition: "background-color 0.25s ease-in-out",
14618
+ transition: animations.defaultTransition,
14619
+ transitionProperty: "background-color",
14612
14620
  boxSizing: "border-box"
14613
14621
  },
14614
14622
  option: {
@@ -17303,7 +17311,7 @@
17303
17311
  ],
17304
17312
  borderRadius: 18,
17305
17313
  paddingRight: 8,
17306
- transition: "0.25s ease-in-out",
17314
+ transition: animations.defaultTransition,
17307
17315
  transitionProperty: "background-color, border-color"
17308
17316
  },
17309
17317
  focused: {
@@ -17786,7 +17794,7 @@
17786
17794
  var useStyles$q = createThemedStyles("FilterWrapper", {
17787
17795
  root: {
17788
17796
  position: "relative",
17789
- transition: "0.25s ease-in-out",
17797
+ transition: animations.defaultTransition,
17790
17798
  transitionProperty: "background-color, border-color",
17791
17799
  border: [
17792
17800
  1,
@@ -24545,11 +24553,8 @@
24545
24553
  background: "transparent",
24546
24554
  pointerEvents: "none",
24547
24555
  zIndex: 1,
24548
- transition: [
24549
- "box-shadow",
24550
- "0.25s",
24551
- "ease-in-out"
24552
- ],
24556
+ transition: animations.defaultTransition,
24557
+ transitionProperty: "box-shadow",
24553
24558
  "[data-scrolled] &": {
24554
24559
  boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
24555
24560
  }
@@ -25322,7 +25327,7 @@
25322
25327
  cursor: "pointer",
25323
25328
  outline: "none",
25324
25329
  boxSizing: "border-box",
25325
- transition: "0.25s ease-in-out",
25330
+ transition: animations.defaultTransition,
25326
25331
  transitionProperty: "background-color, color, border-color",
25327
25332
  border: "none",
25328
25333
  position: "relative",
@@ -25525,7 +25530,8 @@
25525
25530
  border: "none",
25526
25531
  outline: "none",
25527
25532
  backgroundColor: colors.GREY_BACKGROUND,
25528
- transition: "background-color 0.25s ease-in-out",
25533
+ transition: animations.defaultTransition,
25534
+ transitionProperty: "background-color",
25529
25535
  color: colors.FONT_MEDIUM,
25530
25536
  cursor: "pointer",
25531
25537
  display: "flex",
@@ -26303,7 +26309,8 @@
26303
26309
  borderRadius: "50%",
26304
26310
  border: "none",
26305
26311
  cursor: "pointer",
26306
- transition: "background-color 0.25s ease-in-out",
26312
+ transition: animations.defaultTransition,
26313
+ transitionProperty: "background-color",
26307
26314
  "&$hasCircle": {
26308
26315
  backgroundColor: rgba(colors.GREY_HOVER, 0.5)
26309
26316
  },
@@ -27843,7 +27850,7 @@
27843
27850
  height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
27844
27851
  backgroundColor: colors.CLASSIC_WHITE,
27845
27852
  borderRadius: dimensions.BORDER_RADIUS_SMALL,
27846
- transition: "0.25s ease-in-out",
27853
+ transition: animations.defaultTransition,
27847
27854
  transitionProperty: "transform, width"
27848
27855
  },
27849
27856
  "&$invalid": {
@@ -27856,7 +27863,8 @@
27856
27863
  height: "100%",
27857
27864
  color: colors.FONT_MEDIUM,
27858
27865
  fontSize: 16,
27859
- transition: "color 0.25s ease-in-out",
27866
+ transition: animations.defaultTransition,
27867
+ transitionProperty: "color",
27860
27868
  background: "none",
27861
27869
  "&$s": {
27862
27870
  padding: [
@@ -28648,8 +28656,8 @@
28648
28656
  backgroundColor: "#333",
28649
28657
  borderRadius: 10,
28650
28658
  boxSizing: "border-box",
28659
+ transition: animations.defaultTransition,
28651
28660
  transitionProperty: "opacity, background-color",
28652
- transition: "0.25s ease-in-out",
28653
28661
  "&::before": {
28654
28662
  content: '""',
28655
28663
  position: "absolute",
@@ -28662,16 +28670,16 @@
28662
28670
  backgroundColor: "#fff",
28663
28671
  borderRadius: "50%",
28664
28672
  zIndex: 1,
28665
- transitionProperty: "left, background-color",
28666
- transition: "0.25s ease-in-out"
28673
+ transition: animations.defaultTransition,
28674
+ transitionProperty: "left, background-color"
28667
28675
  }
28668
28676
  },
28669
28677
  input: {
28670
28678
  display: "none"
28671
28679
  },
28672
28680
  label: {
28673
- transitionProperty: "opacity, color",
28674
- transition: "0.25s ease-in-out"
28681
+ transition: animations.defaultTransition,
28682
+ transitionProperty: "opacity, color"
28675
28683
  },
28676
28684
  labelLeft: {
28677
28685
  order: -1,
@@ -28781,7 +28789,7 @@
28781
28789
  width: "100%",
28782
28790
  flexGrow: 1,
28783
28791
  boxSizing: "border-box",
28784
- transition: "0.25s ease-in-out",
28792
+ transition: animations.defaultTransition,
28785
28793
  transitionProperty: "border-color",
28786
28794
  backgroundColor: "white",
28787
28795
  border: [
@@ -28803,7 +28811,7 @@
28803
28811
  PADDING_X,
28804
28812
  8
28805
28813
  ],
28806
- transition: "0.25s ease-in-out",
28814
+ transition: animations.defaultTransition,
28807
28815
  transitionProperty: "background-color",
28808
28816
  border: "none",
28809
28817
  resize: "none",
@@ -28855,7 +28863,7 @@
28855
28863
  top: PADDING_X * 2,
28856
28864
  transformOrigin: "top left",
28857
28865
  transform: "translateY(-50%)",
28858
- transition: "0.25s ease-in-out",
28866
+ transition: animations.defaultTransition,
28859
28867
  transitionProperty: "transform, color",
28860
28868
  fontSize: 16
28861
28869
  },
@@ -29125,7 +29133,8 @@
29125
29133
  borderRadius: 0,
29126
29134
  cursor: "pointer",
29127
29135
  outline: "none",
29128
- transition: "color 0.25s ease-in-out",
29136
+ transition: animations.defaultTransition,
29137
+ transitionProperty: "color",
29129
29138
  "&[disabled]": {
29130
29139
  cursor: "default",
29131
29140
  pointerEvents: "none"
@@ -29164,7 +29173,7 @@
29164
29173
  width: 24,
29165
29174
  height: 24,
29166
29175
  borderRadius: "50%",
29167
- transition: "0.25s ease-in-out",
29176
+ transition: animations.defaultTransition,
29168
29177
  transitionProperty: [
29169
29178
  "background",
29170
29179
  "color"
@@ -30375,7 +30384,8 @@
30375
30384
  borderRadius: "50%",
30376
30385
  border: "none",
30377
30386
  cursor: "pointer",
30378
- transition: "background-color 0.25s ease-in-out"
30387
+ transition: animations.defaultTransition,
30388
+ transitionProperty: "background-color"
30379
30389
  },
30380
30390
  icon: {
30381
30391
  width: 30,