be-components 6.5.2 → 6.5.4
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/lib/commonjs/Guide/index.js +246 -0
- package/lib/commonjs/Guide/index.js.map +1 -0
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Guide/index.js +239 -0
- package/lib/module/Guide/index.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Guide/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/{GuideView → Guide}/index.d.ts +1 -1
- package/lib/typescript/lib/module/Guide/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +1 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Guide/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Guide/index.tsx +248 -0
- package/src/index.tsx +1 -1
- package/lib/commonjs/GuideView/index.js +0 -216
- package/lib/commonjs/GuideView/index.js.map +0 -1
- package/lib/module/GuideView/index.js +0 -209
- package/lib/module/GuideView/index.js.map +0 -1
- package/lib/typescript/lib/commonjs/GuideView/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/GuideView/index.d.ts.map +0 -1
- package/lib/typescript/src/GuideView/index.d.ts.map +0 -1
- package/src/GuideView/index.tsx +0 -176
- /package/lib/typescript/lib/commonjs/{GuideView → Guide}/index.d.ts +0 -0
- /package/lib/typescript/src/{GuideView → Guide}/index.d.ts +0 -0
|
@@ -54,6 +54,6 @@ import Premium from './Premium';
|
|
|
54
54
|
import ManageFilter from './BetMatch/components/ManageFilter';
|
|
55
55
|
import ClaritySmartEvents from './Clarity/SmartEvents';
|
|
56
56
|
import RankingsCard from './RankingsCard';
|
|
57
|
-
import GuideView from './
|
|
57
|
+
import GuideView from './Guide';
|
|
58
58
|
export { Authenticator, Observer, BEEventApi, RankingsCard, BELinkApi, GuideView, BetMatch, ManageFilter, Ticker, Premium, LeaderboardCard, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
59
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAA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sBAAsB,EACtB,UAAU,EACX,CAAA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect } from "react";
|
|
2
|
+
import {
|
|
3
|
+
Platform,
|
|
4
|
+
useWindowDimensions,
|
|
5
|
+
UIManager,
|
|
6
|
+
findNodeHandle,
|
|
7
|
+
TouchableOpacity,
|
|
8
|
+
TouchableHighlight,
|
|
9
|
+
TouchableWithoutFeedback,
|
|
10
|
+
} from "react-native";
|
|
11
|
+
import type { GuideWrapProps } from "../types";
|
|
12
|
+
import { Button, Text, View } from "../Components/Themed";
|
|
13
|
+
import { useColors } from "../constants/useColors";
|
|
14
|
+
import { Icons } from "../Components";
|
|
15
|
+
|
|
16
|
+
export type GuideWrapperProps = {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
guide?: GuideWrapProps;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type Layout = { x: number; y: number; width: number; height: number };
|
|
22
|
+
|
|
23
|
+
export default function GuideWrapper({ children, guide }: GuideWrapperProps) {
|
|
24
|
+
const Colors = useColors();
|
|
25
|
+
const wrapper_guid = guide ?? {};
|
|
26
|
+
const [ tooltip_height, setTooltipHeight ] = useState(0);
|
|
27
|
+
const { tour, active, onComplete } = wrapper_guid;
|
|
28
|
+
|
|
29
|
+
const refs = useRef<{ [key: string]: any }>({});
|
|
30
|
+
const containerRef = useRef<any>(null);
|
|
31
|
+
|
|
32
|
+
const [currentStep, setCurrentStep] = useState(0);
|
|
33
|
+
const [layout, setLayout] = useState<Layout | null>(null);
|
|
34
|
+
const [containerLayout, setContainerLayout] = useState<Layout>({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 0,
|
|
38
|
+
height: 0,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const { width: screenWidth } = useWindowDimensions();
|
|
42
|
+
|
|
43
|
+
const sortedTour = tour
|
|
44
|
+
? [...tour].sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))
|
|
45
|
+
: [];
|
|
46
|
+
const step = sortedTour[currentStep];
|
|
47
|
+
const stepRef = step ? refs.current[step.nativeID] : undefined;
|
|
48
|
+
console.log(Object.keys(refs.current))
|
|
49
|
+
// Measure the current step element relative to container
|
|
50
|
+
const measureStep = () => {
|
|
51
|
+
if (!stepRef || !containerRef.current) return;
|
|
52
|
+
if (Platform.OS === "web") {
|
|
53
|
+
const containerRect = containerRef.current.getBoundingClientRect();
|
|
54
|
+
const rect = stepRef.getBoundingClientRect();
|
|
55
|
+
setLayout({
|
|
56
|
+
x: rect.left - containerRect.left,
|
|
57
|
+
y: rect.top - containerRect.top,
|
|
58
|
+
width: rect.width,
|
|
59
|
+
height: rect.height,
|
|
60
|
+
});
|
|
61
|
+
} else {
|
|
62
|
+
const handle = findNodeHandle(stepRef);
|
|
63
|
+
const containerHandle = findNodeHandle(containerRef.current);
|
|
64
|
+
if (!handle || !containerHandle) return;
|
|
65
|
+
|
|
66
|
+
UIManager.measureLayout(
|
|
67
|
+
handle,
|
|
68
|
+
containerHandle,
|
|
69
|
+
() => console.log("measureLayout failed"),
|
|
70
|
+
(x: number, y: number, width: number, height: number) =>
|
|
71
|
+
setLayout({ x, y, width, height })
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Re-measure on active, currentStep, or container layout changes
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
if (!active || !step) return;
|
|
79
|
+
|
|
80
|
+
// Timeout ensures element is mounted
|
|
81
|
+
setTimeout(() => measureStep(), 0);
|
|
82
|
+
}, [active, currentStep, step, containerLayout]);
|
|
83
|
+
|
|
84
|
+
// Re-measure on web resize
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (Platform.OS === "web") {
|
|
87
|
+
const handleResize = () => measureStep();
|
|
88
|
+
window.addEventListener("resize", handleResize);
|
|
89
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
90
|
+
}
|
|
91
|
+
return
|
|
92
|
+
}, [currentStep, step]);
|
|
93
|
+
|
|
94
|
+
const isTouchable = (child: any) => {
|
|
95
|
+
const typeName = (child.type as any)?.displayName || child.type;
|
|
96
|
+
return (
|
|
97
|
+
child.type === TouchableOpacity ||
|
|
98
|
+
child.type === TouchableHighlight ||
|
|
99
|
+
child.type === TouchableWithoutFeedback ||
|
|
100
|
+
(typeof typeName === "string" && typeName.startsWith("Touchable"))
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// Recursively attach refs to children with nativeID (only native elements)
|
|
105
|
+
const attachRefs = (nodes: React.ReactNode): React.ReactNode => {
|
|
106
|
+
return React.Children.map(nodes, (child) => {
|
|
107
|
+
if (!React.isValidElement(child)) return child;
|
|
108
|
+
|
|
109
|
+
const props = child.props as { nativeID?: string; children?: React.ReactNode };
|
|
110
|
+
const nativeID = props.nativeID;
|
|
111
|
+
const newChildren = props.children ? attachRefs(props.children) : props.children;
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
if (nativeID) {
|
|
115
|
+
// Wrap touchables in a View to get a proper measure if needed
|
|
116
|
+
if (isTouchable(child)) {
|
|
117
|
+
return (
|
|
118
|
+
<View
|
|
119
|
+
ref={(r: any) => {
|
|
120
|
+
if (r) refs.current[nativeID] = r;
|
|
121
|
+
}}
|
|
122
|
+
style={{ flex: 0 }}
|
|
123
|
+
>
|
|
124
|
+
{React.cloneElement(child as React.ReactElement<any>, { children: newChildren } as any)}
|
|
125
|
+
</View>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return React.cloneElement(child as React.ReactElement<any>, {
|
|
130
|
+
ref: (r: any) => {
|
|
131
|
+
if (r) refs.current[nativeID] = r;
|
|
132
|
+
},
|
|
133
|
+
children: newChildren,
|
|
134
|
+
} as any);
|
|
135
|
+
} else if (newChildren !== props.children) {
|
|
136
|
+
return React.cloneElement(child as React.ReactElement<any>, { children: newChildren } as any);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return child;
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
const handleNext = () => {
|
|
143
|
+
if (currentStep + 1 < sortedTour.length) {
|
|
144
|
+
setCurrentStep(currentStep + 1);
|
|
145
|
+
} else {
|
|
146
|
+
onComplete?.("complete");
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const handlePrev = () => {
|
|
151
|
+
if (currentStep > 0) setCurrentStep(currentStep - 1);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
if (!tour) return <>{children}</>;
|
|
155
|
+
|
|
156
|
+
if (!layout || !active || !step)
|
|
157
|
+
return <View ref={containerRef}>{attachRefs(children)}</View>;
|
|
158
|
+
|
|
159
|
+
const MIN_WIDTH = 300;
|
|
160
|
+
const right = layout.x + MIN_WIDTH > containerLayout.width;
|
|
161
|
+
const isLastStep = currentStep === sortedTour.length - 1;
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
<View
|
|
165
|
+
ref={containerRef}
|
|
166
|
+
onLayout={(ev) => {
|
|
167
|
+
const l = ev.nativeEvent.layout;
|
|
168
|
+
setContainerLayout({
|
|
169
|
+
x: l.x,
|
|
170
|
+
y: l.y,
|
|
171
|
+
width: l.width,
|
|
172
|
+
height: l.height,
|
|
173
|
+
});
|
|
174
|
+
}}
|
|
175
|
+
style={{ flex: 1 }}
|
|
176
|
+
>
|
|
177
|
+
{attachRefs(children)}
|
|
178
|
+
|
|
179
|
+
{/* Highlight */}
|
|
180
|
+
<View
|
|
181
|
+
transparent
|
|
182
|
+
pointerEvents="none"
|
|
183
|
+
style={{
|
|
184
|
+
position: "absolute",
|
|
185
|
+
zIndex: 9999999,
|
|
186
|
+
borderWidth: 2,
|
|
187
|
+
borderColor: Colors.text.success,
|
|
188
|
+
borderRadius: 4,
|
|
189
|
+
top: layout.y - 5,
|
|
190
|
+
left: layout.x - 5,
|
|
191
|
+
width: layout.width + 10,
|
|
192
|
+
height: layout.height + 10,
|
|
193
|
+
}}
|
|
194
|
+
/>
|
|
195
|
+
|
|
196
|
+
{/* Tooltip */}
|
|
197
|
+
<View
|
|
198
|
+
onLayout={(ev) => {
|
|
199
|
+
const { height } = ev.nativeEvent.layout
|
|
200
|
+
setTooltipHeight(height)
|
|
201
|
+
}}
|
|
202
|
+
style={{
|
|
203
|
+
position: "absolute",
|
|
204
|
+
maxWidth: screenWidth - 10,
|
|
205
|
+
minWidth: 300,
|
|
206
|
+
borderColor: Colors.text.success,
|
|
207
|
+
borderWidth: 1,
|
|
208
|
+
borderRadius: 8,
|
|
209
|
+
padding: 10,
|
|
210
|
+
top: layout.y - tooltip_height - 10,
|
|
211
|
+
left: right ? undefined : layout.x,
|
|
212
|
+
right: right ? 5 : undefined,
|
|
213
|
+
zIndex: 9999999,
|
|
214
|
+
}}
|
|
215
|
+
>
|
|
216
|
+
{step.title && (
|
|
217
|
+
<View style={{ flexDirection: "row", alignItems: "center", marginBottom: 5 }}>
|
|
218
|
+
<Icons.AlertIcon size={14} color={Colors.text.warning} />
|
|
219
|
+
<Text theme="h1" style={{ flex: 1, marginLeft: 10, marginRight: 10 }}>
|
|
220
|
+
{step.title}
|
|
221
|
+
</Text>
|
|
222
|
+
<Button
|
|
223
|
+
style={{ height: 30, width: 30, borderRadius: 100, padding: 0, justifyContent: "center", alignItems: "center" }}
|
|
224
|
+
title="X"
|
|
225
|
+
type="error"
|
|
226
|
+
onPress={() => (onComplete ? onComplete("cancelled") : null)}
|
|
227
|
+
/>
|
|
228
|
+
</View>
|
|
229
|
+
)}
|
|
230
|
+
|
|
231
|
+
{step.body && (
|
|
232
|
+
<View style={{ paddingVertical: 5 }}>
|
|
233
|
+
<Text theme="h2">{step.body}</Text>
|
|
234
|
+
</View>
|
|
235
|
+
)}
|
|
236
|
+
|
|
237
|
+
<View style={{ flexDirection: "row", alignItems: "center", marginTop: 5 }}>
|
|
238
|
+
{currentStep > 0 && (
|
|
239
|
+
<Button type="action" onPress={handlePrev} style={{ flex: 1, marginRight: 5 }} title="BACK" />
|
|
240
|
+
)}
|
|
241
|
+
{!step.clickable && (
|
|
242
|
+
<Button type="success" onPress={handleNext} style={{ flex: 1 }} title={isLastStep ? "Done" : "Next"} />
|
|
243
|
+
)}
|
|
244
|
+
</View>
|
|
245
|
+
</View>
|
|
246
|
+
</View>
|
|
247
|
+
);
|
|
248
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -56,7 +56,7 @@ import Premium from './Premium';
|
|
|
56
56
|
import ManageFilter from './BetMatch/components/ManageFilter';
|
|
57
57
|
import ClaritySmartEvents from './Clarity/SmartEvents';
|
|
58
58
|
import RankingsCard from './RankingsCard';
|
|
59
|
-
import GuideView from './
|
|
59
|
+
import GuideView from './Guide';
|
|
60
60
|
|
|
61
61
|
export {
|
|
62
62
|
Authenticator,
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = GuideWrapper;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Themed = require("../Components/Themed");
|
|
10
|
-
var _useColors = require("../constants/useColors");
|
|
11
|
-
var _Components = require("../Components");
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
function GuideWrapper({
|
|
14
|
-
children,
|
|
15
|
-
guide
|
|
16
|
-
}) {
|
|
17
|
-
const Colors = (0, _useColors.useColors)();
|
|
18
|
-
const wrapper_guid = guide ?? {};
|
|
19
|
-
const {
|
|
20
|
-
tour,
|
|
21
|
-
active,
|
|
22
|
-
onComplete
|
|
23
|
-
} = wrapper_guid;
|
|
24
|
-
const refs = (0, _react.useRef)({});
|
|
25
|
-
const [currentStep, setCurrentStep] = (0, _react.useState)(0);
|
|
26
|
-
const [layout, setLayout] = (0, _react.useState)(null);
|
|
27
|
-
const [container_layout, setContainerLayout] = (0, _react.useState)({
|
|
28
|
-
height: 0,
|
|
29
|
-
width: 0,
|
|
30
|
-
x: 0,
|
|
31
|
-
y: 0
|
|
32
|
-
});
|
|
33
|
-
const {
|
|
34
|
-
width
|
|
35
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
36
|
-
//Check if it is negative
|
|
37
|
-
const MIN_WIDTH = 300;
|
|
38
|
-
let right = false;
|
|
39
|
-
if (layout) {
|
|
40
|
-
let right_side = layout.x + MIN_WIDTH;
|
|
41
|
-
if (right_side > container_layout.width) {
|
|
42
|
-
right = true;
|
|
43
|
-
}
|
|
44
|
-
//Check if it goes over the bottom
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Recursively attach refs to children with nativeID
|
|
48
|
-
const attachRefs = nodes => {
|
|
49
|
-
return _react.default.Children.map(nodes, child => {
|
|
50
|
-
if (! /*#__PURE__*/_react.default.isValidElement(child)) return child;
|
|
51
|
-
const props = child.props || {};
|
|
52
|
-
const nativeID = props.nativeID;
|
|
53
|
-
const newChildren = props.children ? attachRefs(props.children) : props.children;
|
|
54
|
-
if (nativeID) {
|
|
55
|
-
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
56
|
-
ref: ref => {
|
|
57
|
-
if (ref) refs.current[nativeID] = ref;
|
|
58
|
-
},
|
|
59
|
-
children: newChildren
|
|
60
|
-
});
|
|
61
|
-
} else if (newChildren !== props.children) {
|
|
62
|
-
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
63
|
-
children: newChildren
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
return child;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
if (!tour || !active) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
|
|
70
|
-
const sortedTour = [...tour].sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0));
|
|
71
|
-
const step = sortedTour[currentStep];
|
|
72
|
-
if (!step) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, attachRefs(children));
|
|
73
|
-
const ref = refs.current[step.nativeID];
|
|
74
|
-
// Measure the current step element
|
|
75
|
-
(0, _react.useEffect)(() => {
|
|
76
|
-
if (!step || !ref) return;
|
|
77
|
-
if (_reactNative.Platform.OS === "web") {
|
|
78
|
-
const rect = ref.getBoundingClientRect();
|
|
79
|
-
setLayout({
|
|
80
|
-
x: rect.left - container_layout.x,
|
|
81
|
-
y: rect.top - container_layout.y,
|
|
82
|
-
width: rect.width,
|
|
83
|
-
height: rect.height
|
|
84
|
-
});
|
|
85
|
-
} else if (ref && typeof ref.measure === "function") {
|
|
86
|
-
ref.measure((width, height, pageX, pageY) => {
|
|
87
|
-
setLayout({
|
|
88
|
-
x: pageX,
|
|
89
|
-
y: pageY,
|
|
90
|
-
width,
|
|
91
|
-
height
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}, [currentStep, step, ref, container_layout.x]);
|
|
96
|
-
const handleNext = () => {
|
|
97
|
-
if (currentStep + 1 < sortedTour.length) {
|
|
98
|
-
setCurrentStep(currentStep + 1);
|
|
99
|
-
} else {
|
|
100
|
-
onComplete?.("complete");
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
const handlePrev = () => {
|
|
104
|
-
if (currentStep > 0) setCurrentStep(currentStep - 1);
|
|
105
|
-
};
|
|
106
|
-
if (!layout) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, attachRefs(children));
|
|
107
|
-
const isLastStep = currentStep === sortedTour.length - 1;
|
|
108
|
-
return /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
109
|
-
style: {
|
|
110
|
-
flex: 1
|
|
111
|
-
},
|
|
112
|
-
onLayout: ev => {
|
|
113
|
-
const l = ev.nativeEvent.layout;
|
|
114
|
-
setContainerLayout({
|
|
115
|
-
height: l.height,
|
|
116
|
-
width: l.width,
|
|
117
|
-
x: l.x,
|
|
118
|
-
y: l.y
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}, attachRefs(children), /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
122
|
-
transparent: true,
|
|
123
|
-
style: {
|
|
124
|
-
position: 'absolute',
|
|
125
|
-
zIndex: 9999999,
|
|
126
|
-
borderWidth: 2,
|
|
127
|
-
borderColor: Colors.text.success,
|
|
128
|
-
borderRadius: 4,
|
|
129
|
-
top: layout.y - 5,
|
|
130
|
-
left: layout.x - 5,
|
|
131
|
-
width: layout.width + 5,
|
|
132
|
-
height: layout.height + 10
|
|
133
|
-
}
|
|
134
|
-
}, /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
135
|
-
float: true,
|
|
136
|
-
style: {
|
|
137
|
-
position: 'absolute',
|
|
138
|
-
maxWidth: width - 10,
|
|
139
|
-
minWidth: 300,
|
|
140
|
-
borderColor: Colors.text.success,
|
|
141
|
-
bottom: 0 + layout.height + 15,
|
|
142
|
-
left: right ? undefined : layout.x + 5,
|
|
143
|
-
right: right ? 5 : undefined
|
|
144
|
-
}
|
|
145
|
-
}, step.title ? /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
146
|
-
type: "header",
|
|
147
|
-
style: {
|
|
148
|
-
flexDirection: 'row',
|
|
149
|
-
alignItems: 'center',
|
|
150
|
-
padding: 10,
|
|
151
|
-
borderTopRightRadius: 8,
|
|
152
|
-
borderTopLeftRadius: 8
|
|
153
|
-
}
|
|
154
|
-
}, /*#__PURE__*/_react.default.createElement(_Components.Icons.AlertIcon, {
|
|
155
|
-
size: 14,
|
|
156
|
-
color: Colors.text.warning
|
|
157
|
-
}), /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
158
|
-
transparent: true,
|
|
159
|
-
style: {
|
|
160
|
-
flex: 1,
|
|
161
|
-
marginLeft: 10,
|
|
162
|
-
marginRight: 10,
|
|
163
|
-
borderLeftWidth: 1,
|
|
164
|
-
borderColor: Colors.borders.light
|
|
165
|
-
}
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
|
|
167
|
-
theme: "h1"
|
|
168
|
-
}, step.title)), /*#__PURE__*/_react.default.createElement(_Themed.Button, {
|
|
169
|
-
style: {
|
|
170
|
-
height: 30,
|
|
171
|
-
width: 30,
|
|
172
|
-
borderRadius: 100,
|
|
173
|
-
padding: 0,
|
|
174
|
-
justifyContent: 'center',
|
|
175
|
-
alignItems: 'center'
|
|
176
|
-
},
|
|
177
|
-
title: "X",
|
|
178
|
-
type: "error",
|
|
179
|
-
onPress: () => onComplete ? onComplete('cancelled') : console.log('')
|
|
180
|
-
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), step.body ? /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
181
|
-
type: "body",
|
|
182
|
-
style: {
|
|
183
|
-
padding: 5
|
|
184
|
-
}
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement(_Themed.Text, {
|
|
186
|
-
theme: "h2"
|
|
187
|
-
}, step.body)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_Themed.View, {
|
|
188
|
-
type: "footer",
|
|
189
|
-
style: {
|
|
190
|
-
flexDirection: 'row',
|
|
191
|
-
alignItems: 'center',
|
|
192
|
-
padding: 10,
|
|
193
|
-
borderBottomRightRadius: 8,
|
|
194
|
-
borderBottomLeftRadius: 8
|
|
195
|
-
}
|
|
196
|
-
}, currentStep > 0 && /*#__PURE__*/_react.default.createElement(_Themed.Button, {
|
|
197
|
-
type: "action",
|
|
198
|
-
onPress: handlePrev,
|
|
199
|
-
style: {
|
|
200
|
-
padding: 10,
|
|
201
|
-
flex: 1,
|
|
202
|
-
margin: 2
|
|
203
|
-
},
|
|
204
|
-
title: "BACK"
|
|
205
|
-
}), !step.clickable && /*#__PURE__*/_react.default.createElement(_Themed.Button, {
|
|
206
|
-
type: "success",
|
|
207
|
-
style: {
|
|
208
|
-
padding: 10,
|
|
209
|
-
flex: 1,
|
|
210
|
-
margin: 2
|
|
211
|
-
},
|
|
212
|
-
onPress: handleNext,
|
|
213
|
-
title: isLastStep ? "Done" : "Next"
|
|
214
|
-
})))));
|
|
215
|
-
}
|
|
216
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Themed","_useColors","_Components","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","GuideWrapper","children","guide","Colors","useColors","wrapper_guid","tour","active","onComplete","refs","useRef","currentStep","setCurrentStep","useState","layout","setLayout","container_layout","setContainerLayout","height","width","x","y","useWindowDimensions","MIN_WIDTH","right","right_side","attachRefs","nodes","React","Children","map","child","isValidElement","props","nativeID","newChildren","cloneElement","ref","current","createElement","Fragment","sortedTour","sort","a","b","priority","step","useEffect","Platform","OS","rect","getBoundingClientRect","left","top","measure","pageX","pageY","handleNext","length","handlePrev","isLastStep","View","style","flex","onLayout","ev","l","nativeEvent","transparent","position","zIndex","borderWidth","borderColor","text","success","borderRadius","float","maxWidth","minWidth","bottom","undefined","title","type","flexDirection","alignItems","padding","borderTopRightRadius","borderTopLeftRadius","Icons","AlertIcon","size","color","warning","marginLeft","marginRight","borderLeftWidth","borders","light","Text","theme","Button","justifyContent","onPress","console","log","body","borderBottomRightRadius","borderBottomLeftRadius","margin","clickable"],"sourceRoot":"../../../src","sources":["GuideView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAA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