@hero-design/rn 7.22.1 → 7.22.2
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/.turbo/turbo-build.log +2 -2
- package/es/index.js +42 -46
- package/lib/index.js +42 -46
- package/package.json +4 -4
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -18
- package/src/components/List/StyledBasicListItem.tsx +1 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -13
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +162 -1
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +3 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +4 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -36
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +17 -5
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +56 -98
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +16 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +52 -94
- package/src/components/TextInput/StyledTextInput.tsx +11 -16
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +3 -3
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +18 -36
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +55 -237
- package/src/components/TextInput/index.tsx +27 -27
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +4 -18
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -2
- package/src/theme/components/list.ts +5 -2
- package/src/theme/global/colors/swag.ts +1 -0
- package/src/theme/global/colors/types.ts +1 -0
- package/types/components/TextInput/StyledTextInput.d.ts +3 -9
- package/types/components/TextInput/index.d.ts +4 -4
- package/types/theme/components/list.d.ts +1 -0
- package/types/theme/global/colors/types.d.ts +1 -0
- package/types/theme/global/index.d.ts +1 -0
|
@@ -26,12 +26,16 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
26
26
|
style={
|
|
27
27
|
Array [
|
|
28
28
|
Object {
|
|
29
|
+
"borderColor": "#001f23",
|
|
30
|
+
"borderRadius": 8,
|
|
31
|
+
"borderWidth": 1,
|
|
29
32
|
"marginVertical": 8,
|
|
30
33
|
"width": "100%",
|
|
31
34
|
},
|
|
32
35
|
undefined,
|
|
33
36
|
]
|
|
34
37
|
}
|
|
38
|
+
themeVariant="filled"
|
|
35
39
|
>
|
|
36
40
|
<View
|
|
37
41
|
style={
|
|
@@ -45,24 +49,6 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
45
49
|
]
|
|
46
50
|
}
|
|
47
51
|
>
|
|
48
|
-
<View
|
|
49
|
-
style={
|
|
50
|
-
Array [
|
|
51
|
-
Object {
|
|
52
|
-
"borderColor": "#001f23",
|
|
53
|
-
"borderRadius": 8,
|
|
54
|
-
"borderWidth": 1,
|
|
55
|
-
"bottom": 0,
|
|
56
|
-
"left": 0,
|
|
57
|
-
"position": "absolute",
|
|
58
|
-
"right": 0,
|
|
59
|
-
"top": 0,
|
|
60
|
-
},
|
|
61
|
-
undefined,
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
themeVariant="filled"
|
|
65
|
-
/>
|
|
66
52
|
<View
|
|
67
53
|
pointerEvents="none"
|
|
68
54
|
style={
|
|
@@ -26,12 +26,16 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
26
26
|
style={
|
|
27
27
|
Array [
|
|
28
28
|
Object {
|
|
29
|
+
"borderColor": "#001f23",
|
|
30
|
+
"borderRadius": 8,
|
|
31
|
+
"borderWidth": 1,
|
|
29
32
|
"marginVertical": 8,
|
|
30
33
|
"width": "100%",
|
|
31
34
|
},
|
|
32
35
|
undefined,
|
|
33
36
|
]
|
|
34
37
|
}
|
|
38
|
+
themeVariant="filled"
|
|
35
39
|
>
|
|
36
40
|
<View
|
|
37
41
|
style={
|
|
@@ -45,24 +49,6 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
45
49
|
]
|
|
46
50
|
}
|
|
47
51
|
>
|
|
48
|
-
<View
|
|
49
|
-
style={
|
|
50
|
-
Array [
|
|
51
|
-
Object {
|
|
52
|
-
"borderColor": "#001f23",
|
|
53
|
-
"borderRadius": 8,
|
|
54
|
-
"borderWidth": 1,
|
|
55
|
-
"bottom": 0,
|
|
56
|
-
"left": 0,
|
|
57
|
-
"position": "absolute",
|
|
58
|
-
"right": 0,
|
|
59
|
-
"top": 0,
|
|
60
|
-
},
|
|
61
|
-
undefined,
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
themeVariant="filled"
|
|
65
|
-
/>
|
|
66
52
|
<View
|
|
67
53
|
pointerEvents="none"
|
|
68
54
|
style={
|
|
@@ -424,8 +424,8 @@ Object {
|
|
|
424
424
|
},
|
|
425
425
|
"list": Object {
|
|
426
426
|
"colors": Object {
|
|
427
|
-
"checkedListItemContainerBackground": "#
|
|
428
|
-
"highlightedListItemContainerBackground": "#
|
|
427
|
+
"checkedListItemContainerBackground": "#ECE8EF",
|
|
428
|
+
"highlightedListItemContainerBackground": "#ECE8EF",
|
|
429
429
|
"leadingStatus": Object {
|
|
430
430
|
"archived": "#bfc1c5",
|
|
431
431
|
"danger": "#e3602a",
|
|
@@ -441,6 +441,7 @@ Object {
|
|
|
441
441
|
"enabled": 1,
|
|
442
442
|
},
|
|
443
443
|
"radii": Object {
|
|
444
|
+
"basicItem": 4,
|
|
444
445
|
"card": 8,
|
|
445
446
|
"cardShadow": 4,
|
|
446
447
|
"leadingStatus": 999,
|
|
@@ -914,6 +915,7 @@ Object {
|
|
|
914
915
|
"__alpha__globalPrimary": "#001f23",
|
|
915
916
|
"__alpha__globalSecondary1": "#4d6265",
|
|
916
917
|
"__alpha__globalSecondary4": "#e6e9e9",
|
|
918
|
+
"__alpha__lightHighlightedSurface": "#ECE8EF",
|
|
917
919
|
"__alpha__primary1": "#401960",
|
|
918
920
|
"__alpha__primary2": "#c38cee",
|
|
919
921
|
"__alpha__secondary1": "#795e90",
|
|
@@ -2,8 +2,10 @@ import type { GlobalTheme } from '../global';
|
|
|
2
2
|
|
|
3
3
|
const getListTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
|
-
checkedListItemContainerBackground:
|
|
6
|
-
|
|
5
|
+
checkedListItemContainerBackground:
|
|
6
|
+
theme.colors.__alpha__lightHighlightedSurface,
|
|
7
|
+
highlightedListItemContainerBackground:
|
|
8
|
+
theme.colors.__alpha__lightHighlightedSurface,
|
|
7
9
|
listItemContainerBackground: theme.colors.platformBackground,
|
|
8
10
|
leadingStatus: {
|
|
9
11
|
danger: theme.colors.dangerMediumLight,
|
|
@@ -23,6 +25,7 @@ const getListTheme = (theme: GlobalTheme) => {
|
|
|
23
25
|
|
|
24
26
|
const radii = {
|
|
25
27
|
card: theme.radii.medium,
|
|
28
|
+
basicItem: theme.radii.base,
|
|
26
29
|
cardShadow: theme.radii.base,
|
|
27
30
|
leadingStatus: theme.radii.rounded,
|
|
28
31
|
};
|
|
@@ -73,6 +73,7 @@ const swagSystemPalette: SystemPalette = {
|
|
|
73
73
|
__alpha__secondary2: swagPalette.scarletGumLight50,
|
|
74
74
|
__alpha__secondary3: swagPalette.scarletGumLight80,
|
|
75
75
|
__alpha__secondary4: swagPalette.scarletGumLight90,
|
|
76
|
+
__alpha__lightHighlightedSurface: '#ECE8EF',
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
export default swagSystemPalette;
|
|
@@ -3,6 +3,8 @@ export declare type Variant = 'default' | 'filled' | 'focused' | 'disabled' | 'r
|
|
|
3
3
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: import("react").ElementType<any>;
|
|
6
|
+
} & {
|
|
7
|
+
themeVariant: Variant;
|
|
6
8
|
}, {}, {
|
|
7
9
|
ref?: import("react").Ref<View>;
|
|
8
10
|
}>;
|
|
@@ -68,14 +70,6 @@ declare const StyledTextInput: import("@emotion/native").StyledComponent<import(
|
|
|
68
70
|
}, {}, {
|
|
69
71
|
ref?: import("react").Ref<TextInput>;
|
|
70
72
|
}>;
|
|
71
|
-
declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
72
|
-
theme?: import("@emotion/react").Theme;
|
|
73
|
-
as?: import("react").ElementType<any>;
|
|
74
|
-
} & {
|
|
75
|
-
themeVariant: Variant;
|
|
76
|
-
}, {}, {
|
|
77
|
-
ref?: import("react").Ref<View>;
|
|
78
|
-
}>;
|
|
79
73
|
declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
80
74
|
theme?: import("@emotion/react").Theme;
|
|
81
75
|
as?: import("react").ElementType<any>;
|
|
@@ -100,4 +94,4 @@ declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").Styled
|
|
|
100
94
|
}, {}, {
|
|
101
95
|
ref?: import("react").Ref<View>;
|
|
102
96
|
}>;
|
|
103
|
-
export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer,
|
|
97
|
+
export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledErrorAndMaxLengthContainer, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from
|
|
3
|
-
import type { Variant } from
|
|
4
|
-
import type { IconName } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { Variant } from './StyledTextInput';
|
|
4
|
+
import type { IconName } from '../Icon';
|
|
5
5
|
export interface TextInputProps extends NativeTextInputProps {
|
|
6
6
|
/**
|
|
7
7
|
* Field label.
|
|
@@ -67,6 +67,7 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
67
67
|
__alpha__secondary2: string;
|
|
68
68
|
__alpha__secondary3: string;
|
|
69
69
|
__alpha__secondary4: string;
|
|
70
|
+
__alpha__lightHighlightedSurface: string;
|
|
70
71
|
};
|
|
71
72
|
fonts: import("./typography").Fonts;
|
|
72
73
|
fontSizes: import("./typography").FontSizes;
|