@bigbinary/neeto-molecules 1.2.0-beta1 → 1.2.0-beta3

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.
Files changed (251) hide show
  1. package/README.md +1 -0
  2. package/dist/BrowserSupport.js +3 -3
  3. package/dist/Builder.js +5 -5
  4. package/dist/CalendarView.js +5 -5
  5. package/dist/{Chevron-c64ff676.js → Chevron-c639aa31.js} +5 -5
  6. package/dist/{Chevron-c64ff676.js.map → Chevron-c639aa31.js.map} +1 -1
  7. package/dist/Codeblock.js +4 -4
  8. package/dist/Columns.js +5 -5
  9. package/dist/ConfigurePageSidebar.js +5 -5
  10. package/dist/CopyToClipboardButton.js +4 -4
  11. package/dist/Currency.js +2 -2
  12. package/dist/CustomDomain.js +5 -5
  13. package/dist/CustomDomainDashboard.js +6 -6
  14. package/dist/DateFormat.js +1 -1
  15. package/dist/DateRangeFilter.js +9 -8
  16. package/dist/DateRangeFilter.js.map +1 -1
  17. package/dist/DeleteArchiveModal.js +1 -1
  18. package/dist/DocumentEditor.js +4 -4
  19. package/dist/DynamicVariables.js +3 -3
  20. package/dist/EmailForm.js +5 -5
  21. package/dist/EmojiPicker.js +54 -15
  22. package/dist/EmojiPicker.js.map +1 -1
  23. package/dist/EmojiReactions.js +1 -1
  24. package/dist/ErrorPage.js +1 -1
  25. package/dist/FloatingActionMenu.js +6 -6
  26. package/dist/FloatingActionMenu.js.map +1 -1
  27. package/dist/Header.js +4 -4
  28. package/dist/HelpPopover.js +2 -2
  29. package/dist/IconPicker.js +3 -3
  30. package/dist/ImageWithFallback.js +4 -4
  31. package/dist/InlineInput.js +8 -7
  32. package/dist/InlineInput.js.map +1 -1
  33. package/dist/Insights.js +4 -3
  34. package/dist/Insights.js.map +1 -1
  35. package/dist/IntegrationCard.js +3 -3
  36. package/dist/IntegrationDisconnectAlert.js +2 -2
  37. package/dist/IpRestriction.js +23 -32
  38. package/dist/IpRestriction.js.map +1 -1
  39. package/dist/KeyboardShortcuts.js +2 -2
  40. package/dist/LoginPage.js +7 -6
  41. package/dist/LoginPage.js.map +1 -1
  42. package/dist/MadeWith.js +4 -3
  43. package/dist/MadeWith.js.map +1 -1
  44. package/dist/MenuBar.js +3 -3
  45. package/dist/Metadata.js +1 -1
  46. package/dist/MoreDropdown.js +3 -3
  47. package/dist/NavigationHeader.js +18 -10
  48. package/dist/NavigationHeader.js.map +1 -1
  49. package/dist/NeetoWidget.js +30 -62
  50. package/dist/NeetoWidget.js.map +1 -1
  51. package/dist/Onboarding.js +47 -186
  52. package/dist/Onboarding.js.map +1 -1
  53. package/dist/OptionFields.js +4 -4
  54. package/dist/PageLoader.js +6 -66
  55. package/dist/PageLoader.js.map +1 -1
  56. package/dist/PhoneNumber.js +28 -19
  57. package/dist/PhoneNumber.js.map +1 -1
  58. package/dist/ProductEmbed.js +5 -5
  59. package/dist/PublishBlock.js +2 -2
  60. package/dist/Rename.js +5 -5
  61. package/dist/ResponsiveDevicePicker.js +5 -5
  62. package/dist/Schedule.js +8 -29
  63. package/dist/Schedule.js.map +1 -1
  64. package/dist/Scrollable.js +3 -3
  65. package/dist/Search.js +4 -4
  66. package/dist/Security.js +13 -18
  67. package/dist/Security.js.map +1 -1
  68. package/dist/SendToFields.js +3 -3
  69. package/dist/Settings.js +4 -4
  70. package/dist/ShareRecordingPane.js +4 -4
  71. package/dist/ShareViaEmail.js +5 -5
  72. package/dist/ShareViaLink.js +5 -5
  73. package/dist/ShareViaLink.js.map +1 -1
  74. package/dist/Sidebar.js +5 -5
  75. package/dist/StickyRibbonsContainer.js +81 -0
  76. package/dist/StickyRibbonsContainer.js.map +1 -0
  77. package/dist/SubHeader.js +5 -5
  78. package/dist/SuffixedInput.js +4 -4
  79. package/dist/Taxonomy.js +12 -18
  80. package/dist/Taxonomy.js.map +1 -1
  81. package/dist/ThemeSidebar.js +14 -13
  82. package/dist/ThemeSidebar.js.map +1 -1
  83. package/dist/TimeFormat.js +1 -1
  84. package/dist/TimezoneMismatchModal.js +7 -12
  85. package/dist/TimezoneMismatchModal.js.map +1 -1
  86. package/dist/ToggleFeatureCard.js +4 -4
  87. package/dist/cjs/BrowserSupport.js +9 -6
  88. package/dist/cjs/BrowserSupport.js.map +1 -1
  89. package/dist/cjs/Builder.js +22 -18
  90. package/dist/cjs/Builder.js.map +1 -1
  91. package/dist/cjs/CalendarView.js +19 -15
  92. package/dist/cjs/CalendarView.js.map +1 -1
  93. package/dist/cjs/{Chevron-8a4ed9cd.js → Chevron-5fe59f57.js} +16 -13
  94. package/dist/cjs/{Chevron-8a4ed9cd.js.map → Chevron-5fe59f57.js.map} +1 -1
  95. package/dist/cjs/Codeblock.js +7 -6
  96. package/dist/cjs/Codeblock.js.map +1 -1
  97. package/dist/cjs/Columns.js +5 -5
  98. package/dist/cjs/ConfigurePageSidebar.js +8 -7
  99. package/dist/cjs/ConfigurePageSidebar.js.map +1 -1
  100. package/dist/cjs/CopyToClipboardButton.js +12 -8
  101. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  102. package/dist/cjs/Currency.js +8 -6
  103. package/dist/cjs/Currency.js.map +1 -1
  104. package/dist/cjs/CustomDomain.js +8 -7
  105. package/dist/cjs/CustomDomain.js.map +1 -1
  106. package/dist/cjs/CustomDomainDashboard.js +13 -11
  107. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  108. package/dist/cjs/DateFormat.js +4 -3
  109. package/dist/cjs/DateFormat.js.map +1 -1
  110. package/dist/cjs/DateRangeFilter.js +13 -10
  111. package/dist/cjs/DateRangeFilter.js.map +1 -1
  112. package/dist/cjs/DeleteArchiveModal.js +3 -2
  113. package/dist/cjs/DeleteArchiveModal.js.map +1 -1
  114. package/dist/cjs/DocumentEditor.js +13 -10
  115. package/dist/cjs/DocumentEditor.js.map +1 -1
  116. package/dist/cjs/DynamicVariables.js +9 -6
  117. package/dist/cjs/DynamicVariables.js.map +1 -1
  118. package/dist/cjs/EmailForm.js +12 -10
  119. package/dist/cjs/EmailForm.js.map +1 -1
  120. package/dist/cjs/EmojiPicker.js +59 -19
  121. package/dist/cjs/EmojiPicker.js.map +1 -1
  122. package/dist/cjs/EmojiReactions.js +3 -2
  123. package/dist/cjs/EmojiReactions.js.map +1 -1
  124. package/dist/cjs/ErrorPage.js +3 -2
  125. package/dist/cjs/ErrorPage.js.map +1 -1
  126. package/dist/cjs/FloatingActionMenu.js +28 -23
  127. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  128. package/dist/cjs/Header.js +11 -8
  129. package/dist/cjs/Header.js.map +1 -1
  130. package/dist/cjs/HelpPopover.js +8 -6
  131. package/dist/cjs/HelpPopover.js.map +1 -1
  132. package/dist/cjs/IconPicker.js +11 -8
  133. package/dist/cjs/IconPicker.js.map +1 -1
  134. package/dist/cjs/ImageWithFallback.js +15 -11
  135. package/dist/cjs/ImageWithFallback.js.map +1 -1
  136. package/dist/cjs/InlineInput.js +25 -18
  137. package/dist/cjs/InlineInput.js.map +1 -1
  138. package/dist/cjs/Insights.js +4 -3
  139. package/dist/cjs/Insights.js.map +1 -1
  140. package/dist/cjs/IntegrationCard.js +9 -7
  141. package/dist/cjs/IntegrationCard.js.map +1 -1
  142. package/dist/cjs/IntegrationDisconnectAlert.js +6 -4
  143. package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
  144. package/dist/cjs/IpRestriction.js +27 -34
  145. package/dist/cjs/IpRestriction.js.map +1 -1
  146. package/dist/cjs/KeyboardShortcuts.js +9 -7
  147. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  148. package/dist/cjs/LoginPage.js +11 -7
  149. package/dist/cjs/LoginPage.js.map +1 -1
  150. package/dist/cjs/MadeWith.js +8 -5
  151. package/dist/cjs/MadeWith.js.map +1 -1
  152. package/dist/cjs/MenuBar.js +22 -19
  153. package/dist/cjs/MenuBar.js.map +1 -1
  154. package/dist/cjs/Metadata.js +5 -4
  155. package/dist/cjs/Metadata.js.map +1 -1
  156. package/dist/cjs/MoreDropdown.js +18 -15
  157. package/dist/cjs/MoreDropdown.js.map +1 -1
  158. package/dist/cjs/NavigationHeader.js +23 -13
  159. package/dist/cjs/NavigationHeader.js.map +1 -1
  160. package/dist/cjs/NeetoWidget.js +41 -70
  161. package/dist/cjs/NeetoWidget.js.map +1 -1
  162. package/dist/cjs/Onboarding.js +46 -187
  163. package/dist/cjs/Onboarding.js.map +1 -1
  164. package/dist/cjs/OptionFields.js +21 -17
  165. package/dist/cjs/OptionFields.js.map +1 -1
  166. package/dist/cjs/PageLoader.js +9 -85
  167. package/dist/cjs/PageLoader.js.map +1 -1
  168. package/dist/cjs/PhoneNumber.js +48 -34
  169. package/dist/cjs/PhoneNumber.js.map +1 -1
  170. package/dist/cjs/ProductEmbed.js +24 -21
  171. package/dist/cjs/ProductEmbed.js.map +1 -1
  172. package/dist/cjs/PublishBlock.js +13 -11
  173. package/dist/cjs/PublishBlock.js.map +1 -1
  174. package/dist/cjs/Rename.js +17 -13
  175. package/dist/cjs/Rename.js.map +1 -1
  176. package/dist/cjs/ResponsiveDevicePicker.js +12 -8
  177. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  178. package/dist/cjs/Schedule.js +24 -39
  179. package/dist/cjs/Schedule.js.map +1 -1
  180. package/dist/cjs/Scrollable.js +9 -6
  181. package/dist/cjs/Scrollable.js.map +1 -1
  182. package/dist/cjs/Search.js +12 -8
  183. package/dist/cjs/Search.js.map +1 -1
  184. package/dist/cjs/Security.js +20 -22
  185. package/dist/cjs/Security.js.map +1 -1
  186. package/dist/cjs/SendToFields.js +12 -9
  187. package/dist/cjs/SendToFields.js.map +1 -1
  188. package/dist/cjs/Settings.js +14 -11
  189. package/dist/cjs/Settings.js.map +1 -1
  190. package/dist/cjs/ShareRecordingPane.js +16 -12
  191. package/dist/cjs/ShareRecordingPane.js.map +1 -1
  192. package/dist/cjs/ShareViaEmail.js +15 -10
  193. package/dist/cjs/ShareViaEmail.js.map +1 -1
  194. package/dist/cjs/ShareViaLink.js +9 -8
  195. package/dist/cjs/ShareViaLink.js.map +1 -1
  196. package/dist/cjs/Sidebar.js +16 -12
  197. package/dist/cjs/Sidebar.js.map +1 -1
  198. package/dist/cjs/StickyRibbonsContainer.js +90 -0
  199. package/dist/cjs/StickyRibbonsContainer.js.map +1 -0
  200. package/dist/cjs/SubHeader.js +14 -11
  201. package/dist/cjs/SubHeader.js.map +1 -1
  202. package/dist/cjs/SuffixedInput.js +10 -7
  203. package/dist/cjs/SuffixedInput.js.map +1 -1
  204. package/dist/cjs/Taxonomy.js +27 -30
  205. package/dist/cjs/Taxonomy.js.map +1 -1
  206. package/dist/cjs/ThemeSidebar.js +33 -26
  207. package/dist/cjs/ThemeSidebar.js.map +1 -1
  208. package/dist/cjs/TimeFormat.js +1 -1
  209. package/dist/cjs/TimezoneMismatchModal.js +9 -13
  210. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  211. package/dist/cjs/ToggleFeatureCard.js +17 -13
  212. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  213. package/dist/cjs/{index-00fdb8c2.js → index-27f4aa6e.js} +18 -21
  214. package/dist/cjs/index-27f4aa6e.js.map +1 -0
  215. package/dist/cjs/{useColumns-a1c3668f.js → useColumns-9978cf70.js} +18 -14
  216. package/dist/cjs/{useColumns-a1c3668f.js.map → useColumns-9978cf70.js.map} +1 -1
  217. package/dist/{index-90c89467.js → index-f2f4a6ba.js} +14 -19
  218. package/dist/index-f2f4a6ba.js.map +1 -0
  219. package/dist/{useColumns-d17d1f72.js → useColumns-751e9192.js} +5 -5
  220. package/dist/{useColumns-d17d1f72.js.map → useColumns-751e9192.js.map} +1 -1
  221. package/package.json +6 -7
  222. package/src/translations/en.json +1 -1
  223. package/types/Onboarding.d.ts +4 -2
  224. package/types/ProductEmbed.d.ts +53 -9
  225. package/types/StickyRibbonsContainer.d.ts +26 -0
  226. package/dist/cjs/defineProperty-886ed289.js +0 -47
  227. package/dist/cjs/defineProperty-886ed289.js.map +0 -1
  228. package/dist/cjs/extends-1b35a664.js +0 -19
  229. package/dist/cjs/extends-1b35a664.js.map +0 -1
  230. package/dist/cjs/index-00fdb8c2.js.map +0 -1
  231. package/dist/cjs/index-c55ad2bc.js +0 -375
  232. package/dist/cjs/index-c55ad2bc.js.map +0 -1
  233. package/dist/cjs/objectWithoutProperties-2fed2d7d.js +0 -33
  234. package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +0 -1
  235. package/dist/cjs/slicedToArray-f320d9e7.js +0 -61
  236. package/dist/cjs/slicedToArray-f320d9e7.js.map +0 -1
  237. package/dist/cjs/toConsumableArray-9abb3858.js +0 -22
  238. package/dist/cjs/toConsumableArray-9abb3858.js.map +0 -1
  239. package/dist/defineProperty-549061a7.js +0 -43
  240. package/dist/defineProperty-549061a7.js.map +0 -1
  241. package/dist/extends-093996c9.js +0 -17
  242. package/dist/extends-093996c9.js.map +0 -1
  243. package/dist/index-90c89467.js.map +0 -1
  244. package/dist/index-9720867c.js +0 -372
  245. package/dist/index-9720867c.js.map +0 -1
  246. package/dist/objectWithoutProperties-a0edb288.js +0 -31
  247. package/dist/objectWithoutProperties-a0edb288.js.map +0 -1
  248. package/dist/slicedToArray-b4278ecd.js +0 -57
  249. package/dist/slicedToArray-b4278ecd.js.map +0 -1
  250. package/dist/toConsumableArray-1cc38429.js +0 -20
  251. package/dist/toConsumableArray-1cc38429.js.map +0 -1
