ui-beyable 1.0.0 → 1.0.2
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 +67 -1
- package/lib/cjs/components/Button/BYbtn.d.ts +6 -0
- package/lib/cjs/components/Button/Btn.d.ts +6 -0
- package/lib/cjs/components/Button/type.d.ts +27 -0
- package/lib/cjs/components/Collapse/BYcollapse.d.ts +4 -0
- package/lib/cjs/components/Collapse/Collapse.d.ts +4 -0
- package/lib/cjs/components/Collapse/type.d.ts +5 -0
- package/lib/cjs/components/Modal/BYmodal.d.ts +4 -0
- package/lib/cjs/components/Modal/Modal.d.ts +5 -0
- package/lib/cjs/components/Modal/types.d.ts +11 -0
- package/lib/cjs/components/Portal/BYportal.d.ts +3 -0
- package/lib/cjs/components/Portal/type.d.ts +6 -0
- package/lib/cjs/esm/components/BYbtn.d.ts +6 -0
- package/lib/cjs/esm/components/Button/BYbtn.d.ts +6 -0
- package/lib/cjs/esm/components/Button/type.d.ts +27 -0
- package/lib/cjs/esm/components/Button.d.ts +7 -0
- package/lib/cjs/esm/components/Collapse/BYcollapse.d.ts +4 -0
- package/lib/cjs/esm/components/Collapse/type.d.ts +5 -0
- package/lib/cjs/esm/components/Modal/BYmodal.d.ts +4 -0
- package/lib/cjs/esm/components/Modal/types.d.ts +11 -0
- package/lib/cjs/esm/components/Portal/BYportal.d.ts +3 -0
- package/lib/cjs/esm/components/Portal/type.d.ts +6 -0
- package/lib/cjs/esm/components/type.d.ts +27 -0
- package/lib/cjs/esm/index.d.ts +60 -0
- package/lib/cjs/index.css +36 -0
- package/lib/cjs/index.css.map +1 -0
- package/lib/cjs/index.d.ts +60 -0
- package/lib/cjs/index.js +169 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/esm/components/BYbtn.d.ts +6 -0
- package/lib/esm/components/Button/BYbtn.d.ts +6 -0
- package/lib/esm/components/Button/Btn.d.ts +6 -0
- package/lib/esm/components/Button/type.d.ts +27 -0
- package/lib/esm/components/Button.d.ts +7 -0
- package/lib/esm/components/Collapse/BYcollapse.d.ts +4 -0
- package/lib/esm/components/Collapse/Collapse.d.ts +4 -0
- package/lib/esm/components/Collapse/type.d.ts +5 -0
- package/lib/esm/components/Modal/BYmodal.d.ts +4 -0
- package/lib/esm/components/Modal/Modal.d.ts +5 -0
- package/lib/esm/components/Modal/types.d.ts +11 -0
- package/lib/esm/components/Portal/BYportal.d.ts +3 -0
- package/lib/esm/components/Portal/type.d.ts +6 -0
- package/lib/esm/components/type.d.ts +27 -0
- package/lib/esm/index.css +36 -0
- package/lib/esm/index.css.map +1 -0
- package/lib/esm/index.d.ts +60 -0
- package/lib/esm/index.js +164 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/index.d.ts +51 -0
- package/package.json +35 -15
- package/src/components/Button.css +0 -3
- package/src/components/Button.js +0 -8
- package/src/components/Button.tsx +0 -18
- package/src/components/ByBtn.js +0 -7
- package/src/components/ByBtn.tsx +0 -11
package/README.md
CHANGED
|
@@ -1 +1,67 @@
|
|
|
1
|
-
|
|
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
|
+
You can also migrate module to npm:
|
|
44
|
+
```bash
|
|
45
|
+
npm publish
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## <center> 🤔 Architecture?</center>
|
|
49
|
+
<div class="architecture">
|
|
50
|
+
<img src="./public/architectureBeyableDS.png" style="display:flex;justify-content:center;" alt="architecture pic">
|
|
51
|
+
|
|
52
|
+
- **assets**: every image and fonts that are using by components.
|
|
53
|
+
- **components**: all components modules , .tsx components and .ts interfaces files are implemented, also css modules is now available.
|
|
54
|
+
- **stories**: all stories order in two sections, component and display for the graphic chart.
|
|
55
|
+
- **style**: all global style files from Yattune front.
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
## <center>⭐ Components library</center>
|
|
60
|
+
|
|
61
|
+
This library aims to provide all current component, is right in react typescript.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## <center>📝💻 License</center>
|
|
66
|
+
|
|
67
|
+
MIT © [Beyable](https://www.beyable.com)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IBYbtn } from './type';
|
|
3
|
+
declare const Btn: ({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => JSX.Element;
|
|
4
|
+
export { Btn };
|
|
5
|
+
declare const BYbtn: React.MemoExoticComponent<({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => JSX.Element>;
|
|
6
|
+
export default BYbtn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IBYbtn } from './type';
|
|
3
|
+
declare const Btn: ({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => JSX.Element;
|
|
4
|
+
export { Btn };
|
|
5
|
+
declare const BYbtn: React.MemoExoticComponent<({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => JSX.Element>;
|
|
6
|
+
export default BYbtn;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IBYbtn {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
type?: "button" | "submit" | "reset";
|
|
5
|
+
htmlTag?: 'button' | 'a';
|
|
6
|
+
onClickFunction?: (e: React.MouseEvent) => any;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => any;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
strong?: boolean;
|
|
17
|
+
light?: boolean;
|
|
18
|
+
size?: "" | "xxs" | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
19
|
+
fontSize?: string;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
fullHeight?: boolean;
|
|
22
|
+
icon?: any;
|
|
23
|
+
iconPosition?: 'before' | 'after';
|
|
24
|
+
arrow?: boolean | "true" | "false";
|
|
25
|
+
dataFor?: string;
|
|
26
|
+
dataTip?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IBYbtn } from './type';
|
|
3
|
+
declare const Btn: ({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => React.JSX.Element;
|
|
4
|
+
export { Btn };
|
|
5
|
+
declare const BYbtn: React.MemoExoticComponent<({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => React.JSX.Element>;
|
|
6
|
+
export default BYbtn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IBYbtn } from './type';
|
|
3
|
+
declare const Btn: ({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => React.JSX.Element;
|
|
4
|
+
export { Btn };
|
|
5
|
+
declare const BYbtn: React.MemoExoticComponent<({ children, type, htmlTag, onClickFunction, onClick, href, target, message, color, style, rounded, disabled, className, strong, light, size, fontSize, fullWidth, fullHeight, icon, iconPosition, arrow, dataFor, dataTip }: IBYbtn) => React.JSX.Element>;
|
|
6
|
+
export default BYbtn;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IBYbtn {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
type?: "button" | "submit" | "reset";
|
|
5
|
+
htmlTag?: 'button' | 'a';
|
|
6
|
+
onClickFunction?: (e: React.MouseEvent) => any;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => any;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
strong?: boolean;
|
|
17
|
+
light?: boolean;
|
|
18
|
+
size?: "" | "xxs" | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
19
|
+
fontSize?: string;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
fullHeight?: boolean;
|
|
22
|
+
icon?: any;
|
|
23
|
+
iconPosition?: 'before' | 'after';
|
|
24
|
+
arrow?: boolean | "true" | "false";
|
|
25
|
+
dataFor?: string;
|
|
26
|
+
dataTip?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Button: React.FunctionComponent<IButtonProps>;
|
|
7
|
+
export default Button;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IBYbtn {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
type?: "button" | "submit" | "reset";
|
|
5
|
+
htmlTag?: 'button' | 'a';
|
|
6
|
+
onClickFunction?: (e: React.MouseEvent) => any;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => any;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
strong?: boolean;
|
|
17
|
+
light?: boolean;
|
|
18
|
+
size?: "" | "xxs" | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
19
|
+
fontSize?: string;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
fullHeight?: boolean;
|
|
22
|
+
icon?: any;
|
|
23
|
+
iconPosition?: 'before' | 'after';
|
|
24
|
+
arrow?: boolean | "true" | "false";
|
|
25
|
+
dataFor?: string;
|
|
26
|
+
dataTip?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import BYBtn from './components/Button/BYbtn';
|
|
2
|
+
import BYmodal from './components/Modal/BYmodal';
|
|
3
|
+
import ByPortal from './components/Portal/BYportal';
|
|
4
|
+
import BYcollapse from './components/Collapse/BYcollapse';
|
|
5
|
+
import "./style/globalStyle.css";
|
|
6
|
+
import "./style/params.css";
|
|
7
|
+
import "./style/animate.css";
|
|
8
|
+
import "./style/bootstrap-overrides.css";
|
|
9
|
+
import "./style/bootstrap/css/bootstrap_framework.css";
|
|
10
|
+
import "./style/btn.css";
|
|
11
|
+
import "./style/c3.min.css";
|
|
12
|
+
import "./style/checkbox.css";
|
|
13
|
+
import "./style/colorpicker.css";
|
|
14
|
+
import "./style/custom-antd.css";
|
|
15
|
+
import "./style/customInput.css";
|
|
16
|
+
import "./style/datepicker.css";
|
|
17
|
+
import "./style/datepickerrange.min.css";
|
|
18
|
+
import "./style/empty.css";
|
|
19
|
+
import "./style/field.css";
|
|
20
|
+
import "./style/flex.css";
|
|
21
|
+
import "./style/fonts.css";
|
|
22
|
+
import "./style/form.css";
|
|
23
|
+
import "./style/gridstack.min.css";
|
|
24
|
+
import "./style/Header.css";
|
|
25
|
+
import "./style/icofont.min.css";
|
|
26
|
+
import "./style/icon.css";
|
|
27
|
+
import "./style/Informations.css";
|
|
28
|
+
import "./style/insights.css";
|
|
29
|
+
import "./style/jqCron.css";
|
|
30
|
+
import "./style/listbox.css";
|
|
31
|
+
import "./style/modal.css";
|
|
32
|
+
import "./style/navigation.css";
|
|
33
|
+
import "./style/notifications.css";
|
|
34
|
+
import "./style/orchestration.css";
|
|
35
|
+
import "./style/page.css";
|
|
36
|
+
import "./style/panel.css";
|
|
37
|
+
import "./style/place_autocomplete.css";
|
|
38
|
+
import "./style/react-cron.css";
|
|
39
|
+
import "./style/react-table.css";
|
|
40
|
+
import "./style/reset.css";
|
|
41
|
+
import "./style/scroll.css";
|
|
42
|
+
import "./style/section.css";
|
|
43
|
+
import "./style/setup.css";
|
|
44
|
+
import "./style/shepherd.css";
|
|
45
|
+
import "./style/simplegrid.css";
|
|
46
|
+
import "./style/spinner.css";
|
|
47
|
+
import "./style/stats.css";
|
|
48
|
+
import "./style/style.css";
|
|
49
|
+
import "./style/SideBar.css";
|
|
50
|
+
import "./style/table.css";
|
|
51
|
+
import "./style/tabs.css";
|
|
52
|
+
import "./style/thumb_list.css";
|
|
53
|
+
import "./style/tippy.css";
|
|
54
|
+
import "./style/traffic-overview.css";
|
|
55
|
+
import "./style/utils.css";
|
|
56
|
+
import "./style/var.css";
|
|
57
|
+
import "./style/variation.css";
|
|
58
|
+
import "./style/wheel.css";
|
|
59
|
+
import "./style/wishlists.css";
|
|
60
|
+
export { BYBtn, BYmodal, ByPortal, BYcollapse };
|