@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.
- package/README.md +6 -0
- package/dist/theme/common.d.ts +2 -0
- package/dist/true-react-common-ui-kit.js +45 -35
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +45 -35
- 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/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/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/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
package/README.md
CHANGED
package/dist/theme/common.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const helpers: {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
export declare const animations: {
|
|
70
|
+
defaultTransition: string;
|
|
70
71
|
slideUp: {
|
|
71
72
|
'slide-up-enter': {
|
|
72
73
|
opacity: number;
|
|
@@ -94,5 +95,6 @@ export interface ICommonUiKitTheme extends IUiKitTheme {
|
|
|
94
95
|
colors: typeof colors;
|
|
95
96
|
dimensions: typeof dimensions;
|
|
96
97
|
helpers: typeof helpers;
|
|
98
|
+
animations: typeof animations;
|
|
97
99
|
}
|
|
98
100
|
export declare const common: ICommonUiKitTheme;
|
|
@@ -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": {
|
|
@@ -7738,7 +7739,8 @@ var useStyles$S = createThemedStyles("ListItem", {
|
|
|
7738
7739
|
0,
|
|
7739
7740
|
ITEM_HORIZONTAL_PADDING$1
|
|
7740
7741
|
],
|
|
7741
|
-
transition:
|
|
7742
|
+
transition: animations.defaultTransition,
|
|
7743
|
+
transitionProperty: "background-color",
|
|
7742
7744
|
cursor: "pointer"
|
|
7743
7745
|
},
|
|
7744
7746
|
default: {},
|
|
@@ -7871,7 +7873,8 @@ var useStyles$R = createThemedStyles("List", {
|
|
|
7871
7873
|
0,
|
|
7872
7874
|
ITEM_HORIZONTAL_PADDING
|
|
7873
7875
|
],
|
|
7874
|
-
transition:
|
|
7876
|
+
transition: animations.defaultTransition,
|
|
7877
|
+
transitionProperty: "background-color",
|
|
7875
7878
|
cursor: "pointer"
|
|
7876
7879
|
},
|
|
7877
7880
|
disabledItem: {
|
|
@@ -8014,13 +8017,14 @@ var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
|
8014
8017
|
10
|
|
8015
8018
|
],
|
|
8016
8019
|
fontSize: 14,
|
|
8017
|
-
transition:
|
|
8020
|
+
transition: animations.defaultTransition,
|
|
8021
|
+
transitionProperty: "color"
|
|
8018
8022
|
},
|
|
8019
8023
|
accountNameOpened: {},
|
|
8020
8024
|
accountChevron: {
|
|
8021
8025
|
width: 16,
|
|
8022
8026
|
height: 16,
|
|
8023
|
-
transition:
|
|
8027
|
+
transition: animations.defaultTransition,
|
|
8024
8028
|
transitionProperty: "transform, color"
|
|
8025
8029
|
},
|
|
8026
8030
|
accountChevronOpened: {
|
|
@@ -8554,7 +8558,7 @@ var useStyles$L = createThemedStyles("Button", {
|
|
|
8554
8558
|
cursor: "pointer",
|
|
8555
8559
|
outline: "none",
|
|
8556
8560
|
boxSizing: "border-box",
|
|
8557
|
-
transition:
|
|
8561
|
+
transition: animations.defaultTransition,
|
|
8558
8562
|
transitionProperty: "background-color, color, box-shadow, border-color",
|
|
8559
8563
|
maxWidth: "100%",
|
|
8560
8564
|
border: [
|
|
@@ -9026,7 +9030,8 @@ var useStyles$J = createThemedStyles("CloseButton", {
|
|
|
9026
9030
|
appearance: "none",
|
|
9027
9031
|
backgroundColor: "transparent",
|
|
9028
9032
|
cursor: "pointer",
|
|
9029
|
-
transition:
|
|
9033
|
+
transition: animations.defaultTransition,
|
|
9034
|
+
transitionProperty: "background-color",
|
|
9030
9035
|
"&:hover": {
|
|
9031
9036
|
backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
|
|
9032
9037
|
},
|
|
@@ -9288,7 +9293,7 @@ var useStyles$G = createThemedStyles("Input", {
|
|
|
9288
9293
|
width: "100%",
|
|
9289
9294
|
height: dimensions.CONTROL_HEIGHT,
|
|
9290
9295
|
boxSizing: "border-box",
|
|
9291
|
-
transition:
|
|
9296
|
+
transition: animations.defaultTransition,
|
|
9292
9297
|
transitionProperty: "border-color",
|
|
9293
9298
|
backgroundColor: "white",
|
|
9294
9299
|
position: "relative"
|
|
@@ -9308,7 +9313,7 @@ var useStyles$G = createThemedStyles("Input", {
|
|
|
9308
9313
|
outline: "none",
|
|
9309
9314
|
boxSizing: "border-box",
|
|
9310
9315
|
outlineStyle: "none",
|
|
9311
|
-
transition:
|
|
9316
|
+
transition: animations.defaultTransition,
|
|
9312
9317
|
transitionProperty: "background-color",
|
|
9313
9318
|
border: "none",
|
|
9314
9319
|
background: "none",
|
|
@@ -9394,7 +9399,7 @@ var useStyles$G = createThemedStyles("Input", {
|
|
|
9394
9399
|
top: "50%",
|
|
9395
9400
|
transformOrigin: "top left",
|
|
9396
9401
|
transform: "translateY(-50%)",
|
|
9397
|
-
transition:
|
|
9402
|
+
transition: animations.defaultTransition,
|
|
9398
9403
|
transitionProperty: "transform, color",
|
|
9399
9404
|
fontSize: 16
|
|
9400
9405
|
},
|
|
@@ -9503,7 +9508,8 @@ var useStyles$G = createThemedStyles("Input", {
|
|
|
9503
9508
|
4
|
|
9504
9509
|
],
|
|
9505
9510
|
width: 20,
|
|
9506
|
-
transition:
|
|
9511
|
+
transition: animations.defaultTransition,
|
|
9512
|
+
transitionProperty: "color",
|
|
9507
9513
|
boxSizing: "content-box",
|
|
9508
9514
|
"&:last-child": {
|
|
9509
9515
|
paddingRight: 8
|
|
@@ -13333,7 +13339,8 @@ var useStyles$y = createThemedStyles("FiltersPane", {
|
|
|
13333
13339
|
width: 40,
|
|
13334
13340
|
height: FILTER_HEIGHT,
|
|
13335
13341
|
cursor: "pointer",
|
|
13336
|
-
transition:
|
|
13342
|
+
transition: animations.defaultTransition,
|
|
13343
|
+
transitionProperty: "background-color"
|
|
13337
13344
|
},
|
|
13338
13345
|
settingsIcon: {
|
|
13339
13346
|
width: 16,
|
|
@@ -14619,7 +14626,8 @@ var useStyles$v = createThemedStyles("FilterSelect", {
|
|
|
14619
14626
|
cursor: "pointer",
|
|
14620
14627
|
fontSize: 14,
|
|
14621
14628
|
minHeight: ITEM_HEIGHT,
|
|
14622
|
-
transition:
|
|
14629
|
+
transition: animations.defaultTransition,
|
|
14630
|
+
transitionProperty: "background-color",
|
|
14623
14631
|
boxSizing: "border-box"
|
|
14624
14632
|
},
|
|
14625
14633
|
option: {
|
|
@@ -17314,7 +17322,7 @@ var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
|
17314
17322
|
],
|
|
17315
17323
|
borderRadius: 18,
|
|
17316
17324
|
paddingRight: 8,
|
|
17317
|
-
transition:
|
|
17325
|
+
transition: animations.defaultTransition,
|
|
17318
17326
|
transitionProperty: "background-color, border-color"
|
|
17319
17327
|
},
|
|
17320
17328
|
focused: {
|
|
@@ -17797,7 +17805,7 @@ function FilterValueView(param) {
|
|
|
17797
17805
|
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17798
17806
|
root: {
|
|
17799
17807
|
position: "relative",
|
|
17800
|
-
transition:
|
|
17808
|
+
transition: animations.defaultTransition,
|
|
17801
17809
|
transitionProperty: "background-color, border-color",
|
|
17802
17810
|
border: [
|
|
17803
17811
|
1,
|
|
@@ -24556,11 +24564,8 @@ var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
|
24556
24564
|
background: "transparent",
|
|
24557
24565
|
pointerEvents: "none",
|
|
24558
24566
|
zIndex: 1,
|
|
24559
|
-
transition:
|
|
24560
|
-
|
|
24561
|
-
"0.25s",
|
|
24562
|
-
"ease-in-out"
|
|
24563
|
-
],
|
|
24567
|
+
transition: animations.defaultTransition,
|
|
24568
|
+
transitionProperty: "box-shadow",
|
|
24564
24569
|
"[data-scrolled] &": {
|
|
24565
24570
|
boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
|
|
24566
24571
|
}
|
|
@@ -25333,7 +25338,7 @@ var useStyles$k = createThemedStyles("IconButton", {
|
|
|
25333
25338
|
cursor: "pointer",
|
|
25334
25339
|
outline: "none",
|
|
25335
25340
|
boxSizing: "border-box",
|
|
25336
|
-
transition:
|
|
25341
|
+
transition: animations.defaultTransition,
|
|
25337
25342
|
transitionProperty: "background-color, color, border-color",
|
|
25338
25343
|
border: "none",
|
|
25339
25344
|
position: "relative",
|
|
@@ -25536,7 +25541,8 @@ var useStyles$j = createThemedStyles("IncrementInput", {
|
|
|
25536
25541
|
border: "none",
|
|
25537
25542
|
outline: "none",
|
|
25538
25543
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
25539
|
-
transition:
|
|
25544
|
+
transition: animations.defaultTransition,
|
|
25545
|
+
transitionProperty: "background-color",
|
|
25540
25546
|
color: colors.FONT_MEDIUM,
|
|
25541
25547
|
cursor: "pointer",
|
|
25542
25548
|
display: "flex",
|
|
@@ -26314,7 +26320,8 @@ var useStyles$h = createThemedStyles("MoreMenu", {
|
|
|
26314
26320
|
borderRadius: "50%",
|
|
26315
26321
|
border: "none",
|
|
26316
26322
|
cursor: "pointer",
|
|
26317
|
-
transition:
|
|
26323
|
+
transition: animations.defaultTransition,
|
|
26324
|
+
transitionProperty: "background-color",
|
|
26318
26325
|
"&$hasCircle": {
|
|
26319
26326
|
backgroundColor: rgba(colors.GREY_HOVER, 0.5)
|
|
26320
26327
|
},
|
|
@@ -27854,7 +27861,7 @@ var useStyles$a = createThemedStyles("Selector", {
|
|
|
27854
27861
|
height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
|
|
27855
27862
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
27856
27863
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
27857
|
-
transition:
|
|
27864
|
+
transition: animations.defaultTransition,
|
|
27858
27865
|
transitionProperty: "transform, width"
|
|
27859
27866
|
},
|
|
27860
27867
|
"&$invalid": {
|
|
@@ -27867,7 +27874,8 @@ var useStyles$a = createThemedStyles("Selector", {
|
|
|
27867
27874
|
height: "100%",
|
|
27868
27875
|
color: colors.FONT_MEDIUM,
|
|
27869
27876
|
fontSize: 16,
|
|
27870
|
-
transition:
|
|
27877
|
+
transition: animations.defaultTransition,
|
|
27878
|
+
transitionProperty: "color",
|
|
27871
27879
|
background: "none",
|
|
27872
27880
|
"&$s": {
|
|
27873
27881
|
padding: [
|
|
@@ -28659,8 +28667,8 @@ var useStyles$8 = createThemedStyles("Switch", {
|
|
|
28659
28667
|
backgroundColor: "#333",
|
|
28660
28668
|
borderRadius: 10,
|
|
28661
28669
|
boxSizing: "border-box",
|
|
28670
|
+
transition: animations.defaultTransition,
|
|
28662
28671
|
transitionProperty: "opacity, background-color",
|
|
28663
|
-
transition: "0.25s ease-in-out",
|
|
28664
28672
|
"&::before": {
|
|
28665
28673
|
content: '""',
|
|
28666
28674
|
position: "absolute",
|
|
@@ -28673,16 +28681,16 @@ var useStyles$8 = createThemedStyles("Switch", {
|
|
|
28673
28681
|
backgroundColor: "#fff",
|
|
28674
28682
|
borderRadius: "50%",
|
|
28675
28683
|
zIndex: 1,
|
|
28676
|
-
|
|
28677
|
-
|
|
28684
|
+
transition: animations.defaultTransition,
|
|
28685
|
+
transitionProperty: "left, background-color"
|
|
28678
28686
|
}
|
|
28679
28687
|
},
|
|
28680
28688
|
input: {
|
|
28681
28689
|
display: "none"
|
|
28682
28690
|
},
|
|
28683
28691
|
label: {
|
|
28684
|
-
|
|
28685
|
-
|
|
28692
|
+
transition: animations.defaultTransition,
|
|
28693
|
+
transitionProperty: "opacity, color"
|
|
28686
28694
|
},
|
|
28687
28695
|
labelLeft: {
|
|
28688
28696
|
order: -1,
|
|
@@ -28792,7 +28800,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28792
28800
|
width: "100%",
|
|
28793
28801
|
flexGrow: 1,
|
|
28794
28802
|
boxSizing: "border-box",
|
|
28795
|
-
transition:
|
|
28803
|
+
transition: animations.defaultTransition,
|
|
28796
28804
|
transitionProperty: "border-color",
|
|
28797
28805
|
backgroundColor: "white",
|
|
28798
28806
|
border: [
|
|
@@ -28814,7 +28822,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28814
28822
|
PADDING_X,
|
|
28815
28823
|
8
|
|
28816
28824
|
],
|
|
28817
|
-
transition:
|
|
28825
|
+
transition: animations.defaultTransition,
|
|
28818
28826
|
transitionProperty: "background-color",
|
|
28819
28827
|
border: "none",
|
|
28820
28828
|
resize: "none",
|
|
@@ -28866,7 +28874,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28866
28874
|
top: PADDING_X * 2,
|
|
28867
28875
|
transformOrigin: "top left",
|
|
28868
28876
|
transform: "translateY(-50%)",
|
|
28869
|
-
transition:
|
|
28877
|
+
transition: animations.defaultTransition,
|
|
28870
28878
|
transitionProperty: "transform, color",
|
|
28871
28879
|
fontSize: 16
|
|
28872
28880
|
},
|
|
@@ -29136,7 +29144,8 @@ var useStyles$6 = createThemedStyles("TextButton", {
|
|
|
29136
29144
|
borderRadius: 0,
|
|
29137
29145
|
cursor: "pointer",
|
|
29138
29146
|
outline: "none",
|
|
29139
|
-
transition:
|
|
29147
|
+
transition: animations.defaultTransition,
|
|
29148
|
+
transitionProperty: "color",
|
|
29140
29149
|
"&[disabled]": {
|
|
29141
29150
|
cursor: "default",
|
|
29142
29151
|
pointerEvents: "none"
|
|
@@ -29175,7 +29184,7 @@ var useStyles$6 = createThemedStyles("TextButton", {
|
|
|
29175
29184
|
width: 24,
|
|
29176
29185
|
height: 24,
|
|
29177
29186
|
borderRadius: "50%",
|
|
29178
|
-
transition:
|
|
29187
|
+
transition: animations.defaultTransition,
|
|
29179
29188
|
transitionProperty: [
|
|
29180
29189
|
"background",
|
|
29181
29190
|
"color"
|
|
@@ -30386,7 +30395,8 @@ var useStyles = createThemedStyles("NewMoreMenu", {
|
|
|
30386
30395
|
borderRadius: "50%",
|
|
30387
30396
|
border: "none",
|
|
30388
30397
|
cursor: "pointer",
|
|
30389
|
-
transition:
|
|
30398
|
+
transition: animations.defaultTransition,
|
|
30399
|
+
transitionProperty: "background-color"
|
|
30390
30400
|
},
|
|
30391
30401
|
icon: {
|
|
30392
30402
|
width: 30,
|