@it-holding-ui/atomic 1.14.0 → 1.15.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.
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { CustomItemProps } from './CustomItem.types';
3
3
  import './CustomItem.scss';
4
- export declare const CustomItem: React.ForwardRefExoticComponent<Pick<CustomItemProps, "button" | "color" | "id" | "lang" | "target" | "type" | "role" | "tabIndex" | "fill" | "href" | "mode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hidden" | "dir" | "slot" | "title" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "disabled" | "key" | "footer" | "header" | "label" | "icon" | keyof import("@ionic/react/dist/types/components/IonicReactProps").IonicReactProps | "withBorderBottom" | "lines" | "routerAnimation" | "rel" | "download" | "shape" | "counter" | "counterFormatter" | "detail" | "detailIcon" | "routerLink" | "routerDirection" | "routerOptions" | "labelTextType" | "headerTextType" | "footerTextType" | "withArrowRight"> & React.RefAttributes<HTMLIonItemElement>>;
4
+ export declare const CustomItem: React.ForwardRefExoticComponent<Pick<CustomItemProps, "type" | "button" | "color" | "id" | "lang" | "target" | "role" | "tabIndex" | "fill" | "href" | "mode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hidden" | "dir" | "slot" | "title" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "disabled" | "lines" | "routerAnimation" | "rel" | "download" | "shape" | "counter" | "counterFormatter" | "detail" | "detailIcon" | "key" | "label" | "labelTextType" | "header" | "headerTextType" | "footer" | "icon" | "footerTextType" | keyof import("@ionic/react/dist/types/components/IonicReactProps").IonicReactProps | "withBorderBottom" | "routerLink" | "routerDirection" | "routerOptions" | "withArrowRight"> & React.RefAttributes<HTMLIonItemElement>>;
@@ -0,0 +1,5 @@
1
+ export declare const AVAILABLE_PHOTO_MIME_TYPES_ARRAY: string[];
2
+ export declare const AVAILABLE_PHOTO_MIME_TYPES: string;
3
+ export declare const DEFAULT_PHOTO_QUALITY = 0.73;
4
+ export declare const MAX_PHOTO_FILE_SIZE: number;
5
+ export declare const MAX_PHOTO_SIZE = 2000;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AddPhotoButtonProps } from './AddPhotoButton.types';
3
+ import './AddPhotoButton.scss';
4
+ export declare const AddPhotoButton: React.FC<AddPhotoButtonProps>;
@@ -0,0 +1,9 @@
1
+ import { PhotoInfo } from '@it-holding-ui/types';
2
+ export declare type AddPhotoButtonProps = {
3
+ title: string;
4
+ description: string;
5
+ isBig?: boolean;
6
+ onPhotoAdd?: (file: PhotoInfo) => void;
7
+ onBlur?: () => void;
8
+ onFocus?: () => void;
9
+ };
@@ -0,0 +1,3 @@
1
+ export { AddPhotoButton } from './AddPhotoButton';
2
+ export { AVAILABLE_PHOTO_MIME_TYPES, AVAILABLE_PHOTO_MIME_TYPES_ARRAY } from './AddPhotoButton.constants';
3
+ export type { AddPhotoButtonProps } from './AddPhotoButton.types';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BigPhotoPreviewProps } from './BigPhotoPreview.types';
3
+ import './BigPhotoPreview.scss';
4
+ export declare const BigPhotoPreview: React.FC<BigPhotoPreviewProps>;
@@ -0,0 +1,7 @@
1
+ import { PhotoInfo } from '@it-holding-ui/types';
2
+ import { AddPhotoButtonProps } from '~atomic/PhotoInput/AddPhotoButton';
3
+ export declare type BigPhotoPreviewProps = Omit<AddPhotoButtonProps, 'isBig'> & {
4
+ photos: PhotoInfo[];
5
+ previewPhotoIndex: number;
6
+ onDeleteButtonClick?: (index: number) => void;
7
+ };
@@ -0,0 +1 @@
1
+ export { BigPhotoPreview } from './BigPhotoPreview';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PhotoProps } from './Photo.types';
3
+ import './Photo.scss';
4
+ export declare const Photo: React.FC<PhotoProps>;
@@ -0,0 +1,8 @@
1
+ export declare type PhotoProps = {
2
+ index: number;
3
+ url: string;
4
+ className?: string;
5
+ onDeleteButtonClick?: (index: number) => void;
6
+ onClick?: (index: number) => void;
7
+ active?: boolean;
8
+ };
@@ -0,0 +1 @@
1
+ export { Photo } from './Photo';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PhotoInputProps } from './PhotoInput.types';
3
+ import './PhotoInput.scss';
4
+ export declare const PhotoInput: React.FC<PhotoInputProps>;
@@ -0,0 +1,12 @@
1
+ import { PhotoInfo } from '@it-holding-ui/types';
2
+ export declare type PhotoInputProps = {
3
+ title: string;
4
+ description: string;
5
+ initialPhotos?: PhotoInfo[];
6
+ maxImages?: number;
7
+ className?: string;
8
+ isBig?: boolean;
9
+ onPhotosChange?: (files: PhotoInfo[]) => void;
10
+ onFocus?: () => void;
11
+ onBlur?: () => void;
12
+ };
@@ -0,0 +1,3 @@
1
+ export * from './AddPhotoButton/AddPhotoButton.constants';
2
+ export { PhotoInput } from './PhotoInput';
3
+ export type { PhotoInputProps } from './PhotoInput.types';
@@ -22,6 +22,7 @@ export { DatePickerSheet } from './DatePickerSheet';
22
22
  export * from './Fields';
23
23
  export { Label } from './Label';
24
24
  export { PageHeader } from './PageHeader';
25
+ export { AVAILABLE_PHOTO_MIME_TYPES, AVAILABLE_PHOTO_MIME_TYPES_ARRAY, DEFAULT_PHOTO_QUALITY, MAX_PHOTO_FILE_SIZE, MAX_PHOTO_SIZE, PhotoInput, } from './PhotoInput';
25
26
  export * from './Select';
26
27
  export { SingleDatePicker } from './SingleDatePicker';
27
28
  export { Stepper } from './Stepper';