@hoddy-ui/core 1.0.80 → 1.0.82
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/Typography.tsx +2 -1
- package/src/types.ts +1 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const Typography: React.FC<TypographyProps> = ({
|
|
|
16
16
|
adjustsFontSizeToFit,
|
|
17
17
|
fontWeight = 400,
|
|
18
18
|
}) => {
|
|
19
|
-
const colors = useColors();
|
|
19
|
+
const colors: any = useColors();
|
|
20
20
|
const fontSize = {
|
|
21
21
|
h1: moderateScale(42),
|
|
22
22
|
h2: moderateScale(37),
|
|
@@ -50,4 +50,5 @@ const Typography: React.FC<TypographyProps> = ({
|
|
|
50
50
|
);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
<Typography color="#f90">col</Typography>;
|
|
53
54
|
export default Typography;
|
package/src/types.ts
CHANGED
|
@@ -254,7 +254,7 @@ export interface TextFieldProps extends TextInputProps {
|
|
|
254
254
|
|
|
255
255
|
export interface TypographyProps {
|
|
256
256
|
children: ReactNode;
|
|
257
|
-
color?: colorTypes;
|
|
257
|
+
color?: colorTypes | (string & {});
|
|
258
258
|
style?: TextStyle | ViewStyle;
|
|
259
259
|
textCase?: "capitalize" | "uppercase" | "lowercase" | null;
|
|
260
260
|
variant?:
|