@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
@@ -1,4 +1,4 @@
1
- import { createThemedStyles, ITweakStyles } from '../../theme';
1
+ import { animations, createThemedStyles, ITweakStyles } from '../../theme';
2
2
  import { IThemedPreloaderStyles } from '../ThemedPreloader';
3
3
 
4
4
  export const useStyles = createThemedStyles('TextButton', {
@@ -12,7 +12,8 @@ export const useStyles = createThemedStyles('TextButton', {
12
12
  borderRadius: 0,
13
13
  cursor: 'pointer',
14
14
  outline: 'none',
15
- transition: 'color 0.25s ease-in-out',
15
+ transition: animations.defaultTransition,
16
+ transitionProperty: 'color',
16
17
 
17
18
  '&[disabled]': {
18
19
  cursor: 'default',
@@ -65,7 +66,7 @@ export const useStyles = createThemedStyles('TextButton', {
65
66
  width: 24,
66
67
  height: 24,
67
68
  borderRadius: '50%',
68
- transition: '0.25s ease-in-out',
69
+ transition: animations.defaultTransition,
69
70
  transitionProperty: ['background', 'color'],
70
71
  },
71
72
 
@@ -118,6 +118,7 @@ const SLIDE_UP_POSITION_START = 15;
118
118
  const SLIDE_UP_POSITION_END = 0;
119
119
 
120
120
  export const animations = {
121
+ defaultTransition: '0.25s ease-in-out',
121
122
  // Если понадобится, сюда можно пробросить параметры через useTheme props
122
123
  slideUp: {
123
124
  'slide-up-enter': {
@@ -150,6 +151,7 @@ export interface ICommonUiKitTheme extends IUiKitTheme {
150
151
  colors: typeof colors;
151
152
  dimensions: typeof dimensions;
152
153
  helpers: typeof helpers;
154
+ animations: typeof animations;
153
155
  }
154
156
 
155
157
  export const common: ICommonUiKitTheme = {