@xylabs/sdk-react 2.12.6 → 2.12.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.
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorsViewer = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const Replay_1 = tslib_1.__importDefault(require("@mui/icons-material/Replay"));
6
7
  const material_1 = require("@mui/material");
7
- const ai_1 = require("react-icons/ai");
8
8
  const FlexBox_1 = require("../FlexBox");
9
9
  const ErrorViewer_1 = require("./ErrorViewer");
10
10
  const ErrorsViewer = (props) => {
11
11
  const { onRetry, errors } = props, boxProps = tslib_1.__rest(props, ["onRetry", "errors"]);
12
12
  return ((0, jsx_runtime_1.jsxs)(FlexBox_1.FlexGrowCol, Object.assign({ padding: 1 }, boxProps, { children: [errors === null || errors === void 0 ? void 0 : errors.map((error, index) => {
13
13
  return (0, jsx_runtime_1.jsx)(ErrorViewer_1.ErrorViewer, { error: error }, index);
14
- }), onRetry ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onRetry }, { children: (0, jsx_runtime_1.jsx)(ai_1.AiOutlineReload, {}) }))) : null] })));
14
+ }), onRetry ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onRetry }, { children: (0, jsx_runtime_1.jsx)(Replay_1.default, {}) }))) : null] })));
15
15
  };
16
16
  exports.ErrorsViewer = ErrorsViewer;
17
17
  //# sourceMappingURL=ErrorsViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorsViewer.js","sourceRoot":"","sources":["../../../../src/components/Errors/ErrorsViewer.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA0C;AAE1C,uCAAgD;AAEhD,wCAAwC;AAExC,+CAA2C;AAE3C,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,EAAE,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AI,KACI,CACf,CAAA;AACH,CAAC,CAAA;AAEQ,oCAAY"}
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconButtonProps } from '@mui/material';
3
- declare const QuickTipButton: React.FC<IconButtonProps>;
4
- export { QuickTipButton };
3
+ export interface QuickTipButtonProps extends IconButtonProps {
4
+ fontSize?: 'small' | 'medium' | 'large' | 'inherit';
5
+ }
6
+ export declare const QuickTipButton: React.FC<QuickTipButtonProps>;
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QuickTipButton = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const HelpOutline_1 = tslib_1.__importDefault(require("@mui/icons-material/HelpOutline"));
6
7
  const material_1 = require("@mui/material");
7
8
  const react_1 = require("react");
8
- const ai_1 = require("react-icons/ai");
9
9
  const dialogs_1 = require("../dialogs");
10
10
  const QuickTipButton = (_a) => {
11
- var { title, children } = _a, props = tslib_1.__rest(_a, ["title", "children"]);
11
+ var { fontSize = 'inherit', title, children } = _a, props = tslib_1.__rest(_a, ["fontSize", "title", "children"]);
12
12
  const [messageOpen, setMessageOpen] = (0, react_1.useState)(false);
13
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: (0, jsx_runtime_1.jsx)(ai_1.AiOutlineQuestionCircle, { size: 16 }) })), (0, jsx_runtime_1.jsx)(dialogs_1.MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }))] }));
13
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => setMessageOpen(true), size: "small" }, props, { children: (0, jsx_runtime_1.jsx)(HelpOutline_1.default, { fontSize: fontSize }) })), (0, jsx_runtime_1.jsx)(dialogs_1.MessageDialog, Object.assign({ onOk: () => setMessageOpen(false), onCancel: () => setMessageOpen(false), onClose: () => setMessageOpen(false), open: messageOpen, title: title !== null && title !== void 0 ? title : '' }, { children: children }))] }));
14
14
  };
15
15
  exports.QuickTipButton = QuickTipButton;
16
16
  //# sourceMappingURL=QuickTipButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuickTipButton.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/QuickTipButton.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2D;AAC3D,iCAAgC;AAChC,uCAAwD;AAExD,wCAA0C;AAE1C,MAAM,cAAc,GAA8B,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA3B,qBAA6B,CAAF;IAC5E,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAErD,OAAO,CACL,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,OAAO,IAAK,KAAK,cACrE,uBAAC,4BAAuB,IAAC,IAAI,EAAE,EAAE,GAAI,IAC1B,EACb,uBAAC,uBAAa,kBAAC,IAAI,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,gBACjK,QAAQ,IACK,IACf,CACJ,CAAA;AACH,CAAC,CAAA;AAEQ,wCAAc"}
1
+ {"version":3,"file":"QuickTipButton.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/QuickTipButton.tsx"],"names":[],"mappings":";;;;;AAAA,0FAA6D;AAC7D,4CAA2D;AAC3D,iCAAgC;AAEhC,wCAA0C;AAMnC,MAAM,cAAc,GAAkC,CAAC,EAAmD,EAAE,EAAE;QAAvD,EAAE,QAAQ,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAjD,iCAAmD,CAAF;IAC7G,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAErD,OAAO,CACL,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,OAAO,IAAK,KAAK,cACrE,uBAAC,qBAAe,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAC5B,EACb,uBAAC,uBAAa,kBAAC,IAAI,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,gBACjK,QAAQ,IACK,IACf,CACJ,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,cAAc,kBAa1B"}
@@ -1,2 +1 @@
1
- import { QuickTipButton } from './QuickTipButton';
2
- export { QuickTipButton };
1
+ export * from './QuickTipButton';
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuickTipButton = void 0;
4
- const QuickTipButton_1 = require("./QuickTipButton");
5
- Object.defineProperty(exports, "QuickTipButton", { enumerable: true, get: function () { return QuickTipButton_1.QuickTipButton; } });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./QuickTipButton"), exports);
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAExC,+FAFA,+BAAc,OAEA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickTipButton/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}