ui-beyable 1.0.12 → 1.0.14
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/lib/cjs/components/App/types.d.ts +1 -1
- package/lib/cjs/components/AppHeader/types.d.ts +1 -1
- package/lib/cjs/components/Article/types.d.ts +1 -1
- package/lib/cjs/components/Btn/Btn.d.ts +4 -0
- package/lib/cjs/components/Btn/IconBtn.d.ts +4 -0
- package/lib/cjs/components/Btn/types.d.ts +33 -0
- package/lib/cjs/components/Dropdown/Dropdown.d.ts +6 -0
- package/lib/cjs/components/Dropdown/types.d.ts +15 -0
- package/lib/cjs/components/IconBtn/IconBtn.d.ts +4 -0
- package/lib/cjs/components/IconBtn/types.d.ts +17 -0
- package/lib/cjs/components/List/types.d.ts +1 -1
- package/lib/cjs/components/Mask/Mask.d.ts +1 -1
- package/lib/cjs/components/Mask/types.d.ts +1 -1
- package/lib/cjs/components/Modal/types.d.ts +1 -1
- package/lib/cjs/components/Panel/types.d.ts +1 -1
- package/lib/cjs/components/Picto/Picto.d.ts +4 -0
- package/lib/cjs/components/Picto/types.d.ts +6 -0
- package/lib/cjs/components/Portal/Portal.d.ts +3 -0
- package/lib/cjs/components/Portal/type.d.ts +2 -2
- package/lib/cjs/components/Section/Section.d.ts +1 -1
- package/lib/cjs/components/Section/types.d.ts +1 -1
- package/lib/cjs/components/Spinner/Spinner.d.ts +1 -1
- package/lib/cjs/components/Spinner/types.d.ts +1 -1
- package/lib/cjs/index.d.ts +10 -9
- package/lib/cjs/index.js +1814 -141
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/App/types.d.ts +1 -1
- package/lib/esm/components/AppHeader/types.d.ts +1 -1
- package/lib/esm/components/Article/types.d.ts +1 -1
- package/lib/esm/components/Btn/Btn.d.ts +4 -0
- package/lib/esm/components/Btn/IconBtn.d.ts +4 -0
- package/lib/esm/components/Btn/types.d.ts +33 -0
- package/lib/esm/components/Dropdown/Dropdown.d.ts +6 -0
- package/lib/esm/components/Dropdown/types.d.ts +15 -0
- package/lib/esm/components/IconBtn/IconBtn.d.ts +4 -0
- package/lib/esm/components/IconBtn/types.d.ts +17 -0
- package/lib/esm/components/List/types.d.ts +1 -1
- package/lib/esm/components/Mask/Mask.d.ts +1 -1
- package/lib/esm/components/Mask/types.d.ts +1 -1
- package/lib/esm/components/Modal/types.d.ts +1 -1
- package/lib/esm/components/Panel/types.d.ts +1 -1
- package/lib/esm/components/Picto/Picto.d.ts +4 -0
- package/lib/esm/components/Picto/types.d.ts +6 -0
- package/lib/esm/components/Portal/Portal.d.ts +3 -0
- package/lib/esm/components/Portal/type.d.ts +2 -2
- package/lib/esm/components/Section/Section.d.ts +1 -1
- package/lib/esm/components/Section/types.d.ts +1 -1
- package/lib/esm/components/Spinner/Spinner.d.ts +1 -1
- package/lib/esm/components/Spinner/types.d.ts +1 -1
- package/lib/esm/index.d.ts +10 -9
- package/lib/esm/index.js +1813 -142
- package/lib/esm/index.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IBtn {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
5
|
+
htmlTag?: string;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
onMouseDown?: any;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
rel?: string;
|
|
11
|
+
message?: any;
|
|
12
|
+
color?: 'primary' | 'secondary' | 'alert' | 'warning' | 'success' | 'black';
|
|
13
|
+
style?: 'fill' | 'outline' | 'ghost' | 'ghost_outline' | 'reverse' | 'link';
|
|
14
|
+
rounded?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
strong?: boolean;
|
|
18
|
+
light?: boolean;
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
size?: string;
|
|
22
|
+
horizontalSize?: string;
|
|
23
|
+
fontSize?: string;
|
|
24
|
+
fullWidth?: boolean;
|
|
25
|
+
fullHeight?: boolean;
|
|
26
|
+
icon?: string;
|
|
27
|
+
iconPosition?: string;
|
|
28
|
+
arrow?: boolean;
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
tooltipHTML?: any;
|
|
31
|
+
doInputHug?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export { IBtn };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './Dropdown.css';
|
|
3
|
+
import { IDropdown } from './types';
|
|
4
|
+
declare function Dropdown({ button, // need to accept onMouseDown and ref props
|
|
5
|
+
buttonRef, toggle, isOpen, posX, clickEvent, children, scrollbar, flip, minWidth }: IDropdown): JSX.Element;
|
|
6
|
+
export { Dropdown };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IDropdown {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
button?: React.ReactElement;
|
|
5
|
+
buttonRef?: any;
|
|
6
|
+
toggle?: any;
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
posX?: "button" | "mouse";
|
|
9
|
+
posY?: "button" | "mouse";
|
|
10
|
+
clickEvent?: any;
|
|
11
|
+
scrollbar?: boolean;
|
|
12
|
+
flip?: boolean;
|
|
13
|
+
minWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
export { IDropdown };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface IIconBtn {
|
|
2
|
+
icon: string;
|
|
3
|
+
fixedWidth?: boolean;
|
|
4
|
+
size?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
theme?: string;
|
|
7
|
+
hoverColor?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
tooltipHTML?: any;
|
|
10
|
+
onClick?: any;
|
|
11
|
+
onMouseDown?: any;
|
|
12
|
+
href?: string;
|
|
13
|
+
target?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
rel?: string;
|
|
16
|
+
}
|
|
17
|
+
export { IIconBtn };
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { AppRoot, AppHeader, AppLinkWrapper, AppLogo } from './components/App/App';
|
|
2
2
|
import { Article } from './components/Article/Article';
|
|
3
|
-
import Btn from './components/
|
|
3
|
+
import { Btn } from './components/Btn/Btn';
|
|
4
4
|
import Collapse from './components/Collapse/Collapse';
|
|
5
|
+
import { IconBtn } from './components/IconBtn/IconBtn';
|
|
5
6
|
import { List, ListItem } from './components/List/List';
|
|
6
|
-
import Mask from './components/Mask/Mask';
|
|
7
|
+
import { Mask } from './components/Mask/Mask';
|
|
7
8
|
import Modal from './components/Modal/Modal';
|
|
8
9
|
import { Panel, PanelClose, PanelHeader, PanelBody } from './components/Panel/Panel';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { Picto } from './components/Picto/Picto';
|
|
11
|
+
import { Portal } from './components/Portal/Portal';
|
|
12
|
+
import { Section } from './components/Section/Section';
|
|
13
|
+
import { Spinner } from './components/Spinner/Spinner';
|
|
12
14
|
declare const Theme: any;
|
|
13
|
-
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, // Not OK
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Panel, PanelClose, PanelHeader, PanelBody, Portal, Section, Spinner };
|
|
15
|
+
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, Collapse, // Not OK
|
|
16
|
+
IconBtn, List, ListItem, Mask, Modal, // Not OK
|
|
17
|
+
Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Section, Spinner };
|