@via-profit/ui-kit 0.1.0-rc.35 → 0.1.0-rc.37

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.
@@ -5,7 +5,6 @@ import { ConfirmBoxContentProps } from './ConfirmBoxContent';
5
5
  import { ConfirmBoxFooterProps } from './ConfirmBoxFooter';
6
6
  import { ConfirmBoxHeaderProps } from './ConfirmBoxHeader';
7
7
  export interface ConfirmBoxProps extends Omit<BaseModalProps, 'overrides'> {
8
- readonly variant: 'confirm-box';
9
8
  /**
10
9
  * Dialog header
11
10
  */
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BaseModalProps } from '../BaseModal';
3
3
  export interface DialogProps extends BaseModalProps {
4
- readonly variant: 'dialog';
5
4
  readonly children: React.ReactNode | React.ReactNode[];
6
5
  }
7
6
  declare const Dialog: React.FC<DialogProps>;
@@ -41,14 +41,13 @@ const React = __importStar(require("react"));
41
41
  const BaseModal_1 = __importDefault(require("../BaseModal"));
42
42
  const DialogInner_1 = __importDefault(require("./DialogInner"));
43
43
  const Dialog = props => {
44
- const { children } = props, restProps = __rest(props, ["children"]);
44
+ var _a;
45
+ const { children, overrides } = props, restProps = __rest(props, ["children", "overrides"]);
45
46
  const dialogID = React.useMemo(() => `dialog-${new Date().getTime()}`, []);
46
47
  return (React.createElement(React.Fragment, null,
47
- React.createElement(BaseModal_1.default, Object.assign({}, restProps, { overrides: {
48
- Inner: React.forwardRef(function Inner(props, ref) {
48
+ React.createElement(BaseModal_1.default, Object.assign({}, restProps, { overrides: Object.assign(Object.assign({}, overrides), { Inner: (_a = overrides === null || overrides === void 0 ? void 0 : overrides.Inner) !== null && _a !== void 0 ? _a : React.forwardRef(function Inner(props, ref) {
49
49
  const { children } = props;
50
50
  return (React.createElement(DialogInner_1.default, Object.assign({ dialogID: dialogID, ref: ref }, props), children));
51
- }),
52
- } }), children)));
51
+ }) }) }), children)));
53
52
  };
54
53
  exports.default = Dialog;
@@ -6,7 +6,6 @@ import { DrawerHeaderProps } from './DrawerHeader';
6
6
  import { DrawerContentProps } from './DrawerContent';
7
7
  import { DrawerFooterProps } from './DrawerFooter';
8
8
  export interface DrawerProps extends Omit<BaseModalProps, 'overrides'> {
9
- readonly variant: 'drawer';
10
9
  /**
11
10
  * Drawer position\
12
11
  * \
@@ -5,7 +5,6 @@ import { MessageBoxContentProps } from './MessageBoxContent';
5
5
  import { MessageBoxFooterProps } from './MessageBoxFooter';
6
6
  import { MessageBoxHeaderProps } from './MessageBoxHeader';
7
7
  export interface MessageBoxProps extends Omit<BaseModalProps, 'overrides'> {
8
- readonly variant: 'message-box';
9
8
  /**
10
9
  * Dialog header
11
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@via-profit/ui-kit",
3
- "version": "0.1.0-rc.35",
3
+ "version": "0.1.0-rc.37",
4
4
  "description": "UI Kit",
5
5
  "repository": {
6
6
  "type": "git",