@coorpacademy/components 10.27.1 → 10.27.3-alpha.1
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/es/atom/review-presentation/index.native.d.ts +5 -0
- package/es/atom/review-presentation/index.native.d.ts.map +1 -0
- package/es/atom/review-presentation/index.native.js +141 -0
- package/es/atom/review-presentation/index.native.js.map +1 -0
- package/es/atom/review-presentation/prop-types.d.ts +38 -2
- package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/es/atom/review-presentation/prop-types.js +7 -0
- package/es/atom/review-presentation/prop-types.js.map +1 -1
- package/es/organism/podcast-popin-intro/index.native.d.ts +10 -0
- package/es/organism/podcast-popin-intro/index.native.d.ts.map +1 -0
- package/es/organism/podcast-popin-intro/index.native.js +114 -0
- package/es/organism/podcast-popin-intro/index.native.js.map +1 -0
- package/es/template/app-review/onboarding/index.native.d.ts +1 -7
- package/es/template/app-review/onboarding/index.native.d.ts.map +1 -1
- package/es/template/app-review/onboarding/index.native.js +1 -82
- package/es/template/app-review/onboarding/index.native.js.map +1 -1
- package/es/template/app-review/template-context.d.ts +1 -1
- package/es/template/app-review/template-context.d.ts.map +1 -1
- package/es/template/app-review/template-context.js +2 -1
- package/es/template/app-review/template-context.js.map +1 -1
- package/es/variables/default-mobile-translations.d.ts +215 -0
- package/es/variables/default-mobile-translations.d.ts.map +1 -0
- package/es/variables/default-mobile-translations.js +279 -0
- package/es/variables/default-mobile-translations.js.map +1 -0
- package/es/variables/theme.native.d.ts +6 -1
- package/es/variables/theme.native.d.ts.map +1 -1
- package/es/variables/theme.native.js +7 -2
- package/es/variables/theme.native.js.map +1 -1
- package/lib/atom/review-presentation/index.native.d.ts +5 -0
- package/lib/atom/review-presentation/index.native.d.ts.map +1 -0
- package/lib/atom/review-presentation/index.native.js +158 -0
- package/lib/atom/review-presentation/index.native.js.map +1 -0
- package/lib/atom/review-presentation/prop-types.d.ts +38 -2
- package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/lib/atom/review-presentation/prop-types.js +10 -1
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/organism/podcast-popin-intro/index.native.d.ts +10 -0
- package/lib/organism/podcast-popin-intro/index.native.d.ts.map +1 -0
- package/lib/organism/podcast-popin-intro/index.native.js +131 -0
- package/lib/organism/podcast-popin-intro/index.native.js.map +1 -0
- package/lib/template/app-review/onboarding/index.native.d.ts +1 -7
- package/lib/template/app-review/onboarding/index.native.d.ts.map +1 -1
- package/lib/template/app-review/onboarding/index.native.js +2 -90
- package/lib/template/app-review/onboarding/index.native.js.map +1 -1
- package/lib/template/app-review/template-context.d.ts +1 -1
- package/lib/template/app-review/template-context.d.ts.map +1 -1
- package/lib/template/app-review/template-context.js +3 -1
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/variables/default-mobile-translations.d.ts +215 -0
- package/lib/variables/default-mobile-translations.d.ts.map +1 -0
- package/lib/variables/default-mobile-translations.js +284 -0
- package/lib/variables/default-mobile-translations.js.map +1 -0
- package/lib/variables/theme.native.d.ts +6 -1
- package/lib/variables/theme.native.d.ts.map +1 -1
- package/lib/variables/theme.native.js +7 -2
- package/lib/variables/theme.native.js.map +1 -1
- package/package.json +2 -2
- package/es/types/translations.d.ts +0 -12
- package/es/types/translations.d.ts.map +0 -1
- package/es/types/translations.js +0 -2
- package/es/types/translations.js.map +0 -1
- package/lib/types/translations.d.ts +0 -12
- package/lib/types/translations.d.ts.map +0 -1
- package/lib/types/translations.js +0 -2
- package/lib/types/translations.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.native.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAC,eAAe,EAAW,MAAM,cAAc,CAAC;AAyFvD,QAAA,MAAM,UAAU,UAAW,eAAe,uBA0CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
11
|
+
|
|
12
|
+
var _templateContext = require("../../template/app-review/template-context");
|
|
13
|
+
|
|
14
|
+
var _index = require("../../organism/header-v2/index.native");
|
|
15
|
+
|
|
16
|
+
var _index2 = _interopRequireDefault(require("../../hoc/touchable/index.native"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
25
|
+
container: {
|
|
26
|
+
justifyContent: 'space-between',
|
|
27
|
+
flex: 1,
|
|
28
|
+
padding: 20,
|
|
29
|
+
paddingTop: _index.HEADER_HEIGHT + 20
|
|
30
|
+
},
|
|
31
|
+
title: {
|
|
32
|
+
height: 72,
|
|
33
|
+
width: 268,
|
|
34
|
+
fontSize: theme.fontSize.xxlarge,
|
|
35
|
+
fontWeight: theme.fontWeight.bold,
|
|
36
|
+
lineHeight: 36,
|
|
37
|
+
color: theme.colors.text.primary,
|
|
38
|
+
marginBottom: theme.spacing.small
|
|
39
|
+
},
|
|
40
|
+
text: {
|
|
41
|
+
fontSize: theme.fontSize.large,
|
|
42
|
+
color: theme.colors.text.primary,
|
|
43
|
+
opacity: 0.7,
|
|
44
|
+
marginBottom: theme.spacing.small
|
|
45
|
+
},
|
|
46
|
+
tip: {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
height: 54,
|
|
51
|
+
borderRadius: 8,
|
|
52
|
+
backgroundColor: theme.colors.gray.extra,
|
|
53
|
+
marginTop: theme.spacing.micro,
|
|
54
|
+
marginBottom: theme.spacing.micro
|
|
55
|
+
},
|
|
56
|
+
tipText: {
|
|
57
|
+
fontSize: theme.fontSize.large,
|
|
58
|
+
color: theme.colors.text.primary
|
|
59
|
+
},
|
|
60
|
+
icon: {
|
|
61
|
+
margin: 10
|
|
62
|
+
},
|
|
63
|
+
button: {
|
|
64
|
+
height: 52,
|
|
65
|
+
borderRadius: 7,
|
|
66
|
+
marginBottom: theme.spacing.large,
|
|
67
|
+
marginTop: theme.spacing.large
|
|
68
|
+
},
|
|
69
|
+
buttonText: {
|
|
70
|
+
fontWeight: theme.fontWeight.bold,
|
|
71
|
+
fontSize: theme.fontSize.large,
|
|
72
|
+
color: theme.colors.text.secondary
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const Tip = props => {
|
|
77
|
+
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
78
|
+
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
79
|
+
const {
|
|
80
|
+
theme
|
|
81
|
+
} = templateContext;
|
|
82
|
+
const {
|
|
83
|
+
Icon,
|
|
84
|
+
text
|
|
85
|
+
} = props;
|
|
86
|
+
(0, _react.useEffect)(() => {
|
|
87
|
+
const _stylesheet = createStyleSheet(theme);
|
|
88
|
+
|
|
89
|
+
setStylesheet(_stylesheet);
|
|
90
|
+
}, [theme]);
|
|
91
|
+
|
|
92
|
+
if (!styleSheet) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
97
|
+
style: styleSheet.tip
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
99
|
+
height: 16,
|
|
100
|
+
width: 16,
|
|
101
|
+
style: styleSheet.icon,
|
|
102
|
+
color: theme.colors.text.primary
|
|
103
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
104
|
+
style: styleSheet.tipText
|
|
105
|
+
}, text));
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const Onboarding = props => {
|
|
109
|
+
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
110
|
+
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
111
|
+
const {
|
|
112
|
+
theme,
|
|
113
|
+
translations
|
|
114
|
+
} = templateContext;
|
|
115
|
+
const {
|
|
116
|
+
onPress
|
|
117
|
+
} = props;
|
|
118
|
+
(0, _react.useEffect)(() => {
|
|
119
|
+
const _stylesheet = createStyleSheet(theme);
|
|
120
|
+
|
|
121
|
+
setStylesheet(_stylesheet);
|
|
122
|
+
}, [theme]); // ------------------------------------
|
|
123
|
+
|
|
124
|
+
if (!styleSheet) {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
129
|
+
style: styleSheet.container
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
131
|
+
style: styleSheet.title
|
|
132
|
+
}, translations.appReview?.presentation.title), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
133
|
+
style: styleSheet.text
|
|
134
|
+
}, translations.appReview?.presentation.text), /*#__PURE__*/_react.default.createElement(Tip, {
|
|
135
|
+
Icon: _novaIcons.NovaLineSelectionCursorsCursorArrowTarget,
|
|
136
|
+
text: translations.appReview?.presentation?.labelList?.skills?.text
|
|
137
|
+
}), /*#__PURE__*/_react.default.createElement(Tip, {
|
|
138
|
+
Icon: _novaIcons.NovaSolidInterfaceFeedbackInterfaceQuestionMark,
|
|
139
|
+
text: translations.appReview?.presentation?.labelList?.questions?.text
|
|
140
|
+
}), /*#__PURE__*/_react.default.createElement(Tip, {
|
|
141
|
+
Icon: _novaIcons.NovaCompositionCoorpacademyHeart,
|
|
142
|
+
text: translations.appReview?.presentation?.labelList?.lifes?.text
|
|
143
|
+
}), /*#__PURE__*/_react.default.createElement(Tip, {
|
|
144
|
+
Icon: _novaIcons.NovaSolidStatusCheckCircle2,
|
|
145
|
+
text: translations.appReview?.presentation?.labelList?.allright?.text
|
|
146
|
+
}), /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
147
|
+
testID: `button-quit-revision-onboarding`,
|
|
148
|
+
onPress: onPress,
|
|
149
|
+
analyticsID: "button-start",
|
|
150
|
+
style: styleSheet.button
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
152
|
+
style: styleSheet.buttonText
|
|
153
|
+
}, translations.appReview?.presentation.button)));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var _default = Onboarding;
|
|
157
|
+
exports.default = _default;
|
|
158
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","justifyContent","flex","padding","paddingTop","HEADER_HEIGHT","title","height","width","fontSize","xxlarge","fontWeight","bold","lineHeight","color","colors","text","primary","marginBottom","spacing","small","large","opacity","tip","flexDirection","overflow","alignItems","borderRadius","backgroundColor","gray","extra","marginTop","micro","tipText","icon","margin","button","buttonText","secondary","Tip","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","Icon","useEffect","_stylesheet","Onboarding","translations","onPress","appReview","presentation","TargetIcon","labelList","skills","QuestionMarkIcon","questions","HeartIcon","lifes","CheckCircle2Icon","allright"],"sources":["../../../src/atom/review-presentation/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {View, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport {\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionMarkIcon,\n NovaSolidStatusCheckCircle2 as CheckCircle2Icon,\n NovaCompositionCoorpacademyHeart as HeartIcon\n} from '@coorpacademy/nova-icons';\n\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\nimport {HEADER_HEIGHT} from '../../organism/header-v2/index.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport {OnboardingProps, TipProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n text: TextStyle;\n tip: ViewStyle;\n tipText: TextStyle;\n icon: ViewStyle;\n button: ViewStyle;\n buttonText: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n justifyContent: 'space-between',\n flex: 1,\n padding: 20,\n paddingTop: HEADER_HEIGHT + 20\n },\n title: {\n height: 72,\n width: 268,\n fontSize: theme.fontSize.xxlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 36,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.small\n },\n text: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary,\n opacity: 0.7,\n marginBottom: theme.spacing.small\n },\n tip: {\n flexDirection: 'row',\n overflow: 'hidden',\n alignItems: 'center',\n height: 54,\n borderRadius: 8,\n backgroundColor: theme.colors.gray.extra,\n marginTop: theme.spacing.micro,\n marginBottom: theme.spacing.micro\n },\n tipText: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary\n },\n icon: {\n margin: 10\n },\n button: {\n height: 52,\n borderRadius: 7,\n marginBottom: theme.spacing.large,\n marginTop: theme.spacing.large\n },\n buttonText: {\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.large,\n color: theme.colors.text.secondary\n }\n });\n\nconst Tip = (props: TipProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {Icon, text} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.tip}>\n {<Icon height={16} width={16} style={styleSheet.icon} color={theme.colors.text.primary} />}\n <Text style={styleSheet.tipText}>{text}</Text>\n </View>\n );\n};\n\nconst Onboarding = (props: OnboardingProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme, translations} = templateContext;\n const {onPress} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.container}>\n <Text style={styleSheet.title}>{translations.appReview?.presentation.title}</Text>\n <Text style={styleSheet.text}>{translations.appReview?.presentation.text}</Text>\n\n <Tip Icon={TargetIcon} text={translations.appReview?.presentation?.labelList?.skills?.text} />\n <Tip\n Icon={QuestionMarkIcon}\n text={translations.appReview?.presentation?.labelList?.questions?.text}\n />\n <Tip Icon={HeartIcon} text={translations.appReview?.presentation?.labelList?.lifes?.text} />\n <Tip\n Icon={CheckCircle2Icon}\n text={translations.appReview?.presentation?.labelList?.allright?.text}\n />\n <Touchable\n testID={`button-quit-revision-onboarding`}\n onPress={onPress}\n analyticsID=\"button-start\"\n style={styleSheet.button}\n >\n <Text style={styleSheet.buttonText}>{translations.appReview?.presentation.button}</Text>\n </Touchable>\n </View>\n );\n};\n\nexport default Onboarding;\n"],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { GestureResponderEvent } from 'react-native';
|
|
2
3
|
declare const propTypes: {
|
|
3
4
|
'aria-label': PropTypes.Requireable<string>;
|
|
4
5
|
reviewTitle: PropTypes.Requireable<string>;
|
|
@@ -22,5 +23,40 @@ declare const propTypes: {
|
|
|
22
23
|
}>>;
|
|
23
24
|
}>>;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
export default propTypes;
|
|
27
|
+
export declare const OnboardingPropsTypes: {
|
|
28
|
+
onPress: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
};
|
|
30
|
+
export declare const TipPropsTypes: {
|
|
31
|
+
text: PropTypes.Requireable<string>;
|
|
32
|
+
Icon: PropTypes.Requireable<any>;
|
|
33
|
+
};
|
|
34
|
+
export declare type OnboardingProps = {
|
|
35
|
+
'aria-label'?: string | undefined;
|
|
36
|
+
reviewTitle?: string | undefined;
|
|
37
|
+
reviewText?: string | undefined;
|
|
38
|
+
labelsList?: {
|
|
39
|
+
skills?: {
|
|
40
|
+
text?: string | undefined;
|
|
41
|
+
tooltipText?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
questions?: {
|
|
44
|
+
text?: string | undefined;
|
|
45
|
+
tooltipText?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
lifes?: {
|
|
48
|
+
text?: string | undefined;
|
|
49
|
+
tooltipText?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
allright?: {
|
|
52
|
+
text?: string | undefined;
|
|
53
|
+
tooltipText?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
};
|
|
56
|
+
onPress: (event: GestureResponderEvent) => any;
|
|
57
|
+
};
|
|
58
|
+
export declare type TipProps = {
|
|
59
|
+
text: string | undefined;
|
|
60
|
+
Icon: any;
|
|
61
|
+
};
|
|
26
62
|
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/prop-types.
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAOnD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAUd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EACH;YACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAClC,GACD,SAAS,CAAC;QACd,SAAS,CAAC,EAAE;YACV,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAClC,CAAC;QACF,KAAK,CAAC,EACF;YACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAClC,GACD,SAAS,CAAC;QACd,QAAQ,CAAC,EACL;YACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAClC,GACD,SAAS,CAAC;KACf,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,GAAG,CAAC;CAChD,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
4
|
+
exports.default = exports.TipPropsTypes = exports.OnboardingPropsTypes = void 0;
|
|
5
5
|
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
|
|
@@ -25,4 +25,13 @@ const propTypes = {
|
|
|
25
25
|
};
|
|
26
26
|
var _default = propTypes;
|
|
27
27
|
exports.default = _default;
|
|
28
|
+
const OnboardingPropsTypes = {
|
|
29
|
+
onPress: _propTypes.default.func
|
|
30
|
+
};
|
|
31
|
+
exports.OnboardingPropsTypes = OnboardingPropsTypes;
|
|
32
|
+
const TipPropsTypes = {
|
|
33
|
+
text: _propTypes.default.string,
|
|
34
|
+
Icon: _propTypes.default.any
|
|
35
|
+
};
|
|
36
|
+
exports.TipPropsTypes = TipPropsTypes;
|
|
28
37
|
//# sourceMappingURL=prop-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["levelItem","PropTypes","shape","text","string","tooltipText","propTypes","reviewTitle","reviewText","labelsList","skills","questions","lifes","allright"],"sources":["../../../src/atom/review-presentation/prop-types.
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["levelItem","PropTypes","shape","text","string","tooltipText","propTypes","reviewTitle","reviewText","labelsList","skills","questions","lifes","allright","OnboardingPropsTypes","onPress","func","TipPropsTypes","Icon","any"],"sources":["../../../src/atom/review-presentation/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {GestureResponderEvent} from 'react-native';\n\nconst levelItem = PropTypes.shape({\n text: PropTypes.string,\n tooltipText: PropTypes.string\n});\n\nconst propTypes = {\n 'aria-label': PropTypes.string,\n reviewTitle: PropTypes.string,\n reviewText: PropTypes.string,\n labelsList: PropTypes.shape({\n skills: levelItem,\n questions: levelItem,\n lifes: levelItem,\n allright: levelItem\n })\n};\n\nexport default propTypes;\n\nexport const OnboardingPropsTypes = {\n onPress: PropTypes.func\n};\n\nexport const TipPropsTypes = {\n text: PropTypes.string,\n Icon: PropTypes.any\n};\n\nexport type OnboardingProps = {\n 'aria-label'?: string | undefined;\n reviewTitle?: string | undefined;\n reviewText?: string | undefined;\n labelsList?: {\n skills?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n questions?: {\n text?: string | undefined;\n tooltipText?: string | undefined;\n };\n lifes?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n allright?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n };\n onPress: (event: GestureResponderEvent) => any;\n};\n\nexport type TipProps = {\n text: string | undefined;\n Icon: any;\n};\n"],"mappings":";;;;;AAAA;;;;AAGA,MAAMA,SAAS,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EAChCC,IAAI,EAAEF,kBAAA,CAAUG,MADgB;EAEhCC,WAAW,EAAEJ,kBAAA,CAAUG;AAFS,CAAhB,CAAlB;;AAKA,MAAME,SAAS,GAAG;EAChB,cAAcL,kBAAA,CAAUG,MADR;EAEhBG,WAAW,EAAEN,kBAAA,CAAUG,MAFP;EAGhBI,UAAU,EAAEP,kBAAA,CAAUG,MAHN;EAIhBK,UAAU,EAAER,kBAAA,CAAUC,KAAV,CAAgB;IAC1BQ,MAAM,EAAEV,SADkB;IAE1BW,SAAS,EAAEX,SAFe;IAG1BY,KAAK,EAAEZ,SAHmB;IAI1Ba,QAAQ,EAAEb;EAJgB,CAAhB;AAJI,CAAlB;eAYeM,S;;AAER,MAAMQ,oBAAoB,GAAG;EAClCC,OAAO,EAAEd,kBAAA,CAAUe;AADe,CAA7B;;AAIA,MAAMC,aAAa,GAAG;EAC3Bd,IAAI,EAAEF,kBAAA,CAAUG,MADW;EAE3Bc,IAAI,EAAEjB,kBAAA,CAAUkB;AAFW,CAAtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GestureResponderEvent } from 'react-native';
|
|
3
|
+
export declare type Props = {
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
onValidate: (event: GestureResponderEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const PodcastPopinIntro: (props: Props) => JSX.Element | null;
|
|
8
|
+
export declare type PodcastPopinIntroProps = Props;
|
|
9
|
+
export default PodcastPopinIntro;
|
|
10
|
+
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/organism/podcast-popin-intro/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAOL,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAQtB,oBAAY,KAAK,GAAG;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACpD,CAAC;AAwEF,QAAA,MAAM,iBAAiB,UAAW,KAAK,uBAgCtC,CAAC;AAEF,oBAAY,sBAAsB,GAAG,KAAK,CAAC;AAC3C,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
|
|
10
|
+
var _reactNativeModal = _interopRequireDefault(require("react-native-modal"));
|
|
11
|
+
|
|
12
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
13
|
+
|
|
14
|
+
var _templateContext = require("../../template/app-review/template-context");
|
|
15
|
+
|
|
16
|
+
var _index = _interopRequireDefault(require("../../hoc/touchable/index.native"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
24
|
+
const createStyleSheet = (theme, windowHeight) => {
|
|
25
|
+
const popinHeight = 368;
|
|
26
|
+
return _reactNative.StyleSheet.create({
|
|
27
|
+
container: {
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
top: (windowHeight - popinHeight) / 2,
|
|
30
|
+
height: popinHeight,
|
|
31
|
+
backgroundColor: '#fff',
|
|
32
|
+
justifyContent: 'space-between',
|
|
33
|
+
alignSelf: 'center',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
borderRadius: 8,
|
|
36
|
+
// width: '90%',
|
|
37
|
+
padding: 24
|
|
38
|
+
},
|
|
39
|
+
headphonesWrapper: {
|
|
40
|
+
width: 115,
|
|
41
|
+
height: 115,
|
|
42
|
+
backgroundColor: '#FFEFEB',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
borderRadius: 60
|
|
45
|
+
},
|
|
46
|
+
headphones: {
|
|
47
|
+
alignSelf: 'center',
|
|
48
|
+
width: 60,
|
|
49
|
+
height: 60,
|
|
50
|
+
fill: theme.colors.podcast.primary
|
|
51
|
+
},
|
|
52
|
+
button: {
|
|
53
|
+
width: '40%',
|
|
54
|
+
height: 44,
|
|
55
|
+
backgroundColor: theme.colors.podcast.primary,
|
|
56
|
+
borderRadius: 7,
|
|
57
|
+
justifyContent: 'center'
|
|
58
|
+
},
|
|
59
|
+
buttonText: {
|
|
60
|
+
alignSelf: 'center',
|
|
61
|
+
color: '#FFFFFF',
|
|
62
|
+
fontWeight: theme.fontWeight.bold,
|
|
63
|
+
fontFamily: 'System',
|
|
64
|
+
fontSize: 14,
|
|
65
|
+
lineHeight: 20
|
|
66
|
+
},
|
|
67
|
+
title: {
|
|
68
|
+
textAlign: 'center',
|
|
69
|
+
lineHeight: 24,
|
|
70
|
+
fontWeight: '700',
|
|
71
|
+
fontSize: 20,
|
|
72
|
+
paddingHorizontal: 40
|
|
73
|
+
},
|
|
74
|
+
message: {
|
|
75
|
+
textAlign: 'center',
|
|
76
|
+
lineHeight: 19,
|
|
77
|
+
fontWeight: '300',
|
|
78
|
+
fontSize: 16,
|
|
79
|
+
paddingHorizontal: 40
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const PodcastPopinIntro = props => {
|
|
85
|
+
const {
|
|
86
|
+
height: windowHeight
|
|
87
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
88
|
+
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
89
|
+
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
90
|
+
const {
|
|
91
|
+
theme,
|
|
92
|
+
translations
|
|
93
|
+
} = templateContext;
|
|
94
|
+
const {
|
|
95
|
+
isVisible,
|
|
96
|
+
onValidate
|
|
97
|
+
} = props;
|
|
98
|
+
(0, _react.useEffect)(() => {
|
|
99
|
+
const _stylesheet = createStyleSheet(theme, windowHeight);
|
|
100
|
+
|
|
101
|
+
setStylesheet(_stylesheet);
|
|
102
|
+
}, [theme, windowHeight]);
|
|
103
|
+
|
|
104
|
+
if (!styleSheet) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeModal.default, {
|
|
109
|
+
isVisible: isVisible,
|
|
110
|
+
style: styleSheet.container,
|
|
111
|
+
testID: "podcast-popin-intro"
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
113
|
+
style: styleSheet.headphonesWrapper
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidAudioHeadphone, {
|
|
115
|
+
style: styleSheet.headphones
|
|
116
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
117
|
+
style: styleSheet.title
|
|
118
|
+
}, translations.appPodcast.infoNewFeature.title), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
119
|
+
style: styleSheet.message
|
|
120
|
+
}, translations.appPodcast.infoNewFeature.message), /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
121
|
+
style: styleSheet.button,
|
|
122
|
+
onPress: onValidate,
|
|
123
|
+
testID: "podcast-popin-intro-validate-button"
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
125
|
+
style: styleSheet.buttonText
|
|
126
|
+
}, translations.appPodcast.infoNewFeature.cta)));
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
var _default = PodcastPopinIntro;
|
|
130
|
+
exports.default = _default;
|
|
131
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","windowHeight","popinHeight","StyleSheet","create","container","position","top","height","backgroundColor","justifyContent","alignSelf","alignItems","borderRadius","padding","headphonesWrapper","width","headphones","fill","colors","podcast","primary","button","buttonText","color","fontWeight","bold","fontFamily","fontSize","lineHeight","title","textAlign","paddingHorizontal","message","PodcastPopinIntro","props","useWindowDimensions","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","translations","isVisible","onValidate","useEffect","_stylesheet","appPodcast","infoNewFeature","cta"],"sources":["../../../src/organism/podcast-popin-intro/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {\n useWindowDimensions,\n StyleSheet,\n ViewStyle,\n Text,\n TextStyle,\n View,\n GestureResponderEvent\n} from 'react-native';\nimport Modal from 'react-native-modal';\nimport {NovaSolidAudioHeadphone as Headphone} from '@coorpacademy/nova-icons';\n\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport Touchable from '../../hoc/touchable/index.native';\nimport {Theme} from '../../variables/theme.native';\n\nexport type Props = {\n isVisible: boolean;\n onValidate: (event: GestureResponderEvent) => void;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n headphones: ViewStyle;\n headphonesWrapper: ViewStyle;\n button: ViewStyle;\n buttonText: TextStyle;\n title: TextStyle;\n message: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme, windowHeight: number) => {\n const popinHeight = 368;\n return StyleSheet.create({\n container: {\n position: 'absolute',\n top: (windowHeight - popinHeight) / 2,\n height: popinHeight,\n backgroundColor: '#fff',\n justifyContent: 'space-between',\n alignSelf: 'center',\n alignItems: 'center',\n borderRadius: 8,\n // width: '90%',\n padding: 24\n },\n headphonesWrapper: {\n width: 115,\n height: 115,\n backgroundColor: '#FFEFEB',\n justifyContent: 'center',\n borderRadius: 60\n },\n headphones: {\n alignSelf: 'center',\n width: 60,\n height: 60,\n fill: theme.colors.podcast.primary\n },\n button: {\n width: '40%',\n height: 44,\n backgroundColor: theme.colors.podcast.primary,\n borderRadius: 7,\n justifyContent: 'center'\n },\n buttonText: {\n alignSelf: 'center',\n color: '#FFFFFF',\n fontWeight: theme.fontWeight.bold,\n fontFamily: 'System',\n fontSize: 14,\n lineHeight: 20\n },\n title: {\n textAlign: 'center',\n lineHeight: 24,\n fontWeight: '700',\n fontSize: 20,\n paddingHorizontal: 40\n },\n message: {\n textAlign: 'center',\n lineHeight: 19,\n fontWeight: '300',\n fontSize: 16,\n paddingHorizontal: 40\n }\n });\n};\n\nconst PodcastPopinIntro = (props: Props) => {\n const {height: windowHeight} = useWindowDimensions();\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme, translations} = templateContext;\n const {isVisible, onValidate} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme, windowHeight);\n setStylesheet(_stylesheet);\n }, [theme, windowHeight]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal isVisible={isVisible} style={styleSheet.container} testID=\"podcast-popin-intro\">\n <View style={styleSheet.headphonesWrapper}>\n <Headphone style={styleSheet.headphones} />\n </View>\n <Text style={styleSheet.title}>{translations.appPodcast.infoNewFeature.title}</Text>\n <Text style={styleSheet.message}>{translations.appPodcast.infoNewFeature.message}</Text>\n <Touchable\n style={styleSheet.button}\n onPress={onValidate}\n testID=\"podcast-popin-intro-validate-button\"\n >\n <Text style={styleSheet.buttonText}>{translations.appPodcast.infoNewFeature.cta}</Text>\n </Touchable>\n </Modal>\n );\n};\n\nexport type PodcastPopinIntroProps = Props;\nexport default PodcastPopinIntro;\n"],"mappings":"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"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export default Onboarding;
|
|
2
|
-
|
|
3
|
-
reviewTitle: any;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
declare namespace Onboarding {
|
|
6
|
-
export { propTypes };
|
|
7
|
-
}
|
|
8
|
-
import propTypes from "../../../atom/review-presentation/prop-types";
|
|
2
|
+
import Onboarding from "../../../atom/review-presentation/index.native";
|
|
9
3
|
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/onboarding/index.native.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/onboarding/index.native.js"],"names":[],"mappings":""}
|
|
@@ -3,98 +3,10 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("../../../atom/review-presentation/prop-types"));
|
|
6
|
+
var _index = _interopRequireDefault(require("../../../atom/review-presentation/index.native"));
|
|
11
7
|
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
// import {NovaLineSelectionCursorsCursorArrowTarget as TargetIcon} from '@coorpacademy/nova-icons';
|
|
19
|
-
// import theme from '../../../modules/theme';
|
|
20
|
-
// import translations from '../../../translations';
|
|
21
|
-
// import Button from '../../../app-shared/components/button';
|
|
22
|
-
// import {HEADER_HEIGHT} from '../../../app-shared/components/header-v2';
|
|
23
|
-
const styles = _reactNative.StyleSheet.create({
|
|
24
|
-
container: {
|
|
25
|
-
justifyContent: 'space-between',
|
|
26
|
-
flex: 1,
|
|
27
|
-
padding: 20 // paddingTop: HEADER_HEIGHT + 20
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
title: {
|
|
31
|
-
height: 72,
|
|
32
|
-
width: 268,
|
|
33
|
-
// fontSize: theme.fontSize.xxlarge,
|
|
34
|
-
// fontWeight: theme.fontWeight.bold,
|
|
35
|
-
lineHeight: 36 // color: theme.colors.text.primary,
|
|
36
|
-
// marginBottom: theme.spacing.small
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
text: {
|
|
40
|
-
// fontSize: theme.fontSize.large,
|
|
41
|
-
// color: theme.colors.text.primary,
|
|
42
|
-
opacity: 0.7 // marginBottom: theme.spacing.small
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
tip: {
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
overflow: 'hidden',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
height: 54,
|
|
50
|
-
borderRadius: 8 // backgroundColor: theme.colors.gray.extra,
|
|
51
|
-
// marginTop: theme.spacing.micro,
|
|
52
|
-
// marginBottom: theme.spacing.micro
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
tipText: {// fontSize: theme.fontSize.large,
|
|
56
|
-
// color: theme.colors.text.primary
|
|
57
|
-
},
|
|
58
|
-
icon: {
|
|
59
|
-
margin: 10
|
|
60
|
-
},
|
|
61
|
-
button: {
|
|
62
|
-
height: 52,
|
|
63
|
-
borderRadius: 7 // marginBottom: theme.spacing.large,
|
|
64
|
-
// marginTop: theme.spacing.large
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}); // const Tip = ({Icon, text}) => (
|
|
68
|
-
// <View style={styles.tip}>
|
|
69
|
-
// {/* <Icon height={16} width={16} style={styles.icon} color={theme.colors.text.primary} /> */}
|
|
70
|
-
// <Text style={styles.tipText}>{text}</Text>
|
|
71
|
-
// </View>
|
|
72
|
-
// );
|
|
73
|
-
|
|
74
|
-
/*
|
|
75
|
-
reviewTitle --> translations.revision.onboarding.title
|
|
76
|
-
*/
|
|
77
|
-
// {/* <Text style={styles.title}>{translations.revision.onboarding.title}</Text>
|
|
78
|
-
// <Text style={styles.text}>{translations.revision.onboarding.intro1}</Text>
|
|
79
|
-
// <Text style={styles.text}>{translations.revision.onboarding.intro2}</Text>
|
|
80
|
-
// <Tip Icon={TargetIcon} text={translations.revision.onboarding.tip1} />
|
|
81
|
-
// <Tip Icon={TargetIcon} text={translations.revision.onboarding.tip2} />
|
|
82
|
-
// <Tip Icon={TargetIcon} text={translations.revision.onboarding.tip3} />
|
|
83
|
-
// <Tip Icon={TargetIcon} text={translations.revision.onboarding.tip4} /> */}
|
|
84
|
-
// {/* <Button style={styles.button} onPress={onButtonPress} testID={`button-quit-revision-onboarding`}>
|
|
85
|
-
// {translations.revision.onboarding.validate}
|
|
86
|
-
// </Button> */}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const Onboarding = ({
|
|
90
|
-
reviewTitle
|
|
91
|
-
}) => /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
92
|
-
style: styles.container
|
|
93
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
94
|
-
style: styles.title
|
|
95
|
-
}, reviewTitle));
|
|
96
|
-
|
|
97
|
-
Onboarding.propTypes = process.env.NODE_ENV !== "production" ? _propTypes.default : {};
|
|
98
|
-
var _default = Onboarding;
|
|
10
|
+
var _default = _index.default;
|
|
99
11
|
exports.default = _default;
|
|
100
12
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["Onboarding"],"sources":["../../../../src/template/app-review/onboarding/index.native.js"],"sourcesContent":["import Onboarding from '../../../atom/review-presentation/index.native';\n\nexport default Onboarding;\n"],"mappings":";;;;;AAAA;;;;eAEeA,c"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Translations } from '../../types/translations';
|
|
3
2
|
import { Analytics } from '../../variables/analytics';
|
|
4
3
|
import { Brand } from '../../variables/brand.native';
|
|
5
4
|
import { Theme } from '../../variables/theme.native';
|
|
5
|
+
import { Translations } from '../../variables/default-mobile-translations';
|
|
6
6
|
import { Vibration } from '../../variables/vibration';
|
|
7
7
|
export declare type HandleBlur = () => void;
|
|
8
8
|
export declare type HandleFocus = (id: string) => () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/template-context.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAa,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/template-context.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAa,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AACtE,OAAqB,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAkC,EAAC,YAAY,EAAC,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,oBAAY,UAAU,GAAG,MAAM,IAAI,CAAC;AACpC,oBAAY,WAAW,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AACrD,oBAAY,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,aAAK,KAAK,GAAG;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,CAAC;AAalE,QAAA,MAAM,kBAAkB,QAAO,qBAU9B,CAAC;AAEF,QAAA,MAAM,eAAe,yBAAwB,KAAK,gBAEjD,CAAC;AAEF,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,CAAC"}
|
|
@@ -9,6 +9,8 @@ var _brand = require("../../variables/brand.native");
|
|
|
9
9
|
|
|
10
10
|
var _theme = _interopRequireDefault(require("../../variables/theme.native"));
|
|
11
11
|
|
|
12
|
+
var _defaultMobileTranslations = _interopRequireDefault(require("../../variables/default-mobile-translations"));
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -18,7 +20,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
20
|
const Context = /*#__PURE__*/(0, _react.createContext)({
|
|
19
21
|
theme: _theme.default,
|
|
20
22
|
brandTheme: _brand.defaultBrandTheme,
|
|
21
|
-
translations:
|
|
23
|
+
translations: _defaultMobileTranslations.default,
|
|
22
24
|
display: {
|
|
23
25
|
headerHeight: 67,
|
|
24
26
|
statusBarHeight: 42
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","brandTheme","defaultBrandTheme","translations","display","headerHeight","statusBarHeight","store","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, ReactNode, useContext} from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","brandTheme","defaultBrandTheme","translations","defaultMobileTranslations","display","headerHeight","statusBarHeight","store","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, ReactNode, useContext} from 'react';\nimport {Analytics} from '../../variables/analytics';\nimport {Brand, defaultBrandTheme} from '../../variables/brand.native';\nimport defaultTheme, {Theme} from '../../variables/theme.native';\nimport defaultMobileTranslations, {Translations} from '../../variables/default-mobile-translations';\nimport {Vibration} from '../../variables/vibration';\n\nexport type HandleBlur = () => void;\nexport type HandleFocus = (id: string) => () => void;\nexport type FocusedSelectId = string | null;\n\nexport type TemplateContextValues = {\n analytics?: Analytics;\n brandTheme: Brand;\n theme: Theme;\n translations: Translations;\n vibration?: Vibration;\n display: {\n headerHeight: number;\n statusBarHeight: number;\n };\n store: {\n focusedSelectId?: FocusedSelectId;\n handleBlur?: HandleBlur;\n handleFocus?: HandleFocus;\n };\n};\n\ntype Props = {values: TemplateContextValues; children: ReactNode};\n\nconst Context = createContext({\n theme: defaultTheme,\n brandTheme: defaultBrandTheme,\n translations: defaultMobileTranslations,\n display: {\n headerHeight: 67,\n statusBarHeight: 42\n },\n store: {}\n});\n\nconst useTemplateContext = (): TemplateContextValues => {\n const context = useContext(Context);\n\n if (!context) {\n throw new Error(\n `❌ [TemplateContext] useTemplateContext must be used within a provider <TemplateContext>`\n );\n }\n\n return context;\n};\n\nconst TemplateContext = ({values, children}: Props) => {\n return <Context.Provider value={values}>{children}</Context.Provider>;\n};\n\nexport {TemplateContext, useTemplateContext};\n"],"mappings":";;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;AA0BA,MAAMA,OAAO,gBAAG,IAAAC,oBAAA,EAAc;EAC5BC,KAAK,EAAEC,cADqB;EAE5BC,UAAU,EAAEC,wBAFgB;EAG5BC,YAAY,EAAEC,kCAHc;EAI5BC,OAAO,EAAE;IACPC,YAAY,EAAE,EADP;IAEPC,eAAe,EAAE;EAFV,CAJmB;EAQ5BC,KAAK,EAAE;AARqB,CAAd,CAAhB;;AAWA,MAAMC,kBAAkB,GAAG,MAA6B;EACtD,MAAMC,OAAO,GAAG,IAAAC,iBAAA,EAAWd,OAAX,CAAhB;;EAEA,IAAI,CAACa,OAAL,EAAc;IACZ,MAAM,IAAIE,KAAJ,CACH,yFADG,CAAN;EAGD;;EAED,OAAOF,OAAP;AACD,CAVD;;;;AAYA,MAAMG,eAAe,GAAG,CAAC;EAACC,MAAD;EAASC;AAAT,CAAD,KAA+B;EACrD,oBAAO,6BAAC,OAAD,CAAS,QAAT;IAAkB,KAAK,EAAED;EAAzB,GAAkCC,QAAlC,CAAP;AACD,CAFD"}
|