@woovi/ui 4.0.942

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 (737) hide show
  1. package/.eslintrc.js +1 -0
  2. package/README.md +1 -0
  3. package/babel.config.js +3 -0
  4. package/babel.rollup.config.js +20 -0
  5. package/jest-eslint.config.js +7 -0
  6. package/jest.config.js +17 -0
  7. package/lib/index.cjs.js +1 -0
  8. package/package.json +107 -0
  9. package/rollup.config.js +96 -0
  10. package/src/BackButton.tsx +25 -0
  11. package/src/Badge.tsx +17 -0
  12. package/src/Banner.stories.tsx +108 -0
  13. package/src/Banner.tsx +44 -0
  14. package/src/CashbackTagStatus.tsx +31 -0
  15. package/src/Circle.tsx +10 -0
  16. package/src/CircleButton.tsx +51 -0
  17. package/src/ClockIcon.tsx +41 -0
  18. package/src/Column.tsx +6 -0
  19. package/src/CopyInput.tsx +40 -0
  20. package/src/EmptyMessage.stories.tsx +19 -0
  21. package/src/EmptyMessage.tsx +23 -0
  22. package/src/EncryptedText.tsx +23 -0
  23. package/src/FloatingMenu.tsx +88 -0
  24. package/src/LayoutRoot.tsx +14 -0
  25. package/src/LinearProgress.tsx +79 -0
  26. package/src/Link.tsx +9 -0
  27. package/src/Loading.stories.tsx +29 -0
  28. package/src/Loading.tsx +44 -0
  29. package/src/Logo.tsx +8 -0
  30. package/src/LoremIpsum.tsx +4 -0
  31. package/src/Modal/Modal.stories.tsx +38 -0
  32. package/src/Modal/Modal.tsx +93 -0
  33. package/src/OverflowDiv.tsx +25 -0
  34. package/src/ProgressBar.tsx +58 -0
  35. package/src/ProgressBarText.tsx +34 -0
  36. package/src/QuestionTooltip.tsx +40 -0
  37. package/src/RadioCard/RadioCard.tsx +101 -0
  38. package/src/RadioCard/__stories__/RadioCard.stories.tsx +235 -0
  39. package/src/Row.tsx +8 -0
  40. package/src/SafeTextTooltip.tsx +35 -0
  41. package/src/SearchField.tsx +71 -0
  42. package/src/Step.tsx +32 -0
  43. package/src/TagWebhookStatus.tsx +20 -0
  44. package/src/ToggleButtonGroup.stories.tsx +65 -0
  45. package/src/ToggleButtonGroup.tsx +114 -0
  46. package/src/ToggleButtonGroupMobile.tsx +56 -0
  47. package/src/TransactionTagEntryTypes.tsx +18 -0
  48. package/src/TransactionTagStatus.tsx +27 -0
  49. package/src/UnsupportedBrowserWarning.tsx +76 -0
  50. package/src/__visual__/CopyInput.spec.tsx +12 -0
  51. package/src/__visual__/__image_snapshots__/copy-input-spec-tsx-match-image-snapshot-copy-input-1-snap.png +0 -0
  52. package/src/auth/LoginWrapper.tsx +21 -0
  53. package/src/avatar/Avatar.tsx +66 -0
  54. package/src/avatar/AvatarGroup.tsx +103 -0
  55. package/src/avatar/AvatarGroupArray.tsx +67 -0
  56. package/src/avatar/AvatarGroupSelectedAll.tsx +76 -0
  57. package/src/avatar/stories/Avatar.stories.tsx +24 -0
  58. package/src/buttons/ActionButton.tsx +111 -0
  59. package/src/buttons/DangerButton.tsx +35 -0
  60. package/src/buttons/PayWithPixButton.tsx +75 -0
  61. package/src/buttons/SplitButton.tsx +112 -0
  62. package/src/buttons/__stories__/PayWithPixButton.stories.tsx +19 -0
  63. package/src/buttons/__visual__/ActionButton.spec.tsx +12 -0
  64. package/src/buttons/__visual__/PayWithPixButton.spec.tsx +12 -0
  65. package/src/buttons/__visual__/__image_snapshots__/action-button-spec-tsx-match-image-snapshot-action-button-1-snap.png +0 -0
  66. package/src/buttons/__visual__/__image_snapshots__/pay-with-pix-button-spec-tsx-match-image-snapshot-pay-with-pix-button-1-snap.png +0 -0
  67. package/src/buttons/getLoadingIconProp.tsx +7 -0
  68. package/src/buttons/stories/ActionButton.stories.tsx +196 -0
  69. package/src/buttons/stories/SplitButton.stories.tsx +28 -0
  70. package/src/card/Card.tsx +91 -0
  71. package/src/card/CardActions.tsx +13 -0
  72. package/src/card/CardContent.tsx +26 -0
  73. package/src/card/CardForm.tsx +80 -0
  74. package/src/card/CardList.tsx +67 -0
  75. package/src/card/CardRadio.tsx +0 -0
  76. package/src/card/CardSkeleton.tsx +25 -0
  77. package/src/card/CardWithLink.tsx +49 -0
  78. package/src/card/CardWithLinkSkeleton.tsx +14 -0
  79. package/src/card/basicContext/CardBasicContext.tsx +190 -0
  80. package/src/card/cardWithActions/CardFooter.tsx +13 -0
  81. package/src/card/cardWithActions/CardHeader.tsx +15 -0
  82. package/src/card/cardWithActions/CardWithActions.stories.tsx +53 -0
  83. package/src/card/cardWithActions/CardWithActions.tsx +161 -0
  84. package/src/card/stories/Card.stories.tsx +91 -0
  85. package/src/card/stories/CardContent.stories.tsx +28 -0
  86. package/src/card/stories/CardForm.stories.tsx +49 -0
  87. package/src/card/stories/CardWithLink.stories.tsx +64 -0
  88. package/src/cardAnalytics/CardAnalytics.stories.tsx +83 -0
  89. package/src/cardAnalytics/CardAnalytics.tsx +78 -0
  90. package/src/cardAnalytics/CardAnalyticsSkeleton.tsx +26 -0
  91. package/src/cardGrid/CardField.tsx +44 -0
  92. package/src/cardGrid/CardFieldCentered.tsx +28 -0
  93. package/src/cardGrid/CardGrid.stories.tsx +102 -0
  94. package/src/cardGrid/CardGrid.tsx +38 -0
  95. package/src/cardGrid/Grid.tsx +27 -0
  96. package/src/cardWithImage/CardWithImage.tsx +66 -0
  97. package/src/cardWithImage/__stories__/CardWithImage.stories.tsx +25 -0
  98. package/src/cardWithImage/__stories__/__assets__/WooviCashback.png +0 -0
  99. package/src/code/Code.stories.tsx +25 -0
  100. package/src/code/Code.tsx +20 -0
  101. package/src/collapsible/Collapse.tsx +73 -0
  102. package/src/collapsible/Collapsible.tsx +214 -0
  103. package/src/collapsible/CollapsibleActions.tsx +162 -0
  104. package/src/collapsible/CollapsibleDetails.tsx +37 -0
  105. package/src/collapsible/CollapsibleFillWrapper.tsx +6 -0
  106. package/src/collapsible/CollapsibleGroup.tsx +6 -0
  107. package/src/collapsible/CollapsibleInfinityActions.tsx +238 -0
  108. package/src/collapsible/CollapsiblePanelActions.tsx +57 -0
  109. package/src/collapsible/CollapsibleStep.tsx +118 -0
  110. package/src/collapsible/CollapsibleStepHeader.tsx +90 -0
  111. package/src/collapsible/CollapsibleSummary.tsx +54 -0
  112. package/src/collapsible/CollapsibleTree.tsx +236 -0
  113. package/src/collapsible/ExpandMoreIcon.tsx +12 -0
  114. package/src/collapsible/LeafCollapsible.tsx +17 -0
  115. package/src/collapsible/TransparencyCollapsibleWrapper.tsx +28 -0
  116. package/src/collapsible/stories/CollapisbleStep.stories.tsx +121 -0
  117. package/src/collapsible/stories/Collapse.stories.tsx +50 -0
  118. package/src/collapsible/stories/Collapsible.stories.tsx +121 -0
  119. package/src/collapsible/stories/CollapsibleGroup.stories.tsx +110 -0
  120. package/src/collapsible/stories/CollapsibleOld.stories.tsx +582 -0
  121. package/src/collapsible/stories/CollapsibleStepHeader.stories.tsx +37 -0
  122. package/src/company/CompanyLogo.tsx +38 -0
  123. package/src/company/stories/CompanyLogo.stories.tsx +18 -0
  124. package/src/content/ActionMargin.stories.tsx +21 -0
  125. package/src/content/ActionMargin.tsx +40 -0
  126. package/src/content/ActionMarginText.tsx +8 -0
  127. package/src/content/Content.tsx +18 -0
  128. package/src/content/IntroText.tsx +23 -0
  129. package/src/countdown/Countdown.stories.tsx +32 -0
  130. package/src/countdown/Countdown.tsx +41 -0
  131. package/src/countdown/ShowCounter.tsx +36 -0
  132. package/src/countdown/useCountdown.tsx +34 -0
  133. package/src/datagrid/DataGrid.stories.tsx +146 -0
  134. package/src/datagrid/DataGrid.tsx +263 -0
  135. package/src/datagrid/DataGridDetailContainer.tsx +23 -0
  136. package/src/datagrid/DataGridRow.tsx +30 -0
  137. package/src/datagrid/__tests__/DataGrid.spec.tsx +33 -0
  138. package/src/datagrid/cellTypeBasisToPercentage.tsx +18 -0
  139. package/src/datagrid/cellTypeBoolean.tsx +21 -0
  140. package/src/datagrid/cellTypeCurrency.ts +18 -0
  141. package/src/datagrid/cellTypeDate.ts +8 -0
  142. package/src/datagrid/cellTypeDatetime.ts +8 -0
  143. package/src/datagrid/cellTypeDatetimeSeconds.ts +8 -0
  144. package/src/datagrid/cellTypeExpand.tsx +77 -0
  145. package/src/datagrid/cellTypeLink.tsx +22 -0
  146. package/src/datagrid/cellTypePhone.tsx +22 -0
  147. package/src/datagrid/cellTypeTag.tsx +28 -0
  148. package/src/datagrid/cellTypeTaxID.tsx +12 -0
  149. package/src/datagrid/cellTypeTime.ts +8 -0
  150. package/src/datagrid/columnTypes.ts +21 -0
  151. package/src/datagrid/useTableView.tsx +26 -0
  152. package/src/deprecated/VirtualizedMobileList.tsx +71 -0
  153. package/src/deprecated/VirtualizedTable.tsx +165 -0
  154. package/src/deprecated/VirtualizedTableHeader.tsx +103 -0
  155. package/src/device/Phone.stories.tsx +34 -0
  156. package/src/device/Phone.tsx +62 -0
  157. package/src/dialog/DialogContext.tsx +22 -0
  158. package/src/dialog/DialogProvider.tsx +141 -0
  159. package/src/dialog/__tests__/useDialog.spec.tsx +73 -0
  160. package/src/dialog/index.tsx +6 -0
  161. package/src/dialog/useDialog.tsx +14 -0
  162. package/src/drawer/DrawerCard.tsx +70 -0
  163. package/src/drawer/DrawerResponsiveWrapper.tsx +12 -0
  164. package/src/drawer/swipable/SwipeableDrawer.stories.tsx +35 -0
  165. package/src/drawer/swipable/SwipeableDrawer.tsx +40 -0
  166. package/src/error/ErrorBoundaryWithRetry.tsx +50 -0
  167. package/src/error/ErrorView.tsx +61 -0
  168. package/src/file/FileDrop.tsx +73 -0
  169. package/src/file/IconButton.tsx +57 -0
  170. package/src/file/MaterialIcon.tsx +35 -0
  171. package/src/filter/Filter.tsx +108 -0
  172. package/src/filter/FilterRelayFormik.tsx +53 -0
  173. package/src/filter/FormikFilter.tsx +39 -0
  174. package/src/filter/__tests__/FieldDecoding.spec.tsx +68 -0
  175. package/src/filter/__tests__/FieldEncoding.spec.tsx +68 -0
  176. package/src/filter/__tests__/Filter.spec.tsx +35 -0
  177. package/src/filter/__tests__/FilterRelayFormik.spec.tsx +43 -0
  178. package/src/filter/decodeQueryParamsFromLocation.tsx +19 -0
  179. package/src/filter/fieldToParamConfigMap.tsx +31 -0
  180. package/src/filter/formatFilterValue.tsx +36 -0
  181. package/src/filter/formatFilters.tsx +27 -0
  182. package/src/filter/isValidDatetime.tsx +4 -0
  183. package/src/filter/orderBy/OrderBySelect.tsx +81 -0
  184. package/src/filter/stringToBoolean.ts +15 -0
  185. package/src/filter/useFilterFormik.tsx +372 -0
  186. package/src/form/FieldRow.tsx +28 -0
  187. package/src/form/__stories__/FieldRow.stories.tsx +27 -0
  188. package/src/heading/SectionHeading.tsx +18 -0
  189. package/src/heading/__stories__/SectionHeading.stories.tsx +23 -0
  190. package/src/helpers/Divider.tsx +27 -0
  191. package/src/helpers/HorizontalStack.tsx +12 -0
  192. package/src/helpers/HoverPopper.tsx +57 -0
  193. package/src/helpers/stories/HorizontalStack.stories.tsx +82 -0
  194. package/src/helpers.ts +133 -0
  195. package/src/icons/AssineOnlineIcon.tsx +123 -0
  196. package/src/icons/BotConversaIcon.tsx +39 -0
  197. package/src/icons/CheckIconLabel.tsx +34 -0
  198. package/src/icons/CheckboxChecked.tsx +34 -0
  199. package/src/icons/CheckboxIndeterminate.tsx +27 -0
  200. package/src/icons/CheckboxUnchecked.tsx +36 -0
  201. package/src/icons/Icon.tsx +8 -0
  202. package/src/icons/N8nIcon.tsx +40 -0
  203. package/src/icons/NuvemshopIcon.tsx +25 -0
  204. package/src/icons/RightTopDiagonalVector.tsx +22 -0
  205. package/src/icons/SVG.tsx +9 -0
  206. package/src/icons/SocPanelIcon.tsx +48 -0
  207. package/src/icons/WabizIcon.tsx +42 -0
  208. package/src/icons/WakeIcon.tsx +45 -0
  209. package/src/import/Dropzone.tsx +13 -0
  210. package/src/import/DropzoneFile.tsx +278 -0
  211. package/src/import/xlsx/Import.tsx +161 -0
  212. package/src/import/xlsx/ImportDropzone.tsx +120 -0
  213. package/src/import/xlsx/ImportProcessData.tsx +92 -0
  214. package/src/import/xlsx/ImportProcessQueue.tsx +176 -0
  215. package/src/import/xlsx/ImportStepper.tsx +247 -0
  216. package/src/import/xlsx/ImportTable.tsx +72 -0
  217. package/src/import/xlsx/ImportUtils.tsx +726 -0
  218. package/src/index.tsx +328 -0
  219. package/src/layoutWrapper/LayoutWrapper.tsx +48 -0
  220. package/src/layoutWrapper/LayoutWrapperFluid.tsx +38 -0
  221. package/src/logo/OpenPixLogoColor.tsx +137 -0
  222. package/src/logo/WooviLogo.tsx +46 -0
  223. package/src/mui/BoxFlex.tsx +27 -0
  224. package/src/mui/Typography.tsx +8 -0
  225. package/src/mui/__stories__/Typography.stories.tsx +14 -0
  226. package/src/mui/__stories__/TypographyExample.tsx +29 -0
  227. package/src/multifactor/MultiFactorConfirmModal.tsx +67 -0
  228. package/src/multifactor/__stories__/MultiFactorConfirmModal.stories.tsx +30 -0
  229. package/src/openpix/charge/ChargeTagStatus.tsx +21 -0
  230. package/src/openpix/images/GiftbackEnvelopeSvg.tsx +152 -0
  231. package/src/openpix/images/WooviLogoInMobile.tsx +35 -0
  232. package/src/openpix/order/CheckIcon.tsx +20 -0
  233. package/src/openpix/order/ConfirmedIcon.tsx +189 -0
  234. package/src/openpix/order/EarnCashback.tsx +39 -0
  235. package/src/openpix/order/EarnCashbackExclusive.tsx +42 -0
  236. package/src/openpix/order/GiftbackRedeem.tsx +38 -0
  237. package/src/openpix/order/PayPixValueCompany.tsx +85 -0
  238. package/src/openpix/order/PixPaymentWoovi.tsx +82 -0
  239. package/src/openpix/order/RedeemCashbackExclusiveScheduled.tsx +52 -0
  240. package/src/openpix/order/ShopperSeeMyGiftback.tsx +51 -0
  241. package/src/openpix/order/__generated__/RedeemCashbackExclusiveScheduled_charge.graphql.ts +55 -0
  242. package/src/openpix/order/discount/EarnDiscount.tsx +34 -0
  243. package/src/openpix/order/giftback/EarnGiftback.tsx +53 -0
  244. package/src/openpix/order/giftback/GiftbackRule.tsx +32 -0
  245. package/src/openpix/paymentLink/AdditionalInfo.tsx +60 -0
  246. package/src/openpix/paymentLink/BrCodeInput.tsx +48 -0
  247. package/src/openpix/paymentLink/ChargeInfo.tsx +76 -0
  248. package/src/openpix/paymentLink/CopyQRCode.stories.tsx +21 -0
  249. package/src/openpix/paymentLink/CopyQRCode.tsx +75 -0
  250. package/src/openpix/paymentLink/ErrorIcon.tsx +18 -0
  251. package/src/openpix/paymentLink/InfoSide.tsx +174 -0
  252. package/src/openpix/paymentLink/InterestsInfo.tsx +60 -0
  253. package/src/openpix/paymentLink/NotFound.tsx +16 -0
  254. package/src/openpix/paymentLink/PaymentDeleted.tsx +172 -0
  255. package/src/openpix/paymentLink/PaymentExpired.tsx +170 -0
  256. package/src/openpix/paymentLink/PaymentFooter.tsx +13 -0
  257. package/src/openpix/paymentLink/PaymentLink.stories.tsx +57 -0
  258. package/src/openpix/paymentLink/PaymentLink.tsx +97 -0
  259. package/src/openpix/paymentLink/PaymentLinkActive.tsx +36 -0
  260. package/src/openpix/paymentLink/PaymentLinkTestAccountBanner.tsx +47 -0
  261. package/src/openpix/paymentLink/PaymentLinkWrapper.tsx +60 -0
  262. package/src/openpix/paymentLink/PaymentLogo.tsx +56 -0
  263. package/src/openpix/paymentLink/QrCodeResponsive.tsx +77 -0
  264. package/src/openpix/paymentLink/QrCodeSectionHeaderInfo.tsx +45 -0
  265. package/src/openpix/paymentLink/QrCodeShowButton.tsx +44 -0
  266. package/src/openpix/paymentLink/QrCodeSide.tsx +200 -0
  267. package/src/openpix/paymentLink/ShareButton.tsx +133 -0
  268. package/src/openpix/paymentLink/__generated__/PaymentLinkActive_charge.graphql.ts +40 -0
  269. package/src/openpix/paymentLink/__generated__/PaymentLink_charge.graphql.ts +45 -0
  270. package/src/openpix/paymentLink/__generated__/QrCodeSide_charge.graphql.ts +40 -0
  271. package/src/openpix/paymentLink/types/ChargeDataType.tsx +119 -0
  272. package/src/openpix/paymentSuccess/PaymentSuccess.tsx +213 -0
  273. package/src/openpix/paymentSuccess/PaymentSuccessRewards.tsx +229 -0
  274. package/src/openpix/paymentSuccess/__generated__/PaymentSuccessRewards_charge.graphql.ts +195 -0
  275. package/src/openpix/paymentSuccess/__generated__/PaymentSuccess_charge.graphql.ts +40 -0
  276. package/src/openpix/shopper/WooviAuthForm.tsx +225 -0
  277. package/src/openpix/transaction/PixTransactionTypeTag.tsx +22 -0
  278. package/src/paymentLinkRow/PaymentLinkRow.tsx +37 -0
  279. package/src/paymentLinkRow/__stories__/PaymentLinkRow.stories.tsx +40 -0
  280. package/src/pinInput/PinInput.stories.tsx +48 -0
  281. package/src/pinInput/PinInput.tsx +246 -0
  282. package/src/pinInput/PinInputFormik.tsx +18 -0
  283. package/src/pinInput/createPinArray.ts +17 -0
  284. package/src/pinInput/pinInputRegex.ts +4 -0
  285. package/src/relay/RefreshButtonRelay.tsx +45 -0
  286. package/src/relay/RefreshIconButton.tsx +15 -0
  287. package/src/relay/SearchInputRelay.tsx +101 -0
  288. package/src/relay/TopPagination.tsx +68 -0
  289. package/src/rewardTicket/RewardTicket.tsx +68 -0
  290. package/src/rewardTicket/__stories__/RewardTicket.stories.tsx +40 -0
  291. package/src/ribbon/Ribbon.tsx +31 -0
  292. package/src/ribbon/__stories__/Ribbon.stories.tsx +34 -0
  293. package/src/ribbon/__visual__/Ribbon.spec.tsx +23 -0
  294. package/src/ribbon/__visual__/__image_snapshots__/ribbon-spec-tsx-match-image-snapshot-ribbon-1-snap.png +0 -0
  295. package/src/root/ContentBoundary.tsx +45 -0
  296. package/src/routed/RoutedTabs.tsx +166 -0
  297. package/src/routed/TabbedContent.tsx +41 -0
  298. package/src/routed/__tests__/RoutedTabs.spec.tsx +50 -0
  299. package/src/screenHeader/ScreenHeader.stories.tsx +106 -0
  300. package/src/screenHeader/ScreenHeaderUI.tsx +149 -0
  301. package/src/screenHeader/components/ScreenHeaderSubtitle.tsx +10 -0
  302. package/src/screenHeader/components/ScreenHeaderTitle.tsx +32 -0
  303. package/src/screenHeaderCard/ScreenHeaderCard.stories.tsx +49 -0
  304. package/src/screenHeaderCard/ScreenHeaderCard.tsx +93 -0
  305. package/src/search/GlobalSearchField.tsx +148 -0
  306. package/src/select/Select.tsx +22 -0
  307. package/src/select/SelectAll.tsx +64 -0
  308. package/src/select/__stories__/Select.stories.tsx +40 -0
  309. package/src/sidebar/Group.tsx +135 -0
  310. package/src/sidebar/Item.tsx +52 -0
  311. package/src/sidebar/MenuList.tsx +95 -0
  312. package/src/sidebar/Sidebar.stories.tsx +148 -0
  313. package/src/sidebar/Sidebar.tsx +58 -0
  314. package/src/sidebar/SidebarContext.tsx +32 -0
  315. package/src/sidebar/index.tsx +7 -0
  316. package/src/sidebar/useSidebar.tsx +28 -0
  317. package/src/sidebar/utils.ts +6 -0
  318. package/src/snackbar/Snackbar.tsx +117 -0
  319. package/src/snackbar/SnackbarContext.tsx +22 -0
  320. package/src/snackbar/__tests__/Snackbar.spec.tsx +19 -0
  321. package/src/snackbar/fixtures/ShowSnackbar.tsx +38 -0
  322. package/src/snackbar/index.tsx +6 -0
  323. package/src/snackbar/useSnackbar.tsx +16 -0
  324. package/src/statement/TransactionTypeText.tsx +7 -0
  325. package/src/statement/statementColors.ts +6 -0
  326. package/src/stepper/Stepper.stories.tsx +25 -0
  327. package/src/stepper/Stepper.tsx +74 -0
  328. package/src/swipeableModal/SwipeableModal.stories.tsx +47 -0
  329. package/src/swipeableModal/SwipeableModal.tsx +68 -0
  330. package/src/swipeableModal/SwipeableModalTransition.tsx +33 -0
  331. package/src/table/CardColumn.tsx +34 -0
  332. package/src/table/CardListVirtualized.tsx +217 -0
  333. package/src/table/TableToggleViewModel.tsx +49 -0
  334. package/src/table/cells/ActionCellNode.tsx +80 -0
  335. package/src/table/cells/Cell.tsx +26 -0
  336. package/src/table/cells/CheckboxCellNode.tsx +47 -0
  337. package/src/table/cells/IconCellNode.tsx +53 -0
  338. package/src/table/cells/LinkCellNode.tsx +76 -0
  339. package/src/table/cells/RenderCell.tsx +17 -0
  340. package/src/table/cells/__tests__/LinkCellNode.spec.tsx +40 -0
  341. package/src/table/cells/cellTypes.ts +16 -0
  342. package/src/table/cells/getCellCurrency.tsx +17 -0
  343. package/src/table/cells/getCellDate.tsx +29 -0
  344. package/src/table/cells/getCellLink.tsx +20 -0
  345. package/src/table/cells/getCellValue.tsx +79 -0
  346. package/src/table/cells/index.ts +1 -0
  347. package/src/table/stories/TableToggleViewModel.stories.tsx +10 -0
  348. package/src/tag/Tag.tsx +62 -0
  349. package/src/tag/TagsContainer.tsx +19 -0
  350. package/src/tag/stories/Tag.stories.tsx +148 -0
  351. package/src/term/Terms.tsx +8 -0
  352. package/src/term/TermsLink.tsx +7 -0
  353. package/src/term/TermsModal.stories.tsx +19 -0
  354. package/src/term/TermsModal.tsx +40 -0
  355. package/src/term/useTerms.tsx +57 -0
  356. package/src/text/TextMultiline.tsx +24 -0
  357. package/src/textDialog/TextDialog.tsx +86 -0
  358. package/src/theme/Themes.tsx +223 -0
  359. package/src/theme/stories/Theme.stories.tsx +13 -0
  360. package/src/theme/stories/ThemeExample.tsx +193 -0
  361. package/src/timeline/Timeline.tsx +23 -0
  362. package/src/timeline/TimelineAppEventDomainIcon.tsx +21 -0
  363. package/src/timeline/TimelineAppEventItem.tsx +70 -0
  364. package/src/timeline/TimelineAppEventTypeColor.tsx +33 -0
  365. package/src/timeline/TimelineItem.tsx +57 -0
  366. package/src/timeline/__stories__/Timeline.stories.tsx +39 -0
  367. package/src/timeline/__stories__/TimelineAppEvent.stories.tsx +43 -0
  368. package/src/unSupportedBrowser/UnsupportedBrowserWarning.tsx +78 -0
  369. package/src/unSupportedBrowser/index.tsx +2 -0
  370. package/src/unSupportedBrowser/isUnSupportedBrowser.tsx +15 -0
  371. package/src/user/chip/UserChip.tsx +25 -0
  372. package/src/user/chip/stories/UserChip.stories.tsx +26 -0
  373. package/src/utils/BrowserOnly.tsx +21 -0
  374. package/src/utils/DesktopOnly.tsx +27 -0
  375. package/src/utils/MobileOnly.tsx +27 -0
  376. package/src/windowPopper/WindowPopper.stories.tsx +52 -0
  377. package/src/windowPopper/WindowPopper.tsx +109 -0
  378. package/src/windowPopper/WindowPopperTransition.tsx +22 -0
  379. package/test/ImageReporter.js +41 -0
  380. package/test/babel-transformer.js +7 -0
  381. package/test/convertHtmlToImage.tsx +25 -0
  382. package/test/jest.setup.js +31 -0
  383. package/test/testUtils.tsx +37 -0
  384. package/tsconfig.build.json +25 -0
  385. package/tsconfig.json +4 -0
  386. package/types/form/test/i18n.d.ts +1 -0
  387. package/types/ui/src/BackButton.d.ts +5 -0
  388. package/types/ui/src/Badge.d.ts +2 -0
  389. package/types/ui/src/Banner.d.ts +10 -0
  390. package/types/ui/src/Banner.stories.d.ts +6 -0
  391. package/types/ui/src/CashbackTagStatus.d.ts +5 -0
  392. package/types/ui/src/Circle.d.ts +5 -0
  393. package/types/ui/src/CircleButton.d.ts +8 -0
  394. package/types/ui/src/ClockIcon.d.ts +5 -0
  395. package/types/ui/src/Column.d.ts +2 -0
  396. package/types/ui/src/CopyInput.d.ts +5 -0
  397. package/types/ui/src/EmptyMessage.d.ts +6 -0
  398. package/types/ui/src/EmptyMessage.stories.d.ts +3 -0
  399. package/types/ui/src/EncryptedText.d.ts +2 -0
  400. package/types/ui/src/FloatingMenu.d.ts +13 -0
  401. package/types/ui/src/LayoutRoot.d.ts +1 -0
  402. package/types/ui/src/LinearProgress.d.ts +7 -0
  403. package/types/ui/src/Link.d.ts +3 -0
  404. package/types/ui/src/Loading.d.ts +8 -0
  405. package/types/ui/src/Loading.stories.d.ts +5 -0
  406. package/types/ui/src/Logo.d.ts +1 -0
  407. package/types/ui/src/LoremIpsum.d.ts +2 -0
  408. package/types/ui/src/Modal/Modal.d.ts +19 -0
  409. package/types/ui/src/Modal/Modal.stories.d.ts +6 -0
  410. package/types/ui/src/OverflowDiv.d.ts +2 -0
  411. package/types/ui/src/ProgressBar.d.ts +9 -0
  412. package/types/ui/src/ProgressBarText.d.ts +6 -0
  413. package/types/ui/src/QuestionTooltip.d.ts +11 -0
  414. package/types/ui/src/RadioCard/RadioCard.d.ts +11 -0
  415. package/types/ui/src/RadioCard/__stories__/RadioCard.stories.d.ts +8 -0
  416. package/types/ui/src/Row.d.ts +2 -0
  417. package/types/ui/src/SafeTextTooltip.d.ts +8 -0
  418. package/types/ui/src/SearchField.d.ts +13 -0
  419. package/types/ui/src/Step.d.ts +9 -0
  420. package/types/ui/src/TagWebhookStatus.d.ts +7 -0
  421. package/types/ui/src/ToggleButtonGroup.d.ts +23 -0
  422. package/types/ui/src/ToggleButtonGroup.stories.d.ts +7 -0
  423. package/types/ui/src/ToggleButtonGroupMobile.d.ts +7 -0
  424. package/types/ui/src/TransactionTagEntryTypes.d.ts +4 -0
  425. package/types/ui/src/TransactionTagStatus.d.ts +8 -0
  426. package/types/ui/src/UnsupportedBrowserWarning.d.ts +2 -0
  427. package/types/ui/src/auth/LoginWrapper.d.ts +8 -0
  428. package/types/ui/src/avatar/Avatar.d.ts +11 -0
  429. package/types/ui/src/avatar/AvatarGroup.d.ts +12 -0
  430. package/types/ui/src/avatar/AvatarGroupArray.d.ts +7 -0
  431. package/types/ui/src/avatar/AvatarGroupSelectedAll.d.ts +8 -0
  432. package/types/ui/src/avatar/stories/Avatar.stories.d.ts +6 -0
  433. package/types/ui/src/buttons/ActionButton.d.ts +13 -0
  434. package/types/ui/src/buttons/DangerButton.d.ts +2 -0
  435. package/types/ui/src/buttons/PayWithPixButton.d.ts +12 -0
  436. package/types/ui/src/buttons/SplitButton.d.ts +18 -0
  437. package/types/ui/src/buttons/__stories__/PayWithPixButton.stories.d.ts +5 -0
  438. package/types/ui/src/buttons/getLoadingIconProp.d.ts +3 -0
  439. package/types/ui/src/buttons/stories/ActionButton.stories.d.ts +12 -0
  440. package/types/ui/src/buttons/stories/SplitButton.stories.d.ts +3 -0
  441. package/types/ui/src/card/Card.d.ts +16 -0
  442. package/types/ui/src/card/CardActions.d.ts +3 -0
  443. package/types/ui/src/card/CardContent.d.ts +6 -0
  444. package/types/ui/src/card/CardForm.d.ts +9 -0
  445. package/types/ui/src/card/CardList.d.ts +13 -0
  446. package/types/ui/src/card/CardRadio.d.ts +0 -0
  447. package/types/ui/src/card/CardSkeleton.d.ts +2 -0
  448. package/types/ui/src/card/CardWithLink.d.ts +8 -0
  449. package/types/ui/src/card/CardWithLinkSkeleton.d.ts +2 -0
  450. package/types/ui/src/card/basicContext/CardBasicContext.d.ts +35 -0
  451. package/types/ui/src/card/cardWithActions/CardFooter.d.ts +3 -0
  452. package/types/ui/src/card/cardWithActions/CardHeader.d.ts +6 -0
  453. package/types/ui/src/card/cardWithActions/CardWithActions.d.ts +27 -0
  454. package/types/ui/src/card/cardWithActions/CardWithActions.stories.d.ts +6 -0
  455. package/types/ui/src/card/stories/Card.stories.d.ts +9 -0
  456. package/types/ui/src/card/stories/CardContent.stories.d.ts +4 -0
  457. package/types/ui/src/card/stories/CardForm.stories.d.ts +5 -0
  458. package/types/ui/src/card/stories/CardWithLink.stories.d.ts +5 -0
  459. package/types/ui/src/cardAnalytics/CardAnalytics.d.ts +11 -0
  460. package/types/ui/src/cardAnalytics/CardAnalytics.stories.d.ts +5 -0
  461. package/types/ui/src/cardAnalytics/CardAnalyticsSkeleton.d.ts +2 -0
  462. package/types/ui/src/cardGrid/CardField.d.ts +9 -0
  463. package/types/ui/src/cardGrid/CardFieldCentered.d.ts +8 -0
  464. package/types/ui/src/cardGrid/CardGrid.d.ts +12 -0
  465. package/types/ui/src/cardGrid/CardGrid.stories.d.ts +8 -0
  466. package/types/ui/src/cardGrid/Grid.d.ts +12 -0
  467. package/types/ui/src/cardWithImage/CardWithImage.d.ts +9 -0
  468. package/types/ui/src/cardWithImage/__stories__/CardWithImage.stories.d.ts +4 -0
  469. package/types/ui/src/code/Code.d.ts +7 -0
  470. package/types/ui/src/code/Code.stories.d.ts +3 -0
  471. package/types/ui/src/collapsible/Collapse.d.ts +7 -0
  472. package/types/ui/src/collapsible/Collapsible.d.ts +59 -0
  473. package/types/ui/src/collapsible/CollapsibleActions.d.ts +6 -0
  474. package/types/ui/src/collapsible/CollapsibleDetails.d.ts +7 -0
  475. package/types/ui/src/collapsible/CollapsibleFillWrapper.d.ts +1 -0
  476. package/types/ui/src/collapsible/CollapsibleGroup.d.ts +2 -0
  477. package/types/ui/src/collapsible/CollapsibleInfinityActions.d.ts +57 -0
  478. package/types/ui/src/collapsible/CollapsiblePanelActions.d.ts +3 -0
  479. package/types/ui/src/collapsible/CollapsibleStep.d.ts +15 -0
  480. package/types/ui/src/collapsible/CollapsibleStepHeader.d.ts +11 -0
  481. package/types/ui/src/collapsible/CollapsibleSummary.d.ts +9 -0
  482. package/types/ui/src/collapsible/CollapsibleTree.d.ts +12 -0
  483. package/types/ui/src/collapsible/ExpandMoreIcon.d.ts +7 -0
  484. package/types/ui/src/collapsible/LeafCollapsible.d.ts +5 -0
  485. package/types/ui/src/collapsible/TransparencyCollapsibleWrapper.d.ts +2 -0
  486. package/types/ui/src/collapsible/stories/CollapisbleStep.stories.d.ts +8 -0
  487. package/types/ui/src/collapsible/stories/Collapse.stories.d.ts +4 -0
  488. package/types/ui/src/collapsible/stories/Collapsible.stories.d.ts +13 -0
  489. package/types/ui/src/collapsible/stories/CollapsibleGroup.stories.d.ts +4 -0
  490. package/types/ui/src/collapsible/stories/CollapsibleOld.stories.d.ts +50 -0
  491. package/types/ui/src/collapsible/stories/CollapsibleStepHeader.stories.d.ts +5 -0
  492. package/types/ui/src/company/CompanyLogo.d.ts +15 -0
  493. package/types/ui/src/company/stories/CompanyLogo.stories.d.ts +5 -0
  494. package/types/ui/src/content/ActionMargin.d.ts +7 -0
  495. package/types/ui/src/content/ActionMargin.stories.d.ts +3 -0
  496. package/types/ui/src/content/ActionMarginText.d.ts +2 -0
  497. package/types/ui/src/content/Content.d.ts +6 -0
  498. package/types/ui/src/content/IntroText.d.ts +6 -0
  499. package/types/ui/src/countdown/Countdown.d.ts +5 -0
  500. package/types/ui/src/countdown/Countdown.stories.d.ts +5 -0
  501. package/types/ui/src/countdown/ShowCounter.d.ts +8 -0
  502. package/types/ui/src/countdown/useCountdown.d.ts +2 -0
  503. package/types/ui/src/datagrid/DataGrid.d.ts +14 -0
  504. package/types/ui/src/datagrid/DataGrid.stories.d.ts +3 -0
  505. package/types/ui/src/datagrid/DataGridDetailContainer.d.ts +6 -0
  506. package/types/ui/src/datagrid/DataGridRow.d.ts +10 -0
  507. package/types/ui/src/datagrid/cellTypeBasisToPercentage.d.ts +2 -0
  508. package/types/ui/src/datagrid/cellTypeBoolean.d.ts +6 -0
  509. package/types/ui/src/datagrid/cellTypeCurrency.d.ts +2 -0
  510. package/types/ui/src/datagrid/cellTypeDate.d.ts +2 -0
  511. package/types/ui/src/datagrid/cellTypeDatetime.d.ts +2 -0
  512. package/types/ui/src/datagrid/cellTypeDatetimeSeconds.d.ts +2 -0
  513. package/types/ui/src/datagrid/cellTypeExpand.d.ts +45 -0
  514. package/types/ui/src/datagrid/cellTypeLink.d.ts +2 -0
  515. package/types/ui/src/datagrid/cellTypePhone.d.ts +2 -0
  516. package/types/ui/src/datagrid/cellTypeTag.d.ts +2 -0
  517. package/types/ui/src/datagrid/cellTypeTaxID.d.ts +2 -0
  518. package/types/ui/src/datagrid/cellTypeTime.d.ts +2 -0
  519. package/types/ui/src/datagrid/columnTypes.d.ts +11 -0
  520. package/types/ui/src/datagrid/useTableView.d.ts +8 -0
  521. package/types/ui/src/deprecated/VirtualizedMobileList.d.ts +8 -0
  522. package/types/ui/src/deprecated/VirtualizedTable.d.ts +3 -0
  523. package/types/ui/src/deprecated/VirtualizedTableHeader.d.ts +8 -0
  524. package/types/ui/src/device/Phone.d.ts +6 -0
  525. package/types/ui/src/device/Phone.stories.d.ts +4 -0
  526. package/types/ui/src/dialog/DialogContext.d.ts +18 -0
  527. package/types/ui/src/dialog/DialogProvider.d.ts +7 -0
  528. package/types/ui/src/dialog/index.d.ts +5 -0
  529. package/types/ui/src/dialog/useDialog.d.ts +5 -0
  530. package/types/ui/src/drawer/DrawerCard.d.ts +11 -0
  531. package/types/ui/src/drawer/DrawerResponsiveWrapper.d.ts +1 -0
  532. package/types/ui/src/drawer/swipable/SwipeableDrawer.d.ts +8 -0
  533. package/types/ui/src/drawer/swipable/SwipeableDrawer.stories.d.ts +3 -0
  534. package/types/ui/src/error/ErrorBoundaryWithRetry.d.ts +26 -0
  535. package/types/ui/src/error/ErrorView.d.ts +9 -0
  536. package/types/ui/src/file/FileDrop.d.ts +12 -0
  537. package/types/ui/src/file/MaterialIcon.d.ts +14 -0
  538. package/types/ui/src/filter/Filter.d.ts +15 -0
  539. package/types/ui/src/filter/FilterRelayFormik.d.ts +26 -0
  540. package/types/ui/src/filter/FormikFilter.d.ts +9 -0
  541. package/types/ui/src/filter/decodeQueryParamsFromLocation.d.ts +2 -0
  542. package/types/ui/src/filter/fieldToParamConfigMap.d.ts +2 -0
  543. package/types/ui/src/filter/formatFilterValue.d.ts +1 -0
  544. package/types/ui/src/filter/formatFilters.d.ts +1 -0
  545. package/types/ui/src/filter/isValidDatetime.d.ts +1 -0
  546. package/types/ui/src/filter/orderBy/OrderBySelect.d.ts +15 -0
  547. package/types/ui/src/filter/stringToBoolean.d.ts +1 -0
  548. package/types/ui/src/filter/useFilterFormik.d.ts +91 -0
  549. package/types/ui/src/form/FieldRow.d.ts +6 -0
  550. package/types/ui/src/form/__stories__/FieldRow.stories.d.ts +3 -0
  551. package/types/ui/src/heading/SectionHeading.d.ts +6 -0
  552. package/types/ui/src/heading/__stories__/SectionHeading.stories.d.ts +4 -0
  553. package/types/ui/src/helpers/Divider.d.ts +8 -0
  554. package/types/ui/src/helpers/HorizontalStack.d.ts +3 -0
  555. package/types/ui/src/helpers/HoverPopper.d.ts +10 -0
  556. package/types/ui/src/helpers/stories/HorizontalStack.stories.d.ts +5 -0
  557. package/types/ui/src/helpers.d.ts +10 -0
  558. package/types/ui/src/icons/AssineOnlineIcon.d.ts +14 -0
  559. package/types/ui/src/icons/BotConversaIcon.d.ts +14 -0
  560. package/types/ui/src/icons/CheckIconLabel.d.ts +5 -0
  561. package/types/ui/src/icons/CheckboxChecked.d.ts +7 -0
  562. package/types/ui/src/icons/CheckboxIndeterminate.d.ts +14 -0
  563. package/types/ui/src/icons/CheckboxUnchecked.d.ts +14 -0
  564. package/types/ui/src/icons/Icon.d.ts +3 -0
  565. package/types/ui/src/icons/N8nIcon.d.ts +13 -0
  566. package/types/ui/src/icons/NuvemshopIcon.d.ts +14 -0
  567. package/types/ui/src/icons/RightTopDiagonalVector.d.ts +4 -0
  568. package/types/ui/src/icons/SVG.d.ts +32 -0
  569. package/types/ui/src/icons/SocPanelIcon.d.ts +12 -0
  570. package/types/ui/src/icons/WabizIcon.d.ts +13 -0
  571. package/types/ui/src/icons/WakeIcon.d.ts +14 -0
  572. package/types/ui/src/import/Dropzone.d.ts +2 -0
  573. package/types/ui/src/import/DropzoneFile.d.ts +19 -0
  574. package/types/ui/src/import/xlsx/Import.d.ts +19 -0
  575. package/types/ui/src/import/xlsx/ImportDropzone.d.ts +15 -0
  576. package/types/ui/src/import/xlsx/ImportProcessData.d.ts +7 -0
  577. package/types/ui/src/import/xlsx/ImportProcessQueue.d.ts +20 -0
  578. package/types/ui/src/import/xlsx/ImportStepper.d.ts +23 -0
  579. package/types/ui/src/import/xlsx/ImportTable.d.ts +7 -0
  580. package/types/ui/src/import/xlsx/ImportUtils.d.ts +89 -0
  581. package/types/ui/src/index.d.ts +212 -0
  582. package/types/ui/src/layoutWrapper/LayoutWrapper.d.ts +8 -0
  583. package/types/ui/src/layoutWrapper/LayoutWrapperFluid.d.ts +8 -0
  584. package/types/ui/src/logo/OpenPixLogoColor.d.ts +7 -0
  585. package/types/ui/src/logo/WooviLogo.d.ts +7 -0
  586. package/types/ui/src/mui/BoxFlex.d.ts +10 -0
  587. package/types/ui/src/mui/Typography.d.ts +3 -0
  588. package/types/ui/src/mui/__stories__/Typography.stories.d.ts +3 -0
  589. package/types/ui/src/mui/__stories__/TypographyExample.d.ts +2 -0
  590. package/types/ui/src/multifactor/MultiFactorConfirmModal.d.ts +11 -0
  591. package/types/ui/src/multifactor/__stories__/MultiFactorConfirmModal.stories.d.ts +5 -0
  592. package/types/ui/src/openpix/charge/ChargeTagStatus.d.ts +11 -0
  593. package/types/ui/src/openpix/images/GiftbackEnvelopeSvg.d.ts +6 -0
  594. package/types/ui/src/openpix/images/WooviLogoInMobile.d.ts +4 -0
  595. package/types/ui/src/openpix/order/CheckIcon.d.ts +2 -0
  596. package/types/ui/src/openpix/order/ConfirmedIcon.d.ts +2 -0
  597. package/types/ui/src/openpix/order/EarnCashback.d.ts +6 -0
  598. package/types/ui/src/openpix/order/EarnCashbackExclusive.d.ts +6 -0
  599. package/types/ui/src/openpix/order/GiftbackRedeem.d.ts +5 -0
  600. package/types/ui/src/openpix/order/PayPixValueCompany.d.ts +7 -0
  601. package/types/ui/src/openpix/order/PixPaymentWoovi.d.ts +6 -0
  602. package/types/ui/src/openpix/order/RedeemCashbackExclusiveScheduled.d.ts +6 -0
  603. package/types/ui/src/openpix/order/ShopperSeeMyGiftback.d.ts +8 -0
  604. package/types/ui/src/openpix/order/__generated__/RedeemCashbackExclusiveScheduled_charge.graphql.d.ts +19 -0
  605. package/types/ui/src/openpix/order/discount/EarnDiscount.d.ts +6 -0
  606. package/types/ui/src/openpix/order/giftback/EarnGiftback.d.ts +6 -0
  607. package/types/ui/src/openpix/order/giftback/GiftbackRule.d.ts +6 -0
  608. package/types/ui/src/openpix/paymentLink/AdditionalInfo.d.ts +12 -0
  609. package/types/ui/src/openpix/paymentLink/BrCodeInput.d.ts +5 -0
  610. package/types/ui/src/openpix/paymentLink/ChargeInfo.d.ts +7 -0
  611. package/types/ui/src/openpix/paymentLink/CopyQRCode.d.ts +6 -0
  612. package/types/ui/src/openpix/paymentLink/CopyQRCode.stories.d.ts +3 -0
  613. package/types/ui/src/openpix/paymentLink/ErrorIcon.d.ts +2 -0
  614. package/types/ui/src/openpix/paymentLink/InfoSide.d.ts +7 -0
  615. package/types/ui/src/openpix/paymentLink/InterestsInfo.d.ts +11 -0
  616. package/types/ui/src/openpix/paymentLink/NotFound.d.ts +2 -0
  617. package/types/ui/src/openpix/paymentLink/PaymentDeleted.d.ts +30 -0
  618. package/types/ui/src/openpix/paymentLink/PaymentExpired.d.ts +35 -0
  619. package/types/ui/src/openpix/paymentLink/PaymentFooter.d.ts +5 -0
  620. package/types/ui/src/openpix/paymentLink/PaymentLink.d.ts +15 -0
  621. package/types/ui/src/openpix/paymentLink/PaymentLink.stories.d.ts +4 -0
  622. package/types/ui/src/openpix/paymentLink/PaymentLinkActive.d.ts +8 -0
  623. package/types/ui/src/openpix/paymentLink/PaymentLinkTestAccountBanner.d.ts +6 -0
  624. package/types/ui/src/openpix/paymentLink/PaymentLinkWrapper.d.ts +8 -0
  625. package/types/ui/src/openpix/paymentLink/PaymentLogo.d.ts +7 -0
  626. package/types/ui/src/openpix/paymentLink/QrCodeResponsive.d.ts +12 -0
  627. package/types/ui/src/openpix/paymentLink/QrCodeSectionHeaderInfo.d.ts +2 -0
  628. package/types/ui/src/openpix/paymentLink/QrCodeShowButton.d.ts +6 -0
  629. package/types/ui/src/openpix/paymentLink/QrCodeSide.d.ts +10 -0
  630. package/types/ui/src/openpix/paymentLink/ShareButton.d.ts +9 -0
  631. package/types/ui/src/openpix/paymentLink/__generated__/PaymentLinkActive_charge.graphql.d.ts +17 -0
  632. package/types/ui/src/openpix/paymentLink/__generated__/PaymentLink_charge.graphql.d.ts +17 -0
  633. package/types/ui/src/openpix/paymentLink/__generated__/QrCodeSide_charge.graphql.d.ts +17 -0
  634. package/types/ui/src/openpix/paymentLink/types/ChargeDataType.d.ts +106 -0
  635. package/types/ui/src/openpix/paymentSuccess/PaymentSuccess.d.ts +17 -0
  636. package/types/ui/src/openpix/paymentSuccess/PaymentSuccessRewards.d.ts +8 -0
  637. package/types/ui/src/openpix/paymentSuccess/__generated__/PaymentSuccessRewards_charge.graphql.d.ts +55 -0
  638. package/types/ui/src/openpix/paymentSuccess/__generated__/PaymentSuccess_charge.graphql.d.ts +17 -0
  639. package/types/ui/src/openpix/shopper/WooviAuthForm.d.ts +21 -0
  640. package/types/ui/src/openpix/transaction/PixTransactionTypeTag.d.ts +6 -0
  641. package/types/ui/src/paymentLinkRow/PaymentLinkRow.d.ts +9 -0
  642. package/types/ui/src/paymentLinkRow/__stories__/PaymentLinkRow.stories.d.ts +7 -0
  643. package/types/ui/src/pinInput/PinInput.d.ts +62 -0
  644. package/types/ui/src/pinInput/PinInput.stories.d.ts +6 -0
  645. package/types/ui/src/pinInput/PinInputFormik.d.ts +6 -0
  646. package/types/ui/src/pinInput/createPinArray.d.ts +1 -0
  647. package/types/ui/src/pinInput/pinInputRegex.d.ts +4 -0
  648. package/types/ui/src/relay/RefreshButtonRelay.d.ts +8 -0
  649. package/types/ui/src/relay/RefreshIconButton.d.ts +5 -0
  650. package/types/ui/src/relay/SearchInputRelay.d.ts +17 -0
  651. package/types/ui/src/relay/TopPagination.d.ts +9 -0
  652. package/types/ui/src/rewardTicket/RewardTicket.d.ts +8 -0
  653. package/types/ui/src/rewardTicket/__stories__/RewardTicket.stories.d.ts +5 -0
  654. package/types/ui/src/ribbon/Ribbon.d.ts +7 -0
  655. package/types/ui/src/ribbon/__stories__/Ribbon.stories.d.ts +4 -0
  656. package/types/ui/src/root/ContentBoundary.d.ts +4 -0
  657. package/types/ui/src/routed/RoutedTabs.d.ts +19 -0
  658. package/types/ui/src/routed/TabbedContent.d.ts +8 -0
  659. package/types/ui/src/screenHeader/ScreenHeader.stories.d.ts +9 -0
  660. package/types/ui/src/screenHeader/ScreenHeaderUI.d.ts +14 -0
  661. package/types/ui/src/screenHeader/components/ScreenHeaderSubtitle.d.ts +2 -0
  662. package/types/ui/src/screenHeader/components/ScreenHeaderTitle.d.ts +6 -0
  663. package/types/ui/src/screenHeaderCard/ScreenHeaderCard.d.ts +12 -0
  664. package/types/ui/src/screenHeaderCard/ScreenHeaderCard.stories.d.ts +5 -0
  665. package/types/ui/src/search/GlobalSearchField.d.ts +12 -0
  666. package/types/ui/src/select/Select.d.ts +7 -0
  667. package/types/ui/src/select/SelectAll.d.ts +13 -0
  668. package/types/ui/src/select/__stories__/Select.stories.d.ts +7 -0
  669. package/types/ui/src/sidebar/Group.d.ts +7 -0
  670. package/types/ui/src/sidebar/Item.d.ts +7 -0
  671. package/types/ui/src/sidebar/MenuList.d.ts +13 -0
  672. package/types/ui/src/sidebar/Sidebar.d.ts +14 -0
  673. package/types/ui/src/sidebar/Sidebar.stories.d.ts +5 -0
  674. package/types/ui/src/sidebar/SidebarContext.d.ts +9 -0
  675. package/types/ui/src/sidebar/index.d.ts +6 -0
  676. package/types/ui/src/sidebar/useSidebar.d.ts +7 -0
  677. package/types/ui/src/sidebar/utils.d.ts +2 -0
  678. package/types/ui/src/snackbar/Snackbar.d.ts +6 -0
  679. package/types/ui/src/snackbar/SnackbarContext.d.ts +15 -0
  680. package/types/ui/src/snackbar/fixtures/ShowSnackbar.d.ts +2 -0
  681. package/types/ui/src/snackbar/index.d.ts +5 -0
  682. package/types/ui/src/snackbar/useSnackbar.d.ts +6 -0
  683. package/types/ui/src/statement/TransactionTypeText.d.ts +2 -0
  684. package/types/ui/src/statement/statementColors.d.ts +3 -0
  685. package/types/ui/src/stepper/Stepper.d.ts +9 -0
  686. package/types/ui/src/stepper/Stepper.stories.d.ts +3 -0
  687. package/types/ui/src/swipeableModal/SwipeableModal.d.ts +12 -0
  688. package/types/ui/src/swipeableModal/SwipeableModal.stories.d.ts +3 -0
  689. package/types/ui/src/swipeableModal/SwipeableModalTransition.d.ts +7 -0
  690. package/types/ui/src/table/CardColumn.d.ts +9 -0
  691. package/types/ui/src/table/CardListVirtualized.d.ts +20 -0
  692. package/types/ui/src/table/TableToggleViewModel.d.ts +6 -0
  693. package/types/ui/src/table/cells/ActionCellNode.d.ts +5 -0
  694. package/types/ui/src/table/cells/Cell.d.ts +9 -0
  695. package/types/ui/src/table/cells/CheckboxCellNode.d.ts +15 -0
  696. package/types/ui/src/table/cells/IconCellNode.d.ts +5 -0
  697. package/types/ui/src/table/cells/LinkCellNode.d.ts +7 -0
  698. package/types/ui/src/table/cells/cellTypes.d.ts +15 -0
  699. package/types/ui/src/table/cells/getCellCurrency.d.ts +3 -0
  700. package/types/ui/src/table/cells/getCellDate.d.ts +8 -0
  701. package/types/ui/src/table/cells/getCellLink.d.ts +3 -0
  702. package/types/ui/src/table/cells/getCellValue.d.ts +1 -0
  703. package/types/ui/src/table/cells/index.d.ts +1 -0
  704. package/types/ui/src/table/stories/TableToggleViewModel.stories.d.ts +3 -0
  705. package/types/ui/src/tag/Tag.d.ts +9 -0
  706. package/types/ui/src/tag/TagsContainer.d.ts +6 -0
  707. package/types/ui/src/tag/stories/Tag.stories.d.ts +10 -0
  708. package/types/ui/src/term/Terms.d.ts +1 -0
  709. package/types/ui/src/term/TermsLink.d.ts +1 -0
  710. package/types/ui/src/term/TermsModal.d.ts +12 -0
  711. package/types/ui/src/term/TermsModal.stories.d.ts +3 -0
  712. package/types/ui/src/term/useTerms.d.ts +5 -0
  713. package/types/ui/src/text/TextMultiline.d.ts +6 -0
  714. package/types/ui/src/textDialog/TextDialog.d.ts +8 -0
  715. package/types/ui/src/theme/Themes.d.ts +22 -0
  716. package/types/ui/src/theme/stories/Theme.stories.d.ts +3 -0
  717. package/types/ui/src/theme/stories/ThemeExample.d.ts +2 -0
  718. package/types/ui/src/timeline/Timeline.d.ts +6 -0
  719. package/types/ui/src/timeline/TimelineAppEventDomainIcon.d.ts +3 -0
  720. package/types/ui/src/timeline/TimelineAppEventItem.d.ts +9 -0
  721. package/types/ui/src/timeline/TimelineAppEventTypeColor.d.ts +3 -0
  722. package/types/ui/src/timeline/TimelineItem.d.ts +11 -0
  723. package/types/ui/src/timeline/__stories__/Timeline.stories.d.ts +3 -0
  724. package/types/ui/src/timeline/__stories__/TimelineAppEvent.stories.d.ts +3 -0
  725. package/types/ui/src/unSupportedBrowser/UnsupportedBrowserWarning.d.ts +2 -0
  726. package/types/ui/src/unSupportedBrowser/index.d.ts +2 -0
  727. package/types/ui/src/unSupportedBrowser/isUnSupportedBrowser.d.ts +4 -0
  728. package/types/ui/src/user/chip/UserChip.d.ts +6 -0
  729. package/types/ui/src/user/chip/stories/UserChip.stories.d.ts +4 -0
  730. package/types/ui/src/utils/BrowserOnly.d.ts +7 -0
  731. package/types/ui/src/utils/DesktopOnly.d.ts +8 -0
  732. package/types/ui/src/utils/MobileOnly.d.ts +8 -0
  733. package/types/ui/src/windowPopper/WindowPopper.d.ts +16 -0
  734. package/types/ui/src/windowPopper/WindowPopper.stories.d.ts +3 -0
  735. package/types/ui/src/windowPopper/WindowPopperTransition.d.ts +7 -0
  736. package/types/ui/test/convertHtmlToImage.d.ts +1 -0
  737. package/types/ui/test/testUtils.d.ts +9 -0
