@hero-design/rn 8.68.0 → 8.69.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +15 -0
- package/es/index.js +248 -89
- package/lib/index.js +248 -88
- package/package.json +2 -2
- package/src/components/BottomSheet/Header.tsx +50 -27
- package/src/components/BottomSheet/StyledBottomSheet.tsx +35 -8
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +352 -1
- package/src/components/BottomSheet/__tests__/index.spec.tsx +30 -0
- package/src/components/BottomSheet/index.tsx +47 -30
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
- package/src/components/Progress/ProgressStep.tsx +87 -0
- package/src/components/Progress/StyledStep.tsx +48 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +209 -0
- package/src/components/Progress/__tests__/index.spec.js +26 -0
- package/src/components/Progress/index.tsx +6 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -0
- package/src/theme/components/bottomSheet.ts +7 -0
- package/src/theme/components/progress.ts +11 -1
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +50 -0
- package/src/theme/global/colors/__tests__/swagLightJobs.spec.ts +7 -0
- package/src/theme/global/colors/swagLight.ts +7 -8
- package/src/theme/global/colors/swagLightJobs.ts +11 -0
- package/src/theme/global/colors/types.ts +4 -0
- package/src/theme/global/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/stats/8.69.0/rn-stats.html +4842 -0
- package/types/components/BottomSheet/Header.d.ts +3 -2
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +16 -2
- package/types/components/BottomSheet/index.d.ts +5 -1
- package/types/components/Box/StyledBox.d.ts +1 -1
- package/types/components/Progress/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledStep.d.ts +21 -0
- package/types/components/Progress/index.d.ts +1 -0
- package/types/index.d.ts +2 -2
- package/types/theme/components/bottomSheet.d.ts +7 -0
- package/types/theme/components/progress.d.ts +9 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +4 -1
- package/types/theme/index.d.ts +2 -2
|
@@ -37,19 +37,29 @@ const getProgressTheme = (theme: GlobalTheme) => {
|
|
|
37
37
|
infoInverted: theme.colors.mutedInfo,
|
|
38
38
|
archivedInverted: theme.colors.mutedArchived,
|
|
39
39
|
},
|
|
40
|
+
step: {
|
|
41
|
+
complete: theme.colors.primary,
|
|
42
|
+
incomplete: theme.colors.archivedSurface,
|
|
43
|
+
current: '#DACCE4',
|
|
44
|
+
},
|
|
40
45
|
};
|
|
41
46
|
|
|
42
47
|
const sizes = {
|
|
43
48
|
circleDiameter: theme.sizes['6xlarge'],
|
|
44
49
|
circleCompletenessHeight: theme.sizes.small,
|
|
45
50
|
barHeight: theme.sizes.small,
|
|
51
|
+
stepHeight: theme.sizes.small,
|
|
46
52
|
};
|
|
47
53
|
|
|
48
54
|
const radii = {
|
|
49
55
|
default: theme.radii.rounded,
|
|
50
56
|
};
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
const space = {
|
|
59
|
+
stepGap: theme.space.xsmall,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return { colors, sizes, radii, space };
|
|
53
63
|
};
|
|
54
64
|
|
|
55
65
|
export default getProgressTheme;
|
|
@@ -5,15 +5,15 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
5
5
|
"archived": "#abacaf",
|
|
6
6
|
"archivedSurface": "#dadbde",
|
|
7
7
|
"darkGlobalSurface": "#001f23",
|
|
8
|
-
"decorativePrimary": "#
|
|
9
|
-
"decorativePrimarySurface": "#
|
|
8
|
+
"decorativePrimary": "#fdfbff",
|
|
9
|
+
"decorativePrimarySurface": "#dacce4",
|
|
10
10
|
"defaultGlobalSurface": "#ffffff",
|
|
11
|
-
"defaultSurface": "#
|
|
11
|
+
"defaultSurface": "#fdfbff",
|
|
12
12
|
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
13
13
|
"disabledOutline": "#bfc1c5",
|
|
14
14
|
"error": "#f46363",
|
|
15
15
|
"errorSurface": "#fcebe7",
|
|
16
|
-
"highlightedSurface": "#
|
|
16
|
+
"highlightedSurface": "#f1e9fb",
|
|
17
17
|
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
18
18
|
"inactiveOutline": "#808f91",
|
|
19
19
|
"info": "#b5c3fd",
|
|
@@ -30,15 +30,15 @@ exports[`swagDark returns correct theme object 1`] = `
|
|
|
30
30
|
"onDefaultGlobalSurface": "#001f23",
|
|
31
31
|
"onErrorSurface": "#cb300a",
|
|
32
32
|
"onInfoSurface": "#355bfb",
|
|
33
|
-
"onPrimary": "#
|
|
33
|
+
"onPrimary": "#fdfbff",
|
|
34
34
|
"onSecondary": "#ffffff",
|
|
35
35
|
"onSuccessSurface": "#017d6d",
|
|
36
36
|
"onWarningSurface": "#ac5d00",
|
|
37
37
|
"overlayGlobalSurface": "#000000",
|
|
38
38
|
"pressedSurface": "#380060",
|
|
39
|
-
"primary": "#
|
|
39
|
+
"primary": "#460078",
|
|
40
40
|
"primaryOutline": "#001f23",
|
|
41
|
-
"secondary": "#
|
|
41
|
+
"secondary": "#b382fd",
|
|
42
42
|
"secondaryOutline": "#e8e9ea",
|
|
43
43
|
"success": "#5ace7d",
|
|
44
44
|
"successSurface": "#f0fef4",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`swagLightJobs returns correct theme object 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"archived": "#abacaf",
|
|
6
|
+
"archivedSurface": "#dadbde",
|
|
7
|
+
"darkGlobalSurface": "#001f23",
|
|
8
|
+
"decorativePrimary": "#fdfbff",
|
|
9
|
+
"decorativePrimarySurface": "#dacce4",
|
|
10
|
+
"decorativeSecondary": "#fdfbff",
|
|
11
|
+
"decorativeSecondarySurface": "#d9f6ff",
|
|
12
|
+
"defaultGlobalSurface": "#ffffff",
|
|
13
|
+
"defaultSurface": "#fdfbff",
|
|
14
|
+
"disabledOnDefaultGlobalSurface": "#bfc1c5",
|
|
15
|
+
"disabledOutline": "#bfc1c5",
|
|
16
|
+
"error": "#f46363",
|
|
17
|
+
"errorSurface": "#fcebe7",
|
|
18
|
+
"highlightedSurface": "#f1e9fb",
|
|
19
|
+
"inactiveOnDefaultGlobalSurface": "#808f91",
|
|
20
|
+
"inactiveOutline": "#808f91",
|
|
21
|
+
"info": "#b5c3fd",
|
|
22
|
+
"infoSurface": "#ecf0ff",
|
|
23
|
+
"mutedArchived": "#bcbdbf",
|
|
24
|
+
"mutedError": "#f68282",
|
|
25
|
+
"mutedInfo": "#c4cffd",
|
|
26
|
+
"mutedOnDefaultGlobalSurface": "#4d6265",
|
|
27
|
+
"mutedSuccess": "#7bd897",
|
|
28
|
+
"mutedWarning": "#ffcb8d",
|
|
29
|
+
"neutralGlobalSurface": "#f6f6f7",
|
|
30
|
+
"onArchivedSurface": "#606065",
|
|
31
|
+
"onDarkGlobalSurface": "#ffffff",
|
|
32
|
+
"onDefaultGlobalSurface": "#001f23",
|
|
33
|
+
"onErrorSurface": "#cb300a",
|
|
34
|
+
"onInfoSurface": "#355bfb",
|
|
35
|
+
"onPrimary": "#fdfbff",
|
|
36
|
+
"onSecondary": "#460078",
|
|
37
|
+
"onSuccessSurface": "#017d6d",
|
|
38
|
+
"onWarningSurface": "#ac5d00",
|
|
39
|
+
"overlayGlobalSurface": "#000000",
|
|
40
|
+
"pressedSurface": "#380060",
|
|
41
|
+
"primary": "#460078",
|
|
42
|
+
"primaryOutline": "#001f23",
|
|
43
|
+
"secondary": "#40d1ff",
|
|
44
|
+
"secondaryOutline": "#e8e9ea",
|
|
45
|
+
"success": "#5ace7d",
|
|
46
|
+
"successSurface": "#f0fef4",
|
|
47
|
+
"warning": "#ffbe71",
|
|
48
|
+
"warningSurface": "#fff6eb",
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
@@ -3,16 +3,15 @@ import type { SystemPalette, BrandSystemPalette } from './types';
|
|
|
3
3
|
import globalPalette from './global';
|
|
4
4
|
|
|
5
5
|
const swagBrandSystemPallete: BrandSystemPalette = {
|
|
6
|
-
primary:
|
|
7
|
-
onPrimary: '#
|
|
8
|
-
secondary: '#
|
|
6
|
+
primary: '#460078',
|
|
7
|
+
onPrimary: '#fdfbff',
|
|
8
|
+
secondary: '#b382fd',
|
|
9
9
|
onSecondary: palette.white,
|
|
10
|
-
defaultSurface: '#
|
|
11
|
-
highlightedSurface:
|
|
10
|
+
defaultSurface: '#fdfbff',
|
|
11
|
+
highlightedSurface: palette.violetLight90,
|
|
12
12
|
pressedSurface: '#380060',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
decorativePrimarySurface: '#B382FD',
|
|
13
|
+
decorativePrimary: '#fdfbff',
|
|
14
|
+
decorativePrimarySurface: '#dacce4',
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
const swagSystemPalette: SystemPalette = {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import swagLightSystemPalette from './swagLight';
|
|
2
|
+
|
|
3
|
+
const swagLightJobsSystemPalette = {
|
|
4
|
+
...swagLightSystemPalette,
|
|
5
|
+
secondary: '#40d1ff',
|
|
6
|
+
onSecondary: '#460078',
|
|
7
|
+
decorativeSecondary: '#fdfbff',
|
|
8
|
+
decorativeSecondarySurface: '#d9f6ff',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default swagLightJobsSystemPalette;
|
|
@@ -54,6 +54,10 @@ export type BrandSystemPalette = {
|
|
|
54
54
|
decorativePrimary: string;
|
|
55
55
|
decorativePrimarySurface: string;
|
|
56
56
|
// End of Updated 14 / Nov / 22
|
|
57
|
+
|
|
58
|
+
// Updated 19 / Nov / 24
|
|
59
|
+
decorativeSecondary?: string;
|
|
60
|
+
decorativeSecondarySurface?: string;
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
export type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
@@ -2,6 +2,7 @@ import { scale as defaultScale } from './scale';
|
|
|
2
2
|
import swagSystemPalette from './colors/swag';
|
|
3
3
|
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
4
|
import swagLightSystemPalette from './colors/swagLight';
|
|
5
|
+
import swagLightJobsSystemPalette from './colors/swagLightJobs';
|
|
5
6
|
import workSystemPalette from './colors/work';
|
|
6
7
|
import jobsSystemPalette from './colors/jobs';
|
|
7
8
|
import walletSystemPalette from './colors/wallet';
|
|
@@ -49,6 +50,7 @@ export {
|
|
|
49
50
|
defaultScale,
|
|
50
51
|
swagSystemPalette,
|
|
51
52
|
swagLightSystemPalette,
|
|
53
|
+
swagLightJobsSystemPalette,
|
|
52
54
|
swagDarkSystemPalette,
|
|
53
55
|
workSystemPalette,
|
|
54
56
|
jobsSystemPalette,
|
package/src/theme/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
|
4
4
|
import {
|
|
5
5
|
swagSystemPalette,
|
|
6
6
|
swagLightSystemPalette,
|
|
7
|
+
swagLightJobsSystemPalette,
|
|
7
8
|
swagDarkSystemPalette,
|
|
8
9
|
workSystemPalette,
|
|
9
10
|
jobsSystemPalette,
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
useTheme,
|
|
26
27
|
swagSystemPalette,
|
|
27
28
|
swagLightSystemPalette,
|
|
29
|
+
swagLightJobsSystemPalette,
|
|
28
30
|
swagDarkSystemPalette,
|
|
29
31
|
workSystemPalette,
|
|
30
32
|
jobsSystemPalette,
|