@blerp/design 1.0.52 → 1.0.53

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
@@ -88006,76 +88006,10 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
88006
88006
  };
88007
88007
 
88008
88008
  var _templateObject;
88009
- // import { ToastContext } from "../../theme/ToastProvider";
88010
88009
 
88011
88010
  var BrainTreeClient = require("braintree-web/client");
88012
88011
 
88013
- var DataCollector = require("braintree-web/data-collector"); // const GET_USER_SIGNED_IN = gql`
88014
- // query desktopGetUserSignedIn {
88015
- // desktop {
88016
- // userSignedIn {
88017
- // _id
88018
- // desktopSubscription {
88019
- // _id
88020
- // planId
88021
- // type
88022
- // }
88023
- // }
88024
- // }
88025
- // }
88026
- // `;
88027
- // const CREATE_PROMO = gql`
88028
- // mutation desktopCreatePromo(
88029
- // $planId: String!
88030
- // $userId: String!
88031
- // $discountId: String!
88032
- // ) {
88033
- // desktop {
88034
- // addSubscriptionPromoCode(
88035
- // planId: $planId
88036
- // userId: $userId
88037
- // discountId: $discountId
88038
- // ) {
88039
- // success
88040
- // }
88041
- // }
88042
- // }
88043
- // `;
88044
- // const CREATE_SUBSCRIPTION = gql`
88045
- // mutation desktopCreateSubscription(
88046
- // $paymentMethodNonce: String!
88047
- // $planId: String!
88048
- // $analytics: DesktopAnalyticsInput
88049
- // $promoCode: String
88050
- // ) {
88051
- // desktop {
88052
- // createSubscription(
88053
- // paymentMethodNonce: $paymentMethodNonce
88054
- // planId: $planId
88055
- // promoCode: $promoCode
88056
- // type: BLERP
88057
- // analytics: $analytics
88058
- // ) {
88059
- // subscription {
88060
- // _id
88061
- // planId
88062
- // externalId
88063
- // type
88064
- // status
88065
- // startDate
88066
- // endDate
88067
- // expireDate
88068
- // cancelDate
88069
- // plan {
88070
- // name
88071
- // type
88072
- // }
88073
- // }
88074
- // }
88075
- // }
88076
- // }
88077
- // `;
88078
-
88012
+ var DataCollector = require("braintree-web/data-collector");
88079
88013
 
