@blerp/design 1.2.53 → 1.2.54

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
@@ -89201,6 +89201,8 @@ var NewLoadingBlob = function NewLoadingBlob(props) {
89201
89201
  };
89202
89202
 
89203
89203
  var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89204
+ var _window;
89205
+
89204
89206
  var amount = _ref.amount,
89205
89207
  setSalesTax = _ref.setSalesTax,
89206
89208
  setTotal = _ref.setTotal,
@@ -89209,14 +89211,25 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89209
89211
  postalCode = _ref.postalCode,
89210
89212
  setPostalCode = _ref.setPostalCode;
89211
89213
  React.useEffect(function () {
89212
- var _window, _window$Quaderno;
89214
+ var scriptUrl = "https://js.quaderno.io/v4/";
89213
89215
 
89214
- (_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89215
- console.log("Quaderno.js successfully initialized");
89216
- }).catch(function (error) {
89217
- console.log(error.description, error.messages);
89218
- });
89216
+ if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
89217
+ var script = document.createElement("script");
89218
+ script.src = scriptUrl;
89219
+ document.head.appendChild(script);
89220
+ }
89219
89221
  }, []);
89222
+ React.useEffect(function () {
89223
+ if (window.Quaderno) {
89224
+ var _window$Quaderno;
89225
+
89226
+ (_window$Quaderno = window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89227
+ console.log("Quaderno.js successfully initialized");
89228
+ }).catch(function (error) {
89229
+ console.log(error.description, error.messages);
89230
+ });
89231
+ }
89232
+ }, [(_window = window) === null || _window === void 0 ? void 0 : _window.Quaderno]);
89220
89233
 
89221
89234
  var reloadTaxes = /*#__PURE__*/function () {
89222
89235
  var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
@@ -89235,7 +89248,6 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89235
89248
 
89236
89249
  case 4:
89237
89250
  taxObject = _context.sent;
89238
- console.log(taxObject);
89239
89251
  taxAmount = parseFloat(amount * (taxObject.rate / 100)).toFixed(2);
89240
89252
  totalAmount = (parseFloat(amount) + parseFloat(taxAmount)).toFixed(2);
89241
89253
  setSalesTax(taxAmount);
@@ -89246,7 +89258,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89246
89258
  // taxObject.name + " " + taxObject.rate + "%"; // ie.: VAT 20%
89247
89259
  // });
89248
89260
 
89249
- case 10:
89261
+ case 9:
89250
89262
  case "end":
89251
89263
  return _context.stop();
89252
89264
  }
@@ -89267,21 +89279,17 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89267
89279
  }, wait);
89268
89280
  }
89269
89281
 
89270
- return /*#__PURE__*/React__default['default'].createElement("form", {
89282
+ return /*#__PURE__*/React__default['default'].createElement(Stack, {
89271
89283
  id: "quaderno-payment-form",
89272
- style: {
89273
- width: "100%"
89274
- },
89275
- "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7"
89276
- }, /*#__PURE__*/React__default['default'].createElement(Stack, {
89284
+ "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7",
89277
89285
  direction: "row",
89278
89286
  justifyContent: "space-between",
89279
89287
  width: "90%",
89280
89288
  alignItems: "center",
89281
- margin: "0 auto 20px auto"
89289
+ margin: "10px auto"
89282
89290
  }, /*#__PURE__*/React__default['default'].createElement(Dropdown, {
89283
89291
  id: "country",
89284
- buttonTitle: country.name,
89292
+ buttonTitle: country === null || country === void 0 ? void 0 : country.name,
89285
89293
  buttonLabel: "Country",
89286
89294
  buttonStyle: {
89287
89295
  backgroundColor: "white.override",
@@ -90060,12 +90068,14 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90060
90068
  label: "Postal Code",
90061
90069
  size: "small",
90062
90070
  required: true,
90071
+ variant: "filled",
90072
+ color: "grey4",
90063
90073
  sx: {
90064
- backgroundColor: "white.override",
90065
90074
  width: "150px",
90066
- margin: "12px 16px",
90067
90075
  "& label": {
90068
- position: "absolute"
90076
+ color: "grey4.real",
90077
+ position: "absolute",
90078
+ "&:hover": {}
90069
90079
  }
90070
90080
  },
90071
90081
  onChange: function onChange(e) {
@@ -90077,7 +90087,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90077
90087
  }, 1500);
90078
90088
  setPostalCode(e.target.value);
90079
90089
  }
90080
- })));
90090
+ }));
90081
90091
  };
90082
90092
 
90083
90093
  var _templateObject;
@@ -90381,14 +90391,6 @@ var CheckoutModal = function CheckoutModal(_ref) {
90381
90391
  }();
90382
90392
 
90383
90393
  if (show) {
90384
- var scriptUrl = "https://js.quaderno.io/v4/";
90385
-
90386
- if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
90387
- var script = document.createElement("script");
90388
- script.src = scriptUrl;
90389
- document.head.appendChild(script);
90390
- }
90391
-
90392
90394
  createBraintreeDropIn();
