@paubox/ui 0.10.1 → 0.11.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/index.esm.js +832 -628
- package/package.json +1 -1
- package/src/lib/Inputs/TextArea.d.ts +16 -0
- package/src/lib/Inputs/index.d.ts +1 -0
- package/src/lib/SearchBar/SearchBar.d.ts +1 -2
- package/src/lib/Toggle/Toggle.d.ts +4 -2
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
sz?: 'sm' | 'lg';
|
|
4
|
+
error?: boolean;
|
|
5
|
+
clearable?: boolean;
|
|
6
|
+
onClear?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: React.ElementType;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const BaseTextArea: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
} & TextAreaProps, import("react").DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {}>;
|
|
16
|
+
export declare const TextArea: ({ sz, error, clearable, onClear, style, ...props }: TextAreaProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
+
export interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
onClear?: () => void;
|
|
5
5
|
onSubmit: () => void;
|
|
@@ -8,4 +8,3 @@ interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
8
8
|
showFilters?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const SearchBar: ({ placeholder, error, onClear, onSubmit, showButton, showFilters, ...props }: SearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
2
2
|
import { UseSwitchParameters } from '@mui/base/useSwitch';
|
|
3
3
|
export type ToggleProps = UseSwitchParameters & {
|
|
4
|
+
inputProps?: Partial<InputHTMLAttributes<HTMLInputElement>>;
|
|
5
|
+
labelProps?: Partial<LabelHTMLAttributes<HTMLDivElement>>;
|
|
4
6
|
className?: string;
|
|
5
7
|
labelText?: string;
|
|
6
8
|
align?: 'left' | 'right';
|
|
7
9
|
size?: 'large' | 'small';
|
|
8
10
|
};
|
|
9
|
-
export declare const Toggle:
|
|
11
|
+
export declare const Toggle: FC<ToggleProps>;
|