@proprioo/salatim 29.9.0 → 29.10.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.
Files changed (184) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/date/index.d.ts +2 -2
  3. package/lib/date/src/DayPicker.d.ts +4 -4
  4. package/lib/date/src/datePicker/DatePicker.d.ts +13 -13
  5. package/lib/date/src/datePicker/DatePicker.styles.d.ts +1 -1
  6. package/lib/date/src/datePickerWrapper/DatePickerWrapper.d.ts +11 -11
  7. package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.d.ts +3 -3
  8. package/lib/date/src/singleMonth/SingleMonth.d.ts +9 -9
  9. package/lib/date/src/singleMonth/SingleMonth.styles.d.ts +1 -1
  10. package/lib/date/src/typings.d.ts +3 -3
  11. package/lib/energy/index.d.ts +3 -3
  12. package/lib/energy/src/Energy.d.ts +8 -8
  13. package/lib/energy/src/Energy.styles.d.ts +14 -14
  14. package/lib/energy/src/Energy.utils.d.ts +10 -10
  15. package/lib/energy/src/interfaces.d.ts +39 -39
  16. package/lib/forms/index.d.ts +5 -5
  17. package/lib/forms/src/errorForm/ErrorForm.styles.d.ts +1 -1
  18. package/lib/forms/src/errorForm/ErrorFormLayout.d.ts +6 -6
  19. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.d.ts +15 -15
  20. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.schema.d.ts +18 -18
  21. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.utils.d.ts +14 -14
  22. package/lib/forms/src/userForm/UserForm.d.ts +23 -23
  23. package/lib/forms/src/userForm/UserForm.schema.d.ts +13 -13
  24. package/lib/hooks/index.d.ts +3 -3
  25. package/lib/hooks/useDebounce/useDebounce.d.ts +2 -2
  26. package/lib/hooks/useEmailSuggestion/useEmailSuggestion.d.ts +6 -6
  27. package/lib/hooks/useFirstRender/useFirstRender.d.ts +1 -1
  28. package/lib/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -2
  29. package/lib/index.d.ts +7 -7
  30. package/lib/index.js +250 -250
  31. package/lib/index.js.map +1 -1
  32. package/lib/phone/index.d.ts +4 -4
  33. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +9 -9
  34. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.d.ts +5 -5
  35. package/lib/phone/src/phoneInput/Phone.d.ts +5 -5
  36. package/lib/phone/src/phoneInput/Phone.styles.d.ts +3 -3
  37. package/lib/phone/src/phoneInput/PhoneInput.d.ts +4 -4
  38. package/lib/phone/src/phoneInput/constants.d.ts +5 -5
  39. package/lib/phone/src/utils.d.ts +5 -5
  40. package/lib/ui/index.d.ts +55 -55
  41. package/lib/ui/src/accordion/Accordion.d.ts +5 -5
  42. package/lib/ui/src/accordion/Accordion.interfaces.d.ts +17 -17
  43. package/lib/ui/src/accordion/Accordion.styles.d.ts +15 -15
  44. package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +7 -7
  45. package/lib/ui/src/accordion/AccordionContextProvider.d.ts +24 -24
  46. package/lib/ui/src/accordion/AccordionHeader.d.ts +4 -4
  47. package/lib/ui/src/accordion/AccordionItem.d.ts +4 -4
  48. package/lib/ui/src/accordion/AccordionPanel.d.ts +4 -4
  49. package/lib/ui/src/accordion/AccordionStore.d.ts +15 -15
  50. package/lib/ui/src/accordion/ItemContextConsumer.d.ts +7 -7
  51. package/lib/ui/src/accordion/ItemContextProvider.d.ts +17 -17
  52. package/lib/ui/src/agentBanner/AgentBanner.d.ts +8 -8
  53. package/lib/ui/src/agentBanner/AgentBanner.styles.d.ts +10 -10
  54. package/lib/ui/src/agentCard/AgentCard.d.ts +8 -8
  55. package/lib/ui/src/agentCard/AgentCard.styles.d.ts +9 -9
  56. package/lib/ui/src/agentCard/AgentMock.d.ts +3 -3
  57. package/lib/ui/src/autocomplete/Autocomplete.d.ts +11 -11
  58. package/lib/ui/src/block/Block.d.ts +8 -8
  59. package/lib/ui/src/block/Block.styles.d.ts +4 -4
  60. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +11 -11
  61. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.styles.d.ts +4 -4
  62. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js +2 -26
  63. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js.map +1 -1
  64. package/lib/ui/src/blockIcon/BlockIcon.d.ts +13 -13
  65. package/lib/ui/src/blockIcon/BlockIcon.styles.d.ts +5 -5
  66. package/lib/ui/src/burger/Burger.d.ts +9 -9
  67. package/lib/ui/src/burger/Burger.styles.d.ts +3 -3
  68. package/lib/ui/src/button/Button.d.ts +17 -17
  69. package/lib/ui/src/button/Button.interfaces.d.ts +25 -25
  70. package/lib/ui/src/button/Button.styles.d.ts +7 -7
  71. package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +10 -10
  72. package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.d.ts +4 -4
  73. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +11 -11
  74. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.d.ts +1 -1
  75. package/lib/ui/src/card/Card.d.ts +24 -24
  76. package/lib/ui/src/card/Card.styles.d.ts +21 -21
  77. package/lib/ui/src/checkbox/Checkbox.d.ts +15 -15
  78. package/lib/ui/src/checkbox/Checkbox.styles.d.ts +13 -13
  79. package/lib/ui/src/checkbox/interfaces.d.ts +4 -4
  80. package/lib/ui/src/dateInput/DateInput.d.ts +14 -14
  81. package/lib/ui/src/emailInput/EmailInput.d.ts +2 -2
  82. package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +12 -12
  83. package/lib/ui/src/emailInput/EmailInput.styles.d.ts +2 -2
  84. package/lib/ui/src/fieldset/Fieldset.d.ts +8 -8
  85. package/lib/ui/src/fieldset/Fieldset.styles.d.ts +6 -6
  86. package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +14 -14
  87. package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +16 -16
  88. package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +20 -20
  89. package/lib/ui/src/icons/Alert.d.ts +2 -2
  90. package/lib/ui/src/icons/Arrow.d.ts +2 -2
  91. package/lib/ui/src/icons/Certificate.d.ts +4 -4
  92. package/lib/ui/src/icons/CheckGreen.d.ts +2 -2
  93. package/lib/ui/src/icons/ChevronRight.d.ts +4 -4
  94. package/lib/ui/src/icons/Close.d.ts +4 -4
  95. package/lib/ui/src/icons/CloseBox.d.ts +2 -2
  96. package/lib/ui/src/icons/DropDown.d.ts +2 -2
  97. package/lib/ui/src/icons/EmoticonCool.d.ts +4 -4
  98. package/lib/ui/src/icons/Help.d.ts +4 -4
  99. package/lib/ui/src/icons/Icon.props.d.ts +3 -3
  100. package/lib/ui/src/icons/Less.d.ts +4 -4
  101. package/lib/ui/src/icons/Plus.d.ts +4 -4
  102. package/lib/ui/src/icons/Tick.d.ts +2 -2
  103. package/lib/ui/src/icons/TrustPilot.d.ts +2 -2
  104. package/lib/ui/src/icons/index.d.ts +14 -14
  105. package/lib/ui/src/input/Input.d.ts +40 -40
  106. package/lib/ui/src/input/Input.styles.d.ts +2 -2
  107. package/lib/ui/src/inputBase/InputBase.d.ts +47 -47
  108. package/lib/ui/src/inputBase/InputBase.styles.d.ts +21 -21
  109. package/lib/ui/src/inputBase/InputBaseEnum.d.ts +6 -6
  110. package/lib/ui/src/inputLoader/InputLoader.d.ts +2 -2
  111. package/lib/ui/src/inputLoader/InputLoader.styles.d.ts +2 -2
  112. package/lib/ui/src/inputLoading/InputLoading.d.ts +3 -3
  113. package/lib/ui/src/inputLoading/InputLoading.styles.d.ts +1 -1
  114. package/lib/ui/src/loader/Loader.d.ts +9 -9
  115. package/lib/ui/src/loader/Loader.styles.d.ts +10 -10
  116. package/lib/ui/src/logo/Logo.d.ts +2 -2
  117. package/lib/ui/src/mockForm/MockForm.d.ts +7 -7
  118. package/lib/ui/src/modal/Modal.d.ts +32 -32
  119. package/lib/ui/src/modal/Modal.reducer.d.ts +35 -35
  120. package/lib/ui/src/modal/Modal.styles.d.ts +18 -18
  121. package/lib/ui/src/nativeSelect/NativeSelect.d.ts +11 -11
  122. package/lib/ui/src/nativeSelect/NativeSelect.styles.d.ts +1 -1
  123. package/lib/ui/src/numberInput/NumberInput.d.ts +11 -11
  124. package/lib/ui/src/numberInput/NumberInput.utils.d.ts +3 -3
  125. package/lib/ui/src/option/Option.d.ts +13 -13
  126. package/lib/ui/src/option/Option.styles.d.ts +7 -7
  127. package/lib/ui/src/radio/Radio.d.ts +12 -12
  128. package/lib/ui/src/radio/Radio.styles.d.ts +3 -3
  129. package/lib/ui/src/select/Select.d.ts +22 -22
  130. package/lib/ui/src/select/Select.styles.d.ts +12 -12
  131. package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +23 -23
  132. package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +13 -13
  133. package/lib/ui/src/subtitle/Subtitle.d.ts +8 -8
  134. package/lib/ui/src/subtitle/Subtitle.styles.d.ts +5 -5
  135. package/lib/ui/src/tag/Tag.d.ts +4 -4
  136. package/lib/ui/src/tag/Tag.styles.d.ts +14 -14
  137. package/lib/ui/src/tag/TagColors.d.ts +74 -74
  138. package/lib/ui/src/tag/interfaces.d.ts +29 -29
  139. package/lib/ui/src/textToggle/TextToggle.d.ts +12 -12
  140. package/lib/ui/src/textToggle/TextToggle.mocks.d.ts +2 -2
  141. package/lib/ui/src/textToggle/TextToggle.styles.d.ts +9 -9
  142. package/lib/ui/src/textToggle/TextToggle.utils.d.ts +2 -2
  143. package/lib/ui/src/textarea/Textarea.d.ts +41 -41
  144. package/lib/ui/src/textarea/Textarea.styles.d.ts +4 -4
  145. package/lib/ui/src/title/H1.d.ts +4 -4
  146. package/lib/ui/src/title/H1.styles.d.ts +2 -2
  147. package/lib/ui/src/title/H2.d.ts +4 -4
  148. package/lib/ui/src/title/H2.styles.d.ts +2 -2
  149. package/lib/ui/src/title/H3.d.ts +4 -4
  150. package/lib/ui/src/title/H3.styles.d.ts +2 -2
  151. package/lib/ui/src/title/H4.d.ts +4 -4
  152. package/lib/ui/src/title/H4.styles.d.ts +2 -2
  153. package/lib/ui/src/title/H5.d.ts +4 -4
  154. package/lib/ui/src/title/H5.styles.d.ts +2 -2
  155. package/lib/ui/src/title/H6.d.ts +4 -4
  156. package/lib/ui/src/title/H6.styles.d.ts +2 -2
  157. package/lib/ui/src/title/Title.d.ts +18 -18
  158. package/lib/ui/src/title/Title.styles.d.ts +8 -8
  159. package/lib/ui/src/toggle/Toggle.d.ts +13 -13
  160. package/lib/ui/src/toggle/Toggle.styles.d.ts +4 -4
  161. package/lib/ui/src/tooltip/Tooltip.d.ts +19 -19
  162. package/lib/ui/src/tooltip/Tooltip.styles.d.ts +2 -2
  163. package/lib/utils/index.d.ts +16 -16
  164. package/lib/utils/src/actions.d.ts +30 -30
  165. package/lib/utils/src/breakpoints.d.ts +11 -11
  166. package/lib/utils/src/colors.d.ts +113 -113
  167. package/lib/utils/src/container.d.ts +2 -2
  168. package/lib/utils/src/fonts.d.ts +15 -15
  169. package/lib/utils/src/gmaps.d.ts +10 -10
  170. package/lib/utils/src/line.d.ts +2 -2
  171. package/lib/utils/src/paragraphs.d.ts +16 -16
  172. package/lib/utils/src/props.d.ts +9 -9
  173. package/lib/utils/src/radius.d.ts +10 -10
  174. package/lib/utils/src/reset.d.ts +1 -1
  175. package/lib/utils/src/responsive.d.ts +5 -5
  176. package/lib/utils/src/row.d.ts +2 -2
  177. package/lib/utils/src/scrollbars.d.ts +2 -2
  178. package/lib/utils/src/shadows.d.ts +8 -8
  179. package/lib/utils/src/spacing.d.ts +2 -2
  180. package/lib/utils/src/test-utils.d.ts +23 -24
  181. package/lib/utils/src/test-utils.js +1 -3
  182. package/lib/utils/src/test-utils.js.map +1 -1
  183. package/lib/utils/src/utils.styles.d.ts +36 -36
  184. package/package.json +13 -13
