@paubox/ui 0.7.3 → 0.8.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 +1082 -728
- package/package.json +1 -1
- package/src/icons/FilterList.d.ts +2 -0
- package/src/icons/index.d.ts +1 -0
- package/src/index.d.ts +2 -0
- package/src/lib/Button/Button.d.ts +2 -2
- package/src/lib/IconButton/IconButton.d.ts +8 -0
- package/src/lib/Inputs/Input.d.ts +14 -0
- package/src/lib/Inputs/MultiSelect.d.ts +0 -4
- package/src/lib/SearchBar/SearchBar.d.ts +11 -0
package/package.json
CHANGED
package/src/icons/index.d.ts
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ export * from './lib/Checkbox/Checkbox';
|
|
|
5
5
|
export * from './lib/DatePicker/DatePicker';
|
|
6
6
|
export * from './lib/Dropdown/Dropdown';
|
|
7
7
|
export * from './lib/Dropdown/DropdownOption';
|
|
8
|
+
export * from './lib/IconButton/IconButton';
|
|
8
9
|
export * from './lib/Inputs/index';
|
|
9
10
|
export * from './lib/Modal/Modal';
|
|
10
11
|
export * from './lib/Pagination/Pagination';
|
|
11
12
|
export * from './lib/Popper/Popper';
|
|
12
13
|
export * from './lib/RadioButton/RadioButton';
|
|
13
14
|
export * from './lib/RadioGroup/RadioGroup';
|
|
15
|
+
export * from './lib/SearchBar/SearchBar';
|
|
14
16
|
export * from './lib/Table/Table';
|
|
15
17
|
export * from './lib/Tooltip/Tooltip';
|
|
16
18
|
export * from './lib/Typography/Typography';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseButtonProps } from './BaseButton';
|
|
3
3
|
export interface ButtonProps extends Omit<BaseButtonProps, 'round'> {
|
|
4
|
-
iconLeft?: React.
|
|
5
|
-
iconRight?: React.
|
|
4
|
+
iconLeft?: React.ElementType;
|
|
5
|
+
iconRight?: React.ElementType;
|
|
6
6
|
}
|
|
7
7
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseButtonProps } from '../Button/BaseButton';
|
|
3
|
+
export interface IconButtonProps extends Omit<BaseButtonProps, 'round' | 'children'> {
|
|
4
|
+
icon: React.ElementType;
|
|
5
|
+
circular?: boolean;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,4 +4,18 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
4
4
|
leftIcon?: React.ElementType;
|
|
5
5
|
rightIcon?: React.ElementType;
|
|
6
6
|
}
|
|
7
|
+
export declare const InputWrapper: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const BaseInput: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
} & InputProps, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
15
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
} & {
|
|
19
|
+
position: "left" | "right";
|
|
20
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
7
21
|
export declare const Input: ({ leftIcon: LeftIcon, rightIcon: RightIcon, sz, error, style, ...props }: InputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -12,8 +12,4 @@ export interface MultiSelectProps extends React.InputHTMLAttributes<HTMLSelectEl
|
|
|
12
12
|
export interface ChipProps {
|
|
13
13
|
sz?: 'sm' | 'lg';
|
|
14
14
|
}
|
|
15
|
-
export declare const InputWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
15
|
export declare const MultiSelect: ({ sz, error, options, ...props }: MultiSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
onClear?: () => void;
|
|
5
|
+
onSubmit: () => void;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
showButton?: boolean;
|
|
8
|
+
showFilters?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SearchBar: ({ placeholder, error, onClear, onSubmit, showButton, showFilters, ...props }: SearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|