ui-beyable 1.0.15 → 1.0.16

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.
@@ -18,9 +18,9 @@ interface IBtn {
18
18
  light?: boolean;
19
19
  isActive?: boolean;
20
20
  isLoading?: boolean;
21
- size?: string;
22
- horizontalSize?: string;
23
- fontSize?: string;
21
+ size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
22
+ horizontalSize?: 'xs' | 's' | 'm' | 'l';
23
+ fontSize?: 'l' | 'm';
24
24
  fullWidth?: boolean;
25
25
  fullHeight?: boolean;
26
26
  icon?: string;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { IListbox, IListboxItem } from './types';
3
+ declare function Listbox({ children, hasBorder, className }: IListbox): JSX.Element;
4
+ declare function ListboxItem({ children, message, description, imageUrl, tooltip, tooltipHTML, onClick, onMouseEnter, href, target, rel, selected, hasSelectedIcon, hasCheckbox, disabled, size, className, icon, iconCustom, capitalize }: IListboxItem): JSX.Element;
5
+ declare function ListboxSep(): JSX.Element;
6
+ export { Listbox, ListboxItem, ListboxSep };
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ interface IListbox {
3
+ children: React.ReactNode;
4
+ hasBorder?: boolean;
5
+ className?: string;
6
+ }
7
+ interface IListboxItem {
8
+ children?: React.ReactNode;
9
+ message?: React.ReactNode | string;
10
+ description?: React.ReactNode | string;
11
+ imageUrl?: string;
12
+ tooltip?: string | null;
13
+ tooltipHTML?: any;
14
+ onClick?: any;
15
+ onMouseEnter?: any;
16
+ href?: string;
17
+ target?: string;
18
+ rel?: string;
19
+ selected?: boolean;
20
+ hasSelectedIcon?: boolean;
21
+ hasCheckbox?: boolean;
22
+ disabled?: boolean;
23
+ capitalize?: boolean;
24
+ size?: 'm' | 'l' | 'xl';
25
+ className?: string;
26
+ icon?: string;
27
+ iconCustom?: React.ReactNode;
28
+ }
29
+ export { IListbox, IListboxItem };
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IModal } from './types';
2
+ import { IModal, IModalHeader, IModalBody, IModalFooter } from './types';
3
3
  declare function Modal({ children, isOpen, onClose, noClose, width, height, minHeight, fullScreen, animation }: IModal): JSX.Element;
4
- export default Modal;
4
+ declare function ModalHeader({ children, className, title, intro, desc, hasBorder, hasBottomPadding }: IModalHeader): JSX.Element;
5
+ declare function ModalBody({ children, className, style, backgroundColor, position, hasVerticalPadding }: IModalBody): JSX.Element;
6
+ declare function ModalFooter({ children, className, align, primaryAction, secondaryAction, hasBorder, }: IModalFooter): JSX.Element;
7
+ export { Modal, ModalHeader, ModalBody, ModalFooter };
@@ -10,4 +10,32 @@ interface IModal {
10
10
  fullScreen?: boolean;
11
11
  animation?: string;
12
12
  }
13
- export { IModal };
13
+ interface IModalHeader {
14
+ children?: React.ReactNode;
15
+ className?: string;
16
+ title?: React.ReactNode | string;
17
+ intro?: React.ReactNode | string;
18
+ desc?: React.ReactNode | string;
19
+ hasBorder?: boolean;
20
+ hasBottomPadding?: boolean;
21
+ }
22
+ interface IModalBody {
23
+ children?: React.ReactNode;
24
+ className?: string;
25
+ style?: object;
26
+ backgroundColor?: 'grey' | 'white';
27
+ position?: 'static' | 'relative';
28
+ hasVerticalPadding?: boolean;
29
+ }
30
+ interface IModalFooter {
31
+ children?: React.ReactNode;
32
+ className?: string;
33
+ align?: 'left' | 'right';
34
+ primaryAction?: React.ReactNode;
35
+ secondaryAction?: React.ReactNode;
36
+ hasBorder?: boolean;
37
+ }
38
+ interface IModalClose {
39
+ onClick?: (e: any) => any;
40
+ }
41
+ export { IModal, IModalHeader, IModalBody, IModalFooter, IModalClose };
@@ -18,9 +18,9 @@ interface IPanelClose {
18
18
  interface IPanelHeader {
19
19
  children?: React.ReactNode;
20
20
  className?: string;
21
- title?: string;
22
- intro?: string;
23
- desc?: string;
21
+ title?: React.ReactNode | string;
22
+ intro?: React.ReactNode | string;
23
+ desc?: React.ReactNode | string;
24
24
  hasClose?: boolean;
25
25
  hasBorder?: boolean;
26
26
  hasBottomPadding?: boolean;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ITooltip } from './types';
3
+ declare function Tooltip({ text, html, id }: ITooltip): JSX.Element;
4
+ export { Tooltip };
@@ -0,0 +1,6 @@
1
+ interface ITooltip {
2
+ text?: string | null;
3
+ html?: any;
4
+ id?: string;
5
+ }
6
+ export { ITooltip };
@@ -3,10 +3,12 @@ import { Article } from './components/Article/Article';
3
3
  import { Btn } from './components/Btn/Btn';
4
4
  import { Checkbox, Radio, Switch, CheckboxList } from './components/Checkbox/Checkbox';
5
5
  import Collapse from './components/Collapse/Collapse';
6
+ import { Dropdown } from './components/Dropdown/Dropdown';
6
7
  import { IconBtn } from './components/IconBtn/IconBtn';
7
8
  import { List, ListItem } from './components/List/List';
9
+ import { Listbox, ListboxItem, ListboxSep } from './components/Listbox/Listbox';
8
10
  import { Mask } from './components/Mask/Mask';
9
- import Modal from './components/Modal/Modal';
11
+ import { Modal, ModalHeader, ModalBody, ModalFooter } from './components/Modal/Modal';
10
12
  import { Panel, PanelClose, PanelHeader, PanelBody } from './components/Panel/Panel';
11
13
  import { Picto } from './components/Picto/Picto';
12
14
  import { Portal } from './components/Portal/Portal';
@@ -14,5 +16,4 @@ import { Section } from './components/Section/Section';
14
16
  import { Spinner } from './components/Spinner/Spinner';
15
17
  declare const Theme: any;
16
18
  export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, Checkbox, CheckboxList, Collapse, // Not OK
17
- IconBtn, List, ListItem, Mask, Modal, // Not OK
18
- Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, Spinner, Switch, };
19
+ Dropdown, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, Spinner, Switch, };