88080
88014
  var DisabledContainer = styled__default['default'].div(_templateObject || (_templateObject = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n ", "\n"])), function (props) {
88081
88015
  return props.disabled && "\n pointer-events: none;\n opacity: 0.2;\n ";
@@ -88100,22 +88034,17 @@ var BraintreeUI = function BraintreeUI(_ref) {
88100
88034
  country = _useState2[0],
88101
88035
  setCountry = _useState2[1];
88102
88036
 
88103
- var _useState3 = React.useState(false),
88037
+ var _useState3 = React.useState(""),
88104
88038
  _useState4 = _slicedToArray__default['default'](_useState3, 2),
88105
- loading = _useState4[0],
88106
- setLoading = _useState4[1];
88039
+ postalCode = _useState4[0],
88040
+ setPostalCode = _useState4[1];
88107
88041
 
88108
88042
  var _useState5 = React.useState(""),
88109
88043
  _useState6 = _slicedToArray__default['default'](_useState5, 2),
88110
- postalCode = _useState6[0],
88111
- setPostalCode = _useState6[1];
88044
+ discountCodeInput = _useState6[0];
88045
+ _useState6[1];
88112
88046
 
88113
- var _useState7 = React.useState(""),
88114
- _useState8 = _slicedToArray__default['default'](_useState7, 2),
88115
- discountCodeInput = _useState8[0];
88116
- _useState8[1];
88117
-
88118
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, loading ? /*#__PURE__*/React__default['default'].createElement(NewLoadingBlob, null) : /*#__PURE__*/React__default['default'].createElement("form", {
88047
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("form", {
88119
88048
  id: "payment-form",
88120
88049
  noValidate: true,
88121
88050
  style: {
@@ -88192,9 +88121,7 @@ var BraintreeUI = function BraintreeUI(_ref) {
88192
88121
  // setBeetScreenState("LOADING");
88193
88122
  nonce = payload.nonce;
88194
88123
  deviceData = dataCollectorInstance.deviceData;
88195
- setLoading(true);
88196
- _context.next = 16;
88197
- return handleSubmit({
88124
+ handleSubmit({
88198
88125
  paymentMethodNonce: nonce,
88199
88126
  promoCode: discountCodeInput || null,
88200
88127
  analytics: null,
@@ -88203,24 +88130,20 @@ var BraintreeUI = function BraintreeUI(_ref) {
88203
88130
  country: country.value,
88204
88131
  postalCode: postalCode
88205
88132
  });
88206
-
88207
- case 16:
88208
- setLoading(false);
88209
- _context.next = 23;
88133
+ _context.next = 19;
88210
88134
  break;
88211
88135
 
88212
- case 19:
88213
- _context.prev = 19;
88136
+ case 16:
88137
+ _context.prev = 16;
88214
88138
  _context.t0 = _context["catch"](1);
88215
- setLoading(false);
88216
88139
  console.log(_context.t0);
88217
88140
 
88218
- case 23:
88141
+ case 19:
88219
88142
  case "end":
88220
88143
  return _context.stop();
88221
88144
  }
88222
88145
  }
88223
- }, _callee, null, [[1, 19]]);
88146
+ }, _callee, null, [[1, 16]]);
88224
88147
  }));
88225
88148
 
88226
88149
  return function (_x) {
package/dist/index.esm.js CHANGED
@@ -87939,76 +87939,10 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
87939
87939
  };
87940
87940
 
87941
87941
  var _templateObject;
87942
- // import { ToastContext } from "../../theme/ToastProvider";
87943
87942
 
87944
87943
  var BrainTreeClient = require("braintree-web/client");
87945
87944
 
87946
- var DataCollector = require("braintree-web/data-collector"); // const GET_USER_SIGNED_IN = gql`
87947
- // query desktopGetUserSignedIn {
87948
- // desktop {
87949
- // userSignedIn {
87950
- // _id
87951
- // desktopSubscription {
87952
- // _id
87953
- // planId
87954
- // type
87955
- // }
87956
- // }
87957
- // }
87958
- // }
87959
- // `;
87960
- // const CREATE_PROMO = gql`
87961
- // mutation desktopCreatePromo(
87962
- // $planId: String!
87963
- // $userId: String!
87964
- // $discountId: String!
87965
- // ) {
87966
- // desktop {
87967
- // addSubscriptionPromoCode(
87968
- // planId: $planId
87969
- // userId: $userId
87970
- // discountId: $discountId
87971
- // ) {
87972
- // success
87973
- // }
87974
- // }
87975
- // }
87976
- // `;
87977
- // const CREATE_SUBSCRIPTION = gql`
87978
- // mutation desktopCreateSubscription(
87979
- // $paymentMethodNonce: String!
87980
- // $planId: String!
87981
- // $analytics: DesktopAnalyticsInput
87982
- // $promoCode: String
87983
- // ) {
87984
- // desktop {
87985
- // createSubscription(
87986
- // paymentMethodNonce: $paymentMethodNonce
87987
- // planId: $planId
87988
- // promoCode: $promoCode
87989
- // type: BLERP
87990
- // analytics: $analytics
87991
- // ) {
87992
- // subscription {
87993
- // _id
87994
- // planId
87995
- // externalId
87996
- // type
87997
- // status
87998
- // startDate
87999
- // endDate
88000
- // expireDate
88001
- // cancelDate
88002
- // plan {
88003
- // name
88004
- // type
88005
- // }
88006
- // }
88007
- // }
88008
- // }
88009
- // }
88010
- // `;
88011
-
87945
+ var DataCollector = require("braintree-web/data-collector");
88012
87946
 
88013
87947
  var DisabledContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n ", "\n"])), function (props) {
88014
87948
  return props.disabled && "\n pointer-events: none;\n opacity: 0.2;\n ";
@@ -88033,22 +87967,17 @@ var BraintreeUI = function BraintreeUI(_ref) {
88033
87967
  country = _useState2[0],
88034
87968
  setCountry = _useState2[1];
88035
87969
 
88036
- var _useState3 = useState(false),
87970
+ var _useState3 = useState(""),
88037
87971
  _useState4 = _slicedToArray(_useState3, 2),
88038
- loading = _useState4[0],
88039
- setLoading = _useState4[1];
87972
+ postalCode = _useState4[0],
87973
+ setPostalCode = _useState4[1];
88040
87974
 
88041
87975
  var _useState5 = useState(""),
88042
87976
  _useState6 = _slicedToArray(_useState5, 2),
88043
- postalCode = _useState6[0],
88044
- setPostalCode = _useState6[1];
87977
+ discountCodeInput = _useState6[0];
87978
+ _useState6[1];
88045
87979
 
88046
- var _useState7 = useState(""),
88047
- _useState8 = _slicedToArray(_useState7, 2),
88048
- discountCodeInput = _useState8[0];
88049
- _useState8[1];
88050
-
88051
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading ? /*#__PURE__*/React__default.createElement(NewLoadingBlob, null) : /*#__PURE__*/React__default.createElement("form", {
87980
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
88052
87981
  id: "payment-form",
88053
87982
  noValidate: true,
88054
87983
  style: {
@@ -88125,9 +88054,7 @@ var BraintreeUI = function BraintreeUI(_ref) {
88125
88054
  // setBeetScreenState("LOADING");
88126
88055
  nonce = payload.nonce;
88127
88056
  deviceData = dataCollectorInstance.deviceData;
88128
- setLoading(true);
88129
- _context.next = 16;
88130
- return handleSubmit({
88057
+ handleSubmit({
88131
88058
  paymentMethodNonce: nonce,
88132
88059
  promoCode: discountCodeInput || null,
88133
88060
  analytics: null,
@@ -88136,24 +88063,20 @@ var BraintreeUI = function BraintreeUI(_ref) {
88136
88063
  country: country.value,
88137
88064
  postalCode: postalCode
88138
88065
  });
88139
-
88140
- case 16:
88141
- setLoading(false);
88142
- _context.next = 23;
88066
+ _context.next = 19;
88143
88067
  break;
88144
88068
 
88145
- case 19:
88146
- _context.prev = 19;
88069
+ case 16:
88070
+ _context.prev = 16;
88147
88071
  _context.t0 = _context["catch"](1);
88148
- setLoading(false);
88149
88072
  console.log(_context.t0);
88150
88073
 
88151
- case 23:
88074
+ case 19:
88152
88075
  case "end":
88153
88076
  return _context.stop();
88154
88077
  }
88155
88078
  }
88156
- }, _callee, null, [[1, 19]]);
88079
+ }, _callee, null, [[1, 16]]);
88157
88080
  }));
88158
88081
 
88159
88082
  return function (_x) {
package/dist/index.umd.js CHANGED
@@ -87960,76 +87960,10 @@
87960
87960
  };
87961
87961
 
87962
87962
  var _templateObject;
87963
- // import { ToastContext } from "../../theme/ToastProvider";
87964
87963
 
87965
87964
  var BrainTreeClient = require("braintree-web/client");
87966
87965
 
87967
- var DataCollector = require("braintree-web/data-collector"); // const GET_USER_SIGNED_IN = gql`
87968
- // query desktopGetUserSignedIn {
87969
- // desktop {
87970
- // userSignedIn {
87971
- // _id
87972
- // desktopSubscription {
87973
- // _id
87974
- // planId
87975
- // type
87976
- // }
87977
- // }
87978
- // }
87979
- // }
87980
- // `;
87981
- // const CREATE_PROMO = gql`
87982
- // mutation desktopCreatePromo(
87983
- // $planId: String!
87984
- // $userId: String!
87985
- // $discountId: String!
87986
- // ) {
87987
- // desktop {
87988
- // addSubscriptionPromoCode(
87989
- // planId: $planId
87990
- // userId: $userId
87991
- // discountId: $discountId
87992
- // ) {
87993
- // success
87994
- // }
87995
- // }
87996
- // }
87997
- // `;
87998
- // const CREATE_SUBSCRIPTION = gql`
87999
- // mutation desktopCreateSubscription(
88000
- // $paymentMethodNonce: String!
88001
- // $planId: String!
88002
- // $analytics: DesktopAnalyticsInput
88003
- // $promoCode: String
88004
- // ) {
88005
- // desktop {
88006
- // createSubscription(
88007
- // paymentMethodNonce: $paymentMethodNonce
88008
- // planId: $planId
88009
- // promoCode: $promoCode
88010
- // type: BLERP
88011
- // analytics: $analytics
88012
- // ) {
88013
- // subscription {
88014
- // _id
88015
- // planId
88016
- // externalId
88017
- // type
88018
- // status
88019
- // startDate
88020
- // endDate
88021
- // expireDate
88022
- // cancelDate
88023
- // plan {
88024
- // name
88025
- // type
88026
- // }
88027
- // }
88028
- // }
88029
- // }
88030
- // }
88031
- // `;
88032
-
87966
+ var DataCollector = require("braintree-web/data-collector");
88033
87967
 
88034
87968
  var DisabledContainer = styled__default['default'].div(_templateObject || (_templateObject = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n ", "\n"])), function (props) {
88035
87969
  return props.disabled && "\n pointer-events: none;\n opacity: 0.2;\n ";
@@ -88054,22 +87988,17 @@
88054
87988
  country = _useState2[0],
88055
87989
  setCountry = _useState2[1];
88056
87990
 
88057
- var _useState3 = React.useState(false),
87991
+ var _useState3 = React.useState(""),
88058
87992
  _useState4 = _slicedToArray__default['default'](_useState3, 2),
88059
- loading = _useState4[0],
88060
- setLoading = _useState4[1];
87993
+ postalCode = _useState4[0],
87994
+ setPostalCode = _useState4[1];
88061
87995
 
88062
87996
  var _useState5 = React.useState(""),
88063
87997
  _useState6 = _slicedToArray__default['default'](_useState5, 2),
88064
- postalCode = _useState6[0],
88065
- setPostalCode = _useState6[1];
87998
+ discountCodeInput = _useState6[0];
87999
+ _useState6[1];
88066
88000
 
88067
- var _useState7 = React.useState(""),
88068
- _useState8 = _slicedToArray__default['default'](_useState7, 2),
88069
- discountCodeInput = _useState8[0];
88070
- _useState8[1];
88071
-
88072
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, loading ? /*#__PURE__*/React__default['default'].createElement(NewLoadingBlob, null) : /*#__PURE__*/React__default['default'].createElement("form", {
88001
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("form", {
88073
88002
  id: "payment-form",
88074
88003
  noValidate: true,
88075
88004
  style: {
@@ -88146,9 +88075,7 @@
88146
88075
  // setBeetScreenState("LOADING");
88147
88076
  nonce = payload.nonce;
88148
88077
  deviceData = dataCollectorInstance.deviceData;
88149
- setLoading(true);
88150
- _context.next = 16;
88151
- return handleSubmit({
88078
+ handleSubmit({
88152
88079
  paymentMethodNonce: nonce,
88153
88080
  promoCode: discountCodeInput || null,
88154
88081
  analytics: null,
@@ -88157,24 +88084,20 @@
88157
88084
  country: country.value,
88158
88085
  postalCode: postalCode
88159
88086
  });
88160
-
88161
- case 16:
88162
- setLoading(false);
88163
- _context.next = 23;
88087
+ _context.next = 19;
88164
88088
  break;
88165
88089
 
88166
- case 19:
88167
- _context.prev = 19;
88090
+ case 16:
88091
+ _context.prev = 16;
88168
88092
  _context.t0 = _context["catch"](1);
88169
- setLoading(false);
88170
88093
  console.log(_context.t0);
88171
88094
 
88172
- case 23:
88095
+ case 19:
88173
88096
  case "end":
88174
88097
  return _context.stop();
88175
88098
  }
88176
88099
  }
88177
- }, _callee, null, [[1, 19]]);
88100
+ }, _callee, null, [[1, 16]]);
88178
88101
  }));
88179
88102
 
88180
88103
  return function (_x) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {