@kittycad/react-shared 0.1.5 → 0.1.6

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.js CHANGED
@@ -21875,9 +21875,9 @@ const ErrorMsg = (props) => {
21875
21875
  fill: fadedFg,
21876
21876
  backgroundColor: fadedBg,
21877
21877
  };
21878
- return (jsxRuntime.jsxs("div", { onMouseEnter: () => setShowMessage(true), onMouseLeave: () => setShowMessage(false), children: [showMessage && (jsxRuntime.jsx("div", { style: {
21878
+ return (jsxRuntime.jsxs("div", { onMouseEnter: () => setShowMessage(true), onMouseLeave: () => setShowMessage(false), children: [showMessage && (jsxRuntime.jsx("div", { "data-testid": "billing-remaining-error-message", style: {
21879
21879
  position: 'absolute',
21880
- }, children: jsxRuntime.jsx("div", { className: "rounded p-1", style: { ...colors, position: 'relative', top: -32 }, children: props.error.toString() }) })), jsxRuntime.jsx("div", { className: "rounded", style: colors, children: jsxRuntime.jsx(CustomIcon, { name: "exclamationMark", className: "w-5 h-5" }) })] }));
21880
+ }, children: jsxRuntime.jsxs("div", { className: "rounded p-1", style: { ...colors, position: 'relative', top: -32 }, children: ["Error fetching billing: ", props.error.error.type] }) })), jsxRuntime.jsx("div", { "data-testid": "billing-remaining-error-indicator", className: "rounded", style: colors, children: jsxRuntime.jsx(CustomIcon, { name: "exclamationMark", className: "w-5 h-5" }) })] }));
21881
21881
  };
21882
21882
  const ProgressBar = (props) => {
21883
21883
  const ratio = props.value / props.max;
@@ -25226,10 +25226,10 @@ try{if("undefined"==typeof fetch&&"undefined"!=typeof process&&process.versions?
25226
25226
  */
25227
25227
  var EBillingError;
25228
25228
  (function (EBillingError) {
25229
- EBillingError[EBillingError["NotOk"] = 0] = "NotOk";
25230
- EBillingError[EBillingError["UnexpectedStatus"] = 1] = "UnexpectedStatus";
25231
- EBillingError[EBillingError["CatastrophicRequest"] = 2] = "CatastrophicRequest";
25232
- EBillingError[EBillingError["JSONParse"] = 3] = "JSONParse";
25229
+ EBillingError["NotOk"] = "NotOk";
25230
+ EBillingError["UnexpectedStatus"] = "UnexpectedStatus";
25231
+ EBillingError["CatastrophicRequest"] = "CatastrophicRequest";
25232
+ EBillingError["JSONParse"] = "JSONParse";
25233
25233
  })(EBillingError || (EBillingError = {}));
25234
25234
  class BillingError {
25235
25235
  constructor(error) {