90393
90395
  }
90394
90396
  }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
package/dist/index.esm.js CHANGED
@@ -89125,6 +89125,8 @@ var NewLoadingBlob = function NewLoadingBlob(props) {
89125
89125
  };
89126
89126
 
89127
89127
  var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89128
+ var _window;
89129
+
89128
89130
  var amount = _ref.amount,
89129
89131
  setSalesTax = _ref.setSalesTax,
89130
89132
  setTotal = _ref.setTotal,
@@ -89133,14 +89135,25 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89133
89135
  postalCode = _ref.postalCode,
89134
89136
  setPostalCode = _ref.setPostalCode;
89135
89137
  useEffect(function () {
89136
- var _window, _window$Quaderno;
89138
+ var scriptUrl = "https://js.quaderno.io/v4/";
89137
89139
 
89138
- (_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89139
- console.log("Quaderno.js successfully initialized");
89140
- }).catch(function (error) {
89141
- console.log(error.description, error.messages);
89142
- });
89140
+ if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
89141
+ var script = document.createElement("script");
89142
+ script.src = scriptUrl;
89143
+ document.head.appendChild(script);
89144
+ }
89143
89145
  }, []);
89146
+ useEffect(function () {
89147
+ if (window.Quaderno) {
89148
+ var _window$Quaderno;
89149
+
89150
+ (_window$Quaderno = window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89151
+ console.log("Quaderno.js successfully initialized");
89152
+ }).catch(function (error) {
89153
+ console.log(error.description, error.messages);
89154
+ });
89155
+ }
89156
+ }, [(_window = window) === null || _window === void 0 ? void 0 : _window.Quaderno]);
89144
89157
 
89145
89158
  var reloadTaxes = /*#__PURE__*/function () {
89146
89159
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
@@ -89159,7 +89172,6 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89159
89172
 
89160
89173
  case 4:
89161
89174
  taxObject = _context.sent;
89162
- console.log(taxObject);
89163
89175
  taxAmount = parseFloat(amount * (taxObject.rate / 100)).toFixed(2);
89164
89176
  totalAmount = (parseFloat(amount) + parseFloat(taxAmount)).toFixed(2);
89165
89177
  setSalesTax(taxAmount);
@@ -89170,7 +89182,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89170
89182
  // taxObject.name + " " + taxObject.rate + "%"; // ie.: VAT 20%
89171
89183
  // });
89172
89184
 
89173
- case 10:
89185
+ case 9:
89174
89186
  case "end":
89175
89187
  return _context.stop();
89176
89188
  }
@@ -89191,21 +89203,17 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89191
89203
  }, wait);
89192
89204
  }
89193
89205
 
89194
- return /*#__PURE__*/React__default.createElement("form", {
89206
+ return /*#__PURE__*/React__default.createElement(Stack, {
89195
89207
  id: "quaderno-payment-form",
89196
- style: {
89197
- width: "100%"
89198
- },
89199
- "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7"
89200
- }, /*#__PURE__*/React__default.createElement(Stack, {
89208
+ "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7",
89201
89209
  direction: "row",
89202
89210
  justifyContent: "space-between",
89203
89211
  width: "90%",
89204
89212
  alignItems: "center",
89205
- margin: "0 auto 20px auto"
89213
+ margin: "10px auto"
89206
89214
  }, /*#__PURE__*/React__default.createElement(Dropdown, {
89207
89215
  id: "country",
89208
- buttonTitle: country.name,
89216
+ buttonTitle: country === null || country === void 0 ? void 0 : country.name,
89209
89217
  buttonLabel: "Country",
89210
89218
  buttonStyle: {
89211
89219
  backgroundColor: "white.override",
@@ -89984,12 +89992,14 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89984
89992
  label: "Postal Code",
89985
89993
  size: "small",
89986
89994
  required: true,
89995
+ variant: "filled",
89996
+ color: "grey4",
89987
89997
  sx: {
89988
- backgroundColor: "white.override",
89989
89998
  width: "150px",
89990
- margin: "12px 16px",
89991
89999
  "& label": {
89992
- position: "absolute"
90000
+ color: "grey4.real",
90001
+ position: "absolute",
90002
+ "&:hover": {}
89993
90003
  }
89994
90004
  },
89995
90005
  onChange: function onChange(e) {
@@ -90001,7 +90011,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90001
90011
  }, 1500);
90002
90012
  setPostalCode(e.target.value);
90003
90013
  }
90004
- })));
90014
+ }));
90005
90015
  };
90006
90016
 
90007
90017
  var _templateObject;
@@ -90305,14 +90315,6 @@ var CheckoutModal = function CheckoutModal(_ref) {
90305
90315
  }();
90306
90316
 
90307
90317
  if (show) {
90308
- var scriptUrl = "https://js.quaderno.io/v4/";
90309
-
90310
- if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
90311
- var script = document.createElement("script");
90312
- script.src = scriptUrl;
90313
- document.head.appendChild(script);
90314
- }
90315
-
90316
90318
  createBraintreeDropIn();
