@it-holding-ui/atomic 9.10.2 → 9.11.1

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,4 @@
1
1
  export declare const AVAILABLE_PHOTO_MIME_TYPES_ARRAY: string[];
2
- export declare const AVAILABLE_PHOTO_MIME_TYPES: string;
3
2
  export declare const DEFAULT_PHOTO_QUALITY = 0.73;
4
3
  export declare const MAX_PHOTO_FILE_SIZE: number;
5
4
  export declare const MAX_PHOTO_SIZE = 2000;
@@ -1,3 +1,3 @@
1
1
  import { ITHAddPhotoButtonProps } from './ITHAddPhotoButton.types';
2
2
  import './ITHAddPhotoButton.scss';
3
- export declare const ITHAddPhotoButton: ({ title, description, isBig, onPhotoAdd, isSmall, addPhotoIcon, ...props }: ITHAddPhotoButtonProps) => JSX.Element;
3
+ export declare const ITHAddPhotoButton: ({ title, description, isBig, onPhotoAdd, isSmall, addPhotoIcon, photoQuality, fileSize, photoWidth, availablePhotoMimeTypesArray, ...props }: ITHAddPhotoButtonProps) => JSX.Element;
@@ -9,4 +9,8 @@ export type ITHAddPhotoButtonProps = {
9
9
  onBlur?: () => void;
10
10
  onFocus?: () => void;
11
11
  addPhotoIcon?: string | JSX.Element;
12
+ photoQuality?: number;
13
+ fileSize?: number;
14
+ photoWidth?: number;
15
+ availablePhotoMimeTypesArray?: string[];
12
16
  };
@@ -1,3 +1,3 @@
1
1
  export { ITHAddPhotoButton } from './ITHAddPhotoButton';
2
- export { AVAILABLE_PHOTO_MIME_TYPES, AVAILABLE_PHOTO_MIME_TYPES_ARRAY } from './ITHAddPhotoButton.constants';
2
+ export { AVAILABLE_PHOTO_MIME_TYPES_ARRAY } from './ITHAddPhotoButton.constants';
3
3
  export type { ITHAddPhotoButtonProps } from './ITHAddPhotoButton.types';
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ITHPhotoInputProps } from './ITHPhotoInput.types';
3
3
  import './ITHPhotoInput.scss';
4
- export declare const ITHPhotoInput: ({ title, description, maxImages, className, initialPhotos, isBig, onPhotosChange, onBlur, onFocus, isSmall, isFullOfEmptyPhotos, addPhotoIcon, }: ITHPhotoInputProps) => JSX.Element;
4
+ export declare const ITHPhotoInput: ({ title, description, maxImages, className, initialPhotos, isBig, onPhotosChange, onBlur, onFocus, isSmall, isFullOfEmptyPhotos, addPhotoIcon, ...props }: ITHPhotoInputProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { PhotoInfo } from '@it-holding-ui/types';
3
- export type ITHPhotoInputProps = {
3
+ import { ITHAddPhotoButtonProps } from './ITHAddPhotoButton';
4
+ export type ITHPhotoInputProps = Pick<ITHAddPhotoButtonProps, 'availablePhotoMimeTypesArray' | 'fileSize' | 'photoQuality' | 'photoWidth'> & {
4
5
  title: string;
5
6
  description: string;
6
7
  initialPhotos?: PhotoInfo[];
@@ -1,3 +1,3 @@
1
1
  import { ITHHiddenFileInputProps } from './ITHHiddenFileInput.types';
2
2
  import './ITHHiddenFileInput.scss';
3
- export declare const ITHHiddenFileInput: ({ onPhotoAdd, ...props }: ITHHiddenFileInputProps) => JSX.Element;
3
+ export declare const ITHHiddenFileInput: ({ onPhotoAdd, photoQuality, fileSize, photoWidth, availablePhotoMimeTypesArray, ...props }: ITHHiddenFileInputProps) => JSX.Element;
@@ -3,4 +3,8 @@ export type ITHHiddenFileInputProps = {
3
3
  onPhotoAdd?: (photo: PhotoInfo) => void;
4
4
  onBlur?: () => void;
5
5
  onFocus?: () => void;
6
+ photoQuality?: number;
7
+ fileSize?: number;
8
+ photoWidth?: number;
9
+ availablePhotoMimeTypesArray?: string[];
6
10
  };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ITHProfilePhotoInputProps } from './ITHProfilePhotoInput.types';
3
3
  import './ITHProfilePhotoInput.scss';
4
- export declare const ITHProfilePhotoInput: ({ photo, className, disabled, onPhotoChange, onBlur, onFocus, onDeleteClick, deleteTitle, addPhotoTitle, deleteTextType, deleteTextMobileType, addPhotoTextType, addPhotoTextMobileType, updateOnPhotoClick, }: ITHProfilePhotoInputProps) => JSX.Element;
4
+ export declare const ITHProfilePhotoInput: ({ photo, className, disabled, onPhotoChange, onBlur, onFocus, onDeleteClick, deleteTitle, addPhotoTitle, deleteTextType, deleteTextMobileType, addPhotoTextType, addPhotoTextMobileType, updateOnPhotoClick, ...hiddenInputProps }: ITHProfilePhotoInputProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { PhotoInfo } from '@it-holding-ui/types';
2
+ import { ITHHiddenFileInputProps } from './ITHHiddenFileInput/ITHHiddenFileInput.types';
2
3
  import { ITHTextType } from "../ITHText/ITHText.types";
3
- export type ITHProfilePhotoInputProps = {
4
+ export type ITHProfilePhotoInputProps = Pick<ITHHiddenFileInputProps, 'fileSize' | 'photoQuality' | 'photoWidth' | 'availablePhotoMimeTypesArray'> & {
4
5
  photo?: PhotoInfo;
5
6
  className?: string;
6
7
  disabled?: boolean;
@@ -42,7 +42,7 @@ export { ITHMenuItem } from './ITHMenuItem';
42
42
  export { ITHPasswordInput } from './ITHPasswordInput';
43
43
  export type { PhoneInfo } from './ITHPhoneInput';
44
44
  export { ITHPhoneInput } from './ITHPhoneInput';
45
- export { AVAILABLE_PHOTO_MIME_TYPES, AVAILABLE_PHOTO_MIME_TYPES_ARRAY, DEFAULT_PHOTO_QUALITY, ITHPhotoInput, MAX_PHOTO_FILE_SIZE, MAX_PHOTO_SIZE, } from './ITHPhotoInput';
45
+ export { AVAILABLE_PHOTO_MIME_TYPES_ARRAY, DEFAULT_PHOTO_QUALITY, ITHPhotoInput, MAX_PHOTO_FILE_SIZE, MAX_PHOTO_SIZE, } from './ITHPhotoInput';
46
46
  export type { ITHPopoverProps } from './ITHPopover';
47
47
  export { ITHPopover } from './ITHPopover';
48
48
  export { ITHProfilePhotoInput } from './ITHProfilePhotoInput';