@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.
- package/README.md +16 -0
- package/dist/components/Checkbox/Checkbox.d.ts +8 -7
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/theme/common.d.ts +2 -0
- package/dist/true-react-common-ui-kit.js +102 -161
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +102 -161
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.styles.ts +3 -2
- package/src/components/Button/Button.styles.ts +2 -2
- package/src/components/Checkbox/Checkbox.stories.tsx +40 -14
- package/src/components/Checkbox/Checkbox.styles.ts +4 -2
- package/src/components/Checkbox/Checkbox.tsx +21 -25
- package/src/components/CloseButton/CloseButton.styles.ts +3 -2
- package/src/components/FiltersPane/FiltersPane.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +3 -2
- package/src/components/Icon/icons-list.ts +5 -13
- package/src/components/IconButton/IconButton.styles.ts +2 -2
- package/src/components/IncrementInput/IncrementInput.styles.ts +3 -2
- package/src/components/Input/Input.styles.ts +6 -5
- package/src/components/List/List.styles.ts +3 -2
- package/src/components/List/components/ListItem/ListItem.styles.ts +3 -2
- package/src/components/MoreMenu/MoreMenu.styles.ts +3 -2
- package/src/components/MultiSelectList/MultiSelectList.tsx +9 -6
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +3 -2
- package/src/components/Selector/Selector.styles.ts +4 -3
- package/src/components/Switch/Switch.styles.ts +4 -4
- package/src/components/TextArea/TextArea.styles.ts +4 -4
- package/src/components/TextButton/TextButton.styles.ts +4 -3
- 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:
|
|
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:
|
|
69
|
+
transition: animations.defaultTransition,
|
|
69
70
|
transitionProperty: ['background', 'color'],
|
|
70
71
|
},
|
|
71
72
|
|
package/src/theme/common.ts
CHANGED
|
@@ -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 = {
|