@blerp/design 1.0.87 → 1.0.90

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/index.cjs.js CHANGED
@@ -3594,7 +3594,8 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3594
3594
  deleteCollectionModal = _ref.deleteCollectionModal,
3595
3595
  trigger = _ref.trigger,
3596
3596
  collectionToBeEdited = _ref.collectionToBeEdited,
3597
- handleChangePremium = _ref.handleChangePremium;
3597
+ handleChangePremium = _ref.handleChangePremium,
3598
+ onClose = _ref.onClose;
3598
3599
  _ref.children;
3599
3600
  var isAdmin = _ref.isAdmin;
3600
3601
 
@@ -3646,6 +3647,15 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3646
3647
  _useState18[1];
3647
3648
 
3648
3649
  var size = useWindowSize();
3650
+
3651
+ var handleClose = function handleClose() {
3652
+ setopen(false);
3653
+
3654
+ if (onClose) {
3655
+ onClose();
3656
+ }
3657
+ };
3658
+
3649
3659
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, trigger ? /*#__PURE__*/React.cloneElement(trigger, {
3650
3660
  ref: triggerRef,
3651
3661
  onClick: function onClick() {
@@ -3664,7 +3674,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3664
3674
  "aria-describedby": "transition-modal-description",
3665
3675
  open: open,
3666
3676
  onClose: function onClose() {
3667
- return setopen(false);
3677
+ return handleClose();
3668
3678
  },
3669
3679
  closeAfterTransition: true
3670
3680
  }, /*#__PURE__*/React__default['default'].createElement(Stack, {
@@ -3748,7 +3758,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3748
3758
  }
3749
3759
  },
3750
3760
  onClick: function onClick() {
3751
- return setopen(false);
3761
+ return handleClose();
3752
3762
  }
3753
3763
  }), /*#__PURE__*/React__default['default'].createElement(Stack, {
3754
3764
  sx: {
@@ -3970,7 +3980,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3970
3980
  visibility: visibility,
3971
3981
  price: price
3972
3982
  });
3973
- setopen(false);
3983
+ handleClose();
3974
3984
  } else {
3975
3985
  console.log("price must be set higher than 0");
3976
3986
  } // what to do if this modal is being used to create a new collection
@@ -3984,7 +3994,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3984
3994
  visibility: visibility,
3985
3995
  price: collectionToBeEdited !== null && collectionToBeEdited !== void 0 && collectionToBeEdited.isPremium ? price : 0
3986
3996
  });
3987
- setopen(false);
3997
+ handleClose();
3988
3998
  } else {
3989
3999
  console.log("price must be set higher than 0");
3990
4000
  }
@@ -3999,7 +4009,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3999
4009
  margin: "10px auto"
4000
4010
  },
4001
4011
  onClick: function onClick() {
4002
- setopen(false);
4012
+ handleClose();
4003
4013
  }
