@goodhood-web/ui 1.12.0-development.11 → 1.12.0-development.13

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.
@@ -1,4 +1,4 @@
1
1
  import { IconButtonProps } from './IconButton.types';
2
2
 
3
- declare const IconButton: ({ className, icon, iconClassName, size, variant, ...baseButtonProps }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const IconButton: ({ className, icon, iconClassName, loading, size, variant, ...baseButtonProps }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default IconButton;
@@ -8,17 +8,17 @@ type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
8
8
  }) & {
9
9
  className?: string;
10
10
  iconClassName?: string;
11
+ loading?: boolean;
11
12
  type?: 'button' | 'submit' | 'reset';
13
+ variant?: 'green' | 'white';
12
14
  };
13
- type IconButtonIcon24Props = {
15
+ export type IconButtonIcon24Props = {
14
16
  icon: Icon24;
15
17
  size?: 'small';
16
- variant?: 'circular';
17
18
  } & BaseIconButtonProps;
18
- type IconButtonIcon32Props = {
19
+ export type IconButtonIcon32Props = {
19
20
  icon: Icon32;
20
21
  size: 'medium' | 'large';
21
- variant?: 'circular';
22
22
  } & BaseIconButtonProps;
23
23
  export type IconButtonProps = IconButtonIcon32Props | IconButtonIcon24Props;
24
24
  export {};
@@ -0,0 +1,4 @@
1
+ import { default as InputDetailsProps } from './InputDetails.types';
2
+
3
+ declare const InputDetails: ({ charCount, charLimit, errorText, hintText, }: InputDetailsProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default InputDetails;
@@ -0,0 +1,6 @@
1
+ export default interface InputDetailsProps {
2
+ charCount?: number;
3
+ charLimit?: number;
4
+ errorText?: string;
5
+ hintText?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { TextAreaInputProps } from './TextAreaInput.types';
2
+
3
+ declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, name, ref, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default TextAreaInput;
@@ -0,0 +1,7 @@
1
+ import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
2
+ import { CommonTextInputProps } from '../TextInput/TextInput.types';
3
+
4
+ export interface TextAreaInputProps extends CommonTextInputProps {
5
+ attachment?: Pick<IconButtonIcon24Props, 'icon' | 'onClick' | 'ariaLabel' | 'disabled'>[];
6
+ size: 'medium' | 'large';
7
+ }
@@ -1,4 +1,4 @@
1
1
  import { TextInputProps } from './TextInput.types';
2
2
 
3
- declare const TextInput: ({ colorScheme, errorMessage, id, label, name, ref, size, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const TextInput: ({ ariaDescribedby, charLimit, colorScheme, errorText, hintText, icon, id, inputFieldType, label, name, ref, size, textButton, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default TextInput;
@@ -1,12 +1,22 @@
1
- import { UseInputParameters } from '@mui/base/useInput';
2
- import { ForwardedRef } from 'react';
1
+ import { UseInputParameters } from '@mui/base';
2
+ import { ForwardedRef, HTMLInputTypeAttribute } from 'react';
3
+ import { IconProps } from '../../../Base/Icon/Icon.types';
4
+ import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
3
5
 
4
- export interface TextInputProps extends UseInputParameters {
5
- colorScheme: 'light' | 'dark';
6
- errorMessage?: string;
6
+ export interface CommonTextInputProps extends UseInputParameters {
7
+ ariaDescribedby?: string;
8
+ charLimit?: number;
9
+ colorScheme?: 'outline' | 'filled';
10
+ errorText?: string;
11
+ hintText?: string;
7
12
  id: string;
8
13
  label: string;
9
14
  name?: string;
10
15
  ref?: ForwardedRef<null>;
11
- size: 'small' | 'medium';
16
+ }
17
+ export interface TextInputProps extends CommonTextInputProps {
18
+ icon?: IconProps;
19
+ inputFieldType?: HTMLInputTypeAttribute;
20
+ size: 'medium' | 'large' | 'small';
21
+ textButton?: IconButtonIcon24Props;
12
22
  }
@@ -6,7 +6,7 @@ export interface SheetProps {
6
6
  ariaLabel?: string;
7
7
  ariaLabelledBy?: string;
8
8
  closeButtonText?: string;
9
- onClose: () => void;
9
+ onClose?: () => void;
10
10
  open: boolean;
11
11
  sheetBody?: ReactElement<CardBodyProps>;
12
12
  sheetFooter?: ReactElement<CardHeaderProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.12.0-development.11",
3
+ "version": "1.12.0-development.13",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",