ui-beyable 1.0.20 → 1.0.22-beta.0
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 +12 -1
- package/lib/cjs/components/Btn/Btn.d.ts +3 -2
- package/lib/cjs/components/Btn/types.d.ts +5 -1
- package/lib/cjs/components/Dropdown/Dropdown.d.ts +3 -3
- package/lib/cjs/components/Dropdown/types.d.ts +4 -1
- package/lib/cjs/components/EmptyState/EmptyState.d.ts +4 -0
- package/lib/cjs/components/EmptyState/types.d.ts +16 -0
- package/lib/cjs/components/Message/Message.d.ts +4 -0
- package/lib/cjs/components/Message/types.d.ts +16 -0
- package/lib/cjs/components/Select/Select.d.ts +3 -0
- package/lib/cjs/components/Select/types.d.ts +44 -0
- package/lib/cjs/index.d.ts +5 -3
- package/lib/cjs/index.js +515 -357
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/Btn/Btn.d.ts +3 -2
- package/lib/esm/components/Btn/types.d.ts +5 -1
- package/lib/esm/components/Dropdown/Dropdown.d.ts +3 -3
- package/lib/esm/components/Dropdown/types.d.ts +4 -1
- package/lib/esm/components/EmptyState/EmptyState.d.ts +4 -0
- package/lib/esm/components/EmptyState/types.d.ts +16 -0
- package/lib/esm/components/Message/Message.d.ts +4 -0
- package/lib/esm/components/Message/types.d.ts +16 -0
- package/lib/esm/components/Select/Select.d.ts +3 -0
- package/lib/esm/components/Select/types.d.ts +44 -0
- package/lib/esm/index.d.ts +5 -3
- package/lib/esm/index.js +513 -358
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,11 +55,22 @@ Pre publish
|
|
|
55
55
|
npm run prepublishOnly
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
To publish the module to NPM :
|
|
59
59
|
```bash
|
|
60
60
|
npm publish
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
To publish a BETA version to NPM :
|
|
64
|
+
|
|
65
|
+
Update the module version number, adding ``-beta.0`` at the end.
|
|
66
|
+
The ``.0`` indicates which beta version it is.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
npm publish --tag beta
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
63
74
|
## <center> 🤔 Architecture?</center>
|
|
64
75
|
<div class="architecture">
|
|
65
76
|
<img src="./public/architectureBeyableDS.png" style="display:flex;justify-content:center;" alt="architecture pic">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IBtn } from './types';
|
|
2
|
+
import { IBtn, IBtnGroup } from './types';
|
|
3
|
+
declare function BtnGroup({ children, gap }: IBtnGroup): JSX.Element;
|
|
3
4
|
declare const Btn: React.MemoExoticComponent<React.ForwardRefExoticComponent<IBtn & React.RefAttributes<unknown>>>;
|
|
4
|
-
export { Btn };
|
|
5
|
+
export { Btn, BtnGroup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import './
|
|
3
|
-
import { IDropdown } from './types';
|
|
2
|
+
import { IDropdown, IDropdownSection } from './types';
|
|
4
3
|
declare function Dropdown({ button, // need to accept onMouseDown and ref props
|
|
5
4
|
buttonRef, toggle, isOpen, posX, clickEvent, children, scrollbar, flip, minWidth }: IDropdown): JSX.Element;
|
|
6
|
-
|
|
5
|
+
declare function DropdownSection({ children }: IDropdownSection): JSX.Element;
|
|
6
|
+
export { Dropdown, DropdownSection };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IEmptyState } from './types';
|
|
3
|
+
declare function EmptyState({ title, text, primaryAction, secondaryAction, imageUrl, icon, verticalSize, verticalAlign, textSize, titleIsBold, hasSpinner, hasBorder }: IEmptyState): JSX.Element;
|
|
4
|
+
export { EmptyState };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IEmptyState {
|
|
3
|
+
title?: React.ReactNode | string;
|
|
4
|
+
text?: React.ReactNode | string;
|
|
5
|
+
primaryAction?: React.ReactNode;
|
|
6
|
+
secondaryAction?: React.ReactNode;
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
textSize?: 's' | 'm' | 'l' | 'xl';
|
|
10
|
+
verticalSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
11
|
+
verticalAlign?: boolean;
|
|
12
|
+
titleIsBold?: boolean;
|
|
13
|
+
hasSpinner?: boolean;
|
|
14
|
+
hasBorder?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export { IEmptyState };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IMessage {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
links?: React.ReactNode;
|
|
5
|
+
type?: 'information' | 'success' | 'warning' | 'alert';
|
|
6
|
+
title?: React.ReactNode | string;
|
|
7
|
+
text?: React.ReactNode | string;
|
|
8
|
+
appearance?: 'background' | 'outline' | 'ghost';
|
|
9
|
+
icon?: 'default' | 'information' | 'success' | 'warning' | 'alert';
|
|
10
|
+
showIcon?: boolean;
|
|
11
|
+
marginSize?: 's' | 'm' | 'l' | 'none';
|
|
12
|
+
verticalSize?: 's' | 'm';
|
|
13
|
+
noMargin?: boolean;
|
|
14
|
+
color?: 'default' | 'purple';
|
|
15
|
+
}
|
|
16
|
+
export { IMessage };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ISelect } from './types';
|
|
3
|
+
export default function SelectDropdown({ children, optionsList, value, friendlyValue, label, labelTooltip, labelTooltipHTML, description, placeHolder, labelPosition, labelClassName, blockClassName, onChange, disabled, isClearable, hasArrow, fullWidth, autoWidth, ellips, size, color, style, autocomplete, autocompleteValue, autocompletePlaceholder, autocompleteEmptyState, onAutocomplete, autocompleteIsLoading, clearAutocompleteOnClose, hasHoverSidebar, hoverSidebarRender, hoverSidebarPlaceholder }: ISelect): JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IOption {
|
|
3
|
+
label: React.ReactNode | string;
|
|
4
|
+
value: any;
|
|
5
|
+
image?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
hoverContent?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface ISelect {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
optionsList: Array<IOption>;
|
|
13
|
+
value: any;
|
|
14
|
+
friendlyValue?: React.ReactNode | string;
|
|
15
|
+
label?: React.ReactNode | string;
|
|
16
|
+
labelTooltip?: string;
|
|
17
|
+
labelTooltipHTML?: any;
|
|
18
|
+
description?: React.ReactNode | string;
|
|
19
|
+
placeHolder?: string;
|
|
20
|
+
labelPosition?: 'outer' | 'inner';
|
|
21
|
+
labelClassName?: string;
|
|
22
|
+
blockClassName?: string;
|
|
23
|
+
onChange?: any;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
isClearable?: boolean;
|
|
26
|
+
hasArrow?: boolean;
|
|
27
|
+
fullWidth?: boolean;
|
|
28
|
+
autoWidth?: boolean;
|
|
29
|
+
ellips?: boolean;
|
|
30
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
31
|
+
color?: 'white' | 'grey';
|
|
32
|
+
style?: 'ghost' | 'ghost_underline' | 'highlighted';
|
|
33
|
+
autocomplete?: boolean;
|
|
34
|
+
autocompleteValue?: any;
|
|
35
|
+
autocompletePlaceholder?: string;
|
|
36
|
+
autocompleteEmptyState?: React.ReactNode;
|
|
37
|
+
onAutocomplete?: any;
|
|
38
|
+
autocompleteIsLoading?: boolean;
|
|
39
|
+
clearAutocompleteOnClose?: boolean;
|
|
40
|
+
hasHoverSidebar?: boolean;
|
|
41
|
+
hoverSidebarRender?: Function;
|
|
42
|
+
hoverSidebarPlaceholder?: React.ReactNode | string;
|
|
43
|
+
}
|
|
44
|
+
export { ISelect, IOption };
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,15 +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/Btn/Btn';
|
|
3
|
+
import { Btn, BtnGroup } from './components/Btn/Btn';
|
|
4
4
|
import { Checkbox, Radio, Switch, CheckboxList } from './components/Checkbox/Checkbox';
|
|
5
5
|
import Collapse from './components/Collapse/Collapse';
|
|
6
6
|
import { Confirm } from './components/Confirm/Confirm';
|
|
7
7
|
import { Dropdown } from './components/Dropdown/Dropdown';
|
|
8
|
+
import { EmptyState } from './components/EmptyState/EmptyState';
|
|
8
9
|
import { Fieldset } from './components/Fieldset/Fieldset';
|
|
9
10
|
import { IconBtn } from './components/IconBtn/IconBtn';
|
|
10
11
|
import { List, ListItem } from './components/List/List';
|
|
11
12
|
import { Listbox, ListboxItem, ListboxSep } from './components/Listbox/Listbox';
|
|
12
13
|
import { Mask } from './components/Mask/Mask';
|
|
14
|
+
import { Message } from './components/Message/Message';
|
|
13
15
|
import { Modal, ModalHeader, ModalBody, ModalFooter } from './components/Modal/Modal';
|
|
14
16
|
import { Panel, PanelClose, PanelHeader, PanelBody } from './components/Panel/Panel';
|
|
15
17
|
import { Picto } from './components/Picto/Picto';
|
|
@@ -18,5 +20,5 @@ import { Section } from './components/Section/Section';
|
|
|
18
20
|
import { Spinner } from './components/Spinner/Spinner';
|
|
19
21
|
import { Textfield, TextfieldIcon, SearchBar } from './components/Textfield/Textfield';
|
|
20
22
|
declare const Theme: any;
|
|
21
|
-
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, Checkbox, CheckboxList, Collapse, // Not OK
|
|
22
|
-
Confirm, Dropdown, Fieldset, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, SearchBar, Spinner, Switch, Textfield, TextfieldIcon };
|
|
23
|
+
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, BtnGroup, Checkbox, CheckboxList, Collapse, // Not OK
|
|
24
|
+
Confirm, Dropdown, EmptyState, Fieldset, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Message, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, SearchBar, Spinner, Switch, Textfield, TextfieldIcon };
|