@xylabs/sdk-react 2.7.6 → 2.7.7
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/components/AppBarEx/AppBarEx.stories.d.ts +2 -2
- package/dist/components/AppBarEx/AppBarEx.stories.d.ts.map +1 -1
- package/dist/components/AppBarEx/AppBarEx.stories.js +5 -5
- package/dist/components/AppBarEx/AppBarEx.stories.js.map +1 -1
- package/dist/components/BasePage/BasePage.stories.d.ts +1 -1
- package/dist/components/BasePage/BasePage.stories.d.ts.map +1 -1
- package/dist/components/BasePage/BasePage.stories.js +3 -2
- package/dist/components/BasePage/BasePage.stories.js.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsEx.stories.js.map +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js +1 -1
- package/dist/components/ButtonEx/ButtonEx.stories.js.map +1 -1
- package/dist/components/CookieConsent/CookieConsent.stories.js +1 -1
- package/dist/components/CookieConsent/CookieConsent.stories.js.map +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorViewer.stories.js.map +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js +1 -1
- package/dist/components/Errors/ErrorsViewer.stories.js.map +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js +1 -1
- package/dist/components/EthAccount/EthAccount.stories.js.map +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js +1 -1
- package/dist/components/FlexBox/BusyBox.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexCol.stories.js +1 -1
- package/dist/components/FlexBox/FlexCol.stories.js.map +1 -1
- package/dist/components/FlexBox/FlexRow.stories.js +1 -1
- package/dist/components/FlexBox/FlexRow.stories.js.map +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js +1 -1
- package/dist/components/InvertableThemeProvider/InvertableThemeProvider.stories.js.map +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js +1 -1
- package/dist/components/NumberStatus/NumberStatus.stories.js.map +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.stories.js +1 -1
- package/dist/components/QuickTipButton/QuickTipButton.stories.js.map +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js +1 -1
- package/dist/components/TokenAmount/TokenAmount.stories.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.d.ts +4 -4
- package/dist/components/dialogs/ErrorDialog.d.ts.map +1 -1
- package/dist/components/dialogs/ErrorDialog.js +21 -11
- package/dist/components/dialogs/ErrorDialog.js.map +1 -1
- package/dist/components/dialogs/ErrorDialog.stories.d.ts +7 -0
- package/dist/components/dialogs/ErrorDialog.stories.d.ts.map +1 -0
- package/dist/components/dialogs/ErrorDialog.stories.js +22 -0
- package/dist/components/dialogs/ErrorDialog.stories.js.map +1 -0
- package/dist/components/dialogs/MessageDialog.d.ts +2 -3
- package/dist/components/dialogs/MessageDialog.d.ts.map +1 -1
- package/dist/components/dialogs/MessageDialog.js +1 -2
- package/dist/components/dialogs/MessageDialog.js.map +1 -1
- package/dist/components/dialogs/MessageDialog.stories.d.ts +7 -0
- package/dist/components/dialogs/MessageDialog.stories.d.ts.map +1 -0
- package/dist/components/dialogs/MessageDialog.stories.js +22 -0
- package/dist/components/dialogs/MessageDialog.stories.js.map +1 -0
- package/package.json +2 -4
- package/src/components/AppBarEx/AppBarEx.stories.tsx +5 -5
- package/src/components/BasePage/BasePage.stories.tsx +3 -2
- package/src/components/Breadcrumbs/BreadcrumbsEx.stories.tsx +1 -1
- package/src/components/ButtonEx/ButtonEx.stories.tsx +1 -1
- package/src/components/CookieConsent/CookieConsent.stories.tsx +1 -1
- package/src/components/Errors/ErrorViewer.stories.tsx +1 -1
- package/src/components/Errors/ErrorsViewer.stories.tsx +1 -1
- package/src/components/EthAccount/EthAccount.stories.tsx +1 -1
- package/src/components/FlexBox/BusyBox.stories.tsx +1 -1
- package/src/components/FlexBox/FlexCol.stories.tsx +1 -1
- package/src/components/FlexBox/FlexRow.stories.tsx +1 -1
- package/src/components/InvertableThemeProvider/InvertableThemeProvider.stories.tsx +1 -1
- package/src/components/NumberStatus/NumberStatus.stories.tsx +1 -1
- package/src/components/QuickTipButton/QuickTipButton.stories.tsx +1 -1
- package/src/components/TokenAmount/TokenAmount.stories.tsx +1 -1
- package/src/components/dialogs/ErrorDialog.stories.tsx +27 -0
- package/src/components/dialogs/ErrorDialog.tsx +14 -14
- package/src/components/dialogs/MessageDialog.stories.tsx +27 -0
- package/src/components/dialogs/MessageDialog.tsx +2 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
3
|
declare const StorybookEntry: ComponentMeta<import("react").FC<import("./AppBarExProps").AppBarExProps>>;
|
|
4
|
-
declare const
|
|
5
|
-
export {
|
|
4
|
+
declare const Empty: ComponentStory<import("react").FC<import("./AppBarExProps").AppBarExProps>>;
|
|
5
|
+
export { Empty };
|
|
6
6
|
export default StorybookEntry;
|
|
7
7
|
//# sourceMappingURL=AppBarEx.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBarEx.stories.d.ts","sourceRoot":"","sources":["../../../src/components/AppBarEx/AppBarEx.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,4EASe,CAAA;AAInC,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"AppBarEx.stories.d.ts","sourceRoot":"","sources":["../../../src/components/AppBarEx/AppBarEx.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,4EASe,CAAA;AAInC,QAAA,MAAM,KAAK,6EAAoB,CAAA;AAK/B,OAAO,EAAE,KAAK,EAAE,CAAA;AAGhB,eAAe,cAAc,CAAA"}
|
|
@@ -8,14 +8,14 @@ const StorybookEntry = {
|
|
|
8
8
|
page: null,
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
|
-
title: 'AppBarEx',
|
|
11
|
+
title: 'Components/AppBarEx',
|
|
12
12
|
};
|
|
13
13
|
const Template = (args) => _jsx(AppBarEx, Object.assign({}, args), void 0);
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
title: '
|
|
14
|
+
const Empty = Template.bind({});
|
|
15
|
+
Empty.args = {
|
|
16
|
+
title: 'Empty',
|
|
17
17
|
};
|
|
18
|
-
export {
|
|
18
|
+
export { Empty };
|
|
19
19
|
// eslint-disable-next-line import/no-default-export
|
|
20
20
|
export default StorybookEntry;
|
|
21
21
|
//# sourceMappingURL=AppBarEx.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBarEx.stories.js","sourceRoot":"","sources":["../../../src/components/AppBarEx/AppBarEx.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AppBarEx.stories.js","sourceRoot":"","sources":["../../../src/components/AppBarEx/AppBarEx.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,qBAAqB;CACK,CAAA;AAEnC,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,QAAQ,oBAAK,IAAI,UAAa,CAAA;AAE3F,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC/B,KAAK,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,OAAO;CACf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -3,5 +3,5 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
|
3
3
|
declare const StorybookEntry: ComponentMeta<import("react").FC<import("./BasePageProps").BasePageProps>>;
|
|
4
4
|
declare const Default: ComponentStory<import("react").FC<import("./BasePageProps").BasePageProps>>;
|
|
5
5
|
export { Default };
|
|
6
|
-
export
|
|
6
|
+
export default StorybookEntry;
|
|
7
7
|
//# sourceMappingURL=BasePage.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePage.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BasePage/BasePage.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,4EASe,CAAA;AAInC,QAAA,MAAM,OAAO,6EAAoB,CAAA;AAKjC,OAAO,EAAE,OAAO,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"BasePage.stories.d.ts","sourceRoot":"","sources":["../../../src/components/BasePage/BasePage.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,4EASe,CAAA;AAInC,QAAA,MAAM,OAAO,6EAAoB,CAAA;AAKjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
|
@@ -8,7 +8,7 @@ const StorybookEntry = {
|
|
|
8
8
|
page: null,
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
|
-
title: 'BasePage',
|
|
11
|
+
title: 'Components/BasePage',
|
|
12
12
|
};
|
|
13
13
|
const Template = (args) => _jsx(BasePage, Object.assign({}, args), void 0);
|
|
14
14
|
const Default = Template.bind({});
|
|
@@ -16,5 +16,6 @@ Default.args = {
|
|
|
16
16
|
title: 'Default',
|
|
17
17
|
};
|
|
18
18
|
export { Default };
|
|
19
|
-
|
|
19
|
+
// eslint-disable-next-line import/no-default-export
|
|
20
|
+
export default StorybookEntry;
|
|
20
21
|
//# sourceMappingURL=BasePage.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasePage.stories.js","sourceRoot":"","sources":["../../../src/components/BasePage/BasePage.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"BasePage.stories.js","sourceRoot":"","sources":["../../../src/components/BasePage/BasePage.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,qBAAqB;CACK,CAAA;AAEnC,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,QAAQ,oBAAK,IAAI,UAAa,CAAA;AAE3F,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,SAAS;CACjB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -9,7 +9,7 @@ const StorybookEntry = {
|
|
|
9
9
|
page: null,
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
|
-
title: 'BreadcrumbsEx',
|
|
12
|
+
title: 'Components/BreadcrumbsEx',
|
|
13
13
|
};
|
|
14
14
|
const Template = (args) => (_jsx(BrowserRouter, { children: _jsx(BreadcrumbsEx, Object.assign({}, args), void 0) }, void 0));
|
|
15
15
|
const SingleLevel = Template.bind({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsEx.stories.js","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsEx.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"BreadcrumbsEx.stories.js","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsEx.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,0BAA0B;CACK,CAAA;AAExC,MAAM,QAAQ,GAAyC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC/D,KAAC,aAAa,cACZ,KAAC,aAAa,oBAAK,IAAI,UAAkB,WAC3B,CACjB,CAAA;AAED,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACrC,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,CAAC,MAAM,CAAC;CACjB,CAAA;AAED,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACrC,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AAEnC,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -9,7 +9,7 @@ const StorybookEntry = {
|
|
|
9
9
|
page: null,
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
|
-
title: 'ButtonEx',
|
|
12
|
+
title: 'Components/ButtonEx',
|
|
13
13
|
};
|
|
14
14
|
const DefaultTemplate = (args) => (_jsxs(FlexRow, Object.assign({ justifyContent: "flex-start" }, { children: [_jsx(FlexCol, Object.assign({ marginX: 1 }, { children: _jsx(ButtonEx, Object.assign({}, args, { children: "Default" }), void 0) }), void 0), _jsx(FlexCol, Object.assign({ marginX: 1 }, { children: _jsx(ButtonEx, Object.assign({ variant: "outlined" }, args, { children: "Outlined" }), void 0) }), void 0), _jsx(FlexCol, Object.assign({ marginX: 1 }, { children: _jsx(ButtonEx, Object.assign({ variant: "contained" }, args, { children: "Contained" }), void 0) }), void 0)] }), void 0));
|
|
15
15
|
const Default = DefaultTemplate.bind({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonEx.stories.js","sourceRoot":"","sources":["../../../src/components/ButtonEx/ButtonEx.stories.tsx"],"names":[],"mappings":";AAEA,O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AAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC7C,YAAY,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,CAAA;AAE3D,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA;AAC5C,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookieConsent.stories.js","sourceRoot":"","sources":["../../../src/components/CookieConsent/CookieConsent.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CookieConsent.stories.js","sourceRoot":"","sources":["../../../src/components/CookieConsent/CookieConsent.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,cAAc,GAAG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ors/ErrorViewer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ErrorViewer.stories.js","sourceRoot":"","sources":["../../../src/components/Errors/ErrorViewer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,wBAAwB;CACK,CAAA;AAEtC,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,WAAW,oBAAK,IAAI,UAAgB,CAAA;AAEpG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,SAAS;CACjB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsViewer.stories.js","sourceRoot":"","sources":["../../../src/components/Errors/ErrorsViewer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ErrorsViewer.stories.js","sourceRoot":"","sources":["../../../src/components/Errors/ErrorsViewer.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,yBAAyB;CACK,CAAA;AAEvC,MAAM,QAAQ,GAAwC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,YAAY,oBAAK,IAAI,UAAiB,CAAA;AAEvG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,MAAM,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAChD,KAAK,EAAE,SAAS;CACjB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthAccount.stories.js","sourceRoot":"","sources":["../../../src/components/EthAccount/EthAccount.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"EthAccount.stories.js","sourceRoot":"","sources":["../../../src/components/EthAccount/EthAccount.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,uBAAuB;CACK,CAAA;AAErC,MAAM,QAAQ,GAAsC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,UAAU,oBAAK,IAAI,UAAe,CAAA;AAEjG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAC5E,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusyBox.stories.js","sourceRoot":"","sources":["../../../src/components/FlexBox/BusyBox.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"BusyBox.stories.js","sourceRoot":"","sources":["../../../src/components/FlexBox/BusyBox.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAA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AC;IACV,KAAK,EAAE,GAAG;CACX,CAAA;AAED,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,IAAI;IACV,eAAe,EAAE;QACf,OAAO,EAAE,OAAO;KACjB;IACD,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,GAAG;CACX,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,CAAA;AAEzE,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlexCol.stories.js","sourceRoot":"","sources":["../../../src/components/FlexBox/FlexCol.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"FlexCol.stories.js","sourceRoot":"","sources":["../../../src/components/FlexBox/FlexCol.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,oBAAoB;CACK,CAAA;AAElC,MAAM,QAAQ,G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e,EAC/B,KAAK,EAAE,8BAA8B,GACtC,CAAA;AAED,MAAM,2BAA2B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACrD,2BAA2B,CAAC,IAAI,mCAC3B,WAAW,KACd,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,6BAA6B,GACrC,CAAA;AAED,MAAM,2BAA2B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACrD,2BAA2B,CAAC,IAAI,mCAC3B,WAAW,KACd,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,6BAA6B,GACrC,CAAA;AAED,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACnD,yBAAyB,CAAC,IAAI,mCACzB,WAAW,KACd,cAAc,EAAE,YAAY,EAC5B,KAAK,EAAE,2BAA2B,GACnC,CAAA;AAED,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjD,uBAAuB,CAAC,IAAI,mCACvB,WAAW,KACd,cAAc,EAAE,UAAU,EAC1B,KAAK,EAAE,yBAAyB,GACjC,CAAA;AAED,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,GAC5B,CAAA;AAED,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -8,7 +8,7 @@ const StorybookEntry = {
|
|
|
8
8
|
page: null,
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
|
-
title: 'InvertableThemeProvider',
|
|
11
|
+
title: 'Components/InvertableThemeProvider',
|
|
12
12
|
};
|
|
13
13
|
const Template = (args) => (_jsx(InvertableThemeProvider, Object.assign({}, args), void 0));
|
|
14
14
|
const Default = Template.bind({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvertableThemeProvider.stories.js","sourceRoot":"","sources":["../../../src/components/InvertableThemeProvider/InvertableThemeProvider.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,uBAAuB;IAClC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"InvertableThemeProvider.stories.js","sourceRoot":"","sources":["../../../src/components/InvertableThemeProvider/InvertableThemeProvider.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,uBAAuB;IAClC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,oCAAoC;CACK,CAAA;AAElD,MAAM,QAAQ,GAAmD,CAAC,IAAI,EAAE,EAAE,CAAC,CACzE,KAAC,uBAAuB,oBAAK,IAAI,UAA4B,CAC9D,CAAA;AAED,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAA;AAEjB,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberStatus.stories.js","sourceRoot":"","sources":["../../../src/components/NumberStatus/NumberStatus.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberStatus.stories.js","sourceRoot":"","sources":["../../../src/components/NumberStatus/NumberStatus.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,yBAAyB;CACK,CAAA;AAEvC,MAAM,oBAAoB,GAAwC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,YAAY,oBAAK,IAAI,UAAiB,CAAA;AAEnH,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC7C,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,GAAG;CACX,CAAA;AAED,MAAM,cAAc,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACpD,cAAc,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,MAAM;CACd,CAAA;AAED,MAAM,eAAe,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACrD,eAAe,CAAC,IAAI,GAAG;IACrB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;CACpB,CAAA;AAED,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,KAAK,CAAC,IAAI,GAAG;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,GAAG;CACX,CAAA;AAED,MAAM,YAAY,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAClD,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,MAAM;CACd,CAAA;AAED,MAAM,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACnD,aAAa,CAAC,IAAI,GAAG;IACnB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,YAAY;CACpB,CAAA;AAED,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,KAAK,CAAC,IAAI,GAAG;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,GAAG;CACX,CAAA;AAED,MAAM,YAAY,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAClD,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,MAAM;CACd,CAAA;AAED,MAAM,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACnD,aAAa,CAAC,IAAI,GAAG;IACnB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,YAAY;CACpB,CAAA;AAED,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,KAAK,EACL,YAAY,EACZ,aAAa,EACb,KAAK,EACL,YAAY,EACZ,aAAa,GACd,CAAA;AAED,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickTipButton.stories.js","sourceRoot":"","sources":["../../../src/components/QuickTipButton/QuickTipButton.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"QuickTipButton.stories.js","sourceRoot":"","sources":["../../../src/components/QuickTipButton/QuickTipButton.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,2BAA2B;CACK,CAAA;AAEzC,MAAM,QAAQ,GAA0C,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,cAAc,oBAAK,IAAI,UAAmB,CAAA;AAE7G,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,QAAQ,EAAE,KAAC,UAAU,mGAAsF;IAC3G,KAAK,EAAE,kBAAkB;CAC1B,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenAmount.stories.js","sourceRoot":"","sources":["../../../src/components/TokenAmount/TokenAmount.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TokenAmount.stories.js","sourceRoot":"","sources":["../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E,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA;AAEzD,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { DialogProps } from '@mui/material';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
interface
|
|
3
|
+
export interface ErrorDialogProps extends DialogProps {
|
|
3
4
|
error?: Error;
|
|
4
|
-
|
|
5
|
+
onAction?: (retry: boolean) => void;
|
|
5
6
|
title?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const ErrorDialog: React.FC<
|
|
8
|
-
export { ErrorDialog };
|
|
8
|
+
export declare const ErrorDialog: React.FC<ErrorDialogProps>;
|
|
9
9
|
//# sourceMappingURL=ErrorDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorDialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,WAAW,EAA2B,MAAM,eAAe,CAAA;AAE1G,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA+CD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAMlD,CAAA"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
13
|
import { Dialog, DialogActions, DialogContent, DialogTitle, Typography } from '@mui/material';
|
|
3
14
|
import { ButtonEx } from '../ButtonEx';
|
|
@@ -5,27 +16,26 @@ import { FlexRow } from '../FlexBox';
|
|
|
5
16
|
const toAxiosError = (error) => {
|
|
6
17
|
return error.isAxiosError ? error : undefined;
|
|
7
18
|
};
|
|
8
|
-
const ErrorDialogOpen = (
|
|
9
|
-
var
|
|
10
|
-
|
|
19
|
+
const ErrorDialogOpen = (_a) => {
|
|
20
|
+
var _b, _c;
|
|
21
|
+
var { onAction, title = 'Oops. Something went wrong.', error = Error('Unknown Error') } = _a, props = __rest(_a, ["onAction", "title", "error"]);
|
|
11
22
|
const onCloseClicked = () => {
|
|
12
|
-
|
|
23
|
+
onAction === null || onAction === void 0 ? void 0 : onAction(false);
|
|
13
24
|
};
|
|
14
25
|
const onRetryClicked = () => {
|
|
15
|
-
|
|
26
|
+
onAction === null || onAction === void 0 ? void 0 : onAction(true);
|
|
16
27
|
};
|
|
17
28
|
const axiosError = toAxiosError(error);
|
|
18
|
-
const message = (
|
|
19
|
-
return (_jsxs(Dialog, Object.assign({
|
|
29
|
+
const message = (_b = error.message) !== null && _b !== void 0 ? _b : error.toString();
|
|
30
|
+
return (_jsxs(Dialog, Object.assign({}, props, { children: [_jsx(DialogTitle, { children: title }, void 0), _jsx(DialogContent, { children: _jsx(FlexRow, { children: _jsx(Typography, Object.assign({ color: "error" }, { children: axiosError ? `${message} [${(_c = axiosError === null || axiosError === void 0 ? void 0 : axiosError.code) !== null && _c !== void 0 ? _c : 'Connection Failure'}]` : `${message}` }), void 0) }, void 0) }, void 0), _jsx(DialogActions, { children: _jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%", minWidth: "300px" }, { children: [_jsx(ButtonEx, Object.assign({ onClick: onCloseClicked, variant: "text" }, { children: "Close" }), void 0), _jsx(ButtonEx, Object.assign({ onClick: onRetryClicked, variant: "text" }, { children: "Retry" }), void 0)] }), void 0) }, void 0)] }), void 0));
|
|
20
31
|
};
|
|
21
|
-
const ErrorDialog = (
|
|
22
|
-
|
|
32
|
+
export const ErrorDialog = (_a) => {
|
|
33
|
+
var { open, error } = _a, props = __rest(_a, ["open", "error"]);
|
|
23
34
|
if (error) {
|
|
24
|
-
return _jsx(ErrorDialogOpen, Object.assign({}, props), void 0);
|
|
35
|
+
return _jsx(ErrorDialogOpen, Object.assign({ open: !!error || open, error: error }, props), void 0);
|
|
25
36
|
}
|
|
26
37
|
else {
|
|
27
38
|
return null;
|
|
28
39
|
}
|
|
29
40
|
};
|
|
30
|
-
export { ErrorDialog };
|
|
31
41
|
//# sourceMappingURL=ErrorDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAe,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1G,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAQpC,MAAM,YAAY,GAAG,CAAC,KAAY,EAAE,EAAE;IACpC,OAAQ,KAAoB,CAAC,YAAY,CAAC,CAAC,CAAE,KAA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CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAAyB,EAAE,EAAE;QAA7B,EAAE,IAAI,EAAE,KAAK,OAAY,EAAP,KAAK,cAAvB,iBAAyB,CAAF;IAC7E,IAAI,KAAK,EAAE;QACT,OAAO,KAAC,eAAe,kBAAC,IAAI,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,EAAE,KAAK,EAAE,KAAK,IAAM,KAAK,UAAI,CAAA;KAC3E;SAAM;QACL,OAAO,IAAI,CAAA;KACZ;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
declare const StorybookEntry: ComponentMeta<import("react").FC<import("./ErrorDialog").ErrorDialogProps>>;
|
|
4
|
+
declare const Default: ComponentStory<import("react").FC<import("./ErrorDialog").ErrorDialogProps>>;
|
|
5
|
+
export { Default };
|
|
6
|
+
export default StorybookEntry;
|
|
7
|
+
//# sourceMappingURL=ErrorDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,6EASkB,CAAA;AAItC,QAAA,MAAM,OAAO,8EAAoB,CAAA;AAMjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ErrorDialog } from './ErrorDialog';
|
|
3
|
+
const StorybookEntry = {
|
|
4
|
+
argTypes: {},
|
|
5
|
+
component: ErrorDialog,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
page: null,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
title: 'Dialogs/ErrorDialog',
|
|
12
|
+
};
|
|
13
|
+
const Template = (args) => _jsx(ErrorDialog, Object.assign({}, args), void 0);
|
|
14
|
+
const Default = Template.bind({});
|
|
15
|
+
Default.args = {
|
|
16
|
+
error: Error('Test Error'),
|
|
17
|
+
title: 'Test Error',
|
|
18
|
+
};
|
|
19
|
+
export { Default };
|
|
20
|
+
// eslint-disable-next-line import/no-default-export
|
|
21
|
+
export default StorybookEntry;
|
|
22
|
+
//# sourceMappingURL=ErrorDialog.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDialog.stories.js","sourceRoot":"","sources":["../../../src/components/dialogs/ErrorDialog.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,qBAAqB;CACQ,CAAA;AAEtC,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,WAAW,oBAAK,IAAI,UAAgB,CAAA;AAEpG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,KAAK,EAAE,YAAY;CACpB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DialogProps } from '@mui/material';
|
|
3
|
-
interface
|
|
3
|
+
export interface MessageDialogProps extends DialogProps {
|
|
4
4
|
onOk?: () => void;
|
|
5
5
|
onCancel?: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare const MessageDialog: React.FC<
|
|
8
|
-
export { MessageDialog };
|
|
7
|
+
export declare const MessageDialog: React.FC<MessageDialogProps>;
|
|
9
8
|
//# sourceMappingURL=MessageDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageDialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAAe,MAAM,eAAe,CAAA;AAItG,
|
|
1
|
+
{"version":3,"file":"MessageDialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgD,WAAW,EAAe,MAAM,eAAe,CAAA;AAItG,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmBtD,CAAA"}
|
|
@@ -12,9 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';
|
|
14
14
|
import { FlexCol, FlexRow } from '../FlexBox';
|
|
15
|
-
const MessageDialog = (_a) => {
|
|
15
|
+
export const MessageDialog = (_a) => {
|
|
16
16
|
var { onOk, onCancel, children, title } = _a, props = __rest(_a, ["onOk", "onCancel", "children", "title"]);
|
|
17
17
|
return (_jsxs(Dialog, Object.assign({}, props, { children: [_jsx(DialogTitle, { children: title }, void 0), _jsx(DialogContent, { children: _jsx(FlexCol, Object.assign({ alignItems: "stretch" }, { children: children }), void 0) }, void 0), _jsx(DialogActions, { children: _jsxs(FlexRow, Object.assign({ justifyContent: "space-between", width: "100%" }, { children: [_jsx(Button, Object.assign({ onClick: onCancel, variant: "text" }, { children: "Cancel" }), void 0), _jsx(Button, Object.assign({ onClick: onOk, variant: "text" }, { children: "Ok" }), void 0)] }), void 0) }, void 0)] }), void 0));
|
|
18
18
|
};
|
|
19
|
-
export { MessageDialog };
|
|
20
19
|
//# sourceMappingURL=MessageDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageDialog.js","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAe,WAAW,EAAE,MAAM,eAAe,CAAA;AAEtG,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAO7C,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"MessageDialog.js","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAe,WAAW,EAAE,MAAM,eAAe,CAAA;AAEtG,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAO7C,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAA6C,EAAE,EAAE;QAAjD,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,OAAY,EAAP,KAAK,cAA3C,yCAA6C,CAAF;IACrG,OAAO,CACL,MAAC,MAAM,oBAAK,KAAK,eACf,KAAC,WAAW,cAAE,KAAK,WAAe,EAClC,KAAC,aAAa,cACZ,KAAC,OAAO,kBAAC,UAAU,EAAC,SAAS,gBAAE,QAAQ,YAAW,WACpC,EAChB,KAAC,aAAa,cACZ,MAAC,OAAO,kBAAC,cAAc,EAAC,eAAe,EAAC,KAAK,EAAC,MAAM,iBAClD,KAAC,MAAM,kBAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAC,MAAM,oCAEhC,EACT,KAAC,MAAM,kBAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,gCAE5B,aACD,WACI,aACT,CACV,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
declare const StorybookEntry: ComponentMeta<import("react").FC<import("./MessageDialog").MessageDialogProps>>;
|
|
4
|
+
declare const Default: ComponentStory<import("react").FC<import("./MessageDialog").MessageDialogProps>>;
|
|
5
|
+
export { Default };
|
|
6
|
+
export default StorybookEntry;
|
|
7
|
+
//# sourceMappingURL=MessageDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageDialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIhE,QAAA,MAAM,cAAc,iFASoB,CAAA;AAIxC,QAAA,MAAM,OAAO,kFAAoB,CAAA;AAMjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MessageDialog } from './MessageDialog';
|
|
3
|
+
const StorybookEntry = {
|
|
4
|
+
argTypes: {},
|
|
5
|
+
component: MessageDialog,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
page: null,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
title: 'Dialogs/MessageDialog',
|
|
12
|
+
};
|
|
13
|
+
const Template = (args) => _jsx(MessageDialog, Object.assign({}, args, { children: "Test Message" }), void 0);
|
|
14
|
+
const Default = Template.bind({});
|
|
15
|
+
Default.args = {
|
|
16
|
+
open: true,
|
|
17
|
+
title: 'Test Error',
|
|
18
|
+
};
|
|
19
|
+
export { Default };
|
|
20
|
+
// eslint-disable-next-line import/no-default-export
|
|
21
|
+
export default StorybookEntry;
|
|
22
|
+
//# sourceMappingURL=MessageDialog.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageDialog.stories.js","sourceRoot":"","sources":["../../../src/components/dialogs/MessageDialog.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;IACD,KAAK,EAAE,uBAAuB;CACQ,CAAA;AAExC,MAAM,QAAQ,GAAyC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAC,aAAa,oBAAK,IAAI,wCAA8B,CAAA;AAEtH,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,YAAY;CACpB,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,oDAAoD;AACpD,eAAe,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -33,11 +33,9 @@
|
|
|
33
33
|
"@storybook/addon-docs": "^6.4.7",
|
|
34
34
|
"@storybook/addon-essentials": "^6.4.7",
|
|
35
35
|
"@storybook/addon-links": "^6.4.7",
|
|
36
|
-
"@storybook/addons": "^6.4.7",
|
|
37
36
|
"@storybook/components": "^6.4.7",
|
|
38
37
|
"@storybook/core-events": "^6.4.7",
|
|
39
38
|
"@storybook/react": "^6.4.7",
|
|
40
|
-
"@storybook/theming": "^6.4.7",
|
|
41
39
|
"@types/bn.js": "^5.1.0",
|
|
42
40
|
"@types/lodash": "^4.14.177",
|
|
43
41
|
"@types/md5": "^2.3.1",
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
"eslint-plugin-prettier": "^4.0.0",
|
|
55
53
|
"eslint-plugin-react": "^7.27.1",
|
|
56
54
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
57
|
-
"prettier": "^2.5.
|
|
55
|
+
"prettier": "^2.5.1",
|
|
58
56
|
"react": "^17.0.2",
|
|
59
57
|
"react-dom": "^17.0.2",
|
|
60
58
|
"react-router-dom": "^6",
|
|
@@ -110,5 +108,5 @@
|
|
|
110
108
|
"sideEffects": false,
|
|
111
109
|
"type": "module",
|
|
112
110
|
"types": "dist/index.d.ts",
|
|
113
|
-
"version": "2.7.
|
|
111
|
+
"version": "2.7.7"
|
|
114
112
|
}
|
|
@@ -10,17 +10,17 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'AppBarEx',
|
|
13
|
+
title: 'Components/AppBarEx',
|
|
14
14
|
} as ComponentMeta<typeof AppBarEx>
|
|
15
15
|
|
|
16
16
|
const Template: ComponentStory<typeof AppBarEx> = (args) => <AppBarEx {...args}></AppBarEx>
|
|
17
17
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
title: '
|
|
18
|
+
const Empty = Template.bind({})
|
|
19
|
+
Empty.args = {
|
|
20
|
+
title: 'Empty',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Empty }
|
|
24
24
|
|
|
25
25
|
// eslint-disable-next-line import/no-default-export
|
|
26
26
|
export default StorybookEntry
|
|
@@ -10,7 +10,7 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'BasePage',
|
|
13
|
+
title: 'Components/BasePage',
|
|
14
14
|
} as ComponentMeta<typeof BasePage>
|
|
15
15
|
|
|
16
16
|
const Template: ComponentStory<typeof BasePage> = (args) => <BasePage {...args}></BasePage>
|
|
@@ -22,4 +22,5 @@ Default.args = {
|
|
|
22
22
|
|
|
23
23
|
export { Default }
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
// eslint-disable-next-line import/no-default-export
|
|
26
|
+
export default StorybookEntry
|
|
@@ -10,7 +10,7 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'ErrorViewer',
|
|
13
|
+
title: 'Components/ErrorViewer',
|
|
14
14
|
} as ComponentMeta<typeof ErrorViewer>
|
|
15
15
|
|
|
16
16
|
const Template: ComponentStory<typeof ErrorViewer> = (args) => <ErrorViewer {...args}></ErrorViewer>
|
|
@@ -10,7 +10,7 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'ErrorsViewer',
|
|
13
|
+
title: 'Components/ErrorsViewer',
|
|
14
14
|
} as ComponentMeta<typeof ErrorsViewer>
|
|
15
15
|
|
|
16
16
|
const Template: ComponentStory<typeof ErrorsViewer> = (args) => <ErrorsViewer {...args}></ErrorsViewer>
|
|
@@ -10,7 +10,7 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'InvertableThemeProvider',
|
|
13
|
+
title: 'Components/InvertableThemeProvider',
|
|
14
14
|
} as ComponentMeta<typeof InvertableThemeProvider>
|
|
15
15
|
|
|
16
16
|
const Template: ComponentStory<typeof InvertableThemeProvider> = (args) => (
|
|
@@ -10,7 +10,7 @@ const StorybookEntry = {
|
|
|
10
10
|
page: null,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
-
title: 'NumberStatus',
|
|
13
|
+
title: 'Components/NumberStatus',
|
|
14
14
|
} as ComponentMeta<typeof NumberStatus>
|
|
15
15
|
|
|
16
16
|
const NumberStatusTemplate: ComponentStory<typeof NumberStatus> = (args) => <NumberStatus {...args}></NumberStatus>
|
|
@@ -11,7 +11,7 @@ const StorybookEntry = {
|
|
|
11
11
|
page: null,
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
-
title: 'QuickTipButton',
|
|
14
|
+
title: 'Components/QuickTipButton',
|
|
15
15
|
} as ComponentMeta<typeof QuickTipButton>
|
|
16
16
|
|
|
17
17
|
const Template: ComponentStory<typeof QuickTipButton> = (args) => <QuickTipButton {...args}></QuickTipButton>
|
|
@@ -11,7 +11,7 @@ const StorybookEntry = {
|
|
|
11
11
|
page: null,
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
-
title: 'TokenAmount',
|
|
14
|
+
title: 'Components/TokenAmount',
|
|
15
15
|
} as ComponentMeta<typeof TokenAmount>
|
|
16
16
|
|
|
17
17
|
const Template: ComponentStory<typeof TokenAmount> = (args) => <TokenAmount {...args}></TokenAmount>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { ErrorDialog } from './ErrorDialog'
|
|
4
|
+
|
|
5
|
+
const StorybookEntry = {
|
|
6
|
+
argTypes: {},
|
|
7
|
+
component: ErrorDialog,
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
page: null,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
title: 'Dialogs/ErrorDialog',
|
|
14
|
+
} as ComponentMeta<typeof ErrorDialog>
|
|
15
|
+
|
|
16
|
+
const Template: ComponentStory<typeof ErrorDialog> = (args) => <ErrorDialog {...args}></ErrorDialog>
|
|
17
|
+
|
|
18
|
+
const Default = Template.bind({})
|
|
19
|
+
Default.args = {
|
|
20
|
+
error: Error('Test Error'),
|
|
21
|
+
title: 'Test Error',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Default }
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line import/no-default-export
|
|
27
|
+
export default StorybookEntry
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Dialog, DialogActions, DialogContent, DialogTitle, Typography } from '@mui/material'
|
|
1
|
+
import { Dialog, DialogActions, DialogContent, DialogProps, DialogTitle, Typography } from '@mui/material'
|
|
2
2
|
import { AxiosError } from 'axios'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
5
|
import { ButtonEx } from '../ButtonEx'
|
|
6
6
|
import { FlexRow } from '../FlexBox'
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
export interface ErrorDialogProps extends DialogProps {
|
|
9
9
|
error?: Error
|
|
10
|
-
|
|
10
|
+
onAction?: (retry: boolean) => void
|
|
11
11
|
title?: string
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -15,22 +15,25 @@ const toAxiosError = (error: Error) => {
|
|
|
15
15
|
return (error as AxiosError).isAxiosError ? (error as AxiosError) : undefined
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const ErrorDialogOpen: React.FC<
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const ErrorDialogOpen: React.FC<ErrorDialogProps> = ({
|
|
19
|
+
onAction,
|
|
20
|
+
title = 'Oops. Something went wrong.',
|
|
21
|
+
error = Error('Unknown Error'),
|
|
22
|
+
...props
|
|
23
|
+
}) => {
|
|
21
24
|
const onCloseClicked = () => {
|
|
22
|
-
|
|
25
|
+
onAction?.(false)
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
const onRetryClicked = () => {
|
|
26
|
-
|
|
29
|
+
onAction?.(true)
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
const axiosError = toAxiosError(error)
|
|
30
33
|
const message = error.message ?? error.toString()
|
|
31
34
|
|
|
32
35
|
return (
|
|
33
|
-
<Dialog
|
|
36
|
+
<Dialog {...props}>
|
|
34
37
|
<DialogTitle>{title}</DialogTitle>
|
|
35
38
|
<DialogContent>
|
|
36
39
|
<FlexRow>
|
|
@@ -53,13 +56,10 @@ const ErrorDialogOpen: React.FC<Props> = (props) => {
|
|
|
53
56
|
)
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
const ErrorDialog: React.FC<
|
|
57
|
-
const { error } = props
|
|
59
|
+
export const ErrorDialog: React.FC<ErrorDialogProps> = ({ open, error, ...props }) => {
|
|
58
60
|
if (error) {
|
|
59
|
-
return <ErrorDialogOpen {...props} />
|
|
61
|
+
return <ErrorDialogOpen open={!!error || open} error={error} {...props} />
|
|
60
62
|
} else {
|
|
61
63
|
return null
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
|
-
|
|
65
|
-
export { ErrorDialog }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { MessageDialog } from './MessageDialog'
|
|
4
|
+
|
|
5
|
+
const StorybookEntry = {
|
|
6
|
+
argTypes: {},
|
|
7
|
+
component: MessageDialog,
|
|
8
|
+
parameters: {
|
|
9
|
+
docs: {
|
|
10
|
+
page: null,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
title: 'Dialogs/MessageDialog',
|
|
14
|
+
} as ComponentMeta<typeof MessageDialog>
|
|
15
|
+
|
|
16
|
+
const Template: ComponentStory<typeof MessageDialog> = (args) => <MessageDialog {...args}>Test Message</MessageDialog>
|
|
17
|
+
|
|
18
|
+
const Default = Template.bind({})
|
|
19
|
+
Default.args = {
|
|
20
|
+
open: true,
|
|
21
|
+
title: 'Test Error',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Default }
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line import/no-default-export
|
|
27
|
+
export default StorybookEntry
|
|
@@ -2,12 +2,12 @@ import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle
|
|
|
2
2
|
|
|
3
3
|
import { FlexCol, FlexRow } from '../FlexBox'
|
|
4
4
|
|
|
5
|
-
interface
|
|
5
|
+
export interface MessageDialogProps extends DialogProps {
|
|
6
6
|
onOk?: () => void
|
|
7
7
|
onCancel?: () => void
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const MessageDialog: React.FC<
|
|
10
|
+
export const MessageDialog: React.FC<MessageDialogProps> = ({ onOk, onCancel, children, title, ...props }) => {
|
|
11
11
|
return (
|
|
12
12
|
<Dialog {...props}>
|
|
13
13
|
<DialogTitle>{title}</DialogTitle>
|
|
@@ -27,5 +27,3 @@ const MessageDialog: React.FC<Props> = ({ onOk, onCancel, children, title, ...pr
|
|
|
27
27
|
</Dialog>
|
|
28
28
|
)
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export { MessageDialog }
|