@@ -0,0 +1,29 @@
1
+ import Typography from '@mui/material/Typography';
2
+
3
+ import BoxFlex from '../BoxFlex';
4
+
5
+ const TypographyExample = () => {
6
+ return (
7
+ <BoxFlex
8
+ sx={{
9
+ flexDirection: 'column',
10
+ }}
11
+ >
12
+ <Typography variant={'h1'}>This is a h1 text</Typography>
13
+ <Typography variant={'h2'}>This is a h2 text</Typography>
14
+ <Typography variant={'h3'}>This is a h3 text</Typography>
15
+ <Typography variant={'h4'}>This is a h4 text</Typography>
16
+ <Typography variant={'h5'}>This is a h5 text</Typography>
17
+ <Typography variant={'h6'}>This is a h6 text</Typography>
18
+ <Typography variant={'subtitle1'}>This is a subtitle1 text</Typography>
19
+ <Typography variant={'subtitle2'}>This is a subtitle2 text</Typography>
20
+ <Typography variant={'body1'}>This is a body1 text</Typography>
21
+ <Typography variant={'body2'}>This is a body2 text</Typography>
22
+ <Typography variant={'button'}>This is a button text</Typography>
23
+ <Typography variant={'caption'}>This is a caption text</Typography>
24
+ <Typography variant={'overline'}>This is a overline text</Typography>
25
+ </BoxFlex>
26
+ );
27
+ };
28
+
29
+ export default TypographyExample;
@@ -0,0 +1,67 @@
1
+ import Typography from '@mui/material/Typography';
2
+ import { useField } from 'formik';
3
+ import { useTranslation } from 'react-i18next';
4
+
5
+ import ActionButton from '../buttons/ActionButton';
6
+ import Modal from '../Modal/Modal';
7
+ import PinInputFormik from '../pinInput/PinInputFormik';
8
+
9
+ export type MultiFactorConfirmModalProps = {
10
+ title: string;
11
+ message: React.ReactNode;
12
+ isOpen: boolean;
13
+ isMutationPending?: boolean;
14
+ onConfirm: VoidFunction;
15
+ onCancel: VoidFunction;
16
+ };
17
+
18
+ const MultiFactorConfirmModal = ({
19
+ title,
20
+ message,
21
+ isOpen,
22
+ isMutationPending = false,
23
+ onConfirm,
24
+ onCancel,
25
+ }: MultiFactorConfirmModalProps) => {
26
+ const { t } = useTranslation();
27
+
28
+ const [field] = useField('multiFactorCode');
29
+
30
+ const isDisabled =
31
+ isMutationPending ||
32
+ field.value.length < 6 ||
33
+ field.value.replaceAll(' ', '').length < 6;
34
+
35
+ return (
36
+ <Modal
37
+ title={title}
38
+ isOpen={isOpen}
39
+ handleClose={onCancel}
40
+ maxWidth={'xs'}
41
+ actions={[
42
+ <ActionButton
43
+ key={'action-1'}
44
+ variant='text'
45
+ color='secondary'
46
+ onClick={onCancel}
47
+ >
48
+ {t('Cancel')}
49
+ </ActionButton>,
50
+ <ActionButton
51
+ key={'action-2'}
52
+ onClick={() => onConfirm()}
53
+ disabled={isDisabled}
54
+ >
55
+ {t('Confirm')}
56
+ </ActionButton>,
57
+ ]}
58
+ >
59
+ <Typography>
60
+ {message}
61
+ <PinInputFormik name={'multiFactorCode'} />
62
+ </Typography>
63
+ </Modal>
64
+ );
65
+ };
66
+
67
+ export default MultiFactorConfirmModal;
@@ -0,0 +1,30 @@
1
+ import type { Story, Meta } from '@storybook/react';
2
+ import { useState } from 'react';
3
+
4
+ import ActionButton from '../../buttons/ActionButton';
5
+ import MultiFactorConfirmModal from '../MultiFactorConfirmModal';
6
+ import type { MultiFactorConfirmModalProps } from '../MultiFactorConfirmModal';
7
+
8
+ export default {
9
+ title: 'MultiFactor/MultiFactorConfirmModal',
10
+ component: MultiFactorConfirmModal,
11
+ } as Meta;
12
+
13
+ export const Example: Story<MultiFactorConfirmModalProps> = () => {
14
+ const [isOpen, setIsOpen] = useState(false);
15
+
16
+ return (
17
+ <>
18
+ <ActionButton onClick={() => setIsOpen(true)}>Open modal</ActionButton>
19
+ <MultiFactorConfirmModal
20
+ title={'Confirme a mudança da chave Pix'}
21
+ message={
22
+ 'Enviamos um código de validação para o seu email de cadastro.\nDigite o código para confirmar a mudança da chave Pix de depósito.'
23
+ }
24
+ isOpen={isOpen}
25
+ onConfirm={() => null}
26
+ onCancel={() => setIsOpen(false)}
27
+ />
28
+ </>
29
+ );
30
+ };
@@ -0,0 +1,21 @@
1
+ import styled from 'styled-components';
2
+
3
+ import {
4
+ CHARGE_STATUS_ENUM,
5
+ SUBSCRIPTION_INSTALLMENT_STATUS_ENUM,
6
+ } from '@woovi/shared';
7
+
8
+ import { default as _Tag } from '../../tag/Tag';
9
+
10
+ export const TAG_STATUS_COLOR = {
11
+ [CHARGE_STATUS_ENUM.ACTIVE]: '#FF9800',
12
+ [CHARGE_STATUS_ENUM.ACTIVE_WAITING_PAYMENT_METHOD]: '#FF9800',
13
+ [CHARGE_STATUS_ENUM.EXPIRED]: '#ff7f50',
14
+ [CHARGE_STATUS_ENUM.OVERDUE]: '#e65100',
15
+ [CHARGE_STATUS_ENUM.COMPLETED]: '#4CAF50',
16
+ [SUBSCRIPTION_INSTALLMENT_STATUS_ENUM.SCHEDULED]: 'rgb(0 149 255)', // status for when the installment of charge is scheduled
17
+ };
18
+ export const ChargeTagStatus = styled(_Tag)<{ status: string }>`
19
+ background-color: ${(props) => TAG_STATUS_COLOR[props.status]} !important;
20
+ color: white !important;
21
+ `;
@@ -0,0 +1,152 @@
1
+ type GiftbackEnvelopeSvgProps = {
2
+ width: number;
3
+ height: number;
4
+ };
5
+
6
+ const GiftbackEnvelopeSvg = ({
7
+ width = 229,
8
+ height = 208,
9
+ }: GiftbackEnvelopeSvgProps) => {
10
+ return (
11
+ <svg
12
+ width={width}
13
+ height={height}
14
+ viewBox='0 0 229 208'
15
+ fill='none'
16
+ xmlns='http://www.w3.org/2000/svg'
17
+ >
18
+ <path
19
+ d='M216.835 44.9308C191.237 8.86451 135.078 -8.59811 97.4743 4.15159C78.6226 10.5512 63.9382 23.9459 48.1623 35.3561C31.8903 47.064 13.3363 57.7797 5.49794 76.2841C-0.703269 90.919 1.57878 108.332 10.4589 123.314C20.5793 140.33 38.1907 151.443 53.0736 164.193C63.4421 173.023 72.9175 182.846 83.9805 190.883C109.133 208.99 139.692 212.066 165.837 202.59C188.012 194.554 191.088 176.595 196.247 155.858C202.647 130.309 219.564 109.771 225.12 84.172C227.997 71.0255 225.368 56.9363 216.835 44.9308Z'
20
+ fill='#03D69D'
21
+ />
22
+ <path
23
+ opacity='0.7'
24
+ d='M216.835 44.9308C191.237 8.86451 135.078 -8.59811 97.4743 4.15159C78.6226 10.5512 63.9382 23.9459 48.1623 35.3561C31.8903 47.064 13.3363 57.7797 5.49794 76.2841C-0.703269 90.919 1.57878 108.332 10.4589 123.314C20.5793 140.33 38.1907 151.443 53.0736 164.193C63.4421 173.023 72.9175 182.846 83.9805 190.883C109.133 208.99 139.692 212.066 165.837 202.59C188.012 194.554 191.088 176.595 196.247 155.858C202.647 130.309 219.564 109.771 225.12 84.172C227.997 71.0255 225.368 56.9363 216.835 44.9308Z'
25
+ fill='white'
26
+ />
27
+ <path
28
+ d='M28.8891 29.4547L208.298 54.5639C213.833 55.3739 217.748 60.5037 216.938 66.0386L202.089 171.74C201.279 177.275 196.149 181.19 190.614 180.38L11.2046 155.406C5.66982 154.596 1.75495 149.466 2.56492 143.931L17.4145 38.2294C18.0894 32.5596 23.2193 28.6447 28.8891 29.4547Z'
29
+ fill='#263238'
30
+ stroke='#263238'
31
+ strokeLinecap='round'
32
+ strokeLinejoin='round'
33
+ />
34
+ <path
35
+ d='M29.1591 28.6448L208.568 53.754C214.103 54.5639 218.018 59.6938 217.208 65.2286L202.359 170.93C201.549 176.465 196.419 180.38 190.884 179.57L11.4746 154.461C5.93981 153.651 2.02494 148.521 2.83491 142.986L17.6844 37.2845C18.3594 31.7497 23.4893 27.8348 29.1591 28.6448Z'
36
+ fill='#03D69D'
37
+ />
38
+ <path
39
+ d='M29.1591 28.6448L208.568 53.754C214.103 54.5639 218.018 59.6938 217.208 65.2286L202.359 170.93C201.549 176.465 196.419 180.38 190.884 179.57L11.4746 154.461C5.93981 153.651 2.02494 148.521 2.83491 142.986L17.6844 37.2845C18.3594 31.7497 23.4893 27.8348 29.1591 28.6448Z'
40
+ stroke='#263238'
41
+ strokeWidth='0.75'
42
+ strokeLinecap='round'
43
+ strokeLinejoin='round'
44
+ />
45
+ <path
46
+ d='M104.622 101.813C106.242 101.813 107.727 100.598 108.807 98.7079L210.188 114.637L212.888 95.063L111.101 83.4534C110.831 81.4284 110.022 79.6735 108.672 78.1885C104.352 74.4087 88.9622 78.3235 82.4824 80.0785L80.7274 79.8085C80.5924 79.5385 80.3225 79.2685 80.1875 79.1335L88.5572 36.8799L69.9278 34.3149L65.6079 76.7036C65.2029 76.8386 64.798 76.9736 64.528 77.2436L61.2881 76.5686C55.2133 72.7887 42.5237 65.7689 37.6638 68.0639C36.4489 68.7388 35.3689 69.8188 34.5589 71.0338L13.4996 66.9839L10.6647 86.6933L32.264 88.8532C32.669 90.3382 33.7489 91.5531 35.0989 92.0931C37.7988 92.7681 42.1187 92.3631 46.7085 91.6881C30.1041 101.678 25.6492 123.817 25.6492 123.817L36.1789 118.417L44.2786 129.217C45.3586 109.778 57.1032 97.8979 63.718 92.6331L53.0533 160.266L69.9278 162.561L77.8925 93.7131H78.2975C83.0224 100.058 92.0671 115.312 87.6122 135.157L98.4119 127.057L107.052 135.157C107.052 135.157 108.807 113.422 96.252 99.2479C98.8169 100.733 101.652 101.543 104.622 101.813Z'
47
+ fill='#263238'
48
+ />
49
+ <path
50
+ d='M13.7696 64.4189L11.0696 83.8583L68.4428 89.3931L210.593 111.802L213.293 92.3631L70.3328 76.0286L13.7696 64.4189Z'
51
+ fill='white'
52
+ stroke='#263238'
53
+ strokeLinecap='round'
54
+ strokeLinejoin='round'
55
+ />
56
+ <path
57
+ d='M50.2184 160.806L66.9578 163.236L76.2726 83.8581L85.8572 36.4746L67.4978 33.9097L62.773 82.1031L50.2184 160.806Z'
58
+ fill='white'
59
+ stroke='#263238'
60
+ strokeLinecap='round'
61
+ strokeLinejoin='round'
62
+ />
63
+ <path
64
+ d='M65.8779 86.4232C65.8779 86.4232 44.0086 98.7078 42.6587 125.167L34.6939 114.637L24.4342 119.902C24.4342 119.902 30.374 90.2031 54.6733 84.8032L65.8779 86.4232Z'
65
+ fill='white'
66
+ stroke='#263238'
67
+ strokeLinecap='round'
68
+ strokeLinejoin='round'
69
+ />
70
+ <path
71
+ d='M73.3027 87.5029C73.3027 87.5029 90.8521 105.322 85.0473 131.242L95.577 123.277L104.082 131.242C104.082 131.242 106.512 101.002 84.6423 89.1229L73.3027 87.5029Z'
72
+ fill='white'
73
+ stroke='#263238'
74
+ strokeLinecap='round'
75
+ strokeLinejoin='round'
76
+ />
77
+ <path
78
+ d='M62.638 75.8932C62.638 75.8932 42.5237 62.5286 36.1789 65.4985C29.8341 68.4684 27.6741 87.2328 33.7489 88.8528C39.8237 90.4727 55.4832 85.8829 62.098 86.8278L62.638 75.8932Z'
79
+ fill='white'
80
+ stroke='#263238'
81
+ strokeLinecap='round'
82
+ strokeLinejoin='round'
83
+ />
84
+ <path
85
+ d='M32.939 86.288C33.209 88.7179 40.0937 88.7179 45.3586 88.4479C49.2734 87.9079 53.3233 87.2329 56.8332 86.8279C48.4635 85.613 32.669 83.4531 32.939 86.288Z'
86
+ fill='#999999'
87
+ stroke='#263238'
88
+ strokeLinecap='round'
89
+ strokeLinejoin='round'
90
+ />
91
+ <path
92
+ d='M77.4875 77.9185C77.4875 77.9185 100.572 70.6287 105.837 75.2186C111.101 79.8084 108.132 98.4378 101.787 98.4378C95.442 98.4378 81.6724 89.6631 75.0576 88.7181L77.4875 77.9185Z'
93
+ fill='white'
94
+ stroke='#263238'
95
+ strokeLinecap='round'
96
+ strokeLinejoin='round'
97
+ />
98
+ <path
99
+ d='M103.137 96.1429C102.327 98.3029 95.5769 96.5479 90.5821 94.793C86.9372 93.173 83.1573 91.4181 79.9174 90.2031C88.4222 91.2831 104.082 93.578 103.137 96.1429Z'
100
+ fill='#999999'
101
+ stroke='#263238'
102
+ strokeLinecap='round'
103
+ strokeLinejoin='round'
104
+ />
105
+ <path
106
+ d='M73.0327 91.1481L63.448 89.7981C61.693 89.5281 60.3431 87.9082 60.4781 86.1532L61.018 76.9735C61.153 75.0836 62.773 73.5986 64.6629 73.7336C64.7979 73.7336 64.7979 73.7336 64.9329 73.7336L76.0026 75.3536C77.8925 75.6236 79.2425 77.3785 78.9725 79.2685C78.9725 79.4034 78.9725 79.4034 78.9725 79.5384L76.9475 88.4482C76.5425 90.2031 74.9226 91.4181 73.0327 91.1481Z'
107
+ fill='white'
108
+ stroke='#263238'
109
+ strokeLinecap='round'
110
+ strokeLinejoin='round'
111
+ />
112
+ <path
113
+ d='M122.981 177.815L127.976 178.49'
114
+ stroke='#263238'
115
+ strokeLinecap='round'
116
+ strokeLinejoin='round'
117
+ />
118
+ <path
119
+ d='M86.1273 173.09L117.851 177.14'
120
+ stroke='#263238'
121
+ strokeLinecap='round'
122
+ strokeLinejoin='round'
123
+ />
124
+ <path
125
+ d='M72.0877 171.2L79.2425 172.145'
126
+ stroke='#263238'
127
+ strokeLinecap='round'
128
+ strokeLinejoin='round'
129
+ />
130
+ <path
131
+ d='M116.096 34.5846L111.101 33.9097'
132
+ stroke='#263238'
133
+ strokeLinecap='round'
134
+ strokeLinejoin='round'
135
+ />
136
+ <path
137
+ d='M153.085 39.4446L121.226 35.2598'
138
+ stroke='#263238'
139
+ strokeLinecap='round'
140
+ strokeLinejoin='round'
141
+ />
142
+ <path
143
+ d='M166.99 41.1994L159.835 40.2544'
144
+ stroke='#263238'
145
+ strokeLinecap='round'
146
+ strokeLinejoin='round'
147
+ />
148
+ </svg>
149
+ );
150
+ };
151
+
152
+ export default GiftbackEnvelopeSvg;
@@ -0,0 +1,35 @@
1
+ const WooviLogoInMobile = ({ size = '100px' }) => {
2
+ return (
3
+ <svg
4
+ width={size}
5
+ height={size}
6
+ viewBox='0 0 195 182'
7
+ fill='none'
8
+ xmlns='http://www.w3.org/2000/svg'
9
+ >
10
+ <path
11
+ d='M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886713 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z'
12
+ fill='#03D69D'
13
+ />
14
+ <path
15
+ opacity='0.7'
16
+ d='M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886712 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z'
17
+ fill='white'
18
+ />
19
+ <path
20
+ d='M135.411 4.02396H105.264L104.012 6.34695C103.335 7.56463 102.344 8.57911 101.143 9.28539C99.9417 9.99168 98.5736 10.3641 97.1801 10.3641C95.7866 10.3641 94.4184 9.99168 93.2172 9.28539C92.016 8.57911 91.0253 7.56463 90.3478 6.34695L89.0923 4.02396H58.9362C57.4114 4.00343 55.9408 4.58926 54.8478 5.65265C53.7548 6.71605 53.1288 8.16997 53.1074 9.69478V164.938C53.1174 165.693 53.2762 166.439 53.5745 167.133C53.8729 167.827 54.3051 168.456 54.8463 168.983C55.3876 169.51 56.0274 169.925 56.7291 170.204C57.4309 170.484 58.1809 170.623 58.9362 170.613H135.411C136.936 170.632 138.406 170.045 139.498 168.981C140.59 167.917 141.215 166.462 141.236 164.938V9.69478C141.214 8.17072 140.589 6.71745 139.497 5.65418C138.405 4.59091 136.935 4.00457 135.411 4.02396Z'
21
+ fill='white'
22
+ stroke='#263238'
23
+ strokeWidth='2'
24
+ strokeLinecap='round'
25
+ strokeLinejoin='round'
26
+ />
27
+ <path
28
+ d='M88.4207 90.6044C90.3904 92.5089 92.1993 94.2579 94.0082 96.0069C89.908 100.865 84.803 103.858 78.0096 102.614C71.6986 101.448 67.5583 97.6782 65.9102 91.615C64.1817 85.2019 67.2367 78.5557 73.1457 75.2909C79.0547 72.026 86.4511 72.8811 91.3149 77.5063C96.7416 82.6367 102.048 87.8838 107.434 93.0531C110.208 95.696 114.308 96.0069 117.282 93.8693C120.619 91.4595 121.222 86.7955 118.649 83.6473C116.036 80.499 111.213 79.9938 108.077 82.6367C106.992 83.5307 106.108 84.6578 105.183 85.6683C103.173 83.725 101.364 81.976 99.5554 80.227C103.535 75.4852 108.56 72.2592 116.036 73.6973C122.267 74.8633 126.89 79.7994 127.935 85.9793C128.94 92.0425 125.644 98.3001 119.895 101.215C114.026 104.169 106.912 103.158 102.128 98.611C96.7818 93.4806 91.4757 88.3113 86.1295 83.1809C83.8382 80.9654 80.6224 80.3047 77.8086 81.5484C74.9546 82.7922 73.3869 84.9687 73.3467 88.0392C73.3065 91.0708 74.7536 93.364 77.6076 94.6466C80.5018 95.9292 83.2353 95.5405 85.6471 93.5195C86.6922 92.5867 87.5364 91.5372 88.4207 90.6044Z'
29
+ fill='#03D69D'
30
+ />
31
+ </svg>
32
+ );
33
+ };
34
+
35
+ export default WooviLogoInMobile;
@@ -0,0 +1,20 @@
1
+ const CheckIcon = () => {
2
+ return (
3
+ <svg
4
+ width={90}
5
+ height={90}
6
+ viewBox='0 0 135 135'
7
+ fill='none'
8
+ xmlns='http://www.w3.org/2000/svg'
9
+ >
10
+ <path
11
+ fillRule='evenodd'
12
+ clipRule='evenodd'
13
+ d='M67.5 0C30.222 0 0 30.222 0 67.5S30.222 135 67.5 135 135 104.778 135 67.5 104.778 0 67.5 0zm29.258 56.086a6.137 6.137 0 10-9.425-7.854L60.946 79.889 47.293 66.23a6.136 6.136 0 00-8.677 8.678l18.41 18.409a6.136 6.136 0 009.05-.412l30.682-36.818z'
14
+ fill='#03D69D'
15
+ />
16
+ </svg>
17
+ );
18
+ };
19
+
20
+ export default CheckIcon;
@@ -0,0 +1,189 @@
1
+ const ConfirmedIcon = () => {
2
+ return (
3
+ <svg
4
+ width='259'
5
+ height='259'
6
+ viewBox='0 0 259 259'
7
+ fill='none'
8
+ xmlns='http://www.w3.org/2000/svg'
9
+ >
10
+ <g clipPath='url(#clip0_41_572)'>
11
+ <path
12
+ d='M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z'
13
+ fill='#D4F8EE'
14
+ />
15
+ <path
16
+ opacity='0.7'
17
+ d='M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z'
18
+ fill='#D4F8EE'
19
+ />
20
+ <path
21
+ d='M204 81.0021V57.0662H201.82V26.3657C201.82 15.9067 193.414 7.47708 183.036 7.42505C183.036 7.42505 183.036 7.42505 182.984 7.42505H81.7438C71.3136 7.42505 62.9072 15.8547 62.9072 26.3137C62.9072 26.3137 62.9072 26.3137 62.9072 26.3657V232.631C62.9072 243.09 71.3655 251.52 81.7438 251.52H182.984C193.414 251.52 201.82 243.038 201.82 232.631V101.4H204V87.2463H201.82V81.0021H204Z'
22
+ fill='#707070'
23
+ stroke='#263238'
24
+ strokeWidth='1.3179'
25
+ strokeLinejoin='round'
26
+ />
27
+ <path
28
+ d='M85.9462 10.0789H178.728C190.248 10.0789 199.588 19.4451 199.588 30.9968V227.948C199.588 239.5 190.248 248.866 178.728 248.866H85.9462C74.4264 248.866 65.0859 239.5 65.0859 227.948V30.9968C65.0859 19.4451 74.4264 10.0789 85.9462 10.0789Z'
29
+ fill='#263238'
30
+ stroke='#263238'
31
+ strokeWidth='1.3179'
32
+ strokeLinejoin='round'
33
+ />
34
+ <path
35
+ d='M177.068 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V219.102C68.8232 229.561 77.2815 237.991 87.6598 237.991H177.017C187.395 237.991 195.853 229.561 195.853 219.102V30.6846C195.905 20.2776 187.447 11.796 177.068 11.796Z'
36
+ fill='white'
37
+ stroke='#263238'
38
+ strokeWidth='1.3179'
39
+ strokeLinejoin='round'
40
+ />
41
+ <path
42
+ d='M177.069 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V32.818H195.905V30.6846C195.905 20.2776 187.447 11.796 177.069 11.796Z'
43
+ fill='#03D69D'
44
+ />
45
+ <path
46
+ d='M181.323 120.601C181.323 116.178 187.342 110.922 186.252 106.811C185.111 102.544 177.275 101.088 175.096 97.341C172.968 93.5945 175.563 85.9975 172.501 82.9274C169.44 79.8574 161.915 82.5111 158.127 80.3257C154.339 78.1402 152.938 70.283 148.683 69.1382C144.584 68.0455 139.395 74.0815 134.932 74.0815C130.469 74.0815 125.28 68.0455 121.181 69.1382C116.926 70.283 115.473 78.1402 111.737 80.3257C108 82.4591 100.424 79.8574 97.3626 82.9274C94.301 85.9975 96.9475 93.5425 94.768 97.341C92.5886 101.14 84.753 102.544 83.6114 106.811C82.5217 110.922 88.5411 116.126 88.5411 120.601C88.5411 125.076 82.5217 130.279 83.6114 134.39C84.753 138.657 92.5886 140.114 94.768 143.86C96.8956 147.607 94.301 155.204 97.3626 158.274C100.424 161.344 107.948 158.69 111.737 160.875C115.525 163.061 116.926 170.918 121.181 172.063C125.28 173.156 130.469 167.12 134.932 167.12C139.395 167.12 144.584 173.156 148.683 172.063C152.938 170.918 154.391 163.061 158.127 160.875C161.864 158.69 169.44 161.344 172.501 158.274C175.563 155.204 172.916 147.659 175.096 143.86C177.275 140.062 185.111 138.657 186.252 134.39C187.394 130.279 181.323 125.023 181.323 120.601Z'
47
+ fill='#03D69D'
48
+ />
49
+ <path
50
+ d='M134.362 139.229L114.332 117.999C113.398 116.958 113.398 115.345 114.435 114.408C115.473 113.472 117.082 113.472 118.016 114.513L133.739 131.216L153.613 102.336C154.34 101.14 155.897 100.775 157.09 101.504C158.284 102.232 158.647 103.793 157.92 104.99C157.868 105.042 157.817 105.146 157.765 105.198L134.362 139.229Z'
51
+ fill='white'
52
+ />
53
+ <path
54
+ d='M74.375 199.797H113.449'
55
+ stroke='#263238'
56
+ strokeWidth='1.3179'
57
+ strokeLinejoin='round'
58
+ />
59
+ <path
60
+ d='M144.792 204.949H158.024'
61
+ stroke='#263238'
62
+ strokeWidth='1.3179'
63
+ strokeLinejoin='round'
64
+ />
65
+ <path
66
+ d='M133.843 204.949H142.042'
67
+ stroke='#263238'
68
+ strokeWidth='1.3179'
69
+ strokeLinejoin='round'
70
+ />
71
+ <path
72
+ d='M101.048 204.949H130.678'
73
+ stroke='#263238'
74
+ strokeWidth='1.3179'
75
+ strokeLinejoin='round'
76
+ />
77
+ <path
78
+ d='M74.375 204.949H97.3628'
79
+ stroke='#263238'
80
+ strokeWidth='1.3179'
81
+ strokeLinejoin='round'
82
+ />
83
+ <path
84
+ d='M124.295 210.465H150.033'
85
+ stroke='#263238'
86
+ strokeWidth='1.3179'
87
+ strokeLinejoin='round'
88
+ />
89
+ <path
90
+ d='M101.463 210.465H121.078'
91
+ stroke='#263238'
92
+ strokeWidth='1.3179'
93
+ strokeLinejoin='round'
94
+ />
95
+ <path
96
+ d='M74.375 210.465H98.2969'
97
+ stroke='#263238'
98
+ strokeWidth='1.3179'
99
+ strokeLinejoin='round'
100
+ />
101
+ <path
102
+ d='M184.021 215.928H187.187'
103
+ stroke='#263238'
104
+ strokeWidth='1.3179'
105
+ strokeLinejoin='round'
106
+ />
107
+ <path
108
+ d='M160.307 215.928H181.738'
109
+ stroke='#263238'
110
+ strokeWidth='1.3179'
111
+ strokeLinejoin='round'
112
+ />
113
+ <path
114
+ d='M118.379 215.928H154.807'
115
+ stroke='#263238'
116
+ strokeWidth='1.3179'
117
+ strokeLinejoin='round'
118
+ />
119
+ <path
120
+ d='M83.7158 215.928H114.695'
121
+ stroke='#263238'
122
+ strokeWidth='1.3179'
123
+ strokeLinejoin='round'
124
+ />
125
+ <path
126
+ d='M74.375 215.928H80.083'
127
+ stroke='#263238'
128
+ strokeWidth='1.3179'
129
+ strokeLinejoin='round'
130
+ />
131
+ <path
132
+ d='M131.974 14.5018C132.949 14.5018 133.739 13.7097 133.739 12.7326C133.739 11.7555 132.949 10.9634 131.974 10.9634C131 10.9634 130.21 11.7555 130.21 12.7326C130.21 13.7097 131 14.5018 131.974 14.5018Z'
133
+ fill='#707070'
134
+ />
135
+ <path
136
+ d='M156.104 19.7573H154.443V23.9721H156.104V19.7573Z'
137
+ fill='white'
138
+ />
139
+ <path
140
+ d='M158.335 18.9247H156.675V23.9721H158.335V18.9247Z'
141
+ fill='white'
142
+ />
143
+ <path
144
+ d='M160.567 18.3003H158.906V23.92H160.567V18.3003Z'
145
+ fill='white'
146
+ />
147
+ <path
148
+ d='M162.798 17.2596H161.138V23.92H162.798V17.2596Z'
149
+ fill='white'
150
+ />
151
+ <path
152
+ d='M183.555 23.816H173.488V17.6759H183.555V23.816ZM174.059 23.2957H182.984V18.2483H174.059V23.2957Z'
153
+ fill='white'
154
+ />
155
+ <path
156
+ d='M180.182 18.8207H174.889V22.6712H180.182V18.8207Z'
157
+ fill='white'
158
+ />
159
+ <path
160
+ d='M184.437 20.0175H183.191V21.4744H184.437V20.0175Z'
161
+ fill='white'
162
+ />
163
+ <path
164
+ d='M169.804 22.5151C169.752 22.5151 169.648 22.5151 169.596 22.4631C167.521 21.2663 166.172 22.359 166.12 22.4111C165.964 22.5672 165.756 22.5672 165.601 22.4631C165.445 22.307 165.445 22.0989 165.549 21.9428L165.601 21.8907C165.653 21.8387 167.417 20.3297 169.96 21.8387C170.115 21.9428 170.219 22.1509 170.115 22.359C170.063 22.4111 169.96 22.5151 169.804 22.5151Z'
165
+ fill='white'
166
+ />
167
+ <path
168
+ d='M170.581 21.2143C170.529 21.2143 170.426 21.2143 170.374 21.1622C167.416 19.393 165.444 21.1102 165.392 21.1102C165.237 21.2663 165.029 21.2143 164.873 21.1102C164.718 20.9541 164.77 20.7459 164.925 20.5898C164.925 20.5898 167.364 18.5085 170.789 20.5378C170.945 20.6419 171.048 20.85 170.945 21.0582C170.841 21.1622 170.685 21.2143 170.581 21.2143Z'
169
+ fill='white'
170
+ />
171
+ <path
172
+ d='M171.257 19.8093C171.205 19.8093 171.101 19.8093 171.049 19.7573C167.313 17.5198 164.822 19.6012 164.718 19.7052C164.563 19.8613 164.303 19.8093 164.199 19.6532C164.044 19.4971 164.096 19.2369 164.251 19.1328C164.303 19.1328 167.261 16.5831 171.464 19.0808C171.62 19.1849 171.724 19.393 171.62 19.6012C171.516 19.7052 171.36 19.8093 171.257 19.8093Z'
173
+ fill='white'
174
+ />
175
+ <path
176
+ d='M168.661 23.1395C168.661 23.6599 168.246 24.0761 167.727 24.0761C167.208 24.0761 166.793 23.6599 166.793 23.1395C166.793 22.6192 167.208 22.2029 167.727 22.2029C168.246 22.2029 168.661 22.6192 168.661 23.1395Z'
177
+ fill='white'
178
+ />
179
+ </g>
180
+ <defs>
181
+ <clipPath id='clip0_41_572'>
182
+ <rect width='259' height='259' fill='white' />
183
+ </clipPath>
184
+ </defs>
185
+ </svg>
186
+ );
187
+ };
188
+
189
+ export default ConfirmedIcon;
@@ -0,0 +1,39 @@
1
+ import { Typography } from '@mui/material';
2
+ import { useTheme } from '@mui/material/styles';
3
+ import { useTranslation } from 'react-i18next';
4
+
5
+ import { CASHBACK_STATUS } from '@woovi/shared';
6
+ import { convertToCurrency } from '@woovi/utils';
7
+
8
+ import Ribbon from '../../ribbon/Ribbon';
9
+ import type { ChargeData } from '../paymentLink/types/ChargeDataType';
10
+
11
+ type EarnGfitbackProps = {
12
+ chargeData: ChargeData;
13
+ };
14
+
15
+ const EarnCashback = ({ chargeData }: EarnGfitbackProps) => {
16
+ const { t } = useTranslation();
17
+ const theme = useTheme();
18
+
19
+ if (!chargeData?.cashback) {
20
+ return null;
21
+ }
22
+
23
+ if (chargeData.cashback?.status !== CASHBACK_STATUS.PENDING) {
24
+ return null;
25
+ }
26
+
27
+ const earnCashbackValue = convertToCurrency(chargeData.cashback.value / 100);
28
+
29
+ return (
30
+ <Ribbon>
31
+ <Typography>🤑</Typography>
32
+ <Typography color={theme.palette.tertiary.main} sx={{ fontSize: '16px' }}>
33
+ <b>{earnCashbackValue}</b> {t('cashback on time!')}
34
+ </Typography>
35
+ </Ribbon>
36
+ );
37
+ };
38
+
39
+ export default EarnCashback;
@@ -0,0 +1,42 @@
1
+ import { Typography } from '@mui/material';
2
+ import { useTheme } from '@mui/material/styles';
3
+ import { useTranslation } from 'react-i18next';
4
+
5
+ import { CASHBACK_STATUS } from '@woovi/shared';
6
+ import { convertToCurrency } from '@woovi/utils';
7
+
8
+ import Ribbon from '../../ribbon/Ribbon';
9
+ import type { ChargeData } from '../paymentLink/types/ChargeDataType';
10
+
11
+ type EarnCashbackExclusiveProps = {
12
+ chargeData: ChargeData;
13
+ };
14
+
15
+ const EarnCashbackExclusive = ({ chargeData }: EarnCashbackExclusiveProps) => {
16
+ const { t } = useTranslation();
17
+ const theme = useTheme();
18
+
19
+ if (!chargeData?.cashbackExclusive) {
20
+ return null;
21
+ }
22
+
23
+ if (chargeData.cashbackExclusive?.status !== CASHBACK_STATUS.PENDING) {
24
+ return null;
25
+ }
26
+
27
+ const earnCashbackExclusiveValue = convertToCurrency(
28
+ chargeData.cashbackExclusive.value / 100,
29
+ );
30
+
31
+ return (
32
+ <Ribbon color={theme.palette.warning.light}>
33
+ <Typography>🎁</Typography>
34
+ <Typography color={theme.palette.tertiary.main} sx={{ fontSize: '16px' }}>
35
+ <b>{earnCashbackExclusiveValue}</b>{' '}
36
+ {t('of cashback on the next purchase!')}
37
+ </Typography>
38
+ </Ribbon>
39
+ );
40
+ };
41
+
42
+ export default EarnCashbackExclusive;
@@ -0,0 +1,38 @@
1
+ import { useTranslation } from 'react-i18next';
2
+
3
+ import { Tag, TagsContainer } from '@woovi/ui';
4
+ import { maskMoney } from '@woovi/utils';
5
+
6
+ type Props = {
7
+ giftbackAppliedValue: number;
8
+ };
9
+ export const GiftbackRedeem = ({ giftbackAppliedValue }: Props) => {
10
+ const { t } = useTranslation();
11
+
12
+ if (!giftbackAppliedValue) {
13
+ return null;
14
+ }
15
+
16
+ const getStringValue = () => {
17
+ return t('You redeemed {{giftbackValue}} of Giftback', {
18
+ giftbackValue: maskMoney(giftbackAppliedValue / 100),
19
+ });
20
+ };
21
+
22
+ return (
23
+ <TagsContainer>
24
+ <Tag
25
+ key={giftbackAppliedValue}
26
+ label={getStringValue()}
27
+ variant='default'
28
+ style={{
29
+ background: '#4CAF50',
30
+ color: '#FFFFFF',
31
+ fontWeight: 600,
32
+ fontSize: '14px',
33
+ lineHeight: '22px',
34
+ }}
35
+ />
36
+ </TagsContainer>
37
+ );
38
+ };