@@ -1,128 +1,17 @@
1
- import { _ as _extends } from './extends-093996c9.js';
2
- import React__default, { useMemo } from 'react';
1
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
+ import React__default, { useMemo, useState } from 'react';
3
3
  import classnames from 'classnames';
4
- import { isPresent, noop } from '@bigbinary/neeto-cist';
5
- import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
4
+ import { noop } from '@bigbinary/neeto-cist';
6
5
  import { Typography, Button, Stepper } from '@bigbinary/neetoui';
7
- import { p as propTypes } from './index-e5588516.js';
6
+ import _extends from '@babel/runtime/helpers/extends';
7
+ import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
8
+ import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
8
9
  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
- import { _ as _defineProperty } from './defineProperty-549061a7.js';
10
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
13
11
  import { t } from 'i18next';
12
+ import useBreakpoints from '@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints';
14
13
  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,{});
14
+ import { useTranslation } from 'react-i18next';
126
15
 
127
16
  var CompletedScreen = withT(function (_ref) {
128
17
  var t = _ref.t,
@@ -144,25 +33,29 @@ var CompletedScreen = withT(function (_ref) {
144
33
  }, /*#__PURE__*/React__default.createElement("span", {
145
34
  className: "neeto-ui-text-success-500"
146
35
  }, t("neetoMolecules.onboarding.congratulations")), /*#__PURE__*/React__default.createElement("br", null), t("neetoMolecules.onboarding.readyToUse", {
147
- appName: globalProps$1.appName
36
+ appName: globalProps.appName
148
37
  }))), /*#__PURE__*/React__default.createElement(Button, _extends({
149
38
  "data-cy": "onboarding-congratulations-button",
150
39
  "data-testid": "onboarding-congratulations-button",
151
40
  label: t("neetoMolecules.onboarding.helpScreen.startUsingButton", {
152
- appName: globalProps$1.appName
41
+ appName: globalProps.appName
153
42
  })
154
43
  }, completeButtonProps)));
