@wavv/ui 1.7.11 → 1.7.12

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.
@@ -43,7 +43,7 @@ declare const Form: {
43
43
  } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & import("./types").As & {
44
44
  phone?: undefined;
45
45
  onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
46
- } & import("./types").Margin, "ref"> | Omit<{
46
+ } & import("./types").Margin & import("./types").Padding, "ref"> | Omit<{
47
47
  id?: string | undefined;
48
48
  label?: string | undefined;
49
49
  placeholder?: string | undefined;
@@ -75,7 +75,7 @@ declare const Form: {
75
75
  } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & import("./types").As & {
76
76
  phone: true;
77
77
  onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void) | undefined;
78
- } & import("./types").Margin, "ref">) & import("react").RefAttributes<import("./types").InputRef>>;
78
+ } & import("./types").Margin & import("./types").Padding, "ref">) & import("react").RefAttributes<import("./types").InputRef>>;
79
79
  Dropdown: {
80
80
  <OptionType extends import("./Dropdown").DropdownOption>({ onChange, onTextChange, afterShow, afterHide, onFocus, onBlur, onError, placeholder, placeholderColor, value, options, children, borderless, borderColor, backgroundColor, hideIcon, clearOnSelect, textOnly, width, height, isLoading, margin, marginTop, marginBottom, marginRight, marginLeft, label, id, name, trigger, centerY, centerX, offsetY, offsetX, direction, fontSize, description, disabled, invalid, search, filter, restrictInput, inputRef, optionsParent, ...props }: {
81
81
  children?: ReactNode;
@@ -1,6 +1,6 @@
1
- import { ChangeEvent, MutableRefObject, MouseEvent, HTMLProps } from 'react';
2
- import { As, InputFocusEvent, InputRef, Margin } from './types';
1
+ import { ChangeEvent, HTMLProps, MouseEvent, MutableRefObject } from 'react';
3
2
  import { IconType } from './helpers/getIcon';
3
+ import { As, InputFocusEvent, InputRef, MarginPadding } from './types';
4
4
  type OnClear = () => void;
5
5
  type OnChangeDefault = (event: ChangeEvent<HTMLInputElement>) => void;
6
6
  type OnChangePhone = (event: ChangeEvent<HTMLInputElement>, formatted: string, raw: string) => void;
@@ -73,7 +73,7 @@ export type InputProps = {
73
73
  onClick?: (event?: MouseEvent) => void;
74
74
  /** A callback function that is run upon clicking the clear icon */
75
75
  onClear?: OnClear;
76
- } & DefaultInputProps & InputTypes & Margin;
76
+ } & DefaultInputProps & InputTypes & MarginPadding;
77
77
  declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
78
78
  /** The id of the input element */
79
79
  id?: string | undefined;
@@ -131,7 +131,7 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
131
131
  onClick?: ((event?: MouseEvent) => void) | undefined;
132
132
  /** A callback function that is run upon clicking the clear icon */
133
133
  onClear?: OnClear | undefined;
134
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Default & Margin, "ref"> | Omit<{
134
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Default & import("./types").Margin & import("./types").Padding, "ref"> | Omit<{
135
135
  /** The id of the input element */
136
136
  id?: string | undefined;
137
137
  /** Places a label element above the input. The value will set the text of the label */
@@ -188,5 +188,5 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
188
188
  onClick?: ((event?: MouseEvent) => void) | undefined;
189
189
  /** A callback function that is run upon clicking the clear icon */
190
190
  onClear?: OnClear | undefined;
191
- } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Phone & Margin, "ref">) & import("react").RefAttributes<InputRef>>;
191
+ } & Omit<HTMLProps<HTMLInputElement>, "as" | "onChange"> & As & Phone & import("./types").Margin & import("./types").Padding, "ref">) & import("react").RefAttributes<InputRef>>;
192
192
  export default Input;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Margin, ThemeProp, InputFocusEvent } from './types';
2
+ import { InputFocusEvent, ThemeProp } from './types';
3
3
  type FocusCallBack = (event?: InputFocusEvent) => void;
4
4
  export declare const useInputFocus: (onFocus?: FocusCallBack, onBlur?: FocusCallBack, focusCondition?: boolean) => {
5
5
  focused: boolean;
@@ -22,7 +22,7 @@ export declare const InputContainer: import("@emotion/styled").StyledComponent<{
22
22
  invalid?: boolean | undefined;
23
23
  disabled?: boolean | undefined;
24
24
  hasLabel?: boolean | undefined;
25
- } & import("./types").Width & import("./types").Height & Margin & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ } & import("./types").Width & import("./types").Height & import("./types").Margin & import("./types").Padding & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
26
  export declare const InputWrapper: import("@emotion/styled").StyledComponent<{
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
28
  as?: import("react").ElementType<any> | undefined;
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  invalid?: boolean | undefined;
54
54
  disabled?: boolean | undefined;
55
55
  hasLabel?: boolean | undefined;
56
- } & import("./types").Width & import("./types").Height & Margin & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
56
+ } & import("./types").Width & import("./types").Height & import("./types").Margin & import("./types").Padding & ThemeProp, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
57
57
  Wrapper: import("@emotion/styled").StyledComponent<{
58
58
  theme?: import("@emotion/react").Theme | undefined;
59
59
  as?: import("react").ElementType<any> | undefined;