ui-beyable 1.0.4 → 1.0.6
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 +77 -67
- 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 +5 -0
- package/lib/cjs/components/Panel/types.d.ts +17 -0
- package/lib/cjs/index.css +1 -35
- package/lib/cjs/index.css.map +1 -1
- package/lib/cjs/index.d.ts +3 -62
- package/lib/cjs/index.js +142 -4761
- 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 +5 -0
- package/lib/esm/components/Panel/types.d.ts +17 -0
- package/lib/esm/index.css +1 -35
- package/lib/esm/index.css.map +1 -1
- package/lib/esm/index.d.ts +3 -62
- package/lib/esm/index.js +142 -4757
- package/lib/esm/index.js.map +1 -1
- package/package.json +9 -20
- package/lib/cjs/components/Avatar/Avatar.d.ts +0 -5
- package/lib/cjs/components/Avatar/type.d.ts +0 -5
- package/lib/cjs/components/Breadcrumb/BYbreadcrumbItem.d.ts +0 -4
- package/lib/cjs/components/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/lib/cjs/components/Breadcrumb/type.d.ts +0 -21
- package/lib/cjs/components/Button/BYbtn.d.ts +0 -6
- package/lib/cjs/components/Checkbox/Checkbox.d.ts +0 -4
- package/lib/cjs/components/Checkbox/type.d.ts +0 -15
- package/lib/cjs/components/Collapse/BYcollapse.d.ts +0 -4
- package/lib/cjs/components/InputCustom/InputCustom.d.ts +0 -10
- package/lib/cjs/components/InputCustom/types.d.ts +0 -40
- package/lib/cjs/components/Modal/BYmodal.d.ts +0 -4
- package/lib/cjs/components/Spinner/Spinner.d.ts +0 -4
- package/lib/cjs/components/Spinner/type.d.ts +0 -3
- package/lib/cjs/components/SpinnerWheel/BYspinnerWheel.d.ts +0 -6
- package/lib/cjs/components/SpinnerWheel/type.d.ts +0 -5
- 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/Avatar/Avatar.d.ts +0 -5
- package/lib/esm/components/Avatar/type.d.ts +0 -5
- package/lib/esm/components/BYbtn.d.ts +0 -6
- package/lib/esm/components/Breadcrumb/BYbreadcrumbItem.d.ts +0 -4
- package/lib/esm/components/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/lib/esm/components/Breadcrumb/type.d.ts +0 -21
- package/lib/esm/components/Button/BYbtn.d.ts +0 -6
- package/lib/esm/components/Button.d.ts +0 -7
- package/lib/esm/components/Checkbox/Checkbox.d.ts +0 -4
- package/lib/esm/components/Checkbox/type.d.ts +0 -15
- package/lib/esm/components/Collapse/BYcollapse.d.ts +0 -4
- package/lib/esm/components/InputCustom/InputCustom.d.ts +0 -10
- package/lib/esm/components/InputCustom/types.d.ts +0 -40
- package/lib/esm/components/Modal/BYmodal.d.ts +0 -4
- package/lib/esm/components/Spinner/Spinner.d.ts +0 -4
- package/lib/esm/components/Spinner/type.d.ts +0 -3
- package/lib/esm/components/SpinnerWheel/BYspinnerWheel.d.ts +0 -6
- package/lib/esm/components/SpinnerWheel/type.d.ts +0 -5
- package/lib/esm/components/type.d.ts +0 -27
- package/lib/index.d.ts +0 -51
package/README.md
CHANGED
|
@@ -1,67 +1,77 @@
|
|
|
1
|
-
<!-- <style>
|
|
2
|
-
.architecture{
|
|
3
|
-
padding: 10px 0;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items:center;
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
.architecture img{
|
|
10
|
-
width:150px;
|
|
11
|
-
height:160px;
|
|
12
|
-
padding:3px 2px;
|
|
13
|
-
}
|
|
14
|
-
.logo{
|
|
15
|
-
width:30%
|
|
16
|
-
}
|
|
17
|
-
</style> -->
|
|
18
|
-
|
|
19
|
-
# <p align="center"><a href="https://beyable.com"><img class="logo" src="./public/beyable_logo.svg" title="BEYABLE" alt="Beyable logo"></a></center></p>
|
|
20
|
-
|
|
21
|
-
# <center> DESIGN SYSTEME</center>
|
|
22
|
-
|
|
23
|
-
## <center>🧐 Description</center>
|
|
24
|
-
|
|
25
|
-
This repository provides a library of React component who are currently using on the Saas plateforme BEYABLE.
|
|
26
|
-
|
|
27
|
-
You can have a look to the Beyable company **[www.beyable.com](https://www.beyable.com/)** for more details
|
|
28
|
-
|
|
29
|
-
Storybook **[beyableui.netlify.app](https://beyableui.netlify.app/)**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## <center>⚙️ Getting started</center>
|
|
33
|
-
|
|
34
|
-
first clone the repository and open it:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm i
|
|
38
|
-
```
|
|
39
|
-
And then i you want to test in local in other project:
|
|
40
|
-
```bash
|
|
41
|
-
npm link
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
<!-- <style>
|
|
2
|
+
.architecture{
|
|
3
|
+
padding: 10px 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items:center;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
.architecture img{
|
|
10
|
+
width:150px;
|
|
11
|
+
height:160px;
|
|
12
|
+
padding:3px 2px;
|
|
13
|
+
}
|
|
14
|
+
.logo{
|
|
15
|
+
width:30%
|
|
16
|
+
}
|
|
17
|
+
</style> -->
|
|
18
|
+
|
|
19
|
+
# <p align="center"><a href="https://beyable.com"><img class="logo" src="./public/beyable_logo.svg" title="BEYABLE" alt="Beyable logo"></a></center></p>
|
|
20
|
+
|
|
21
|
+
# <center> DESIGN SYSTEME</center>
|
|
22
|
+
|
|
23
|
+
## <center>🧐 Description</center>
|
|
24
|
+
|
|
25
|
+
This repository provides a library of React component who are currently using on the Saas plateforme BEYABLE.
|
|
26
|
+
|
|
27
|
+
You can have a look to the Beyable company **[www.beyable.com](https://www.beyable.com/)** for more details
|
|
28
|
+
|
|
29
|
+
Storybook **[beyableui.netlify.app](https://beyableui.netlify.app/)**
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## <center>⚙️ Getting started</center>
|
|
33
|
+
|
|
34
|
+
first clone the repository and open it:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm i
|
|
38
|
+
```
|
|
39
|
+
And then i you want to test in local in other project:
|
|
40
|
+
```bash
|
|
41
|
+
npm link
|
|
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
|
+
|
|
53
|
+
You can also migrate module to npm:
|
|
54
|
+
```bash
|
|
55
|
+
npm publish
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## <center> 🤔 Architecture?</center>
|
|
59
|
+
<div class="architecture">
|
|
60
|
+
<img src="./public/architectureBeyableDS.png" style="display:flex;justify-content:center;" alt="architecture pic">
|
|
61
|
+
|
|
62
|
+
- **assets**: every image and fonts that are using by components.
|
|
63
|
+
- **components**: all components modules , .tsx components and .ts interfaces files are implemented, also css modules is now available.
|
|
64
|
+
- **stories**: all stories order in two sections, component and display for the graphic chart.
|
|
65
|
+
- **style**: all global style files from Yattune front.
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
## <center>⭐ Components library</center>
|
|
70
|
+
|
|
71
|
+
This library aims to provide all current component, is right in react typescript.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## <center>📝💻 License</center>
|
|
76
|
+
|
|
77
|
+
MIT © [Beyable](https://www.beyable.com)
|
|
@@ -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,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPanel, IPanelClose } from './types';
|
|
3
|
+
declare function Panel({ children, isOpen, onClose, width, noClose, side, overlay, closeOnOverlay, offsetWidth, hasOffset }: IPanel): JSX.Element;
|
|
4
|
+
declare function PanelClose({ onClick }: IPanelClose): JSX.Element;
|
|
5
|
+
export { Panel, PanelClose };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IPanel {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose?: (e: any) => any;
|
|
6
|
+
noClose?: 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
|
+
}
|
|
17
|
+
export type { IPanel, IPanelClose };
|