react-native-ui-lib 7.45.0 → 7.46.0-snapshot.7284
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/package.json +1 -1
- package/src/components/button/Button.driver.new.d.ts +1 -0
- package/src/components/button/Button.driver.new.js +4 -0
- package/src/components/picker/Picker.driver.new.d.ts +1 -0
- package/src/components/textField/TextField.driver.new.d.ts +1 -0
- package/src/incubator/toast/Toast.driver.new.d.ts +1 -0
- package/src/style/borderRadiuses.d.ts +2 -0
- package/src/style/borderRadiuses.js +1 -0
- package/src/style/colors.d.ts +8 -4
- package/src/style/colorsPalette.js +1 -1
- package/src/style/designTokens.js +6 -8
package/package.json
CHANGED
|
@@ -30,4 +30,5 @@ export declare const ButtonDriver: (props: ComponentProps) => {
|
|
|
30
30
|
getLabelStyle: () => import("react-native").TextStyle;
|
|
31
31
|
getIconStyle: () => any;
|
|
32
32
|
getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
|
|
33
|
+
isDisabled: () => boolean;
|
|
33
34
|
};
|
|
@@ -25,12 +25,16 @@ export const ButtonDriver = props => {
|
|
|
25
25
|
const getStyle = () => {
|
|
26
26
|
return StyleSheet.flatten(driver.getElement().props.style);
|
|
27
27
|
};
|
|
28
|
+
const isDisabled = () => {
|
|
29
|
+
return !!driver.getElement().props.accessibilityState?.disabled;
|
|
30
|
+
};
|
|
28
31
|
return {
|
|
29
32
|
getStyle,
|
|
30
33
|
getLabel,
|
|
31
34
|
getLabelStyle,
|
|
32
35
|
getIconStyle,
|
|
33
36
|
getIcon,
|
|
37
|
+
isDisabled,
|
|
34
38
|
...driver
|
|
35
39
|
};
|
|
36
40
|
};
|
|
@@ -38,6 +38,7 @@ export declare const PickerDriver: (props: ComponentProps, useDialog: boolean) =
|
|
|
38
38
|
getLabelStyle: () => import("react-native/types").TextStyle;
|
|
39
39
|
getIconStyle: () => any;
|
|
40
40
|
getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
|
|
41
|
+
isDisabled: () => boolean;
|
|
41
42
|
};
|
|
42
43
|
selectItem: (testID: string) => void;
|
|
43
44
|
};
|
|
@@ -113,6 +113,7 @@ export declare const TextFieldDriver: (props: ComponentProps) => {
|
|
|
113
113
|
getLabelStyle: () => import("react-native").TextStyle;
|
|
114
114
|
getIconStyle: () => any;
|
|
115
115
|
getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
|
|
116
|
+
isDisabled: () => boolean;
|
|
116
117
|
};
|
|
117
118
|
press: () => void;
|
|
118
119
|
hasOnPress: () => boolean;
|
|
@@ -46,6 +46,7 @@ export declare const ToastDriver: (props: ComponentProps) => {
|
|
|
46
46
|
getLabelStyle: () => import("react-native/types").TextStyle;
|
|
47
47
|
getIconStyle: () => any;
|
|
48
48
|
getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
|
|
49
|
+
isDisabled: () => boolean;
|
|
49
50
|
};
|
|
50
51
|
getElement: () => import("react-test-renderer").ReactTestInstance;
|
|
51
52
|
queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
|
|
@@ -7,6 +7,7 @@ export declare const BorderRadiusesLiterals: {
|
|
|
7
7
|
br40: number;
|
|
8
8
|
br50: number;
|
|
9
9
|
br60: number;
|
|
10
|
+
br90: number;
|
|
10
11
|
br100: number;
|
|
11
12
|
};
|
|
12
13
|
export declare class BorderRadiuses {
|
|
@@ -21,6 +22,7 @@ declare const borderRadiusesInstance: BorderRadiuses & {
|
|
|
21
22
|
br40: number;
|
|
22
23
|
br50: number;
|
|
23
24
|
br60: number;
|
|
25
|
+
br90: number;
|
|
24
26
|
br100: number;
|
|
25
27
|
};
|
|
26
28
|
export default borderRadiusesInstance;
|
package/src/style/colors.d.ts
CHANGED
|
@@ -256,14 +256,18 @@ declare const colorObject: Colors & {
|
|
|
256
256
|
$outlineDisabledHeavy: string;
|
|
257
257
|
$outlineNeutral: string;
|
|
258
258
|
$outlineNeutralHeavy: string;
|
|
259
|
-
$outlinePrimary: string;
|
|
259
|
+
$outlinePrimary: string;
|
|
260
|
+
$outlinePrimaryMedium: string;
|
|
261
|
+
$outlineGeneral: string; /**
|
|
260
262
|
* Get app's current color scheme
|
|
261
263
|
*/
|
|
262
|
-
$outlinePrimaryMedium: string;
|
|
263
|
-
$outlineGeneral: string;
|
|
264
264
|
$outlineWarning: string;
|
|
265
265
|
$outlineDanger: string;
|
|
266
|
-
$outlineInverted: string;
|
|
266
|
+
$outlineInverted: string; /**
|
|
267
|
+
* Set color scheme for app
|
|
268
|
+
* arguments:
|
|
269
|
+
* scheme - color scheme e.g light/dark/default
|
|
270
|
+
*/
|
|
267
271
|
$black: string;
|
|
268
272
|
$white: string;
|
|
269
273
|
};
|
|
@@ -38,11 +38,10 @@ export default {
|
|
|
38
38
|
$textDefaultLight: colorsPalette.white,
|
|
39
39
|
$textPrimary: colorsPalette.violet30,
|
|
40
40
|
$textGeneral: colorsPalette.blue30,
|
|
41
|
-
$textSuccess: colorsPalette.
|
|
41
|
+
$textSuccess: colorsPalette.green5,
|
|
42
42
|
$textSuccessLight: colorsPalette.green30,
|
|
43
|
-
$textMajor: colorsPalette.
|
|
44
|
-
$textDanger: colorsPalette.
|
|
45
|
-
//textDangerLight should be deprecated
|
|
43
|
+
$textMajor: colorsPalette.orange5,
|
|
44
|
+
$textDanger: colorsPalette.red5,
|
|
46
45
|
$textDangerLight: colorsPalette.red10,
|
|
47
46
|
// ICON
|
|
48
47
|
$iconDefault: colorsPalette.grey10,
|
|
@@ -52,11 +51,10 @@ export default {
|
|
|
52
51
|
$iconPrimaryLight: colorsPalette.violet50,
|
|
53
52
|
$iconGeneral: colorsPalette.blue30,
|
|
54
53
|
$iconGeneralLight: colorsPalette.blue50,
|
|
55
|
-
$iconSuccess: colorsPalette.
|
|
54
|
+
$iconSuccess: colorsPalette.green5,
|
|
56
55
|
$iconSuccessLight: colorsPalette.green30,
|
|
57
|
-
$iconMajor: colorsPalette.
|
|
58
|
-
$iconDanger: colorsPalette.
|
|
59
|
-
//iconDangerLight should be deprecated
|
|
56
|
+
$iconMajor: colorsPalette.orange5,
|
|
57
|
+
$iconDanger: colorsPalette.red5,
|
|
60
58
|
$iconDangerLight: colorsPalette.red10,
|
|
61
59
|
$iconDisabled: colorsPalette.grey50,
|
|
62
60
|
// OUTLINE
|