@bigbinary/neeto-integrations-frontend 2.12.3 → 2.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useState, useEffect } from 'react';
3
+ import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
4
+ import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
5
+ import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
6
+ import { Typography, Button, Tooltip, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
7
+ import { Trans, useTranslation } from 'react-i18next';
3
8
  import '@bigbinary/neeto-molecules/IntegrationCard';
4
9
  import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
5
10
  import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
6
11
  import classnames from 'classnames';
7
- import i18next, { t as t$1 } from 'i18next';
8
- import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
9
12
  import { withT, useMutationWithInvalidation, withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
13
+ import { Check } from '@bigbinary/neeto-icons';
14
+ import i18next, { t as t$1 } from 'i18next';
10
15
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
11
16
  import { useQuery } from 'react-query';
12
17
  import axios from 'axios';
13
- import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
14
- import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
15
- import { Typography, Button, Tooltip, Modal as Modal$1, Callout } from '@bigbinary/neetoui';
16
- import { Trans, useTranslation } from 'react-i18next';
18
+ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
17
19
  import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
18
20
  import 'ramda';
19
21
  import * as yup from 'yup';
20
- import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
21
- import { Check } from '@bigbinary/neeto-icons';
22
22
 
23
23
  function _typeof(o) {
24
24
  "@babel/helpers - typeof";
@@ -197,7 +197,7 @@ var Manage$1 = withT(function (_ref) {
197
197
  className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
198
198
  }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
199
199
  className: "neeto-ui-text-gray-600",
200
- size: 60
200
+ size: 48
201
201
  }), /*#__PURE__*/React__default.createElement("div", {
202
202
  className: "space-y-2"
203
203
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -604,7 +604,7 @@ var Modal = function Modal(_ref) {
604
604
  }, /*#__PURE__*/React__default.createElement(Modal$1.Header, null, /*#__PURE__*/React__default.createElement(Stepper, {
605
605
  steps: steps
606
606
  })), /*#__PURE__*/React__default.createElement(Modal$1.Body, {
607
- className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-items-center neeto-ui-flex-grow"
607
+ className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow"
608
608
  }, /*#__PURE__*/React__default.createElement("div", {
609
609
  className: "neeto-ui-w-full py-10"
610
610
  }, children)));
@@ -706,23 +706,23 @@ var Connect = withT(function (_ref) {
706
706
  children = _ref.children,
707
707
  secondaryButtonProps = _ref.secondaryButtonProps;
708
708
  return /*#__PURE__*/React__default.createElement("div", {
709
- className: "mx-auto w-full max-w-lg"
709
+ className: "mx-auto w-full max-w-3xl"
710
+ }, /*#__PURE__*/React__default.createElement("div", {
711
+ className: "mb-6 flex flex-col gap-y-2"
710
712
  }, /*#__PURE__*/React__default.createElement(Icon, {
711
713
  size: 48
712
- }), /*#__PURE__*/React__default.createElement(Typography, {
713
- className: "neeto-ui-text-gray-800 mb-0.5 mt-6",
714
- style: "h2",
715
- weight: "semibold"
714
+ }), /*#__PURE__*/React__default.createElement("div", {
715
+ className: "flex flex-col gap-y-1"
716
+ }, /*#__PURE__*/React__default.createElement(Typography, {
717
+ style: "h2"
716
718
  }, title), /*#__PURE__*/React__default.createElement(Typography, {
717
- className: "neeto-ui-text-gray-700 mb-8",
718
- style: "body1",
719
- weight: "normal"
720
- }, description), children, /*#__PURE__*/React__default.createElement("div", {
721
- className: "flex w-full items-start space-x-4"
719
+ style: "body2"
720
+ }, description))), children, /*#__PURE__*/React__default.createElement("div", {
721
+ className: "flex w-full items-center gap-x-3"
722
722
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
723
723
  label: t("neetoIntegrations.common.connect"),
724
724
  onClick: onConnect
725
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
725
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
726
726
  style: "secondary"
727
727
  }, secondaryButtonProps))));
728
728
  });
@@ -730,23 +730,23 @@ Connect.prototypes = {
730
730
  /**
731
731
  * To specify the Icon to be shown
732
732
  */
733
- Icon: propTypesExports.PropTypes.node,
733
+ Icon: PropTypes.node,
734
734
  /**
735
735
  * To specify the title of the connect component
736
736
  */
737
- title: propTypesExports.PropTypes.string,
737
+ title: PropTypes.string,
738
738
  /**
739
739
  * To specify the description for connect component
740
740
  */
741
- description: propTypesExports.PropTypes.string,
741
+ description: PropTypes.string,
742
742
  /**
743
743
  * To specify the props for the connect button
744
744
  */
745
- buttonProps: propTypesExports.PropTypes.object,
745
+ buttonProps: PropTypes.object,
746
746
  /**
747
747
  * Handler function that is triggered when the connect button is clicked.
748
748
  */
749
- onConnect: propTypesExports.PropTypes.func
749
+ onConnect: PropTypes.func
750
750
  };
751
751
 
752
752
  ({
@@ -810,13 +810,13 @@ var Finish = withT(function (_ref) {
810
810
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
811
811
  children = _ref.children;
812
812
  return /*#__PURE__*/React__default.createElement("div", {
813
- className: "neeto-ui-w-full mx-auto max-w-lg"
813
+ className: "mx-auto w-full max-w-3xl"
814
814
  }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
815
- className: "neeto-ui-text-gray-800 mb-8 mt-4",
815
+ className: "mb-6 mt-4",
816
816
  style: "h2",
817
817
  weight: "semibold"
818
818
  }, title), children, /*#__PURE__*/React__default.createElement("div", {
819
- className: "flex w-full items-start space-x-2"
819
+ className: "flex w-full items-center gap-x-2"
820
820
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
821
821
  onClick: onClick,
822
822
  label: t("neetoIntegrations.common.continue")
@@ -919,15 +919,14 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
919
919
  isOpen: true,
920
920
  onClose: handleClose
921
921
  }, activeTab === STEPS.connect && /*#__PURE__*/React__default.createElement("div", {
922
- className: "w-full max-w-2xl mx-auto"
922
+ className: "mx-auto w-full max-w-3xl"
923
923
  }, /*#__PURE__*/React__default.createElement(GoogleCalendar$1, {
924
- size: 42
924
+ size: 48
925
925
  }), /*#__PURE__*/React__default.createElement(Typography, {
926
- className: "mt-6 mb-3 neeto-ui-text-gray-800",
927
- style: "h2",
928
- weight: "semibold"
926
+ className: "mb-4 mt-2",
927
+ style: "h2"
929
928
  }, t("neetoIntegrations.google.connect.title")), /*#__PURE__*/React__default.createElement("div", {
930
- className: "flex flex-col items-start w-full pt-2"
929
+ className: "flex w-full flex-col items-start"
931
930
  }, /*#__PURE__*/React__default.createElement(Callout, {
932
931
  className: "block leading-5"
933
932
  }, /*#__PURE__*/React__default.createElement(Trans, {
@@ -939,7 +938,7 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
939
938
  selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
940
939
  }
941
940
  })), permissionImage && /*#__PURE__*/React__default.createElement("div", {
942
- className: "my-4 border neeto-ui-border-gray-300"
941
+ className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border"
943
942
  }, /*#__PURE__*/React__default.createElement("img", {
944
943
  src: permissionImage
945
944
  }))), /*#__PURE__*/React__default.createElement(Button, {