ui-beyable 1.0.13 → 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.
Files changed (43) hide show
  1. package/lib/cjs/components/App/types.d.ts +1 -1
  2. package/lib/cjs/components/AppHeader/types.d.ts +1 -1
  3. package/lib/cjs/components/Article/types.d.ts +1 -1
  4. package/lib/cjs/components/Btn/Btn.d.ts +4 -0
  5. package/lib/cjs/components/Btn/types.d.ts +27 -11
  6. package/lib/cjs/components/Dropdown/Dropdown.d.ts +6 -0
  7. package/lib/cjs/components/Dropdown/types.d.ts +15 -0
  8. package/lib/cjs/components/IconBtn/IconBtn.d.ts +4 -0
  9. package/lib/cjs/components/IconBtn/types.d.ts +17 -0
  10. package/lib/cjs/components/List/types.d.ts +1 -1
  11. package/lib/cjs/components/Mask/types.d.ts +1 -1
  12. package/lib/cjs/components/Modal/types.d.ts +1 -1
  13. package/lib/cjs/components/Panel/types.d.ts +1 -1
  14. package/lib/cjs/components/Picto/types.d.ts +1 -1
  15. package/lib/cjs/components/Portal/Portal.d.ts +3 -0
  16. package/lib/cjs/components/Portal/type.d.ts +2 -2
  17. package/lib/cjs/components/Section/types.d.ts +1 -1
  18. package/lib/cjs/components/Spinner/types.d.ts +1 -1
  19. package/lib/cjs/index.d.ts +4 -3
  20. package/lib/cjs/index.js +202 -74
  21. package/lib/cjs/index.js.map +1 -1
  22. package/lib/esm/components/App/types.d.ts +1 -1
  23. package/lib/esm/components/AppHeader/types.d.ts +1 -1
  24. package/lib/esm/components/Article/types.d.ts +1 -1
  25. package/lib/esm/components/Btn/Btn.d.ts +4 -0
  26. package/lib/esm/components/Btn/types.d.ts +27 -11
  27. package/lib/esm/components/Dropdown/Dropdown.d.ts +6 -0
  28. package/lib/esm/components/Dropdown/types.d.ts +15 -0
  29. package/lib/esm/components/IconBtn/IconBtn.d.ts +4 -0
  30. package/lib/esm/components/IconBtn/types.d.ts +17 -0
  31. package/lib/esm/components/List/types.d.ts +1 -1
  32. package/lib/esm/components/Mask/types.d.ts +1 -1
  33. package/lib/esm/components/Modal/types.d.ts +1 -1
  34. package/lib/esm/components/Panel/types.d.ts +1 -1
  35. package/lib/esm/components/Picto/types.d.ts +1 -1
  36. package/lib/esm/components/Portal/Portal.d.ts +3 -0
  37. package/lib/esm/components/Portal/type.d.ts +2 -2
  38. package/lib/esm/components/Section/types.d.ts +1 -1
  39. package/lib/esm/components/Spinner/types.d.ts +1 -1
  40. package/lib/esm/index.d.ts +4 -3
  41. package/lib/esm/index.js +202 -75
  42. package/lib/esm/index.js.map +1 -1
  43. package/package.json +1 -1
@@ -19,4 +19,4 @@ interface IAppLogo {
19
19
  className?: string;
20
20
  overlayLink?: React.ReactNode;
21
21
  }
22
- export type { IAppRoot, IAppHeader, IAppLinkWrapper, IAppLogo };
22
+ export { IAppRoot, IAppHeader, IAppLinkWrapper, IAppLogo };
@@ -11,4 +11,4 @@ interface IAppHeader {
11
11
  hasOffset?: boolean;
12
12
  offsetWidth?: number;
13
13
  }
14
- export type { IAppHeader };
14
+ export { IAppHeader };
@@ -8,4 +8,4 @@ interface IArticle {
8
8
  innerSize?: string;
9
9
  titleSize?: string;
10
10
  }
11
- export type { IArticle };
11
+ export { IArticle };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IBtn } from './types';
3
+ declare const Btn: React.MemoExoticComponent<React.ForwardRefExoticComponent<IBtn & React.RefAttributes<unknown>>>;
4
+ export { Btn };
@@ -1,17 +1,33 @@
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;
1
+ import React from 'react';
2
+ interface IBtn {
3
+ children: React.ReactNode;
4
+ type?: "button" | "submit" | "reset" | undefined;
5
+ htmlTag?: string;
10
6
  onClick?: any;
11
7
  onMouseDown?: any;
12
8
  href?: string;
13
9
  target?: string;
14
- disabled?: boolean;
15
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;
16
32
  }
17
- export type { IIconBtn };
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,4 @@
1
+ import React from 'react';
2
+ import { IIconBtn } from './types';
3
+ declare const IconBtn: React.ForwardRefExoticComponent<IIconBtn & React.RefAttributes<unknown>>;
4
+ export { IconBtn };
@@ -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 };
@@ -22,4 +22,4 @@ interface IListItem {
22
22
  textIsBold?: boolean;
23
23
  textIsItalic?: boolean;
24
24
  }
25
- export type { IList, IListItem };
25
+ export { IList, IListItem };
@@ -4,4 +4,4 @@ interface IMask {
4
4
  hasDelay?: boolean;
5
5
  hasProgress?: boolean;
6
6
  }
7
- export type { IMask };
7
+ export { IMask };
@@ -10,4 +10,4 @@ interface IModal {
10
10
  fullScreen?: boolean;
11
11
  animation?: string;
12
12
  }
13
- export type { IModal };
13
+ export { IModal };
@@ -36,4 +36,4 @@ interface IPanelBody {
36
36
  position?: string;
37
37
  hasVerticalMargin?: boolean;
38
38
  }
39
- export type { IPanel, IPanelClose, IPanelHeader, IPanelBody };
39
+ export { IPanel, IPanelClose, IPanelHeader, IPanelBody };
@@ -3,4 +3,4 @@ interface IPicto {
3
3
  color?: string;
4
4
  size?: string;
5
5
  }
6
- export type { IPicto };
6
+ export { IPicto };
@@ -0,0 +1,3 @@
1
+ import { IPortal } from './type';
2
+ declare function Portal({ target, children }: IPortal): any;
3
+ export { Portal };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- interface IBYportal {
2
+ interface IPortal {
3
3
  target?: any;
4
4
  children: React.ReactNode;
5
5
  }
6
- export type { IBYportal };
6
+ export { IPortal };
@@ -3,4 +3,4 @@ interface ISection {
3
3
  children: React.ReactNode;
4
4
  width?: string;
5
5
  }
6
- export type { ISection };
6
+ export { ISection };
@@ -3,4 +3,4 @@ interface ISpinner {
3
3
  display?: string;
4
4
  verticalSize?: string;
5
5
  }
6
- export type { ISpinner };
6
+ export { ISpinner };
@@ -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 { IconBtn } from './components/Btn/IconBtn';
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
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
10
  import { Picto } from './components/Picto/Picto';
10
- import Portal from './components/Portal/BYportal';
11
+ import { Portal } from './components/Portal/Portal';
11
12
  import { Section } from './components/Section/Section';
12
13
  import { Spinner } from './components/Spinner/Spinner';
13
14
  declare const Theme: any;
14
- export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Collapse, // Not OK
15
+ export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, Collapse, // Not OK
15
16
  IconBtn, List, ListItem, Mask, Modal, // Not OK
16
17
  Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Section, Spinner };