@via-profit/ui-kit 0.1.0-rc.25 → 0.1.0-rc.26
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/Modal/index.d.ts +4 -0
- package/Modal/index.js +7 -0
- package/package.json +1 -1
package/Modal/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ import { DrawerProps } from './Drawer';
|
|
|
7
7
|
interface BaseProps {
|
|
8
8
|
readonly variant?: 'dialog' | 'message-box' | 'confirm-box' | 'drawer';
|
|
9
9
|
}
|
|
10
|
+
export * from './Dialog';
|
|
11
|
+
export * from './ConfirmBox';
|
|
12
|
+
export * from './MessageBox';
|
|
13
|
+
export * from './Drawer';
|
|
10
14
|
export type ModalProps = (DialogProps & BaseProps) | (ConfirmBoxProps & BaseProps) | (MessageBoxProps & BaseProps) | (DrawerProps & BaseProps);
|
|
11
15
|
declare const _default: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<ReactModal>>;
|
|
12
16
|
export default _default;
|
package/Modal/index.js
CHANGED
|
@@ -22,6 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
25
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
30
|
};
|
|
@@ -31,6 +34,10 @@ const Dialog_1 = __importDefault(require("./Dialog"));
|
|
|
31
34
|
const ConfirmBox_1 = __importDefault(require("./ConfirmBox"));
|
|
32
35
|
const MessageBox_1 = __importDefault(require("./MessageBox"));
|
|
33
36
|
const Drawer_1 = __importDefault(require("./Drawer"));
|
|
37
|
+
__exportStar(require("./Dialog"), exports);
|
|
38
|
+
__exportStar(require("./ConfirmBox"), exports);
|
|
39
|
+
__exportStar(require("./MessageBox"), exports);
|
|
40
|
+
__exportStar(require("./Drawer"), exports);
|
|
34
41
|
const isDialog = (props) => ('variant' in props && props.variant === 'dialog') || typeof props.variant === 'undefined';
|
|
35
42
|
const isConfirmBox = (props) => 'variant' in props && props.variant === 'confirm-box';
|
|
36
43
|
const isMessageBox = (props) => 'variant' in props && props.variant === 'message-box';
|