decathlon-ui 0.1.4 → 0.1.6
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/dist/components/Button/Button.d.ts +0 -11
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.js +0 -19
- /package/dist/components/{Button → button}/button.component.d.ts +0 -0
- /package/dist/components/{Button → button}/button.component.d.ts.map +0 -0
- /package/dist/components/{Button → button}/button.component.js +0 -0
- /package/dist/components/{Button → button}/button.props.d.ts +0 -0
- /package/dist/components/{Button → button}/button.props.d.ts.map +0 -0
- /package/dist/components/{Button → button}/button.props.js +0 -0
- /package/dist/components/{Button → button}/button.styles.d.ts +0 -0
- /package/dist/components/{Button → button}/button.styles.d.ts.map +0 -0
- /package/dist/components/{Button → button}/button.styles.js +0 -0
- /package/dist/components/{Button → button}/button.types.d.ts +0 -0
- /package/dist/components/{Button → button}/button.types.d.ts.map +0 -0
- /package/dist/components/{Button → button}/button.types.js +0 -0
- /package/dist/components/{Button → button}/index.d.ts +0 -0
- /package/dist/components/{Button → button}/index.d.ts.map +0 -0
- /package/dist/components/{Button → button}/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TextStyle, ViewStyle } from "react-native";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
title: string;
|
|
5
|
-
onPress?: () => void;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
textStyle?: TextStyle;
|
|
8
|
-
}
|
|
9
|
-
export declare const Button: React.FC<ButtonProps>;
|
|
10
|
-
export default Button;
|
|
11
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAWxC,CAAC;AAgBF,eAAe,MAAM,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Pressable, StyleSheet, Text, } from "react-native";
|
|
3
|
-
export const Button = ({ title, onPress, style, textStyle, }) => {
|
|
4
|
-
return (_jsx(Pressable, { style: [styles.container, style], onPress: onPress, children: _jsx(Text, { style: [styles.text, textStyle], children: title }) }));
|
|
5
|
-
};
|
|
6
|
-
const styles = StyleSheet.create({
|
|
7
|
-
container: {
|
|
8
|
-
backgroundColor: "#1e90ff",
|
|
9
|
-
paddingVertical: 12,
|
|
10
|
-
paddingHorizontal: 24,
|
|
11
|
-
borderRadius: 4,
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
},
|
|
14
|
-
text: {
|
|
15
|
-
color: "#ffffff",
|
|
16
|
-
fontWeight: "600",
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
export default Button;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|