@bigbinary/neeto-custom-domains-frontend 3.3.4 → 3.3.5

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.
@@ -7,7 +7,7 @@ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
7
  var Callout = require('@bigbinary/neetoui/Callout');
8
8
  var Spinner = require('@bigbinary/neetoui/Spinner');
9
9
  var reactI18next = require('react-i18next');
10
- var application = require('../application-Dwn9zjMI.js');
10
+ var application = require('../application-DVE1-xzg.js');
11
11
  var Container = require('@bigbinary/neeto-molecules/Container');
12
12
  var CheckCircle = require('@bigbinary/neeto-icons/CheckCircle');
13
13
  var Warning2 = require('@bigbinary/neeto-icons/Warning2');
package/dist/cjs/index.js CHANGED
@@ -9,7 +9,7 @@ require('@bigbinary/neeto-commons-frontend/react-utils');
9
9
  require('@bigbinary/neetoui/Callout');
10
10
  require('@bigbinary/neetoui/Spinner');
11
11
  require('react-i18next');
12
- require('../application-Dwn9zjMI.js');
12
+ require('../application-DVE1-xzg.js');
13
13
  require('@babel/runtime/helpers/defineProperty');
14
14
  require('@tanstack/react-query');
15
15
  require('@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation');
@@ -6,7 +6,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
6
6
  var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
7
7
  var neetoAtoms = require('@bigbinary/neeto-atoms');
8
8
  var reactI18next = require('react-i18next');
9
- var application = require('../../application-Dwn9zjMI.js');
9
+ var application = require('../../application-DVE1-xzg.js');
10
10
  var Container = require('@bigbinary/neeto-molecules/v2/Container');
11
11
  var CheckCircle = require('@bigbinary/neeto-icons/CheckCircle');
12
12
  var Warning2 = require('@bigbinary/neeto-icons/Warning2');
@@ -133,14 +133,14 @@ var Domain = function Domain(_ref) {
133
133
  })
134
134
  }),
135
135
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
136
- className: "flex flex-col gap-y-6 divide-y divide-gray-200",
136
+ className: "divide-border flex flex-col gap-y-6 divide-y",
137
137
  children: customDomains === null || customDomains === void 0 ? void 0 : customDomains.map(function (customDomain, index) {
138
138
  var _customDomain$redirec;
139
139
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
140
- className: "flex items-center gap-x-3 pb-6 last:pb-0",
140
+ className: "flex items-start gap-x-3 pb-6 last:pb-0",
141
141
  "data-testid": "custom-domain-item",
142
142
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
143
- className: classNames("rounded-lg flex items-center justify-center p-2", {
143
+ className: classNames("flex items-center justify-center rounded-lg p-2", {
144
144
  "bg-success": (customDomain === null || customDomain === void 0 ? void 0 : customDomain.status) === "active",
145
145
  "bg-warning": (customDomain === null || customDomain === void 0 ? void 0 : customDomain.status) === "pending",
146
146
  "bg-error": (customDomain === null || customDomain === void 0 ? void 0 : customDomain.status) === "failed"
@@ -227,8 +227,8 @@ var Domain = function Domain(_ref) {
227
227
  Link: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
228
228
  href: helpDocUrl,
229
229
  rel: "noreferrer",
230
- variant: "link",
231
- target: "_blank"
230
+ target: "_blank",
231
+ variant: "link"
232
232
  })
233
233
  }
234
234
  })
@@ -247,39 +247,38 @@ var Domain = function Domain(_ref) {
247
247
  onClick: openPane
248
248
  }),
249
249
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
250
- className: "flex h-full w-full items-center gap-x-3",
250
+ className: "flex h-full w-full items-start gap-x-3",
251
251
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
252
- className: "bg-muted rounded-lg flex items-center justify-center p-2",
252
+ className: "bg-muted flex items-start justify-center rounded-lg p-2",
253
253
  children: /*#__PURE__*/jsxRuntime.jsx(CustomDomain$1, {
254
254
  className: "text-muted-foreground",
255
255
  size: 32
256
256
  })
257
257
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
258
- className: "flex flex-col gap-y-1",
258
+ className: "flex flex-col",
259
259
  children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
260
+ className: "mb-3",
260
261
  variant: "h4",
261
262
  weight: "medium",
262
263
  children: t("neetoCustomDomains.noData.title")
263
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
264
- children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
265
- className: "text-muted-foreground",
266
- variant: "body2",
267
- children: disconnectedIntegrationCardDescription || t("neetoCustomDomains.noData.helpTextDefault")
268
- }), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
269
- className: "text-muted-foreground mt-2",
270
- variant: "body2",
271
- children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
272
- i18nKey: "neetoCustomDomains.noData.helpTextDisconnected",
273
- components: {
274
- Link: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
275
- href: helpDocUrl,
276
- rel: "noreferrer",
277
- variant: "link",
278
- target: "_blank"
279
- })
280
- }
281
- })
282
- })]
264
+ }), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
265
+ className: "text-muted-foreground",
266
+ variant: "body2",
267
+ children: disconnectedIntegrationCardDescription || t("neetoCustomDomains.noData.helpTextDefault")
268
+ }), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
269
+ className: "text-muted-foreground mt-2",
270
+ variant: "body2",
271
+ children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
272
+ i18nKey: "neetoCustomDomains.noData.helpTextDisconnected",
273
+ components: {
274
+ Link: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
275
+ href: helpDocUrl,
276
+ rel: "noreferrer",
277
+ target: "_blank",
278
+ variant: "link"
279
+ })
280
+ }
281
+ })
283
282
  })]
284
283
  })]
285
284
  })
