@bigbinary/neeto-molecules 1.19.2 → 1.19.3
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/dist/Onboarding.js +25 -179
- package/dist/Onboarding.js.map +1 -1
- package/dist/cjs/Onboarding.js +22 -181
- package/dist/cjs/Onboarding.js.map +1 -1
- package/package.json +1 -1
- package/types/Onboarding.d.ts +3 -2
package/dist/Onboarding.js
CHANGED
|
@@ -1,128 +1,16 @@
|
|
|
1
|
-
import _extends from '@babel/runtime/helpers/extends';
|
|
2
1
|
import React__default, { useMemo } from 'react';
|
|
3
2
|
import classnames from 'classnames';
|
|
4
|
-
import {
|
|
5
|
-
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
3
|
+
import { noop } from '@bigbinary/neeto-cist';
|
|
6
4
|
import { Typography, Button, Stepper } from '@bigbinary/neetoui';
|
|
7
|
-
import
|
|
5
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
6
|
+
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
7
|
+
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
8
8
|
import { n } from './inject-css-c86de496.js';
|
|
9
|
-
import useBreakpoints from '@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints';
|
|
10
|
-
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { globalProps as globalProps$1 } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
12
9
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
10
|
import { t } from 'i18next';
|
|
11
|
+
import useBreakpoints from '@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints';
|
|
14
12
|
import { RightArrow } from '@bigbinary/neeto-icons';
|
|
15
|
-
|
|
16
|
-
var css$1 = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}";
|
|
17
|
-
n(css$1,{});
|
|
18
|
-
|
|
19
|
-
var CompletedScreen$1 = withT(function (_ref) {
|
|
20
|
-
var t = _ref.t,
|
|
21
|
-
title = _ref.title,
|
|
22
|
-
description = _ref.description,
|
|
23
|
-
children = _ref.children,
|
|
24
|
-
buttonProps = _ref.buttonProps,
|
|
25
|
-
_ref$className = _ref.className,
|
|
26
|
-
className = _ref$className === void 0 ? "" : _ref$className;
|
|
27
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
28
|
-
className: classnames("neeto-molecules-onboarding__wrapper", className),
|
|
29
|
-
"data-testid": "onboarding-congratulations-wrapper"
|
|
30
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
31
|
-
className: "mx-auto mb-6 w-full max-w-2xl space-y-2"
|
|
32
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
33
|
-
className: "text-center",
|
|
34
|
-
"data-cy": "onboarding-congratulations-emoji",
|
|
35
|
-
style: "h1"
|
|
36
|
-
}, "\uD83C\uDF89"), /*#__PURE__*/React__default.createElement(Typography, {
|
|
37
|
-
className: "text-center",
|
|
38
|
-
"data-cy": "onboarding-congratulations-title",
|
|
39
|
-
"data-testid": "onboarding-congratulations-title",
|
|
40
|
-
style: "h1"
|
|
41
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
42
|
-
className: "neeto-ui-text-success-500"
|
|
43
|
-
}, t("neetoMolecules.onboarding.congratulations")), /*#__PURE__*/React__default.createElement("br", null), title), description && /*#__PURE__*/React__default.createElement(Typography, {
|
|
44
|
-
className: "text-center",
|
|
45
|
-
"data-cy": "onboarding-congratulations-description",
|
|
46
|
-
"data-testid": "onboarding-congratulations-description",
|
|
47
|
-
lineHeight: "normal",
|
|
48
|
-
style: "body1"
|
|
49
|
-
}, description), children), isPresent(buttonProps) && /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
50
|
-
"data-cy": "onboarding-congratulations-button",
|
|
51
|
-
"data-testid": "onboarding-congratulations-button",
|
|
52
|
-
label: t("neetoMolecules.onboarding.startUsing")
|
|
53
|
-
}, buttonProps)));
|
|
54
|
-
});
|
|
55
|
-
CompletedScreen$1.propTypes = {
|
|
56
|
-
/**
|
|
57
|
-
* To specify external classnames as overrides.
|
|
58
|
-
*/
|
|
59
|
-
className: propTypes.exports.string,
|
|
60
|
-
/**
|
|
61
|
-
* Title of the completed screen
|
|
62
|
-
*/
|
|
63
|
-
title: propTypes.exports.string,
|
|
64
|
-
/**
|
|
65
|
-
* Description of the completed screen
|
|
66
|
-
*/
|
|
67
|
-
description: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.node]),
|
|
68
|
-
/**
|
|
69
|
-
* Additional children elements to be rendered within the completed screen.
|
|
70
|
-
*/
|
|
71
|
-
children: propTypes.exports.node,
|
|
72
|
-
/**
|
|
73
|
-
* Additional props that can be passed on to the button
|
|
74
|
-
*/
|
|
75
|
-
buttonProps: propTypes.exports.object
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
var HelpScreen$1 = function HelpScreen(_ref) {
|
|
79
|
-
var buttonProps = _ref.buttonProps,
|
|
80
|
-
_ref$className = _ref.className,
|
|
81
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
82
|
-
_ref$standalone = _ref.standalone,
|
|
83
|
-
standalone = _ref$standalone === void 0 ? false : _ref$standalone;
|
|
84
|
-
var _useTranslation = useTranslation(),
|
|
85
|
-
t = _useTranslation.t;
|
|
86
|
-
var _useBreakpoints = useBreakpoints(),
|
|
87
|
-
isSize = _useBreakpoints.isSize;
|
|
88
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
89
|
-
className: classnames("neeto-molecules-onboarding__wrapper", className),
|
|
90
|
-
"data-testid": "onboarding-help-wrapper"
|
|
91
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
92
|
-
className: "mx-auto w-full max-w-2xl space-y-6"
|
|
93
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
94
|
-
className: "space-y-3"
|
|
95
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
96
|
-
component: "h1",
|
|
97
|
-
"data-cy": "onboarding-help-title",
|
|
98
|
-
"data-testid": "onboarding-help-title",
|
|
99
|
-
style: "h2"
|
|
100
|
-
}, standalone ? t("neetoMolecules.onboarding.helpScreen.welcomeToTitle", {
|
|
101
|
-
appName: globalProps.appName
|
|
102
|
-
}) : t("neetoMolecules.onboarding.helpScreen.title")), /*#__PURE__*/React__default.createElement(Typography, {
|
|
103
|
-
"data-cy": "onboarding-help-description",
|
|
104
|
-
"data-testid": "onboarding-help-description",
|
|
105
|
-
lineHeight: "normal",
|
|
106
|
-
style: "body1"
|
|
107
|
-
}, t("neetoMolecules.onboarding.helpScreen.description")), /*#__PURE__*/React__default.createElement("div", {
|
|
108
|
-
className: "w-full overflow-hidden"
|
|
109
|
-
}, isSize("mobile") ? /*#__PURE__*/React__default.createElement("img", {
|
|
110
|
-
alt: "",
|
|
111
|
-
src: "https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg"
|
|
112
|
-
}) : /*#__PURE__*/React__default.createElement("img", {
|
|
113
|
-
alt: "",
|
|
114
|
-
src: "https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg"
|
|
115
|
-
}))), /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
116
|
-
"data-cy": "onboarding-help-button",
|
|
117
|
-
"data-testid": "onboarding-help-button",
|
|
118
|
-
label: standalone ? t("neetoMolecules.onboarding.helpScreen.startUsingButton", {
|
|
119
|
-
appName: globalProps.appName
|
|
120
|
-
}) : t("neetoMolecules.onboarding.helpScreen.continueButton")
|
|
121
|
-
}, buttonProps))));
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
var css = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}.neeto-molecules-onboarding__container{display:flex;flex-direction:column;height:100vh;overflow-y:auto;position:relative;width:100%}.neeto-molecules-onboarding__stepper-wrapper{background-color:rgb(var(--neeto-ui-white));border-bottom:1px solid rgb(var(--neeto-ui-gray-200));display:flex;flex-shrink:0;padding:8px 16px;width:100%}@media (min-width:1024px){.neeto-molecules-onboarding__stepper-wrapper{justify-content:center}}.neeto-molecules-onboarding__content{flex-grow:1;min-height:0;overflow-y:auto;width:100%}";
|
|
125
|
-
n(css,{});
|
|
13
|
+
import { useTranslation } from 'react-i18next';
|
|
126
14
|
|
|
127
15
|
var CompletedScreen = withT(function (_ref) {
|
|
128
16
|
var t = _ref.t,
|
|
@@ -144,25 +32,29 @@ var CompletedScreen = withT(function (_ref) {
|
|
|
144
32
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
145
33
|
className: "neeto-ui-text-success-500"
|
|
146
34
|
}, t("neetoMolecules.onboarding.congratulations")), /*#__PURE__*/React__default.createElement("br", null), t("neetoMolecules.onboarding.readyToUse", {
|
|
147
|
-
appName: globalProps
|
|
35
|
+
appName: globalProps.appName
|
|
148
36
|
}))), /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
149
37
|
"data-cy": "onboarding-congratulations-button",
|
|
150
38
|
"data-testid": "onboarding-congratulations-button",
|
|
151
39
|
label: t("neetoMolecules.onboarding.helpScreen.startUsingButton", {
|
|
152
|
-
appName: globalProps
|
|
40
|
+
appName: globalProps.appName
|
|
153
41
|
})
|
|
154
42
|
}, completeButtonProps)));
|
|
155
43
|
});
|
|
156
44
|
|
|
45
|
+
var css = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}.neeto-molecules-onboarding__container{display:flex;flex-direction:column;height:100vh;overflow-y:auto;position:relative;width:100%}.neeto-molecules-onboarding__stepper-wrapper{background-color:rgb(var(--neeto-ui-white));border-bottom:1px solid rgb(var(--neeto-ui-gray-200));display:flex;flex-shrink:0;padding:8px 16px;width:100%}@media (min-width:1024px){.neeto-molecules-onboarding__stepper-wrapper{justify-content:center}}.neeto-molecules-onboarding__content{flex-grow:1;min-height:0;overflow-y:auto;width:100%}";
|
|
46
|
+
n(css,{});
|
|
47
|
+
|
|
157
48
|
var HelpScreen = function HelpScreen(_ref) {
|
|
158
49
|
var setCurrentStep = _ref.setCurrentStep,
|
|
159
|
-
currentStep = _ref.currentStep
|
|
50
|
+
currentStep = _ref.currentStep,
|
|
51
|
+
helpScreenClassName = _ref.helpScreenClassName;
|
|
160
52
|
var _useTranslation = useTranslation(),
|
|
161
53
|
t = _useTranslation.t;
|
|
162
54
|
var _useBreakpoints = useBreakpoints(),
|
|
163
55
|
isSize = _useBreakpoints.isSize;
|
|
164
56
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
165
|
-
className: "mx-auto w-full max-w-2xl space-y-6 p-4"
|
|
57
|
+
className: classnames("mx-auto w-full max-w-2xl space-y-6 p-4", helpScreenClassName)
|
|
166
58
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
167
59
|
className: "space-y-3"
|
|
168
60
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -197,11 +89,12 @@ var HelpScreen = function HelpScreen(_ref) {
|
|
|
197
89
|
|
|
198
90
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
199
91
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
200
|
-
var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentStep) {
|
|
92
|
+
var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName) {
|
|
201
93
|
var helpStep = {
|
|
202
94
|
label: t("neetoMolecules.onboarding.helpLabel"),
|
|
203
95
|
element: /*#__PURE__*/React__default.createElement(HelpScreen, {
|
|
204
96
|
currentStep: currentStep,
|
|
97
|
+
helpScreenClassName: helpScreenClassName,
|
|
205
98
|
setCurrentStep: setCurrentStep
|
|
206
99
|
})
|
|
207
100
|
};
|
|
@@ -212,7 +105,7 @@ var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentS
|
|
|
212
105
|
});
|
|
213
106
|
};
|
|
214
107
|
|
|
215
|
-
var WelcomeScreen
|
|
108
|
+
var WelcomeScreen = withT(function (_ref) {
|
|
216
109
|
var t = _ref.t,
|
|
217
110
|
setCurrentStep = _ref.setCurrentStep,
|
|
218
111
|
currentStep = _ref.currentStep;
|
|
@@ -227,7 +120,7 @@ var WelcomeScreen$1 = withT(function (_ref) {
|
|
|
227
120
|
"data-testid": "onboarding-welcome-title",
|
|
228
121
|
style: "h1"
|
|
229
122
|
}, t("neetoMolecules.onboarding.helpScreen.welcomeToTitle", {
|
|
230
|
-
appName: globalProps
|
|
123
|
+
appName: globalProps.appName
|
|
231
124
|
})), /*#__PURE__*/React__default.createElement(Typography, {
|
|
232
125
|
className: "text-center",
|
|
233
126
|
"data-cy": "onboarding-welcome-description",
|
|
@@ -235,7 +128,7 @@ var WelcomeScreen$1 = withT(function (_ref) {
|
|
|
235
128
|
lineHeight: "normal",
|
|
236
129
|
style: "body1"
|
|
237
130
|
}, t("neetoMolecules.onboarding.letUsCustomize", {
|
|
238
|
-
appName: globalProps
|
|
131
|
+
appName: globalProps.appName
|
|
239
132
|
}))), /*#__PURE__*/React__default.createElement(Button, {
|
|
240
133
|
"data-cy": "onboarding-welcome-button",
|
|
241
134
|
"data-testid": "onboarding-welcome-button",
|
|
@@ -256,12 +149,14 @@ var Onboarding = function Onboarding(_ref) {
|
|
|
256
149
|
_ref$onboardingSteps = _ref.onboardingSteps,
|
|
257
150
|
onboardingSteps = _ref$onboardingSteps === void 0 ? [] : _ref$onboardingSteps,
|
|
258
151
|
_ref$completeButtonPr = _ref.completeButtonProps,
|
|
259
|
-
completeButtonProps = _ref$completeButtonPr === void 0 ? {} : _ref$completeButtonPr
|
|
152
|
+
completeButtonProps = _ref$completeButtonPr === void 0 ? {} : _ref$completeButtonPr,
|
|
153
|
+
_ref$helpScreenClassN = _ref.helpScreenClassName,
|
|
154
|
+
helpScreenClassName = _ref$helpScreenClassN === void 0 ? "" : _ref$helpScreenClassN;
|
|
260
155
|
var steps = useMemo(function () {
|
|
261
|
-
return createSteps(onboardingSteps, setCurrentStep, currentStep);
|
|
156
|
+
return createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName);
|
|
262
157
|
}, [onboardingSteps]);
|
|
263
158
|
if (currentStep === 0) {
|
|
264
|
-
return /*#__PURE__*/React__default.createElement(WelcomeScreen
|
|
159
|
+
return /*#__PURE__*/React__default.createElement(WelcomeScreen, {
|
|
265
160
|
currentStep: currentStep,
|
|
266
161
|
setCurrentStep: setCurrentStep
|
|
267
162
|
});
|
|
@@ -290,54 +185,5 @@ var Onboarding = function Onboarding(_ref) {
|
|
|
290
185
|
}, (_steps = steps[currentStep - 1]) === null || _steps === void 0 ? void 0 : _steps.element));
|
|
291
186
|
};
|
|
292
187
|
|
|
293
|
-
|
|
294
|
-
var t = _ref.t,
|
|
295
|
-
title = _ref.title,
|
|
296
|
-
description = _ref.description,
|
|
297
|
-
buttonProps = _ref.buttonProps,
|
|
298
|
-
_ref$className = _ref.className,
|
|
299
|
-
className = _ref$className === void 0 ? "" : _ref$className;
|
|
300
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
301
|
-
className: classnames("neeto-molecules-onboarding__wrapper", className),
|
|
302
|
-
"data-testid": "onboarding-welcome-wrapper"
|
|
303
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
304
|
-
className: "mx-auto mb-6 w-full max-w-2xl space-y-2"
|
|
305
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
306
|
-
className: "text-center",
|
|
307
|
-
"data-cy": "onboarding-welcome-title",
|
|
308
|
-
"data-testid": "onboarding-welcome-title",
|
|
309
|
-
style: "h1"
|
|
310
|
-
}, title), description && /*#__PURE__*/React__default.createElement(Typography, {
|
|
311
|
-
className: "text-center",
|
|
312
|
-
"data-cy": "onboarding-welcome-description",
|
|
313
|
-
"data-testid": "onboarding-welcome-description",
|
|
314
|
-
lineHeight: "normal",
|
|
315
|
-
style: "body1"
|
|
316
|
-
}, description)), /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
317
|
-
"data-cy": "onboarding-welcome-button",
|
|
318
|
-
"data-testid": "onboarding-welcome-button",
|
|
319
|
-
icon: RightArrow,
|
|
320
|
-
label: t("neetoMolecules.onboarding.getStarted")
|
|
321
|
-
}, buttonProps)));
|
|
322
|
-
});
|
|
323
|
-
WelcomeScreen.propTypes = {
|
|
324
|
-
/**
|
|
325
|
-
* To specify external classnames as overrides.
|
|
326
|
-
*/
|
|
327
|
-
className: propTypes.exports.string,
|
|
328
|
-
/**
|
|
329
|
-
* Title of the welcome screen
|
|
330
|
-
*/
|
|
331
|
-
title: propTypes.exports.string,
|
|
332
|
-
/**
|
|
333
|
-
* Description of the welcome screen
|
|
334
|
-
*/
|
|
335
|
-
description: propTypes.exports.string,
|
|
336
|
-
/**
|
|
337
|
-
* Additional props that can be passed on to the button
|
|
338
|
-
*/
|
|
339
|
-
buttonProps: propTypes.exports.object
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
export { CompletedScreen$1 as CompletedScreen, HelpScreen$1 as HelpScreen, WelcomeScreen, Onboarding as default };
|
|
188
|
+
export { Onboarding as default };
|
|
343
189
|
//# sourceMappingURL=Onboarding.js.map
|
package/dist/Onboarding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Onboarding.js","sources":["../src/components/Onboarding/CompletedScreen.jsx","../src/components/Onboarding/HelpScreen.jsx","../src/components/Onboarding/Onboarding/CompletedScreen.jsx","../src/components/Onboarding/Onboarding/HelpScreen.jsx","../src/components/Onboarding/Onboarding/utils.jsx","../src/components/Onboarding/Onboarding/WelcomeScreen.jsx","../src/components/Onboarding/Onboarding/index.jsx","../src/components/Onboarding/WelcomeScreen.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport \"./onboarding.scss\";\n\nconst CompletedScreen = withT(\n ({ t, title, description, children, buttonProps, className = \"\" }) => (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {title}\n </Typography>\n {description && (\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-description\"\n data-testid=\"onboarding-congratulations-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {description}\n </Typography>\n )}\n {children}\n </div>\n {isPresent(buttonProps) && (\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.startUsing\")}\n {...buttonProps}\n />\n )}\n </div>\n )\n);\n\nCompletedScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Title of the completed screen\n */\n title: PropTypes.string,\n /**\n * Description of the completed screen\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * Additional children elements to be rendered within the completed screen.\n */\n children: PropTypes.node,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n};\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport \"./onboarding.scss\";\n\nconst HelpScreen = ({ buttonProps, className = \"\", standalone = false }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-help-wrapper\"\n >\n <div className=\"mx-auto w-full max-w-2xl space-y-6\">\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {standalone\n ? t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })\n : t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full overflow-hidden\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n label={\n standalone\n ? t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })\n : t(\"neetoMolecules.onboarding.helpScreen.continueButton\")\n }\n {...buttonProps}\n />\n </div>\n </div>\n );\n};\n\nHelpScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n /**\n * To specify if the help screen is standalone or not.\n */\n standalone: PropTypes.bool,\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\n\nimport \"./onboarding.scss\";\n\nconst CompletedScreen = withT(({ t, completeButtonProps }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {t(\"neetoMolecules.onboarding.readyToUse\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })}\n {...completeButtonProps}\n />\n </div>\n));\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst HelpScreen = ({ setCurrentStep, currentStep }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div className=\"mx-auto w-full max-w-2xl space-y-6 p-4\">\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n icon={RightArrow}\n iconPosition=\"right\"\n label={t(\"neetoMolecules.onboarding.helpScreen.continueButton\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n );\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { t } from \"i18next\";\n\nimport HelpScreen from \"./HelpScreen\";\n\nexport const createSteps = (onboardingSteps, setCurrentStep, currentStep) => {\n const helpStep = {\n label: t(\"neetoMolecules.onboarding.helpLabel\"),\n element: <HelpScreen {...{ currentStep, setCurrentStep }} />,\n };\n\n return onboardingSteps\n .concat(helpStep)\n .map((step, idx) => ({ ...step, id: idx + 1 }));\n};\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\n\nimport \"./onboarding.scss\";\n\nconst WelcomeScreen = withT(({ t, setCurrentStep, currentStep }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })}\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.letUsCustomize\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n));\n\nexport default WelcomeScreen;\n","import React, { useMemo } from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { Stepper } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport CompletedScreen from \"./CompletedScreen\";\nimport { createSteps } from \"./utils\";\nimport WelcomeScreen from \"./WelcomeScreen\";\n\nconst Onboarding = ({\n currentStep = 0,\n setCurrentStep = noop,\n onboardingSteps = [],\n completeButtonProps = {},\n}) => {\n const steps = useMemo(\n () => createSteps(onboardingSteps, setCurrentStep, currentStep),\n [onboardingSteps]\n );\n\n if (currentStep === 0) {\n return <WelcomeScreen {...{ currentStep, setCurrentStep }} />;\n }\n\n if (currentStep === steps.length + 1) {\n return <CompletedScreen {...{ completeButtonProps }} />;\n }\n\n const handleStepChange = index => setCurrentStep(index + 1);\n\n const isStepperVisible = steps.length > 1;\n\n return (\n <div\n className={classNames(\"neeto-molecules-onboarding__container\", {\n \"neeto-molecules-onboarding__wrapper\": !isStepperVisible,\n })}\n >\n {isStepperVisible && (\n <div className=\"neeto-molecules-onboarding__stepper-wrapper\">\n <Stepper\n {...{ steps }}\n activeIndex={currentStep - 1}\n setActiveIndex={handleStepChange}\n />\n </div>\n )}\n <div className=\"neeto-molecules-onboarding__content\">\n {steps[currentStep - 1]?.element}\n </div>\n </div>\n );\n};\n\nOnboarding.propTypes = {\n /**\n * To specify the current step of the onboarding\n */\n currentStep: PropTypes.number,\n /**\n * List of Custom components for the onboarding\n */\n onboardingSteps: PropTypes.array,\n /**\n * Props for the complete button\n */\n completeButtonProps: PropTypes.object,\n /**\n * To set the step of the onboarding\n */\n setCurrentStep: PropTypes.func,\n};\n\nexport default Onboarding;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport \"./onboarding.scss\";\n\nconst WelcomeScreen = withT(\n ({ t, title, description, buttonProps, className = \"\" }) => (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {title}\n </Typography>\n {description && (\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {description}\n </Typography>\n )}\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n {...buttonProps}\n />\n </div>\n )\n);\n\nWelcomeScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Title of the welcome screen\n */\n title: PropTypes.string,\n /**\n * Description of the welcome screen\n */\n description: PropTypes.string,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n};\n\nexport default WelcomeScreen;\n"],"names":["CompletedScreen","withT","_ref","t","title","description","children","buttonProps","_ref$className","className","React","createElement","classnames","Typography","style","lineHeight","isPresent","Button","_extends","label","propTypes","PropTypes","string","oneOfType","node","object","HelpScreen","_ref$standalone","standalone","_useTranslation","useTranslation","_useBreakpoints","useBreakpoints","isSize","component","appName","globalProps","alt","src","completeButtonProps","setCurrentStep","currentStep","icon","RightArrow","iconPosition","onClick","createSteps","onboardingSteps","helpStep","element","concat","map","step","idx","_objectSpread","id","WelcomeScreen","Onboarding","_steps","_ref$currentStep","_ref$setCurrentStep","noop","_ref$onboardingSteps","_ref$completeButtonPr","steps","useMemo","length","handleStepChange","index","isStepperVisible","classNames","Stepper","activeIndex","setActiveIndex"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,IAAMA,iBAAe,GAAGC,KAAK,CAC3B,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAEC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IAAAC,cAAA,GAAAN,IAAA,CAAEO,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA,CAAA;EAAA,oBAC7DE,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEF,IAAAA,SAAS,EAAEG,UAAU,CAAC,qCAAqC,EAAEH,SAAS,CAAE;IACxE,aAAY,EAAA,oCAAA;GAEZC,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKF,IAAAA,SAAS,EAAC,yCAAA;AAAyC,GAAA,eACtDC,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTJ,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,kCAAkC;AAC1CK,IAAAA,KAAK,EAAC,IAAA;AAAI,GAAA,EACX,c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src/components/Onboarding/CompletedScreen.jsx","../src/components/Onboarding/HelpScreen.jsx","../src/components/Onboarding/utils.jsx","../src/components/Onboarding/WelcomeScreen.jsx","../src/components/Onboarding/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\n\nconst CompletedScreen = withT(({ t, completeButtonProps }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {t(\"neetoMolecules.onboarding.readyToUse\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })}\n {...completeButtonProps}\n />\n </div>\n));\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst HelpScreen = ({ setCurrentStep, currentStep, helpScreenClassName }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div\n className={classNames(\n \"mx-auto w-full max-w-2xl space-y-6 p-4\",\n helpScreenClassName\n )}\n >\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n icon={RightArrow}\n iconPosition=\"right\"\n label={t(\"neetoMolecules.onboarding.helpScreen.continueButton\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n );\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { t } from \"i18next\";\n\nimport HelpScreen from \"./HelpScreen\";\n\nexport const createSteps = (\n onboardingSteps,\n setCurrentStep,\n currentStep,\n helpScreenClassName\n) => {\n const helpStep = {\n label: t(\"neetoMolecules.onboarding.helpLabel\"),\n element: (\n <HelpScreen {...{ currentStep, helpScreenClassName, setCurrentStep }} />\n ),\n };\n\n return onboardingSteps\n .concat(helpStep)\n .map((step, idx) => ({ ...step, id: idx + 1 }));\n};\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\n\nconst WelcomeScreen = withT(({ t, setCurrentStep, currentStep }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })}\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.letUsCustomize\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n));\n\nexport default WelcomeScreen;\n","import React, { useMemo } from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { Stepper } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport CompletedScreen from \"./CompletedScreen\";\nimport \"./onboarding.scss\";\nimport { createSteps } from \"./utils\";\nimport WelcomeScreen from \"./WelcomeScreen\";\n\nconst Onboarding = ({\n currentStep = 0,\n setCurrentStep = noop,\n onboardingSteps = [],\n completeButtonProps = {},\n helpScreenClassName = \"\",\n}) => {\n const steps = useMemo(\n () =>\n createSteps(\n onboardingSteps,\n setCurrentStep,\n currentStep,\n helpScreenClassName\n ),\n [onboardingSteps]\n );\n\n if (currentStep === 0) {\n return <WelcomeScreen {...{ currentStep, setCurrentStep }} />;\n }\n\n if (currentStep === steps.length + 1) {\n return <CompletedScreen {...{ completeButtonProps }} />;\n }\n\n const handleStepChange = index => setCurrentStep(index + 1);\n\n const isStepperVisible = steps.length > 1;\n\n return (\n <div\n className={classNames(\"neeto-molecules-onboarding__container\", {\n \"neeto-molecules-onboarding__wrapper\": !isStepperVisible,\n })}\n >\n {isStepperVisible && (\n <div className=\"neeto-molecules-onboarding__stepper-wrapper\">\n <Stepper\n {...{ steps }}\n activeIndex={currentStep - 1}\n setActiveIndex={handleStepChange}\n />\n </div>\n )}\n <div className=\"neeto-molecules-onboarding__content\">\n {steps[currentStep - 1]?.element}\n </div>\n </div>\n );\n};\n\nOnboarding.propTypes = {\n /**\n * To specify the current step of the onboarding\n */\n currentStep: PropTypes.number,\n /**\n * List of Custom components for the onboarding\n */\n onboardingSteps: PropTypes.array,\n /**\n * Props for the complete button\n */\n completeButtonProps: PropTypes.object,\n /**\n * To set the step of the onboarding\n */\n setCurrentStep: PropTypes.func,\n /**\n * To pass additional classes to the help screen\n */\n helpScreenClassName: PropTypes.string,\n};\n\nexport default Onboarding;\n"],"names":["CompletedScreen","withT","_ref","t","completeButtonProps","React","createElement","className","Typography","style","appName","globalProps","Button","_extends","label","HelpScreen","setCurrentStep","currentStep","helpScreenClassName","_useTranslation","useTranslation","_useBreakpoints","useBreakpoints","isSize","classNames","component","lineHeight","alt","src","icon","RightArrow","iconPosition","onClick","createSteps","onboardingSteps","helpStep","element","concat","map","step","idx","_objectSpread","id","WelcomeScreen","Onboarding","_steps","_ref$currentStep","_ref$setCurrentStep","noop","_ref$onboardingSteps","_ref$completeButtonPr","_ref$helpScreenClassN","steps","useMemo","length","handleStepChange","index","isStepperVisible","Stepper","activeIndex","setActiveIndex"],"mappings":";;;;;;;;;;;;;;AAMA,IAAMA,eAAe,GAAGC,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,mBAAmB,GAAAF,IAAA,CAAnBE,mBAAmB,CAAA;EAAA,oBACrDC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,qCAAqC;IAC/C,aAAY,EAAA,oCAAA;GAEZF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,yCAAA;AAAyC,GAAA,eACtDF,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTD,IAAAA,SAAS,EAAC,aAAa;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AAA;AAAA,GAAA,CAAA;AAE3D,EAAA,IAAMC,gBAAgB,GAAGL,KAAK,CAACE,MAAM,GAAG,CAAC,CAAA;EAEzC,oBACEjD,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAEiB,UAAU,CAAC,uCAAuC,EAAE;AAC7D,MAAA,qCAAqC,EAAE,CAACiC,gBAAAA;KACzC,CAAA;AAAE,GAAA,EAEFA,gBAAgB,iBACfpD,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6CAAA;AAA6C,GAAA,eAC1DF,cAAA,CAAAC,aAAA,CAACoD,OAAO,EAAA;AACAN,IAAAA,KAAK,EAALA,KAAK;IACXO,WAAW,EAAE1C,WAAW,GAAG,CAAE;AAC7B2C,IAAAA,cAAc,EAAEL,gBAAAA;AAAiB,GAClC,CACE,CACN,eACDlD,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qCAAA;AAAqC,GAAA,EAAA,CAAAsC,MAAA,GACjDO,KAAK,CAACnC,WAAW,GAAG,CAAC,CAAC,MAAA,IAAA,IAAA4B,MAAA,KAAtBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,MAAA,CAAwBT,OACtB,CACF,CAAC,CAAA;AAEV;;;;"}
|
package/dist/cjs/Onboarding.js
CHANGED
|
@@ -1,141 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
3
|
var React = require('react');
|
|
7
4
|
var classnames = require('classnames');
|
|
8
5
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
9
|
-
var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
10
6
|
var neetoui = require('@bigbinary/neetoui');
|
|
11
|
-
var
|
|
12
|
-
var injectCss = require('./inject-css-80a5faa3.js');
|
|
13
|
-
var useBreakpoints = require('@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints');
|
|
14
|
-
var reactI18next = require('react-i18next');
|
|
7
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
15
8
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
9
|
+
var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
10
|
+
var injectCss = require('./inject-css-80a5faa3.js');
|
|
16
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
17
12
|
var i18next = require('i18next');
|
|
13
|
+
var useBreakpoints = require('@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints');
|
|
18
14
|
var neetoIcons = require('@bigbinary/neeto-icons');
|
|
15
|
+
var reactI18next = require('react-i18next');
|
|
19
16
|
|
|
20
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
18
|
|
|
22
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
23
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
20
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
21
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
25
22
|
var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
|
|
26
|
-
var useBreakpoints__default = /*#__PURE__*/_interopDefaultLegacy(useBreakpoints);
|
|
27
23
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
28
|
-
|
|
29
|
-
var css$1 = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}";
|
|
30
|
-
injectCss.n(css$1,{});
|
|
31
|
-
|
|
32
|
-
var CompletedScreen$1 = withT__default["default"](function (_ref) {
|
|
33
|
-
var t = _ref.t,
|
|
34
|
-
title = _ref.title,
|
|
35
|
-
description = _ref.description,
|
|
36
|
-
children = _ref.children,
|
|
37
|
-
buttonProps = _ref.buttonProps,
|
|
38
|
-
_ref$className = _ref.className,
|
|
39
|
-
className = _ref$className === void 0 ? "" : _ref$className;
|
|
40
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
41
|
-
className: classnames__default["default"]("neeto-molecules-onboarding__wrapper", className),
|
|
42
|
-
"data-testid": "onboarding-congratulations-wrapper"
|
|
43
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
44
|
-
className: "mx-auto mb-6 w-full max-w-2xl space-y-2"
|
|
45
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
46
|
-
className: "text-center",
|
|
47
|
-
"data-cy": "onboarding-congratulations-emoji",
|
|
48
|
-
style: "h1"
|
|
49
|
-
}, "\uD83C\uDF89"), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
50
|
-
className: "text-center",
|
|
51
|
-
"data-cy": "onboarding-congratulations-title",
|
|
52
|
-
"data-testid": "onboarding-congratulations-title",
|
|
53
|
-
style: "h1"
|
|
54
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
55
|
-
className: "neeto-ui-text-success-500"
|
|
56
|
-
}, t("neetoMolecules.onboarding.congratulations")), /*#__PURE__*/React__default["default"].createElement("br", null), title), description && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
57
|
-
className: "text-center",
|
|
58
|
-
"data-cy": "onboarding-congratulations-description",
|
|
59
|
-
"data-testid": "onboarding-congratulations-description",
|
|
60
|
-
lineHeight: "normal",
|
|
61
|
-
style: "body1"
|
|
62
|
-
}, description), children), neetoCist.isPresent(buttonProps) && /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends__default["default"]({
|
|
63
|
-
"data-cy": "onboarding-congratulations-button",
|
|
64
|
-
"data-testid": "onboarding-congratulations-button",
|
|
65
|
-
label: t("neetoMolecules.onboarding.startUsing")
|
|
66
|
-
}, buttonProps)));
|
|
67
|
-
});
|
|
68
|
-
CompletedScreen$1.propTypes = {
|
|
69
|
-
/**
|
|
70
|
-
* To specify external classnames as overrides.
|
|
71
|
-
*/
|
|
72
|
-
className: index.propTypes.exports.string,
|
|
73
|
-
/**
|
|
74
|
-
* Title of the completed screen
|
|
75
|
-
*/
|
|
76
|
-
title: index.propTypes.exports.string,
|
|
77
|
-
/**
|
|
78
|
-
* Description of the completed screen
|
|
79
|
-
*/
|
|
80
|
-
description: index.propTypes.exports.oneOfType([index.propTypes.exports.string, index.propTypes.exports.node]),
|
|
81
|
-
/**
|
|
82
|
-
* Additional children elements to be rendered within the completed screen.
|
|
83
|
-
*/
|
|
84
|
-
children: index.propTypes.exports.node,
|
|
85
|
-
/**
|
|
86
|
-
* Additional props that can be passed on to the button
|
|
87
|
-
*/
|
|
88
|
-
buttonProps: index.propTypes.exports.object
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
var HelpScreen$1 = function HelpScreen(_ref) {
|
|
92
|
-
var buttonProps = _ref.buttonProps,
|
|
93
|
-
_ref$className = _ref.className,
|
|
94
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
95
|
-
_ref$standalone = _ref.standalone,
|
|
96
|
-
standalone = _ref$standalone === void 0 ? false : _ref$standalone;
|
|
97
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
98
|
-
t = _useTranslation.t;
|
|
99
|
-
var _useBreakpoints = useBreakpoints__default["default"](),
|
|
100
|
-
isSize = _useBreakpoints.isSize;
|
|
101
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
102
|
-
className: classnames__default["default"]("neeto-molecules-onboarding__wrapper", className),
|
|
103
|
-
"data-testid": "onboarding-help-wrapper"
|
|
104
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
105
|
-
className: "mx-auto w-full max-w-2xl space-y-6"
|
|
106
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
107
|
-
className: "space-y-3"
|
|
108
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
109
|
-
component: "h1",
|
|
110
|
-
"data-cy": "onboarding-help-title",
|
|
111
|
-
"data-testid": "onboarding-help-title",
|
|
112
|
-
style: "h2"
|
|
113
|
-
}, standalone ? t("neetoMolecules.onboarding.helpScreen.welcomeToTitle", {
|
|
114
|
-
appName: globalProps.appName
|
|
115
|
-
}) : t("neetoMolecules.onboarding.helpScreen.title")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
116
|
-
"data-cy": "onboarding-help-description",
|
|
117
|
-
"data-testid": "onboarding-help-description",
|
|
118
|
-
lineHeight: "normal",
|
|
119
|
-
style: "body1"
|
|
120
|
-
}, t("neetoMolecules.onboarding.helpScreen.description")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
121
|
-
className: "w-full overflow-hidden"
|
|
122
|
-
}, isSize("mobile") ? /*#__PURE__*/React__default["default"].createElement("img", {
|
|
123
|
-
alt: "",
|
|
124
|
-
src: "https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg"
|
|
125
|
-
}) : /*#__PURE__*/React__default["default"].createElement("img", {
|
|
126
|
-
alt: "",
|
|
127
|
-
src: "https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg"
|
|
128
|
-
}))), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends__default["default"]({
|
|
129
|
-
"data-cy": "onboarding-help-button",
|
|
130
|
-
"data-testid": "onboarding-help-button",
|
|
131
|
-
label: standalone ? t("neetoMolecules.onboarding.helpScreen.startUsingButton", {
|
|
132
|
-
appName: globalProps.appName
|
|
133
|
-
}) : t("neetoMolecules.onboarding.helpScreen.continueButton")
|
|
134
|
-
}, buttonProps))));
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
var css = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}.neeto-molecules-onboarding__container{display:flex;flex-direction:column;height:100vh;overflow-y:auto;position:relative;width:100%}.neeto-molecules-onboarding__stepper-wrapper{background-color:rgb(var(--neeto-ui-white));border-bottom:1px solid rgb(var(--neeto-ui-gray-200));display:flex;flex-shrink:0;padding:8px 16px;width:100%}@media (min-width:1024px){.neeto-molecules-onboarding__stepper-wrapper{justify-content:center}}.neeto-molecules-onboarding__content{flex-grow:1;min-height:0;overflow-y:auto;width:100%}";
|
|
138
|
-
injectCss.n(css,{});
|
|
24
|
+
var useBreakpoints__default = /*#__PURE__*/_interopDefaultLegacy(useBreakpoints);
|
|
139
25
|
|
|
140
26
|
var CompletedScreen = withT__default["default"](function (_ref) {
|
|
141
27
|
var t = _ref.t,
|
|
@@ -167,15 +53,19 @@ var CompletedScreen = withT__default["default"](function (_ref) {
|
|
|
167
53
|
}, completeButtonProps)));
|
|
168
54
|
});
|
|
169
55
|
|
|
56
|
+
var css = ".neeto-molecules-onboarding__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100vh;overflow-y:auto;padding:15vh 32px 32px;width:100%}.neeto-molecules-onboarding__container{display:flex;flex-direction:column;height:100vh;overflow-y:auto;position:relative;width:100%}.neeto-molecules-onboarding__stepper-wrapper{background-color:rgb(var(--neeto-ui-white));border-bottom:1px solid rgb(var(--neeto-ui-gray-200));display:flex;flex-shrink:0;padding:8px 16px;width:100%}@media (min-width:1024px){.neeto-molecules-onboarding__stepper-wrapper{justify-content:center}}.neeto-molecules-onboarding__content{flex-grow:1;min-height:0;overflow-y:auto;width:100%}";
|
|
57
|
+
injectCss.n(css,{});
|
|
58
|
+
|
|
170
59
|
var HelpScreen = function HelpScreen(_ref) {
|
|
171
60
|
var setCurrentStep = _ref.setCurrentStep,
|
|
172
|
-
currentStep = _ref.currentStep
|
|
61
|
+
currentStep = _ref.currentStep,
|
|
62
|
+
helpScreenClassName = _ref.helpScreenClassName;
|
|
173
63
|
var _useTranslation = reactI18next.useTranslation(),
|
|
174
64
|
t = _useTranslation.t;
|
|
175
65
|
var _useBreakpoints = useBreakpoints__default["default"](),
|
|
176
66
|
isSize = _useBreakpoints.isSize;
|
|
177
67
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
178
|
-
className: "mx-auto w-full max-w-2xl space-y-6 p-4"
|
|
68
|
+
className: classnames__default["default"]("mx-auto w-full max-w-2xl space-y-6 p-4", helpScreenClassName)
|
|
179
69
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
180
70
|
className: "space-y-3"
|
|
181
71
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
@@ -210,11 +100,12 @@ var HelpScreen = function HelpScreen(_ref) {
|
|
|
210
100
|
|
|
211
101
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
212
102
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
213
|
-
var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentStep) {
|
|
103
|
+
var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName) {
|
|
214
104
|
var helpStep = {
|
|
215
105
|
label: i18next.t("neetoMolecules.onboarding.helpLabel"),
|
|
216
106
|
element: /*#__PURE__*/React__default["default"].createElement(HelpScreen, {
|
|
217
107
|
currentStep: currentStep,
|
|
108
|
+
helpScreenClassName: helpScreenClassName,
|
|
218
109
|
setCurrentStep: setCurrentStep
|
|
219
110
|
})
|
|
220
111
|
};
|
|
@@ -225,7 +116,7 @@ var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentS
|
|
|
225
116
|
});
|
|
226
117
|
};
|
|
227
118
|
|
|
228
|
-
var WelcomeScreen
|
|
119
|
+
var WelcomeScreen = withT__default["default"](function (_ref) {
|
|
229
120
|
var t = _ref.t,
|
|
230
121
|
setCurrentStep = _ref.setCurrentStep,
|
|
231
122
|
currentStep = _ref.currentStep;
|
|
@@ -269,12 +160,14 @@ var Onboarding = function Onboarding(_ref) {
|
|
|
269
160
|
_ref$onboardingSteps = _ref.onboardingSteps,
|
|
270
161
|
onboardingSteps = _ref$onboardingSteps === void 0 ? [] : _ref$onboardingSteps,
|
|
271
162
|
_ref$completeButtonPr = _ref.completeButtonProps,
|
|
272
|
-
completeButtonProps = _ref$completeButtonPr === void 0 ? {} : _ref$completeButtonPr
|
|
163
|
+
completeButtonProps = _ref$completeButtonPr === void 0 ? {} : _ref$completeButtonPr,
|
|
164
|
+
_ref$helpScreenClassN = _ref.helpScreenClassName,
|
|
165
|
+
helpScreenClassName = _ref$helpScreenClassN === void 0 ? "" : _ref$helpScreenClassN;
|
|
273
166
|
var steps = React.useMemo(function () {
|
|
274
|
-
return createSteps(onboardingSteps, setCurrentStep, currentStep);
|
|
167
|
+
return createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName);
|
|
275
168
|
}, [onboardingSteps]);
|
|
276
169
|
if (currentStep === 0) {
|
|
277
|
-
return /*#__PURE__*/React__default["default"].createElement(WelcomeScreen
|
|
170
|
+
return /*#__PURE__*/React__default["default"].createElement(WelcomeScreen, {
|
|
278
171
|
currentStep: currentStep,
|
|
279
172
|
setCurrentStep: setCurrentStep
|
|
280
173
|
});
|
|
@@ -303,57 +196,5 @@ var Onboarding = function Onboarding(_ref) {
|
|
|
303
196
|
}, (_steps = steps[currentStep - 1]) === null || _steps === void 0 ? void 0 : _steps.element));
|
|
304
197
|
};
|
|
305
198
|
|
|
306
|
-
|
|
307
|
-
var t = _ref.t,
|
|
308
|
-
title = _ref.title,
|
|
309
|
-
description = _ref.description,
|
|
310
|
-
buttonProps = _ref.buttonProps,
|
|
311
|
-
_ref$className = _ref.className,
|
|
312
|
-
className = _ref$className === void 0 ? "" : _ref$className;
|
|
313
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
314
|
-
className: classnames__default["default"]("neeto-molecules-onboarding__wrapper", className),
|
|
315
|
-
"data-testid": "onboarding-welcome-wrapper"
|
|
316
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
317
|
-
className: "mx-auto mb-6 w-full max-w-2xl space-y-2"
|
|
318
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
319
|
-
className: "text-center",
|
|
320
|
-
"data-cy": "onboarding-welcome-title",
|
|
321
|
-
"data-testid": "onboarding-welcome-title",
|
|
322
|
-
style: "h1"
|
|
323
|
-
}, title), description && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
324
|
-
className: "text-center",
|
|
325
|
-
"data-cy": "onboarding-welcome-description",
|
|
326
|
-
"data-testid": "onboarding-welcome-description",
|
|
327
|
-
lineHeight: "normal",
|
|
328
|
-
style: "body1"
|
|
329
|
-
}, description)), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends__default["default"]({
|
|
330
|
-
"data-cy": "onboarding-welcome-button",
|
|
331
|
-
"data-testid": "onboarding-welcome-button",
|
|
332
|
-
icon: neetoIcons.RightArrow,
|
|
333
|
-
label: t("neetoMolecules.onboarding.getStarted")
|
|
334
|
-
}, buttonProps)));
|
|
335
|
-
});
|
|
336
|
-
WelcomeScreen.propTypes = {
|
|
337
|
-
/**
|
|
338
|
-
* To specify external classnames as overrides.
|
|
339
|
-
*/
|
|
340
|
-
className: index.propTypes.exports.string,
|
|
341
|
-
/**
|
|
342
|
-
* Title of the welcome screen
|
|
343
|
-
*/
|
|
344
|
-
title: index.propTypes.exports.string,
|
|
345
|
-
/**
|
|
346
|
-
* Description of the welcome screen
|
|
347
|
-
*/
|
|
348
|
-
description: index.propTypes.exports.string,
|
|
349
|
-
/**
|
|
350
|
-
* Additional props that can be passed on to the button
|
|
351
|
-
*/
|
|
352
|
-
buttonProps: index.propTypes.exports.object
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
exports.CompletedScreen = CompletedScreen$1;
|
|
356
|
-
exports.HelpScreen = HelpScreen$1;
|
|
357
|
-
exports.WelcomeScreen = WelcomeScreen;
|
|
358
|
-
exports["default"] = Onboarding;
|
|
199
|
+
module.exports = Onboarding;
|
|
359
200
|
//# sourceMappingURL=Onboarding.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Onboarding.js","sources":["../../src/components/Onboarding/CompletedScreen.jsx","../../src/components/Onboarding/HelpScreen.jsx","../../src/components/Onboarding/Onboarding/CompletedScreen.jsx","../../src/components/Onboarding/Onboarding/HelpScreen.jsx","../../src/components/Onboarding/Onboarding/utils.jsx","../../src/components/Onboarding/Onboarding/WelcomeScreen.jsx","../../src/components/Onboarding/Onboarding/index.jsx","../../src/components/Onboarding/WelcomeScreen.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { isPresent } from \"neetocist\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport \"./onboarding.scss\";\n\nconst CompletedScreen = withT(\n ({ t, title, description, children, buttonProps, className = \"\" }) => (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {title}\n </Typography>\n {description && (\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-description\"\n data-testid=\"onboarding-congratulations-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {description}\n </Typography>\n )}\n {children}\n </div>\n {isPresent(buttonProps) && (\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.startUsing\")}\n {...buttonProps}\n />\n )}\n </div>\n )\n);\n\nCompletedScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Title of the completed screen\n */\n title: PropTypes.string,\n /**\n * Description of the completed screen\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * Additional children elements to be rendered within the completed screen.\n */\n children: PropTypes.node,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n};\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport \"./onboarding.scss\";\n\nconst HelpScreen = ({ buttonProps, className = \"\", standalone = false }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-help-wrapper\"\n >\n <div className=\"mx-auto w-full max-w-2xl space-y-6\">\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {standalone\n ? t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })\n : t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full overflow-hidden\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n label={\n standalone\n ? t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })\n : t(\"neetoMolecules.onboarding.helpScreen.continueButton\")\n }\n {...buttonProps}\n />\n </div>\n </div>\n );\n};\n\nHelpScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n /**\n * To specify if the help screen is standalone or not.\n */\n standalone: PropTypes.bool,\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\n\nimport \"./onboarding.scss\";\n\nconst CompletedScreen = withT(({ t, completeButtonProps }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {t(\"neetoMolecules.onboarding.readyToUse\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })}\n {...completeButtonProps}\n />\n </div>\n));\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst HelpScreen = ({ setCurrentStep, currentStep }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div className=\"mx-auto w-full max-w-2xl space-y-6 p-4\">\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n icon={RightArrow}\n iconPosition=\"right\"\n label={t(\"neetoMolecules.onboarding.helpScreen.continueButton\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n );\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { t } from \"i18next\";\n\nimport HelpScreen from \"./HelpScreen\";\n\nexport const createSteps = (onboardingSteps, setCurrentStep, currentStep) => {\n const helpStep = {\n label: t(\"neetoMolecules.onboarding.helpLabel\"),\n element: <HelpScreen {...{ currentStep, setCurrentStep }} />,\n };\n\n return onboardingSteps\n .concat(helpStep)\n .map((step, idx) => ({ ...step, id: idx + 1 }));\n};\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\n\nimport \"./onboarding.scss\";\n\nconst WelcomeScreen = withT(({ t, setCurrentStep, currentStep }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })}\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.letUsCustomize\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n));\n\nexport default WelcomeScreen;\n","import React, { useMemo } from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { Stepper } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport CompletedScreen from \"./CompletedScreen\";\nimport { createSteps } from \"./utils\";\nimport WelcomeScreen from \"./WelcomeScreen\";\n\nconst Onboarding = ({\n currentStep = 0,\n setCurrentStep = noop,\n onboardingSteps = [],\n completeButtonProps = {},\n}) => {\n const steps = useMemo(\n () => createSteps(onboardingSteps, setCurrentStep, currentStep),\n [onboardingSteps]\n );\n\n if (currentStep === 0) {\n return <WelcomeScreen {...{ currentStep, setCurrentStep }} />;\n }\n\n if (currentStep === steps.length + 1) {\n return <CompletedScreen {...{ completeButtonProps }} />;\n }\n\n const handleStepChange = index => setCurrentStep(index + 1);\n\n const isStepperVisible = steps.length > 1;\n\n return (\n <div\n className={classNames(\"neeto-molecules-onboarding__container\", {\n \"neeto-molecules-onboarding__wrapper\": !isStepperVisible,\n })}\n >\n {isStepperVisible && (\n <div className=\"neeto-molecules-onboarding__stepper-wrapper\">\n <Stepper\n {...{ steps }}\n activeIndex={currentStep - 1}\n setActiveIndex={handleStepChange}\n />\n </div>\n )}\n <div className=\"neeto-molecules-onboarding__content\">\n {steps[currentStep - 1]?.element}\n </div>\n </div>\n );\n};\n\nOnboarding.propTypes = {\n /**\n * To specify the current step of the onboarding\n */\n currentStep: PropTypes.number,\n /**\n * List of Custom components for the onboarding\n */\n onboardingSteps: PropTypes.array,\n /**\n * Props for the complete button\n */\n completeButtonProps: PropTypes.object,\n /**\n * To set the step of the onboarding\n */\n setCurrentStep: PropTypes.func,\n};\n\nexport default Onboarding;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport \"./onboarding.scss\";\n\nconst WelcomeScreen = withT(\n ({ t, title, description, buttonProps, className = \"\" }) => (\n <div\n className={classnames(\"neeto-molecules-onboarding__wrapper\", className)}\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {title}\n </Typography>\n {description && (\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {description}\n </Typography>\n )}\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n {...buttonProps}\n />\n </div>\n )\n);\n\nWelcomeScreen.propTypes = {\n /**\n * To specify external classnames as overrides.\n */\n className: PropTypes.string,\n /**\n * Title of the welcome screen\n */\n title: PropTypes.string,\n /**\n * Description of the welcome screen\n */\n description: PropTypes.string,\n /**\n * Additional props that can be passed on to the button\n */\n buttonProps: PropTypes.object,\n};\n\nexport default WelcomeScreen;\n"],"names":["CompletedScreen","withT","_ref","t","title","description","children","buttonProps","_ref$className","className","React","createElement","classnames","Typography","style","lineHeight","isPresent","Button","_extends","label","propTypes","PropTypes","string","oneOfType","node","object","HelpScreen","_ref$standalone","standalone","_useTranslation","useTranslation","_useBreakpoints","useBreakpoints","isSize","component","appName","globalProps","alt","src","completeButtonProps","setCurrentStep","currentStep","icon","RightArrow","iconPosition","onClick","createSteps","onboardingSteps","helpStep","element","concat","map","step","idx","_objectSpread","id","WelcomeScreen","Onboarding","_steps","_ref$currentStep","_ref$setCurrentStep","noop","_ref$onboardingSteps","_ref$completeButtonPr","steps","useMemo","length","handleStepChange","index","isStepperVisible","classNames","Stepper","activeIndex","setActiveIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,iBAAe,GAAGC,yBAAK,CAC3B,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAEC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IAAAC,cAAA,GAAAN,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AA,WACS,CAEX,CAAC,eACNK,yBAAA,CAAAC,aAAA,CAACM,cAAM,EAAAC,4BAAA,CAAA;AACL,IAAA,SAAA,EAAQ,2BAA2B;AACnC,IAAA,aAAA,EAAY,2BAA2B;AACvCwB,IAAAA,IAAI,EAAEC,qBAAW;IACjBxB,KAAK,EAAEhB,CAAC,CAAC,sCAAsC,CAAA;GAC3CI,EAAAA,WAAW,CAChB,CACE,CAAC,CAAA;AAAA,CAEV,EAAC;AAEDiD,aAAa,CAACpC,SAAS,GAAG;AACxB;AACF;AACA;EACEX,SAAS,EAAEY,uBAAS,CAACC,MAAM;AAC3B;AACF;AACA;EACElB,KAAK,EAAEiB,uBAAS,CAACC,MAAM;AACvB;AACF;AACA;EACEjB,WAAW,EAAEgB,uBAAS,CAACC,MAAM;AAC7B;AACF;AACA;EACEf,WAAW,EAAEc,uBAAS,CAACI,MAAAA;AACzB,CAAC;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Onboarding.js","sources":["../../src/components/Onboarding/CompletedScreen.jsx","../../src/components/Onboarding/HelpScreen.jsx","../../src/components/Onboarding/utils.jsx","../../src/components/Onboarding/WelcomeScreen.jsx","../../src/components/Onboarding/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Button, Typography } from \"neetoui\";\n\nconst CompletedScreen = withT(({ t, completeButtonProps }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-congratulations-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-emoji\"\n style=\"h1\"\n >\n 🎉\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-congratulations-title\"\n data-testid=\"onboarding-congratulations-title\"\n style=\"h1\"\n >\n <span className=\"neeto-ui-text-success-500\">\n {t(\"neetoMolecules.onboarding.congratulations\")}\n </span>\n <br />\n {t(\"neetoMolecules.onboarding.readyToUse\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-congratulations-button\"\n data-testid=\"onboarding-congratulations-button\"\n label={t(\"neetoMolecules.onboarding.helpScreen.startUsingButton\", {\n appName: globalProps.appName,\n })}\n {...completeButtonProps}\n />\n </div>\n));\n\nexport default CompletedScreen;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst HelpScreen = ({ setCurrentStep, currentStep, helpScreenClassName }) => {\n const { t } = useTranslation();\n const { isSize } = useBreakpoints();\n\n return (\n <div\n className={classNames(\n \"mx-auto w-full max-w-2xl space-y-6 p-4\",\n helpScreenClassName\n )}\n >\n <div className=\"space-y-3\">\n <Typography\n component=\"h1\"\n data-cy=\"onboarding-help-title\"\n data-testid=\"onboarding-help-title\"\n style=\"h2\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.title\")}\n </Typography>\n <Typography\n data-cy=\"onboarding-help-description\"\n data-testid=\"onboarding-help-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.description\")}\n </Typography>\n <div className=\"w-full\">\n {isSize(\"mobile\") ? (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-mobile_FpB8LKYj4.svg\"\n />\n ) : (\n <img\n alt=\"\"\n src=\"https://ik.imagekit.io/d9mvewbju/Commons/help-desktop_aVe6ENdX97.svg\"\n />\n )}\n </div>\n </div>\n <Button\n data-cy=\"onboarding-help-button\"\n data-testid=\"onboarding-help-button\"\n icon={RightArrow}\n iconPosition=\"right\"\n label={t(\"neetoMolecules.onboarding.helpScreen.continueButton\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n );\n};\n\nexport default HelpScreen;\n","import React from \"react\";\n\nimport { t } from \"i18next\";\n\nimport HelpScreen from \"./HelpScreen\";\n\nexport const createSteps = (\n onboardingSteps,\n setCurrentStep,\n currentStep,\n helpScreenClassName\n) => {\n const helpStep = {\n label: t(\"neetoMolecules.onboarding.helpLabel\"),\n element: (\n <HelpScreen {...{ currentStep, helpScreenClassName, setCurrentStep }} />\n ),\n };\n\n return onboardingSteps\n .concat(helpStep)\n .map((step, idx) => ({ ...step, id: idx + 1 }));\n};\n","import React from \"react\";\n\nimport { globalProps } from \"neetocommons/initializers\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { RightArrow } from \"neetoicons\";\nimport { Button, Typography } from \"neetoui\";\n\nconst WelcomeScreen = withT(({ t, setCurrentStep, currentStep }) => (\n <div\n className=\"neeto-molecules-onboarding__wrapper\"\n data-testid=\"onboarding-welcome-wrapper\"\n >\n <div className=\"mx-auto mb-6 w-full max-w-2xl space-y-2\">\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-title\"\n data-testid=\"onboarding-welcome-title\"\n style=\"h1\"\n >\n {t(\"neetoMolecules.onboarding.helpScreen.welcomeToTitle\", {\n appName: globalProps.appName,\n })}\n </Typography>\n <Typography\n className=\"text-center\"\n data-cy=\"onboarding-welcome-description\"\n data-testid=\"onboarding-welcome-description\"\n lineHeight=\"normal\"\n style=\"body1\"\n >\n {t(\"neetoMolecules.onboarding.letUsCustomize\", {\n appName: globalProps.appName,\n })}\n </Typography>\n </div>\n <Button\n data-cy=\"onboarding-welcome-button\"\n data-testid=\"onboarding-welcome-button\"\n icon={RightArrow}\n label={t(\"neetoMolecules.onboarding.getStarted\")}\n onClick={() => setCurrentStep(currentStep + 1)}\n />\n </div>\n));\n\nexport default WelcomeScreen;\n","import React, { useMemo } from \"react\";\n\nimport classNames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { Stepper } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport CompletedScreen from \"./CompletedScreen\";\nimport \"./onboarding.scss\";\nimport { createSteps } from \"./utils\";\nimport WelcomeScreen from \"./WelcomeScreen\";\n\nconst Onboarding = ({\n currentStep = 0,\n setCurrentStep = noop,\n onboardingSteps = [],\n completeButtonProps = {},\n helpScreenClassName = \"\",\n}) => {\n const steps = useMemo(\n () =>\n createSteps(\n onboardingSteps,\n setCurrentStep,\n currentStep,\n helpScreenClassName\n ),\n [onboardingSteps]\n );\n\n if (currentStep === 0) {\n return <WelcomeScreen {...{ currentStep, setCurrentStep }} />;\n }\n\n if (currentStep === steps.length + 1) {\n return <CompletedScreen {...{ completeButtonProps }} />;\n }\n\n const handleStepChange = index => setCurrentStep(index + 1);\n\n const isStepperVisible = steps.length > 1;\n\n return (\n <div\n className={classNames(\"neeto-molecules-onboarding__container\", {\n \"neeto-molecules-onboarding__wrapper\": !isStepperVisible,\n })}\n >\n {isStepperVisible && (\n <div className=\"neeto-molecules-onboarding__stepper-wrapper\">\n <Stepper\n {...{ steps }}\n activeIndex={currentStep - 1}\n setActiveIndex={handleStepChange}\n />\n </div>\n )}\n <div className=\"neeto-molecules-onboarding__content\">\n {steps[currentStep - 1]?.element}\n </div>\n </div>\n );\n};\n\nOnboarding.propTypes = {\n /**\n * To specify the current step of the onboarding\n */\n currentStep: PropTypes.number,\n /**\n * List of Custom components for the onboarding\n */\n onboardingSteps: PropTypes.array,\n /**\n * Props for the complete button\n */\n completeButtonProps: PropTypes.object,\n /**\n * To set the step of the onboarding\n */\n setCurrentStep: PropTypes.func,\n /**\n * To pass additional classes to the help screen\n */\n helpScreenClassName: PropTypes.string,\n};\n\nexport default Onboarding;\n"],"names":["CompletedScreen","withT","_ref","t","completeButtonProps","React","createElement","className","Typography","style","appName","globalProps","Button","_extends","label","HelpScreen","setCurrentStep","currentStep","helpScreenClassName","_useTranslation","useTranslation","_useBreakpoints","useBreakpoints","isSize","classNames","component","lineHeight","alt","src","icon","RightArrow","iconPosition","onClick","createSteps","onboardingSteps","helpStep","element","concat","map","step","idx","_objectSpread","id","WelcomeScreen","Onboarding","_steps","_ref$currentStep","_ref$setCurrentStep","noop","_ref$onboardingSteps","_ref$completeButtonPr","_ref$helpScreenClassN","steps","useMemo","length","handleStepChange","index","isStepperVisible","Stepper","activeIndex","setActiveIndex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,eAAe,GAAGC,yBAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,mBAAmB,GAAAF,IAAA,CAAnBE,mBAAmB,CAAA;EAAA,oBACrDC,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,SAAS,EAAC,qCAAqC;IAC/C,aAAY,EAAA,oCAAA;GAEZF,eAAAA,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,yCAAA;AAAyC,GAAA,eACtDF,yBAAA,CAAAC,aAAA,CAACE,kBAAU,EAAA;AACTD,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,kCAAkC;AAC1CE,IAAAA,KAAK,EAAC,IAAA;AAAI,GAAA,EACX,cAEW,CAAC,eACbJ,yBAAA,CAAAC,aAAA,CAACE,kBAAU,EAAA;AACTD,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,kCAAkC;AAC1C,IAAA,aAAA,EAAY,kCAAkC;AAC9CE,IAAAA,KAAK,EAAC,IAAA;GAENJ,eAAAA,yBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC,2BAAA;AAA2B,GAAA,EACxCJ,CAAC,CAAC,2CAA2C,CAC1C,CAAC,eACPE,yBAAA,CAAAC,aAAA,WAAK,CAAC,EACLH,CAAC,CAAC,sCAAsC,EAAE;IACzCO,OAAO,EAAEC,wBAAW,CAACD,OAAAA;GACtB,CACS,CACT,CAAC,eACNL,yBAAA,CAAAC,aAAA,CAACM,cAAM,EAAA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CACE,CACN,eACDlD,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qCAAA;AAAqC,GAAA,EAAA,CAAAsC,MAAA,GACjDO,KAAK,CAACnC,WAAW,GAAG,CAAC,CAAC,MAAA,IAAA,IAAA4B,MAAA,KAAtBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,MAAA,CAAwBT,OACtB,CACF,CAAC,CAAA;AAEV;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.3",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/types/Onboarding.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ interface OnboardingComponent {
|
|
|
3
3
|
element: React.ReactNode;
|
|
4
4
|
label: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
6
|
/**
|
|
8
7
|
*
|
|
9
8
|
* The Onboarding component facilitates a smooth onboarding flow. It comprises
|
|
@@ -60,4 +59,6 @@ const Onboarding: React.FC<{
|
|
|
60
59
|
completeButtonProps: Object;
|
|
61
60
|
setCurrentStep: React.Dispatch<React.SetStateAction<number>>;
|
|
62
61
|
onboardingSteps?: OnboardingComponent[];
|
|
63
|
-
|
|
62
|
+
helpScreenClassName?: string;
|
|
63
|
+
}>;
|
|
64
|
+
export default Onboarding;
|