@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 CHANGED
@@ -29,6 +29,7 @@ Once we can replace the build of Jenkins for NPM one, we are going to be able to
29
29
  "dependencies": {
30
30
  (...)
31
31
  "@expo/dev-server": "0.1.120",
32
+ "expo-modules-core": "^1.0.3",
32
33
  "inline-style-prefixer": "6.0.1",
33
34
  (...)
34
35
  },
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.3.14",
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,5 @@
1
+ import { CheckoutQuestionItem } from "../../CheckoutQuestionItem";
2
+ type IconName = "icon_bad" | "icon_regular" | "icon_good";
3
+ declare const IconCheckoutQuestionItem: CheckoutQuestionItem;
4
+ export type { IconName };
5
+ export { IconCheckoutQuestionItem };
@@ -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,3 @@
1
+ import { Icon } from "./icon";
2
+ declare const Happy: Icon;
3
+ export { Happy };
@@ -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,3 @@
1
+ import { Icon } from "./icon";
2
+ declare const Normal: Icon;
3
+ export { Normal };
@@ -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,3 @@
1
+ import { Icon } from "./icon";
2
+ declare const Sad: Icon;
3
+ export { Sad };
@@ -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,4 @@
1
+ import { FC } from "react";
2
+ import { SvgProps } from "react-native-svg";
3
+ type Icon = FC<SvgProps>;
4
+ export type { Icon };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.3.14",
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",