intelicoreact 1.8.62 → 1.8.63

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.
Files changed (35) hide show
  1. package/dist/Atomic/FormElements/Datepicker/Datepicker.d.ts +5 -0
  2. package/dist/Atomic/FormElements/Dropdown/Dropdown.d.ts +6 -0
  3. package/dist/Atomic/FormElements/Dropdown/index.d.ts +4 -0
  4. package/dist/Atomic/FormElements/Dropdown/useDropdown.d.ts +3 -0
  5. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.d.ts +5 -0
  6. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.d.ts +5 -0
  7. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.interface.d.ts +144 -0
  8. package/dist/Atomic/FormElements/InputDateRange/components/DateInput.d.ts +7 -0
  9. package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.d.ts +4 -0
  10. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.d.ts +4 -0
  11. package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.d.ts +4 -0
  12. package/dist/Atomic/FormElements/InputDateRange/dependencies.d.ts +18 -0
  13. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.d.ts +19 -0
  14. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.d.ts +5 -0
  15. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.d.ts +5 -0
  16. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.d.ts +3 -0
  17. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.d.ts +5 -0
  18. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.d.ts +2 -0
  19. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.d.ts +4 -0
  20. package/dist/Atomic/UI/Modal/Modal.d.ts +20 -0
  21. package/dist/Atomic/UI/Modal/index.d.ts +9 -0
  22. package/dist/Atomic/UI/Modal/partials/useMobileModal.d.ts +31 -0
  23. package/dist/Atomic/UI/Table/Partials/TdCell.d.ts +13 -0
  24. package/dist/Atomic/UI/Table/Partials/TdRow.d.ts +17 -0
  25. package/dist/Atomic/UI/Table/Partials/TdTitle.d.ts +5 -0
  26. package/dist/Atomic/UI/Table/Table.d.ts +9 -0
  27. package/dist/Atomic/UI/Table/TdTypes/TdWeight.d.ts +7 -0
  28. package/dist/Functions/useIsMobile/index.d.ts +2 -0
  29. package/dist/Functions/useIsMobile/useIsMobile.d.ts +18 -0
  30. package/dist/Functions/useIsMobile/useIsMobile.js +1 -1
  31. package/dist/Functions/useIsMobile/useIsMobile.js.map +1 -0
  32. package/dist/Molecular/InputAddress/InputAddress.d.ts +5 -0
  33. package/dist/Molecular/InputCustomFetch/InputCustomFetch.d.ts +4 -0
  34. package/dist/Molecular/InputCustomFetch/index.d.ts +2 -0
  35. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import type { DatepickerProps } from './Datepicker.props';
