@bigbinary/neeto-molecules 1.0.46 → 1.0.47

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.
@@ -3371,10 +3371,6 @@ var FormRow = function FormRow(_ref) {
3371
3371
  var data = _ref.data,
3372
3372
  isAddNew = _ref.isAddNew,
3373
3373
  onCollapse = _ref.onCollapse;
3374
- var _useState = useState(false),
3375
- _useState2 = _slicedToArray(_useState, 2),
3376
- isSubmitted = _useState2[0],
3377
- setIsSubmitted = _useState2[1];
3378
3374
  var _useCreateAllowedIpRa = useCreateAllowedIpRanges(),
3379
3375
  createAllowedIpRange = _useCreateAllowedIpRa.mutate;
3380
3376
  var _useUpdateAllowedIpRa = useUpdateAllowedIpRanges(),
@@ -3396,49 +3392,48 @@ var FormRow = function FormRow(_ref) {
3396
3392
  "data-cy": "allowed-ip-range-form",
3397
3393
  formikProps: {
3398
3394
  initialValues: data,
3399
- validateOnBlur: isSubmitted,
3400
- validateOnChange: isSubmitted,
3401
3395
  validationSchema: getIpRestrictionValidationSchema(),
3402
3396
  onSubmit: handleSubmit
3403
3397
  }
3404
- }, /*#__PURE__*/React.createElement("div", {
3405
- className: "neeto-ui-bg-white flex w-full flex-row justify-between px-2 py-2"
3406
- }, /*#__PURE__*/React.createElement(Input, {
3407
- autoFocus: true,
3408
- className: "w-5/12 flex-grow px-3 py-2 text-left",
3409
- "data-cy": "ip-start-text-field",
3410
- name: "ipStart",
3411
- placeholder: t("neetoMolecules.ipRestriction.ipStart")
3412
- }), /*#__PURE__*/React.createElement(Input, {
3413
- className: "w-5/12 flex-grow px-3 py-2 text-left",
3414
- "data-cy": "ip-end-text-field",
3415
- name: "ipEnd",
3416
- placeholder: t("neetoMolecules.ipRestriction.ipEnd")
3417
- }), /*#__PURE__*/React.createElement("div", {
3418
- className: "w-5/12 flex-grow px-3 py-2 text-center"
3419
- }, /*#__PURE__*/React.createElement(Button, {
3420
- "data-cy": "save-changes-button",
3421
- icon: Check,
3422
- style: "text",
3423
- tooltipProps: {
3424
- content: "Submit",
3425
- position: "top"
3426
- },
3427
- type: "submit",
3428
- onClick: function onClick() {
3429
- return setIsSubmitted(true);
3430
- }
3431
- }), /*#__PURE__*/React.createElement(Button$1, {
3432
- "data-cy": "ip-cancel-button",
3433
- icon: Close,
3434
- style: "text",
3435
- type: "reset",
3436
- tooltipProps: {
3437
- content: t("neetoMolecules.common.actions.cancel"),
3438
- position: "top"
3439
- },
3440
- onClick: onCollapse
3441
- }))));
3398
+ }, function (_ref2) {
3399
+ var isSubmitting = _ref2.isSubmitting;
3400
+ return /*#__PURE__*/React.createElement("div", {
3401
+ className: "neeto-ui-bg-white flex w-full flex-row justify-between px-2 py-2"
3402
+ }, /*#__PURE__*/React.createElement(Input, {
3403
+ autoFocus: true,
3404
+ className: "w-5/12 flex-grow px-3 py-2 text-left",
3405
+ "data-cy": "ip-start-text-field",
3406
+ name: "ipStart",
3407
+ placeholder: t("neetoMolecules.ipRestriction.ipStart")
3408
+ }), /*#__PURE__*/React.createElement(Input, {
3409
+ className: "w-5/12 flex-grow px-3 py-2 text-left",
3410
+ "data-cy": "ip-end-text-field",
3411
+ name: "ipEnd",
3412
+ placeholder: t("neetoMolecules.ipRestriction.ipEnd")
3413
+ }), /*#__PURE__*/React.createElement("div", {
3414
+ className: "w-5/12 flex-grow px-3 py-2 text-center"
3415
+ }, /*#__PURE__*/React.createElement(Button, {
3416
+ "data-cy": "save-changes-button",
3417
+ disabled: isSubmitting,
3418
+ icon: Check,
3419
+ style: "text",
3420
+ tooltipProps: {
3421
+ content: "Submit",
3422
+ position: "top"
3423
+ },
3424
+ type: "submit"
3425
+ }), /*#__PURE__*/React.createElement(Button$1, {
3426
+ "data-cy": "ip-cancel-button",
3427
+ icon: Close,
3428
+ style: "text",
3429
+ type: "reset",
3430
+ tooltipProps: {
3431
+ content: t("neetoMolecules.common.actions.cancel"),
3432
+ position: "top"
3433
+ },
3434
+ onClick: onCollapse
3435
+ })));
3436
+ });
3442
3437
  };
3443
3438
 
3444
3439
  var Row = function Row(_ref) {