ui-beyable 1.0.5 → 1.0.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/README.md +10 -0
- package/lib/cjs/components/Modal/Modal.d.ts +2 -3
- package/lib/cjs/components/Modal/types.d.ts +4 -2
- package/lib/cjs/components/Panel/Panel.d.ts +7 -0
- package/lib/cjs/components/Panel/types.d.ts +39 -0
- package/lib/cjs/index.css +1 -35
- package/lib/cjs/index.css.map +1 -1
- package/lib/cjs/index.d.ts +3 -56
- package/lib/cjs/index.js +205 -6
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/Modal/Modal.d.ts +2 -3
- package/lib/esm/components/Modal/types.d.ts +4 -2
- package/lib/esm/components/Panel/Panel.d.ts +7 -0
- package/lib/esm/components/Panel/types.d.ts +39 -0
- package/lib/esm/index.css +1 -35
- package/lib/esm/index.css.map +1 -1
- package/lib/esm/index.d.ts +3 -56
- package/lib/esm/index.js +203 -8
- package/lib/esm/index.js.map +1 -1
- package/package.json +8 -4
- package/lib/cjs/components/Button/BYbtn.d.ts +0 -6
- package/lib/cjs/components/Collapse/BYcollapse.d.ts +0 -4
- package/lib/cjs/components/Modal/BYmodal.d.ts +0 -4
- package/lib/cjs/esm/components/BYbtn.d.ts +0 -6
- package/lib/cjs/esm/components/Button/BYbtn.d.ts +0 -6
- package/lib/cjs/esm/components/Button/type.d.ts +0 -27
- package/lib/cjs/esm/components/Button.d.ts +0 -7
- package/lib/cjs/esm/components/Collapse/BYcollapse.d.ts +0 -4
- package/lib/cjs/esm/components/Collapse/type.d.ts +0 -5
- package/lib/cjs/esm/components/Modal/BYmodal.d.ts +0 -4
- package/lib/cjs/esm/components/Modal/types.d.ts +0 -11
- package/lib/cjs/esm/components/Portal/BYportal.d.ts +0 -3
- package/lib/cjs/esm/components/Portal/type.d.ts +0 -6
- package/lib/cjs/esm/components/type.d.ts +0 -27
- package/lib/cjs/esm/index.d.ts +0 -60
- package/lib/esm/components/BYbtn.d.ts +0 -6
- package/lib/esm/components/Button/BYbtn.d.ts +0 -6
- package/lib/esm/components/Button.d.ts +0 -7
- package/lib/esm/components/Collapse/BYcollapse.d.ts +0 -4
- package/lib/esm/components/Modal/BYmodal.d.ts +0 -4
- package/lib/esm/components/type.d.ts +0 -27
- package/lib/index.d.ts +0 -51
package/README.md
CHANGED
|
@@ -40,6 +40,16 @@ And then i you want to test in local in other project:
|
|
|
40
40
|
```bash
|
|
41
41
|
npm link
|
|
42
42
|
```
|
|
43
|
+
In your app folder
|
|
44
|
+
```bash
|
|
45
|
+
npm link ui-beyable
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
After every code changes
|
|
49
|
+
```bash
|
|
50
|
+
npm run buildlib
|
|
51
|
+
```
|
|
52
|
+
|
|
43
53
|
You can also migrate module to npm:
|
|
44
54
|
```bash
|
|
45
55
|
npm publish
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare function Modal({ children, isOpen, onClose, noClose, width, height, minHeight }: IBYmodal): JSX.Element;
|
|
2
|
+
import { IModal } from './types';
|
|
3
|
+
declare function Modal({ children, isOpen, onClose, noClose, width, height, minHeight, fullScreen, animation }: IModal): JSX.Element;
|
|
5
4
|
export default Modal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface
|
|
2
|
+
interface IModal {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose?: (e: any) => any;
|
|
@@ -7,5 +7,7 @@ interface IBYmodal {
|
|
|
7
7
|
width?: string;
|
|
8
8
|
height?: string;
|
|
9
9
|
minHeight?: string;
|
|
10
|
+
fullScreen?: boolean;
|
|
11
|
+
animation?: string;
|
|
10
12
|
}
|
|
11
|
-
export type {
|
|
13
|
+
export type { IModal };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPanel, IPanelClose, IPanelHeader, IPanelBody } from './types';
|
|
3
|
+
declare function Panel({ children, isOpen, onClose, width, hasClose, side, overlay, closeOnOverlay, offsetWidth, hasOffset }: IPanel): JSX.Element;
|
|
4
|
+
declare function PanelClose({ onClick, position }: IPanelClose): JSX.Element;
|
|
5
|
+
declare function PanelHeader({ children, className, title, intro, desc, hasClose, hasBorder, hasBottomPadding, primaryAction, secondaryAction, onClose }: IPanelHeader): JSX.Element;
|
|
6
|
+
declare function PanelBody({ children, className, style, color, position, hasVerticalMargin }: IPanelBody): JSX.Element;
|
|
7
|
+
export { Panel, PanelClose, PanelHeader, PanelBody };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IPanel {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose?: (e: any) => any;
|
|
6
|
+
hasClose?: boolean;
|
|
7
|
+
side?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
overlay?: boolean;
|
|
10
|
+
closeOnOverlay?: boolean;
|
|
11
|
+
hasOffset?: boolean;
|
|
12
|
+
offsetWidth?: number;
|
|
13
|
+
}
|
|
14
|
+
interface IPanelClose {
|
|
15
|
+
onClick?: (e: any) => any;
|
|
16
|
+
position?: string;
|
|
17
|
+
}
|
|
18
|
+
interface IPanelHeader {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
intro?: string;
|
|
23
|
+
desc?: string;
|
|
24
|
+
hasClose?: boolean;
|
|
25
|
+
hasBorder?: boolean;
|
|
26
|
+
hasBottomPadding?: boolean;
|
|
27
|
+
primaryAction?: React.ReactNode;
|
|
28
|
+
secondaryAction?: React.ReactNode;
|
|
29
|
+
onClose?: (e: any) => any;
|
|
30
|
+
}
|
|
31
|
+
interface IPanelBody {
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
color?: string;
|
|
36
|
+
position?: string;
|
|
37
|
+
hasVerticalMargin?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export type { IPanel, IPanelClose, IPanelHeader, IPanelBody };
|