2
+ import React from 'react';
3
+ import './Datepicker.scss';
4
+ declare const Datepicker: React.FC<DatepickerProps>;
5
+ export default Datepicker;
@@ -0,0 +1,6 @@
1
+ import type { IDropdownProps } from './Dropdown.interface';
2
+ import React from 'react';
3
+ import './Dropdown.scss';
4
+ export declare const MIN_ITEMS_FOR_SHOW_MOBILE_SEARCH = 10;
5
+ declare function Dropdown<T extends string | number = string | number>({ label, options, value, error, disabled, onChange, placeholder, className, isSearchable: isSearchableProp, entity, scrollReactionObj, isListTop, isNotValidateASCII, testId, sortAlphabetical, fieldKey, id, noOptionsText, isDoNotPullOutListOfMainContainer, withMobileLogic, withActions, minItemsForShowMobileSearch, customTrigger, tabIndex, onActionConfirmClick, onActionCancelClick, isDefaultOpened, isDefaultOpenedMobile, footerContent, closeOnSelect, closeOnSelectMobile, withApplyLogic, cancelButtonRef, applyButtonRef, }: IDropdownProps): React.ReactElement | null;
6
+ export default Dropdown;
@@ -0,0 +1,4 @@
1
+ import type { IDropdownOption, IDropdownProps } from './Dropdown.interface';
2
+ import Dropdown from './Dropdown';
3
+ export type { IDropdownOption, IDropdownProps };
4
+ export default Dropdown;
@@ -0,0 +1,3 @@
1
+ import type { IDropdownProps, IUseDropdown } from './Dropdown.interface';
2
+ declare function useDropdown({ id, fieldKey, value, sortAlphabetical, withMobileLogic, options, minItemsForShowMobileSearch, isSearchable: isSearchableProp, isDoNotPullOutListOfMainContainer }?: Partial<IDropdownProps>): IUseDropdown;
3
+ export default useDropdown;
@@ -0,0 +1,5 @@
1
+ import type { IDropdownLiveSearchProps } from './DropdownLiveSearch.interface';
2
+ import React from 'react';
3
+ import './DropdownLiveSearch.scss';
4
+ declare const DropdownLiveSearch: React.FC<IDropdownLiveSearchProps>;
5
+ export default DropdownLiveSearch;
@@ -0,0 +1,5 @@
1
+ import type { IInputDateRangeProps } from './InputDateRange.interface';
2
+ import React from 'react';
3
+ import './InputDateRange.scss';
4
+ declare const _default: React.NamedExoticComponent<IInputDateRangeProps>;
5
+ export default _default;
@@ -0,0 +1,144 @@
1
+ import type { Moment } from 'moment';
2
+ import type { FocusEvent, KeyboardEvent, MouseEventHandler } from 'react';
3
+ import type { IUniProps } from '../../../types/base.interface';
4
+ import type { IDropdownProps } from '../Dropdown';
5
+ export interface IIntervalItem {
6
+ label: string;
7
+ start: () => Moment;
8
+ end: () => Moment;
9
+ isHidden?: boolean;
10
+ }
11
+ export interface IIntervals {
12
+ [key: string]: IIntervalItem;
13
+ }
14
+ export interface IInputDateRange {
15
+ intervalKey?: string;
16
+ start?: Moment | Date | string | null;
17
+ end?: Moment | Date | string | null;
18
+ compare?: boolean;
19
+ startPrevDate?: Moment | Date | string | null;
20
+ endPrevDate?: Moment | Date | string | null;
21
+ }
22
+ export interface IDateInputProps extends IUniProps {
23
+ RC: string;
24
+ isFocused?: boolean;
25
+ disabled?: boolean;
26
+ value: string;
27
+ date: Date | Moment | string;
28
+ prepareDate?: (value: string | Date | Moment) => string;
29
+ onChange: (value: string) => void;
30
+ onFocus: MouseEventHandler<HTMLDivElement>;
31
+ onBlur: (e: FocusEvent<HTMLInputElement>) => void;
32
+ onKeyUp: (keyCode: number | string, e: KeyboardEvent<HTMLInputElement>) => void;
33
+ }
34
+ export interface IDatepickerProps extends IUniProps {
35
+ txt?: {
36
+ buttons?: {
37
+ [key: string]: string;
38
+ };
39
+ labels?: {
40
+ [key: string]: string;
41
+ };
42
+ };
43
+ buttonsTypes?: {
44
+ cancel?: string;
45
+ apply?: string;
46
+ };
47
+ values: IInputDateRange;
48
+ onChange?: ({ start, end, startPrevDate, endPrevDate, compare, }: {
49
+ start: string;
50
+ end: string;
51
+ startPrevDate: string;
52
+ endPrevDate: string;
53
+ compare: boolean;
54
+ }) => void;
55
+ onChangeMobile?: ({ start, end, startPrevDate, endPrevDate, compare, }: {
56
+ start: string;
57
+ end: string;
58
+ startPrevDate: string;
59
+ endPrevDate: string;
60
+ compare: boolean;
61
+ }) => void;
62
+ onChangeCompare?: (value: boolean) => void;
63
+ onCancel?: () => void;
64
+ getSelectedMode: ({ start, end }: {
65
+ start: Moment | string;
66
+ end: Moment | string;
67
+ }) => string;
68
+ onChangeInterval: (value: string) => void;
69
+ isCompareHidden?: boolean;
70
+ limitRange?: number;
71
+ setActiveInterval?: (value: string) => void;
72
+ isShortWeekNames?: boolean;
73
+ minDate?: string;
74
+ maxDate?: string;
75
+ momentMinDate?: Moment;
76
+ momentMaxDate?: Moment;
77
+ isDontLimitFuture?: boolean;
78
+ mainId?: string;
79
+ withMobileLogic?: boolean;
80
+ isDoNotPullOutListOfMainContainer?: IDropdownProps['isDoNotPullOutListOfMainContainer'];
81
+ }
82
+ export interface ISelectItemProps extends IUniProps {
83
+ item: string;
84
+ label: string;
85
+ isActive: boolean;
86
+ onItemClick: React.MouseEventHandler<HTMLDivElement>;
87
+ onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
88
+ disabled?: boolean;
89
+ }
90
+ export interface IOpenedPartProps extends IUniProps {
91
+ dateRangeContainerId: string;
92
+ txt?: IDatepickerProps['txt'];
93
+ buttonsTypes?: {
94
+ cancel?: string;
95
+ apply?: string;
96
+ };
97
+ actualValues: IDatepickerProps['values'];
98
+ onChange: (value: IInputDateRange) => void;
99
+ isCompact?: boolean;
100
+ isIntervalsHidden?: boolean;
101
+ isCompareHidden?: boolean;
102
+ limitRange?: IDatepickerProps['limitRange'];
103
+ isOptionsRight?: boolean;
104
+ current: string;
105
+ setCurrent: (value: string) => void;
106
+ isCompare?: boolean;
107
+ setIsCompare?: (value: boolean) => void;
108
+ toggleOff: () => void;
109
+ isShortWeekNames?: boolean;
110
+ minDate?: string;
111
+ maxDate?: string;
112
+ momentMinDate?: Moment;
113
+ momentMaxDate?: Moment;
114
+ isDontLimitFuture?: boolean;
115
+ isListTop?: boolean;
116
+ mainId: string;
117
+ withMobileLogic?: boolean;
118
+ isDoNotPullOutListOfMainContainer?: IDropdownProps['isDoNotPullOutListOfMainContainer'];
119
+ renderIntervals?: string[];
120
+ }
121
+ export interface IInputDateRangeProps extends IUniProps {
122
+ txt?: IDatepickerProps['txt'];
123
+ id?: string;
124
+ label?: string;
125
+ subLabel?: string;
126
+ value: IInputDateRange;
127
+ onChange: (value: IInputDateRange) => void;
128
+ error?: string | boolean;
129
+ disabled?: boolean;
130
+ isHoverable?: boolean;
131
+ isCompact?: boolean;
132
+ hideArrows?: boolean;
133
+ isOptionsRight?: boolean;
134
+ isUseAbs?: boolean;
135
+ minDate?: string;
136
+ maxDate?: string;
137
+ minMaxDateParseFormat?: string;
138
+ isDontLimitFuture?: boolean;
139
+ isListTop?: boolean;
140
+ isAltArrows?: boolean;
141
+ renderIntervals?: string[];
142
+ isDoNotPullOutListOfMainContainer?: IDropdownProps['isDoNotPullOutListOfMainContainer'];
143
+ dateRange?: IInputDateRange;
144
+ }
@@ -0,0 +1,7 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { IDateInputProps } from '../InputDateRange.interface';
3
+ import React from 'react';
4
+ declare function DateInput({ ref, ...props }: IDateInputProps & {
5
+ ref?: React.RefObject<Omit<HTMLInputElement, 'value'> | null>;
6
+ }): ReactElement;
7
+ export default DateInput;
@@ -0,0 +1,4 @@
1
+ import type { IDatepickerProps } from '../InputDateRange.interface';
2
+ import React from 'react';
3
+ declare const Datepicker: React.FC<IDatepickerProps>;
4
+ export default Datepicker;
@@ -0,0 +1,4 @@
1
+ import type { IOpenedPartProps } from '../InputDateRange.interface';
2
+ import React from 'react';
3
+ declare const OpenedPart: React.FC<IOpenedPartProps>;
4
+ export default OpenedPart;
@@ -0,0 +1,4 @@
1
+ import type { ISelectItemProps } from '../InputDateRange.interface';
2
+ import React from 'react';
3
+ declare const SelectItem: React.FC<ISelectItemProps>;
4
+ export default SelectItem;
@@ -0,0 +1,18 @@
1
+ import type { Moment } from 'moment-timezone';
2
+ import type { IInputDateRange, IIntervals } from './InputDateRange.interface';
3
+ export declare const getIsDateValid: (date: Date | Moment | string | null) => boolean;
4
+ export declare function useClickOutside(hideComponent: () => void, additionalComponent?: HTMLCollectionOf<Element>, onlyGetRef?: boolean): React.MutableRefObject<Element | null>;
5
+ export declare function useToggle(initialState?: string | boolean): {
6
+ isToggled: boolean;
7
+ toggle: () => void;
8
+ toggleOn: () => void;
9
+ toggleOff: () => void;
10
+ };
11
+ export declare const INTERVALS: IIntervals;
12
+ export declare const ALL_TIME_KEY = "allTime";
13
+ export declare const CUSTOM_INTERVAL_KEY = "customDate";
14
+ export declare const CUSTOM_INTERVAL_KEY_TEXT = "Custom Date";
15
+ export declare const MAIN_FORMAT = "YYYY-MM-DDTHH:mm";
16
+ export declare const MAIN_DATE_FORMAT = "YYYY-MM-DD";
17
+ export declare const MAIN_TIME_FORMAT = "HH:mm";
18
+ export declare function getActualDateRange(inputDateRange: IInputDateRange): IInputDateRange;
@@ -0,0 +1,19 @@
1
+ export default function RangeSlider({ required, noTrack, rangeSymbol, min, max, decimalPlaces, minRange, precision, testId, value, unit, label, isUseBitPoints, onChange, }: {
2
+ required: any;
3
+ noTrack: any;
4
+ rangeSymbol: any;
5
+ min?: number | undefined;
6
+ max?: number | undefined;
7
+ decimalPlaces?: number | undefined;
8
+ minRange?: number | undefined;
9
+ precision?: number | undefined;
10
+ testId?: string | undefined;
11
+ value?: {
12
+ from: any;
13
+ to: any;
14
+ } | undefined;
15
+ unit?: string | undefined;
16
+ label?: string | undefined;
17
+ isUseBitPoints?: boolean | undefined;
18
+ onChange?: (() => void) | undefined;
19
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { IRangeSlider2Props } from './RangeSlider2.interface';
2
+ import React from 'react';
3
+ import './RangeSlider2.scss';
4
+ declare const RangeSlider2: React.FC<IRangeSlider2Props>;
5
+ export default RangeSlider2;
@@ -0,0 +1,5 @@
1
+ import type { ISwitcherTagsDropdownProps } from './SwitcherTagsDropdown.interface';
2
+ import React from 'react';
3
+ import './SwitcherTagsDropdown.scss';
4
+ declare const SwitcherTagsDropdown: React.FC<ISwitcherTagsDropdownProps>;
5
+ export default SwitcherTagsDropdown;
@@ -0,0 +1,3 @@
1
+ import type { ITagListToDropdownProps } from './TagListToDropdown.interface';
2
+ declare const TagListToDropdown: React.FC<ITagListToDropdownProps>;
3
+ export default TagListToDropdown;
@@ -0,0 +1,5 @@
1
+ import type { ITagsDropdownProps } from './TagsDropdown.interface';
2
+ import React from 'react';
3
+ import './TagsDropdown.scss';
4
+ declare const TagsDropdown: React.FC<ITagsDropdownProps>;
5
+ export default TagsDropdown;
@@ -0,0 +1,2 @@
1
+ export default ExampleChartIntegration;
2
+ declare function ExampleChartIntegration(props: any): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export function getSafelyDateRange(dateRange: any): import("../../../FormElements/InputDateRange/InputDateRange.interface").IInputDateRange;
2
+ export function getLabels(range: any): never[];
3
+ export function getMockValue(): number;
4
+ export function getTab(tabId: any, range: any, callback: any): Promise<any>;
@@ -0,0 +1,20 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { IModalProps } from './Modal.interface';
3
+ import './Modal.scss';
4
+ import './ModalMobile.scss';
5
+ export declare const KEY_CODE: Readonly<{
6
+ readonly ENTER: 13;
7
+ readonly ESC: 27;
8
+ }>;
9
+ export declare function renderModalTitle({ mode, title, onlyTitle, }: {
10
+ mode?: string;
11
+ title: string;
12
+ onlyTitle?: boolean;
13
+ }): string;
14
+ declare function Modal({ ref, id, testId, zIndex, isOpen, onConfirm, onDecline, closeModal, className, variant, size, mode, title, onlyTitle, atributesForModalBody, confirmBtnClassName, confirmBtnLabel, confirmBtnVariant, confirmBtnDisable, confirmBtnIcon, isConfirmBtnIconPositionRight, noConfirmBtn, forced, closeBtnClassName, closeBtnText, closeBtnVariant, closeBtnDisable, closeBtnIcon, btnClassNames, isCloseBtnIconPositionRight, noCloseBtn, noHeader, noHeaderCloseBtn, customHeader, declineBtnDisable, noFooter, customFooter, withFixedFooter, leftContentOfFooter, isSubmittingByEnter: isSubmittingByEnterOuter, isClosingByEsc: isClosingByEscOuter, withEventManagement, submitOnEnter, closeOnEsc, withMobileLogic, children, }: IModalProps & {
15
+ ref?: React.RefObject<HTMLDivElement | null>;
16
+ }): ReactElement | null;
17
+ declare namespace Modal {
18
+ var displayName: string;
19
+ }
20
+ export default Modal;
@@ -0,0 +1,9 @@
1
+ import Modal from './Modal';
2
+ import ModalHOC from './ModalHOC';
3
+ import { EVENTS } from './partials/_constants';
4
+ import { dispatchEventForModalManagement } from './partials/_utils';
5
+ export type { IModalFooterProps, IModalHOCProps, IModalProps, IModalTitleProps } from './Modal.interface';
6
+ export { Modal, ModalHOC };
7
+ export { EVENTS };
8
+ export { dispatchEventForModalManagement };
9
+ export default Modal;
@@ -0,0 +1,31 @@
1
+ import type { MutableRefObject, ReactNode } from 'react';
2
+ type ScrollDirection = 'up' | 'down';
3
+ interface ModalsLogic {
4
+ IS_HEADER_HIDDEN: boolean;
5
+ IS_HEADER_STICKY: boolean;
6
+ IS_FOOTER_HIDDEN: boolean;
7
+ IS_FOOTER_STICKY: boolean;
8
+ }
9
+ interface UseMobileModalProps {
10
+ modalRef?: React.RefObject<HTMLDivElement>;
11
+ withMobileLogic?: boolean;
12
+ withFixedFooter?: boolean;
13
+ isOpen?: boolean;
14
+ }
15
+ interface UseMobileModalReturn {
16
+ modalMobileContainerRef: MutableRefObject<HTMLDivElement | null>;
17
+ modalMobileHeaderRef: MutableRefObject<HTMLDivElement | null>;
18
+ modalMobileBodyRef: MutableRefObject<HTMLDivElement | null>;
19
+ modalMobileFooterRef: MutableRefObject<HTMLDivElement | null>;
20
+ MODALS_LOGIC: ModalsLogic;
21
+ SCROLL_DIRECTION: {
22
+ UP: ScrollDirection;
23
+ DOWN: ScrollDirection;
24
+ };
25
+ scrollTop: number;
26
+ scrollHeight: number;
27
+ renderModal: (modal: ReactNode) => ReactNode;
28
+ isMobile: boolean;
29
+ }
30
+ export default function useMobileModal({ modalRef, withMobileLogic, withFixedFooter, isOpen, }: UseMobileModalProps): UseMobileModalReturn;
31
+ export {};
@@ -0,0 +1,13 @@
1
+ export default TdCell;
2
+ declare function TdCell({ type, item, rowIndex, onChange, cardLength, changePriority, getAdviceWeight, onActionClick, rowItem, isDeleted, }: {
3
+ type: any;
4
+ item: any;
5
+ rowIndex: any;
6
+ onChange: any;
7
+ cardLength: any;
8
+ changePriority: any;
9
+ getAdviceWeight: any;
10
+ onActionClick: any;
11
+ rowItem: any;
12
+ isDeleted: any;
13
+ }): any;
@@ -0,0 +1,17 @@
1
+ export default TdRow;
2
+ declare function TdRow({ item, onChange, rowIndex, cardStatus, range, type, rowSpan, colSpan, cardLength, changePriority, getAdviceWeight, onActionClick, isDeleted, testId, }: {
3
+ item: any;
4
+ onChange: any;
5
+ rowIndex: any;
6
+ cardStatus: any;
7
+ range: any;
8
+ type: any;
9
+ rowSpan: any;
10
+ colSpan: any;
11
+ cardLength: any;
12
+ changePriority: any;
13
+ getAdviceWeight: any;
14
+ onActionClick: any;
15
+ isDeleted: any;
16
+ testId?: string | undefined;
17
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ export default TdTitle;
2
+ declare function TdTitle({ locations, title }: {
3
+ locations: any;
4
+ title: any;
5
+ }): JSX.Element;
@@ -0,0 +1,9 @@
1
+ export default Table;
2
+ declare function Table({ rows, onChange, className, header, onActionClick, testId, }: {
3
+ rows: any;
4
+ onChange: any;
5
+ className: any;
6
+ header: any;
7
+ onActionClick: any;
8
+ testId?: string | undefined;
9
+ }): JSX.Element;
@@ -0,0 +1,7 @@
1
+ export default TdWeight;
2
+ declare function TdWeight({ value, percent, onChange, className }: {
3
+ value: any;
4
+ percent: any;
5
+ onChange: any;
6
+ className: any;
7
+ }): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import useIsMobile from './useIsMobile';
2
+ export default useIsMobile;
@@ -0,0 +1,18 @@
1
+ interface UseIsMobileProps {
2
+ isWithoutWidthCheck?: boolean;
3
+ }
4
+ interface UseIsMobileProps {
5
+ isWithoutWidthCheck?: boolean;
6
+ }
7
+ /**
8
+ * Hook to detect if the current device is a mobile device
9
+ * @param props - Configuration options
10
+ * @param props.isWithoutWidthCheck - If true, only checks user agent without width verification
11
+ * @returns Object containing isMobile flag
12
+ */
13
+ declare function useIsMobile({ isWithoutWidthCheck }?: UseIsMobileProps): {
14
+ isMobile: boolean;
15
+ isMobilePortrait: boolean;
16
+ isMobileLandscape: boolean;
17
+ };
18
+ export default useIsMobile;
@@ -1 +1 @@
1
- function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});var r=require("react"),e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.isWithoutWidthCheck,i=function(){var t=navigator.userAgent||navigator.vendor||window.opera,r=/Macintosh/.test(t),e=navigator.maxTouchPoints&&navigator.maxTouchPoints>2;return r&&!!e},a=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||i()},u=(e=(0,r.useState)(a()),function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),i.length!==r);a=!0);}catch(t){u=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,2)||function(r,e){if(r){if("string"==typeof r)return t(r,2);var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=u[0],c=u[1];return(0,r.useEffect)(function(){a()&&c(!0)},[navigator.userAgent]),{isMobile:l&&(void 0!==o&&o||window.screen.width<=768||window.screen.width<=1024&&window.matchMedia("(orientation: landscape)").matches)}};
1
+ function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r}});var e=require("react"),r=function(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.isWithoutWidthCheck,o=function(){var t=navigator.userAgent||navigator.vendor||window.opera,e=/Macintosh/.test(t),r=navigator.maxTouchPoints&&navigator.maxTouchPoints>2;return e&&!!r},a=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||o()},u=(r=(0,e.useState)(a()),function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r,n,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,u=!1;try{for(i=i.call(t);!(a=(r=i.next()).done)&&(o.push(r.value),o.length!==e);a=!0);}catch(t){u=!0,n=t}finally{try{a||null==i.return||i.return()}finally{if(u)throw n}}return o}}(r,2)||function(e,r){if(e){if("string"==typeof e)return t(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=u[0],l=u[1];return(0,e.useEffect)(function(){a()&&l(!0)},[navigator.userAgent]),{isMobile:c&&(void 0!==i&&i||window.screen.width<=768||window.screen.width<=1024&&window.matchMedia("(orientation: landscape)").matches),isMobilePortrait:c&&window.screen.width<=768&&window.matchMedia("(orientation: portait)").matches,isMobileLandscape:c&&window.screen.width<=1024&&window.matchMedia("(orientation: landscape)").matches}};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMobile.js","sourceRoot":"","sources":["../../../src/Functions/useIsMobile/useIsMobile.ts"],"names":[],"mappings":";;AAAA,iCAA4C;AAS5C;;;;;GAKG;AACH,SAAS,WAAW,CAAC,EAAE,mBAAmB,GAAG,KAAK,KAAuB,EAAE;IACzE,MAAM,MAAM,GAAG,GAAY,EAAE;QAC3B,MAAM,EAAE,GAAG,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,IAAK,MAAc,CAAC,KAAK,CAAC;QAE5E,qDAAqD;QACrD,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,SAAS,CAAC,cAAc,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC;QAE1E,OAAO,KAAK,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAY,EAAE;QAChC,OAAO,gEAAgE,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,CAAC;IAChH,CAAC,CAAC;IAEF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAU,WAAW,EAAE,CAAC,CAAC;IAEjE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,EAAE,EAAE,CAAC;YAClB,WAAW,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1B,OAAO;QACL,QAAQ,EAAE,QAAQ,IAAI,CAAC,mBAAmB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,CAAC;QACnK,gBAAgB,EAAE,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,OAAO;QAC/G,iBAAiB,EAAE,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;KACpH,CAAC;AACJ,CAAC;AAED,kBAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IInputAddressProps } from './InputAddress.interface';
2
+ import React from 'react';
3
+ import './InputAddress.scss';
4
+ declare const InputAddress: React.FC<IInputAddressProps>;
5
+ export default InputAddress;
@@ -0,0 +1,4 @@
1
+ import type { InputCustomFetchProps } from './model/types';
2
+ import './InputCustomFetch.scss';
3
+ declare function InputCustomFetch<TOption = any, TValue = any>(props: InputCustomFetchProps<TOption, TValue>): JSX.Element;
4
+ export default InputCustomFetch;
@@ -0,0 +1,2 @@
1
+ export { default } from './InputCustomFetch';
2
+ export type { InputCustomFetchBaseProps, InputCustomFetchProps, InputCustomFetchPropsWithCustomFetch, InputCustomFetchPropsWithFetch, InputCustomFetchRenderProps, } from './model/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.8.62",
3
+ "version": "1.8.63",
4
4
  "description": "",
5
5
  "author": "Andrey Isakov",
6
6
  "license": "ISC",