@@ -1,16 +1,16 @@
1
- /// <reference types="googlemaps" />
2
- /// <reference types="google.maps" />
3
- import { FC } from 'react';
4
- import { GenericInputProps } from '../../../utils';
5
- export interface GmapsGeocodeProps extends GenericInputProps {
6
- value: string;
7
- country?: string | string[];
8
- id?: string;
9
- types?: string[];
10
- withGeocodeType?: boolean;
11
- onChange(address: string): void;
12
- onSelect(place: google.maps.GeocoderResult): void;
13
- onError?(error: string): void;
14
- }
15
- declare const GmapsGeocode: FC<GmapsGeocodeProps>;
16
- export default GmapsGeocode;
1
+ /// <reference types="googlemaps" />
2
+ /// <reference types="google.maps" />
3
+ import { FC } from 'react';
4
+ import { GenericInputProps } from '../../../utils';
5
+ export interface GmapsGeocodeProps extends GenericInputProps {
6
+ value: string;
7
+ country?: string | string[];
8
+ id?: string;
9
+ types?: string[];
10
+ withGeocodeType?: boolean;
11
+ onChange(address: string): void;
12
+ onSelect(place: google.maps.GeocoderResult): void;
13
+ onError?(error: string): void;
14
+ }
15
+ declare const GmapsGeocode: FC<GmapsGeocodeProps>;
16
+ export default GmapsGeocode;
@@ -1,20 +1,20 @@
1
- import { FC, MouseEventHandler, TouchEventHandler } from 'react';
2
- import { Suggestion } from 'react-places-autocomplete';
3
- export interface SuggestionItem {
4
- key: number;
5
- id: string | undefined;
6
- role: 'option';
7
- onMouseEnter: MouseEventHandler;
8
- onMouseLeave: MouseEventHandler;
9
- onMouseDown: MouseEventHandler;
10
- onMouseUp: MouseEventHandler;
11
- onTouchStart: TouchEventHandler;
12
- onTouchEnd: TouchEventHandler;
13
- onClick: MouseEventHandler;
14
- }
15
- export interface GmapsSuggestionsProps {
16
- suggestions: Suggestion[];
17
- getSuggestionItemProps<SuggestionProps extends {}>(suggestion: Suggestion, options?: SuggestionProps): SuggestionItem & SuggestionProps;
18
- }
19
- declare const GmapsSuggestions: FC<GmapsSuggestionsProps>;
20
- export default GmapsSuggestions;
1
+ import { FC, MouseEventHandler, TouchEventHandler } from 'react';
2
+ import { Suggestion } from 'react-places-autocomplete';
3
+ export interface SuggestionItem {
4
+ key: number;
5
+ id: string | undefined;
6
+ role: 'option';
7
+ onMouseEnter: MouseEventHandler;
8
+ onMouseLeave: MouseEventHandler;
9
+ onMouseDown: MouseEventHandler;
10
+ onMouseUp: MouseEventHandler;
11
+ onTouchStart: TouchEventHandler;
12
+ onTouchEnd: TouchEventHandler;
13
+ onClick: MouseEventHandler;
14
+ }
15
+ export interface GmapsSuggestionsProps {
16
+ suggestions: Suggestion[];
17
+ getSuggestionItemProps<SuggestionProps extends {}>(suggestion: Suggestion, options?: SuggestionProps): SuggestionItem & SuggestionProps;
18
+ }
19
+ declare const GmapsSuggestions: FC<GmapsSuggestionsProps>;
20
+ export default GmapsSuggestions;
@@ -1,2 +1,2 @@
1
- declare const Alert: () => JSX.Element;
2
- export default Alert;
1
+ declare const Alert: () => JSX.Element;
2
+ export default Alert;
@@ -1,2 +1,2 @@
1
- declare const Arrow: () => JSX.Element;
2
- export default Arrow;
1
+ declare const Arrow: () => JSX.Element;
2
+ export default Arrow;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const Certificate: FC<IconProps>;
4
- export default Certificate;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const Certificate: FC<IconProps>;
4
+ export default Certificate;
@@ -1,2 +1,2 @@
1
- declare const CheckGreen: () => JSX.Element;
2
- export default CheckGreen;
1
+ declare const CheckGreen: () => JSX.Element;
2
+ export default CheckGreen;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const ChevronRight: FC<IconProps>;
4
- export default ChevronRight;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const ChevronRight: FC<IconProps>;
4
+ export default ChevronRight;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const Close: FC<IconProps>;
4
- export default Close;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const Close: FC<IconProps>;
4
+ export default Close;
@@ -1,2 +1,2 @@
1
- declare const CloseBox: () => JSX.Element;
2
- export default CloseBox;
1
+ declare const CloseBox: () => JSX.Element;
2
+ export default CloseBox;
@@ -1,2 +1,2 @@
1
- declare const DropDown: () => JSX.Element;
2
- export default DropDown;
1
+ declare const DropDown: () => JSX.Element;
2
+ export default DropDown;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const EmoticonCool: FC<IconProps>;
4
- export default EmoticonCool;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const EmoticonCool: FC<IconProps>;
4
+ export default EmoticonCool;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const Help: FC<IconProps>;
4
- export default Help;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const Help: FC<IconProps>;
4
+ export default Help;
@@ -1,3 +1,3 @@
1
- export default interface IconProps {
2
- fill?: string;
3
- }
1
+ export default interface IconProps {
2
+ fill?: string;
3
+ }
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const Less: FC<IconProps>;
4
- export default Less;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const Less: FC<IconProps>;
4
+ export default Less;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import IconProps from './Icon.props';
3
- declare const Plus: FC<IconProps>;
4
- export default Plus;
1
+ import { FC } from 'react';
2
+ import IconProps from './Icon.props';
3
+ declare const Plus: FC<IconProps>;
4
+ export default Plus;
@@ -1,2 +1,2 @@
1
- declare const Tick: () => JSX.Element;
2
- export default Tick;
1
+ declare const Tick: () => JSX.Element;
2
+ export default Tick;
@@ -1,2 +1,2 @@
1
- declare const TrustPilot: () => JSX.Element;
2
- export default TrustPilot;
1
+ declare const TrustPilot: () => JSX.Element;
2
+ export default TrustPilot;
@@ -1,14 +1,14 @@
1
- declare const _default: {
2
- Arrow: () => JSX.Element;
3
- CheckGreen: () => JSX.Element;
4
- ChevronRight: import("react").FC<import("./Icon.props").default>;
5
- DropDown: () => JSX.Element;
6
- EmoticonCool: import("react").FC<import("./Icon.props").default>;
7
- Certificate: import("react").FC<import("./Icon.props").default>;
8
- TrustPilot: () => JSX.Element;
9
- CloseBox: () => JSX.Element;
10
- Plus: import("react").FC<import("./Icon.props").default>;
11
- Less: import("react").FC<import("./Icon.props").default>;
12
- Close: import("react").FC<import("./Icon.props").default>;
13
- };
14
- export default _default;
1
+ declare const _default: {
2
+ Arrow: () => JSX.Element;
3
+ CheckGreen: () => JSX.Element;
4
+ ChevronRight: import("react").FC<import("./Icon.props").default>;
5
+ DropDown: () => JSX.Element;
6
+ EmoticonCool: import("react").FC<import("./Icon.props").default>;
7
+ Certificate: import("react").FC<import("./Icon.props").default>;
8
+ TrustPilot: () => JSX.Element;
9
+ CloseBox: () => JSX.Element;
10
+ Plus: import("react").FC<import("./Icon.props").default>;
11
+ Less: import("react").FC<import("./Icon.props").default>;
12
+ Close: import("react").FC<import("./Icon.props").default>;
13
+ };
14
+ export default _default;
@@ -1,40 +1,40 @@
1
- import React, { ChangeEvent, Component, FC } from 'react';
2
- import { CSSProperties } from 'styled-components';
3
- import { nullOrNumber, nullOrString } from '@proprioo/hokkaido';
4
- import { GMapProps } from '../inputBase/InputBase';
5
- export declare enum InputType {
6
- EMAIL = "email",
7
- NUMBER = "number",
8
- PASSWORD = "password",
9
- TEL = "tel",
10
- TEXT = "text"
11
- }
12
- export interface CustomInputEvent {
13
- target: {
14
- value: string;
15
- selectionStart: nullOrNumber;
16
- };
17
- }
18
- export interface InputProps {
19
- disabled: boolean;
20
- focused: boolean;
21
- id: string;
22
- type: InputType;
23
- dataTest?: string;
24
- gmap?: GMapProps;
25
- inputElement?: Component<InputProps> | FC<InputProps>;
26
- max?: number;
27
- maxLength?: number;
28
- min?: number;
29
- minLength?: number;
30
- name?: string;
31
- phoneWithFlags?: boolean;
32
- required?: boolean;
33
- style?: CSSProperties;
34
- value?: nullOrString;
35
- handleBlur(): void;
36
- handleFocus(): void;
37
- handleOnChange(event: ChangeEvent<HTMLInputElement> | CustomInputEvent): void;
38
- }
39
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
40
- export default Input;
1
+ import React, { ChangeEvent, Component, FC } from 'react';
2
+ import { CSSProperties } from 'styled-components';
3
+ import { nullOrNumber, nullOrString } from '@proprioo/hokkaido';
4
+ import { GMapProps } from '../inputBase/InputBase';
5
+ export declare enum InputType {
6
+ EMAIL = "email",
7
+ NUMBER = "number",
8
+ PASSWORD = "password",
9
+ TEL = "tel",
10
+ TEXT = "text"
11
+ }
12
+ export interface CustomInputEvent {
13
+ target: {
14
+ value: string;
15
+ selectionStart: nullOrNumber;
16
+ };
17
+ }
18
+ export interface InputProps {
19
+ disabled: boolean;
20
+ focused: boolean;
21
+ id: string;
22
+ type: InputType;
23
+ dataTest?: string;
24
+ gmap?: GMapProps;
25
+ inputElement?: Component<InputProps> | FC<InputProps>;
26
+ max?: number;
27
+ maxLength?: number;
28
+ min?: number;
29
+ minLength?: number;
30
+ name?: string;
31
+ phoneWithFlags?: boolean;
32
+ required?: boolean;
33
+ style?: CSSProperties;
34
+ value?: nullOrString;
35
+ handleBlur(): void;
36
+ handleFocus(): void;
37
+ handleOnChange(event: ChangeEvent<HTMLInputElement> | CustomInputEvent): void;
38
+ }
39
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
40
+ export default Input;
@@ -1,2 +1,2 @@
1
- export declare const BaseLayout: import("styled-components").FlattenSimpleInterpolation;
2
- export declare const InputLayout: import("styled-components").StyledComponent<"input", any, {}, never>;
1
+ export declare const BaseLayout: import("styled-components").FlattenSimpleInterpolation;
2
+ export declare const InputLayout: import("styled-components").StyledComponent<"input", any, {}, never>;
@@ -1,47 +1,47 @@
1
- import { Component, FC, FocusEventHandler, KeyboardEventHandler, ReactElement } from 'react';
2
- import { nullOrString } from '@proprioo/hokkaido';
3
- import { GenericInputProps } from '../../../utils';
4
- import { InputProps, InputType } from '../input/Input';
5
- import { OptionProps } from '../option/Option';
6
- import { InputColors } from './InputBaseEnum';
7
- export declare const ZINDEX_OPEN = 10;
8
- export interface GMapProps {
9
- 'aria-activedescendant': string | undefined;
10
- 'aria-autocomplete': 'list';
11
- 'aria-expanded': boolean;
12
- autoComplete: 'off';
13
- disabled: boolean;
14
- role: 'combobox';
15
- value: string | undefined;
16
- onBlur: FocusEventHandler;
17
- onChange(event: {
18
- target: {
19
- value: string;
20
- };
21
- }): void;
22
- onKeyDown: KeyboardEventHandler;
23
- }
24
- export interface InputBaseProps extends GenericInputProps {
25
- displayField?: ReactElement;
26
- field?: ReactElement;
27
- gmap?: GMapProps;
28
- id?: string;
29
- inputElement?: Component<InputProps> | FC<InputProps>;
30
- max?: number;
31
- maxLength?: number;
32
- min?: number;
33
- minLength?: number;
34
- name?: string;
35
- options?: OptionProps[];
36
- outline?: InputColors;
37
- phoneWithFlags?: boolean;
38
- selectOnFocus?: boolean;
39
- suffix?: string;
40
- type?: InputType;
41
- value?: nullOrString;
42
- onBlur?(): void;
43
- onChange?(value: string): void;
44
- onFocus?(): void;
45
- }
46
- declare const InputBase: FC<InputBaseProps>;
47
- export default InputBase;
1
+ import { Component, FC, FocusEventHandler, KeyboardEventHandler, ReactElement } from 'react';
2
+ import { nullOrString } from '@proprioo/hokkaido';
3
+ import { GenericInputProps } from '../../../utils';
4
+ import { InputProps, InputType } from '../input/Input';
5
+ import { OptionProps } from '../option/Option';
6
+ import { InputColors } from './InputBaseEnum';
7
+ export declare const ZINDEX_OPEN = 10;
8
+ export interface GMapProps {
9
+ 'aria-activedescendant': string | undefined;
10
+ 'aria-autocomplete': 'list';
11
+ 'aria-expanded': boolean;
12
+ autoComplete: 'off';
13
+ disabled: boolean;
14
+ role: 'combobox';
15
+ value: string | undefined;
16
+ onBlur: FocusEventHandler;
17
+ onChange(event: {
18
+ target: {
19
+ value: string;
20
+ };
21
+ }): void;
22
+ onKeyDown: KeyboardEventHandler;
23
+ }
24
+ export interface InputBaseProps extends GenericInputProps {
25
+ displayField?: ReactElement;
26
+ field?: ReactElement;
27
+ gmap?: GMapProps;
28
+ id?: string;
29
+ inputElement?: Component<InputProps> | FC<InputProps>;
30
+ max?: number;
31
+ maxLength?: number;
32
+ min?: number;
33
+ minLength?: number;
34
+ name?: string;
35
+ options?: OptionProps[];
36
+ outline?: InputColors;
37
+ phoneWithFlags?: boolean;
38
+ selectOnFocus?: boolean;
39
+ suffix?: string;
40
+ type?: InputType;
41
+ value?: nullOrString;
42
+ onBlur?(): void;
43
+ onChange?(value: string): void;
44
+ onFocus?(): void;
45
+ }
46
+ declare const InputBase: FC<InputBaseProps>;
47
+ export default InputBase;
@@ -1,21 +1,21 @@
1
- import { InputColors } from './InputBaseEnum';
2
- interface LayoutProps {
3
- disabled: boolean;
4
- error: boolean;
5
- focused: boolean;
6
- notched: boolean;
7
- phoneWithFlags: boolean;
8
- zIndex?: number;
9
- outline?: InputColors;
10
- }
11
- export declare const FieldSetLayout: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
12
- export declare const LegendLayout: import("styled-components").StyledComponent<"legend", any, {
13
- isVisible: boolean;
14
- }, never>;
15
- export declare const LabelLayout: import("styled-components").StyledComponent<"label", any, {
16
- suffixLength: number;
17
- }, never>;
18
- export declare const Suffix: import("styled-components").StyledComponent<"div", any, {}, never>;
19
- export declare const InsideLayout: import("styled-components").StyledComponent<"div", any, Pick<LayoutProps, "disabled">, never>;
20
- export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
21
- export {};
1
+ import { InputColors } from './InputBaseEnum';
2
+ interface LayoutProps {
3
+ disabled: boolean;
4
+ error: boolean;
5
+ focused: boolean;
6
+ notched: boolean;
7
+ phoneWithFlags: boolean;
8
+ zIndex?: number;
9
+ outline?: InputColors;
10
+ }
11
+ export declare const FieldSetLayout: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
12
+ export declare const LegendLayout: import("styled-components").StyledComponent<"legend", any, {
13
+ isVisible: boolean;
14
+ }, never>;
15
+ export declare const LabelLayout: import("styled-components").StyledComponent<"label", any, {
16
+ suffixLength: number;
17
+ }, never>;
18
+ export declare const Suffix: import("styled-components").StyledComponent<"div", any, {}, never>;
19
+ export declare const InsideLayout: import("styled-components").StyledComponent<"div", any, Pick<LayoutProps, "disabled">, never>;
20
+ export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
21
+ export {};
@@ -1,6 +1,6 @@
1
- export declare enum InputColors {
2
- ORANGE = "orange",
3
- GREEN = "green",
4
- BLUE = "blue",
5
- PINK = "pink"
6
- }
1
+ export declare enum InputColors {
2
+ ORANGE = "orange",
3
+ GREEN = "green",
4
+ BLUE = "blue",
5
+ PINK = "pink"
6
+ }
@@ -1,2 +1,2 @@
1
- declare const InputLoader: () => JSX.Element;
2
- export default InputLoader;
1
+ declare const InputLoader: () => JSX.Element;
2
+ export default InputLoader;
@@ -1,2 +1,2 @@
1
- export declare const LoaderRing: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const LoaderContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const LoaderRing: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const LoaderContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +1,3 @@
1
- import { FC } from 'react';
2
- declare const InputLoading: FC;
3
- export default InputLoading;
1
+ import { FC } from 'react';
2
+ declare const InputLoading: FC;
3
+ export default InputLoading;
@@ -1 +1 @@
1
- export declare const LayoutLoading: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const LayoutLoading: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,9 +1,9 @@
1
- import { FC } from 'react';
2
- export interface LoaderProps {
3
- isWrapped?: boolean;
4
- text?: string;
5
- backgroundColor?: string;
6
- loaderHeight?: string;
7
- }
8
- declare const Loader: FC<LoaderProps>;
9
- export default Loader;
1
+ import { FC } from 'react';
2
+ export interface LoaderProps {
3
+ isWrapped?: boolean;
4
+ text?: string;
5
+ backgroundColor?: string;
6
+ loaderHeight?: string;
7
+ }
8
+ declare const Loader: FC<LoaderProps>;
9
+ export default Loader;
@@ -1,10 +1,10 @@
1
- import { LoaderProps } from './Loader';
2
- export declare const loaderAnimation: import("styled-components").FlattenSimpleInterpolation;
3
- export declare const LoaderContainer: import("styled-components").StyledComponent<"div", any, {
4
- backgroundColor: string;
5
- isWrapped?: boolean | undefined;
6
- loaderHeight?: string | undefined;
7
- }, never>;
8
- export declare const LoaderRing: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const LoaderRingContainer: import("styled-components").StyledComponent<"div", any, Pick<LoaderProps, "isWrapped">, never>;
10
- export declare const LoaderTextLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { LoaderProps } from './Loader';
2
+ export declare const loaderAnimation: import("styled-components").FlattenSimpleInterpolation;
3
+ export declare const LoaderContainer: import("styled-components").StyledComponent<"div", any, {
4
+ backgroundColor: string;
5
+ isWrapped?: boolean | undefined;
6
+ loaderHeight?: string | undefined;
7
+ }, never>;
8
+ export declare const LoaderRing: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const LoaderRingContainer: import("styled-components").StyledComponent<"div", any, Pick<LoaderProps, "isWrapped">, never>;
10
+ export declare const LoaderTextLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +1,2 @@
1
- declare const Logo: () => JSX.Element;
2
- export default Logo;
1
+ declare const Logo: () => JSX.Element;
2
+ export default Logo;
@@ -1,7 +1,7 @@
1
- import { FC, FormEvent, ReactNode } from 'react';
2
- export declare const mockSubmit: (event: FormEvent<HTMLFormElement>) => void;
3
- export interface MockFormProps {
4
- children: ReactNode;
5
- }
6
- declare const MockForm: FC<MockFormProps>;
7
- export default MockForm;
1
+ import { FC, FormEvent, ReactNode } from 'react';
2
+ export declare const mockSubmit: (event: FormEvent<HTMLFormElement>) => void;
3
+ export interface MockFormProps {
4
+ children: ReactNode;
5
+ }
6
+ declare const MockForm: FC<MockFormProps>;
7
+ export default MockForm;
@@ -1,32 +1,32 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { FadeEnum } from './Modal.reducer';
3
- interface ActionsProps {
4
- onAbort?(): void;
5
- onClose?(): void;
6
- onOpen?(): void;
7
- }
8
- interface BaseModalProps {
9
- icon?: ReactElement;
10
- isAlternative?: boolean;
11
- isClosable?: boolean;
12
- isFullScreen?: boolean;
13
- noPadding?: boolean;
14
- text?: string;
15
- title?: string;
16
- }
17
- export interface ModalProps extends BaseModalProps {
18
- fade: FadeEnum;
19
- isLoading: boolean;
20
- abortModal(): void;
21
- onAnimationEnd(): void;
22
- }
23
- export interface RenderModalProps extends BaseModalProps {
24
- children: ReactNode;
25
- }
26
- declare const useModal: ({ onAbort, onOpen, onClose }?: ActionsProps) => {
27
- closeModal: () => void;
28
- createModal: ({ children, icon, isAlternative, isClosable, isFullScreen, noPadding, text, title }: RenderModalProps) => JSX.Element;
29
- openModal: () => void;
30
- toggleLoader: () => void;
31
- };
32
- export default useModal;
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { FadeEnum } from './Modal.reducer';
3
+ interface ActionsProps {
4
+ onAbort?(): void;
5
+ onClose?(): void;
6
+ onOpen?(): void;
7
+ }
8
+ interface BaseModalProps {
9
+ icon?: ReactElement;
10
+ isAlternative?: boolean;
11
+ isClosable?: boolean;
12
+ isFullScreen?: boolean;
13
+ noPadding?: boolean;
14
+ text?: string;
15
+ title?: string;
16
+ }
17
+ export interface ModalProps extends BaseModalProps {
18
+ fade: FadeEnum;
19
+ isLoading: boolean;
20
+ abortModal(): void;
21
+ onAnimationEnd(): void;
22
+ }
23
+ export interface RenderModalProps extends BaseModalProps {
24
+ children: ReactNode;
25
+ }
26
+ declare const useModal: ({ onAbort, onOpen, onClose }?: ActionsProps) => {
27
+ closeModal: () => void;
28
+ createModal: ({ children, icon, isAlternative, isClosable, isFullScreen, noPadding, text, title }: RenderModalProps) => JSX.Element;
29
+ openModal: () => void;
30
+ toggleLoader: () => void;
31
+ };
32
+ export default useModal;