@@ -352,6 +351,7 @@ var Strategy = reactUtils.withT(function (_ref) {
352
351
  setPrimaryDomain = _ref.setPrimaryDomain,
353
352
  onClose = _ref.onClose;
354
353
  return /*#__PURE__*/jsxRuntime.jsxs(formik.Form, {
354
+ className: "flex min-h-0 grow flex-col",
355
355
  formikProps: {
356
356
  initialValues: STRATEGY_INITIAL_VALUES,
357
357
  validationSchema: strategyValidationSchema,
@@ -366,8 +366,8 @@ var Strategy = reactUtils.withT(function (_ref) {
366
366
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
367
367
  className: "space-y-4",
368
368
  children: [/*#__PURE__*/jsxRuntime.jsx(formik.RadioGroup, {
369
- stacked: true,
370
369
  name: "strategy",
370
+ orientation: "vertical",
371
371
  children: strategyOptions.map(function (_ref2, index) {
372
372
  var value = _ref2.value,
373
373
  label = _ref2.label,
@@ -402,8 +402,8 @@ var Strategy = reactUtils.withT(function (_ref) {
402
402
  Link: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
403
403
  href: errorData === null || errorData === void 0 ? void 0 : errorData.pageUrl,
404
404
  rel: "noreferrer",
405
- variant: "link",
406
- target: "_blank"
405
+ target: "_blank",
406
+ variant: "link"
407
407
  })
408
408
  }
409
409
  })
@@ -517,7 +517,7 @@ var DomainField = function DomainField(_ref) {
517
517
  });
518
518
  }
519
519
  return /*#__PURE__*/jsxRuntime.jsx(formik.Form, {
520
- className: "flex-col space-y-6",
520
+ className: "flex min-h-0 grow flex-col",
521
521
  formikProps: {
522
522
  initialValues: INITIAL_VALUES,
523
523
  validationSchema: getCustomDomainValidationSchema(),
@@ -525,14 +525,13 @@ var DomainField = function DomainField(_ref) {
525
525
  },
526
526
  children: function children(_ref5) {
527
527
  var dirty = _ref5.dirty;
528
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
529
- className: "w-full",
528
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
530
529
  children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Body, {
531
530
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
532
531
  className: "w-full space-y-4",
533
532
  children: [/*#__PURE__*/jsxRuntime.jsx(formik.Input, {
534
533
  required: true,
535
- className: "w-full",
534
+ className: "w-[480px] max-w-full",
536
535
  "data-testid": "custom-domain-input-field",
537
536
  label: t("neetoCustomDomains.label"),
538
537
  name: "hostname",
@@ -646,6 +645,7 @@ var columnData = function columnData(dnsProvider) {
646
645
  return /*#__PURE__*/jsxRuntime.jsx("div", {
647
646
  className: "flex items-center justify-between gap-1",
648
647
  children: /*#__PURE__*/jsxRuntime.jsx("img", {
648
+ className: "max-h-[30px] w-auto",
649
649
  src: application.img
650
650
  })
651
651
  });
@@ -1103,7 +1103,7 @@ var Validation = function Validation(_ref) {
1103
1103
  Link: /*#__PURE__*/jsxRuntime.jsx(HelpUrlLink, {}),
1104
1104
  br: /*#__PURE__*/jsxRuntime.jsx("br", {})
1105
1105
  };
1106
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
1106
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1107
1107
  children: [/*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Body, {
1108
1108
  className: "space-y-4",
1109
1109
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -1126,7 +1126,7 @@ var Validation = function Validation(_ref) {
1126
1126
  })
1127
1127
  })]
1128
1128
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
1129
- className: "space-y-1",
1129
+ className: "w-full space-y-1",
1130
1130
  children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.DataTable, {
1131
1131
  allowRowClick: false,
1132
1132
  columns: columnData(dnsProvider),
@@ -1138,6 +1138,7 @@ var Validation = function Validation(_ref) {
1138
1138
  }).flat()
1139
1139
  })
1140
1140
  }), status === "failed" && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Callout, {
1141
+ className: "w-full",
1141
1142
  variant: STATUS_TAG_STYLES[status],
1142
1143
  children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
1143
1144
  variant: "body2",
@@ -1156,6 +1157,7 @@ var Validation = function Validation(_ref) {
1156
1157
  })
1157
1158
  })
1158
1159
  }), neetoCist.isNotEmpty(errorKey) && status === "pending" && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Callout, {
1160
+ className: "w-full",
1159
1161
  variant: STATUS_TAG_STYLES[status],
1160
1162
  children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
1161
1163
  variant: "body2",
@@ -1222,17 +1224,13 @@ var DomainPane = function DomainPane(_ref) {
1222
1224
  return /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet, {
1223
1225
  isOpen: isOpen,
1224
1226
  onClose: onClose,
1225
- className: "flex flex-col",
1226
- size: "large",
1227
+ className: "neeto_custom_domain_pane flex flex-col data-[side=right]:sm:max-w-[1200px]",
1227
1228
  children: [/*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Header, {
1228
1229
  className: "space-y-2",
1229
1230
  children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Title, {
1230
- children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
1231
- variant: "h2",
1232
- children: t("neetoCustomDomains.addNew")
1233
- })
1231
+ children: t("neetoCustomDomains.addNew")
1234
1232
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
1235
- className: "neeto_custom_domain_stepper -ml-2",
1233
+ className: "neeto_custom_domain_stepper mt-2 px-1",
1236
1234
  children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Stepper, {
1237
1235
  activeIndex: CURRENT_STEP[getCurrentStep(primaryDomain)],
1238
1236
  steps: STEPS