ui-beyable 1.0.21 → 1.0.22-beta.1
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/Dropdown/Dropdown.d.ts +3 -3
- package/lib/cjs/components/Dropdown/types.d.ts +4 -1
- package/lib/cjs/components/Select/Select.d.ts +4 -0
- package/lib/cjs/components/Select/types.d.ts +44 -0
- package/lib/cjs/index.d.ts +3 -2
- package/lib/cjs/index.js +414 -252
- package/lib/cjs/index.js.map +1 -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/Select/Select.d.ts +4 -0
- package/lib/esm/components/Select/types.d.ts +44 -0
- package/lib/esm/index.d.ts +3 -2
- package/lib/esm/index.js +413 -253
- 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,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 { ISelect } from './types';
|
|
3
|
+
declare function Select({ 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;
|
|
4
|
+
export { Select };
|
|
@@ -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
|
@@ -4,7 +4,7 @@ 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
|
-
import { Dropdown } from './components/Dropdown/Dropdown';
|
|
7
|
+
import { Dropdown, DropdownSection } from './components/Dropdown/Dropdown';
|
|
8
8
|
import { EmptyState } from './components/EmptyState/EmptyState';
|
|
9
9
|
import { Fieldset } from './components/Fieldset/Fieldset';
|
|
10
10
|
import { IconBtn } from './components/IconBtn/IconBtn';
|
|
@@ -17,8 +17,9 @@ import { Panel, PanelClose, PanelHeader, PanelBody } from './components/Panel/Pa
|
|
|
17
17
|
import { Picto } from './components/Picto/Picto';
|
|
18
18
|
import { Portal } from './components/Portal/Portal';
|
|
19
19
|
import { Section } from './components/Section/Section';
|
|
20
|
+
import { Select } from './components/Select/Select';
|
|
20
21
|
import { Spinner } from './components/Spinner/Spinner';
|
|
21
22
|
import { Textfield, TextfieldIcon, SearchBar } from './components/Textfield/Textfield';
|
|
22
23
|
declare const Theme: any;
|
|
23
24
|
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,
|
|
25
|
+
Confirm, Dropdown, DropdownSection, EmptyState, Fieldset, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Message, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, SearchBar, Section, Select, Spinner, Switch, Textfield, TextfieldIcon };
|