@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/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.10.1",
5
+ "version": "0.11.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -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,3 +1,4 @@
1
1
  export * from './Input';
2
2
  export * from './MultiSelect';
3
3
  export * from './Search';
4
+ export * from './TextArea';
@@ -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 React from 'react';
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: React.FC<ToggleProps>;
11
+ export declare const Toggle: FC<ToggleProps>;