@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.d.ts +7 -6
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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[
|
|
25230
|
-
EBillingError[
|
|
25231
|
-
EBillingError[
|
|
25232
|
-
EBillingError[
|
|
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) {
|