@goodhood-web/nebenan-base 4.1.0-development.1 → 4.1.0-development.2

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,5 +1,5 @@
1
1
  import { UseControllerProps } from 'react-hook-form';
2
2
  import { default as PhoneInputProps } from './PhoneInput/PhoneInput.types';
3
3
  export type FormPhoneInputProps = UseControllerProps & Omit<PhoneInputProps, 'onChange'>;
4
- export declare const FormPhoneInput: ({ disabledSelect, inputId, name, placeholder, rules, selectId, size, styleInput, styleSelect, }: FormPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const FormPhoneInput: ({ disabledSelect, inputId, label, name, rules, selectId, size, styleInput, styleSelect, }: FormPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default FormPhoneInput;
@@ -1,3 +1,3 @@
1
1
  import { default as PhoneInputProps } from './PhoneInput.types';
2
- declare const PhoneInput: ({ defaultSelectValue, disabledSelect, errorText, inputId, onChange, placeholder, size, styleInput, value, }: PhoneInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PhoneInput: ({ defaultSelectValue, disabledSelect, errorText, inputId, label, onChange, size, styleInput, value, }: PhoneInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PhoneInput;
@@ -6,8 +6,8 @@ export default interface PhoneInputProps {
6
6
  disabledSelect?: TextInputProps['disabled'];
7
7
  errorText?: TextInputProps['errorText'];
8
8
  inputId?: string;
9
+ label?: string;
9
10
  onChange: (selectValue: string, inputValue: string) => void;
10
- placeholder?: string;
11
11
  selectId?: string;
12
12
  size?: TextInputProps['size'];
13
13
  styleInput?: TextInputProps['colorScheme'];
@@ -1,10 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TextInputProps } from '../../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
3
- import { CountryCode } from '../../../../../../ui/src/lib/Base/FlagIcon/FlagIcon.types';
4
3
  import { SheetBreakpoint } from '../../../../../../ui/src/lib/Organisms/Modals/Sheet/Sheet.types';
5
4
  export type Option = {
6
5
  children: ReactNode;
7
- code?: CountryCode;
8
6
  label: string | undefined;
9
7
  value: string;
10
8
  };
@@ -1,5 +1,5 @@
1
1
  import { TextInputProps } from '../../../../../../../../ui/src/lib/Atoms/Inputs/TextInput/TextInput.types';
2
2
  export interface InputProps {
3
3
  isOpen: boolean;
4
- textInputProps: Pick<TextInputProps, 'size' | 'colorScheme' | 'iconButton' | 'errorText' | 'placeholder' | 'readonly' | 'label' | 'disabled' | 'flagIcon' | 'wrapperClassName' | 'onBlur' | 'onChange' | 'onKeyDown' | 'onClick' | 'name' | 'id' | 'value'>;
4
+ textInputProps: Pick<TextInputProps, 'size' | 'colorScheme' | 'iconButton' | 'errorText' | 'readonly' | 'label' | 'disabled' | 'flagIcon' | 'wrapperClassName' | 'onBlur' | 'onChange' | 'onKeyDown' | 'onClick' | 'name' | 'id' | 'value'>;
5
5
  }
@@ -1,4 +1,3 @@
1
1
  import { Option } from './SelectInput.types';
2
2
  export declare const getFilteredOptions: (options: Option[], inputValue: string, readonly?: boolean) => Option[];
3
3
  export declare const getFormattedOptions: (options: string[]) => Option[];
4
- export declare const getSelectedOption: (options: Option[], inputValue: string) => Option;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.1.0-development.1",
3
+ "version": "4.1.0-development.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",