4004
4014
  }, "Cancel"), /*#__PURE__*/React__default['default'].createElement(Text, {
4005
4015
  fontSize: "14px",
@@ -88437,6 +88447,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
88437
88447
  sx: {
88438
88448
  backgroundColor: "white.override",
88439
88449
  width: "150px",
88450
+ margin: "12px 16px",
88440
88451
  "& label": {
88441
88452
  position: "absolute"
88442
88453
  }
@@ -88504,7 +88515,7 @@ var BraintreeUI = function BraintreeUI(_ref) {
88504
88515
  alignSelf: "start",
88505
88516
  fontSize: "20px",
88506
88517
  width: "90%",
88507
- margin: "10px auto 0 auto"
88518
+ margin: "20px 12px 12px"
88508
88519
  }, "Billing Address"), /*#__PURE__*/React__default['default'].createElement(QuadernoTaxCalc, {
88509
88520
  amount: price,
88510
88521
  setTotal: setTotal,
@@ -88533,7 +88544,8 @@ var BraintreeUI = function BraintreeUI(_ref) {
88533
88544
  variant: "contained",
88534
88545
  disabled: postalCode === "" ? true : false,
88535
88546
  sx: {
88536
- marginBottom: "15px"
88547
+ marginBottom: "15px",
88548
+ marginTop: "6px"
88537
88549
  },
88538
88550
  onClick: /*#__PURE__*/function () {
88539
88551
  var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(event) {
package/dist/index.esm.js CHANGED
@@ -3525,7 +3525,8 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3525
3525
  deleteCollectionModal = _ref.deleteCollectionModal,
3526
3526
  trigger = _ref.trigger,
3527
3527
  collectionToBeEdited = _ref.collectionToBeEdited,
3528
- handleChangePremium = _ref.handleChangePremium;
3528
+ handleChangePremium = _ref.handleChangePremium,
3529
+ onClose = _ref.onClose;
3529
3530
  _ref.children;
3530
3531
  var isAdmin = _ref.isAdmin;
3531
3532
 
@@ -3577,6 +3578,15 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3577
3578
  _useState18[1];
3578
3579
 
3579
3580
  var size = useWindowSize();
3581
+
3582
+ var handleClose = function handleClose() {
3583
+ setopen(false);
3584
+
3585
+ if (onClose) {
3586
+ onClose();
3587
+ }
3588
+ };
3589
+
3580
3590
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, trigger ? /*#__PURE__*/cloneElement(trigger, {
3581
3591
  ref: triggerRef,
3582
3592
  onClick: function onClick() {
@@ -3595,7 +3605,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3595
3605
  "aria-describedby": "transition-modal-description",
3596
3606
  open: open,
3597
3607
  onClose: function onClose() {
3598
- return setopen(false);
3608
+ return handleClose();
3599
3609
  },
3600
3610
  closeAfterTransition: true
3601
3611
  }, /*#__PURE__*/React__default.createElement(Stack, {
@@ -3679,7 +3689,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3679
3689
  }
3680
3690
  },
3681
3691
  onClick: function onClick() {
3682
- return setopen(false);
3692
+ return handleClose();
3683
3693
  }
3684
3694
  }), /*#__PURE__*/React__default.createElement(Stack, {
3685
3695
  sx: {
@@ -3901,7 +3911,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3901
3911
  visibility: visibility,
3902
3912
  price: price
3903
3913
  });
3904
- setopen(false);
3914
+ handleClose();
3905
3915
  } else {
3906
3916
  console.log("price must be set higher than 0");
3907
3917
  } // what to do if this modal is being used to create a new collection
@@ -3915,7 +3925,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3915
3925
  visibility: visibility,
3916
3926
  price: collectionToBeEdited !== null && collectionToBeEdited !== void 0 && collectionToBeEdited.isPremium ? price : 0
3917
3927
  });
3918
- setopen(false);
3928
+ handleClose();
3919
3929
  } else {
3920
3930
  console.log("price must be set higher than 0");
3921
3931
  }
@@ -3930,7 +3940,7 @@ var NewCollectionModal$1 = function NewCollectionModal(_ref) {
3930
3940
  margin: "10px auto"
3931
3941
  },
3932
3942
  onClick: function onClick() {
3933
- setopen(false);
3943
+ handleClose();
3934
3944
  }
3935
3945
  }, "Cancel"), /*#__PURE__*/React__default.createElement(Text, {
3936
3946
  fontSize: "14px",
@@ -88368,6 +88378,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
88368
88378
  sx: {
88369
88379
  backgroundColor: "white.override",
88370
88380
  width: "150px",
88381
+ margin: "12px 16px",
88371
88382
  "& label": {
88372
88383
  position: "absolute"
88373
88384
  }
@@ -88435,7 +88446,7 @@ var BraintreeUI = function BraintreeUI(_ref) {
88435
88446
  alignSelf: "start",
88436
88447
  fontSize: "20px",
88437
88448
  width: "90%",
88438
- margin: "10px auto 0 auto"
88449
+ margin: "20px 12px 12px"
88439
88450
  }, "Billing Address"), /*#__PURE__*/React__default.createElement(QuadernoTaxCalc, {
88440
88451
  amount: price,
88441
88452
  setTotal: setTotal,
@@ -88464,7 +88475,8 @@ var BraintreeUI = function BraintreeUI(_ref) {
88464
88475
  variant: "contained",
88465
88476
  disabled: postalCode === "" ? true : false,
88466
88477
  sx: {
88467
- marginBottom: "15px"
88478
+ marginBottom: "15px",
88479
+ marginTop: "6px"
88468
88480
  },
88469
88481
  onClick: /*#__PURE__*/function () {
88470
88482
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
package/dist/index.umd.js CHANGED
@@ -3546,7 +3546,8 @@
3546
3546
  deleteCollectionModal = _ref.deleteCollectionModal,
3547
3547
  trigger = _ref.trigger,
3548
3548
  collectionToBeEdited = _ref.collectionToBeEdited,
3549
- handleChangePremium = _ref.handleChangePremium;
3549
+ handleChangePremium = _ref.handleChangePremium,
3550
+ onClose = _ref.onClose;
3550
3551
  _ref.children;
3551
3552
  var isAdmin = _ref.isAdmin;
3552
3553
 
@@ -3598,6 +3599,15 @@
3598
3599
  _useState18[1];
3599
3600
 
3600
3601
  var size = useWindowSize();
3602
+
3603
+ var handleClose = function handleClose() {
3604
+ setopen(false);
3605
+
3606
+ if (onClose) {
3607
+ onClose();
3608
+ }
3609
+ };
3610
+
3601
3611
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, trigger ? /*#__PURE__*/React.cloneElement(trigger, {
3602
3612
  ref: triggerRef,
3603
3613
  onClick: function onClick() {
@@ -3616,7 +3626,7 @@
3616
3626
  "aria-describedby": "transition-modal-description",
3617
3627
  open: open,
3618
3628
  onClose: function onClose() {
3619
- return setopen(false);
3629
+ return handleClose();
3620
3630
  },
3621
3631
  closeAfterTransition: true
3622
3632
  }, /*#__PURE__*/React__default['default'].createElement(Stack, {
@@ -3700,7 +3710,7 @@
3700
3710
  }
3701
3711
  },
3702
3712
  onClick: function onClick() {
3703
- return setopen(false);
3713
+ return handleClose();
3704
3714
  }
3705
3715
  }), /*#__PURE__*/React__default['default'].createElement(Stack, {
3706
3716
  sx: {
@@ -3922,7 +3932,7 @@
3922
3932
  visibility: visibility,
3923
3933
  price: price
3924
3934
  });
3925
- setopen(false);
3935
+ handleClose();
3926
3936
  } else {
3927
3937
  console.log("price must be set higher than 0");
3928
3938
  } // what to do if this modal is being used to create a new collection
@@ -3936,7 +3946,7 @@
3936
3946
  visibility: visibility,
3937
3947
  price: collectionToBeEdited !== null && collectionToBeEdited !== void 0 && collectionToBeEdited.isPremium ? price : 0
3938
3948
  });
3939
- setopen(false);
3949
+ handleClose();
3940
3950
  } else {
3941
3951
  console.log("price must be set higher than 0");
3942
3952
  }
@@ -3951,7 +3961,7 @@
3951
3961
  margin: "10px auto"
3952
3962
  },
3953
3963
  onClick: function onClick() {
3954
- setopen(false);
3964
+ handleClose();
3955
3965
  }
3956
3966
  }, "Cancel"), /*#__PURE__*/React__default['default'].createElement(Text, {
3957
3967
  fontSize: "14px",
@@ -88389,6 +88399,7 @@
88389
88399
  sx: {
88390
88400
  backgroundColor: "white.override",
88391
88401
  width: "150px",
88402
+ margin: "12px 16px",
88392
88403
  "& label": {
88393
88404
  position: "absolute"
88394
88405
  }
@@ -88456,7 +88467,7 @@
88456
88467
  alignSelf: "start",
88457
88468
  fontSize: "20px",
88458
88469
  width: "90%",
88459
- margin: "10px auto 0 auto"
88470
+ margin: "20px 12px 12px"
88460
88471
  }, "Billing Address"), /*#__PURE__*/React__default['default'].createElement(QuadernoTaxCalc, {
88461
88472
  amount: price,
88462
88473
  setTotal: setTotal,
@@ -88485,7 +88496,8 @@
88485
88496
  variant: "contained",
88486
88497
  disabled: postalCode === "" ? true : false,
88487
88498
  sx: {
88488
- marginBottom: "15px"
88499
+ marginBottom: "15px",
88500
+ marginTop: "6px"
88489
88501
  },
88490
88502
  onClick: /*#__PURE__*/function () {
88491
88503
  var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.0.87",
3
+ "version": "1.0.90",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {