This commit is contained in:
Philip Cesar Garay
2025-07-31 21:25:33 +08:00
parent 5cfbc81e3a
commit 84fc719a10
307 changed files with 46470 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
import React from "react";
import { Text, View } from "react-native";
import { Input as MinuitInput } from "../Input";
import { BaseButton as MinuitButton } from "../Button";
import Overlay from "../Overlay";
import { Fonts, Palette, gutters } from "../../styles";
import Style from "../../styles/Style";
export const Container = ({ visible, setVisible = () => null, children }) => {
return (
<Overlay isVisible={visible}>
<View style={{ ...Style.containerModal }}>{children}</View>
</Overlay>
);
};
export const Title = ({ children }) => {
return (
<Text
style={{
...Fonts({
type: "title",
style: {
textAlign: "center",
marginBottom: gutters,
},
}),
}}
>
{children}
</Text>
);
};
export const Description = ({ children }) => {
return (
<Text
style={{
...Fonts({
type: "default",
style: {
textAlign: "center",
marginBottom: gutters / 2,
},
}),
}}
>
{children}
</Text>
);
};
export const Button = ({
label,
onPress,
type = "primary",
containerStyle = {},
}) => {
return (
<MinuitButton
containerStyle={{
width: "100%",
alignSelf: "center",
...containerStyle,
}}
text={label}
onPress={onPress}
type={type}
/>
);
};
export const Input = (props) => {
return <MinuitInput {...props} setValue={props.onChangeText} />;
};