@hero-design/rn 8.69.0 → 8.70.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 +17 -0
- package/es/index.js +67 -80
- package/lib/index.js +67 -80
- package/package.json +2 -2
- package/src/components/Card/StyledCard.tsx +6 -2
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/Card/__tests__/index.spec.tsx +12 -0
- package/src/components/Card/index.tsx +8 -2
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +1 -0
- package/src/components/Chip/StyledChip.tsx +15 -45
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +145 -389
- package/src/components/Chip/__tests__/index.spec.tsx +6 -26
- package/src/components/Chip/index.tsx +26 -33
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -6
- package/src/theme/components/card.ts +1 -0
- package/src/theme/components/chip.ts +8 -6
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +5 -5
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +39 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +5 -5
- package/src/theme/global/colors/__tests__/swagLightGlobal.spec.ts +7 -0
- package/src/theme/global/colors/swagLight.ts +2 -2
- package/src/theme/global/colors/swagLightGlobal.ts +14 -0
- package/stats/8.70.0/rn-stats.html +4842 -0
- package/types/components/Card/StyledCard.d.ts +1 -0
- package/types/components/Card/index.d.ts +2 -1
- package/types/components/Chip/StyledChip.d.ts +1 -19
- package/types/components/Chip/index.d.ts +6 -2
- package/types/theme/components/card.d.ts +1 -0
- package/types/theme/components/chip.d.ts +8 -6
- package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
|
@@ -4,6 +4,7 @@ declare const StyledCard: import("@emotion/native").StyledComponent<import("reac
|
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
themeIntent?: "neutral" | "primary" | "success" | "warning" | "danger" | "archived" | undefined;
|
|
7
|
+
themeVariant?: "basic" | "super-round" | undefined;
|
|
7
8
|
}, {}, {
|
|
8
9
|
ref?: import("react").Ref<View> | undefined;
|
|
9
10
|
}>;
|
|
@@ -17,8 +17,9 @@ export interface CardProps extends ViewProps {
|
|
|
17
17
|
* Testing id of the component.
|
|
18
18
|
*/
|
|
19
19
|
testID?: string;
|
|
20
|
+
variant?: 'basic' | 'super-round';
|
|
20
21
|
}
|
|
21
|
-
declare const _default: (({ intent, children, ...nativeProps }: CardProps) => JSX.Element) & {
|
|
22
|
+
declare const _default: (({ intent, children, variant, ...nativeProps }: CardProps) => JSX.Element) & {
|
|
22
23
|
Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => JSX.Element;
|
|
23
24
|
};
|
|
24
25
|
export default _default;
|
|
@@ -9,22 +9,4 @@ declare const StyledChipWrapper: import("@emotion/native").StyledComponent<impor
|
|
|
9
9
|
} & StyledChipWrapperProps, {}, {
|
|
10
10
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
17
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
themeSelected?: boolean | undefined;
|
|
21
|
-
themeVariant?: "filled" | "outlined" | undefined;
|
|
22
|
-
}, {}, {}>;
|
|
23
|
-
declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
themeSelected?: boolean | undefined;
|
|
28
|
-
themeVariant?: "filled" | "outlined" | undefined;
|
|
29
|
-
}, {}, {}>;
|
|
30
|
-
export { StyledChipWrapper, StyledIcon, StyledIconWrapper, StyledLabel };
|
|
12
|
+
export { StyledChipWrapper };
|
|
@@ -15,13 +15,17 @@ export interface ChipProps extends ViewProps {
|
|
|
15
15
|
*/
|
|
16
16
|
selected?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* Icon of the chip.
|
|
18
|
+
* Icon of the chip.
|
|
19
19
|
*/
|
|
20
20
|
icon?: IconName;
|
|
21
21
|
/**
|
|
22
22
|
* Callback when the chip is pressed.
|
|
23
23
|
*/
|
|
24
24
|
onPress?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to show the selected icon when using outlined variant.
|
|
27
|
+
*/
|
|
28
|
+
showSelectedIcon?: boolean;
|
|
25
29
|
}
|
|
26
|
-
declare const Chip: ({ label, variant, selected, icon, onPress, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
30
|
+
declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
27
31
|
export default Chip;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import type { GlobalTheme } from '../global';
|
|
2
2
|
declare const getChipTheme: (theme: GlobalTheme) => {
|
|
3
3
|
colors: {
|
|
4
|
-
primaryBackground: string;
|
|
5
4
|
secondaryBackground: string;
|
|
6
5
|
filledBackground: string;
|
|
7
|
-
outlinedBackground: string;
|
|
8
|
-
wrapperBorder: string;
|
|
9
6
|
wrapperSelectedBorder: string;
|
|
10
|
-
|
|
7
|
+
outlinedDefaultBackground: string;
|
|
8
|
+
outlinedSelectedBackground: string;
|
|
9
|
+
outlinedSelectedBorder: string;
|
|
10
|
+
outlinedDefaultBorder: string;
|
|
11
11
|
};
|
|
12
12
|
space: {
|
|
13
13
|
wrapperHorizontalPadding: number;
|
|
14
14
|
wrapperVerticalPadding: number;
|
|
15
|
-
|
|
15
|
+
iconWrapperHorizontalMargin: number;
|
|
16
|
+
outlinedSelectedMarginTop: number;
|
|
16
17
|
};
|
|
17
18
|
sizes: {
|
|
18
|
-
|
|
19
|
+
outlinedDefaultBorder: number;
|
|
20
|
+
outlinedSelectedBorder: number;
|
|
19
21
|
};
|
|
20
22
|
radii: {
|
|
21
23
|
wrapper: number;
|