@bigbinary/neeto-integrations-frontend 2.12.2 → 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.
package/dist/Daily.js CHANGED
@@ -6,19 +6,19 @@ import { useMutationWithInvalidation, withT, withTitle, useQueryParams } from '@
6
6
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
7
7
  import { useQuery } from 'react-query';
8
8
  import axios from 'axios';
9
+ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
10
+ import { Typography, Button, Tooltip } from '@bigbinary/neetoui';
11
+ import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
12
+ import { Trans, useTranslation } from 'react-i18next';
13
+ import classnames from 'classnames';
9
14
  import '@bigbinary/neeto-molecules/IntegrationCard';
10
15
  import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
11
16
  import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
12
- import classnames from 'classnames';
17
+ import { Check } from '@bigbinary/neeto-icons';
13
18
  import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
14
19
  import { Daily as Daily$1 } from '@bigbinary/neeto-icons/misc';
15
- import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
16
- import { Trans, useTranslation } from 'react-i18next';
17
- import { Typography, Button, Tooltip } from '@bigbinary/neetoui';
18
- import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
19
20
  import 'ramda';
20
21
  import * as yup from 'yup';
21
- import { Check } from '@bigbinary/neeto-icons';
22
22
 
23
23
  function _typeof(o) {
24
24
  "@babel/helpers - typeof";
@@ -179,6 +179,48 @@ function _extends$1() {
179
179
  return _extends$1.apply(this, arguments);
180
180
  }
181
181
 
182
+ function _objectWithoutPropertiesLoose(source, excluded) {
183
+ if (source == null) return {};
184
+ var target = {};
185
+ var sourceKeys = Object.keys(source);
186
+ var key, i;
187
+ for (i = 0; i < sourceKeys.length; i++) {
188
+ key = sourceKeys[i];
189
+ if (excluded.indexOf(key) >= 0) continue;
190
+ target[key] = source[key];
191
+ }
192
+ return target;
193
+ }
194
+
195
+ function _objectWithoutProperties(source, excluded) {
196
+ if (source == null) return {};
197
+ var target = _objectWithoutPropertiesLoose(source, excluded);
198
+ var key, i;
199
+ if (Object.getOwnPropertySymbols) {
200
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
201
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
202
+ key = sourceSymbolKeys[i];
203
+ if (excluded.indexOf(key) >= 0) continue;
204
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
205
+ target[key] = source[key];
206
+ }
207
+ }
208
+ return target;
209
+ }
210
+
211
+ var _excluded = ["className", "children"];
212
+ var ExternalLink = function ExternalLink(_ref) {
213
+ var _ref$className = _ref.className,
214
+ className = _ref$className === void 0 ? "" : _ref$className,
215
+ _ref$children = _ref.children,
216
+ children = _ref$children === void 0 ? null : _ref$children,
217
+ props = _objectWithoutProperties(_ref, _excluded);
218
+ return /*#__PURE__*/React__default.createElement("a", _extends$1({
219
+ className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
220
+ }, props), children);
221
+ };
222
+ var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
223
+
182
224
  var Manage$1 = withT(function (_ref) {
183
225
  var t = _ref.t,
184
226
  _ref$title = _ref.title,
@@ -229,7 +271,7 @@ var Manage$1 = withT(function (_ref) {
229
271
  className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
230
272
  }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
231
273
  className: "neeto-ui-text-gray-600",
232
- size: 60
274
+ size: 48
233
275
  }), /*#__PURE__*/React__default.createElement("div", {
234
276
  className: "space-y-2"
235
277
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -416,23 +458,23 @@ var Connect = withT(function (_ref) {
416
458
  children = _ref.children,
417
459
  secondaryButtonProps = _ref.secondaryButtonProps;
418
460
  return /*#__PURE__*/React__default.createElement("div", {
419
- className: "mx-auto w-full max-w-lg"
461
+ className: "mx-auto w-full max-w-3xl"
462
+ }, /*#__PURE__*/React__default.createElement("div", {
463
+ className: "mb-6 flex flex-col gap-y-2"
420
464
  }, /*#__PURE__*/React__default.createElement(Icon, {
421
465
  size: 48
422
- }), /*#__PURE__*/React__default.createElement(Typography, {
423
- className: "neeto-ui-text-gray-800 mb-0.5 mt-6",
424
- style: "h2",
425
- weight: "semibold"
466
+ }), /*#__PURE__*/React__default.createElement("div", {
467
+ className: "flex flex-col gap-y-1"
468
+ }, /*#__PURE__*/React__default.createElement(Typography, {
469
+ style: "h2"
426
470
  }, title), /*#__PURE__*/React__default.createElement(Typography, {
427
- className: "neeto-ui-text-gray-700 mb-8",
428
- style: "body1",
429
- weight: "normal"
430
- }, description), children, /*#__PURE__*/React__default.createElement("div", {
431
- className: "flex w-full items-start space-x-4"
471
+ style: "body2"
472
+ }, description))), children, /*#__PURE__*/React__default.createElement("div", {
473
+ className: "flex w-full items-center gap-x-3"
432
474
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
433
475
  label: t("neetoIntegrations.common.connect"),
434
476
  onClick: onConnect
435
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
477
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
436
478
  style: "secondary"
437
479
  }, secondaryButtonProps))));
438
480
  });
@@ -440,23 +482,23 @@ Connect.prototypes = {
440
482
  /**
441
483
  * To specify the Icon to be shown
442
484
  */
443
- Icon: propTypesExports.PropTypes.node,
485
+ Icon: PropTypes.node,
444
486
  /**
445
487
  * To specify the title of the connect component
446
488
  */
447
- title: propTypesExports.PropTypes.string,
489
+ title: PropTypes.string,
448
490
  /**
449
491
  * To specify the description for connect component
450
492
  */
451
- description: propTypesExports.PropTypes.string,
493
+ description: PropTypes.string,
452
494
  /**
453
495
  * To specify the props for the connect button
454
496
  */
455
- buttonProps: propTypesExports.PropTypes.object,
497
+ buttonProps: PropTypes.object,
456
498
  /**
457
499
  * Handler function that is triggered when the connect button is clicked.
458
500
  */
459
- onConnect: propTypesExports.PropTypes.func
501
+ onConnect: PropTypes.func
460
502
  };
461
503
 
462
504
  ({
@@ -520,13 +562,13 @@ var Finish = withT(function (_ref) {
520
562
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
521
563
  children = _ref.children;
522
564
  return /*#__PURE__*/React__default.createElement("div", {
523
- className: "neeto-ui-w-full mx-auto max-w-lg"
565
+ className: "mx-auto w-full max-w-3xl"
524
566
  }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
525
- className: "neeto-ui-text-gray-800 mb-8 mt-4",
567
+ className: "mb-6 mt-4",
526
568
  style: "h2",
527
569
  weight: "semibold"
528
570
  }, title), children, /*#__PURE__*/React__default.createElement("div", {
529
- className: "flex w-full items-start space-x-2"
571
+ className: "flex w-full items-center gap-x-2"
530
572
  }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
531
573
  onClick: onClick,
532
574
  label: t("neetoIntegrations.common.continue")
@@ -578,48 +620,6 @@ function n(n, r) {
578
620
  var css = ".intrinsic-container{height:0;overflow:hidden;position:relative}.intrinsic-container-16x9{padding-bottom:56.25%}.intrinsic-container-4x3{padding-bottom:75%}.intrinsic-container iframe{height:100%;left:0;position:absolute;top:0;width:100%}";
579
621
  n(css,{});
580
622
 
581
- function _objectWithoutPropertiesLoose(source, excluded) {
582
- if (source == null) return {};
583
- var target = {};
584
- var sourceKeys = Object.keys(source);
585
- var key, i;
586
- for (i = 0; i < sourceKeys.length; i++) {
587
- key = sourceKeys[i];
588
- if (excluded.indexOf(key) >= 0) continue;
589
- target[key] = source[key];
590
- }
591
- return target;
592
- }
593
-
594
- function _objectWithoutProperties(source, excluded) {
595
- if (source == null) return {};
596
- var target = _objectWithoutPropertiesLoose(source, excluded);
597
- var key, i;
598
- if (Object.getOwnPropertySymbols) {
599
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
600
- for (i = 0; i < sourceSymbolKeys.length; i++) {
601
- key = sourceSymbolKeys[i];
602
- if (excluded.indexOf(key) >= 0) continue;
603
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
604
- target[key] = source[key];
605
- }
606
- }
607
- return target;
608
- }
609
-
610
- var _excluded = ["className", "children"];
611
- var ExternalLink = function ExternalLink(_ref) {
612
- var _ref$className = _ref.className,
613
- className = _ref$className === void 0 ? "" : _ref$className,
614
- _ref$children = _ref.children,
615
- children = _ref$children === void 0 ? null : _ref$children,
616
- props = _objectWithoutProperties(_ref, _excluded);
617
- return /*#__PURE__*/React__default.createElement("a", _extends$1({
618
- className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
619
- }, props), children);
620
- };
621
- var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
622
-
623
623
  var MANAGE_DAILY_CO_FORM_INITIAL_VALUES = {
624
624
  apiKey: ""
625
625
  };