@lookiero/checkout 0.3.14 → 0.3.16
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/README.md +1 -0
- package/dist/package.json +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.d.ts +5 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +19 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +8 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +8 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +8 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.js +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
91
|
"eslint-plugin-react-native": "^4.0.0",
|
|
92
92
|
"expo": "~46.0.8",
|
|
93
|
+
"expo-modules-core": "^1.0.3",
|
|
93
94
|
"expo-status-bar": "~1.4.0",
|
|
94
95
|
"graphql": "14.5.8",
|
|
95
96
|
"graphql-tag": "2.12.6",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { Pressable } from "react-native";
|
|
3
|
+
import invariant from "tiny-invariant";
|
|
4
|
+
import { Happy } from "./icons/Happy";
|
|
5
|
+
import { Normal } from "./icons/Normal";
|
|
6
|
+
import { Sad } from "./icons/Sad";
|
|
7
|
+
const ICON = {
|
|
8
|
+
icon_bad: Sad,
|
|
9
|
+
icon_regular: Normal,
|
|
10
|
+
icon_good: Happy,
|
|
11
|
+
};
|
|
12
|
+
const IconCheckoutQuestionItem = ({ checkoutQuestion }) => {
|
|
13
|
+
const Icon = ICON[checkoutQuestion.name];
|
|
14
|
+
const handleOnPress = useCallback(() => void 0, []);
|
|
15
|
+
invariant(Icon, "CheckoutQuestion icon does not exist");
|
|
16
|
+
return (React.createElement(Pressable, { onPress: handleOnPress },
|
|
17
|
+
React.createElement(Icon, { testID: checkoutQuestion.name })));
|
|
18
|
+
};
|
|
19
|
+
export { IconCheckoutQuestionItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
+
const Happy = (props) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23.5, stroke: "#000" }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: "#000", r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: "#000", r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M14 28.5s3 6 10 6 10-6 10-6", stroke: "#000" })));
|
|
8
|
+
export { Happy };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
+
const Normal = (props) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23.5, stroke: "#000" }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: "#000", r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: "#000", r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M15 31h19v1H15z", fill: "#000" })));
|
|
8
|
+
export { Normal };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
+
const Sad = (props) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23.5, stroke: "#000" }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: "#000", r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: "#000", r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M14 33.5s3-6 10-6 10 6 10 6", stroke: "#000" })));
|
|
8
|
+
export { Sad };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
91
|
"eslint-plugin-react-native": "^4.0.0",
|
|
92
92
|
"expo": "~46.0.8",
|
|
93
|
+
"expo-modules-core": "^1.0.3",
|
|
93
94
|
"expo-status-bar": "~1.4.0",
|
|
94
95
|
"graphql": "14.5.8",
|
|
95
96
|
"graphql-tag": "2.12.6",
|