@nuskin/routine-feature 1.0.1 → 2.0.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.
@@ -0,0 +1,320 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from 'react';
3
+ import { SafeAreaView, View, StyleSheet, ScrollView, Text, Image, ImageBackground, Pressable } from 'react-native';
4
+ import { VeraHeader, Logo, HeaderCart, colors } from '@ns/mobile-ui';
5
+ import LinearGradient from 'react-native-linear-gradient';
6
+ import { accessibility } from './helpers/Accessibility';
7
+ function RoutineDetails(props) {
8
+ var _props$route, _item$routine_imageCo, _item$routine_imageCo2, _item$routine_imageCo3;
9
+ const item = (_props$route = props.route) === null || _props$route === void 0 ? void 0 : _props$route.params;
10
+ return /*#__PURE__*/React.createElement(SafeAreaView, {
11
+ style: styles.container,
12
+ testID: "routineStack"
13
+ }, /*#__PURE__*/React.createElement(VeraHeader, _extends({
14
+ left: /*#__PURE__*/React.createElement(Logo, {
15
+ accessibilityLabel: "logo"
16
+ }),
17
+ right: /*#__PURE__*/React.createElement(HeaderCart, {
18
+ accessibilityLabel: "crt-btn"
19
+ }),
20
+ title: item.reference
21
+ }, accessibility(`vera-header`))), /*#__PURE__*/React.createElement(ScrollView, {
22
+ style: styles.routinesContainer
23
+ }, item && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
24
+ style: {
25
+ position: 'relative'
26
+ }
27
+ }, /*#__PURE__*/React.createElement(ImageBackground, _extends({}, accessibility(`image-routine-background`), {
28
+ source: {
29
+ uri: (_item$routine_imageCo = item.routine_imageConnection) === null || _item$routine_imageCo === void 0 ? void 0 : (_item$routine_imageCo2 = _item$routine_imageCo.edges[0]) === null || _item$routine_imageCo2 === void 0 ? void 0 : (_item$routine_imageCo3 = _item$routine_imageCo2.node) === null || _item$routine_imageCo3 === void 0 ? void 0 : _item$routine_imageCo3.url
30
+ },
31
+ style: styles.itemPhoto
32
+ }), /*#__PURE__*/React.createElement(LinearGradient, {
33
+ colors: ['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.6)'],
34
+ locations: [0.6, 1],
35
+ style: styles.imageOverlay
36
+ }), /*#__PURE__*/React.createElement(View, {
37
+ style: styles.itemTitleContainer
38
+ }, /*#__PURE__*/React.createElement(Text, {
39
+ style: styles.itemTextSpan
40
+ }, item.routine_subtitle), /*#__PURE__*/React.createElement(Text, {
41
+ style: styles.itemTextTitle
42
+ }, item.routine_title)))), /*#__PURE__*/React.createElement(View, {
43
+ style: styles.routineDetailsContainer
44
+ }, /*#__PURE__*/React.createElement(View, {
45
+ style: styles.routineDetails
46
+ }, /*#__PURE__*/React.createElement(Text, {
47
+ style: styles.itemTextDescription
48
+ }, item.routines_description), /*#__PURE__*/React.createElement(Text, {
49
+ style: styles.itemText
50
+ }, item.products_used_label), item.products.map((item, index) => {
51
+ var _item$product_imageCo, _item$product_imageCo2, _item$product_imageCo3;
52
+ return /*#__PURE__*/React.createElement(View, {
53
+ key: index,
54
+ style: {
55
+ flexDirection: 'row'
56
+ }
57
+ }, /*#__PURE__*/React.createElement(Image, {
58
+ key: index,
59
+ source: {
60
+ uri: (_item$product_imageCo = item.product_imageConnection) === null || _item$product_imageCo === void 0 ? void 0 : (_item$product_imageCo2 = _item$product_imageCo.edges[0]) === null || _item$product_imageCo2 === void 0 ? void 0 : (_item$product_imageCo3 = _item$product_imageCo2.node) === null || _item$product_imageCo3 === void 0 ? void 0 : _item$product_imageCo3.url
61
+ },
62
+ style: styles.productPhoto,
63
+ resizeMode: "contain"
64
+ }), /*#__PURE__*/React.createElement(View, {
65
+ style: styles.productName
66
+ }, /*#__PURE__*/React.createElement(Text, {
67
+ style: styles.itemTextProduct
68
+ }, item.product_category), /*#__PURE__*/React.createElement(Text, {
69
+ style: styles.itemTextProduct
70
+ }, item.product_name)));
71
+ }))), item.steps.map((item, index) => {
72
+ var _item$imageConnection, _item$imageConnection2, _item$imageConnection3, _item$imageConnection4, _item$imageConnection5, _item$imageConnection6;
73
+ return /*#__PURE__*/React.createElement(View, {
74
+ key: index,
75
+ style: {
76
+ marginHorizontal: 20,
77
+ marginBottom: 15
78
+ }
79
+ }, /*#__PURE__*/React.createElement(View, {
80
+ style: {
81
+ flexDirection: 'row',
82
+ marginVertical: 10
83
+ }
84
+ }, /*#__PURE__*/React.createElement(Text, {
85
+ style: styles.itemTextTitleIndex
86
+ }, index + 1), /*#__PURE__*/React.createElement(Text, {
87
+ style: styles.itemTextStepTitle
88
+ }, item.step_title)), /*#__PURE__*/React.createElement(View, {
89
+ style: styles[`${item.style ? item.style : 'Container'}`]
90
+ }, (item.style === 'Image' || item.style == 'LumiSpaIO') && /*#__PURE__*/React.createElement(Image, {
91
+ source: {
92
+ uri: (_item$imageConnection = item.imageConnection) === null || _item$imageConnection === void 0 ? void 0 : (_item$imageConnection2 = _item$imageConnection.edges[0]) === null || _item$imageConnection2 === void 0 ? void 0 : (_item$imageConnection3 = _item$imageConnection2.node) === null || _item$imageConnection3 === void 0 ? void 0 : _item$imageConnection3.url
93
+ },
94
+ style: styles.stepImagePhoto,
95
+ resizeMode: "contain"
96
+ }), /*#__PURE__*/React.createElement(View, {
97
+ style: styles[`${item.style ? `${item.style}TextContainer` : 'TextContainer'}`]
98
+ }, /*#__PURE__*/React.createElement(Text, {
99
+ style: styles.itemTextStepDescription
100
+ }, item.step_description), /*#__PURE__*/React.createElement(Text, {
101
+ style: styles.itemTextStepSubDescription
102
+ }, item.step_sub_description), item.style === 'LumiSpaIO' && /*#__PURE__*/React.createElement(Pressable, {
103
+ style: styles.textLumiSpaTreatmentContainer
104
+ }, /*#__PURE__*/React.createElement(Text, {
105
+ style: styles.textLumiSpaTreatment
106
+ }, item.image_title)))), item.style === 'Product' && /*#__PURE__*/React.createElement(View, {
107
+ style: styles.stepProductContainer
108
+ }, /*#__PURE__*/React.createElement(Image, {
109
+ source: {
110
+ uri: (_item$imageConnection4 = item.imageConnection) === null || _item$imageConnection4 === void 0 ? void 0 : (_item$imageConnection5 = _item$imageConnection4.edges[0]) === null || _item$imageConnection5 === void 0 ? void 0 : (_item$imageConnection6 = _item$imageConnection5.node) === null || _item$imageConnection6 === void 0 ? void 0 : _item$imageConnection6.url
111
+ },
112
+ style: styles.stepProductPhoto,
113
+ resizeMode: "contain"
114
+ }), /*#__PURE__*/React.createElement(View, {
115
+ style: styles.productName
116
+ }, /*#__PURE__*/React.createElement(Text, {
117
+ style: styles.itemTextStepProduct
118
+ }, item.image_title), /*#__PURE__*/React.createElement(Text, {
119
+ style: styles.itemTextStepProduct
120
+ }, item.image_description))));
121
+ }))));
122
+ }
123
+ const styles = StyleSheet.create({
124
+ container: {
125
+ flex: 1,
126
+ backgroundColor: colors.white
127
+ },
128
+ routinesContainer: {
129
+ backgroundColor: colors.primaryGray,
130
+ flex: 1
131
+ },
132
+ sectionHeader: {
133
+ textTransform: 'uppercase',
134
+ fontWeight: '600',
135
+ fontSize: 14,
136
+ // color: '#f4f4f4',
137
+ marginTop: 20,
138
+ paddingHorizontal: 15,
139
+ marginBottom: 5
140
+ },
141
+ imageOverlay: {
142
+ position: 'absolute',
143
+ left: 0,
144
+ right: 0,
145
+ top: 0,
146
+ height: '100%'
147
+ },
148
+ item: {
149
+ margin: 10,
150
+ borderRadius: 14
151
+ },
152
+ itemPhoto: {
153
+ width: '100%',
154
+ minHeight: 160,
155
+ aspectRatio: 1.5
156
+ },
157
+ Image: {
158
+ flexDirection: 'row',
159
+ flex: 1,
160
+ backgroundColor: colors.white
161
+ },
162
+ ImageTextContainer: {
163
+ flex: 1,
164
+ padding: 20
165
+ },
166
+ LumiSpaIOTextContainer: {
167
+ flex: 1,
168
+ padding: 20
169
+ },
170
+ Container: {
171
+ flexDirection: 'column',
172
+ flex: 1,
173
+ padding: 20,
174
+ backgroundColor: colors.white
175
+ },
176
+ Product: {
177
+ flexDirection: 'column',
178
+ flex: 1,
179
+ padding: 20,
180
+ backgroundColor: colors.white
181
+ },
182
+ LumiSpaIO: {
183
+ flexDirection: 'row',
184
+ flex: 1,
185
+ backgroundColor: colors.white
186
+ },
187
+ productName: {
188
+ flex: 1,
189
+ justifyContent: 'center',
190
+ marginLeft: 5
191
+ },
192
+ routineDetailsContainer: {
193
+ backgroundColor: 'white',
194
+ paddingTop: 20,
195
+ paddingBottom: 10,
196
+ marginBottom: 10
197
+ },
198
+ routineDetails: {
199
+ flexDirection: 'column',
200
+ paddingHorizontal: 15,
201
+ paddingVertical: 10
202
+ },
203
+ stepImagePhoto: {
204
+ width: 130,
205
+ minHeight: 150
206
+ },
207
+ stepProductPhoto: {
208
+ width: 80,
209
+ height: 80
210
+ },
211
+ stepProductContainer: {
212
+ flexDirection: 'row',
213
+ backgroundColor: colors.white,
214
+ paddingHorizontal: 20,
215
+ paddingBottom: 20
216
+ },
217
+ productPhoto: {
218
+ margin: 2,
219
+ width: 40,
220
+ height: 40,
221
+ borderRadius: 50,
222
+ borderColor: '#EDEDED',
223
+ borderWidth: 1
224
+ },
225
+ itemTextStepProduct: {
226
+ fontWeight: '400',
227
+ fontSize: 13,
228
+ lineHeight: 18
229
+ },
230
+ itemTitleContainer: {
231
+ flexDirection: 'column',
232
+ justifyContent: 'space-between',
233
+ paddingHorizontal: 15,
234
+ position: 'absolute',
235
+ bottom: 20
236
+ },
237
+ itemTextSpan: {
238
+ color: colors.white,
239
+ fontWeight: '400',
240
+ fontSize: 14,
241
+ textTransform: 'uppercase'
242
+ },
243
+ itemTextTitleIndex: {
244
+ color: colors.accentB400,
245
+ fontWeight: '400',
246
+ fontSize: 20,
247
+ lineHeight: 26,
248
+ paddingRight: 10
249
+ },
250
+ itemTextStepTitle: {
251
+ color: colors.primaryBlack,
252
+ fontWeight: '600',
253
+ fontSize: 18,
254
+ lineHeight: 26
255
+ },
256
+ itemTextStepSubDescription: {
257
+ fontWeight: '700',
258
+ fontSize: 10,
259
+ lineHeight: 15,
260
+ letterSpacing: 0.5,
261
+ paddingTop: 5,
262
+ textTransform: 'uppercase'
263
+ },
264
+ itemTextTitle: {
265
+ color: colors.white,
266
+ fontWeight: '400',
267
+ fontSize: 26
268
+ },
269
+ itemTextDescription: {
270
+ color: colors.primaryBlack,
271
+ fontWeight: '400',
272
+ fontSize: 14,
273
+ lineHeight: 20,
274
+ paddingBottom: 20
275
+ },
276
+ itemText: {
277
+ color: colors.primaryBlack,
278
+ fontWeight: 'bold',
279
+ fontSize: 12,
280
+ letterSpacing: 0.05,
281
+ paddingBottom: 5,
282
+ textTransform: 'uppercase'
283
+ },
284
+ itemTextStepDescription: {
285
+ color: colors.primaryBlack,
286
+ fontWeight: 'bold',
287
+ fontSize: 12,
288
+ letterSpacing: 0.05,
289
+ paddingBottom: 5
290
+ },
291
+ itemTextProduct: {
292
+ color: colors.primaryBlack,
293
+ fontSize: 11,
294
+ fontWeight: '600',
295
+ textTransform: 'uppercase',
296
+ letterSpacing: 0.05
297
+ },
298
+ itemTextSteps: {
299
+ color: colors.primaryBlack,
300
+ fontWeight: 'bold',
301
+ textTransform: 'uppercase'
302
+ },
303
+ textLumiSpaTreatmentContainer: {
304
+ marginTop: 10,
305
+ padding: 10,
306
+ textAlign: 'center',
307
+ borderStyle: 'solid',
308
+ borderWidth: 1,
309
+ borderColor: colors.primaryBlack
310
+ },
311
+ textLumiSpaTreatment: {
312
+ textAlign: 'center',
313
+ fontSize: 14,
314
+ fontWeight: '600',
315
+ lineHeight: 16,
316
+ letterSpacing: 0.05
317
+ }
318
+ });
319
+ export default RoutineDetails;
320
+ //# sourceMappingURL=RoutineDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","SafeAreaView","View","StyleSheet","ScrollView","Text","Image","ImageBackground","Pressable","VeraHeader","Logo","HeaderCart","colors","LinearGradient","accessibility","RoutineDetails","props","item","route","params","styles","container","reference","routinesContainer","position","uri","routine_imageConnection","edges","node","url","itemPhoto","imageOverlay","itemTitleContainer","itemTextSpan","routine_subtitle","itemTextTitle","routine_title","routineDetailsContainer","routineDetails","itemTextDescription","routines_description","itemText","products_used_label","products","map","index","flexDirection","product_imageConnection","productPhoto","productName","itemTextProduct","product_category","product_name","steps","marginHorizontal","marginBottom","marginVertical","itemTextTitleIndex","itemTextStepTitle","step_title","style","imageConnection","stepImagePhoto","itemTextStepDescription","step_description","itemTextStepSubDescription","step_sub_description","textLumiSpaTreatmentContainer","textLumiSpaTreatment","image_title","stepProductContainer","stepProductPhoto","itemTextStepProduct","image_description","create","flex","backgroundColor","white","primaryGray","sectionHeader","textTransform","fontWeight","fontSize","marginTop","paddingHorizontal","left","right","top","height","margin","borderRadius","width","minHeight","aspectRatio","ImageTextContainer","padding","LumiSpaIOTextContainer","Container","Product","LumiSpaIO","justifyContent","marginLeft","paddingTop","paddingBottom","paddingVertical","borderColor","borderWidth","lineHeight","bottom","color","accentB400","paddingRight","primaryBlack","letterSpacing","itemTextSteps","textAlign","borderStyle"],"sources":["RoutineDetails.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SafeAreaView,\n View,\n StyleSheet,\n ScrollView,\n Text,\n Image,\n ImageBackground,\n Pressable,\n} from 'react-native';\nimport { VeraHeader, Logo, HeaderCart, colors } from '@ns/mobile-ui';\nimport LinearGradient from 'react-native-linear-gradient';\nimport { accessibility } from './helpers/Accessibility';\n\nfunction RoutineDetails(props) {\n const item = props.route?.params;\n return (\n <SafeAreaView style={styles.container} testID=\"routineStack\">\n <VeraHeader\n left={<Logo accessibilityLabel=\"logo\" />}\n right={<HeaderCart accessibilityLabel=\"crt-btn\" />}\n title={item.reference}\n {...accessibility(`vera-header`)}\n />\n <ScrollView style={styles.routinesContainer}>\n {item && (\n <>\n <View style={{ position: 'relative' }}>\n <ImageBackground\n {...accessibility(`image-routine-background`)}\n source={{\n uri: item.routine_imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.itemPhoto}\n >\n <LinearGradient\n colors={['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.6)']}\n locations={[0.6, 1]}\n style={styles.imageOverlay}\n />\n <View style={styles.itemTitleContainer}>\n <Text style={styles.itemTextSpan}>\n {item.routine_subtitle}\n </Text>\n <Text style={styles.itemTextTitle}>{item.routine_title}</Text>\n </View>\n </ImageBackground>\n </View>\n <View style={styles.routineDetailsContainer}>\n <View style={styles.routineDetails}>\n <Text style={styles.itemTextDescription}>\n {item.routines_description}\n </Text>\n <Text style={styles.itemText}>{item.products_used_label}</Text>\n {item.products.map((item, index) => {\n return (\n <View key={index} style={{ flexDirection: 'row' }}>\n <Image\n key={index}\n source={{\n uri: item.product_imageConnection?.edges[0]?.node\n ?.url,\n }}\n style={styles.productPhoto}\n resizeMode=\"contain\"\n />\n <View style={styles.productName}>\n <Text style={styles.itemTextProduct}>\n {item.product_category}\n </Text>\n <Text style={styles.itemTextProduct}>\n {item.product_name}\n </Text>\n </View>\n </View>\n );\n })}\n </View>\n </View>\n {item.steps.map((item, index) => {\n return (\n <View\n key={index}\n style={{\n marginHorizontal: 20,\n marginBottom: 15,\n }}\n >\n <View\n style={{\n flexDirection: 'row',\n marginVertical: 10,\n }}\n >\n <Text style={styles.itemTextTitleIndex}>{index + 1}</Text>\n <Text style={styles.itemTextStepTitle}>\n {item.step_title}\n </Text>\n </View>\n <View\n style={styles[`${item.style ? item.style : 'Container'}`]}\n >\n {(item.style === 'Image' || item.style == 'LumiSpaIO') && (\n <Image\n source={{\n uri: item.imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.stepImagePhoto}\n resizeMode=\"contain\"\n />\n )}\n <View\n style={\n styles[\n `${\n item.style\n ? `${item.style}TextContainer`\n : 'TextContainer'\n }`\n ]\n }\n >\n <Text style={styles.itemTextStepDescription}>\n {item.step_description}\n </Text>\n <Text style={styles.itemTextStepSubDescription}>\n {item.step_sub_description}\n </Text>\n {item.style === 'LumiSpaIO' && (\n <Pressable style={styles.textLumiSpaTreatmentContainer}>\n <Text style={styles.textLumiSpaTreatment}>\n {item.image_title}\n </Text>\n </Pressable>\n )}\n </View>\n </View>\n {item.style === 'Product' && (\n <View style={styles.stepProductContainer}>\n <Image\n source={{\n uri: item.imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.stepProductPhoto}\n resizeMode=\"contain\"\n />\n <View style={styles.productName}>\n <Text style={styles.itemTextStepProduct}>\n {item.image_title}\n </Text>\n <Text style={styles.itemTextStepProduct}>\n {item.image_description}\n </Text>\n </View>\n </View>\n )}\n </View>\n );\n })}\n </>\n )}\n </ScrollView>\n </SafeAreaView>\n );\n}\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: colors.white,\n },\n routinesContainer: {\n backgroundColor: colors.primaryGray,\n flex: 1,\n },\n sectionHeader: {\n textTransform: 'uppercase',\n fontWeight: '600',\n fontSize: 14,\n // color: '#f4f4f4',\n marginTop: 20,\n paddingHorizontal: 15,\n marginBottom: 5,\n },\n imageOverlay: {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n height: '100%',\n },\n item: {\n margin: 10,\n borderRadius: 14,\n },\n itemPhoto: {\n width: '100%',\n minHeight: 160,\n aspectRatio: 1.5,\n },\n Image: {\n flexDirection: 'row',\n flex: 1,\n backgroundColor: colors.white,\n },\n ImageTextContainer: {\n flex: 1,\n padding: 20,\n },\n LumiSpaIOTextContainer: {\n flex: 1,\n padding: 20,\n },\n Container: {\n flexDirection: 'column',\n flex: 1,\n padding: 20,\n backgroundColor: colors.white,\n },\n Product: {\n flexDirection: 'column',\n flex: 1,\n padding: 20,\n backgroundColor: colors.white,\n },\n LumiSpaIO: {\n flexDirection: 'row',\n flex: 1,\n backgroundColor: colors.white,\n },\n productName: {\n flex: 1,\n justifyContent: 'center',\n marginLeft: 5,\n },\n routineDetailsContainer: {\n backgroundColor: 'white',\n paddingTop: 20,\n paddingBottom: 10,\n marginBottom: 10,\n },\n routineDetails: {\n flexDirection: 'column',\n paddingHorizontal: 15,\n paddingVertical: 10,\n },\n stepImagePhoto: {\n width: 130,\n minHeight: 150,\n },\n stepProductPhoto: {\n width: 80,\n height: 80,\n },\n stepProductContainer: {\n flexDirection: 'row',\n backgroundColor: colors.white,\n paddingHorizontal: 20,\n paddingBottom: 20,\n },\n productPhoto: {\n margin: 2,\n width: 40,\n height: 40,\n borderRadius: 50,\n borderColor: '#EDEDED',\n borderWidth: 1,\n },\n itemTextStepProduct: {\n fontWeight: '400',\n fontSize: 13,\n lineHeight: 18,\n },\n itemTitleContainer: {\n flexDirection: 'column',\n justifyContent: 'space-between',\n paddingHorizontal: 15,\n position: 'absolute',\n bottom: 20,\n },\n itemTextSpan: {\n color: colors.white,\n fontWeight: '400',\n fontSize: 14,\n textTransform: 'uppercase',\n },\n itemTextTitleIndex: {\n color: colors.accentB400,\n fontWeight: '400',\n fontSize: 20,\n lineHeight: 26,\n paddingRight: 10,\n },\n itemTextStepTitle: {\n color: colors.primaryBlack,\n fontWeight: '600',\n fontSize: 18,\n lineHeight: 26,\n },\n itemTextStepSubDescription: {\n fontWeight: '700',\n fontSize: 10,\n lineHeight: 15,\n letterSpacing: 0.5,\n paddingTop: 5,\n textTransform: 'uppercase',\n },\n itemTextTitle: {\n color: colors.white,\n fontWeight: '400',\n fontSize: 26,\n },\n itemTextDescription: {\n color: colors.primaryBlack,\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n paddingBottom: 20,\n },\n itemText: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n fontSize: 12,\n letterSpacing: 0.05,\n paddingBottom: 5,\n textTransform: 'uppercase',\n },\n itemTextStepDescription: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n fontSize: 12,\n letterSpacing: 0.05,\n paddingBottom: 5,\n },\n itemTextProduct: {\n color: colors.primaryBlack,\n fontSize: 11,\n fontWeight: '600',\n textTransform: 'uppercase',\n letterSpacing: 0.05,\n },\n itemTextSteps: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n textTransform: 'uppercase',\n },\n textLumiSpaTreatmentContainer: {\n marginTop: 10,\n padding: 10,\n textAlign: 'center',\n borderStyle: 'solid',\n borderWidth: 1,\n borderColor: colors.primaryBlack,\n },\n textLumiSpaTreatment: {\n textAlign: 'center',\n fontSize: 14,\n fontWeight: '600',\n lineHeight: 16,\n letterSpacing: 0.05,\n },\n});\nexport default RoutineDetails;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,YAAY,EACZC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,KAAK,EACLC,eAAe,EACfC,SAAS,QACJ,cAAc;AACrB,SAASC,UAAU,EAAEC,IAAI,EAAEC,UAAU,EAAEC,MAAM,QAAQ,eAAe;AACpE,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,aAAa,QAAQ,yBAAyB;AAEvD,SAASC,cAAc,CAACC,KAAK,EAAE;EAAA;EAC7B,MAAMC,IAAI,mBAAGD,KAAK,CAACE,KAAK,iDAAX,aAAaC,MAAM;EAChC,oBACE,oBAAC,YAAY;IAAC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAC,MAAM,EAAC;EAAc,gBAC1D,oBAAC,UAAU;IACT,IAAI,eAAE,oBAAC,IAAI;MAAC,kBAAkB,EAAC;IAAM,EAAI;IACzC,KAAK,eAAE,oBAAC,UAAU;MAAC,kBAAkB,EAAC;IAAS,EAAI;IACnD,KAAK,EAAEJ,IAAI,CAACK;EAAU,GAClBR,aAAa,CAAE,aAAY,CAAC,EAChC,eACF,oBAAC,UAAU;IAAC,KAAK,EAAEM,MAAM,CAACG;EAAkB,GACzCN,IAAI,iBACH,uDACE,oBAAC,IAAI;IAAC,KAAK,EAAE;MAAEO,QAAQ,EAAE;IAAW;EAAE,gBACpC,oBAAC,eAAe,eACVV,aAAa,CAAE,0BAAyB,CAAC;IAC7C,MAAM,EAAE;MACNW,GAAG,2BAAER,IAAI,CAACS,uBAAuB,oFAA5B,sBAA8BC,KAAK,CAA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BAAuB,EAAE;IACvB8C,KAAK,EAAEjG,MAAM,CAACoG,YAAY;IAC1B/B,UAAU,EAAE,MAAM;IAClBC,QAAQ,EAAE,EAAE;IACZ+B,aAAa,EAAE,IAAI;IACnBV,aAAa,EAAE;EACjB,CAAC;EACDrD,eAAe,EAAE;IACf2D,KAAK,EAAEjG,MAAM,CAACoG,YAAY;IAC1B9B,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE,KAAK;IACjBD,aAAa,EAAE,WAAW;IAC1BiC,aAAa,EAAE;EACjB,CAAC;EACDC,aAAa,EAAE;IACbL,KAAK,EAAEjG,MAAM,CAACoG,YAAY;IAC1B/B,UAAU,EAAE,MAAM;IAClBD,aAAa,EAAE;EACjB,CAAC;EACDb,6BAA6B,EAAE;IAC7BgB,SAAS,EAAE,EAAE;IACbY,OAAO,EAAE,EAAE;IACXoB,SAAS,EAAE,QAAQ;IACnBC,WAAW,EAAE,OAAO;IACpBV,WAAW,EAAE,CAAC;IACdD,WAAW,EAAE7F,MAAM,CAACoG;EACtB,CAAC;EACD5C,oBAAoB,EAAE;IACpB+C,SAAS,EAAE,QAAQ;IACnBjC,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE,KAAK;IACjB0B,UAAU,EAAE,EAAE;IACdM,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AACF,eAAelG,cAAc"}
@@ -0,0 +1,11 @@
1
+ import { Platform } from 'react-native';
2
+ export function accessibility(id) {
3
+ return Platform.OS === 'android' ? {
4
+ accessible: true,
5
+ accessibilityLabel: id
6
+ } : {
7
+ accessible: false,
8
+ testID: id
9
+ };
10
+ }
11
+ //# sourceMappingURL=Accessibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","accessibility","id","OS","accessible","accessibilityLabel","testID"],"sources":["Accessibility.tsx"],"sourcesContent":["import { Platform } from 'react-native';\n\nexport function accessibility(id?: string) {\n return Platform.OS === 'android'\n ? { accessible: true, accessibilityLabel: id }\n : { accessible: false, testID: id };\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,SAASC,aAAa,CAACC,EAAW,EAAE;EACzC,OAAOF,QAAQ,CAACG,EAAE,KAAK,SAAS,GAC5B;IAAEC,UAAU,EAAE,IAAI;IAAEC,kBAAkB,EAAEH;EAAG,CAAC,GAC5C;IAAEE,UAAU,EAAE,KAAK;IAAEE,MAAM,EAAEJ;EAAG,CAAC;AACvC"}