@paubox/ui 0.7.4 → 0.8.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.7.4",
5
+ "version": "0.8.1",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -0,0 +1,2 @@
1
+ import { IconProps } from './SvgProps';
2
+ export declare const FilterList: (props: IconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -9,6 +9,7 @@ export * from './Close';
9
9
  export * from './Delete';
10
10
  export * from './Edit';
11
11
  export * from './Error';
12
+ export * from './FilterList';
12
13
  export * from './Info';
13
14
  export * from './LoadingWheel';
14
15
  export * from './MoreVertical';
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';
@@ -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 {};