ui-beyable 1.0.3 → 1.0.4
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/Avatar/Avatar.d.ts +5 -0
- package/lib/cjs/components/Avatar/type.d.ts +5 -0
- package/lib/cjs/components/Breadcrumb/BYbreadcrumbItem.d.ts +4 -0
- package/lib/cjs/components/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/lib/cjs/components/Breadcrumb/type.d.ts +21 -0
- package/lib/cjs/components/Checkbox/Checkbox.d.ts +4 -0
- package/lib/cjs/components/Checkbox/type.d.ts +15 -0
- package/lib/cjs/components/InputCustom/InputCustom.d.ts +10 -0
- package/lib/cjs/components/InputCustom/types.d.ts +40 -0
- package/lib/cjs/components/Spinner/Spinner.d.ts +4 -0
- package/lib/cjs/components/Spinner/type.d.ts +3 -0
- package/lib/cjs/components/SpinnerWheel/BYspinnerWheel.d.ts +6 -0
- package/lib/cjs/components/SpinnerWheel/type.d.ts +5 -0
- package/lib/cjs/index.css +3 -3
- package/lib/cjs/index.css.map +1 -1
- package/lib/cjs/index.d.ts +11 -5
- package/lib/cjs/index.js +4755 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/Avatar/Avatar.d.ts +5 -0
- package/lib/esm/components/Avatar/type.d.ts +5 -0
- package/lib/esm/components/Breadcrumb/BYbreadcrumbItem.d.ts +4 -0
- package/lib/esm/components/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/lib/esm/components/Breadcrumb/type.d.ts +21 -0
- package/lib/esm/components/Checkbox/Checkbox.d.ts +4 -0
- package/lib/esm/components/Checkbox/type.d.ts +15 -0
- package/lib/esm/components/InputCustom/InputCustom.d.ts +10 -0
- package/lib/esm/components/InputCustom/types.d.ts +40 -0
- package/lib/esm/components/Spinner/Spinner.d.ts +4 -0
- package/lib/esm/components/Spinner/type.d.ts +3 -0
- package/lib/esm/components/SpinnerWheel/BYspinnerWheel.d.ts +6 -0
- package/lib/esm/components/SpinnerWheel/type.d.ts +5 -0
- package/lib/esm/index.css +3 -3
- package/lib/esm/index.css.map +1 -1
- package/lib/esm/index.d.ts +11 -5
- package/lib/esm/index.js +4751 -2
- package/lib/esm/index.js.map +1 -1
- package/package.json +19 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IBYbreadcrumb {
|
|
2
|
+
itemOfBreadcrumb: IitemOfBreadcrumb[];
|
|
3
|
+
onClickFunction: (e: any) => void;
|
|
4
|
+
stepSelected?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IBYbreadcrumbItem {
|
|
7
|
+
index: number;
|
|
8
|
+
name?: string;
|
|
9
|
+
onClickFunction: (e: number) => void;
|
|
10
|
+
stepSelected?: number;
|
|
11
|
+
showIndex?: number;
|
|
12
|
+
}
|
|
13
|
+
interface IitemOfBreadcrumb {
|
|
14
|
+
index: number;
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const mockIItemOfBreadcrumb: {
|
|
18
|
+
index: number;
|
|
19
|
+
title: string;
|
|
20
|
+
}[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IBYcheckbox {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: any;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
forcedChecked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange: (e?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
size?: "" | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
label?: string;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
}
|
|
15
|
+
export type { IBYcheckbox };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IBYinputCustom } from './types';
|
|
3
|
+
import './inputCustom.css';
|
|
4
|
+
declare function InputCustom({ value, type, onChange, handleChangeForm, // DEPRECATED : replace by onChange
|
|
5
|
+
placeholder, placeHolder, disabled, readonly, name, min, max, label, labelClassName, description, descriptionBottom, labelTooltip, blockClassName, size, color, unit, isAnError, fullWidth, width, // 'Full' || 's' || 'xs' || 'xxs'
|
|
6
|
+
className, style, selectOnFocus, autoFocus, spellCheck, onEnter, onFocus, onBlur, append, prepend, rows, // For textarea
|
|
7
|
+
autogrow, // Vertical for textarea, Horizontal for text
|
|
8
|
+
maxHeight, // For textarea autogrow
|
|
9
|
+
maxWidth }: IBYinputCustom): JSX.Element;
|
|
10
|
+
export default InputCustom;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface IBYinputCustom {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
type?: "text" | "textarea" | "number";
|
|
5
|
+
onChange?: (e: any) => void;
|
|
6
|
+
handleChangeForm?: (e: any) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
placeHolder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
min?: any;
|
|
13
|
+
max?: any;
|
|
14
|
+
label?: string;
|
|
15
|
+
labelClassName?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
descriptionBottom?: string;
|
|
18
|
+
labelTooltip?: string;
|
|
19
|
+
blockClassName?: string;
|
|
20
|
+
size?: "" | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
21
|
+
color?: "grey" | "white";
|
|
22
|
+
unit?: string;
|
|
23
|
+
isAnError?: string;
|
|
24
|
+
fullWidth?: boolean | null;
|
|
25
|
+
width?: string | null;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: string;
|
|
28
|
+
selectOnFocus?: boolean;
|
|
29
|
+
autoFocus?: boolean;
|
|
30
|
+
spellCheck?: boolean;
|
|
31
|
+
onEnter?: (e: any) => void;
|
|
32
|
+
onFocus?: (e: any) => void;
|
|
33
|
+
onBlur?: (e: any) => void;
|
|
34
|
+
append?: ReactElement;
|
|
35
|
+
prepend?: ReactElement;
|
|
36
|
+
rows?: number | string;
|
|
37
|
+
autogrow?: boolean;
|
|
38
|
+
maxHeight?: number;
|
|
39
|
+
maxWidth?: number;
|
|
40
|
+
}
|