155
44
  });
156
45
 
46
+ 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%}.neeto-molecules-onboarding__content--forward{animation:slideInRight .4s ease backwards}.neeto-molecules-onboarding__content--backward{animation:slideInLeft .4s ease backwards}@keyframes slideInRight{0%{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}";
47
+ n(css,{});
48
+
157
49
  var HelpScreen = function HelpScreen(_ref) {
158
50
  var setCurrentStep = _ref.setCurrentStep,
159
- currentStep = _ref.currentStep;
51
+ currentStep = _ref.currentStep,
52
+ helpScreenClassName = _ref.helpScreenClassName;
160
53
  var _useTranslation = useTranslation(),
161
54
  t = _useTranslation.t;
162
55
  var _useBreakpoints = useBreakpoints(),
163
56
  isSize = _useBreakpoints.isSize;
164
57
  return /*#__PURE__*/React__default.createElement("div", {
165
- className: "mx-auto w-full max-w-2xl space-y-6 p-4"
58
+ className: classnames("mx-auto w-full max-w-2xl space-y-6 p-4", helpScreenClassName)
166
59
  }, /*#__PURE__*/React__default.createElement("div", {
167
60
  className: "space-y-3"
168
61
  }, /*#__PURE__*/React__default.createElement(Typography, {
@@ -197,11 +90,12 @@ var HelpScreen = function HelpScreen(_ref) {
197
90
 
198
91
  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
92
  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) {
93
+ var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName) {
201
94
  var helpStep = {
202
95
  label: t("neetoMolecules.onboarding.helpLabel"),
203
96
  element: /*#__PURE__*/React__default.createElement(HelpScreen, {
204
97
  currentStep: currentStep,
98
+ helpScreenClassName: helpScreenClassName,
205
99
  setCurrentStep: setCurrentStep
206
100
  })
207
101
  };
@@ -212,7 +106,7 @@ var createSteps = function createSteps(onboardingSteps, setCurrentStep, currentS
212
106
  });
213
107
  };
214
108
 
215
- var WelcomeScreen$1 = withT(function (_ref) {
109
+ var WelcomeScreen = withT(function (_ref) {
216
110
  var t = _ref.t,
217
111
  setCurrentStep = _ref.setCurrentStep,
218
112
  currentStep = _ref.currentStep;
@@ -227,7 +121,7 @@ var WelcomeScreen$1 = withT(function (_ref) {
227
121
  "data-testid": "onboarding-welcome-title",
228
122
  style: "h1"
229
123
  }, t("neetoMolecules.onboarding.helpScreen.welcomeToTitle", {
230
- appName: globalProps$1.appName
124
+ appName: globalProps.appName
231
125
  })), /*#__PURE__*/React__default.createElement(Typography, {
232
126
  className: "text-center",
233
127
  "data-cy": "onboarding-welcome-description",
@@ -235,7 +129,7 @@ var WelcomeScreen$1 = withT(function (_ref) {
235
129
  lineHeight: "normal",
236
130
  style: "body1"
237
131
  }, t("neetoMolecules.onboarding.letUsCustomize", {
238
- appName: globalProps$1.appName
132
+ appName: globalProps.appName
239
133
  }))), /*#__PURE__*/React__default.createElement(Button, {
240
134
  "data-cy": "onboarding-welcome-button",
241
135
  "data-testid": "onboarding-welcome-button",
@@ -248,7 +142,6 @@ var WelcomeScreen$1 = withT(function (_ref) {
248
142
  });
249
143
 
250
144
  var Onboarding = function Onboarding(_ref) {
251
- var _steps;
252
145
  var _ref$currentStep = _ref.currentStep,
253
146
  currentStep = _ref$currentStep === void 0 ? 0 : _ref$currentStep,
254
147
  _ref$setCurrentStep = _ref.setCurrentStep,
@@ -256,12 +149,20 @@ 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,
155
+ _ref$isAnimated = _ref.isAnimated,
156
+ isAnimated = _ref$isAnimated === void 0 ? true : _ref$isAnimated;
260
157
  var steps = useMemo(function () {
261
- return createSteps(onboardingSteps, setCurrentStep, currentStep);
158
+ return createSteps(onboardingSteps, setCurrentStep, currentStep, helpScreenClassName);
262
159
  }, [onboardingSteps]);
160
+ var _useState = useState(""),
161
+ _useState2 = _slicedToArray(_useState, 2),
162
+ direction = _useState2[0],
163
+ setDirection = _useState2[1];
263
164
  if (currentStep === 0) {
264
- return /*#__PURE__*/React__default.createElement(WelcomeScreen$1, {
165
+ return /*#__PURE__*/React__default.createElement(WelcomeScreen, {
265
166
  currentStep: currentStep,
266
167
  setCurrentStep: setCurrentStep
267
168
  });
@@ -272,7 +173,9 @@ var Onboarding = function Onboarding(_ref) {
272
173
  });
273
174
  }
274
175
  var handleStepChange = function handleStepChange(index) {
275
- return setCurrentStep(index + 1);
176
+ var nextStep = index + 1;
177
+ setDirection(currentStep > nextStep ? "backward" : "forward");
178
+ setCurrentStep(nextStep);
276
179
  };
277
180
  var isStepperVisible = steps.length > 1;
278
181
  return /*#__PURE__*/React__default.createElement("div", {
@@ -285,59 +188,17 @@ var Onboarding = function Onboarding(_ref) {
285
188
  steps: steps,
286
189
  activeIndex: currentStep - 1,
287
190
  setActiveIndex: handleStepChange
288
- })), /*#__PURE__*/React__default.createElement("div", {
289
- className: "neeto-molecules-onboarding__content"
290
- }, (_steps = steps[currentStep - 1]) === null || _steps === void 0 ? void 0 : _steps.element));
291
- };
292
-
293
- var WelcomeScreen = withT(function (_ref) {
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
191
+ })), steps.map(function (step, index) {
192
+ return /*#__PURE__*/React__default.createElement("div", {
193
+ key: index,
194
+ className: classnames("neeto-molecules-onboarding__content", {
195
+ "neeto-molecules-onboarding__content--forward overflow-x-hidden": isAnimated && direction === "forward",
196
+ "neeto-molecules-onboarding__content--backward overflow-x-hidden": isAnimated && direction === "backward",
197
+ hidden: currentStep - 1 !== index
198
+ })
199
+ }, step === null || step === void 0 ? void 0 : step.element);
200
+ }));
340
201
  };
341
202
 
342
- export { CompletedScreen$1 as CompletedScreen, HelpScreen$1 as HelpScreen, WelcomeScreen, Onboarding as default };
203
+ export { Onboarding as default };
343
204
  //# 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,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,cAEW,CAAC,eACbJ,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTJ,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,kCAAkC;AAC1C,IAAA,aAAA,EAAY,kCAAkC;AAC9CK,IAAAA,KAAK,EAAC,IAAA;GAENJ,eA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DC,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTJ,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,0BAA0B;AAClC,IAAA,aAAA,EAAY,0BAA0B;AACtCK,IAAAA,KAAK,EAAC,IAAA;GAELV,EAAAA,KACS,CAAC,EACZC,WAAW,iBACVK,cAAA,CAAAC,aAAA,CAACE,UAAU,EAAA;AACTJ,IAAAA,SAAS,EAAC,aAAa;AACvB,IAAA,SAAA,EAAQ,gCAAgC;AACxC,IAAA,aAAA,EAAY,gCAAgC;AAC5CM,IAAAA,UAAU,EAAC,QAAQ;AACnBD,IAAAA,KAAK,EAAC,OAAA;GAELT,EAAAA,WACS,CAEX,CAAC,eACNK,cAAA,CAAAC,aAAA,CAACM,MAAM,EAAAC,QAAA,CAAA;AACL,IAAA,SAAA,EAAQ,2BAA2B;AACnC,IAAA,aAAA,EAAY,2BAA2B;AACvCwB,IAAAA,IAAI,EAAEC,UAAW;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,iBAAS,CAACC,MAAM;AAC3B;AACF;AACA;EACElB,KAAK,EAAEiB,iBAAS,CAACC,MAAM;AACvB;AACF;AACA;EACEjB,WAAW,EAAEgB,iBAAS,CAACC,MAAM;AAC7B;AACF;AACA;EACEf,WAAW,EAAEc,iBAAS,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, useState } 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 isAnimated = true,\n}) => {\n const steps = useMemo(\n () =>\n createSteps(\n onboardingSteps,\n setCurrentStep,\n currentStep,\n helpScreenClassName\n ),\n [onboardingSteps]\n );\n const [direction, setDirection] = useState(\"\");\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 => {\n const nextStep = index + 1;\n setDirection(currentStep > nextStep ? \"backward\" : \"forward\");\n setCurrentStep(nextStep);\n };\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 {steps.map((step, index) => (\n <div\n key={index}\n className={classNames(\"neeto-molecules-onboarding__content\", {\n \"neeto-molecules-onboarding__content--forward overflow-x-hidden\":\n isAnimated && direction === \"forward\",\n \"neeto-molecules-onboarding__content--backward overflow-x-hidden\":\n isAnimated && direction === \"backward\",\n hidden: currentStep - 1 !== index,\n })}\n >\n {step?.element}\n </div>\n ))}\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 * A boolean value to enable or disable the animation for the stepper.\n */\n isAnimated: PropTypes.bool,\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","_ref$currentStep","_ref$setCurrentStep","noop","_ref$onboardingSteps","_ref$completeButtonPr","_ref$helpScreenClassN","_ref$isAnimated","isAnimated","steps","useMemo","_useState","useState","_useState2","_slicedToArray","direction","setDirection","length","handleStepChange","index","nextStep","isStepperVisible","Stepper","activeIndex","setActiveIndex","key","hidden"],"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,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oBACrB1D,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACE+D,MAAAA,GAAG,EAAEN,KAAM;AACXxD,MAAAA,SAAS,EAAEiB,UAAU,CAAC,qCAAqC,EAAE;AAC3D,QAAA,gEAAgE,EAC9D4B,UAAU,IAAIO,SAAS,KAAK,SAAS;AACvC,QAAA,iEAAiE,EAC/DP,UAAU,IAAIO,SAAS,KAAK,UAAU;AACxCW,QAAAA,MAAM,EAAErD,WAAW,GAAG,CAAC,KAAK8C,KAAAA;OAC7B,CAAA;AAAE,KAAA,EAEFxB,IAAI,KAAJA,IAAAA,IAAAA,IAAI,uBAAJA,IAAI,CAAEH,OACJ,CAAC,CAAA;AAAA,GACP,CACE,CAAC,CAAA;AAEV;;;;"}
@@ -1,5 +1,5 @@
1
- import { _ as _extends } from './extends-093996c9.js';
2
- import { _ as _slicedToArray } from './slicedToArray-b4278ecd.js';
1
+ import _extends from '@babel/runtime/helpers/extends';
2
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import React__default, { useState } from 'react';
4
4
  import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd';
5
5
  import { isNotEmpty, noop, slugify } from '@bigbinary/neeto-cist';
@@ -8,8 +8,8 @@ import { Typography, Button, Modal, Textarea, Input } from '@bigbinary/neetoui';
8
8
  import { reject, prop, isEmpty, assocPath, remove, move, append, path, pluck } from 'ramda';
9
9
  import { useTranslation, Trans } from 'react-i18next';
10
10
  import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
11
- import { _ as _toConsumableArray } from './toConsumableArray-1cc38429.js';
12
- import { _ as _defineProperty } from './defineProperty-549061a7.js';
11
+ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
12
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
13
13
  import { useFormikContext } from 'formik';
14
14
  import i18next from 'i18next';
15
15
 
@@ -1,57 +1,10 @@
1
- import { _ as _extends$1 } from './extends-093996c9.js';
2
- import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
3
- import * as React from 'react';
1
+ import _extends from '@babel/runtime/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
3
  import React__default from 'react';
5
4
  import { Typography } from '@bigbinary/neetoui';
6
5
  import { n } from './inject-css-c86de496.js';
7
6
 
8
- var _path, _path2, _g, _defs;
9
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
- var SvgNeeto = function SvgNeeto(props) {
11
- return /*#__PURE__*/React.createElement("svg", _extends({
12
- width: 50,
13
- height: 50,
14
- viewBox: "0 0 415 415",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
18
- d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
19
- fill: "#0043AC"
20
- })), /*#__PURE__*/React.createElement("mask", {
21
- id: "neeto_svg__a",
22
- style: {
23
- maskType: "alpha"
24
- },
25
- maskUnits: "userSpaceOnUse",
26
- x: 0,
27
- y: 0,
28
- width: 415,
29
- height: 415
30
- }, _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
31
- d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
32
- fill: "#0043AC"
33
- }))), _g || (_g = /*#__PURE__*/React.createElement("g", {
34
- mask: "url(#neeto_svg__a)"
35
- }, /*#__PURE__*/React.createElement("path", {
36
- d: "M233.747 348.74c88.579 101.145 172.015 116.411 202.661 111.401v32.491H-8.032V230.487c43.685-2.726 153.2 17.108 241.779 118.253Z",
37
- fill: "url(#neeto_svg__b)"
38
- }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("radialGradient", {
39
- id: "neeto_svg__b",
40
- cx: 0,
41
- cy: 0,
42
- r: 1,
43
- gradientUnits: "userSpaceOnUse",
44
- gradientTransform: "rotate(47.118 -220.556 214.818) scale(427.964 725.049)"
45
- }, /*#__PURE__*/React.createElement("stop", {
46
- stopColor: "#0043AC"
47
- }), /*#__PURE__*/React.createElement("stop", {
48
- offset: 1,
49
- stopColor: "#3DB1CA",
50
- stopOpacity: 0.8
51
- })))));
52
- };
53
-
54
- var css = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
7
+ var css = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{margin-bottom:16px;padding:8px;position:relative}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__loader{animation:neeto-molecules-pageloader-anim1 .8s linear infinite alternate,neeto-molecules-pageloader-anim2 1.6s linear infinite;aspect-ratio:1;border:5px solid #5bcc5a;border-radius:50%;width:36px}@keyframes neeto-molecules-pageloader-anim1{0%{-webkit-clip-path:polygon(50% 50%,0 0,50% 0,50% 0,50% 0,50% 0,50% 0);clip-path:polygon(50% 50%,0 0,50% 0,50% 0,50% 0,50% 0,50% 0)}12.5%{-webkit-clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 0,100% 0,100% 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,100% 100%,100% 100%)}50%{-webkit-clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);clip-path:polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%)}62.5%{-webkit-clip-path:polygon(50% 50%,100% 0,100% 0,100% 0,100% 100%,50% 100%,0 100%);clip-path:polygon(50% 50%,100% 0,100% 0,100% 0,100% 100%,50% 100%,0 100%)}75%{-webkit-clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0 100%);clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0 100%);clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0 100%)}}@keyframes neeto-molecules-pageloader-anim2{0%{transform:scaleY(1) rotate(0deg)}49.99%{transform:scaleY(1) rotate(135deg)}50%{transform:scaleY(-1) rotate(0deg)}to{transform:scaleY(-1) rotate(-135deg)}}";
55
8
  n(css,{});
56
9
 
57
10
  var _excluded = ["text"];
@@ -59,29 +12,16 @@ var PageLoader = function PageLoader(_ref) {
59
12
  var _ref$text = _ref.text,
60
13
  text = _ref$text === void 0 ? "" : _ref$text,
61
14
  otherProps = _objectWithoutProperties(_ref, _excluded);
62
- return /*#__PURE__*/React__default.createElement("div", _extends$1({
15
+ return /*#__PURE__*/React__default.createElement("div", _extends({
63
16
  className: "neeto-molecules-pageloader__wrapper"
64
17
  }, otherProps), /*#__PURE__*/React__default.createElement("div", {
65
18
  className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
66
19
  }, /*#__PURE__*/React__default.createElement("div", {
67
20
  className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center",
68
21
  "data-cy": "neeto-molecules-pageloader"
69
- }, /*#__PURE__*/React__default.createElement(SvgNeeto, {
70
- className: "neeto-molecules-pageloader__logo",
71
- size: 50
72
- }), /*#__PURE__*/React__default.createElement("div", {
73
- className: "neeto-molecules-pageloader__spinner"
74
22
  }, /*#__PURE__*/React__default.createElement("div", {
75
- className: "neeto-molecules-pageloader__rect1"
76
- }), /*#__PURE__*/React__default.createElement("div", {
77
- className: "neeto-molecules-pageloader__rect2"
78
- }), /*#__PURE__*/React__default.createElement("div", {
79
- className: "neeto-molecules-pageloader__rect3"
80
- }), /*#__PURE__*/React__default.createElement("div", {
81
- className: "neeto-molecules-pageloader__rect4"
82
- }), /*#__PURE__*/React__default.createElement("div", {
83
- className: "neeto-molecules-pageloader__rect5"
84
- }))), text && /*#__PURE__*/React__default.createElement(Typography, {
23
+ className: "neeto-molecules-pageloader__loader"
24
+ })), text && /*#__PURE__*/React__default.createElement(Typography, {
85
25
  style: "h5",
86
26
  weight: "semibold"
87
27
  }, text)));
@@ -1 +1 @@
1
- {"version":3,"file":"PageLoader.js","sources":["../src/assets/images/neeto.svg","../src/components/PageLoader/index.jsx"],"sourcesContent":["<svg width=\"50\" height=\"50\" viewBox=\"0 0 415 415\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M414.989 207.495C414.989 92.8986 322.091 0 207.495 0H0V414.989H414.989V207.495Z\" fill=\"#0043AC\"/>\n <mask id=\"mask0_4209_5356\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"415\" height=\"415\">\n <path d=\"M414.989 207.495C414.989 92.8986 322.091 0 207.495 0H0V414.989H414.989V207.495Z\" fill=\"#0043AC\"/>\n </mask>\n <g mask=\"url(#mask0_4209_5356)\">\n <path d=\"M233.747 348.74C322.326 449.885 405.762 465.151 436.408 460.141V492.632H-8.03214V230.487C35.6531 227.761 145.168 247.595 233.747 348.74Z\" fill=\"url(#paint0_radial_4209_5356)\"/>\n </g>\n <defs>\n <radialGradient id=\"paint0_radial_4209_5356\" cx=\"0\" cy=\"0\" r=\"1\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"translate(86.9393 230.252) rotate(47.1183) scale(427.964 725.049)\">\n <stop stop-color=\"#0043AC\"/>\n <stop offset=\"1\" stop-color=\"#3DB1CA\" stop-opacity=\"0.8\"/>\n </radialGradient>\n </defs>\n</svg>\n","import React from \"react\";\n\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport Neeto from \"assets/images/neeto\";\n\nimport \"./page-loader.scss\";\n\nconst PageLoader = ({ text = \"\", ...otherProps }) => (\n <div className=\"neeto-molecules-pageloader__wrapper\" {...otherProps}>\n <div className=\"neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center\">\n <div\n className=\"neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center\"\n data-cy=\"neeto-molecules-pageloader\"\n >\n <Neeto className=\"neeto-molecules-pageloader__logo\" size={50} />\n <div className=\"neeto-molecules-pageloader__spinner\">\n <div className=\"neeto-molecules-pageloader__rect1\" />\n <div className=\"neeto-molecules-pageloader__rect2\" />\n <div className=\"neeto-molecules-pageloader__rect3\" />\n <div className=\"neeto-molecules-pageloader__rect4\" />\n <div className=\"neeto-molecules-pageloader__rect5\" />\n </div>\n </div>\n {text && (\n <Typography style=\"h5\" weight=\"semibold\">\n {text}\n </Typography>\n )}\n </div>\n </div>\n);\n\nPageLoader.propTypes = {\n /**\n * Text to indicate loading status (optional).\n */\n text: PropTypes.string,\n};\n\nexport default React.memo(PageLoader);\n"],"names":["PageLoader","_ref","_ref$text","text","otherProps","_objectWithoutProperties","_excluded","React","createElement","_extends","className","Neeto","size","Typography","style","weight","memo"],"mappings":";;;;;;;AAAA,IAAI,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC;AAC7B,SAAS,QAAQ,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,EAAE;AAEnV,IAAI,QAAQ,GAAG,SAAS,QAA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AAAG,GAAE,CAAC,eAChEL,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,qCAAA;GACbH,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,mCAAA;AAAmC,GAAE,CAAC,eACrDH,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,mCAAA;AAAmC,GAAE,CAAC,eACrDH,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,mCAAA;AAAmC,GAAE,CAAC,eACrDH,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,mCAAA;AAAmC,GAAE,CAAC,eACrDH,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,mCAAA;GAAqC,CACjD,CACF,CAAC,EACLP,IAAI,iBACHI,cAAA,CAAAC,aAAA,CAACK,UAAU,EAAA;AAACC,IAAAA,KAAK,EAAC,IAAI;AAACC,IAAAA,MAAM,EAAC,UAAA;GAC3BZ,EAAAA,IACS,CAEX,CACF,CAAC,CAAA;AAAA,CACP,CAAA;AASD,mBAAA,aAAeI,cAAK,CAACS,IAAI,CAAChB,UAAU,CAAC;;;;"}
1
+ {"version":3,"file":"PageLoader.js","sources":["../src/components/PageLoader/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport \"./page-loader.scss\";\n\nconst PageLoader = ({ text = \"\", ...otherProps }) => (\n <div className=\"neeto-molecules-pageloader__wrapper\" {...otherProps}>\n <div className=\"neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center\">\n <div\n className=\"neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center\"\n data-cy=\"neeto-molecules-pageloader\"\n >\n <div className=\"neeto-molecules-pageloader__loader\" />\n </div>\n {text && (\n <Typography style=\"h5\" weight=\"semibold\">\n {text}\n </Typography>\n )}\n </div>\n </div>\n);\n\nPageLoader.propTypes = {\n /**\n * Text to indicate loading status (optional).\n */\n text: PropTypes.string,\n};\n\nexport default React.memo(PageLoader);\n"],"names":["PageLoader","_ref","_ref$text","text","otherProps","_objectWithoutProperties","_excluded","React","createElement","_extends","className","Typography","style","weight","memo"],"mappings":";;;;;;;;;;AAOA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAAME,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,SAAA;AAAKE,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,oBAC5CC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,QAAA,CAAA;AAAKC,IAAAA,SAAS,EAAC,qCAAA;AAAqC,GAAA,EAAKN,UAAU,CAAA,eACjEG,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,0GAAA;GACbH,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEE,IAAAA,SAAS,EAAC,wHAAwH;IAClI,SAAQ,EAAA,4BAAA;GAERH,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKE,IAAAA,SAAS,EAAC,oCAAA;GAAsC,CAClD,CAAC,EACLP,IAAI,iBACHI,cAAA,CAAAC,aAAA,CAACG,UAAU,EAAA;AAACC,IAAAA,KAAK,EAAC,IAAI;AAACC,IAAAA,MAAM,EAAC,UAAA;GAC3BV,EAAAA,IACS,CAEX,CACF,CAAC,CAAA;AAAA,CACP,CAAA;AASD,mBAAA,aAAeI,cAAK,CAACO,IAAI,CAACd,UAAU,CAAC;;;;"}