90317
90319
  }
90318
90320
  }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
package/dist/index.umd.js CHANGED
@@ -89146,6 +89146,8 @@
89146
89146
  };
89147
89147
 
89148
89148
  var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89149
+ var _window;
89150
+
89149
89151
  var amount = _ref.amount,
89150
89152
  setSalesTax = _ref.setSalesTax,
89151
89153
  setTotal = _ref.setTotal,
@@ -89154,14 +89156,25 @@
89154
89156
  postalCode = _ref.postalCode,
89155
89157
  setPostalCode = _ref.setPostalCode;
89156
89158
  React.useEffect(function () {
89157
- var _window, _window$Quaderno;
89159
+ var scriptUrl = "https://js.quaderno.io/v4/";
89158
89160
 
89159
- (_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89160
- console.log("Quaderno.js successfully initialized");
89161
- }).catch(function (error) {
89162
- console.log(error.description, error.messages);
89163
- });
89161
+ if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
89162
+ var script = document.createElement("script");
89163
+ script.src = scriptUrl;
89164
+ document.head.appendChild(script);
89165
+ }
89164
89166
  }, []);
89167
+ React.useEffect(function () {
89168
+ if (window.Quaderno) {
89169
+ var _window$Quaderno;
89170
+
89171
+ (_window$Quaderno = window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89172
+ console.log("Quaderno.js successfully initialized");
89173
+ }).catch(function (error) {
89174
+ console.log(error.description, error.messages);
89175
+ });
89176
+ }
89177
+ }, [(_window = window) === null || _window === void 0 ? void 0 : _window.Quaderno]);
89165
89178
 
89166
89179
  var reloadTaxes = /*#__PURE__*/function () {
89167
89180
  var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
@@ -89180,7 +89193,6 @@
89180
89193
 
89181
89194
  case 4:
89182
89195
  taxObject = _context.sent;
89183
- console.log(taxObject);
89184
89196
  taxAmount = parseFloat(amount * (taxObject.rate / 100)).toFixed(2);
89185
89197
  totalAmount = (parseFloat(amount) + parseFloat(taxAmount)).toFixed(2);
89186
89198
  setSalesTax(taxAmount);
@@ -89191,7 +89203,7 @@
89191
89203
  // taxObject.name + " " + taxObject.rate + "%"; // ie.: VAT 20%
89192
89204
  // });
89193
89205
 
89194
- case 10:
89206
+ case 9:
89195
89207
  case "end":
89196
89208
  return _context.stop();
89197
89209
  }
@@ -89212,21 +89224,17 @@
89212
89224
  }, wait);
89213
89225
  }
89214
89226
 
89215
- return /*#__PURE__*/React__default['default'].createElement("form", {
89227
+ return /*#__PURE__*/React__default['default'].createElement(Stack, {
89216
89228
  id: "quaderno-payment-form",
89217
- style: {
89218
- width: "100%"
89219
- },
89220
- "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7"
89221
- }, /*#__PURE__*/React__default['default'].createElement(Stack, {
89229
+ "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7",
89222
89230
  direction: "row",
89223
89231
  justifyContent: "space-between",
89224
89232
  width: "90%",
89225
89233
  alignItems: "center",
89226
- margin: "0 auto 20px auto"
89234
+ margin: "10px auto"
89227
89235
  }, /*#__PURE__*/React__default['default'].createElement(Dropdown, {
89228
89236
  id: "country",
89229
- buttonTitle: country.name,
89237
+ buttonTitle: country === null || country === void 0 ? void 0 : country.name,
89230
89238
  buttonLabel: "Country",
89231
89239
  buttonStyle: {
89232
89240
  backgroundColor: "white.override",
@@ -90005,12 +90013,14 @@
90005
90013
  label: "Postal Code",
90006
90014
  size: "small",
90007
90015
  required: true,
90016
+ variant: "filled",
90017
+ color: "grey4",
90008
90018
  sx: {
90009
- backgroundColor: "white.override",
90010
90019
  width: "150px",
90011
- margin: "12px 16px",
90012
90020
  "& label": {
90013
- position: "absolute"
90021
+ color: "grey4.real",
90022
+ position: "absolute",
90023
+ "&:hover": {}
90014
90024
  }
90015
90025
  },
90016
90026
  onChange: function onChange(e) {
@@ -90022,7 +90032,7 @@
90022
90032
  }, 1500);
90023
90033
  setPostalCode(e.target.value);
90024
90034
  }
90025
- })));
90035
+ }));
90026
90036
  };
90027
90037
 
90028
90038
  var _templateObject;
@@ -90326,14 +90336,6 @@
90326
90336
  }();
90327
90337
 
90328
90338
  if (show) {
90329
- var scriptUrl = "https://js.quaderno.io/v4/";
90330
-
90331
- if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
90332
- var script = document.createElement("script");
90333
- script.src = scriptUrl;
90334
- document.head.appendChild(script);
90335
- }
90336
-
90337
90339
  createBraintreeDropIn();
90338
90340
  }
90339
90341
  }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {