@okshaun/components 0.2.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -98,13 +98,15 @@ declare type ButtonComponent = <E extends React_2.ElementType = 'button'>(props:
98
98
  * It includes props for the element type E (default "button") and ButtonVariantProps.
99
99
  * This means that any prop accepted by the underlying element (e.g. onClick) is automatically allowed.
100
100
  */
101
- declare type ButtonProps<E extends React_2.ElementType = 'button'> = React_2.ComponentPropsWithoutRef<E> & ButtonVariantProps & {
101
+ declare type ButtonProps<E extends React_2.ElementType = 'button'> = React_2.ComponentPropsWithoutRef<E> & Omit<ButtonVariantProps, 'iconBefore' | 'iconAfter'> & {
102
102
  as?: E;
103
103
  href?: string;
104
104
  loading?: boolean;
105
105
  className?: string;
106
106
  children?: React_2.ReactNode;
107
107
  disabled?: boolean;
108
+ iconBefore?: IconNamesList;
109
+ iconAfter?: IconNamesList;
108
110
  };
109
111
 
110
112
  export declare const Card: React.FC<CardProps>;
@@ -133,11 +135,12 @@ export declare const CheckboxInput: FC<CheckboxInputProps>;
133
135
 
134
136
  declare type CheckboxInputProps = BoxProps & CheckboxInputVariantProps & {
135
137
  name: string;
138
+ checked: boolean;
139
+ onChange: ChangeEventHandler<HTMLInputElement>;
136
140
  id?: string;
137
141
  error?: boolean;
138
142
  children?: string | ReactNode;
139
- checked: boolean;
140
- onChange: ChangeEventHandler<HTMLInputElement>;
143
+ disabled?: boolean;
141
144
  };
142
145
 
143
146
  declare type CheckboxProps = {
@@ -201,8 +204,6 @@ declare type IconButtonProps<E extends React_2.ElementType = 'button'> = React_2
201
204
  as?: E;
202
205
  href?: string;
203
206
  loading?: boolean;
204
- loadingText?: React_2.ReactNode;
205
- children?: React_2.ReactNode;
206
207
  disabled?: boolean;
207
208
  className?: string;
208
209
  iconName?: IconNamesList;
@@ -758,9 +759,7 @@ export declare const Textarea: React.FC<TextareaProps>;
758
759
 
759
760
  declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
760
761
  name: string;
761
- autoSize?: boolean;
762
762
  error?: boolean;
763
- disabled?: boolean;
764
763
  id?: string;
765
764
  };
766
765
 
@@ -770,8 +769,7 @@ declare type TextInputProps = Omit<BoxProps, keyof TextinputVariantProps> & Text
770
769
  name: string;
771
770
  error?: boolean;
772
771
  id?: string;
773
- 'aria-describedby'?: string;
774
- } & AriaAttributes;
772
+ };
775
773
 
776
774
  declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
777
775
  italic?: boolean;