ui-beyable 1.0.21 → 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/Dropdown/Dropdown.d.ts +3 -3
- package/lib/cjs/components/Dropdown/types.d.ts +4 -1
- package/lib/cjs/components/Select/Select.d.ts +3 -0
- package/lib/cjs/components/Select/types.d.ts +44 -0
- package/lib/cjs/index.js +258 -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 +3 -0
- package/lib/esm/components/Select/types.d.ts +44 -0
- package/lib/esm/index.js +258 -252
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,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 };
|