ui-beyable 1.0.16 → 1.0.18
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/lib/cjs/components/Btn/types.d.ts +1 -1
- package/lib/cjs/components/Confirm/Confirm.d.ts +4 -0
- package/lib/cjs/components/Confirm/types.d.ts +17 -0
- package/lib/cjs/components/Fieldset/Fieldset.d.ts +4 -0
- package/lib/cjs/components/Fieldset/types.d.ts +13 -0
- package/lib/cjs/components/Modal/Modal.d.ts +1 -1
- package/lib/cjs/components/Modal/types.d.ts +4 -3
- package/lib/cjs/components/Textfield/Textfield.d.ts +9 -0
- package/lib/cjs/components/Textfield/types.d.ts +52 -0
- package/lib/cjs/index.d.ts +4 -1
- package/lib/cjs/index.js +601 -314
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/Btn/types.d.ts +1 -1
- package/lib/esm/components/Confirm/Confirm.d.ts +4 -0
- package/lib/esm/components/Confirm/types.d.ts +17 -0
- package/lib/esm/components/Fieldset/Fieldset.d.ts +4 -0
- package/lib/esm/components/Fieldset/types.d.ts +13 -0
- package/lib/esm/components/Modal/Modal.d.ts +1 -1
- package/lib/esm/components/Modal/types.d.ts +4 -3
- package/lib/esm/components/Textfield/Textfield.d.ts +9 -0
- package/lib/esm/components/Textfield/types.d.ts +52 -0
- package/lib/esm/index.d.ts +4 -1
- package/lib/esm/index.js +598 -315
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IConfirm } from './types';
|
|
3
|
+
declare function Confirm({ children, title, text, isOpen, onClose, confirmCallback, cancelCallback, confirmText, cancelText, confirmColor, confirmInput, confirmInputLabel, width }: IConfirm): JSX.Element;
|
|
4
|
+
export { Confirm };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IConfirm {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
title?: React.ReactNode | string;
|
|
5
|
+
text?: React.ReactNode | string;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose?: () => any;
|
|
8
|
+
confirmCallback?: () => any;
|
|
9
|
+
cancelCallback?: () => any;
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
confirmColor?: 'primary' | 'secondary' | 'alert' | 'warning' | 'success' | 'black';
|
|
13
|
+
confirmInput?: string;
|
|
14
|
+
confirmInputLabel?: React.ReactNode | string;
|
|
15
|
+
width?: number;
|
|
16
|
+
}
|
|
17
|
+
export { IConfirm };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IFieldset {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
label: React.ReactNode | string;
|
|
5
|
+
description?: React.ReactNode | string;
|
|
6
|
+
labelClassName?: string;
|
|
7
|
+
blockClassName?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
tooltipHTML?: any;
|
|
10
|
+
inputID?: string | number;
|
|
11
|
+
append?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export { IFieldset };
|
|
@@ -2,6 +2,6 @@
|
|
|
2
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
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;
|
|
5
|
+
declare function ModalBody({ children, className, style, backgroundColor, position, hasVerticalPadding, hasHorizontalPadding }: IModalBody): JSX.Element;
|
|
6
6
|
declare function ModalFooter({ children, className, align, primaryAction, secondaryAction, hasBorder, }: IModalFooter): JSX.Element;
|
|
7
7
|
export { Modal, ModalHeader, ModalBody, ModalFooter };
|
|
@@ -4,9 +4,9 @@ interface IModal {
|
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose?: (e: any) => any;
|
|
6
6
|
noClose?: boolean;
|
|
7
|
-
width?:
|
|
8
|
-
height?:
|
|
9
|
-
minHeight?:
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
minHeight?: number;
|
|
10
10
|
fullScreen?: boolean;
|
|
11
11
|
animation?: string;
|
|
12
12
|
}
|
|
@@ -26,6 +26,7 @@ interface IModalBody {
|
|
|
26
26
|
backgroundColor?: 'grey' | 'white';
|
|
27
27
|
position?: 'static' | 'relative';
|
|
28
28
|
hasVerticalPadding?: boolean;
|
|
29
|
+
hasHorizontalPadding?: boolean;
|
|
29
30
|
}
|
|
30
31
|
interface IModalFooter {
|
|
31
32
|
children?: React.ReactNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITextfield, ITextfieldIcon } from './types';
|
|
3
|
+
declare function Textfield({ value, name, type, placeholder, rows, // For textarea
|
|
4
|
+
min, max, onChange, onEnter, onFocus, onBlur, disabled, readonly, clearable, selectOnFocus, autoFocus, autoComplete, forceFocus, spellCheck, autogrow, // Vertical for textarea, Horizontal for text
|
|
5
|
+
label, labelTooltip, labelTooltipHTML, description, descriptionBottom, errorMessage, unit, append, prepend, icon, iconPosition, className, labelClassName, blockClassName, size, horizontalSize, color, style, doBtnHug, textAlign, fullWidth, width, // 'Full' || 'xl' || 'l' || 's' || 'xs' || 'xxs'
|
|
6
|
+
maxHeight, // For textarea autogrow
|
|
7
|
+
maxWidth, }: ITextfield): JSX.Element;
|
|
8
|
+
declare function TextfieldIcon({ icon, position }: ITextfieldIcon): JSX.Element;
|
|
9
|
+
export { Textfield, TextfieldIcon };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ITextfield {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
rows?: number;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
onChange?: any;
|
|
11
|
+
onEnter?: any;
|
|
12
|
+
onFocus?: any;
|
|
13
|
+
onBlur?: any;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
selectOnFocus?: boolean;
|
|
18
|
+
autoFocus?: boolean;
|
|
19
|
+
autoComplete?: boolean;
|
|
20
|
+
forceFocus?: boolean;
|
|
21
|
+
spellCheck?: boolean;
|
|
22
|
+
autogrow?: boolean;
|
|
23
|
+
label?: React.ReactNode | string;
|
|
24
|
+
labelTooltip?: string;
|
|
25
|
+
labelTooltipHTML?: any;
|
|
26
|
+
description?: React.ReactNode | string;
|
|
27
|
+
descriptionBottom?: React.ReactNode | string;
|
|
28
|
+
errorMessage?: React.ReactNode | string;
|
|
29
|
+
unit?: string;
|
|
30
|
+
append?: React.ReactNode;
|
|
31
|
+
prepend?: React.ReactNode;
|
|
32
|
+
icon?: string;
|
|
33
|
+
iconPosition?: 'before' | 'after';
|
|
34
|
+
className?: string;
|
|
35
|
+
labelClassName?: string;
|
|
36
|
+
blockClassName?: string;
|
|
37
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
38
|
+
horizontalSize?: 'm' | 's';
|
|
39
|
+
color?: 'white' | 'grey';
|
|
40
|
+
style?: 'ghost' | 'ghost_underline' | 'highlighted';
|
|
41
|
+
doBtnHug?: boolean;
|
|
42
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
43
|
+
fullWidth?: boolean;
|
|
44
|
+
width?: 'auto' | 'full' | 'xl' | 'l' | 's' | 'xs' | 'xxs';
|
|
45
|
+
maxHeight?: number;
|
|
46
|
+
maxWidth?: number;
|
|
47
|
+
}
|
|
48
|
+
interface ITextfieldIcon {
|
|
49
|
+
icon?: string;
|
|
50
|
+
position?: 'before' | 'after';
|
|
51
|
+
}
|
|
52
|
+
export { ITextfield, ITextfieldIcon };
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ 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 { Confirm } from './components/Confirm/Confirm';
|
|
6
7
|
import { Dropdown } from './components/Dropdown/Dropdown';
|
|
8
|
+
import { Fieldset } from './components/Fieldset/Fieldset';
|
|
7
9
|
import { IconBtn } from './components/IconBtn/IconBtn';
|
|
8
10
|
import { List, ListItem } from './components/List/List';
|
|
9
11
|
import { Listbox, ListboxItem, ListboxSep } from './components/Listbox/Listbox';
|
|
@@ -14,6 +16,7 @@ import { Picto } from './components/Picto/Picto';
|
|
|
14
16
|
import { Portal } from './components/Portal/Portal';
|
|
15
17
|
import { Section } from './components/Section/Section';
|
|
16
18
|
import { Spinner } from './components/Spinner/Spinner';
|
|
19
|
+
import { Textfield, TextfieldIcon } from './components/Textfield/Textfield';
|
|
17
20
|
declare const Theme: any;
|
|
18
21
|
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Article, Btn, Checkbox, CheckboxList, Collapse, // Not OK
|
|
19
|
-
Dropdown, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, Spinner, Switch, };
|
|
22
|
+
Confirm, Dropdown, Fieldset, IconBtn, List, ListItem, Listbox, ListboxItem, ListboxSep, Mask, Modal, ModalHeader, ModalBody, ModalFooter, Panel, PanelClose, PanelHeader, PanelBody, Picto, Portal, Radio, Section, Spinner, Switch, Textfield, TextfieldIcon };
|